[02:51:44]OFD Sender: No OFD packet to send [02:51:49]OFD Sender: No OFD packet to send [02:51:54]OFD Sender: No OFD packet to send [02:51:59]OFD Sender: No OFD packet to send [02:52:04]OFD Sender: No OFD packet to send [02:52:09]OFD Sender: No OFD packet to send [02:52:14]OFD Sender: No OFD packet to send [02:52:19]OFD Sender: No OFD packet to send [02:52:24]OFD Sender: No OFD packet to send [02:52:29]OFD Sender: No OFD packet to send [02:52:34]OFD Sender: No OFD packet to send [02:52:39]OFD Sender: No OFD packet to send [02:52:44]OFD Sender: No OFD packet to send [02:52:49]OFD Sender: No OFD packet to send [02:52:54]OFD Sender: No OFD packet to send [02:52:59]OFD Sender: No OFD packet to send [02:53:04]OFD Sender: No OFD packet to send [02:53:09]OFD Sender: No OFD packet to send [02:53:14]OFD Sender: No OFD packet to send [02:53:19]OFD Sender: No OFD packet to send [02:53:24]OFD Sender: No OFD packet to send [02:53:29]OFD Sender: No OFD packet to send [02:53:34]OFD Sender: No OFD packet to send [02:53:39]OFD Sender: No OFD packet to send [02:53:44]OFD Sender: No OFD packet to send [02:53:49]OFD Sender: No OFD packet to send [02:53:54]OFD Sender: No OFD packet to send [02:53:59]OFD Sender: No OFD packet to send [02:54:04]OFD Sender: No OFD packet to send [02:54:09]OFD Sender: No OFD packet to send [02:54:14]OFD Sender: No OFD packet to send [02:54:19]OFD Sender: No OFD packet to send [02:54:24]OFD Sender: No OFD packet to send [02:54:29]OFD Sender: No OFD packet to send [02:54:34]OFD Sender: No OFD packet to send [02:54:39]OFD Sender: No OFD packet to send [02:54:44]OFD Sender: No OFD packet to send [02:54:49]OFD Sender: No OFD packet to send [02:54:54]OFD Sender: No OFD packet to send [02:54:59]OFD Sender: No OFD packet to send [02:55:04]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:24]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:14]OFD Sender: No OFD packet to send [02:57:19]OFD Sender: No OFD packet to send [02:57:24]OFD Sender: No OFD packet to send [02:57:29]OFD Sender: No OFD packet to send [02:57:34]OFD Sender: No OFD packet to send [02:57:39]OFD Sender: No OFD packet to send [02:57:44]OFD Sender: No OFD packet to send [02:57:49]OFD Sender: No OFD packet to send [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:34]OFD Sender: No OFD packet to send [02:59:39]OFD Sender: No OFD packet to send [02:59:44]OFD Sender: No OFD packet to send [02:59:49]OFD Sender: No OFD packet to send [02:59:54]OFD Sender: No OFD packet to send [02:59:59]OFD Sender: No OFD packet to send [03:00:04]OFD Sender: No OFD packet to send [03:00:09]OFD Sender: No OFD packet to send [03:00:14]OFD Sender: No OFD packet to send [03:00:19]OFD Sender: No OFD packet to send [03:00:24]OFD Sender: No OFD packet to send [03:00:29]OFD Sender: No OFD packet to send [03:00:34]OFD Sender: No OFD packet to send [03:00:39]OFD Sender: No OFD packet to send [03:00:44]OFD Sender: No OFD packet to send [03:00:49]OFD Sender: No OFD packet to send [03:00:54]OFD Sender: No OFD packet to send [03:00:59]OFD Sender: No OFD packet to send [03:01:04]OFD Sender: No OFD packet to send [03:01:09]OFD Sender: No OFD packet to send [03:01:14]OFD Sender: No OFD packet to send [03:01:19]OFD Sender: No OFD packet to send [03:01:24]OFD Sender: No OFD packet to send [03:01:29]OFD Sender: No OFD packet to send [03:01:34]OFD Sender: No OFD packet to send [03:01:39]OFD Sender: No OFD packet to send [03:01:44]OFD Sender: No OFD packet to send [03:01:49]OFD Sender: No OFD packet to send [03:01:54]OFD Sender: No OFD packet to send [03:01:59]OFD Sender: No OFD packet to send [03:02:04]OFD Sender: No OFD packet to send [03:02:09]OFD Sender: No OFD packet to send [03:02:14]OFD Sender: No OFD packet to send [03:02:19]OFD Sender: No OFD packet to send [03:02:24]OFD Sender: No OFD packet to send [03:02:29]OFD Sender: No OFD packet to send [03:02:34]OFD Sender: No OFD packet to send [03:02:39]OFD Sender: No OFD packet to send [03:02:44]OFD Sender: No OFD packet to send [03:02:49]OFD Sender: No OFD packet to send [03:02:54]OFD Sender: No OFD packet to send [03:02:59]OFD Sender: No OFD packet to send [03:03:04]OFD Sender: No OFD packet to send [03:03:09]OFD Sender: No OFD packet to send [03:03:14]OFD Sender: No OFD packet to send [03:03:19]OFD Sender: No OFD packet to send [03:03:24]OFD Sender: No OFD packet to send [03:03:29]OFD Sender: No OFD packet to send [03:03:34]OFD Sender: No OFD packet to send [03:03:39]OFD Sender: No OFD packet to send [03:03:44]OFD Sender: No OFD packet to send [03:03:49]OFD Sender: No OFD packet to send [03:03:54]OFD Sender: No OFD packet to send [03:03:59]OFD Sender: No OFD packet to send [03:04:04]OFD Sender: No OFD packet to send [03:04:09]OFD Sender: No OFD packet to send [03:04:14]OFD Sender: No OFD packet to send [03:04:19]OFD Sender: No OFD packet to send [03:04:24]OFD Sender: No OFD packet to send [03:04:29]OFD Sender: No OFD packet to send [03:04:34]OFD Sender: No OFD packet to send [03:04:39]OFD Sender: No OFD packet to send [03:04:44]OFD Sender: No OFD packet to send [03:04:49]OFD Sender: No OFD packet to send [03:04:54]OFD Sender: No OFD packet to send [03:04:59]OFD Sender: No OFD packet to send [03:05:04]OFD Sender: No OFD packet to send [03:05:09]OFD Sender: No OFD packet to send [03:05:14]OFD Sender: No OFD packet to send [03:05:19]OFD Sender: No OFD packet to send [03:05:24]OFD Sender: No OFD packet to send [03:05:29]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:45]OFD Sender: No OFD packet to send [03:14:50]OFD Sender: No OFD packet to send [03:14:55]OFD Sender: No OFD packet to send [03:15:00]OFD Sender: No OFD packet to send [03:15:05]OFD Sender: No OFD packet to send [03:15:10]OFD Sender: No OFD packet to send [03:15:15]OFD Sender: No OFD packet to send [03:15:20]OFD Sender: No OFD packet to send [03:15:25]OFD Sender: No OFD packet to send [03:15:30]OFD Sender: No OFD packet to send [03:15:35]OFD Sender: No OFD packet to send [03:15:40]OFD Sender: No OFD packet to send [03:15:45]OFD Sender: No OFD packet to send [03:15:50]OFD Sender: No OFD packet to send [03:15:55]OFD Sender: No OFD packet to send [03:16:00]OFD Sender: No OFD packet to send [03:16:05]OFD Sender: No OFD packet to send [03:16:10]OFD Sender: No OFD packet to send [03:16:15]OFD Sender: No OFD packet to send [03:16:20]OFD Sender: No OFD packet to send [03:16:25]OFD Sender: No OFD packet to send [03:16:30]OFD Sender: No OFD packet to send [03:16:35]OFD Sender: No OFD packet to send [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:19:35]OFD Sender: No OFD packet to send [03:19:40]OFD Sender: No OFD packet to send [03:19:45]OFD Sender: No OFD packet to send [03:19:50]OFD Sender: No OFD packet to send [03:19:55]OFD Sender: No OFD packet to send [03:20:00]OFD Sender: No OFD packet to send [03:20:05]OFD Sender: No OFD packet to send [03:20:10]OFD Sender: No OFD packet to send [03:20:15]OFD Sender: No OFD packet to send [03:20:20]OFD Sender: No OFD packet to send [03:20:25]OFD Sender: No OFD packet to send [03:20:30]OFD Sender: No OFD packet to send [03:20:35]OFD Sender: No OFD packet to send [03:20:40]OFD Sender: No OFD packet to send [03:20:45]OFD Sender: No OFD packet to send [03:20:50]OFD Sender: No OFD packet to send [03:20:55]OFD Sender: No OFD packet to send [03:21:00]OFD Sender: No OFD packet to send [03:21:05]OFD Sender: No OFD packet to send [03:21:10]OFD Sender: No OFD packet to send [03:21:15]OFD Sender: No OFD packet to send [03:21:20]OFD Sender: No OFD packet to send [03:21:25]OFD Sender: No OFD packet to send [03:21:30]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:56]OFD Sender: No OFD packet to send [03:30:01]OFD Sender: No OFD packet to send [03:30:06]OFD Sender: No OFD packet to send [03:30:11]OFD Sender: No OFD packet to send [03:30:16]OFD Sender: No OFD packet to send [03:30:21]OFD Sender: No OFD packet to send [03:30:26]OFD Sender: No OFD packet to send [03:30:31]OFD Sender: No OFD packet to send [03:30:36]OFD Sender: No OFD packet to send [03:30:41]OFD Sender: No OFD packet to send [03:30:46]OFD Sender: No OFD packet to send [03:30:51]OFD Sender: No OFD packet to send [03:30:56]OFD Sender: No OFD packet to send [03:31:01]OFD Sender: No OFD packet to send [03:31:06]OFD Sender: No OFD packet to send [03:31:11]OFD Sender: No OFD packet to send [03:31:16]OFD Sender: No OFD packet to send [03:31:21]OFD Sender: No OFD packet to send [03:31:26]OFD Sender: No OFD packet to send [03:31:31]OFD Sender: No OFD packet to send [03:31:36]OFD Sender: No OFD packet to send [03:31:41]OFD Sender: No OFD packet to send [03:31:46]OFD Sender: No OFD packet to send [03:31:51]OFD Sender: No OFD packet to send [03:31:56]OFD Sender: No OFD packet to send [03:32:01]OFD Sender: No OFD packet to send [03:32:06]OFD Sender: No OFD packet to send [03:32:11]OFD Sender: No OFD packet to send [03:32:16]OFD Sender: No OFD packet to send [03:32:21]OFD Sender: No OFD packet to send [03:32:26]OFD Sender: No OFD packet to send [03:32:31]OFD Sender: No OFD packet to send [03:32:36]OFD Sender: No OFD packet to send [03:32:41]OFD Sender: No OFD packet to send [03:32:46]OFD Sender: No OFD packet to send [03:32:51]OFD Sender: No OFD packet to send [03:32:56]OFD Sender: No OFD packet to send [03:33:01]OFD Sender: No OFD packet to send [03:33:06]OFD Sender: No OFD packet to send [03:33:11]OFD Sender: No OFD packet to send [03:33:16]OFD Sender: No OFD packet to send [03:33:21]OFD Sender: No OFD packet to send [03:33:26]OFD Sender: No OFD packet to send [03:33:31]OFD Sender: No OFD packet to send [03:33:36]OFD Sender: No OFD packet to send [03:33:41]OFD Sender: No OFD packet to send [03:33:46]OFD Sender: No OFD packet to send [03:33:51]OFD Sender: No OFD packet to send [03:33:56]OFD Sender: No OFD packet to send [03:34:01]OFD Sender: No OFD packet to send [03:34:06]OFD Sender: No OFD packet to send [03:34:11]OFD Sender: No OFD packet to send [03:34:16]OFD Sender: No OFD packet to send [03:34:21]OFD Sender: No OFD packet to send [03:34:26]OFD Sender: No OFD packet to send [03:34:31]OFD Sender: No OFD packet to send [03:34:36]OFD Sender: No OFD packet to send [03:34:41]OFD Sender: No OFD packet to send [03:34:46]OFD Sender: No OFD packet to send [03:34:51]OFD Sender: No OFD packet to send [03:34:56]OFD Sender: No OFD packet to send [03:35:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]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:22]OFD Sender: No OFD packet to send [03:42:27]OFD Sender: No OFD packet to send [03:42:32]OFD Sender: No OFD packet to send [03:42:37]OFD Sender: No OFD packet to send [03:42:42]OFD Sender: No OFD packet to send [03:42:47]OFD Sender: No OFD packet to send [03:42:52]OFD Sender: No OFD packet to send [03:42:57]OFD Sender: No OFD packet to send [03:43:02]OFD Sender: No OFD packet to send [03:43:07]OFD Sender: No OFD packet to send [03:43:12]OFD Sender: No OFD packet to send [03:43:17]OFD Sender: No OFD packet to send [03:43:22]OFD Sender: No OFD packet to send [03:43:27]OFD Sender: No OFD packet to send [03:43:32]OFD Sender: No OFD packet to send [03:43:37]OFD Sender: No OFD packet to send [03:43:42]OFD Sender: No OFD packet to send [03:43:47]OFD Sender: No OFD packet to send [03:43:52]OFD Sender: No OFD packet to send [03:43:57]OFD Sender: No OFD packet to send [03:44:02]OFD Sender: No OFD packet to send [03:44:07]OFD Sender: No OFD packet to send [03:44:12]OFD Sender: No OFD packet to send [03:44:17]OFD Sender: No OFD packet to send [03:44:22]OFD Sender: No OFD packet to send [03:44:27]OFD Sender: No OFD packet to send [03:44:32]OFD Sender: No OFD packet to send [03:44:37]OFD Sender: No OFD packet to send [03:44:42]OFD Sender: No OFD packet to send [03:44:47]OFD Sender: No OFD packet to send [03:44:52]OFD Sender: No OFD packet to send [03:44:57]OFD Sender: No OFD packet to send [03:45:02]OFD Sender: No OFD packet to send [03:45:07]OFD Sender: No OFD packet to send [03:45:12]OFD Sender: No OFD packet to send [03:45:17]OFD Sender: No OFD packet to send [03:45:22]OFD Sender: No OFD packet to send [03:45:27]OFD Sender: No OFD packet to send [03:45:32]OFD Sender: No OFD packet to send [03:45:37]OFD Sender: No OFD packet to send [03:45:42]OFD Sender: No OFD packet to send [03:45:47]OFD Sender: No OFD packet to send [03:45:52]OFD Sender: No OFD packet to send [03:45:57]OFD Sender: No OFD packet to send [03:46:02]OFD Sender: No OFD packet to send [03:46:07]OFD Sender: No OFD packet to send [03:46:12]OFD Sender: No OFD packet to send [03:46:17]OFD Sender: No OFD packet to send [03:46:22]OFD Sender: No OFD packet to send [03:46:27]OFD Sender: No OFD packet to send [03:46:32]OFD Sender: No OFD packet to send [03:46:37]OFD Sender: No OFD packet to send [03:46:42]OFD Sender: No OFD packet to send [03:46:47]OFD Sender: No OFD packet to send [03:46:52]OFD Sender: No OFD packet to send [03:46:57]OFD Sender: No OFD packet to send [03:47:02]OFD Sender: No OFD packet to send [03:47:07]OFD Sender: No OFD packet to send [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:28]OFD Sender: No OFD packet to send [03:53:33]OFD Sender: No OFD packet to send [03:53:38]OFD Sender: No OFD packet to send [03:53:43]OFD Sender: No OFD packet to send [03:53:48]OFD Sender: No OFD packet to send [03:53:53]OFD Sender: No OFD packet to send [03:53:58]OFD Sender: No OFD packet to send [03:54:03]OFD Sender: No OFD packet to send [03:54:08]OFD Sender: No OFD packet to send [03:54:13]OFD Sender: No OFD packet to send [03:54:18]OFD Sender: No OFD packet to send [03:54:23]OFD Sender: No OFD packet to send [03:54:28]OFD Sender: No OFD packet to send [03:54:33]OFD Sender: No OFD packet to send [03:54:38]OFD Sender: No OFD packet to send [03:54:43]OFD Sender: No OFD packet to send [03:54:48]OFD Sender: No OFD packet to send [03:54:53]OFD Sender: No OFD packet to send [03:54:58]OFD Sender: No OFD packet to send [03:55:03]OFD Sender: No OFD packet to send [03:55:08]OFD Sender: No OFD packet to send [03:55:13]OFD Sender: No OFD packet to send [03:55:18]OFD Sender: No OFD packet to send [03:55:23]OFD Sender: No OFD packet to send [03:55:28]OFD Sender: No OFD packet to send [03:55:33]OFD Sender: No OFD packet to send [03:55:38]OFD Sender: No OFD packet to send [03:55:43]OFD Sender: No OFD packet to send [03:55:48]OFD Sender: No OFD packet to send [03:55:53]OFD Sender: No OFD packet to send [03:55:58]OFD Sender: No OFD packet to send [03:56:03]OFD Sender: No OFD packet to send [03:56:08]OFD Sender: No OFD packet to send [03:56:13]OFD Sender: No OFD packet to send [03:56:18]OFD Sender: No OFD packet to send [03:56:23]OFD Sender: No OFD packet to send [03:56:28]OFD Sender: No OFD packet to send [03:56:33]OFD Sender: No OFD packet to send [03:56:38]OFD Sender: No OFD packet to send [03:56:43]OFD Sender: No OFD packet to send [03:56:48]OFD Sender: No OFD packet to send [03:56:53]OFD Sender: No OFD packet to send [03:56:58]OFD Sender: No OFD packet to send [03:57:03]OFD Sender: No OFD packet to send [03:57:08]OFD Sender: No OFD packet to send [03:57:13]OFD Sender: No OFD packet to send [03:57:18]OFD Sender: No OFD packet to send [03:57:23]OFD Sender: No OFD packet to send [03:57:28]OFD Sender: No OFD packet to send [03:57:33]OFD Sender: No OFD packet to send [03:57:38]OFD Sender: No OFD packet to send [03:57:43]OFD Sender: No OFD packet to send [03:57:48]OFD Sender: No OFD packet to send [03:57:53]OFD Sender: No OFD packet to send [03:57:58]OFD Sender: No OFD packet to send [03:58:03]OFD Sender: No OFD packet to send [03:58:08]OFD Sender: No OFD packet to send [03:58:13]OFD Sender: No OFD packet to send [03:58:18]OFD Sender: No OFD packet to send [03:58:23]OFD Sender: No OFD packet to send [03:58:28]OFD Sender: No OFD packet to send [03:58:33]OFD Sender: No OFD packet to send [03:58:38]OFD Sender: No OFD packet to send [03:58:43]OFD Sender: No OFD packet to send [03:58:48]OFD Sender: No OFD packet to send [03:58:53]OFD Sender: No OFD packet to send [03:58:58]OFD Sender: No OFD packet to send [03:59:03]OFD Sender: No OFD packet to send [03:59:08]OFD Sender: No OFD packet to send [03:59:13]OFD Sender: No OFD packet to send [03:59:18]OFD Sender: No OFD packet to send [03:59:23]OFD Sender: No OFD packet to send [03:59:28]OFD Sender: No OFD packet to send [03:59:33]OFD Sender: No OFD packet to send [03:59:38]OFD Sender: No OFD packet to send [03:59:43]OFD Sender: No OFD packet to send [03:59:48]OFD Sender: No OFD packet to send [03:59:48]accept exits with 7 [03:59:48]New connection [03:59:48]New thread 3066924388 created [03:59:48]Thread 3067067748 joined [03:59:48]Waiting for new connection... [03:59:48] Sock 7.Parse request [03:59:48]Sock 7.Check first char [03:59:48]Sock 7.First char is OK [03:59:48]request: POST /json_proto HTTP/1.0 [03:59:48]Method: POST [03:59:48]URL: /json_proto [03:59:48]Method is POST - this is cgi request [03:59:48]url: /json_proto [03:59:48]query_string will be loaded in cgi processing [03:59:48]execute_cgi json_proto POST (null) [03:59:48]execute_cgi path=json_proto method=POST [03:59:48]POST find Content-Length [03:59:48]Host: 172.17.45.7:8080 [03:59:48]Content-Length: 820 [03:59:48]Content-Type: application/json [03:59:48] [03:59:48]POST finish read [03:59:48]Found Content-Length = 820 [03:59:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:59:48]execute_script... [03:59: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)949224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:59:48]POST & json_proto [03:59:48]process_json_proto [03:59:48]json parsed OK: [03:59:48]protocol is kg_v1.0 [03:59:48]action value=close_receipt [03:59:48]process_action close_receipt [03:59:48]cmd_close_receipt [03:59:48]MH_GetDate [03:59:48]Write to MH i2c: F0 00 00 67 00 56 [03:59:48]Write i2c OK [03:59:48]MH_I2C_Read... [03:59:48]Read from MH i2c: F0 [03:59:48]MH_I2C_Read... [03:59:48]Read from MH i2c: F0 09 00 [03:59:48]MH_I2C_Read... [03:59:48]Read from MH i2c: F0 09 00 67 00 00 35 C2 A5 66 90 0F 3E 66 A4 [03:59:48]GetLastDocTimeStamp 1722133800 [03:59:48]current date 1722139189 [03:59:48]FM_GetShiftState [03:59:48]SAM_PROTO_GetShiftState [03:59:48]wFMCommunicate request_size=4 [03:59:48]MH_SAM_APDU [03:59:48]CAPDU: 80 13 01 00 [03:59:48]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [03:59:48]Write i2c OK [03:59:48]MH_I2C_Read... [03:59:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:59:48]Read from MH i2c: E2 [03:59:48]MH_I2C_Read... [03:59:48]Read from MH i2c: E2 0E 00 [03:59:48]MH_I2C_Read... [03:59:48]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 BC [03:59:48]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [03:59:48]wFMCommunicate OK [03:59:48]SAM_PROTO_GetShiftState done [03:59:48]FM_GetShiftState done [03:59:48]opened in 1722125364 [03:59:48]opened+sec_in_day 1722211764 [03:59:48]quantity*price = 998982 [03:59:48]sum+1 = 998983 [03:59:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 9989.00 НСП 1% : 88.40 НДС 12% : 1060.87 Наличными: 0.00 Безнал.: 9989.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 18 28.07.2024 03:59 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118349 ФПД: 5144478583142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T035949&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118349&fm=5144478583142&tin=02508201610067®Number=0000000000092660&sum=998900 [03:59:50]StoreToDocumentArchive [03:59:50]shift 433 fd 118349 [03:59:50]save to /storage/0433/doc_00118349 [03:59:50]save last doc name /storage/0433/doc_00118349 to /storage/kkm_last_doc_name [03:59:50]save OK [03:59:50]Clear old archive folders... [03:59:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [03:59:50]tlvbuf is 0010C7E0 [03:59:50]SAM_PROTO_ClearQueue [03:59:50]wFMCommunicate request_size=4 [03:59:50]MH_SAM_APDU [03:59:50]CAPDU: 80 09 00 00 [03:59:50]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [03:59:50]Write i2c OK [03:59:50]MH_I2C_Read... [03:59:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:59:50]Read from MH i2c: E2 [03:59:50]MH_I2C_Read... [03:59:50]Read from MH i2c: E2 03 00 [03:59:50]MH_I2C_Read... [03:59:50]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [03:59:50]RAPDU: 90 00 [03:59:50]wFMCommunicate OK [03:59:50]SAM_PROTO_ClearQueue done [03:59:50]KKMCreateOFDPacket [03:59:50]OFDProtocolAddRootSTLVToBuf [03:59:50]FM_MakeSignedData [03:59:50]FM_MakeSignedData [03:59:50]SAM_PROTO_SignData [03:59:50]wFMCommunicate request_size=4 [03:59:50]MH_SAM_APDU [03:59:50]CAPDU: 80 0D 01 02 [03:59:50]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [03:59:50]Write i2c OK [03:59:50]MH_I2C_Read... [03:59:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:59:50]Read from MH i2c: E2 [03:59:50]MH_I2C_Read... [03:59:50]Read from MH i2c: E2 03 00 [03:59:50]MH_I2C_Read... [03:59:50]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [03:59:50]RAPDU: 90 00 [03:59:50]wFMCommunicate OK [03:59:50]wFMCommunicate request_size=255 [03:59:50]MH_SAM_APDU [03:59:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 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 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 35 C2 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4D CE 01 00 35 04 06 00 04 AD CA D1 [03:59:50]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 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 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 35 C2 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4D CE 01 00 35 04 06 00 04 AD CA D1 00 00 47 [03:59:50]Write i2c OK [03:59:50]MH_I2C_Read... [03:59:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:59:50]Read from MH i2c: E2 [03:59:50]MH_I2C_Read... [03:59:50]Read from MH i2c: E2 03 00 [03:59:50]MH_I2C_Read... [03:59:50]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [03:59:50]RAPDU: 90 00 [03:59:50]wFMCommunicate OK [03:59:50]wFMCommunicate request_size=7 [03:59:50]MH_SAM_APDU [03:59:50]CAPDU: 80 0D 02 02 02 89 66 [03:59:50]Write to MH i2c: E2 0A 00 78 00 80 0D 02 02 02 00 89 66 00 00 E5 [03:59:50]Write i2c OK [03:59:50]MH_I2C_Read... [03:59:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:59:50]Read from MH i2c: E2 [03:59:50]MH_I2C_Read... [03:59:50]Read from MH i2c: E2 03 00 [03:59:50]MH_I2C_Read... [03:59:50]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [03:59:50]RAPDU: 90 00 [03:59:50]wFMCommunicate OK [03:59:50]wFMCommunicate request_size=4 [03:59:50]MH_SAM_APDU [03:59:50]CAPDU: 80 0D 03 02 [03:59:50]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [03:59:50]Write i2c OK [03:59:50]MH_I2C_Read... [03:59:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:59:50]Read from MH i2c: E2 [03:59:50]MH_I2C_Read... [03:59:50]Read from MH i2c: E2 0B 00 [03:59:50]MH_I2C_Read... [03:59:50]Read from MH i2c: E2 0B 00 79 00 00 D4 F4 61 9D C1 EC 7D 86 90 00 6B [03:59:50]RAPDU: D4 F4 61 9D C1 EC 7D 86 90 00 [03:59:50]wFMCommunicate OK [03:59:50]SAM_PROTO_SignData done [03:59:50]FM_MakeSignedData done [03:59:50]CreateOFDProtocolMessage [03:59:50]wFMCommunicate request_size=4 [03:59:50]MH_SAM_APDU [03:59:50]CAPDU: 80 11 00 00 [03:59:50]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [03:59:50]Write i2c OK [03:59:50]MH_I2C_Read... [03:59:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:59:50]Read from MH i2c: E2 [03:59:50]MH_I2C_Read... [03:59:50]Read from MH i2c: E2 17 00 [03:59:50]MH_I2C_Read... [03:59:50]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4F [03:59:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [03:59:50]wFMCommunicate OK [03:59:50]CreateOFDProtocolMessage done [03:59:50]OFDSenderStorePacket 118349 [03:59:50]StoreOFDPacket docnum=118349 [03:59:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 1A 22 04 01 E6 A7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 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 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 35 C2 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4D CE 01 00 35 04 06 00 04 AD CA D1 89 66 D4 F4 61 9D C1 EC 7D 86 [03:59:50]CheckFolder [03:59:50]dirname=/storage/ofd_packets [03:59:50]CheckFolder done [03:59:50]ProducePacketName [03:59:50]name=ofd_packets/00118349 [03:59:50]NVStorageSaveData ofd_packets/00118349 [03:59:50]File name is /storage/ofd_packets/00118349 [03:59:50]Write 298 bytes [03:59:50]NVStorageSaveData done [03:59:50]OFDSenderStorePacket done [03:59:50]KKMCreateOFDPacket done [03:59:50]NVStorageSaveData kkm_last_timestamp [03:59:50]File name is /storage/kkm_last_timestamp [03:59:50]Write 4 bytes [03:59:50]NVStorageSaveData done [03:59:50]ExternCall_PrintAddStr [03:59:50]wPrintStart [03:59:50]Write to MH i2c: 01 00 00 7B 00 7B [03:59:50]Write i2c OK [03:59:50]MH_I2C_Read... [03:59:50]Read from MH i2c: 01 [03:59:50]MH_I2C_Read... [03:59:50]Read from MH i2c: 01 07 00 [03:59:50]MH_I2C_Read... [03:59:50]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [03:59:50]RasterBufferAndPrint [03:59:50]line Счет N : (1)949224 [03:59:50]line ИНН: 02508201610067 [03:59:50]line Контрольно-Кассовый Чек [03:59:50]line ПРОДАЖА [03:59:50]line ТРК (МРК, ГНК) : 21 [03:59:50]line Товар: 2710194800 [03:59:50]line ДТ-К-5 [03:59:50]line 131.100 * 76.20 [03:59:50]line = 9989.82 [03:59:50]line НДС 12% НСП 1% [03:59:50]line > о реализуемом товаре [03:59:50]line ОКРУГЛЕНИЕ: -0.82 [03:59:50]line ИТОГО: 9989.00 [03:59:50]line НСП 1% : 88.40 [03:59:50]line НДС 12% : 1060.87 [03:59:50]line Наличными: 0.00 [03:59:50]line Безнал.: 9989.00 [03:59:50]line Место: АЗС № 134 "Партнер Нефть" [03:59:50]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [03:59:50]line СНО: Общий режим [03:59:50]line Чек 18 28.07.2024 03:59 [03:59:50]line Смена: 433 ФФД: 1.0 [03:59:50]line ЗНМ: 0300000044 [03:59:50]line РНМ: 0000000000092660 [03:59:50]line Версия ККМ: 001 [03:59:50]line Платежная система: O! деньги [03:59:50]line ФМ: 0000000000874939 [03:59:50]line ФД: 118349 [03:59:50]line ФПД: 5144478583142 [03:59:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T035949&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118349&fm=5144478583142&tin=02508201610067®Number=0000000000092660&sum=998900 [03:59:50]OFD Sender: Processing packet 118349 [packets to send 86, broken 85] [03:59:50]ProducePacketName [03:59:50]name=ofd_packets/00118349 [03:59:50]OFD Sender: To server: pG, [03:59:50]CommunicateWithHost lk.salyk.kg:30040 [03:59:50]ConnectInit lk.salyk.kg [03:59:50]written 0, free lines is 4095 [03:59:51]Connected sock=10 [03:59:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 1A 22 04 01 E6 A7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 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 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 35 C2 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4D CE 01 00 35 04 06 00 04 AD CA D1 89 66 D4 F4 61 9D C1 EC 7D 86 [03:59:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A1 0C 47 00 4E B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4D CE 01 00 F4 03 04 00 C7 6F A5 66 B6 04 01 00 00 EB 05 62 24 6B 1F 4B 8D [03:59:51]CommunicateWithHost err = 0 [03:59:51]CheckOFDResponse [03:59:51]1017 (14) - 77093643461234 [03:59:51]1041 (16) - 0000000000874939 [03:59:51]1040 (4) - 118349 [03:59:51]1012 (4) - 27.07.2024 22:08 [03:59:51]1206 (1) - 0 [03:59:51]OFD Sender: Remove packet 118349 [03:59:51]ProducePacketName [03:59:51]name=ofd_packets/00118349 [03:59:51]NVStorageDeleteData [03:59:51]Write to MH i2c: 01 00 00 A5 00 A5 [03:59:51]Write i2c OK [03:59:51]MH_I2C_Read... [03:59:51]Read from MH i2c: 01 [03:59:51]MH_I2C_Read... [03:59:51]Read from MH i2c: 01 07 00 [03:59:51]MH_I2C_Read... [03:59:51]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 EB 0C A3 [03:59:51]RasterBufferAndPrint [03:59:51]line [03:59:51]line [03:59:51]line [03:59:51]line [03:59:51]line [03:59:51]written 0, free lines is 3314 [03:59:51]MH_Cut [03:59:51]Write to MH i2c: D1 01 00 AC 00 01 7E [03:59:51]Write i2c OK [03:59:51]MH_I2C_Read... [03:59:51]Read from MH i2c: D1 [03:59:51]MH_I2C_Read... [03:59:51]Read from MH i2c: D1 01 00 [03:59:51]MH_I2C_Read... [03:59:51]Read from MH i2c: D1 01 00 AC 00 00 7D [03:59:51]Write to MH i2c: 01 00 00 AD 00 AD [03:59:51]Write i2c OK [03:59:51]MH_I2C_Read... [03:59:51]OFD Sender: No OFD packet to send [03:59:52]*** Cut start [03:59:52]*** Partial cut [03:59:52]*** CUTSNS_PIN = 1 [03:59:52]*** CUTSNS_PIN = 0 [03:59:52]*** Brake cut motor [03:59:52]Read from MH i2c: 01 [03:59:52]MH_I2C_Read... [03:59:52]*** Stop cut motor [03:59:52]*** Cut end [03:59:52]Read from MH i2c: 01 07 00 [03:59:52]MH_I2C_Read... [03:59:52]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [03:59:52]process_action close_receipt done [03:59:52]requested_data is exist [03:59:52]produce_requested_data [03:59:52]requested_item fm.sn is exist - process it [03:59:52]wFMCommunicate request_size=4 [03:59:52]MH_SAM_APDU [03:59:52]CAPDU: 80 11 00 00 [03:59:52]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [03:59:52]Write i2c OK [03:59:52]MH_I2C_Read... [03:59:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:59:52]Read from MH i2c: E2 [03:59:52]MH_I2C_Read... [03:59:52]Read from MH i2c: E2 17 00 [03:59:52]MH_I2C_Read... [03:59:52]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 83 [03:59:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [03:59:52]wFMCommunicate OK [03:59:52]requested_item fd.num is exist - process it [03:59:52]SAM_PROTO_GetFieldsCounters [03:59:52]wFMCommunicate request_size=4 [03:59:52]MH_SAM_APDU [03:59:52]CAPDU: 80 13 00 00 [03:59:52]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [03:59:52]Write i2c OK [03:59:52]MH_I2C_Read... [03:59:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:59:52]Read from MH i2c: E2 [03:59:52]MH_I2C_Read... [03:59:52]Read from MH i2c: E2 62 00 [03:59:52]MH_I2C_Read... [03:59:52]Read from MH i2c: E2 62 00 AF 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4D CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [03:59:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4D CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:59:52]wFMCommunicate OK [03:59:52]SAM_PROTO_GetFieldsCounters done [03:59:52]requested_item shift.num is exist - process it [03:59:52]requested_item shift.opened is exist - process it [03:59:52]req_shift_opened [03:59:52]FM_GetShiftState [03:59:52]SAM_PROTO_GetShiftState [03:59:52]wFMCommunicate request_size=4 [03:59:52]MH_SAM_APDU [03:59:52]CAPDU: 80 13 01 00 [03:59:52]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [03:59:52]Write i2c OK [03:59:52]MH_I2C_Read... [03:59:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:59:52]Read from MH i2c: E2 [03:59:52]MH_I2C_Read... [03:59:52]Read from MH i2c: E2 0E 00 [03:59:52]MH_I2C_Read... [03:59:52]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 04 [03:59:52]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [03:59:52]wFMCommunicate OK [03:59:52]SAM_PROTO_GetShiftState done [03:59:52]FM_GetShiftState done [03:59:52]req_shift_opened done [03:59:52]requested_item shift.open_date is exist - process it [03:59:52]req_shift_open_date [03:59:52]req_shift_open_date done [03:59:52]produce_requested_data done [03:59:52]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118349,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [03:59:52]process_action_free close_receipt [03:59:52]json_value_free [03:59:52]json_value_free done [03:59:52]process_json_proto returns [03:59:52]Send response to host [03:59:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118349,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [03:59:52]free response buf [03:59:52]execute_script done [03:59:52]execute_script returns [03:59:52]free content buf [03:59:52]Sock 7.Close socket [03:59:52]Sock 7.Thread stoped [03:59:56]OFD Sender: No OFD packet to send [03:59:57]accept exits with 9 [03:59:57]New connection [03:59:57]New thread 3067067748 created [03:59:57]Thread 3066924388 joined [03:59:57]Waiting for new connection... [03:59:57] Sock 9.Parse request [03:59:57]Sock 9.Check first char [03:59:57]Sock 9.First char is OK [03:59:57]request: POST /json_proto HTTP/1.0 [03:59:57]Method: POST [03:59:57]URL: /json_proto [03:59:57]Method is POST - this is cgi request [03:59:57]url: /json_proto [03:59:57]query_string will be loaded in cgi processing [03:59:57]execute_cgi json_proto POST (null) [03:59:57]execute_cgi path=json_proto method=POST [03:59:57]POST find Content-Length [03:59:57]Host: 172.17.45.7:8080 [03:59:57]Content-Length: 820 [03:59:57]Content-Type: application/json [03:59:57] [03:59:57]POST finish read [03:59:57]Found Content-Length = 820 [03:59:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:59:57]execute_script... [03:59:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:59:57]POST & json_proto [03:59:57]process_json_proto [03:59:57]json parsed OK: [03:59:57]protocol is kg_v1.0 [03:59:57]action value=close_receipt [03:59:57]process_action close_receipt [03:59:57]cmd_close_receipt [03:59:57]MH_GetDate [03:59:57]Write to MH i2c: F0 00 00 B1 00 A0 [03:59:57]Write i2c OK [03:59:57]MH_I2C_Read... [03:59:57]Read from MH i2c: F0 [03:59:57]MH_I2C_Read... [03:59:57]Read from MH i2c: F0 09 00 [03:59:57]MH_I2C_Read... [03:59:57]Read from MH i2c: F0 09 00 B1 00 00 3E C2 A5 66 90 0F 3E 66 F7 [03:59:57]GetLastDocTimeStamp 1722139189 [03:59:57]current date 1722139198 [03:59:57]FM_GetShiftState [03:59:57]SAM_PROTO_GetShiftState [03:59:57]wFMCommunicate request_size=4 [03:59:57]MH_SAM_APDU [03:59:57]CAPDU: 80 13 01 00 [03:59:57]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [03:59:57]Write i2c OK [03:59:57]MH_I2C_Read... [03:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:59:57]Read from MH i2c: E2 [03:59:57]MH_I2C_Read... [03:59:57]Read from MH i2c: E2 0E 00 [03:59:57]MH_I2C_Read... [03:59:57]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 06 [03:59:57]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [03:59:57]wFMCommunicate OK [03:59:57]SAM_PROTO_GetShiftState done [03:59:57]FM_GetShiftState done [03:59:57]opened in 1722125364 [03:59:57]opened+sec_in_day 1722211764 [03:59:57]quantity*price = 998982 [03:59:57]sum+1 = 998983 [03:59:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 9989.00 НСП 1% : 88.40 НДС 12% : 1060.87 Наличными: 0.00 Безнал.: 9989.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 19 28.07.2024 03:59 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118350 ФПД: 87004216410041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T035958&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118350&fm=87004216410041&tin=02508201610067®Number=0000000000092660&sum=998900 [03:59:58]StoreToDocumentArchive [03:59:58]shift 433 fd 118350 [03:59:58]save to /storage/0433/doc_00118350 [03:59:58]save last doc name /storage/0433/doc_00118350 to /storage/kkm_last_doc_name [03:59:58]save OK [03:59:58]Clear old archive folders... [03:59:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [03:59:58]tlvbuf is 001426B0 [03:59:58]SAM_PROTO_ClearQueue [03:59:58]wFMCommunicate request_size=4 [03:59:58]MH_SAM_APDU [03:59:58]CAPDU: 80 09 00 00 [03:59:58]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [03:59:58]Write i2c OK [03:59:58]MH_I2C_Read... [03:59:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:59:58]Read from MH i2c: E2 [03:59:58]MH_I2C_Read... [03:59:58]Read from MH i2c: E2 03 00 [03:59:58]MH_I2C_Read... [03:59:58]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [03:59:58]RAPDU: 90 00 [03:59:58]wFMCommunicate OK [03:59:58]SAM_PROTO_ClearQueue done [03:59:58]KKMCreateOFDPacket [03:59:58]OFDProtocolAddRootSTLVToBuf [03:59:58]FM_MakeSignedData [03:59:58]FM_MakeSignedData [03:59:58]SAM_PROTO_SignData [03:59:58]wFMCommunicate request_size=4 [03:59:58]MH_SAM_APDU [03:59:58]CAPDU: 80 0D 01 02 [03:59:58]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [03:59:58]Write i2c OK [03:59:58]MH_I2C_Read... [03:59:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:59:58]Read from MH i2c: E2 [03:59:58]MH_I2C_Read... [03:59:58]Read from MH i2c: E2 03 00 [03:59:58]MH_I2C_Read... [03:59:58]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [03:59:58]RAPDU: 90 00 [03:59:58]wFMCommunicate OK [03:59:58]wFMCommunicate request_size=255 [03:59:58]MH_SAM_APDU [03:59:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 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 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 3E C2 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4E CE 01 00 35 04 06 00 4F 21 3F 69 [03:59:58]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 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 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 3E C2 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4E CE 01 00 35 04 06 00 4F 21 3F 69 00 00 68 [03:59:58]Write i2c OK [03:59:58]MH_I2C_Read... [03:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:59:59]Read from MH i2c: E2 [03:59:59]MH_I2C_Read... [03:59:59]Read from MH i2c: E2 03 00 [03:59:59]MH_I2C_Read... [03:59:59]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [03:59:59]RAPDU: 90 00 [03:59:59]wFMCommunicate OK [03:59:59]wFMCommunicate request_size=7 [03:59:59]MH_SAM_APDU [03:59:59]CAPDU: 80 0D 02 02 02 BF B9 [03:59:59]Write to MH i2c: E2 0A 00 C2 00 80 0D 02 02 02 00 BF B9 00 00 B8 [03:59:59]Write i2c OK [03:59:59]MH_I2C_Read... [03:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:59:59]Read from MH i2c: E2 [03:59:59]MH_I2C_Read... [03:59:59]Read from MH i2c: E2 03 00 [03:59:59]MH_I2C_Read... [03:59:59]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [03:59:59]RAPDU: 90 00 [03:59:59]wFMCommunicate OK [03:59:59]wFMCommunicate request_size=4 [03:59:59]MH_SAM_APDU [03:59:59]CAPDU: 80 0D 03 02 [03:59:59]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [03:59:59]Write i2c OK [03:59:59]MH_I2C_Read... [03:59:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:59:59]Read from MH i2c: E2 [03:59:59]MH_I2C_Read... [03:59:59]Read from MH i2c: E2 0B 00 [03:59:59]MH_I2C_Read... [03:59:59]Read from MH i2c: E2 0B 00 C3 00 00 CE CC 7A B0 BD 2A 50 0D 90 00 47 [03:59:59]RAPDU: CE CC 7A B0 BD 2A 50 0D 90 00 [03:59:59]wFMCommunicate OK [03:59:59]SAM_PROTO_SignData done [03:59:59]FM_MakeSignedData done [03:59:59]CreateOFDProtocolMessage [03:59:59]wFMCommunicate request_size=4 [03:59:59]MH_SAM_APDU [03:59:59]CAPDU: 80 11 00 00 [03:59:59]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [03:59:59]Write i2c OK [03:59:59]MH_I2C_Read... [03:59:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:59:59]Read from MH i2c: E2 [03:59:59]MH_I2C_Read... [03:59:59]Read from MH i2c: E2 17 00 [03:59:59]MH_I2C_Read... [03:59:59]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 99 [03:59:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [03:59:59]wFMCommunicate OK [03:59:59]CreateOFDProtocolMessage done [03:59:59]OFDSenderStorePacket 118350 [03:59:59]StoreOFDPacket docnum=118350 [03:59:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 79 1B 04 01 42 B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 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 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 3E C2 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4E CE 01 00 35 04 06 00 4F 21 3F 69 BF B9 CE CC 7A B0 BD 2A 50 0D [03:59:59]CheckFolder [03:59:59]dirname=/storage/ofd_packets [03:59:59]CheckFolder done [03:59:59]ProducePacketName [03:59:59]name=ofd_packets/00118350 [03:59:59]NVStorageSaveData ofd_packets/00118350 [03:59:59]File name is /storage/ofd_packets/00118350 [03:59:59]Write 298 bytes [03:59:59]NVStorageSaveData done [03:59:59]OFDSenderStorePacket done [03:59:59]KKMCreateOFDPacket done [03:59:59]NVStorageSaveData kkm_last_timestamp [03:59:59]File name is /storage/kkm_last_timestamp [03:59:59]Write 4 bytes [03:59:59]NVStorageSaveData done [03:59:59]ExternCall_PrintAddStr [03:59:59]wPrintStart [03:59:59]Write to MH i2c: 01 00 00 C5 00 C5 [03:59:59]Write i2c OK [03:59:59]MH_I2C_Read... [03:59:59]Read from MH i2c: 01 [03:59:59]MH_I2C_Read... [03:59:59]Read from MH i2c: 01 07 00 [03:59:59]MH_I2C_Read... [03:59:59]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [03:59:59]RasterBufferAndPrint [03:59:59]line Счет N : (1)949223 [03:59:59]line ИНН: 02508201610067 [03:59:59]line Контрольно-Кассовый Чек [03:59:59]line ПРОДАЖА [03:59:59]line ТРК (МРК, ГНК) : 11 [03:59:59]line Товар: 2710194800 [03:59:59]line ДТ-К-5 [03:59:59]line 131.100 * 76.20 [03:59:59]line = 9989.82 [03:59:59]line НДС 12% НСП 1% [03:59:59]line > о реализуемом товаре [03:59:59]line ОКРУГЛЕНИЕ: -0.82 [03:59:59]line ИТОГО: 9989.00 [03:59:59]line НСП 1% : 88.40 [03:59:59]line НДС 12% : 1060.87 [03:59:59]line Наличными: 0.00 [03:59:59]line Безнал.: 9989.00 [03:59:59]line Место: АЗС № 134 "Партнер Нефть" [03:59:59]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [03:59:59]line СНО: Общий режим [03:59:59]line Чек 19 28.07.2024 03:59 [03:59:59]line Смена: 433 ФФД: 1.0 [03:59:59]line ЗНМ: 0300000044 [03:59:59]line РНМ: 0000000000092660 [03:59:59]line Версия ККМ: 001 [03:59:59]line Платежная система: O! деньги [03:59:59]line ФМ: 0000000000874939 [03:59:59]line ФД: 118350 [03:59:59]line ФПД: 87004216410041 [03:59:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T035958&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118350&fm=87004216410041&tin=02508201610067®Number=0000000000092660&sum=998900 [03:59:59]written 0, free lines is 4095 [03:59:59]OFD Sender: Processing packet 118350 [packets to send 86, broken 85] [03:59:59]ProducePacketName [03:59:59]name=ofd_packets/00118350 [03:59:59]OFD Sender: To server: pG, [03:59:59]CommunicateWithHost lk.salyk.kg:30040 [03:59:59]ConnectInit lk.salyk.kg [03:59:59]Connected sock=10 [03:59:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 79 1B 04 01 42 B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 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 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 3E C2 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4E CE 01 00 35 04 06 00 4F 21 3F 69 BF B9 CE CC 7A B0 BD 2A 50 0D [03:59:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 50 04 47 00 7F 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 39 33 39 10 04 04 00 4E CE 01 00 F4 03 04 00 CF 6F A5 66 B6 04 01 00 00 FC 0C 2A C5 AE F3 4D AA [03:59:59]CommunicateWithHost err = 0 [03:59:59]CheckOFDResponse [03:59:59]1017 (14) - 77093643461234 [03:59:59]1041 (16) - 0000000000874939 [03:59:59]1040 (4) - 118350 [03:59:59]1012 (4) - 27.07.2024 22:08 [03:59:59]1206 (1) - 0 [03:59:59]OFD Sender: Remove packet 118350 [03:59:59]ProducePacketName [03:59:59]name=ofd_packets/00118350 [03:59:59]NVStorageDeleteData [03:59:59]Write to MH i2c: 01 00 00 EF 00 EF [03:59:59]Write i2c OK [03:59:59]MH_I2C_Read... [03:59:59]Read from MH i2c: 01 [03:59:59]MH_I2C_Read... [03:59:59]Read from MH i2c: 01 07 00 [03:59:59]MH_I2C_Read... [03:59:59]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 03 0D 06 [03:59:59]RasterBufferAndPrint [03:59:59]line [03:59:59]line [03:59:59]line [03:59:59]line [03:59:59]line [03:59:59]written 0, free lines is 3339 [03:59:59]MH_Cut [03:59:59]Write to MH i2c: D1 01 00 F6 00 01 C8 [03:59:59]Write i2c OK [03:59:59]MH_I2C_Read... [03:59:59]Read from MH i2c: D1 [03:59:59]MH_I2C_Read... [03:59:59]Read from MH i2c: D1 01 00 [03:59:59]MH_I2C_Read... [03:59:59]Read from MH i2c: D1 01 00 F6 00 00 C7 [03:59:59]Write to MH i2c: 01 00 00 F7 00 F7 [03:59:59]Write i2c OK [03:59:59]MH_I2C_Read... [04:00:00]OFD Sender: No OFD packet to send [04:00:00]*** Cut start [04:00:00]*** Partial cut [04:00:00]*** CUTSNS_PIN = 1 [04:00:00]*** CUTSNS_PIN = 0 [04:00:00]*** Brake cut motor [04:00:01]Read from MH i2c: 01 [04:00:01]MH_I2C_Read... [04:00:01]*** Stop cut motor [04:00:01]*** Cut end [04:00:01]Read from MH i2c: 01 07 00 [04:00:01]MH_I2C_Read... [04:00:01]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [04:00:01]process_action close_receipt done [04:00:01]requested_data is exist [04:00:01]produce_requested_data [04:00:01]requested_item fm.sn is exist - process it [04:00:01]wFMCommunicate request_size=4 [04:00:01]MH_SAM_APDU [04:00:01]CAPDU: 80 11 00 00 [04:00:01]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [04:00:01]Write i2c OK [04:00:01]MH_I2C_Read... [04:00:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:00:01]Read from MH i2c: E2 [04:00:01]MH_I2C_Read... [04:00:01]Read from MH i2c: E2 17 00 [04:00:01]MH_I2C_Read... [04:00:01]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CD [04:00:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:00:01]wFMCommunicate OK [04:00:01]requested_item fd.num is exist - process it [04:00:01]SAM_PROTO_GetFieldsCounters [04:00:01]wFMCommunicate request_size=4 [04:00:01]MH_SAM_APDU [04:00:01]CAPDU: 80 13 00 00 [04:00:01]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [04:00:01]Write i2c OK [04:00:01]MH_I2C_Read... [04:00:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:00:01]Read from MH i2c: E2 [04:00:01]MH_I2C_Read... [04:00:01]Read from MH i2c: E2 62 00 [04:00:01]MH_I2C_Read... [04:00:01]Read from MH i2c: E2 62 00 F9 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4E CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [04:00:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4E CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:00:01]wFMCommunicate OK [04:00:01]SAM_PROTO_GetFieldsCounters done [04:00:01]requested_item shift.num is exist - process it [04:00:01]requested_item shift.opened is exist - process it [04:00:01]req_shift_opened [04:00:01]FM_GetShiftState [04:00:01]SAM_PROTO_GetShiftState [04:00:01]wFMCommunicate request_size=4 [04:00:01]MH_SAM_APDU [04:00:01]CAPDU: 80 13 01 00 [04:00:01]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [04:00:01]Write i2c OK [04:00:01]MH_I2C_Read... [04:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:00:01]Read from MH i2c: E2 [04:00:01]MH_I2C_Read... [04:00:01]Read from MH i2c: E2 0E 00 [04:00:01]MH_I2C_Read... [04:00:01]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 4E [04:00:01]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [04:00:01]wFMCommunicate OK [04:00:01]SAM_PROTO_GetShiftState done [04:00:01]FM_GetShiftState done [04:00:01]req_shift_opened done [04:00:01]requested_item shift.open_date is exist - process it [04:00:01]req_shift_open_date [04:00:01]req_shift_open_date done [04:00:01]produce_requested_data done [04:00:01]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118350,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [04:00:01]process_action_free close_receipt [04:00:01]json_value_free [04:00:01]json_value_free done [04:00:01]process_json_proto returns [04:00:01]Send response to host [04:00:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118350,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [04:00:01]free response buf [04:00:01]execute_script done [04:00:01]execute_script returns [04:00:01]free content buf [04:00:01]Sock 9.Close socket [04:00:01]Sock 9.Thread stoped [04:00:05]OFD Sender: No OFD packet to send [04:00:10]OFD Sender: No OFD packet to send [04:00:15]OFD Sender: No OFD packet to send [04:00:20]OFD Sender: No OFD packet to send [04:00:25]OFD Sender: No OFD packet to send [04:00:30]OFD Sender: No OFD packet to send [04:00:35]OFD Sender: No OFD packet to send [04:00:40]OFD Sender: No OFD packet to send [04:00:45]OFD Sender: No OFD packet to send [04:00:50]OFD Sender: No OFD packet to send [04:00:55]OFD Sender: No OFD packet to send [04:01:00]OFD Sender: No OFD packet to send [04:01:05]OFD Sender: No OFD packet to send [04:01:10]OFD Sender: No OFD packet to send [04:01:15]OFD Sender: No OFD packet to send [04:01:20]OFD Sender: No OFD packet to send [04:01:25]OFD Sender: No OFD packet to send [04:01:30]OFD Sender: No OFD packet to send [04:01:35]OFD Sender: No OFD packet to send [04:01:40]OFD Sender: No OFD packet to send [04:01:45]OFD Sender: No OFD packet to send [04:01:50]OFD Sender: No OFD packet to send [04:01:55]OFD Sender: No OFD packet to send [04:02:00]OFD Sender: No OFD packet to send [04:02:05]OFD Sender: No OFD packet to send [04:02:10]OFD Sender: No OFD packet to send [04:02:15]OFD Sender: No OFD packet to send [04:02:20]OFD Sender: No OFD packet to send [04:02:25]OFD Sender: No OFD packet to send [04:02:30]OFD Sender: No OFD packet to send [04:02:35]OFD Sender: No OFD packet to send [04:02:40]OFD Sender: No OFD packet to send [04:02:45]OFD Sender: No OFD packet to send [04:02:50]OFD Sender: No OFD packet to send [04:02:55]OFD Sender: No OFD packet to send [04:03:00]OFD Sender: No OFD packet to send [04:03:05]OFD Sender: No OFD packet to send [04:03:10]OFD Sender: No OFD packet to send [04:03:15]OFD Sender: No OFD packet to send [04:03:20]OFD Sender: No OFD packet to send [04:03:25]OFD Sender: No OFD packet to send [04:03:30]OFD Sender: No OFD packet to send [04:03:35]OFD Sender: No OFD packet to send [04:03:40]OFD Sender: No OFD packet to send [04:03:45]OFD Sender: No OFD packet to send [04:03:50]OFD Sender: No OFD packet to send [04:03:55]OFD Sender: No OFD packet to send [04:04:00]OFD Sender: No OFD packet to send [04:04:05]OFD Sender: No OFD packet to send [04:04:10]OFD Sender: No OFD packet to send [04:04:15]OFD Sender: No OFD packet to send [04:04:20]OFD Sender: No OFD packet to send [04:04:25]OFD Sender: No OFD packet to send [04:04:30]OFD Sender: No OFD packet to send [04:04:35]OFD Sender: No OFD packet to send [04:04:40]OFD Sender: No OFD packet to send [04:04:45]OFD Sender: No OFD packet to send [04:04:50]OFD Sender: No OFD packet to send [04:04:55]OFD Sender: No OFD packet to send [04:05:00]OFD Sender: No OFD packet to send [04:05:05]OFD Sender: No OFD packet to send [04:05:10]OFD Sender: No OFD packet to send [04:05:15]OFD Sender: No OFD packet to send [04:05:20]OFD Sender: No OFD packet to send [04:05: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:55]OFD Sender: No OFD packet to send [04:08:00]OFD Sender: No OFD packet to send [04:08:05]OFD Sender: No OFD packet to send [04:08:10]OFD Sender: No OFD packet to send [04:08:15]OFD Sender: No OFD packet to send [04:08:20]OFD Sender: No OFD packet to send [04:08:25]OFD Sender: No OFD packet to send [04:08:30]OFD Sender: No OFD packet to send [04:08:35]OFD Sender: No OFD packet to send [04:08:40]OFD Sender: No OFD packet to send [04:08:45]OFD Sender: No OFD packet to send [04:08:50]OFD Sender: No OFD packet to send [04:08:55]OFD Sender: No OFD packet to send [04:09:00]OFD Sender: No OFD packet to send [04:09:05]OFD Sender: No OFD packet to send [04:09:10]OFD Sender: No OFD packet to send [04:09:15]OFD Sender: No OFD packet to send [04:09:20]OFD Sender: No OFD packet to send [04:09:25]OFD Sender: No OFD packet to send [04:09:30]OFD Sender: No OFD packet to send [04:09:35]OFD Sender: No OFD packet to send [04:09:40]OFD Sender: No OFD packet to send [04:09:45]OFD Sender: No OFD packet to send [04:09:50]OFD Sender: No OFD packet to send [04:09:55]OFD Sender: No OFD packet to send [04:10:00]OFD Sender: No OFD packet to send [04:10:05]OFD Sender: No OFD packet to send [04:10:10]OFD Sender: No OFD packet to send [04:10:15]OFD Sender: No OFD packet to send [04:10:20]OFD Sender: No OFD packet to send [04:10:25]OFD Sender: No OFD packet to send [04:10:30]OFD Sender: No OFD packet to send [04:10:35]OFD Sender: No OFD packet to send [04:10:40]OFD Sender: No OFD packet to send [04:10:45]OFD Sender: No OFD packet to send [04:10:50]OFD Sender: No OFD packet to send [04:10:55]OFD Sender: No OFD packet to send [04:11:00]OFD Sender: No OFD packet to send [04:11:05]OFD Sender: No OFD packet to send [04:11:10]OFD Sender: No OFD packet to send [04:11:15]OFD Sender: No OFD packet to send [04:11:20]OFD Sender: No OFD packet to send [04:11:25]OFD Sender: No OFD packet to send [04:11:30]OFD Sender: No OFD packet to send [04:11:35]OFD Sender: No OFD packet to send [04:11:40]OFD Sender: No OFD packet to send [04:11:45]OFD Sender: No OFD packet to send [04:11:50]OFD Sender: No OFD packet to send [04:11:55]OFD Sender: No OFD packet to send [04:12:00]OFD Sender: No OFD packet to send [04:12:05]OFD Sender: No OFD packet to send [04:12:10]OFD Sender: No OFD packet to send [04:12:15]OFD Sender: No OFD packet to send [04:12:20]OFD Sender: No OFD packet to send [04:12:25]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:45]OFD Sender: No OFD packet to send [04:12:51]OFD Sender: No OFD packet to send [04:12:56]OFD Sender: No OFD packet to send [04:13:01]OFD Sender: No OFD packet to send [04:13:06]OFD Sender: No OFD packet to send [04:13:11]OFD Sender: No OFD packet to send [04:13:16]OFD Sender: No OFD packet to send [04:13:21]OFD Sender: No OFD packet to send [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14:26]OFD Sender: No OFD packet to send [04:14:31]OFD Sender: No OFD packet to send [04:14:36]OFD Sender: No OFD packet to send [04:14:41]OFD Sender: No OFD packet to send [04:14:46]OFD Sender: No OFD packet to send [04:14:51]OFD Sender: No OFD packet to send [04:14:56]OFD Sender: No OFD packet to send [04:15:01]OFD Sender: No OFD packet to send [04:15:06]OFD Sender: No OFD packet to send [04:15:11]OFD Sender: No OFD packet to send [04:15:16]OFD Sender: No OFD packet to send [04:15:21]OFD Sender: No OFD packet to send [04:15:26]OFD Sender: No OFD packet to send [04:15:31]OFD Sender: No OFD packet to send [04:15:36]OFD Sender: No OFD packet to send [04:15:41]OFD Sender: No OFD packet to send [04:15:46]OFD Sender: No OFD packet to send [04:15:51]OFD Sender: No OFD packet to send [04:15:56]OFD Sender: No OFD packet to send [04:16:01]OFD Sender: No OFD packet to send [04:16:06]OFD Sender: No OFD packet to send [04:16:11]OFD Sender: No OFD packet to send [04:16:16]OFD Sender: No OFD packet to send [04:16:21]OFD Sender: No OFD packet to send [04:16:26]OFD Sender: No OFD packet to send [04:16:31]OFD Sender: No OFD packet to send [04:16:36]OFD Sender: No OFD packet to send [04:16:41]OFD Sender: No OFD packet to send [04:16:46]OFD Sender: No OFD packet to send [04:16:51]OFD Sender: No OFD packet to send [04:16:56]OFD Sender: No OFD packet to send [04:17:01]OFD Sender: No OFD packet to send [04:17:06]OFD Sender: No OFD packet to send [04:17:11]OFD Sender: No OFD packet to send [04:17:16]OFD Sender: No OFD packet to send [04:17:21]OFD Sender: No OFD packet to send [04:17:26]OFD Sender: No OFD packet to send [04:17:31]OFD Sender: No OFD packet to send [04:17:36]OFD Sender: No OFD packet to send [04:17:41]OFD Sender: No OFD packet to send [04:17:46]OFD Sender: No OFD packet to send [04:17:51]OFD Sender: No OFD packet to send [04:17:56]OFD Sender: No OFD packet to send [04:18:01]OFD Sender: No OFD packet to send [04:18:06]OFD Sender: No OFD packet to send [04:18:11]OFD Sender: No OFD packet to send [04:18:16]OFD Sender: No OFD packet to send [04:18:21]OFD Sender: No OFD packet to send [04:18:26]OFD Sender: No OFD packet to send [04:18:31]OFD Sender: No OFD packet to send [04:18:36]OFD Sender: No OFD packet to send [04:18:41]OFD Sender: No OFD packet to send [04:18:46]OFD Sender: No OFD packet to send [04:18:51]OFD Sender: No OFD packet to send [04:18:56]OFD Sender: No OFD packet to send [04:19:01]OFD Sender: No OFD packet to send [04:19:06]OFD Sender: No OFD packet to send [04:19:11]OFD Sender: No OFD packet to send [04:19:16]OFD Sender: No OFD packet to send [04:19:21]OFD Sender: No OFD packet to send [04:19:26]OFD Sender: No OFD packet to send [04:19:31]OFD Sender: No OFD packet to send [04:19:36]OFD Sender: No OFD packet to send [04:19:41]OFD Sender: No OFD packet to send [04:19:46]OFD Sender: No OFD packet to send [04:19:51]OFD Sender: No OFD packet to send [04:19:56]OFD Sender: No OFD packet to send [04:20:01]OFD Sender: No OFD packet to send [04:20:06]OFD Sender: No OFD packet to send [04:20:11]OFD Sender: No OFD packet to send [04:20:16]OFD Sender: No OFD packet to send [04:20:21]OFD Sender: No OFD packet to send [04:20:26]OFD Sender: No OFD packet to send [04:20:31]OFD Sender: No OFD packet to send [04:20:36]OFD Sender: No OFD packet to send [04:20:41]OFD Sender: No OFD packet to send [04:20:46]OFD Sender: No OFD packet to send [04:20:51]OFD Sender: No OFD packet to send [04:20:56]OFD Sender: No OFD packet to send [04:21:01]OFD Sender: No OFD packet to send [04:21:06]OFD Sender: No OFD packet to send [04:21:11]OFD Sender: No OFD packet to send [04:21:16]OFD Sender: No OFD packet to send [04:21:21]OFD Sender: No OFD packet to send [04:21:26]OFD Sender: No OFD packet to send [04:21:31]OFD Sender: No OFD packet to send [04:21:36]OFD Sender: No OFD packet to send [04:21:41]OFD Sender: No OFD packet to send [04:21:46]OFD Sender: No OFD packet to send [04:21:51]OFD Sender: No OFD packet to send [04:21:56]OFD Sender: No OFD packet to send [04:22:01]OFD Sender: No OFD packet to send [04:22:06]OFD Sender: No OFD packet to send [04:22:11]OFD Sender: No OFD packet to send [04:22:16]OFD Sender: No OFD packet to send [04:22:21]OFD Sender: No OFD packet to send [04:22:26]OFD Sender: No OFD packet to send [04:22:31]OFD Sender: No OFD packet to send [04:22:36]OFD Sender: No OFD packet to send [04:22:41]OFD Sender: No OFD packet to send [04:22:46]OFD Sender: No OFD packet to send [04:22:51]OFD Sender: No OFD packet to send [04:22:56]OFD Sender: No OFD packet to send [04:23:01]OFD Sender: No OFD packet to send [04:23:06]OFD Sender: No OFD packet to send [04:23:11]OFD Sender: No OFD packet to send [04:23:16]OFD Sender: No OFD packet to send [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:46]OFD Sender: No OFD packet to send [04:23:51]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:21]OFD Sender: No OFD packet to send [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:46]OFD Sender: No OFD packet to send [04:24:51]OFD Sender: No OFD packet to send [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:11]OFD Sender: No OFD packet to send [04:25:16]OFD Sender: No OFD packet to send [04:25:21]OFD Sender: No OFD packet to send [04:25:26]OFD Sender: No OFD packet to send [04:25:31]OFD Sender: No OFD packet to send [04:25:36]OFD Sender: No OFD packet to send [04:25:41]OFD Sender: No OFD packet to send [04:25:46]OFD Sender: No OFD packet to send [04:25:51]OFD Sender: No OFD packet to send [04:25:56]OFD Sender: No OFD packet to send [04:26:01]OFD Sender: No OFD packet to send [04:26:06]OFD Sender: No OFD packet to send [04:26:11]OFD Sender: No OFD packet to send [04:26:16]OFD Sender: No OFD packet to send [04:26:21]OFD Sender: No OFD packet to send [04:26:26]OFD Sender: No OFD packet to send [04:26:31]OFD Sender: No OFD packet to send [04:26:36]OFD Sender: No OFD packet to send [04:26:41]OFD Sender: No OFD packet to send [04:26:46]OFD Sender: No OFD packet to send [04:26:51]OFD Sender: No OFD packet to send [04:26:56]OFD Sender: No OFD packet to send [04:27:01]OFD Sender: No OFD packet to send [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:16]OFD Sender: No OFD packet to send [04:27:21]OFD Sender: No OFD packet to send [04:27:26]OFD Sender: No OFD packet to send [04:27:31]OFD Sender: No OFD packet to send [04:27:36]OFD Sender: No OFD packet to send [04:27:41]OFD Sender: No OFD packet to send [04:27:46]OFD Sender: No OFD packet to send [04:27:51]OFD Sender: No OFD packet to send [04:27:56]OFD Sender: No OFD packet to send [04:28:01]OFD Sender: No OFD packet to send [04:28:06]OFD Sender: No OFD packet to send [04:28:11]OFD Sender: No OFD packet to send [04:28:16]OFD Sender: No OFD packet to send [04:28:21]OFD Sender: No OFD packet to send [04:28:26]OFD Sender: No OFD packet to send [04:28:31]OFD Sender: No OFD packet to send [04:28:36]OFD Sender: No OFD packet to send [04:28:42]OFD Sender: No OFD packet to send [04:28:47]OFD Sender: No OFD packet to send [04:28:52]OFD Sender: No OFD packet to send [04:28:57]OFD Sender: No OFD packet to send [04:29:02]OFD Sender: No OFD packet to send [04:29:07]OFD Sender: No OFD packet to send [04:29:12]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:32]OFD Sender: No OFD packet to send [04:29:37]OFD Sender: No OFD packet to send [04:29:42]OFD Sender: No OFD packet to send [04:29:47]OFD Sender: No OFD packet to send [04:29:52]OFD Sender: No OFD packet to send [04:29:57]OFD Sender: No OFD packet to send [04:30:02]OFD Sender: No OFD packet to send [04:30:07]OFD Sender: No OFD packet to send [04:30:12]OFD Sender: No OFD packet to send [04:30:17]OFD Sender: No OFD packet to send [04:30:22]OFD Sender: No OFD packet to send [04:30:27]OFD Sender: No OFD packet to send [04:30:32]OFD Sender: No OFD packet to send [04:30:37]OFD Sender: No OFD packet to send [04:30:42]OFD Sender: No OFD packet to send [04:30:47]OFD Sender: No OFD packet to send [04:30:52]OFD Sender: No OFD packet to send [04:30:57]OFD Sender: No OFD packet to send [04:31:02]OFD Sender: No OFD packet to send [04:31:07]OFD Sender: No OFD packet to send [04:31:12]OFD Sender: No OFD packet to send [04:31:17]OFD Sender: No OFD packet to send [04:31:22]OFD Sender: No OFD packet to send [04:31:27]OFD Sender: No OFD packet to send [04:31:32]OFD Sender: No OFD packet to send [04:31:37]OFD Sender: No OFD packet to send [04:31:42]OFD Sender: No OFD packet to send [04:31:47]OFD Sender: No OFD packet to send [04:31:52]OFD Sender: No OFD packet to send [04:31:57]OFD Sender: No OFD packet to send [04:32:02]OFD Sender: No OFD packet to send [04:32:07]OFD Sender: No OFD packet to send [04:32:12]OFD Sender: No OFD packet to send [04:32:17]OFD Sender: No OFD packet to send [04:32:22]OFD Sender: No OFD packet to send [04:32:27]OFD Sender: No OFD packet to send [04:32:32]OFD Sender: No OFD packet to send [04:32:37]OFD Sender: No OFD packet to send [04:32:42]OFD Sender: No OFD packet to send [04:32:47]OFD Sender: No OFD packet to send [04:32:52]OFD Sender: No OFD packet to send [04:32:57]OFD Sender: No OFD packet to send [04:33:02]OFD Sender: No OFD packet to send [04:33:07]OFD Sender: No OFD packet to send [04:33:12]OFD Sender: No OFD packet to send [04:33:17]OFD Sender: No OFD packet to send [04:33:22]OFD Sender: No OFD packet to send [04:33:27]OFD Sender: No OFD packet to send [04:33:32]OFD Sender: No OFD packet to send [04:33:37]OFD Sender: No OFD packet to send [04:33:42]OFD Sender: No OFD packet to send [04:33:47]OFD Sender: No OFD packet to send [04:33:52]OFD Sender: No OFD packet to send [04:33:57]OFD Sender: No OFD packet to send [04:34:02]OFD Sender: No OFD packet to send [04:34:07]OFD Sender: No OFD packet to send [04:34:12]OFD Sender: No OFD packet to send [04:34:17]OFD Sender: No OFD packet to send [04:34:22]OFD Sender: No OFD packet to send [04:34:27]OFD Sender: No OFD packet to send [04:34:32]OFD Sender: No OFD packet to send [04:34:37]OFD Sender: No OFD packet to send [04:34:42]OFD Sender: No OFD packet to send [04:34:47]OFD Sender: No OFD packet to send [04:34:52]OFD Sender: No OFD packet to send [04:34:57]OFD Sender: No OFD packet to send [04:35:02]OFD Sender: No OFD packet to send [04:35:07]OFD Sender: No OFD packet to send [04:35:12]OFD Sender: No OFD packet to send [04:35:17]OFD Sender: No OFD packet to send [04:35:22]OFD Sender: No OFD packet to send [04:35:27]OFD Sender: No OFD packet to send [04:35:32]OFD Sender: No OFD packet to send [04:35:37]OFD Sender: No OFD packet to send [04:35:42]OFD Sender: No OFD packet to send [04:35:47]OFD Sender: No OFD packet to send [04:35:52]OFD Sender: No OFD packet to send [04:35:57]OFD Sender: No OFD packet to send [04:36:02]OFD Sender: No OFD packet to send [04:36:07]OFD Sender: No OFD packet to send [04:36:12]OFD Sender: No OFD packet to send [04:36:17]OFD Sender: No OFD packet to send [04:36:22]OFD Sender: No OFD packet to send [04:36:27]OFD Sender: No OFD packet to send [04:36:32]OFD Sender: No OFD packet to send [04:36:37]OFD Sender: No OFD packet to send [04:36:42]OFD Sender: No OFD packet to send [04:36:47]OFD Sender: No OFD packet to send [04:36:52]OFD Sender: No OFD packet to send [04:36:57]OFD Sender: No OFD packet to send [04:37:02]OFD Sender: No OFD packet to send [04:37:07]OFD Sender: No OFD packet to send [04:37:12]OFD Sender: No OFD packet to send [04:37:17]OFD Sender: No OFD packet to send [04:37:22]OFD Sender: No OFD packet to send [04:37:27]OFD Sender: No OFD packet to send [04:37:32]OFD Sender: No OFD packet to send [04:37:37]OFD Sender: No OFD packet to send [04:37:42]OFD Sender: No OFD packet to send [04:37:47]OFD Sender: No OFD packet to send [04:37:52]OFD Sender: No OFD packet to send [04:37:57]OFD Sender: No OFD packet to send [04:38:02]OFD Sender: No OFD packet to send [04:38:07]OFD Sender: No OFD packet to send [04:38:12]OFD Sender: No OFD packet to send [04:38:17]OFD Sender: No OFD packet to send [04:38:22]OFD Sender: No OFD packet to send [04:38:27]OFD Sender: No OFD packet to send [04:38:32]OFD Sender: No OFD packet to send [04:38:37]OFD Sender: No OFD packet to send [04:38:42]OFD Sender: No OFD packet to send [04:38:47]OFD Sender: No OFD packet to send [04:38:52]OFD Sender: No OFD packet to send [04:38:57]OFD Sender: No OFD packet to send [04:39:02]OFD Sender: No OFD packet to send [04:39:07]OFD Sender: No OFD packet to send [04:39:12]OFD Sender: No OFD packet to send [04:39:17]OFD Sender: No OFD packet to send [04:39:22]OFD Sender: No OFD packet to send [04:39:27]OFD Sender: No OFD packet to send [04:39:32]OFD Sender: No OFD packet to send [04:39:37]OFD Sender: No OFD packet to send [04:39:42]OFD Sender: No OFD packet to send [04:39:47]OFD Sender: No OFD packet to send [04:39:52]OFD Sender: No OFD packet to send [04:39:57]OFD Sender: No OFD packet to send [04:40:02]OFD Sender: No OFD packet to send [04:40:07]OFD Sender: No OFD packet to send [04:40:12]OFD Sender: No OFD packet to send [04:40:17]OFD Sender: No OFD packet to send [04:40:22]OFD Sender: No OFD packet to send [04:40:27]OFD Sender: No OFD packet to send [04:40:32]OFD Sender: No OFD packet to send [04:40:37]OFD Sender: No OFD packet to send [04:40:42]OFD Sender: No OFD packet to send [04:40:47]OFD Sender: No OFD packet to send [04:40:52]OFD Sender: No OFD packet to send [04:40:57]OFD Sender: No OFD packet to send [04:41:02]OFD Sender: No OFD packet to send [04:41:07]OFD Sender: No OFD packet to send [04:41:12]OFD Sender: No OFD packet to send [04:41:17]OFD Sender: No OFD packet to send [04:41:22]OFD Sender: No OFD packet to send [04:41:27]OFD Sender: No OFD packet to send [04:41:32]OFD Sender: No OFD packet to send [04:41:37]OFD Sender: No OFD packet to send [04:41:42]OFD Sender: No OFD packet to send [04:41:47]OFD Sender: No OFD packet to send [04:41:52]OFD Sender: No OFD packet to send [04:41:57]OFD Sender: No OFD packet to send [04:42:02]OFD Sender: No OFD packet to send [04:42:07]OFD Sender: No OFD packet to send [04:42:12]OFD Sender: No OFD packet to send [04:42:17]OFD Sender: No OFD packet to send [04:42:22]OFD Sender: No OFD packet to send [04:42:27]OFD Sender: No OFD packet to send [04:42:32]OFD Sender: No OFD packet to send [04:42:37]OFD Sender: No OFD packet to send [04:42:42]OFD Sender: No OFD packet to send [04:42:47]OFD Sender: No OFD packet to send [04:42:52]OFD Sender: No OFD packet to send [04:42:57]OFD Sender: No OFD packet to send [04:43:02]OFD Sender: No OFD packet to send [04:43:07]OFD Sender: No OFD packet to send [04:43:12]OFD Sender: No OFD packet to send [04:43:17]OFD Sender: No OFD packet to send [04:43:22]OFD Sender: No OFD packet to send [04:43:27]OFD Sender: No OFD packet to send [04:43:32]OFD Sender: No OFD packet to send [04:43:37]OFD Sender: No OFD packet to send [04:43:42]OFD Sender: No OFD packet to send [04:43:47]OFD Sender: No OFD packet to send [04:43:52]OFD Sender: No OFD packet to send [04:43:57]OFD Sender: No OFD packet to send [04:44:02]OFD Sender: No OFD packet to send [04:44:07]OFD Sender: No OFD packet to send [04:44:12]OFD Sender: No OFD packet to send [04:44:17]OFD Sender: No OFD packet to send [04:44:22]OFD Sender: No OFD packet to send [04:44:27]OFD Sender: No OFD packet to send [04:44:32]OFD Sender: No OFD packet to send [04:44:38]OFD Sender: No OFD packet to send [04:44:43]OFD Sender: No OFD packet to send [04:44:48]OFD Sender: No OFD packet to send [04:44:53]OFD Sender: No OFD packet to send [04:44:58]OFD Sender: No OFD packet to send [04:45:03]OFD Sender: No OFD packet to send [04:45:08]OFD Sender: No OFD packet to send [04:45:13]OFD Sender: No OFD packet to send [04:45:18]OFD Sender: No OFD packet to send [04:45:23]OFD Sender: No OFD packet to send [04:45:28]OFD Sender: No OFD packet to send [04:45:33]OFD Sender: No OFD packet to send [04:45:38]OFD Sender: No OFD packet to send [04:45:43]OFD Sender: No OFD packet to send [04:45:48]OFD Sender: No OFD packet to send [04:45:53]OFD Sender: No OFD packet to send [04:45:58]OFD Sender: No OFD packet to send [04:46:03]OFD Sender: No OFD packet to send [04:46:08]OFD Sender: No OFD packet to send [04:46:13]OFD Sender: No OFD packet to send [04:46:18]OFD Sender: No OFD packet to send [04:46:23]OFD Sender: No OFD packet to send [04:46:28]OFD Sender: No OFD packet to send [04:46:33]OFD Sender: No OFD packet to send [04:46:38]OFD Sender: No OFD packet to send [04:46:43]OFD Sender: No OFD packet to send [04:46:48]OFD Sender: No OFD packet to send [04:46:53]OFD Sender: No OFD packet to send [04:46:58]OFD Sender: No OFD packet to send [04:47:03]OFD Sender: No OFD packet to send [04:47:08]OFD Sender: No OFD packet to send [04:47:13]OFD Sender: No OFD packet to send [04:47:18]OFD Sender: No OFD packet to send [04:47:23]OFD Sender: No OFD packet to send [04:47:28]OFD Sender: No OFD packet to send [04:47:33]OFD Sender: No OFD packet to send [04:47:38]OFD Sender: No OFD packet to send [04:47:43]OFD Sender: No OFD packet to send [04:47:48]OFD Sender: No OFD packet to send [04:47:53]OFD Sender: No OFD packet to send [04:47:58]OFD Sender: No OFD packet to send [04:48:03]OFD Sender: No OFD packet to send [04:48:08]OFD Sender: No OFD packet to send [04:48:13]OFD Sender: No OFD packet to send [04:48:18]OFD Sender: No OFD packet to send [04:48:23]OFD Sender: No OFD packet to send [04:48:28]OFD Sender: No OFD packet to send [04:48:33]OFD Sender: No OFD packet to send [04:48:38]OFD Sender: No OFD packet to send [04:48:43]OFD Sender: No OFD packet to send [04:48:48]OFD Sender: No OFD packet to send [04:48:53]OFD Sender: No OFD packet to send [04:48:58]OFD Sender: No OFD packet to send [04:49:03]OFD Sender: No OFD packet to send [04:49:08]OFD Sender: No OFD packet to send [04:49:13]OFD Sender: No OFD packet to send [04:49:18]OFD Sender: No OFD packet to send [04:49:23]OFD Sender: No OFD packet to send [04:49:28]OFD Sender: No OFD packet to send [04:49:33]OFD Sender: No OFD packet to send [04:49:38]OFD Sender: No OFD packet to send [04:49:43]OFD Sender: No OFD packet to send [04:49:48]OFD Sender: No OFD packet to send [04:49:53]OFD Sender: No OFD packet to send [04:49:58]OFD Sender: No OFD packet to send [04:50:03]OFD Sender: No OFD packet to send [04:50:08]OFD Sender: No OFD packet to send [04:50:13]OFD Sender: No OFD packet to send [04:50:18]OFD Sender: No OFD packet to send [04:50:23]OFD Sender: No OFD packet to send [04:50:28]OFD Sender: No OFD packet to send [04:50:33]OFD Sender: No OFD packet to send [04:50:38]OFD Sender: No OFD packet to send [04:50:43]OFD Sender: No OFD packet to send [04:50:48]OFD Sender: No OFD packet to send [04:50:53]OFD Sender: No OFD packet to send [04:50:58]OFD Sender: No OFD packet to send [04:51:03]OFD Sender: No OFD packet to send [04:51:08]OFD Sender: No OFD packet to send [04:51:13]OFD Sender: No OFD packet to send [04:51:18]OFD Sender: No OFD packet to send [04:51:23]OFD Sender: No OFD packet to send [04:51:28]OFD Sender: No OFD packet to send [04:51: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]OFD Sender: No OFD packet to send [04:59:08]OFD Sender: No OFD packet to send [04:59:13]OFD Sender: No OFD packet to send [04:59:18]OFD Sender: No OFD packet to send [04:59:23]OFD Sender: No OFD packet to send [04:59:28]OFD Sender: No OFD packet to send [04:59:33]OFD Sender: No OFD packet to send [04:59:38]OFD Sender: No OFD packet to send [04:59:43]OFD Sender: No OFD packet to send [04:59:48]OFD Sender: No OFD packet to send [04:59:53]OFD Sender: No OFD packet to send [04:59:58]OFD Sender: No OFD packet to send [05:00:03]OFD Sender: No OFD packet to send [05:00:08]OFD Sender: No OFD packet to send [05:00:13]OFD Sender: No OFD packet to send [05:00:18]OFD Sender: No OFD packet to send [05:00:23]OFD Sender: No OFD packet to send [05:00:28]OFD Sender: No OFD packet to send [05:00:34]OFD Sender: No OFD packet to send [05:00:39]OFD Sender: No OFD packet to send [05:00:44]OFD Sender: No OFD packet to send [05:00:49]OFD Sender: No OFD packet to send [05:00:54]OFD Sender: No OFD packet to send [05:00:59]OFD Sender: No OFD packet to send [05:01:04]OFD Sender: No OFD packet to send [05:01:09]OFD Sender: No OFD packet to send [05:01:14]OFD Sender: No OFD packet to send [05:01:19]OFD Sender: No OFD packet to send [05:01:24]OFD Sender: No OFD packet to send [05:01:29]OFD Sender: No OFD packet to send [05:01:34]OFD Sender: No OFD packet to send [05:01:39]OFD Sender: No OFD packet to send [05:01:44]OFD Sender: No OFD packet to send [05:01:49]OFD Sender: No OFD packet to send [05:01:54]OFD Sender: No OFD packet to send [05:01:59]OFD Sender: No OFD packet to send [05:02:04]OFD Sender: No OFD packet to send [05:02:09]OFD Sender: No OFD packet to send [05:02:14]OFD Sender: No OFD packet to send [05:02:19]OFD Sender: No OFD packet to send [05:02:24]OFD Sender: No OFD packet to send [05:02:29]OFD Sender: No OFD packet to send [05:02:34]OFD Sender: No OFD packet to send [05:02:39]OFD Sender: No OFD packet to send [05:02:44]OFD Sender: No OFD packet to send [05:02:49]OFD Sender: No OFD packet to send [05:02:54]OFD Sender: No OFD packet to send [05:02:59]OFD Sender: No OFD packet to send [05:03:04]OFD Sender: No OFD packet to send [05:03:09]OFD Sender: No OFD packet to send [05:03:14]OFD Sender: No OFD packet to send [05:03:19]OFD Sender: No OFD packet to send [05:03:24]OFD Sender: No OFD packet to send [05:03:29]OFD Sender: No OFD packet to send [05:03:34]OFD Sender: No OFD packet to send [05:03:39]OFD Sender: No OFD packet to send [05:03:44]OFD Sender: No OFD packet to send [05:03:49]OFD Sender: No OFD packet to send [05:03:54]OFD Sender: No OFD packet to send [05:03:59]OFD Sender: No OFD packet to send [05:04:04]OFD Sender: No OFD packet to send [05:04:09]OFD Sender: No OFD packet to send [05:04:14]OFD Sender: No OFD packet to send [05:04:19]OFD Sender: No OFD packet to send [05:04:24]OFD Sender: No OFD packet to send [05:04:29]OFD Sender: No OFD packet to send [05:04:34]OFD Sender: No OFD packet to send [05:04:39]OFD Sender: No OFD packet to send [05:04:44]OFD Sender: No OFD packet to send [05:04:49]OFD Sender: No OFD packet to send [05:04:54]OFD Sender: No OFD packet to send [05:04:59]OFD Sender: No OFD packet to send [05:05:04]OFD Sender: No OFD packet to send [05:05:09]OFD Sender: No OFD packet to send [05:05:14]OFD Sender: No OFD packet to send [05:05:19]OFD Sender: No OFD packet to send [05:05:24]OFD Sender: No OFD packet to send [05:05:29]OFD Sender: No OFD packet to send [05:05:34]OFD Sender: No OFD packet to send [05:05:39]OFD Sender: No OFD packet to send [05:05:44]OFD Sender: No OFD packet to send [05:05:49]OFD Sender: No OFD packet to send [05:05:54]OFD Sender: No OFD packet to send [05:05:59]OFD Sender: No OFD packet to send [05:06:04]OFD Sender: No OFD packet to send [05:06:09]OFD Sender: No OFD packet to send [05:06:14]OFD Sender: No OFD packet to send [05:06:19]OFD Sender: No OFD packet to send [05:06:24]OFD Sender: No OFD packet to send [05:06:29]OFD Sender: No OFD packet to send [05:06:34]OFD Sender: No OFD packet to send [05:06:39]OFD Sender: No OFD packet to send [05:06:44]OFD Sender: No OFD packet to send [05:06:49]OFD Sender: No OFD packet to send [05:06:54]OFD Sender: No OFD packet to send [05:06:59]OFD Sender: No OFD packet to send [05:07:04]OFD Sender: No OFD packet to send [05:07:09]OFD Sender: No OFD packet to send [05:07:14]OFD Sender: No OFD packet to send [05:07:19]OFD Sender: No OFD packet to send [05:07:24]OFD Sender: No OFD packet to send [05:07:29]OFD Sender: No OFD packet to send [05:07:34]OFD Sender: No OFD packet to send [05:07:39]OFD Sender: No OFD packet to send [05:07:44]OFD Sender: No OFD packet to send [05:07:49]OFD Sender: No OFD packet to send [05:07:54]OFD Sender: No OFD packet to send [05:07:59]OFD Sender: No OFD packet to send [05:08:04]OFD Sender: No OFD packet to send [05:08:09]OFD Sender: No OFD packet to send [05:08:14]OFD Sender: No OFD packet to send [05:08:19]OFD Sender: No OFD packet to send [05:08:24]OFD Sender: No OFD packet to send [05:08:29]OFD Sender: No OFD packet to send [05:08:34]OFD Sender: No OFD packet to send [05:08:39]OFD Sender: No OFD packet to send [05:08:44]OFD Sender: No OFD packet to send [05:08:49]OFD Sender: No OFD packet to send [05:08:54]OFD Sender: No OFD packet to send [05:08:59]OFD Sender: No OFD packet to send [05:09:04]OFD Sender: No OFD packet to send [05:09:09]OFD Sender: No OFD packet to send [05:09:14]OFD Sender: No OFD packet to send [05:09:19]OFD Sender: No OFD packet to send [05:09:24]OFD Sender: No OFD packet to send [05:09:29]OFD Sender: No OFD packet to send [05:09:34]OFD Sender: No OFD packet to send [05:09:39]OFD Sender: No OFD packet to send [05:09:44]OFD Sender: No OFD packet to send [05:09:49]OFD Sender: No OFD packet to send [05:09:54]OFD Sender: No OFD packet to send [05:09:59]OFD Sender: No OFD packet to send [05:10:04]OFD Sender: No OFD packet to send [05:10:09]OFD Sender: No OFD packet to send [05:10:14]OFD Sender: No OFD packet to send [05:10:19]OFD Sender: No OFD packet to send [05:10:24]OFD Sender: No OFD packet to send [05:10:29]OFD Sender: No OFD packet to send [05:10:34]OFD Sender: No OFD packet to send [05:10:39]OFD Sender: No OFD packet to send [05:10:44]OFD Sender: No OFD packet to send [05:10:49]OFD Sender: No OFD packet to send [05:10:54]OFD Sender: No OFD packet to send [05:10:59]OFD Sender: No OFD packet to send [05:11:04]OFD Sender: No OFD packet to send [05:11:09]OFD Sender: No OFD packet to send [05:11:14]OFD Sender: No OFD packet to send [05:11:19]OFD Sender: No OFD packet to send [05:11:24]OFD Sender: No OFD packet to send [05:11:29]OFD Sender: No OFD packet to send [05:11:34]OFD Sender: No OFD packet to send [05:11:39]OFD Sender: No OFD packet to send [05:11:44]OFD Sender: No OFD packet to send [05:11:49]OFD Sender: No OFD packet to send [05:11:54]OFD Sender: No OFD packet to send [05:11:59]OFD Sender: No OFD packet to send [05:12:04]OFD Sender: No OFD packet to send [05:12:09]OFD Sender: No OFD packet to send [05:12:14]OFD Sender: No OFD packet to send [05:12:19]OFD Sender: No OFD packet to send [05:12:24]OFD Sender: No OFD packet to send [05:12:29]OFD Sender: No OFD packet to send [05:12:34]OFD Sender: No OFD packet to send [05:12:39]OFD Sender: No OFD packet to send [05:12:44]OFD Sender: No OFD packet to send [05:12:49]OFD Sender: No OFD packet to send [05:12:54]OFD Sender: No OFD packet to send [05:12:59]OFD Sender: No OFD packet to send [05:13:04]OFD Sender: No OFD packet to send [05:13:09]OFD Sender: No OFD packet to send [05:13:14]OFD Sender: No OFD packet to send [05:13:19]OFD Sender: No OFD packet to send [05:13:24]OFD Sender: No OFD packet to send [05:13:29]OFD Sender: No OFD packet to send [05:13:34]OFD Sender: No OFD packet to send [05:13:39]OFD Sender: No OFD packet to send [05:13:44]OFD Sender: No OFD packet to send [05:13:49]OFD Sender: No OFD packet to send [05:13:54]OFD Sender: No OFD packet to send [05:13:59]OFD Sender: No OFD packet to send [05:14:04]OFD Sender: No OFD packet to send [05:14:09]OFD Sender: No OFD packet to send [05:14:14]OFD Sender: No OFD packet to send [05:14:19]OFD Sender: No OFD packet to send [05:14:24]OFD Sender: No OFD packet to send [05:14:29]OFD Sender: No OFD packet to send [05:14:34]OFD Sender: No OFD packet to send [05:14:39]OFD Sender: No OFD packet to send [05:14:44]OFD Sender: No OFD packet to send [05:14:49]OFD Sender: No OFD packet to send [05:14:54]OFD Sender: No OFD packet to send [05:14:59]OFD Sender: No OFD packet to send [05:15:04]OFD Sender: No OFD packet to send [05:15:09]OFD Sender: No OFD packet to send [05:15:14]OFD Sender: No OFD packet to send [05:15:19]OFD Sender: No OFD packet to send [05:15:24]OFD Sender: No OFD packet to send [05:15:29]OFD Sender: No OFD packet to send [05:15:34]OFD Sender: No OFD packet to send [05:15:39]OFD Sender: No OFD packet to send [05:15:44]OFD Sender: No OFD packet to send [05:15:49]OFD Sender: No OFD packet to send [05:15:54]OFD Sender: No OFD packet to send [05:15:59]OFD Sender: No OFD packet to send [05:16:04]OFD Sender: No OFD packet to send [05:16:09]OFD Sender: No OFD packet to send [05:16:14]OFD Sender: No OFD packet to send [05:16:19]OFD Sender: No OFD packet to send [05:16:24]OFD Sender: No OFD packet to send [05:16:29]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:45]OFD Sender: No OFD packet to send [05:16:50]OFD Sender: No OFD packet to send [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:25]OFD Sender: No OFD packet to send [05:17:30]OFD Sender: No OFD packet to send [05:17:35]OFD Sender: No OFD packet to send [05:17:40]OFD Sender: No OFD packet to send [05:17:45]OFD Sender: No OFD packet to send [05:17:50]OFD Sender: No OFD packet to send [05:17:55]OFD Sender: No OFD packet to send [05:18:00]OFD Sender: No OFD packet to send [05:18:05]OFD Sender: No OFD packet to send [05:18:10]OFD Sender: No OFD packet to send [05:18:15]OFD Sender: No OFD packet to send [05:18:20]OFD Sender: No OFD packet to send [05:18:25]OFD Sender: No OFD packet to send [05:18:30]OFD Sender: No OFD packet to send [05:18:35]OFD Sender: No OFD packet to send [05:18:40]OFD Sender: No OFD packet to send [05:18:45]OFD Sender: No OFD packet to send [05:18:50]OFD Sender: No OFD packet to send [05:18:55]OFD Sender: No OFD packet to send [05:19:00]OFD Sender: No OFD packet to send [05:19:05]OFD Sender: No OFD packet to send [05:19:10]OFD Sender: No OFD packet to send [05:19:15]OFD Sender: No OFD packet to send [05:19:20]OFD Sender: No OFD packet to send [05:19:25]OFD Sender: No OFD packet to send [05:19:30]OFD Sender: No OFD packet to send [05:19:35]OFD Sender: No OFD packet to send [05:19:40]OFD Sender: No OFD packet to send [05:19:45]OFD Sender: No OFD packet to send [05:19:50]OFD Sender: No OFD packet to send [05:19:55]OFD Sender: No OFD packet to send [05:20:00]OFD Sender: No OFD packet to send [05:20:05]OFD Sender: No OFD packet to send [05:20:10]OFD Sender: No OFD packet to send [05:20:15]OFD Sender: No OFD packet to send [05:20:20]OFD Sender: No OFD packet to send [05:20:25]OFD Sender: No OFD packet to send [05:20:30]OFD Sender: No OFD packet to send [05:20:35]OFD Sender: No OFD packet to send [05:20:40]OFD Sender: No OFD packet to send [05:20:45]OFD Sender: No OFD packet to send [05:20:50]OFD Sender: No OFD packet to send [05:20:55]OFD Sender: No OFD packet to send [05:21:00]OFD Sender: No OFD packet to send [05:21:05]OFD Sender: No OFD packet to send [05:21:10]OFD Sender: No OFD packet to send [05:21:15]OFD Sender: No OFD packet to send [05:21:20]OFD Sender: No OFD packet to send [05:21:21]accept exits with 7 [05:21:21]New connection [05:21:21]New thread 3066924388 created [05:21:21]Thread 3067067748 joined [05:21:21]Waiting for new connection... [05:21:21] Sock 7.Parse request [05:21:21]Sock 7.Check first char [05:21:21]Sock 7.First char is OK [05:21:21]request: POST /json_proto HTTP/1.0 [05:21:21]Method: POST [05:21:21]URL: /json_proto [05:21:21]Method is POST - this is cgi request [05:21:21]url: /json_proto [05:21:21]query_string will be loaded in cgi processing [05:21:21]execute_cgi json_proto POST (null) [05:21:21]execute_cgi path=json_proto method=POST [05:21:21]POST find Content-Length [05:21:21]Host: 172.17.45.7:8080 [05:21:21]Content-Length: 677 [05:21:21]Content-Type: application/json [05:21:21] [05:21:21]POST finish read [05:21:21]Found Content-Length = 677 [05:21:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [05:21:21]execute_script... [05:21: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)949225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [05:21:21]POST & json_proto [05:21:21]process_json_proto [05:21:21]json parsed OK: [05:21:21]protocol is kg_v1.0 [05:21:21]action value=close_receipt [05:21:21]process_action close_receipt [05:21:21]cmd_close_receipt [05:21:21]MH_GetDate [05:21:21]Write to MH i2c: F0 00 00 FB 00 EA [05:21:21]Write i2c OK [05:21:21]MH_I2C_Read... [05:21:21]Read from MH i2c: F0 [05:21:21]MH_I2C_Read... [05:21:21]Read from MH i2c: F0 09 00 [05:21:21]MH_I2C_Read... [05:21:21]Read from MH i2c: F0 09 00 FB 00 00 52 D5 A5 66 90 0F 3E 66 68 [05:21:21]GetLastDocTimeStamp 1722139198 [05:21:21]current date 1722144082 [05:21:21]FM_GetShiftState [05:21:21]SAM_PROTO_GetShiftState [05:21:21]wFMCommunicate request_size=4 [05:21:21]MH_SAM_APDU [05:21:21]CAPDU: 80 13 01 00 [05:21:21]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [05:21:21]Write i2c OK [05:21:21]MH_I2C_Read... [05:21:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:21:21]Read from MH i2c: E2 [05:21:21]MH_I2C_Read... [05:21:21]Read from MH i2c: E2 0E 00 [05:21:21]MH_I2C_Read... [05:21:21]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 50 [05:21:21]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [05:21:21]wFMCommunicate OK [05:21:21]SAM_PROTO_GetShiftState done [05:21:21]FM_GetShiftState done [05:21:21]opened in 1722125364 [05:21:21]opened+sec_in_day 1722211764 [05:21:21]quantity*price = 20001 [05:21:21]sum+1 = 20002 [05:21:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 20 28.07.2024 05:21 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118351 ФПД: 125034930202500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T052122&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118351&fm=125034930202500&tin=02508201610067®Number=0000000000092660&sum=20000 [05:21:22]StoreToDocumentArchive [05:21:22]shift 433 fd 118351 [05:21:22]save to /storage/0433/doc_00118351 [05:21:22]save last doc name /storage/0433/doc_00118351 to /storage/kkm_last_doc_name [05:21:22]save OK [05:21:22]Clear old archive folders... [05:21:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:21:22]tlvbuf is 00104210 [05:21:22]SAM_PROTO_ClearQueue [05:21:22]wFMCommunicate request_size=4 [05:21:22]MH_SAM_APDU [05:21:22]CAPDU: 80 09 00 00 [05:21:22]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [05:21:22]Write i2c OK [05:21:22]MH_I2C_Read... [05:21:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:21:22]Read from MH i2c: E2 [05:21:22]MH_I2C_Read... [05:21:22]Read from MH i2c: E2 03 00 [05:21:22]MH_I2C_Read... [05:21:22]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [05:21:22]RAPDU: 90 00 [05:21:22]wFMCommunicate OK [05:21:22]SAM_PROTO_ClearQueue done [05:21:22]KKMCreateOFDPacket [05:21:22]OFDProtocolAddRootSTLVToBuf [05:21:22]FM_MakeSignedData [05:21:22]FM_MakeSignedData [05:21:22]SAM_PROTO_SignData [05:21:22]wFMCommunicate request_size=4 [05:21:22]MH_SAM_APDU [05:21:22]CAPDU: 80 0D 01 02 [05:21:22]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [05:21:22]Write i2c OK [05:21:22]MH_I2C_Read... [05:21:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:21:22]Read from MH i2c: E2 [05:21:22]MH_I2C_Read... [05:21:22]Read from MH i2c: E2 03 00 [05:21:22]MH_I2C_Read... [05:21:22]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [05:21:22]RAPDU: 90 00 [05:21:22]wFMCommunicate OK [05:21:22]wFMCommunicate request_size=255 [05:21:22]MH_SAM_APDU [05:21: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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 52 D5 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4F CE 01 00 35 04 06 00 71 [05:21:22]Write to MH i2c: E2 02 01 0B 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 52 D5 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4F CE 01 00 35 04 06 00 71 00 00 91 [05:21:22]Write i2c OK [05:21:22]MH_I2C_Read... [05:21:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:21:22]Read from MH i2c: E2 [05:21:22]MH_I2C_Read... [05:21:22]Read from MH i2c: E2 03 00 [05:21:22]MH_I2C_Read... [05:21:22]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [05:21:22]RAPDU: 90 00 [05:21:22]wFMCommunicate OK [05:21:22]wFMCommunicate request_size=10 [05:21:22]MH_SAM_APDU [05:21:22]CAPDU: 80 0D 02 02 05 B7 F6 99 67 84 [05:21:22]Write to MH i2c: E2 0D 00 0C 01 80 0D 02 02 05 00 B7 F6 99 67 84 00 00 C2 [05:21:22]Write i2c OK [05:21:22]MH_I2C_Read... [05:21:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:21:22]Read from MH i2c: E2 [05:21:22]MH_I2C_Read... [05:21:22]Read from MH i2c: E2 03 00 [05:21:22]MH_I2C_Read... [05:21:22]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [05:21:22]RAPDU: 90 00 [05:21:22]wFMCommunicate OK [05:21:22]wFMCommunicate request_size=4 [05:21:22]MH_SAM_APDU [05:21:22]CAPDU: 80 0D 03 02 [05:21:22]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [05:21:22]Write i2c OK [05:21:22]MH_I2C_Read... [05:21:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:21:22]Read from MH i2c: E2 [05:21:22]MH_I2C_Read... [05:21:22]Read from MH i2c: E2 0B 00 [05:21:22]MH_I2C_Read... [05:21:22]Read from MH i2c: E2 0B 00 0D 01 00 13 D3 E7 D7 7F 3D E1 F5 90 00 C0 [05:21:22]RAPDU: 13 D3 E7 D7 7F 3D E1 F5 90 00 [05:21:22]wFMCommunicate OK [05:21:22]SAM_PROTO_SignData done [05:21:22]FM_MakeSignedData done [05:21:22]CreateOFDProtocolMessage [05:21:22]wFMCommunicate request_size=4 [05:21:22]MH_SAM_APDU [05:21:22]CAPDU: 80 11 00 00 [05:21:22]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [05:21:22]Write i2c OK [05:21:22]MH_I2C_Read... [05:21:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:21:22]Read from MH i2c: E2 [05:21:22]MH_I2C_Read... [05:21:22]Read from MH i2c: E2 17 00 [05:21:22]MH_I2C_Read... [05:21:22]Read from MH i2c: E2 17 00 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E4 [05:21:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [05:21:22]wFMCommunicate OK [05:21:22]CreateOFDProtocolMessage done [05:21:22]OFDSenderStorePacket 118351 [05:21:22]StoreOFDPacket docnum=118351 [05:21:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D8 0D 07 01 C0 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 52 D5 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4F CE 01 00 35 04 06 00 71 B7 F6 99 67 84 13 D3 E7 D7 7F 3D E1 F5 [05:21:22]CheckFolder [05:21:22]dirname=/storage/ofd_packets [05:21:22]CheckFolder done [05:21:22]ProducePacketName [05:21:22]name=ofd_packets/00118351 [05:21:22]NVStorageSaveData ofd_packets/00118351 [05:21:22]File name is /storage/ofd_packets/00118351 [05:21:22]Write 301 bytes [05:21:22]NVStorageSaveData done [05:21:22]OFDSenderStorePacket done [05:21:22]KKMCreateOFDPacket done [05:21:22]NVStorageSaveData kkm_last_timestamp [05:21:22]File name is /storage/kkm_last_timestamp [05:21:22]Write 4 bytes [05:21:22]NVStorageSaveData done [05:21:22]ExternCall_PrintAddStr [05:21:22]wPrintStart [05:21:22]Write to MH i2c: 01 00 00 0F 01 10 [05:21:22]Write i2c OK [05:21:22]MH_I2C_Read... [05:21:22]Read from MH i2c: 01 [05:21:22]MH_I2C_Read... [05:21:22]Read from MH i2c: 01 07 00 [05:21:22]MH_I2C_Read... [05:21:22]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [05:21:22]RasterBufferAndPrint [05:21:22]line Счет N : (1)949225 [05:21:22]line ИНН: 02508201610067 [05:21:22]line Контрольно-Кассовый Чек [05:21:22]line ПРОДАЖА [05:21:22]line ТРК (МРК, ГНК) : 41 [05:21:22]line Товар: 2710124130 [05:21:22]line Аи-92-К-4 [05:21:22]line 2.950 * 67.80 [05:21:22]line = 200.01 [05:21:22]line НДС 12% НСП 1% [05:21:22]line > о реализуемом товаре [05:21:22]line ОКРУГЛЕНИЕ: -0.01 [05:21:22]line ИТОГО: 200.00 [05:21:22]line Внесено: 200.00 [05:21:22]line СДАЧА: 0.00 [05:21:22]line НСП 1% : 1.77 [05:21:22]line НДС 12% : 21.24 [05:21:22]line Наличными: 200.00 [05:21:22]line Безнал.: 0.00 [05:21:22]line Место: АЗС № 134 "Партнер Нефть" [05:21:22]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [05:21:22]line СНО: Общий режим [05:21:22]line Чек 20 28.07.2024 05:21 [05:21:22]line Смена: 433 ФФД: 1.0 [05:21:22]line ЗНМ: 0300000044 [05:21:22]line РНМ: 0000000000092660 [05:21:22]line Версия ККМ: 001 [05:21:22]line ФМ: 0000000000874939 [05:21:22]line ФД: 118351 [05:21:22]line ФПД: 125034930202500 [05:21:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T052122&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118351&fm=125034930202500&tin=02508201610067®Number=0000000000092660&sum=20000 [05:21:22]written 0, free lines is 4095 [05:21:23]OFD Sender: Processing packet 118351 [packets to send 86, broken 85] [05:21:23]ProducePacketName [05:21:23]name=ofd_packets/00118351 [05:21:23]OFD Sender: To server: pG, [05:21:23]CommunicateWithHost lk.salyk.kg:30040 [05:21:23]ConnectInit lk.salyk.kg [05:21:23]Connected sock=10 [05:21:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D8 0D 07 01 C0 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 52 D5 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4F CE 01 00 35 04 06 00 71 B7 F6 99 67 84 13 D3 E7 D7 7F 3D E1 F5 [05:21:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 0C CB 47 00 71 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 39 33 39 10 04 04 00 4F CE 01 00 F4 03 04 00 E3 82 A5 66 B6 04 01 00 00 BD EC 40 91 33 23 FC EF [05:21:23]CommunicateWithHost err = 0 [05:21:23]CheckOFDResponse [05:21:23]1017 (14) - 77093643461234 [05:21:23]1041 (16) - 0000000000874939 [05:21:23]1040 (4) - 118351 [05:21:23]1012 (4) - 27.07.2024 23:29 [05:21:23]1206 (1) - 0 [05:21:23]OFD Sender: Remove packet 118351 [05:21:23]ProducePacketName [05:21:23]name=ofd_packets/00118351 [05:21:23]NVStorageDeleteData [05:21:23]Write to MH i2c: 01 00 00 39 01 3A [05:21:23]Write i2c OK [05:21:23]MH_I2C_Read... [05:21:23]Read from MH i2c: 01 [05:21:23]MH_I2C_Read... [05:21:23]Read from MH i2c: 01 07 00 [05:21:23]MH_I2C_Read... [05:21:23]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 D8 0C 25 [05:21:23]RasterBufferAndPrint [05:21:23]line [05:21:23]line [05:21:23]line [05:21:23]line [05:21:23]line [05:21:23]written 0, free lines is 3296 [05:21:23]MH_Cut [05:21:23]Write to MH i2c: D1 01 00 40 01 01 13 [05:21:23]Write i2c OK [05:21:23]MH_I2C_Read... [05:21:23]Read from MH i2c: D1 [05:21:23]MH_I2C_Read... [05:21:23]Read from MH i2c: D1 01 00 [05:21:23]MH_I2C_Read... [05:21:23]Read from MH i2c: D1 01 00 40 01 00 12 [05:21:23]Write to MH i2c: 01 00 00 41 01 42 [05:21:23]Write i2c OK [05:21:23]MH_I2C_Read... [05:21:23]OFD Sender: No OFD packet to send [05:21:24]*** Cut start [05:21:24]*** Partial cut [05:21:24]*** CUTSNS_PIN = 1 [05:21:24]*** CUTSNS_PIN = 0 [05:21:24]*** Brake cut motor [05:21:24]Read from MH i2c: 01 [05:21:24]MH_I2C_Read... [05:21:24]*** Stop cut motor [05:21:24]*** Cut end [05:21:24]Read from MH i2c: 01 07 00 [05:21:24]MH_I2C_Read... [05:21:24]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [05:21:24]process_action close_receipt done [05:21:24]requested_data is exist [05:21:24]produce_requested_data [05:21:24]requested_item fm.sn is exist - process it [05:21:24]wFMCommunicate request_size=4 [05:21:24]MH_SAM_APDU [05:21:24]CAPDU: 80 11 00 00 [05:21:24]Write to MH i2c: E2 08 00 42 01 80 11 00 00 00 00 00 00 BD [05:21:24]Write i2c OK [05:21:24]MH_I2C_Read... [05:21:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:21:24]Read from MH i2c: E2 [05:21:24]MH_I2C_Read... [05:21:24]Read from MH i2c: E2 17 00 [05:21:24]MH_I2C_Read... [05:21:24]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 39 33 39 90 00 18 [05:21:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [05:21:24]wFMCommunicate OK [05:21:24]requested_item fd.num is exist - process it [05:21:24]SAM_PROTO_GetFieldsCounters [05:21:24]wFMCommunicate request_size=4 [05:21:24]MH_SAM_APDU [05:21:24]CAPDU: 80 13 00 00 [05:21:24]Write to MH i2c: E2 08 00 43 01 80 13 00 00 00 00 00 00 C0 [05:21:24]Write i2c OK [05:21:24]MH_I2C_Read... [05:21:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:21:24]Read from MH i2c: E2 [05:21:24]MH_I2C_Read... [05:21:24]Read from MH i2c: E2 62 00 [05:21:24]MH_I2C_Read... [05:21:24]Read from MH i2c: E2 62 00 43 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4F CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [05:21:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4F CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:21:24]wFMCommunicate OK [05:21:24]SAM_PROTO_GetFieldsCounters done [05:21:24]requested_item shift.num is exist - process it [05:21:24]requested_item shift.opened is exist - process it [05:21:24]req_shift_opened [05:21:24]FM_GetShiftState [05:21:24]SAM_PROTO_GetShiftState [05:21:24]wFMCommunicate request_size=4 [05:21:24]MH_SAM_APDU [05:21:24]CAPDU: 80 13 01 00 [05:21:24]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [05:21:25]Write i2c OK [05:21:25]MH_I2C_Read... [05:21:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:21:25]Read from MH i2c: E2 [05:21:25]MH_I2C_Read... [05:21:25]Read from MH i2c: E2 0E 00 [05:21:25]MH_I2C_Read... [05:21:25]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 99 [05:21:25]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [05:21:25]wFMCommunicate OK [05:21:25]SAM_PROTO_GetShiftState done [05:21:25]FM_GetShiftState done [05:21:25]req_shift_opened done [05:21:25]requested_item shift.open_date is exist - process it [05:21:25]req_shift_open_date [05:21:25]req_shift_open_date done [05:21:25]produce_requested_data done [05:21:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118351,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [05:21:25]process_action_free close_receipt [05:21:25]json_value_free [05:21:25]json_value_free done [05:21:25]process_json_proto returns [05:21:25]Send response to host [05:21:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118351,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [05:21:25]free response buf [05:21:25]execute_script done [05:21:25]execute_script returns [05:21:25]free content buf [05:21:25]Sock 7.Close socket [05:21:25]Sock 7.Thread stoped [05:21:28]OFD Sender: No OFD packet to send [05:21:33]OFD Sender: No OFD packet to send [05:21:38]OFD Sender: No OFD packet to send [05:21:43]OFD Sender: No OFD packet to send [05:21:48]OFD Sender: No OFD packet to send [05:21:53]OFD Sender: No OFD packet to send [05:21:58]OFD Sender: No OFD packet to send [05:22:03]OFD Sender: No OFD packet to send [05:22:08]OFD Sender: No OFD packet to send [05:22:13]OFD Sender: No OFD packet to send [05:22:18]OFD Sender: No OFD packet to send [05:22:23]OFD Sender: No OFD packet to send [05:22:28]OFD Sender: No OFD packet to send [05:22:33]OFD Sender: No OFD packet to send [05:22:38]OFD Sender: No OFD packet to send [05:22:43]OFD Sender: No OFD packet to send [05:22:48]OFD Sender: No OFD packet to send [05:22:53]OFD Sender: No OFD packet to send [05:22:58]OFD Sender: No OFD packet to send [05:23:03]OFD Sender: No OFD packet to send [05:23:08]OFD Sender: No OFD packet to send [05:23:13]OFD Sender: No OFD packet to send [05:23:18]OFD Sender: No OFD packet to send [05:23:23]OFD Sender: No OFD packet to send [05:23:28]OFD Sender: No OFD packet to send [05:23:33]OFD Sender: No OFD packet to send [05:23:38]OFD Sender: No OFD packet to send [05:23:43]OFD Sender: No OFD packet to send [05:23:48]OFD Sender: No OFD packet to send [05:23:53]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:14]OFD Sender: No OFD packet to send [05:26:19]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:34]OFD Sender: No OFD packet to send [05:26:39]OFD Sender: No OFD packet to send [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:24]OFD Sender: No OFD packet to send [05:28:27]accept exits with 9 [05:28:27]New connection [05:28:27]New thread 3067067748 created [05:28:27]Thread 3066924388 joined [05:28:27]Waiting for new connection... [05:28:27] Sock 9.Parse request [05:28:27]Sock 9.Check first char [05:28:27]Sock 9.First char is OK [05:28:27]request: POST /json_proto HTTP/1.0 [05:28:27]Method: POST [05:28:27]URL: /json_proto [05:28:27]Method is POST - this is cgi request [05:28:27]url: /json_proto [05:28:27]query_string will be loaded in cgi processing [05:28:27]execute_cgi json_proto POST (null) [05:28:27]execute_cgi path=json_proto method=POST [05:28:27]POST find Content-Length [05:28:27]Host: 172.17.45.7:8080 [05:28:27]Content-Length: 682 [05:28:27]Content-Type: application/json [05:28:27] [05:28:27]POST finish read [05:28:27]Found Content-Length = 682 [05:28:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:28:27]execute_script... [05:28: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)949226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:28:27]POST & json_proto [05:28:27]process_json_proto [05:28:27]json parsed OK: [05:28:27]protocol is kg_v1.0 [05:28:27]action value=close_receipt [05:28:27]process_action close_receipt [05:28:27]cmd_close_receipt [05:28:27]MH_GetDate [05:28:27]Write to MH i2c: F0 00 00 45 01 35 [05:28:27]Write i2c OK [05:28:27]MH_I2C_Read... [05:28:27]Read from MH i2c: F0 [05:28:27]MH_I2C_Read... [05:28:27]Read from MH i2c: F0 09 00 [05:28:27]MH_I2C_Read... [05:28:27]Read from MH i2c: F0 09 00 45 01 00 FC D6 A5 66 90 0F 3E 66 5E [05:28:27]GetLastDocTimeStamp 1722144082 [05:28:27]current date 1722144508 [05:28:27]FM_GetShiftState [05:28:27]SAM_PROTO_GetShiftState [05:28:27]wFMCommunicate request_size=4 [05:28:27]MH_SAM_APDU [05:28:27]CAPDU: 80 13 01 00 [05:28:27]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [05:28:27]Write i2c OK [05:28:27]MH_I2C_Read... [05:28:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:28:27]Read from MH i2c: E2 [05:28:27]MH_I2C_Read... [05:28:27]Read from MH i2c: E2 0E 00 [05:28:27]MH_I2C_Read... [05:28:27]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 9B [05:28:27]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [05:28:27]wFMCommunicate OK [05:28:27]SAM_PROTO_GetShiftState done [05:28:27]FM_GetShiftState done [05:28:27]opened in 1722125364 [05:28:27]opened+sec_in_day 1722211764 [05:28:27]quantity*price = 100005 [05:28:27]sum+1 = 100006 [05:28:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 21 28.07.2024 05:28 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118352 ФПД: 167082511852814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T052828&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118352&fm=167082511852814&tin=02508201610067®Number=0000000000092660&sum=100000 [05:28:28]StoreToDocumentArchive [05:28:28]shift 433 fd 118352 [05:28:28]save to /storage/0433/doc_00118352 [05:28:28]save last doc name /storage/0433/doc_00118352 to /storage/kkm_last_doc_name [05:28:28]save OK [05:28:28]Clear old archive folders... [05:28:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:28:28]tlvbuf is 00105B70 [05:28:28]SAM_PROTO_ClearQueue [05:28:28]wFMCommunicate request_size=4 [05:28:28]MH_SAM_APDU [05:28:28]CAPDU: 80 09 00 00 [05:28:28]Write to MH i2c: E2 08 00 53 01 80 09 00 00 00 00 00 00 C6 [05:28:28]Write i2c OK [05:28:28]MH_I2C_Read... [05:28:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:28:28]Read from MH i2c: E2 [05:28:28]MH_I2C_Read... [05:28:28]Read from MH i2c: E2 03 00 [05:28:28]MH_I2C_Read... [05:28:28]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [05:28:28]RAPDU: 90 00 [05:28:28]wFMCommunicate OK [05:28:28]SAM_PROTO_ClearQueue done [05:28:28]KKMCreateOFDPacket [05:28:28]OFDProtocolAddRootSTLVToBuf [05:28:28]FM_MakeSignedData [05:28:28]FM_MakeSignedData [05:28:28]SAM_PROTO_SignData [05:28:28]wFMCommunicate request_size=4 [05:28:28]MH_SAM_APDU [05:28:28]CAPDU: 80 0D 01 02 [05:28:28]Write to MH i2c: E2 08 00 54 01 80 0D 01 02 00 00 00 00 CE [05:28:28]Write i2c OK [05:28:28]MH_I2C_Read... [05:28:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:28:28]Read from MH i2c: E2 [05:28:28]MH_I2C_Read... [05:28:28]Read from MH i2c: E2 03 00 [05:28:28]MH_I2C_Read... [05:28:28]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [05:28:28]RAPDU: 90 00 [05:28:28]wFMCommunicate OK [05:28:28]wFMCommunicate request_size=255 [05:28:28]MH_SAM_APDU [05:28: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 FC D6 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 50 CE 01 00 35 04 06 00 97 [05:28:28]Write to MH i2c: E2 02 01 55 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 FC D6 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 50 CE 01 00 35 04 06 00 97 00 00 3B [05:28:28]Write i2c OK [05:28:28]MH_I2C_Read... [05:28:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:28:29]Read from MH i2c: E2 [05:28:29]MH_I2C_Read... [05:28:29]Read from MH i2c: E2 03 00 [05:28:29]MH_I2C_Read... [05:28:29]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [05:28:29]RAPDU: 90 00 [05:28:29]wFMCommunicate OK [05:28:29]wFMCommunicate request_size=10 [05:28:29]MH_SAM_APDU [05:28:29]CAPDU: 80 0D 02 02 05 F5 ED C4 65 0E [05:28:29]Write to MH i2c: E2 0D 00 56 01 80 0D 02 02 05 00 F5 ED C4 65 0E 00 00 F4 [05:28:29]Write i2c OK [05:28:29]MH_I2C_Read... [05:28:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:28:29]Read from MH i2c: E2 [05:28:29]MH_I2C_Read... [05:28:29]Read from MH i2c: E2 03 00 [05:28:29]MH_I2C_Read... [05:28:29]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [05:28:29]RAPDU: 90 00 [05:28:29]wFMCommunicate OK [05:28:29]wFMCommunicate request_size=4 [05:28:29]MH_SAM_APDU [05:28:29]CAPDU: 80 0D 03 02 [05:28:29]Write to MH i2c: E2 08 00 57 01 80 0D 03 02 00 00 00 00 D3 [05:28:29]Write i2c OK [05:28:29]MH_I2C_Read... [05:28:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:28:29]Read from MH i2c: E2 [05:28:29]MH_I2C_Read... [05:28:29]Read from MH i2c: E2 0B 00 [05:28:29]MH_I2C_Read... [05:28:29]Read from MH i2c: E2 0B 00 57 01 00 51 CA 59 94 48 DF 72 9F 90 00 14 [05:28:29]RAPDU: 51 CA 59 94 48 DF 72 9F 90 00 [05:28:29]wFMCommunicate OK [05:28:29]SAM_PROTO_SignData done [05:28:29]FM_MakeSignedData done [05:28:29]CreateOFDProtocolMessage [05:28:29]wFMCommunicate request_size=4 [05:28:29]MH_SAM_APDU [05:28:29]CAPDU: 80 11 00 00 [05:28:29]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [05:28:29]Write i2c OK [05:28:29]MH_I2C_Read... [05:28:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:28:29]Read from MH i2c: E2 [05:28:29]MH_I2C_Read... [05:28:29]Read from MH i2c: E2 17 00 [05:28:29]MH_I2C_Read... [05:28:29]Read from MH i2c: E2 17 00 58 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2E [05:28:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [05:28:29]wFMCommunicate OK [05:28:29]CreateOFDProtocolMessage done [05:28:29]OFDSenderStorePacket 118352 [05:28:29]StoreOFDPacket docnum=118352 [05:28:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E2 57 07 01 55 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 FC D6 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 50 CE 01 00 35 04 06 00 97 F5 ED C4 65 0E 51 CA 59 94 48 DF 72 9F [05:28:29]CheckFolder [05:28:29]dirname=/storage/ofd_packets [05:28:29]CheckFolder done [05:28:29]ProducePacketName [05:28:29]name=ofd_packets/00118352 [05:28:29]NVStorageSaveData ofd_packets/00118352 [05:28:29]File name is /storage/ofd_packets/00118352 [05:28:29]Write 301 bytes [05:28:29]NVStorageSaveData done [05:28:29]OFDSenderStorePacket done [05:28:29]KKMCreateOFDPacket done [05:28:29]NVStorageSaveData kkm_last_timestamp [05:28:29]File name is /storage/kkm_last_timestamp [05:28:29]Write 4 bytes [05:28:29]NVStorageSaveData done [05:28:29]ExternCall_PrintAddStr [05:28:29]wPrintStart [05:28:29]Write to MH i2c: 01 00 00 59 01 5A [05:28:29]Write i2c OK [05:28:29]MH_I2C_Read... [05:28:29]Read from MH i2c: 01 [05:28:29]MH_I2C_Read... [05:28:29]Read from MH i2c: 01 07 00 [05:28:29]MH_I2C_Read... [05:28:29]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 FF 0F 6F [05:28:29]RasterBufferAndPrint [05:28:29]line Счет N : (1)949226 [05:28:29]line ИНН: 02508201610067 [05:28:29]line Контрольно-Кассовый Чек [05:28:29]line ПРОДАЖА [05:28:29]line ТРК (МРК, ГНК) : 41 [05:28:29]line Товар: 2710124130 [05:28:29]line Аи-92-К-4 [05:28:29]line 14.750 * 67.80 [05:28:29]line = 1000.05 [05:28:29]line НДС 12% НСП 1% [05:28:29]line > о реализуемом товаре [05:28:29]line ОКРУГЛЕНИЕ: -0.05 [05:28:29]line ИТОГО: 1000.00 [05:28:29]line Внесено: 1000.00 [05:28:29]line СДАЧА: 0.00 [05:28:29]line НСП 1% : 8.85 [05:28:29]line НДС 12% : 106.20 [05:28:29]line Наличными: 1000.00 [05:28:29]line Безнал.: 0.00 [05:28:29]line Место: АЗС № 134 "Партнер Нефть" [05:28:29]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [05:28:29]line СНО: Общий режим [05:28:29]line Чек 21 28.07.2024 05:28 [05:28:29]line Смена: 433 ФФД: 1.0 [05:28:29]line ЗНМ: 0300000044 [05:28:29]line РНМ: 0000000000092660 [05:28:29]line Версия ККМ: 001 [05:28:29]line ФМ: 0000000000874939 [05:28:29]line ФД: 118352 [05:28:29]line ФПД: 167082511852814 [05:28:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T052828&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118352&fm=167082511852814&tin=02508201610067®Number=0000000000092660&sum=100000 [05:28:29]OFD Sender: Processing packet 118352 [packets to send 86, broken 85] [05:28:29]ProducePacketName [05:28:29]name=ofd_packets/00118352 [05:28:29]OFD Sender: To server: pG, [05:28:29]CommunicateWithHost lk.salyk.kg:30040 [05:28:29]ConnectInit lk.salyk.kg [05:28:29]written 0, free lines is 4095 [05:28:29]Connected sock=10 [05:28:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E2 57 07 01 55 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 FC D6 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 50 CE 01 00 35 04 06 00 97 F5 ED C4 65 0E 51 CA 59 94 48 DF 72 9F [05:28:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 97 D2 47 00 70 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 39 33 39 10 04 04 00 50 CE 01 00 F4 03 04 00 8D 84 A5 66 B6 04 01 00 00 86 1D 32 55 85 64 D5 E7 [05:28:29]CommunicateWithHost err = 0 [05:28:29]CheckOFDResponse [05:28:29]1017 (14) - 77093643461234 [05:28:29]1041 (16) - 0000000000874939 [05:28:29]1040 (4) - 118352 [05:28:29]1012 (4) - 27.07.2024 23:36 [05:28:29]1206 (1) - 0 [05:28:29]OFD Sender: Remove packet 118352 [05:28:29]ProducePacketName [05:28:29]name=ofd_packets/00118352 [05:28:29]NVStorageDeleteData [05:28:29]Write to MH i2c: 01 00 00 83 01 84 [05:28:29]Write i2c OK [05:28:29]MH_I2C_Read... [05:28:29]Read from MH i2c: 01 [05:28:29]MH_I2C_Read... [05:28:29]Read from MH i2c: 01 07 00 [05:28:29]MH_I2C_Read... [05:28:29]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 DC 0C 73 [05:28:29]RasterBufferAndPrint [05:28:29]line [05:28:29]line [05:28:29]line [05:28:29]line [05:28:29]line [05:28:29]written 0, free lines is 3296 [05:28:29]MH_Cut [05:28:29]Write to MH i2c: D1 01 00 8A 01 01 5D [05:28:29]Write i2c OK [05:28:29]MH_I2C_Read... [05:28:29]Read from MH i2c: D1 [05:28:29]MH_I2C_Read... [05:28:29]Read from MH i2c: D1 01 00 [05:28:29]MH_I2C_Read... [05:28:29]Read from MH i2c: D1 01 00 8A 01 00 5C [05:28:29]Write to MH i2c: 01 00 00 8B 01 8C [05:28:29]Write i2c OK [05:28:29]MH_I2C_Read... [05:28:30]OFD Sender: No OFD packet to send [05:28:30]*** Cut start [05:28:30]*** Partial cut [05:28:30]*** CUTSNS_PIN = 1 [05:28:30]*** CUTSNS_PIN = 0 [05:28:31]*** Brake cut motor [05:28:31]Read from MH i2c: 01 [05:28:31]MH_I2C_Read... [05:28:31]*** Stop cut motor [05:28:31]*** Cut end [05:28:31]Read from MH i2c: 01 07 00 [05:28:31]MH_I2C_Read... [05:28:31]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 FF 0F A1 [05:28:31]process_action close_receipt done [05:28:31]requested_data is exist [05:28:31]produce_requested_data [05:28:31]requested_item fm.sn is exist - process it [05:28:31]wFMCommunicate request_size=4 [05:28:31]MH_SAM_APDU [05:28:31]CAPDU: 80 11 00 00 [05:28:31]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [05:28:31]Write i2c OK [05:28:31]MH_I2C_Read... [05:28:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:28:31]Read from MH i2c: E2 [05:28:31]MH_I2C_Read... [05:28:31]Read from MH i2c: E2 17 00 [05:28:31]MH_I2C_Read... [05:28:31]Read from MH i2c: E2 17 00 8C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 62 [05:28:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [05:28:31]wFMCommunicate OK [05:28:31]requested_item fd.num is exist - process it [05:28:31]SAM_PROTO_GetFieldsCounters [05:28:31]wFMCommunicate request_size=4 [05:28:31]MH_SAM_APDU [05:28:31]CAPDU: 80 13 00 00 [05:28:31]Write to MH i2c: E2 08 00 8D 01 80 13 00 00 00 00 00 00 0A [05:28:31]Write i2c OK [05:28:31]MH_I2C_Read... [05:28:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:28:31]Read from MH i2c: E2 [05:28:31]MH_I2C_Read... [05:28:31]Read from MH i2c: E2 62 00 [05:28:31]MH_I2C_Read... [05:28:31]Read from MH i2c: E2 62 00 8D 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 50 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [05:28:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 50 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:28:31]wFMCommunicate OK [05:28:31]SAM_PROTO_GetFieldsCounters done [05:28:31]requested_item shift.num is exist - process it [05:28:31]requested_item shift.opened is exist - process it [05:28:31]req_shift_opened [05:28:31]FM_GetShiftState [05:28:31]SAM_PROTO_GetShiftState [05:28:31]wFMCommunicate request_size=4 [05:28:31]MH_SAM_APDU [05:28:31]CAPDU: 80 13 01 00 [05:28:31]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [05:28:31]Write i2c OK [05:28:31]MH_I2C_Read... [05:28:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:28:31]Read from MH i2c: E2 [05:28:31]MH_I2C_Read... [05:28:31]Read from MH i2c: E2 0E 00 [05:28:31]MH_I2C_Read... [05:28:31]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 E3 [05:28:31]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [05:28:31]wFMCommunicate OK [05:28:31]SAM_PROTO_GetShiftState done [05:28:31]FM_GetShiftState done [05:28:31]req_shift_opened done [05:28:31]requested_item shift.open_date is exist - process it [05:28:31]req_shift_open_date [05:28:31]req_shift_open_date done [05:28:31]produce_requested_data done [05:28:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118352,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [05:28:31]process_action_free close_receipt [05:28:31]json_value_free [05:28:31]json_value_free done [05:28:31]process_json_proto returns [05:28:31]Send response to host [05:28:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118352,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [05:28:31]free response buf [05:28:31]execute_script done [05:28:31]execute_script returns [05:28:31]free content buf [05:28:31]Sock 9.Close socket [05:28:31]Sock 9.Thread stoped [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:29:55]OFD Sender: No OFD packet to send [05:30:00]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:15]OFD Sender: No OFD packet to send [05:30:20]OFD Sender: No OFD packet to send [05:30:25]OFD Sender: No OFD packet to send [05:30:30]OFD Sender: No OFD packet to send [05:30:35]OFD Sender: No OFD packet to send [05:30:40]OFD Sender: No OFD packet to send [05:30:45]OFD Sender: No OFD packet to send [05:30:50]OFD Sender: No OFD packet to send [05:30:55]OFD Sender: No OFD packet to send [05:31:00]OFD Sender: No OFD packet to send [05:31:05]OFD Sender: No OFD packet to send [05:31:10]OFD Sender: No OFD packet to send [05:31:15]OFD Sender: No OFD packet to send [05:31:20]OFD Sender: No OFD packet to send [05:31:25]OFD Sender: No OFD packet to send [05:31:30]OFD Sender: No OFD packet to send [05:31:35]OFD Sender: No OFD packet to send [05:31:40]OFD Sender: No OFD packet to send [05:31:45]OFD Sender: No OFD packet to send [05:31:50]OFD Sender: No OFD packet to send [05:31:55]OFD Sender: No OFD packet to send [05:32:00]OFD Sender: No OFD packet to send [05:32:05]OFD Sender: No OFD packet to send [05:32:10]OFD Sender: No OFD packet to send [05:32:15]OFD Sender: No OFD packet to send [05:32:20]OFD Sender: No OFD packet to send [05:32:25]OFD Sender: No OFD packet to send [05:32:30]OFD Sender: No OFD packet to send [05:32:35]OFD Sender: No OFD packet to send [05:32:40]OFD Sender: No OFD packet to send [05:32:45]OFD Sender: No OFD packet to send [05:32:50]OFD Sender: No OFD packet to send [05:32:55]OFD Sender: No OFD packet to send [05:33:00]OFD Sender: No OFD packet to send [05:33:05]OFD Sender: No OFD packet to send [05:33:10]OFD Sender: No OFD packet to send [05:33:15]OFD Sender: No OFD packet to send [05:33:20]OFD Sender: No OFD packet to send [05:33:25]OFD Sender: No OFD packet to send [05:33:30]OFD Sender: No OFD packet to send [05:33:35]OFD Sender: No OFD packet to send [05:33:40]OFD Sender: No OFD packet to send [05:33:45]OFD Sender: No OFD packet to send [05:33:50]OFD Sender: No OFD packet to send [05:33:55]OFD Sender: No OFD packet to send [05:34:00]OFD Sender: No OFD packet to send [05:34:05]OFD Sender: No OFD packet to send [05:34:10]OFD Sender: No OFD packet to send [05:34:15]OFD Sender: No OFD packet to send [05:34:20]OFD Sender: No OFD packet to send [05:34:25]OFD Sender: No OFD packet to send [05:34:30]OFD Sender: No OFD packet to send [05:34:35]OFD Sender: No OFD packet to send [05:34:40]OFD Sender: No OFD packet to send [05:34:45]OFD Sender: No OFD packet to send [05:34:50]OFD Sender: No OFD packet to send [05:34:55]OFD Sender: No OFD packet to send [05:35:00]OFD Sender: No OFD packet to send [05:35:05]OFD Sender: No OFD packet to send [05:35:10]OFD Sender: No OFD packet to send [05:35:15]OFD Sender: No OFD packet to send [05:35:20]OFD Sender: No OFD packet to send [05:35:25]OFD Sender: No OFD packet to send [05:35:30]OFD Sender: No OFD packet to send [05:35:35]OFD Sender: No OFD packet to send [05:35:40]OFD Sender: No OFD packet to send [05:35:45]OFD Sender: No OFD packet to send [05:35:50]OFD Sender: No OFD packet to send [05:35:55]OFD Sender: No OFD packet to send [05:36:00]OFD Sender: No OFD packet to send [05:36:05]OFD Sender: No OFD packet to send [05:36:10]OFD Sender: No OFD packet to send [05:36:15]OFD Sender: No OFD packet to send [05:36:20]OFD Sender: No OFD packet to send [05:36:25]OFD Sender: No OFD packet to send [05:36:30]OFD Sender: No OFD packet to send [05:36:35]OFD Sender: No OFD packet to send [05:36:40]OFD Sender: No OFD packet to send [05:36:45]OFD Sender: No OFD packet to send [05:36:50]OFD Sender: No OFD packet to send [05:36:55]OFD Sender: No OFD packet to send [05:37:00]OFD Sender: No OFD packet to send [05:37:05]OFD Sender: No OFD packet to send [05:37:10]OFD Sender: No OFD packet to send [05:37:15]OFD Sender: No OFD packet to send [05:37:19]accept exits with 7 [05:37:19]New connection [05:37:19]New thread 3066924388 created [05:37:19]Thread 3067067748 joined [05:37:19]Waiting for new connection... [05:37:19] Sock 7.Parse request [05:37:19]Sock 7.Check first char [05:37:19]Sock 7.First char is OK [05:37:19]request: POST /json_proto HTTP/1.0 [05:37:19]Method: POST [05:37:19]URL: /json_proto [05:37:19]Method is POST - this is cgi request [05:37:19]url: /json_proto [05:37:19]query_string will be loaded in cgi processing [05:37:19]execute_cgi json_proto POST (null) [05:37:19]execute_cgi path=json_proto method=POST [05:37:19]POST find Content-Length [05:37:19]Host: 172.17.45.7:8080 [05:37:19]Content-Length: 674 [05:37:19]Content-Type: application/json [05:37:19] [05:37:19]POST finish read [05:37:19]Found Content-Length = 674 [05:37:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:37:19]execute_script... [05:37: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)949227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:37:19]POST & json_proto [05:37:19]process_json_proto [05:37:19]json parsed OK: [05:37:19]protocol is kg_v1.0 [05:37:19]action value=close_receipt [05:37:19]process_action close_receipt [05:37:19]cmd_close_receipt [05:37:19]MH_GetDate [05:37:19]Write to MH i2c: F0 00 00 8F 01 7F [05:37:19]Write i2c OK [05:37:19]MH_I2C_Read... [05:37:19]Read from MH i2c: F0 [05:37:19]MH_I2C_Read... [05:37:19]Read from MH i2c: F0 09 00 [05:37:19]MH_I2C_Read... [05:37:19]Read from MH i2c: F0 09 00 8F 01 00 10 D9 A5 66 90 0F 3E 66 BF [05:37:19]GetLastDocTimeStamp 1722144508 [05:37:19]current date 1722145040 [05:37:19]FM_GetShiftState [05:37:19]SAM_PROTO_GetShiftState [05:37:19]wFMCommunicate request_size=4 [05:37:19]MH_SAM_APDU [05:37:19]CAPDU: 80 13 01 00 [05:37:19]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [05:37:19]Write i2c OK [05:37:19]MH_I2C_Read... [05:37:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:37:19]Read from MH i2c: E2 [05:37:19]MH_I2C_Read... [05:37:19]Read from MH i2c: E2 0E 00 [05:37:19]MH_I2C_Read... [05:37:19]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 E5 [05:37:19]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [05:37:19]wFMCommunicate OK [05:37:19]SAM_PROTO_GetShiftState done [05:37:19]FM_GetShiftState done [05:37:19]opened in 1722125364 [05:37:19]opened+sec_in_day 1722211764 [05:37:19]quantity*price = 50063 [05:37:19]sum+1 = 50064 [05:37:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 22 28.07.2024 05:37 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118353 ФПД: 267079712907542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T053720&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118353&fm=267079712907542&tin=02508201610067®Number=0000000000092660&sum=50000 [05:37:20]StoreToDocumentArchive [05:37:20]shift 433 fd 118353 [05:37:20]save to /storage/0433/doc_00118353 [05:37:20]save last doc name /storage/0433/doc_00118353 to /storage/kkm_last_doc_name [05:37:20]save OK [05:37:20]Clear old archive folders... [05:37:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:37:20]tlvbuf is 0012F1F0 [05:37:20]SAM_PROTO_ClearQueue [05:37:20]wFMCommunicate request_size=4 [05:37:20]MH_SAM_APDU [05:37:20]CAPDU: 80 09 00 00 [05:37:20]Write to MH i2c: E2 08 00 9D 01 80 09 00 00 00 00 00 00 10 [05:37:20]Write i2c OK [05:37:20]MH_I2C_Read... [05:37:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:37:20]Read from MH i2c: E2 [05:37:20]MH_I2C_Read... [05:37:20]Read from MH i2c: E2 03 00 [05:37:20]MH_I2C_Read... [05:37:20]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [05:37:20]RAPDU: 90 00 [05:37:20]wFMCommunicate OK [05:37:20]SAM_PROTO_ClearQueue done [05:37:20]KKMCreateOFDPacket [05:37:20]OFDProtocolAddRootSTLVToBuf [05:37:20]FM_MakeSignedData [05:37:20]FM_MakeSignedData [05:37:20]SAM_PROTO_SignData [05:37:20]wFMCommunicate request_size=4 [05:37:20]MH_SAM_APDU [05:37:20]CAPDU: 80 0D 01 02 [05:37:20]Write to MH i2c: E2 08 00 9E 01 80 0D 01 02 00 00 00 00 18 [05:37:20]Write i2c OK [05:37:20]MH_I2C_Read... [05:37:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:37:20]Read from MH i2c: E2 [05:37:20]MH_I2C_Read... [05:37:20]Read from MH i2c: E2 03 00 [05:37:20]MH_I2C_Read... [05:37:20]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [05:37:20]RAPDU: 90 00 [05:37:20]wFMCommunicate OK [05:37:20]wFMCommunicate request_size=255 [05:37:20]MH_SAM_APDU [05:37:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 10 D9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 51 CE 01 00 35 04 06 00 F2 E8 57 6A [05:37:20]Write to MH i2c: E2 02 01 9F 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 10 D9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 51 CE 01 00 35 04 06 00 F2 E8 57 6A 00 00 A7 [05:37:20]Write i2c OK [05:37:20]MH_I2C_Read... [05:37:20]OFD Sender: No OFD packet to send [05:37:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:37:21]Read from MH i2c: E2 [05:37:21]MH_I2C_Read... [05:37:21]Read from MH i2c: E2 03 00 [05:37:21]MH_I2C_Read... [05:37:21]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [05:37:21]RAPDU: 90 00 [05:37:21]wFMCommunicate OK [05:37:21]wFMCommunicate request_size=7 [05:37:21]MH_SAM_APDU [05:37:21]CAPDU: 80 0D 02 02 02 21 16 [05:37:21]Write to MH i2c: E2 0A 00 A0 01 80 0D 02 02 02 00 21 16 00 00 56 [05:37:21]Write i2c OK [05:37:21]MH_I2C_Read... [05:37:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:37:21]Read from MH i2c: E2 [05:37:21]MH_I2C_Read... [05:37:21]Read from MH i2c: E2 03 00 [05:37:21]MH_I2C_Read... [05:37:21]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [05:37:21]RAPDU: 90 00 [05:37:21]wFMCommunicate OK [05:37:21]wFMCommunicate request_size=4 [05:37:21]MH_SAM_APDU [05:37:21]CAPDU: 80 0D 03 02 [05:37:21]Write to MH i2c: E2 08 00 A1 01 80 0D 03 02 00 00 00 00 1D [05:37:21]Write i2c OK [05:37:21]MH_I2C_Read... [05:37:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:37:21]Read from MH i2c: E2 [05:37:21]MH_I2C_Read... [05:37:21]Read from MH i2c: E2 0B 00 [05:37:21]MH_I2C_Read... [05:37:21]Read from MH i2c: E2 0B 00 A1 01 00 C2 3F B1 F8 06 2D A9 FD 90 00 A1 [05:37:21]RAPDU: C2 3F B1 F8 06 2D A9 FD 90 00 [05:37:21]wFMCommunicate OK [05:37:21]SAM_PROTO_SignData done [05:37:21]FM_MakeSignedData done [05:37:21]CreateOFDProtocolMessage [05:37:21]wFMCommunicate request_size=4 [05:37:21]MH_SAM_APDU [05:37:21]CAPDU: 80 11 00 00 [05:37:21]Write to MH i2c: E2 08 00 A2 01 80 11 00 00 00 00 00 00 1D [05:37:21]Write i2c OK [05:37:21]MH_I2C_Read... [05:37:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:37:21]Read from MH i2c: E2 [05:37:21]MH_I2C_Read... [05:37:21]Read from MH i2c: E2 17 00 [05:37:21]MH_I2C_Read... [05:37:21]Read from MH i2c: E2 17 00 A2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 78 [05:37:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [05:37:21]wFMCommunicate OK [05:37:21]CreateOFDProtocolMessage done [05:37:21]OFDSenderStorePacket 118353 [05:37:21]StoreOFDPacket docnum=118353 [05:37:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F0 15 04 01 57 A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 10 D9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 51 CE 01 00 35 04 06 00 F2 E8 57 6A 21 16 C2 3F B1 F8 06 2D A9 FD [05:37:21]CheckFolder [05:37:21]dirname=/storage/ofd_packets [05:37:21]CheckFolder done [05:37:21]ProducePacketName [05:37:21]name=ofd_packets/00118353 [05:37:21]NVStorageSaveData ofd_packets/00118353 [05:37:21]File name is /storage/ofd_packets/00118353 [05:37:21]Write 298 bytes [05:37:21]NVStorageSaveData done [05:37:21]OFDSenderStorePacket done [05:37:21]KKMCreateOFDPacket done [05:37:21]NVStorageSaveData kkm_last_timestamp [05:37:21]File name is /storage/kkm_last_timestamp [05:37:21]Write 4 bytes [05:37:21]NVStorageSaveData done [05:37:21]ExternCall_PrintAddStr [05:37:21]wPrintStart [05:37:21]Write to MH i2c: 01 00 00 A3 01 A4 [05:37:21]Write i2c OK [05:37:21]MH_I2C_Read... [05:37:21]Read from MH i2c: 01 [05:37:21]MH_I2C_Read... [05:37:21]Read from MH i2c: 01 07 00 [05:37:21]MH_I2C_Read... [05:37:21]Read from MH i2c: 01 07 00 A3 01 00 00 00 00 00 FF 0F B9 [05:37:21]RasterBufferAndPrint [05:37:21]line Счет N : (1)949227 [05:37:21]line ИНН: 02508201610067 [05:37:21]line Контрольно-Кассовый Чек [05:37:21]line ПРОДАЖА [05:37:21]line ТРК (МРК, ГНК) : 54 [05:37:21]line Товар: 2710194800 [05:37:21]line ДТ-К-5 [05:37:21]line 6.570 * 76.20 [05:37:21]line = 500.63 [05:37:21]line НДС 12% НСП 1% [05:37:21]line > о реализуемом товаре [05:37:21]line ОКРУГЛЕНИЕ: -0.63 [05:37:21]line ИТОГО: 500.00 [05:37:21]line Внесено: 500.00 [05:37:21]line СДАЧА: 0.00 [05:37:21]line НСП 1% : 4.43 [05:37:21]line НДС 12% : 53.16 [05:37:21]line Наличными: 500.00 [05:37:21]line Безнал.: 0.00 [05:37:21]line Место: АЗС № 134 "Партнер Нефть" [05:37:21]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [05:37:21]line СНО: Общий режим [05:37:21]line Чек 22 28.07.2024 05:37 [05:37:21]line Смена: 433 ФФД: 1.0 [05:37:21]line ЗНМ: 0300000044 [05:37:21]line РНМ: 0000000000092660 [05:37:21]line Версия ККМ: 001 [05:37:21]line ФМ: 0000000000874939 [05:37:21]line ФД: 118353 [05:37:21]line ФПД: 267079712907542 [05:37:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T053720&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118353&fm=267079712907542&tin=02508201610067®Number=0000000000092660&sum=50000 [05:37:21]OFD Sender: Processing packet 118353 [packets to send 86, broken 85] [05:37:21]ProducePacketName [05:37:21]name=ofd_packets/00118353 [05:37:21]OFD Sender: To server: pG, [05:37:21]CommunicateWithHost lk.salyk.kg:30040 [05:37:21]ConnectInit lk.salyk.kg [05:37:21]written 0, free lines is 4095 [05:37:21]Connected sock=11 [05:37: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 39 33 39 0C 01 00 00 F0 15 04 01 57 A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 10 D9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 51 CE 01 00 35 04 06 00 F2 E8 57 6A 21 16 C2 3F B1 F8 06 2D A9 FD [05:37:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 11 C2 47 00 35 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 51 CE 01 00 F4 03 04 00 A1 86 A5 66 B6 04 01 00 00 0B E5 FE F4 1D 25 3B AB [05:37:21]CommunicateWithHost err = 0 [05:37:21]CheckOFDResponse [05:37:21]1017 (14) - 77093643461234 [05:37:21]1041 (16) - 0000000000874939 [05:37:21]1040 (4) - 118353 [05:37:21]1012 (4) - 27.07.2024 23:45 [05:37:21]1206 (1) - 0 [05:37:21]OFD Sender: Remove packet 118353 [05:37:21]ProducePacketName [05:37:21]name=ofd_packets/00118353 [05:37:21]NVStorageDeleteData [05:37:22]Write to MH i2c: 01 00 00 CD 01 CE [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 CD 01 00 00 00 00 00 D2 0C B3 [05:37:22]RasterBufferAndPrint [05:37:22]line [05:37:22]line [05:37:22]line [05:37:22]line [05:37:22]line [05:37:22]written 0, free lines is 3288 [05:37:22]MH_Cut [05:37:22]Write to MH i2c: D1 01 00 D4 01 01 A7 [05:37:22]Write i2c OK [05:37:22]MH_I2C_Read... [05:37:22]Read from MH i2c: D1 [05:37:22]MH_I2C_Read... [05:37:22]Read from MH i2c: D1 01 00 [05:37:22]MH_I2C_Read... [05:37:22]Read from MH i2c: D1 01 00 D4 01 00 A6 [05:37:22]Write to MH i2c: 01 00 00 D5 01 D6 [05:37:22]Write i2c OK [05:37:22]MH_I2C_Read... [05:37:22]OFD Sender: No OFD packet to send [05:37:22]*** Cut start [05:37:22]*** Partial cut [05:37:22]*** CUTSNS_PIN = 1 [05:37:22]*** CUTSNS_PIN = 0 [05:37:23]*** Brake cut motor [05:37:23]Read from MH i2c: 01 [05:37:23]MH_I2C_Read... [05:37:23]*** Stop cut motor [05:37:23]*** Cut end [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 D5 01 00 00 00 00 00 FF 0F EB [05:37:23]process_action close_receipt done [05:37:23]requested_data is exist [05:37:23]produce_requested_data [05:37:23]requested_item fm.sn is exist - process it [05:37:23]wFMCommunicate request_size=4 [05:37:23]MH_SAM_APDU [05:37:23]CAPDU: 80 11 00 00 [05:37:23]Write to MH i2c: E2 08 00 D6 01 80 11 00 00 00 00 00 00 51 [05:37:23]Write i2c OK [05:37:23]MH_I2C_Read... [05:37:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:37:23]Read from MH i2c: E2 [05:37:23]MH_I2C_Read... [05:37:23]Read from MH i2c: E2 17 00 [05:37:23]MH_I2C_Read... [05:37:23]Read from MH i2c: E2 17 00 D6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AC [05:37:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [05:37:23]wFMCommunicate OK [05:37:23]requested_item fd.num is exist - process it [05:37:23]SAM_PROTO_GetFieldsCounters [05:37:23]wFMCommunicate request_size=4 [05:37:23]MH_SAM_APDU [05:37:23]CAPDU: 80 13 00 00 [05:37:23]Write to MH i2c: E2 08 00 D7 01 80 13 00 00 00 00 00 00 54 [05:37:23]Write i2c OK [05:37:23]MH_I2C_Read... [05:37:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:37:23]Read from MH i2c: E2 [05:37:23]MH_I2C_Read... [05:37:23]Read from MH i2c: E2 62 00 [05:37:23]MH_I2C_Read... [05:37:23]Read from MH i2c: E2 62 00 D7 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 51 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [05:37:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 51 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:37:23]wFMCommunicate OK [05:37:23]SAM_PROTO_GetFieldsCounters done [05:37:23]requested_item shift.num is exist - process it [05:37:23]requested_item shift.opened is exist - process it [05:37:23]req_shift_opened [05:37:23]FM_GetShiftState [05:37:23]SAM_PROTO_GetShiftState [05:37:23]wFMCommunicate request_size=4 [05:37:23]MH_SAM_APDU [05:37:23]CAPDU: 80 13 01 00 [05:37:23]Write to MH i2c: E2 08 00 D8 01 80 13 01 00 00 00 00 00 56 [05:37:23]Write i2c OK [05:37:23]MH_I2C_Read... [05:37:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:37:23]Read from MH i2c: E2 [05:37:23]MH_I2C_Read... [05:37:23]Read from MH i2c: E2 0E 00 [05:37:23]MH_I2C_Read... [05:37:23]Read from MH i2c: E2 0E 00 D8 01 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 2D [05:37:23]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [05:37:23]wFMCommunicate OK [05:37:23]SAM_PROTO_GetShiftState done [05:37:23]FM_GetShiftState done [05:37:23]req_shift_opened done [05:37:23]requested_item shift.open_date is exist - process it [05:37:23]req_shift_open_date [05:37:23]req_shift_open_date done [05:37:23]produce_requested_data done [05:37:23]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118353,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [05:37:23]process_action_free close_receipt [05:37:23]json_value_free [05:37:23]json_value_free done [05:37:23]process_json_proto returns [05:37:23]Send response to host [05:37:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118353,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [05:37:23]free response buf [05:37:23]execute_script done [05:37:23]execute_script returns [05:37:23]free content buf [05:37:23]Sock 7.Close socket [05:37:23]Sock 7.Thread stoped [05:37:27]OFD Sender: No OFD packet to send [05:37:32]OFD Sender: No OFD packet to send [05:37:37]OFD Sender: No OFD packet to send [05:37:37]accept exits with 9 [05:37:37]New connection [05:37:37]New thread 3067067748 created [05:37:37]Thread 3066924388 joined [05:37:37]Waiting for new connection... [05:37:37] Sock 9.Parse request [05:37:37]Sock 9.Check first char [05:37:37]Sock 9.First char is OK [05:37:37]request: POST /json_proto HTTP/1.0 [05:37:37]Method: POST [05:37:37]URL: /json_proto [05:37:37]Method is POST - this is cgi request [05:37:37]url: /json_proto [05:37:37]query_string will be loaded in cgi processing [05:37:37]execute_cgi json_proto POST (null) [05:37:37]execute_cgi path=json_proto method=POST [05:37:37]POST find Content-Length [05:37:37]Host: 172.17.45.7:8080 [05:37:37]Content-Length: 682 [05:37:37]Content-Type: application/json [05:37:37] [05:37:37]POST finish read [05:37:37]Found Content-Length = 682 [05:37:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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:37:37]execute_script... [05:37: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)949228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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:37:37]POST & json_proto [05:37:37]process_json_proto [05:37:37]json parsed OK: [05:37:37]protocol is kg_v1.0 [05:37:37]action value=close_receipt [05:37:37]process_action close_receipt [05:37:37]cmd_close_receipt [05:37:37]MH_GetDate [05:37:37]Write to MH i2c: F0 00 00 D9 01 C9 [05:37:37]Write i2c OK [05:37:37]MH_I2C_Read... [05:37:37]Read from MH i2c: F0 [05:37:37]MH_I2C_Read... [05:37:37]Read from MH i2c: F0 09 00 [05:37:37]MH_I2C_Read... [05:37:37]Read from MH i2c: F0 09 00 D9 01 00 23 D9 A5 66 90 0F 3E 66 1C [05:37:37]GetLastDocTimeStamp 1722145040 [05:37:37]current date 1722145059 [05:37:37]FM_GetShiftState [05:37:37]SAM_PROTO_GetShiftState [05:37:37]wFMCommunicate request_size=4 [05:37:37]MH_SAM_APDU [05:37:37]CAPDU: 80 13 01 00 [05:37:37]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [05:37:37]Write i2c OK [05:37:37]MH_I2C_Read... [05:37:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:37:37]Read from MH i2c: E2 [05:37:37]MH_I2C_Read... [05:37:37]Read from MH i2c: E2 0E 00 [05:37:37]MH_I2C_Read... [05:37:37]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 2F [05:37:37]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [05:37:37]wFMCommunicate OK [05:37:37]SAM_PROTO_GetShiftState done [05:37:37]FM_GetShiftState done [05:37:37]opened in 1722125364 [05:37:37]opened+sec_in_day 1722211764 [05:37:37]quantity*price = 150041 [05:37:37]sum+1 = 150042 [05:37:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 23 28.07.2024 05:37 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118354 ФПД: 106282943789621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T053739&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118354&fm=106282943789621&tin=02508201610067®Number=0000000000092660&sum=150000 [05:37:39]StoreToDocumentArchive [05:37:39]shift 433 fd 118354 [05:37:39]save to /storage/0433/doc_00118354 [05:37:39]save last doc name /storage/0433/doc_00118354 to /storage/kkm_last_doc_name [05:37:39]save OK [05:37:39]Clear old archive folders... [05:37:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:37:39]tlvbuf is 001391D0 [05:37:39]SAM_PROTO_ClearQueue [05:37:39]wFMCommunicate request_size=4 [05:37:39]MH_SAM_APDU [05:37:39]CAPDU: 80 09 00 00 [05:37:39]Write to MH i2c: E2 08 00 E7 01 80 09 00 00 00 00 00 00 5A [05:37:39]Write i2c OK [05:37:39]MH_I2C_Read... [05:37:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:37:39]Read from MH i2c: E2 [05:37:39]MH_I2C_Read... [05:37:39]Read from MH i2c: E2 03 00 [05:37:39]MH_I2C_Read... [05:37:39]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [05:37:39]RAPDU: 90 00 [05:37:39]wFMCommunicate OK [05:37:39]SAM_PROTO_ClearQueue done [05:37:39]KKMCreateOFDPacket [05:37:39]OFDProtocolAddRootSTLVToBuf [05:37:39]FM_MakeSignedData [05:37:39]FM_MakeSignedData [05:37:39]SAM_PROTO_SignData [05:37:39]wFMCommunicate request_size=4 [05:37:39]MH_SAM_APDU [05:37:39]CAPDU: 80 0D 01 02 [05:37:39]Write to MH i2c: E2 08 00 E8 01 80 0D 01 02 00 00 00 00 62 [05:37:39]Write i2c OK [05:37:39]MH_I2C_Read... [05:37:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:37:39]Read from MH i2c: E2 [05:37:39]MH_I2C_Read... [05:37:39]Read from MH i2c: E2 03 00 [05:37:39]MH_I2C_Read... [05:37:39]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [05:37:39]RAPDU: 90 00 [05:37:39]wFMCommunicate OK [05:37:39]wFMCommunicate request_size=255 [05:37:39]MH_SAM_APDU [05:37: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 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 17 00 00 00 F4 03 04 00 23 D9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 52 CE 01 00 35 04 06 00 60 [05:37:39]Write to MH i2c: E2 02 01 E9 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 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 17 00 00 00 F4 03 04 00 23 D9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 52 CE 01 00 35 04 06 00 60 00 00 AC [05:37:39]Write i2c OK [05:37:39]MH_I2C_Read... [05:37:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:37:39]Read from MH i2c: E2 [05:37:39]MH_I2C_Read... [05:37:39]Read from MH i2c: E2 03 00 [05:37:39]MH_I2C_Read... [05:37:39]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [05:37:39]RAPDU: 90 00 [05:37:39]wFMCommunicate OK [05:37:39]wFMCommunicate request_size=10 [05:37:39]MH_SAM_APDU [05:37:39]CAPDU: 80 0D 02 02 05 A9 ED 1C 3A 35 [05:37:39]Write to MH i2c: E2 0D 00 EA 01 80 0D 02 02 05 00 A9 ED 1C 3A 35 00 00 90 [05:37:39]Write i2c OK [05:37:39]MH_I2C_Read... [05:37:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:37:39]Read from MH i2c: E2 [05:37:39]MH_I2C_Read... [05:37:39]Read from MH i2c: E2 03 00 [05:37:39]MH_I2C_Read... [05:37:39]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [05:37:39]RAPDU: 90 00 [05:37:39]wFMCommunicate OK [05:37:39]wFMCommunicate request_size=4 [05:37:39]MH_SAM_APDU [05:37:39]CAPDU: 80 0D 03 02 [05:37:39]Write to MH i2c: E2 08 00 EB 01 80 0D 03 02 00 00 00 00 67 [05:37:39]Write i2c OK [05:37:39]MH_I2C_Read... [05:37:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:37:39]Read from MH i2c: E2 [05:37:39]MH_I2C_Read... [05:37:39]Read from MH i2c: E2 0B 00 [05:37:39]MH_I2C_Read... [05:37:39]Read from MH i2c: E2 0B 00 EB 01 00 76 2E A0 B2 36 C6 EE 96 90 00 DE [05:37:39]RAPDU: 76 2E A0 B2 36 C6 EE 96 90 00 [05:37:39]wFMCommunicate OK [05:37:39]SAM_PROTO_SignData done [05:37:39]FM_MakeSignedData done [05:37:39]CreateOFDProtocolMessage [05:37:39]wFMCommunicate request_size=4 [05:37:39]MH_SAM_APDU [05:37:39]CAPDU: 80 11 00 00 [05:37:39]Write to MH i2c: E2 08 00 EC 01 80 11 00 00 00 00 00 00 67 [05:37:39]Write i2c OK [05:37:39]MH_I2C_Read... [05:37:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:37:39]Read from MH i2c: E2 [05:37:39]MH_I2C_Read... [05:37:39]Read from MH i2c: E2 17 00 [05:37:39]MH_I2C_Read... [05:37:39]Read from MH i2c: E2 17 00 EC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C2 [05:37:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [05:37:39]wFMCommunicate OK [05:37:39]CreateOFDProtocolMessage done [05:37:39]OFDSenderStorePacket 118354 [05:37:39]StoreOFDPacket docnum=118354 [05:37:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 28 89 07 01 27 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 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 17 00 00 00 F4 03 04 00 23 D9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 52 CE 01 00 35 04 06 00 60 A9 ED 1C 3A 35 76 2E A0 B2 36 C6 EE 96 [05:37:39]CheckFolder [05:37:39]dirname=/storage/ofd_packets [05:37:39]CheckFolder done [05:37:39]ProducePacketName [05:37:39]name=ofd_packets/00118354 [05:37:39]NVStorageSaveData ofd_packets/00118354 [05:37:39]File name is /storage/ofd_packets/00118354 [05:37:39]Write 301 bytes [05:37:39]NVStorageSaveData done [05:37:39]OFDSenderStorePacket done [05:37:39]KKMCreateOFDPacket done [05:37:39]NVStorageSaveData kkm_last_timestamp [05:37:39]File name is /storage/kkm_last_timestamp [05:37:39]Write 4 bytes [05:37:39]NVStorageSaveData done [05:37:39]ExternCall_PrintAddStr [05:37:39]wPrintStart [05:37:39]Write to MH i2c: 01 00 00 ED 01 EE [05:37:39]Write i2c OK [05:37:39]MH_I2C_Read... [05:37:39]Read from MH i2c: 01 [05:37:39]MH_I2C_Read... [05:37:39]Read from MH i2c: 01 07 00 [05:37:39]MH_I2C_Read... [05:37:39]Read from MH i2c: 01 07 00 ED 01 00 00 00 00 00 FF 0F 03 [05:37:39]RasterBufferAndPrint [05:37:39]line Счет N : (1)949228 [05:37:39]line ИНН: 02508201610067 [05:37:39]line Контрольно-Кассовый Чек [05:37:39]line ПРОДАЖА [05:37:39]line ТРК (МРК, ГНК) : 31 [05:37:39]line Товар: 2710124130 [05:37:39]line Аи-92-К-4 [05:37:39]line 22.130 * 67.80 [05:37:39]line = 1500.41 [05:37:39]line НДС 12% НСП 1% [05:37:39]line > о реализуемом товаре [05:37:39]line ОКРУГЛЕНИЕ: -0.41 [05:37:39]line ИТОГО: 1500.00 [05:37:39]line Внесено: 1500.00 [05:37:39]line СДАЧА: 0.00 [05:37:39]line НСП 1% : 13.28 [05:37:39]line НДС 12% : 159.34 [05:37:39]line Наличными: 1500.00 [05:37:39]line Безнал.: 0.00 [05:37:39]line Место: АЗС № 134 "Партнер Нефть" [05:37:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [05:37:39]line СНО: Общий режим [05:37:39]line Чек 23 28.07.2024 05:37 [05:37:39]line Смена: 433 ФФД: 1.0 [05:37:39]line ЗНМ: 0300000044 [05:37:39]line РНМ: 0000000000092660 [05:37:39]line Версия ККМ: 001 [05:37:39]line ФМ: 0000000000874939 [05:37:39]line ФД: 118354 [05:37:39]line ФПД: 106282943789621 [05:37:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T053739&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118354&fm=106282943789621&tin=02508201610067®Number=0000000000092660&sum=150000 [05:37:39]OFD Sender: Processing packet 118354 [packets to send 86, broken 85] [05:37:39]ProducePacketName [05:37:39]name=ofd_packets/00118354 [05:37:39]OFD Sender: To server: pG, [05:37:39]CommunicateWithHost lk.salyk.kg:30040 [05:37:39]ConnectInit lk.salyk.kg [05:37:39]written 0, free lines is 4095 [05:37:39]Connected sock=10 [05:37: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 39 33 39 0F 01 00 00 28 89 07 01 27 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 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 17 00 00 00 F4 03 04 00 23 D9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 52 CE 01 00 35 04 06 00 60 A9 ED 1C 3A 35 76 2E A0 B2 36 C6 EE 96 [05:37:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 16 C9 47 00 DB 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 39 33 39 10 04 04 00 52 CE 01 00 F4 03 04 00 B4 86 A5 66 B6 04 01 00 00 17 D8 35 E6 25 B5 BF 5D [05:37:40]CommunicateWithHost err = 0 [05:37:40]CheckOFDResponse [05:37:40]1017 (14) - 77093643461234 [05:37:40]1041 (16) - 0000000000874939 [05:37:40]1040 (4) - 118354 [05:37:40]1012 (4) - 27.07.2024 23:45 [05:37:40]1206 (1) - 0 [05:37:40]OFD Sender: Remove packet 118354 [05:37:40]ProducePacketName [05:37:40]name=ofd_packets/00118354 [05:37:40]NVStorageDeleteData [05:37:40]Write to MH i2c: 01 00 00 17 02 19 [05:37:40]Write i2c OK [05:37:40]MH_I2C_Read... [05:37:40]Read from MH i2c: 01 [05:37:40]MH_I2C_Read... [05:37:40]Read from MH i2c: 01 07 00 [05:37:40]MH_I2C_Read... [05:37:40]Read from MH i2c: 01 07 00 17 02 00 00 00 00 00 E2 0C 0E [05:37:40]RasterBufferAndPrint [05:37:40]line [05:37:40]line [05:37:40]line [05:37:40]line [05:37:40]line [05:37:40]written 0, free lines is 3304 [05:37:40]MH_Cut [05:37:40]Write to MH i2c: D1 01 00 1E 02 01 F2 [05:37:40]Write i2c OK [05:37:40]MH_I2C_Read... [05:37:40]Read from MH i2c: D1 [05:37:40]MH_I2C_Read... [05:37:40]Read from MH i2c: D1 01 00 [05:37:40]MH_I2C_Read... [05:37:40]Read from MH i2c: D1 01 00 1E 02 00 F1 [05:37:40]Write to MH i2c: 01 00 00 1F 02 21 [05:37:40]Write i2c OK [05:37:40]MH_I2C_Read... [05:37:40]OFD Sender: No OFD packet to send [05:37:41]*** Cut start [05:37:41]*** Partial cut [05:37:41]*** CUTSNS_PIN = 1 [05:37:41]*** CUTSNS_PIN = 0 [05:37:41]*** Brake cut motor [05:37:41]Read from MH i2c: 01 [05:37:41]MH_I2C_Read... [05:37:41]*** Stop cut motor [05:37:41]*** Cut end [05:37:41]Read from MH i2c: 01 07 00 [05:37:41]MH_I2C_Read... [05:37:41]Read from MH i2c: 01 07 00 1F 02 00 00 00 00 00 FF 0F 36 [05:37:41]process_action close_receipt done [05:37:41]requested_data is exist [05:37:41]produce_requested_data [05:37:41]requested_item fm.sn is exist - process it [05:37:41]wFMCommunicate request_size=4 [05:37:41]MH_SAM_APDU [05:37:41]CAPDU: 80 11 00 00 [05:37:41]Write to MH i2c: E2 08 00 20 02 80 11 00 00 00 00 00 00 9C [05:37:41]Write i2c OK [05:37:41]MH_I2C_Read... [05:37:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:37:41]Read from MH i2c: E2 [05:37:41]MH_I2C_Read... [05:37:41]Read from MH i2c: E2 17 00 [05:37:41]MH_I2C_Read... [05:37:41]Read from MH i2c: E2 17 00 20 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F7 [05:37:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [05:37:41]wFMCommunicate OK [05:37:41]requested_item fd.num is exist - process it [05:37:41]SAM_PROTO_GetFieldsCounters [05:37:41]wFMCommunicate request_size=4 [05:37:41]MH_SAM_APDU [05:37:41]CAPDU: 80 13 00 00 [05:37:41]Write to MH i2c: E2 08 00 21 02 80 13 00 00 00 00 00 00 9F [05:37:41]Write i2c OK [05:37:41]MH_I2C_Read... [05:37:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:37:41]Read from MH i2c: E2 [05:37:41]MH_I2C_Read... [05:37:41]Read from MH i2c: E2 62 00 [05:37:41]MH_I2C_Read... [05:37:41]Read from MH i2c: E2 62 00 21 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 52 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [05:37:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 52 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:37:41]wFMCommunicate OK [05:37:41]SAM_PROTO_GetFieldsCounters done [05:37:41]requested_item shift.num is exist - process it [05:37:41]requested_item shift.opened is exist - process it [05:37:41]req_shift_opened [05:37:41]FM_GetShiftState [05:37:41]SAM_PROTO_GetShiftState [05:37:41]wFMCommunicate request_size=4 [05:37:41]MH_SAM_APDU [05:37:41]CAPDU: 80 13 01 00 [05:37:41]Write to MH i2c: E2 08 00 22 02 80 13 01 00 00 00 00 00 A1 [05:37:41]Write i2c OK [05:37:41]MH_I2C_Read... [05:37:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:37:41]Read from MH i2c: E2 [05:37:41]MH_I2C_Read... [05:37:41]Read from MH i2c: E2 0E 00 [05:37:41]MH_I2C_Read... [05:37:41]Read from MH i2c: E2 0E 00 22 02 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 78 [05:37:41]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [05:37:41]wFMCommunicate OK [05:37:41]SAM_PROTO_GetShiftState done [05:37:41]FM_GetShiftState done [05:37:41]req_shift_opened done [05:37:41]requested_item shift.open_date is exist - process it [05:37:41]req_shift_open_date [05:37:41]req_shift_open_date done [05:37:41]produce_requested_data done [05:37:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118354,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [05:37:41]process_action_free close_receipt [05:37:41]json_value_free [05:37:41]json_value_free done [05:37:41]process_json_proto returns [05:37:41]Send response to host [05:37:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118354,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [05:37:41]free response buf [05:37:41]execute_script done [05:37:41]execute_script returns [05:37:41]free content buf [05:37:41]Sock 9.Close socket [05:37:41]Sock 9.Thread stoped [05:37:45]OFD Sender: No OFD packet to send [05:37:50]OFD Sender: No OFD packet to send [05:37:55]OFD Sender: No OFD packet to send [05:38:00]OFD Sender: No OFD packet to send [05:38:05]OFD Sender: No OFD packet to send [05:38:10]OFD Sender: No OFD packet to send [05:38:15]OFD Sender: No OFD packet to send [05:38:20]OFD Sender: No OFD packet to send [05:38:25]OFD Sender: No OFD packet to send [05:38:30]OFD Sender: No OFD packet to send [05:38:35]OFD Sender: No OFD packet to send [05:38:40]OFD Sender: No OFD packet to send [05:38:45]OFD Sender: No OFD packet to send [05:38:50]OFD Sender: No OFD packet to send [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:11]OFD Sender: No OFD packet to send [05:42:16]OFD Sender: No OFD packet to send [05:42:21]OFD Sender: No OFD packet to send [05:42:26]OFD Sender: No OFD packet to send [05:42:31]OFD Sender: No OFD packet to send [05:42:36]OFD Sender: No OFD packet to send [05:42:41]OFD Sender: No OFD packet to send [05:42:46]OFD Sender: No OFD packet to send [05:42:51]OFD Sender: No OFD packet to send [05:42:56]OFD Sender: No OFD packet to send [05:43:01]OFD Sender: No OFD packet to send [05:43:06]OFD Sender: No OFD packet to send [05:43:11]OFD Sender: No OFD packet to send [05:43:16]OFD Sender: No OFD packet to send [05:43:21]OFD Sender: No OFD packet to send [05:43:26]OFD Sender: No OFD packet to send [05:43:31]OFD Sender: No OFD packet to send [05:43:36]OFD Sender: No OFD packet to send [05:43:41]OFD Sender: No OFD packet to send [05:43:46]OFD Sender: No OFD packet to send [05:43:51]OFD Sender: No OFD packet to send [05:43:56]OFD Sender: No OFD packet to send [05:44:01]OFD Sender: No OFD packet to send [05:44:06]OFD Sender: No OFD packet to send [05:44:11]OFD Sender: No OFD packet to send [05:44:16]OFD Sender: No OFD packet to send [05:44:21]OFD Sender: No OFD packet to send [05:44:26]OFD Sender: No OFD packet to send [05:44:31]OFD Sender: No OFD packet to send [05:44:36]OFD Sender: No OFD packet to send [05:44:41]OFD Sender: No OFD packet to send [05:44:46]OFD Sender: No OFD packet to send [05:44:51]OFD Sender: No OFD packet to send [05:44:56]OFD Sender: No OFD packet to send [05:45:01]OFD Sender: No OFD packet to send [05:45:06]OFD Sender: No OFD packet to send [05:45:11]OFD Sender: No OFD packet to send [05:45:16]OFD Sender: No OFD packet to send [05:45:21]OFD Sender: No OFD packet to send [05:45:26]OFD Sender: No OFD packet to send [05:45:31]OFD Sender: No OFD packet to send [05:45:36]OFD Sender: No OFD packet to send [05:45:41]OFD Sender: No OFD packet to send [05:45:46]OFD Sender: No OFD packet to send [05:45:51]OFD Sender: No OFD packet to send [05:45:56]OFD Sender: No OFD packet to send [05:46:01]OFD Sender: No OFD packet to send [05:46:06]OFD Sender: No OFD packet to send [05:46:11]OFD Sender: No OFD packet to send [05:46:16]OFD Sender: No OFD packet to send [05:46:21]OFD Sender: No OFD packet to send [05:46:26]OFD Sender: No OFD packet to send [05:46:31]OFD Sender: No OFD packet to send [05:46:36]OFD Sender: No OFD packet to send [05:46:41]OFD Sender: No OFD packet to send [05:46:46]OFD Sender: No OFD packet to send [05:46:51]OFD Sender: No OFD packet to send [05:46:56]OFD Sender: No OFD packet to send [05:47:01]OFD Sender: No OFD packet to send [05:47:06]OFD Sender: No OFD packet to send [05:47:11]OFD Sender: No OFD packet to send [05:47:16]OFD Sender: No OFD packet to send [05:47:21]OFD Sender: No OFD packet to send [05:47:26]OFD Sender: No OFD packet to send [05:47:31]OFD Sender: No OFD packet to send [05:47:36]OFD Sender: No OFD packet to send [05:47:41]OFD Sender: No OFD packet to send [05:47:46]OFD Sender: No OFD packet to send [05:47:51]OFD Sender: No OFD packet to send [05:47:56]OFD Sender: No OFD packet to send [05:48:01]OFD Sender: No OFD packet to send [05:48:06]OFD Sender: No OFD packet to send [05:48:11]OFD Sender: No OFD packet to send [05:48:16]OFD Sender: No OFD packet to send [05:48:21]OFD Sender: No OFD packet to send [05:48:26]OFD Sender: No OFD packet to send [05:48:31]OFD Sender: No OFD packet to send [05:48:36]OFD Sender: No OFD packet to send [05:48:41]OFD Sender: No OFD packet to send [05:48:46]OFD Sender: No OFD packet to send [05:48:51]OFD Sender: No OFD packet to send [05:48:56]OFD Sender: No OFD packet to send [05:49:01]OFD Sender: No OFD packet to send [05:49:06]OFD Sender: No OFD packet to send [05:49:11]OFD Sender: No OFD packet to send [05:49:16]OFD Sender: No OFD packet to send [05:49:21]OFD Sender: No OFD packet to send [05:49:26]OFD Sender: No OFD packet to send [05:49:31]OFD Sender: No OFD packet to send [05:49:36]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:56]OFD Sender: No OFD packet to send [05:50:01]OFD Sender: No OFD packet to send [05:50:06]OFD Sender: No OFD packet to send [05:50:11]OFD Sender: No OFD packet to send [05:50:16]OFD Sender: No OFD packet to send [05:50:21]OFD Sender: No OFD packet to send [05:50:26]OFD Sender: No OFD packet to send [05:50:31]OFD Sender: No OFD packet to send [05:50:36]OFD Sender: No OFD packet to send [05:50:41]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:36]OFD Sender: No OFD packet to send [05:57:41]OFD Sender: No OFD packet to send [05:57:46]OFD Sender: No OFD packet to send [05:57:51]OFD Sender: No OFD packet to send [05:57:56]OFD Sender: No OFD packet to send [05:58:01]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:37]OFD Sender: No OFD packet to send [05:59:42]OFD Sender: No OFD packet to send [05:59:47]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:07]OFD Sender: No OFD packet to send [06:00:12]OFD Sender: No OFD packet to send [06:00:17]OFD Sender: No OFD packet to send [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:17]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:27]OFD Sender: No OFD packet to send [06:01:32]OFD Sender: No OFD packet to send [06:01:37]OFD Sender: No OFD packet to send [06:01:42]OFD Sender: No OFD packet to send [06:01:47]OFD Sender: No OFD packet to send [06:01:52]OFD Sender: No OFD packet to send [06:01:57]OFD Sender: No OFD packet to send [06:02:02]OFD Sender: No OFD packet to send [06:02:07]OFD Sender: No OFD packet to send [06:02:12]OFD Sender: No OFD packet to send [06:02:17]OFD Sender: No OFD packet to send [06:02:22]OFD Sender: No OFD packet to send [06:02:27]OFD Sender: No OFD packet to send [06:02:32]OFD Sender: No OFD packet to send [06:02:37]OFD Sender: No OFD packet to send [06:02:42]OFD Sender: No OFD packet to send [06:02:47]OFD Sender: No OFD packet to send [06:02:52]OFD Sender: No OFD packet to send [06:02:57]OFD Sender: No OFD packet to send [06:03:02]OFD Sender: No OFD packet to send [06:03:07]OFD Sender: No OFD packet to send [06:03:12]OFD Sender: No OFD packet to send [06:03:17]OFD Sender: No OFD packet to send [06:03:22]OFD Sender: No OFD packet to send [06:03:27]OFD Sender: No OFD packet to send [06:03:32]OFD Sender: No OFD packet to send [06:03:37]OFD Sender: No OFD packet to send [06:03:42]OFD Sender: No OFD packet to send [06:03:47]OFD Sender: No OFD packet to send [06:03:52]OFD Sender: No OFD packet to send [06:03:57]OFD Sender: No OFD packet to send [06:04:02]OFD Sender: No OFD packet to send [06:04:07]OFD Sender: No OFD packet to send [06:04:12]OFD Sender: No OFD packet to send [06:04:17]OFD Sender: No OFD packet to send [06:04:22]OFD Sender: No OFD packet to send [06:04:27]OFD Sender: No OFD packet to send [06:04:32]OFD Sender: No OFD packet to send [06:04:37]OFD Sender: No OFD packet to send [06:04:42]OFD Sender: No OFD packet to send [06:04:47]OFD Sender: No OFD packet to send [06:04:52]OFD Sender: No OFD packet to send [06:04:57]OFD Sender: No OFD packet to send [06:05:02]OFD Sender: No OFD packet to send [06:05:07]OFD Sender: No OFD packet to send [06:05:12]OFD Sender: No OFD packet to send [06:05:17]OFD Sender: No OFD packet to send [06:05:22]OFD Sender: No OFD packet to send [06:05:27]OFD Sender: No OFD packet to send [06:05:32]OFD Sender: No OFD packet to send [06:05:37]OFD Sender: No OFD packet to send [06:05:42]OFD Sender: No OFD packet to send [06:05:47]OFD Sender: No OFD packet to send [06:05:52]OFD Sender: No OFD packet to send [06:05:57]OFD Sender: No OFD packet to send [06:06:02]OFD Sender: No OFD packet to send [06:06:07]OFD Sender: No OFD packet to send [06:06:12]OFD Sender: No OFD packet to send [06:06:17]OFD Sender: No OFD packet to send [06:06:22]OFD Sender: No OFD packet to send [06:06:27]OFD Sender: No OFD packet to send [06:06:32]OFD Sender: No OFD packet to send [06:06:37]OFD Sender: No OFD packet to send [06:06:42]OFD Sender: No OFD packet to send [06:06:47]OFD Sender: No OFD packet to send [06:06:52]OFD Sender: No OFD packet to send [06:06:57]OFD Sender: No OFD packet to send [06:07:02]OFD Sender: No OFD packet to send [06:07:07]OFD Sender: No OFD packet to send [06:07:12]OFD Sender: No OFD packet to send [06:07:17]OFD Sender: No OFD packet to send [06:07:22]OFD Sender: No OFD packet to send [06:07:27]OFD Sender: No OFD packet to send [06:07:32]OFD Sender: No OFD packet to send [06:07:37]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [06:08:22]OFD Sender: No OFD packet to send [06:08:27]OFD Sender: No OFD packet to send [06:08:32]OFD Sender: No OFD packet to send [06:08:37]OFD Sender: No OFD packet to send [06:08:42]OFD Sender: No OFD packet to send [06:08:47]OFD Sender: No OFD packet to send [06:08:52]OFD Sender: No OFD packet to send [06:08:57]OFD Sender: No OFD packet to send [06:09:02]OFD Sender: No OFD packet to send [06:09:07]OFD Sender: No OFD packet to send [06:09:12]OFD Sender: No OFD packet to send [06:09:17]OFD Sender: No OFD packet to send [06:09:22]OFD Sender: No OFD packet to send [06:09:27]OFD Sender: No OFD packet to send [06:09:32]OFD Sender: No OFD packet to send [06:09:37]OFD Sender: No OFD packet to send [06:09:42]OFD Sender: No OFD packet to send [06:09:47]OFD Sender: No OFD packet to send [06:09:52]OFD Sender: No OFD packet to send [06:09:57]OFD Sender: No OFD packet to send [06:10:02]OFD Sender: No OFD packet to send [06:10:07]OFD Sender: No OFD packet to send [06:10:12]OFD Sender: No OFD packet to send [06:10:17]OFD Sender: No OFD packet to send [06:10:22]OFD Sender: No OFD packet to send [06:10:27]OFD Sender: No OFD packet to send [06:10:32]OFD Sender: No OFD packet to send [06:10:37]OFD Sender: No OFD packet to send [06:10:42]OFD Sender: No OFD packet to send [06:10:47]OFD Sender: No OFD packet to send [06:10:52]OFD Sender: No OFD packet to send [06:10:57]OFD Sender: No OFD packet to send [06:11:02]OFD Sender: No OFD packet to send [06:11:07]OFD Sender: No OFD packet to send [06:11:12]OFD Sender: No OFD packet to send [06:11:17]OFD Sender: No OFD packet to send [06:11:22]OFD Sender: No OFD packet to send [06:11:27]OFD Sender: No OFD packet to send [06:11:32]OFD Sender: No OFD packet to send [06:11:37]OFD Sender: No OFD packet to send [06:11:42]OFD Sender: No OFD packet to send [06:11:47]OFD Sender: No OFD packet to send [06:11:52]OFD Sender: No OFD packet to send [06:11:57]OFD Sender: No OFD packet to send [06:12:02]OFD Sender: No OFD packet to send [06:12:07]OFD Sender: No OFD packet to send [06:12:12]OFD Sender: No OFD packet to send [06:12:17]OFD Sender: No OFD packet to send [06:12:22]OFD Sender: No OFD packet to send [06:12:27]OFD Sender: No OFD packet to send [06:12:32]OFD Sender: No OFD packet to send [06:12:37]OFD Sender: No OFD packet to send [06:12:42]OFD Sender: No OFD packet to send [06:12:47]OFD Sender: No OFD packet to send [06:12:52]OFD Sender: No OFD packet to send [06:12:57]OFD Sender: No OFD packet to send [06:13:02]OFD Sender: No OFD packet to send [06:13:07]OFD Sender: No OFD packet to send [06:13:12]OFD Sender: No OFD packet to send [06:13:17]OFD Sender: No OFD packet to send [06:13:22]OFD Sender: No OFD packet to send [06:13:27]OFD Sender: No OFD packet to send [06:13:32]OFD Sender: No OFD packet to send [06:13:37]OFD Sender: No OFD packet to send [06:13:42]OFD Sender: No OFD packet to send [06:13:47]OFD Sender: No OFD packet to send [06:13:52]OFD Sender: No OFD packet to send [06:13:57]OFD Sender: No OFD packet to send [06:14:02]OFD Sender: No OFD packet to send [06:14:08]OFD Sender: No OFD packet to send [06:14:13]OFD Sender: No OFD packet to send [06:14:18]OFD Sender: No OFD packet to send [06:14:23]OFD Sender: No OFD packet to send [06:14:28]OFD Sender: No OFD packet to send [06:14:33]OFD Sender: No OFD packet to send [06:14:38]OFD Sender: No OFD packet to send [06:14:43]OFD Sender: No OFD packet to send [06:14:48]OFD Sender: No OFD packet to send [06:14:53]OFD Sender: No OFD packet to send [06:14:58]OFD Sender: No OFD packet to send [06:15:03]OFD Sender: No OFD packet to send [06:15:08]OFD Sender: No OFD packet to send [06:15:13]OFD Sender: No OFD packet to send [06:15:18]OFD Sender: No OFD packet to send [06:15:23]OFD Sender: No OFD packet to send [06:15:28]OFD Sender: No OFD packet to send [06:15:33]OFD Sender: No OFD packet to send [06:15:38]OFD Sender: No OFD packet to send [06:15:43]OFD Sender: No OFD packet to send [06:15:48]OFD Sender: No OFD packet to send [06:15:53]OFD Sender: No OFD packet to send [06:15:58]OFD Sender: No OFD packet to send [06:16:03]OFD Sender: No OFD packet to send [06:16:08]OFD Sender: No OFD packet to send [06:16:13]OFD Sender: No OFD packet to send [06:16:18]OFD Sender: No OFD packet to send [06:16:23]OFD Sender: No OFD packet to send [06:16:28]OFD Sender: No OFD packet to send [06:16:33]OFD Sender: No OFD packet to send [06:16:38]OFD Sender: No OFD packet to send [06:16:43]OFD Sender: No OFD packet to send [06:16:48]OFD Sender: No OFD packet to send [06:16: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:15]accept exits with 7 [06:18:15]New connection [06:18:15]New thread 3066924388 created [06:18:15]Thread 3067067748 joined [06:18:15]Waiting for new connection... [06:18:15] Sock 7.Parse request [06:18:15]Sock 7.Check first char [06:18:15]Sock 7.First char is OK [06:18:15]request: POST /json_proto HTTP/1.0 [06:18:15]Method: POST [06:18:15]URL: /json_proto [06:18:15]Method is POST - this is cgi request [06:18:15]url: /json_proto [06:18:15]query_string will be loaded in cgi processing [06:18:15]execute_cgi json_proto POST (null) [06:18:15]execute_cgi path=json_proto method=POST [06:18:15]POST find Content-Length [06:18:15]Host: 172.17.45.7:8080 [06:18:15]Content-Length: 677 [06:18:15]Content-Type: application/json [06:18:15] [06:18:15]POST finish read [06:18:15]Found Content-Length = 677 [06:18:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:18:15]execute_script... [06:18: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)949229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:18:15]POST & json_proto [06:18:15]process_json_proto [06:18:15]json parsed OK: [06:18:15]protocol is kg_v1.0 [06:18:15]action value=close_receipt [06:18:15]process_action close_receipt [06:18:15]cmd_close_receipt [06:18:15]MH_GetDate [06:18:15]Write to MH i2c: F0 00 00 23 02 14 [06:18:15]Write i2c OK [06:18:15]MH_I2C_Read... [06:18:15]Read from MH i2c: F0 [06:18:15]MH_I2C_Read... [06:18:15]Read from MH i2c: F0 09 00 [06:18:15]MH_I2C_Read... [06:18:15]Read from MH i2c: F0 09 00 23 02 00 A8 E2 A5 66 90 0F 3E 66 F5 [06:18:15]GetLastDocTimeStamp 1722145059 [06:18:15]current date 1722147496 [06:18:15]FM_GetShiftState [06:18:15]SAM_PROTO_GetShiftState [06:18:15]wFMCommunicate request_size=4 [06:18:15]MH_SAM_APDU [06:18:15]CAPDU: 80 13 01 00 [06:18:15]Write to MH i2c: E2 08 00 24 02 80 13 01 00 00 00 00 00 A3 [06:18:15]Write i2c OK [06:18:15]MH_I2C_Read... [06:18:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:18:15]Read from MH i2c: E2 [06:18:15]MH_I2C_Read... [06:18:15]Read from MH i2c: E2 0E 00 [06:18:15]MH_I2C_Read... [06:18:15]Read from MH i2c: E2 0E 00 24 02 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 7A [06:18:15]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [06:18:15]wFMCommunicate OK [06:18:15]SAM_PROTO_GetShiftState done [06:18:15]FM_GetShiftState done [06:18:15]opened in 1722125364 [06:18:15]opened+sec_in_day 1722211764 [06:18:15]quantity*price = 50036 [06:18:15]sum+1 = 50037 [06:18:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 24 28.07.2024 06:18 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118355 ФПД: 154399899860718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T061816&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118355&fm=154399899860718&tin=02508201610067®Number=0000000000092660&sum=50000 [06:18:16]StoreToDocumentArchive [06:18:16]shift 433 fd 118355 [06:18:16]save to /storage/0433/doc_00118355 [06:18:16]save last doc name /storage/0433/doc_00118355 to /storage/kkm_last_doc_name [06:18:16]save OK [06:18:16]Clear old archive folders... [06:18:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:18:16]tlvbuf is 001007F0 [06:18:16]SAM_PROTO_ClearQueue [06:18:16]wFMCommunicate request_size=4 [06:18:16]MH_SAM_APDU [06:18:16]CAPDU: 80 09 00 00 [06:18:16]Write to MH i2c: E2 08 00 31 02 80 09 00 00 00 00 00 00 A5 [06:18:16]Write i2c OK [06:18:16]MH_I2C_Read... [06:18:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:18:16]Read from MH i2c: E2 [06:18:16]MH_I2C_Read... [06:18:16]Read from MH i2c: E2 03 00 [06:18:16]MH_I2C_Read... [06:18:16]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [06:18:16]RAPDU: 90 00 [06:18:16]wFMCommunicate OK [06:18:16]SAM_PROTO_ClearQueue done [06:18:16]KKMCreateOFDPacket [06:18:16]OFDProtocolAddRootSTLVToBuf [06:18:16]FM_MakeSignedData [06:18:16]FM_MakeSignedData [06:18:16]SAM_PROTO_SignData [06:18:16]wFMCommunicate request_size=4 [06:18:16]MH_SAM_APDU [06:18:16]CAPDU: 80 0D 01 02 [06:18:16]Write to MH i2c: E2 08 00 32 02 80 0D 01 02 00 00 00 00 AD [06:18:16]Write i2c OK [06:18:16]MH_I2C_Read... [06:18:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:18:16]Read from MH i2c: E2 [06:18:16]MH_I2C_Read... [06:18:16]Read from MH i2c: E2 03 00 [06:18:16]MH_I2C_Read... [06:18:16]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [06:18:16]RAPDU: 90 00 [06:18:16]wFMCommunicate OK [06:18:16]wFMCommunicate request_size=255 [06:18:16]MH_SAM_APDU [06:18: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A8 E2 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 53 CE 01 00 35 04 06 00 8C [06:18:16]Write to MH i2c: E2 02 01 33 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A8 E2 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 53 CE 01 00 35 04 06 00 8C 00 00 3E [06:18:16]Write i2c OK [06:18:16]MH_I2C_Read... [06:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:18:16]Read from MH i2c: E2 [06:18:16]MH_I2C_Read... [06:18:16]Read from MH i2c: E2 03 00 [06:18:16]MH_I2C_Read... [06:18:16]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [06:18:16]RAPDU: 90 00 [06:18:16]wFMCommunicate OK [06:18:16]wFMCommunicate request_size=10 [06:18:16]MH_SAM_APDU [06:18:16]CAPDU: 80 0D 02 02 05 6D 07 2F 3E EE [06:18:16]Write to MH i2c: E2 0D 00 34 02 80 0D 02 02 05 00 6D 07 2F 3E EE 00 00 89 [06:18:16]Write i2c OK [06:18:16]MH_I2C_Read... [06:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:18:17]Read from MH i2c: E2 [06:18:17]MH_I2C_Read... [06:18:17]Read from MH i2c: E2 03 00 [06:18:17]MH_I2C_Read... [06:18:17]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [06:18:17]RAPDU: 90 00 [06:18:17]wFMCommunicate OK [06:18:17]wFMCommunicate request_size=4 [06:18:17]MH_SAM_APDU [06:18:17]CAPDU: 80 0D 03 02 [06:18:17]Write to MH i2c: E2 08 00 35 02 80 0D 03 02 00 00 00 00 B2 [06:18:17]Write i2c OK [06:18:17]MH_I2C_Read... [06:18:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:18:17]Read from MH i2c: E2 [06:18:17]MH_I2C_Read... [06:18:17]Read from MH i2c: E2 0B 00 [06:18:17]MH_I2C_Read... [06:18:17]Read from MH i2c: E2 0B 00 35 02 00 6B AA FA B2 F7 4A E2 C4 90 00 5B [06:18:17]RAPDU: 6B AA FA B2 F7 4A E2 C4 90 00 [06:18:17]wFMCommunicate OK [06:18:17]SAM_PROTO_SignData done [06:18:17]FM_MakeSignedData done [06:18:17]CreateOFDProtocolMessage [06:18:17]wFMCommunicate request_size=4 [06:18:17]MH_SAM_APDU [06:18:17]CAPDU: 80 11 00 00 [06:18:17]Write to MH i2c: E2 08 00 36 02 80 11 00 00 00 00 00 00 B2 [06:18:17]Write i2c OK [06:18:17]MH_I2C_Read... [06:18:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:18:17]Read from MH i2c: E2 [06:18:17]MH_I2C_Read... [06:18:17]Read from MH i2c: E2 17 00 [06:18:17]MH_I2C_Read... [06:18:17]Read from MH i2c: E2 17 00 36 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0D [06:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:18:17]wFMCommunicate OK [06:18:17]CreateOFDProtocolMessage done [06:18:17]OFDSenderStorePacket 118355 [06:18:17]StoreOFDPacket docnum=118355 [06:18:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 51 56 07 01 67 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A8 E2 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 53 CE 01 00 35 04 06 00 8C 6D 07 2F 3E EE 6B AA FA B2 F7 4A E2 C4 [06:18:17]CheckFolder [06:18:17]dirname=/storage/ofd_packets [06:18:17]CheckFolder done [06:18:17]ProducePacketName [06:18:17]name=ofd_packets/00118355 [06:18:17]NVStorageSaveData ofd_packets/00118355 [06:18:17]File name is /storage/ofd_packets/00118355 [06:18:17]Write 301 bytes [06:18:17]NVStorageSaveData done [06:18:17]OFDSenderStorePacket done [06:18:17]KKMCreateOFDPacket done [06:18:17]NVStorageSaveData kkm_last_timestamp [06:18:17]File name is /storage/kkm_last_timestamp [06:18:17]Write 4 bytes [06:18:17]NVStorageSaveData done [06:18:17]ExternCall_PrintAddStr [06:18:17]wPrintStart [06:18:17]Write to MH i2c: 01 00 00 37 02 39 [06:18:17]Write i2c OK [06:18:17]MH_I2C_Read... [06:18:17]Read from MH i2c: 01 [06:18:17]MH_I2C_Read... [06:18:17]Read from MH i2c: 01 07 00 [06:18:17]MH_I2C_Read... [06:18:17]Read from MH i2c: 01 07 00 37 02 00 00 00 00 00 FF 0F 4E [06:18:17]RasterBufferAndPrint [06:18:17]line Счет N : (1)949229 [06:18:17]line ИНН: 02508201610067 [06:18:17]line Контрольно-Кассовый Чек [06:18:17]line ПРОДАЖА [06:18:17]line ТРК (МРК, ГНК) : 41 [06:18:17]line Товар: 2710124130 [06:18:17]line Аи-92-К-4 [06:18:17]line 7.380 * 67.80 [06:18:17]line = 500.36 [06:18:17]line НДС 12% НСП 1% [06:18:17]line > о реализуемом товаре [06:18:17]line ОКРУГЛЕНИЕ: -0.36 [06:18:17]line ИТОГО: 500.00 [06:18:17]line Внесено: 500.00 [06:18:17]line СДАЧА: 0.00 [06:18:17]line НСП 1% : 4.43 [06:18:17]line НДС 12% : 53.14 [06:18:17]line Наличными: 500.00 [06:18:17]line Безнал.: 0.00 [06:18:17]line Место: АЗС № 134 "Партнер Нефть" [06:18:17]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:18:17]line СНО: Общий режим [06:18:17]line Чек 24 28.07.2024 06:18 [06:18:17]line Смена: 433 ФФД: 1.0 [06:18:17]line ЗНМ: 0300000044 [06:18:17]line РНМ: 0000000000092660 [06:18:17]line Версия ККМ: 001 [06:18:17]line ФМ: 0000000000874939 [06:18:17]line ФД: 118355 [06:18:17]line ФПД: 154399899860718 [06:18:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T061816&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118355&fm=154399899860718&tin=02508201610067®Number=0000000000092660&sum=50000 [06:18:17]OFD Sender: Processing packet 118355 [packets to send 86, broken 85] [06:18:17]ProducePacketName [06:18:17]name=ofd_packets/00118355 [06:18:17]OFD Sender: To server: pG, [06:18:17]CommunicateWithHost lk.salyk.kg:30040 [06:18:17]ConnectInit lk.salyk.kg [06:18:17]written 0, free lines is 4095 [06:18:17]Connected sock=10 [06:18:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 51 56 07 01 67 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A8 E2 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 53 CE 01 00 35 04 06 00 8C 6D 07 2F 3E EE 6B AA FA B2 F7 4A E2 C4 [06:18:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5D 99 47 00 87 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 39 33 39 10 04 04 00 53 CE 01 00 F4 03 04 00 39 90 A5 66 B6 04 01 00 00 23 70 47 19 E2 4E F4 E1 [06:18:17]CommunicateWithHost err = 0 [06:18:17]CheckOFDResponse [06:18:17]1017 (14) - 77093643461234 [06:18:17]1041 (16) - 0000000000874939 [06:18:17]1040 (4) - 118355 [06:18:17]1012 (4) - 28.07.2024 00:26 [06:18:17]1206 (1) - 0 [06:18:17]OFD Sender: Remove packet 118355 [06:18:17]ProducePacketName [06:18:17]name=ofd_packets/00118355 [06:18:17]NVStorageDeleteData [06:18:17]Write to MH i2c: 01 00 00 61 02 63 [06:18:17]Write i2c OK [06:18:17]MH_I2C_Read... [06:18:17]Read from MH i2c: 01 [06:18:17]MH_I2C_Read... [06:18:17]Read from MH i2c: 01 07 00 [06:18:17]MH_I2C_Read... [06:18:17]Read from MH i2c: 01 07 00 61 02 00 00 00 00 00 E6 0C 5C [06:18:17]RasterBufferAndPrint [06:18:17]line [06:18:17]line [06:18:17]line [06:18:17]line [06:18:17]line [06:18:17]written 0, free lines is 3308 [06:18:17]MH_Cut [06:18:17]Write to MH i2c: D1 01 00 68 02 01 3C [06:18:17]Write i2c OK [06:18:17]MH_I2C_Read... [06:18:17]Read from MH i2c: D1 [06:18:17]MH_I2C_Read... [06:18:17]Read from MH i2c: D1 01 00 [06:18:17]MH_I2C_Read... [06:18:17]Read from MH i2c: D1 01 00 68 02 00 3B [06:18:17]Write to MH i2c: 01 00 00 69 02 6B [06:18:17]Write i2c OK [06:18:17]MH_I2C_Read... [06:18:18]OFD Sender: No OFD packet to send [06:18:18]*** Cut start [06:18:18]*** Partial cut [06:18:18]*** CUTSNS_PIN = 1 [06:18:18]*** CUTSNS_PIN = 0 [06:18:18]*** Brake cut motor [06:18:19]Read from MH i2c: 01 [06:18:19]MH_I2C_Read... [06:18:19]*** Stop cut motor [06:18:19]*** Cut end [06:18:19]Read from MH i2c: 01 07 00 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: 01 07 00 69 02 00 00 00 00 00 FF 0F 80 [06:18:19]process_action close_receipt done [06:18:19]requested_data is exist [06:18:19]produce_requested_data [06:18:19]requested_item fm.sn is exist - process it [06:18:19]wFMCommunicate request_size=4 [06:18:19]MH_SAM_APDU [06:18:19]CAPDU: 80 11 00 00 [06:18:19]Write to MH i2c: E2 08 00 6A 02 80 11 00 00 00 00 00 00 E6 [06:18:19]Write i2c OK [06:18:19]MH_I2C_Read... [06:18:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:18:19]Read from MH i2c: E2 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 17 00 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 17 00 6A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 41 [06:18:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:18:19]wFMCommunicate OK [06:18:19]requested_item fd.num is exist - process it [06:18:19]SAM_PROTO_GetFieldsCounters [06:18:19]wFMCommunicate request_size=4 [06:18:19]MH_SAM_APDU [06:18:19]CAPDU: 80 13 00 00 [06:18:19]Write to MH i2c: E2 08 00 6B 02 80 13 00 00 00 00 00 00 E9 [06:18:19]Write i2c OK [06:18:19]MH_I2C_Read... [06:18:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:18:19]Read from MH i2c: E2 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 62 00 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 62 00 6B 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 53 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [06:18:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 53 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:18:19]wFMCommunicate OK [06:18:19]SAM_PROTO_GetFieldsCounters done [06:18:19]requested_item shift.num is exist - process it [06:18:19]requested_item shift.opened is exist - process it [06:18:19]req_shift_opened [06:18:19]FM_GetShiftState [06:18:19]SAM_PROTO_GetShiftState [06:18:19]wFMCommunicate request_size=4 [06:18:19]MH_SAM_APDU [06:18:19]CAPDU: 80 13 01 00 [06:18:19]Write to MH i2c: E2 08 00 6C 02 80 13 01 00 00 00 00 00 EB [06:18:19]Write i2c OK [06:18:19]MH_I2C_Read... [06:18:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:18:19]Read from MH i2c: E2 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 0E 00 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 0E 00 6C 02 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 C2 [06:18:19]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [06:18:19]wFMCommunicate OK [06:18:19]SAM_PROTO_GetShiftState done [06:18:19]FM_GetShiftState done [06:18:19]req_shift_opened done [06:18:19]requested_item shift.open_date is exist - process it [06:18:19]req_shift_open_date [06:18:19]req_shift_open_date done [06:18:19]produce_requested_data done [06:18:19]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118355,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [06:18:19]process_action_free close_receipt [06:18:19]json_value_free [06:18:19]json_value_free done [06:18:19]process_json_proto returns [06:18:19]Send response to host [06:18:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118355,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [06:18:19]free response buf [06:18:19]execute_script done [06:18:19]execute_script returns [06:18:19]free content buf [06:18:19]Sock 7.Close socket [06:18:19]Sock 7.Thread stoped [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:43]OFD Sender: No OFD packet to send [06:23:48]OFD Sender: No OFD packet to send [06:23:53]OFD Sender: No OFD packet to send [06:23:58]OFD Sender: No OFD packet to send [06:24:03]OFD Sender: No OFD packet to send [06:24:08]OFD Sender: No OFD packet to send [06:24:13]OFD Sender: No OFD packet to send [06:24:18]OFD Sender: No OFD packet to send [06:24:23]OFD Sender: No OFD packet to send [06:24:28]OFD Sender: No OFD packet to send [06:24:33]OFD Sender: No OFD packet to send [06:24:38]OFD Sender: No OFD packet to send [06:24:43]OFD Sender: No OFD packet to send [06:24:48]OFD Sender: No OFD packet to send [06:24:53]OFD Sender: No OFD packet to send [06:24:58]OFD Sender: No OFD packet to send [06:25:03]OFD Sender: No OFD packet to send [06:25:08]OFD Sender: No OFD packet to send [06:25:13]OFD Sender: No OFD packet to send [06:25:18]OFD Sender: No OFD packet to send [06:25:23]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:38]OFD Sender: No OFD packet to send [06:25:43]OFD Sender: No OFD packet to send [06:25:48]OFD Sender: No OFD packet to send [06:25:53]OFD Sender: No OFD packet to send [06:25:58]OFD Sender: No OFD packet to send [06:26:03]OFD Sender: No OFD packet to send [06:26:08]OFD Sender: No OFD packet to send [06:26:13]OFD Sender: No OFD packet to send [06:26:18]OFD Sender: No OFD packet to send [06:26:23]OFD Sender: No OFD packet to send [06:26:28]OFD Sender: No OFD packet to send [06:26:33]OFD Sender: No OFD packet to send [06:26:38]OFD Sender: No OFD packet to send [06:26:43]OFD Sender: No OFD packet to send [06:26:48]OFD Sender: No OFD packet to send [06:26:53]OFD Sender: No OFD packet to send [06:26:58]OFD Sender: No OFD packet to send [06:27:03]OFD Sender: No OFD packet to send [06:27:08]OFD Sender: No OFD packet to send [06:27:13]OFD Sender: No OFD packet to send [06:27:18]OFD Sender: No OFD packet to send [06:27:23]OFD Sender: No OFD packet to send [06:27:28]OFD Sender: No OFD packet to send [06:27:33]OFD Sender: No OFD packet to send [06:27:38]OFD Sender: No OFD packet to send [06:27:43]OFD Sender: No OFD packet to send [06:27:48]OFD Sender: No OFD packet to send [06:27:53]OFD Sender: No OFD packet to send [06:27:58]OFD Sender: No OFD packet to send [06:28:03]OFD Sender: No OFD packet to send [06:28:08]OFD Sender: No OFD packet to send [06:28:13]OFD Sender: No OFD packet to send [06:28:18]OFD Sender: No OFD packet to send [06:28:23]OFD Sender: No OFD packet to send [06:28:28]OFD Sender: No OFD packet to send [06:28:33]OFD Sender: No OFD packet to send [06:28:38]OFD Sender: No OFD packet to send [06:28:43]OFD Sender: No OFD packet to send [06:28:48]OFD Sender: No OFD packet to send [06:28:53]OFD Sender: No OFD packet to send [06:28:58]OFD Sender: No OFD packet to send [06:29:03]OFD Sender: No OFD packet to send [06:29:08]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:02]accept exits with 9 [06:36:02]New connection [06:36:02]New thread 3067067748 created [06:36:02]Thread 3066924388 joined [06:36:02]Waiting for new connection... [06:36:02] Sock 9.Parse request [06:36:02]Sock 9.Check first char [06:36:02]Sock 9.First char is OK [06:36:02]request: POST /json_proto HTTP/1.0 [06:36:02]Method: POST [06:36:02]URL: /json_proto [06:36:02]Method is POST - this is cgi request [06:36:02]url: /json_proto [06:36:02]query_string will be loaded in cgi processing [06:36:02]execute_cgi json_proto POST (null) [06:36:02]execute_cgi path=json_proto method=POST [06:36:02]POST find Content-Length [06:36:02]Host: 172.17.45.7:8080 [06:36:02]Content-Length: 819 [06:36:02]Content-Type: application/json [06:36:02] [06:36:02]POST finish read [06:36:02]Found Content-Length = 819 [06:36:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 61.890, "sum" : 4716.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 4716.00, "payments": [ { "type": 1, "sum" : 4716.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:36:02]execute_script... [06:36: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)949230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 61.890, "sum" : 4716.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 4716.00, "payments": [ { "type": 1, "sum" : 4716.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:36:02]POST & json_proto [06:36:02]process_json_proto [06:36:02]json parsed OK: [06:36:02]protocol is kg_v1.0 [06:36:02]action value=close_receipt [06:36:02]process_action close_receipt [06:36:02]cmd_close_receipt [06:36:02]MH_GetDate [06:36:02]Write to MH i2c: F0 00 00 6D 02 5E [06:36:02]Write i2c OK [06:36:02]MH_I2C_Read... [06:36:02]Read from MH i2c: F0 [06:36:02]MH_I2C_Read... [06:36:02]Read from MH i2c: F0 09 00 [06:36:02]MH_I2C_Read... [06:36:02]Read from MH i2c: F0 09 00 6D 02 00 D4 E6 A5 66 90 0F 3E 66 6F [06:36:02]GetLastDocTimeStamp 1722147496 [06:36:02]current date 1722148564 [06:36:02]FM_GetShiftState [06:36:02]SAM_PROTO_GetShiftState [06:36:02]wFMCommunicate request_size=4 [06:36:02]MH_SAM_APDU [06:36:02]CAPDU: 80 13 01 00 [06:36:02]Write to MH i2c: E2 08 00 6E 02 80 13 01 00 00 00 00 00 ED [06:36:02]Write i2c OK [06:36:02]MH_I2C_Read... [06:36:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:36:02]Read from MH i2c: E2 [06:36:02]MH_I2C_Read... [06:36:02]Read from MH i2c: E2 0E 00 [06:36:02]MH_I2C_Read... [06:36:02]Read from MH i2c: E2 0E 00 6E 02 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 C4 [06:36:02]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [06:36:02]wFMCommunicate OK [06:36:02]SAM_PROTO_GetShiftState done [06:36:02]FM_GetShiftState done [06:36:02]opened in 1722125364 [06:36:02]opened+sec_in_day 1722211764 [06:36:02]quantity*price = 471601 [06:36:02]sum+1 = 471603 [06:36:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 4716.00 НСП 1% : 41.73 НДС 12% : 500.82 Наличными: 0.00 Безнал.: 4716.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 25 28.07.2024 06:36 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118356 ФПД: 169127885349185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T063604&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118356&fm=169127885349185&tin=02508201610067®Number=0000000000092660&sum=471600 [06:36:03]StoreToDocumentArchive [06:36:03]shift 433 fd 118356 [06:36:03]save to /storage/0433/doc_00118356 [06:36:03]save last doc name /storage/0433/doc_00118356 to /storage/kkm_last_doc_name [06:36:03]save OK [06:36:03]Clear old archive folders... [06:36:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:36:03]tlvbuf is 001017A0 [06:36:03]SAM_PROTO_ClearQueue [06:36:03]wFMCommunicate request_size=4 [06:36:03]MH_SAM_APDU [06:36:03]CAPDU: 80 09 00 00 [06:36:03]Write to MH i2c: E2 08 00 7B 02 80 09 00 00 00 00 00 00 EF [06:36:03]Write i2c OK [06:36:03]MH_I2C_Read... [06:36:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:36:04]Read from MH i2c: E2 [06:36:04]MH_I2C_Read... [06:36:04]Read from MH i2c: E2 03 00 [06:36:04]MH_I2C_Read... [06:36:04]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [06:36:04]RAPDU: 90 00 [06:36:04]wFMCommunicate OK [06:36:04]SAM_PROTO_ClearQueue done [06:36:04]KKMCreateOFDPacket [06:36:04]OFDProtocolAddRootSTLVToBuf [06:36:04]FM_MakeSignedData [06:36:04]FM_MakeSignedData [06:36:04]SAM_PROTO_SignData [06:36:04]wFMCommunicate request_size=4 [06:36:04]MH_SAM_APDU [06:36:04]CAPDU: 80 0D 01 02 [06:36:04]Write to MH i2c: E2 08 00 7C 02 80 0D 01 02 00 00 00 00 F7 [06:36:04]Write i2c OK [06:36:04]MH_I2C_Read... [06:36:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:36:04]Read from MH i2c: E2 [06:36:04]MH_I2C_Read... [06:36:04]Read from MH i2c: E2 03 00 [06:36:04]MH_I2C_Read... [06:36:04]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [06:36:04]RAPDU: 90 00 [06:36:04]wFMCommunicate OK [06:36:04]wFMCommunicate request_size=255 [06:36:04]MH_SAM_APDU [06:36:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 F1 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 32 32 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 32 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 C3 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 32 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 D4 E6 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 54 CE 01 00 35 04 06 00 99 D2 27 87 [06:36:04]Write to MH i2c: E2 02 01 7D 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 F1 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 32 32 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 32 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 C3 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 32 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 D4 E6 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 54 CE 01 00 35 04 06 00 99 D2 27 87 00 00 BE [06:36:04]Write i2c OK [06:36:04]MH_I2C_Read... [06:36:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:36:04]Read from MH i2c: E2 [06:36:04]MH_I2C_Read... [06:36:04]Read from MH i2c: E2 03 00 [06:36:04]MH_I2C_Read... [06:36:04]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [06:36:04]RAPDU: 90 00 [06:36:04]wFMCommunicate OK [06:36:04]wFMCommunicate request_size=7 [06:36:04]MH_SAM_APDU [06:36:04]CAPDU: 80 0D 02 02 02 21 41 [06:36:04]Write to MH i2c: E2 0A 00 7E 02 80 0D 02 02 02 00 21 41 00 00 60 [06:36:04]Write i2c OK [06:36:04]MH_I2C_Read... [06:36:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:36:04]Read from MH i2c: E2 [06:36:04]MH_I2C_Read... [06:36:04]Read from MH i2c: E2 03 00 [06:36:04]MH_I2C_Read... [06:36:04]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [06:36:04]RAPDU: 90 00 [06:36:04]wFMCommunicate OK [06:36:04]wFMCommunicate request_size=4 [06:36:04]MH_SAM_APDU [06:36:04]CAPDU: 80 0D 03 02 [06:36:04]Write to MH i2c: E2 08 00 7F 02 80 0D 03 02 00 00 00 00 FC [06:36:04]Write i2c OK [06:36:04]MH_I2C_Read... [06:36:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:36:04]Read from MH i2c: E2 [06:36:04]MH_I2C_Read... [06:36:04]Read from MH i2c: E2 0B 00 [06:36:04]MH_I2C_Read... [06:36:04]Read from MH i2c: E2 0B 00 7F 02 00 05 20 58 63 D6 3F FB FC 90 00 E9 [06:36:04]RAPDU: 05 20 58 63 D6 3F FB FC 90 00 [06:36:04]wFMCommunicate OK [06:36:04]SAM_PROTO_SignData done [06:36:04]FM_MakeSignedData done [06:36:04]CreateOFDProtocolMessage [06:36:04]wFMCommunicate request_size=4 [06:36:04]MH_SAM_APDU [06:36:04]CAPDU: 80 11 00 00 [06:36:04]Write to MH i2c: E2 08 00 80 02 80 11 00 00 00 00 00 00 FC [06:36:04]Write i2c OK [06:36:04]MH_I2C_Read... [06:36:04]OFD Sender: No OFD packet to send [06:36:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:36:04]Read from MH i2c: E2 [06:36:04]MH_I2C_Read... [06:36:04]Read from MH i2c: E2 17 00 [06:36:04]MH_I2C_Read... [06:36:04]Read from MH i2c: E2 17 00 80 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 57 [06:36:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:36:04]wFMCommunicate OK [06:36:04]CreateOFDProtocolMessage done [06:36:04]OFDSenderStorePacket 118356 [06:36:04]StoreOFDPacket docnum=118356 [06:36:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 59 BF 04 01 74 A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 F1 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 32 32 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 32 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 C3 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 32 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 D4 E6 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 54 CE 01 00 35 04 06 00 99 D2 27 87 21 41 05 20 58 63 D6 3F FB FC [06:36:04]CheckFolder [06:36:04]dirname=/storage/ofd_packets [06:36:04]CheckFolder done [06:36:04]ProducePacketName [06:36:04]name=ofd_packets/00118356 [06:36:04]NVStorageSaveData ofd_packets/00118356 [06:36:04]File name is /storage/ofd_packets/00118356 [06:36:04]Write 298 bytes [06:36:04]NVStorageSaveData done [06:36:04]OFDSenderStorePacket done [06:36:04]KKMCreateOFDPacket done [06:36:04]NVStorageSaveData kkm_last_timestamp [06:36:04]File name is /storage/kkm_last_timestamp [06:36:04]Write 4 bytes [06:36:04]NVStorageSaveData done [06:36:04]ExternCall_PrintAddStr [06:36:04]wPrintStart [06:36:04]Write to MH i2c: 01 00 00 81 02 83 [06:36:04]Write i2c OK [06:36:04]MH_I2C_Read... [06:36:04]Read from MH i2c: 01 [06:36:04]MH_I2C_Read... [06:36:04]Read from MH i2c: 01 07 00 [06:36:04]MH_I2C_Read... [06:36:04]Read from MH i2c: 01 07 00 81 02 00 00 00 00 00 FF 0F 98 [06:36:04]RasterBufferAndPrint [06:36:04]line Счет N : (1)949230 [06:36:04]line ИНН: 02508201610067 [06:36:04]line Контрольно-Кассовый Чек [06:36:04]line ПРОДАЖА [06:36:04]line ТРК (МРК, ГНК) : 21 [06:36:04]line Товар: 2710194800 [06:36:04]line ДТ-К-5 [06:36:04]line 61.890 * 76.20 [06:36:04]line = 4716.02 [06:36:04]line НДС 12% НСП 1% [06:36:04]line > о реализуемом товаре [06:36:04]line ОКРУГЛЕНИЕ: -0.02 [06:36:04]line ИТОГО: 4716.00 [06:36:04]line НСП 1% : 41.73 [06:36:04]line НДС 12% : 500.82 [06:36:04]line Наличными: 0.00 [06:36:04]line Безнал.: 4716.00 [06:36:04]line Место: АЗС № 134 "Партнер Нефть" [06:36:04]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:36:04]line СНО: Общий режим [06:36:04]line Чек 25 28.07.2024 06:36 [06:36:04]line Смена: 433 ФФД: 1.0 [06:36:04]line ЗНМ: 0300000044 [06:36:04]line РНМ: 0000000000092660 [06:36:04]line Версия ККМ: 001 [06:36:04]line Платежная система: O! деньги [06:36:04]line ФМ: 0000000000874939 [06:36:04]line ФД: 118356 [06:36:04]line ФПД: 169127885349185 [06:36:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T063604&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118356&fm=169127885349185&tin=02508201610067®Number=0000000000092660&sum=471600 [06:36:04]OFD Sender: Processing packet 118356 [packets to send 86, broken 85] [06:36:04]ProducePacketName [06:36:04]name=ofd_packets/00118356 [06:36:04]OFD Sender: To server: pG, [06:36:04]CommunicateWithHost lk.salyk.kg:30040 [06:36:04]ConnectInit lk.salyk.kg [06:36:04]written 0, free lines is 4095 [06:36:04]Connected sock=10 [06:36:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 59 BF 04 01 74 A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 F1 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 32 32 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 32 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 C3 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 32 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 D4 E6 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 54 CE 01 00 35 04 06 00 99 D2 27 87 21 41 05 20 58 63 D6 3F FB FC [06:36:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 28 DC 47 00 8E 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 39 33 39 10 04 04 00 54 CE 01 00 F4 03 04 00 65 94 A5 66 B6 04 01 00 00 6F 02 4C 3E 8A AE 89 AC [06:36:05]CommunicateWithHost err = 0 [06:36:05]CheckOFDResponse [06:36:05]1017 (14) - 77093643461234 [06:36:05]1041 (16) - 0000000000874939 [06:36:05]1040 (4) - 118356 [06:36:05]1012 (4) - 28.07.2024 00:44 [06:36:05]1206 (1) - 0 [06:36:05]OFD Sender: Remove packet 118356 [06:36:05]ProducePacketName [06:36:05]name=ofd_packets/00118356 [06:36:05]NVStorageDeleteData [06:36:05]Write to MH i2c: 01 00 00 AB 02 AD [06:36:05]Write i2c OK [06:36:05]MH_I2C_Read... [06:36:05]Read from MH i2c: 01 [06:36:05]MH_I2C_Read... [06:36:05]Read from MH i2c: 01 07 00 [06:36:05]MH_I2C_Read... [06:36:05]Read from MH i2c: 01 07 00 AB 02 00 00 00 00 00 E9 0C A9 [06:36:05]RasterBufferAndPrint [06:36:05]line [06:36:05]line [06:36:05]line [06:36:05]line [06:36:05]line [06:36:05]written 0, free lines is 3311 [06:36:05]MH_Cut [06:36:05]Write to MH i2c: D1 01 00 B2 02 01 86 [06:36:05]Write i2c OK [06:36:05]MH_I2C_Read... [06:36:05]Read from MH i2c: D1 [06:36:05]MH_I2C_Read... [06:36:05]Read from MH i2c: D1 01 00 [06:36:05]MH_I2C_Read... [06:36:05]Read from MH i2c: D1 01 00 B2 02 00 85 [06:36:05]Write to MH i2c: 01 00 00 B3 02 B5 [06:36:05]Write i2c OK [06:36:05]MH_I2C_Read... [06:36:05]OFD Sender: No OFD packet to send [06:36:06]*** Cut start [06:36:06]*** Partial cut [06:36:06]*** CUTSNS_PIN = 1 [06:36:06]*** CUTSNS_PIN = 0 [06:36:06]*** Brake cut motor [06:36:06]Read from MH i2c: 01 [06:36:06]MH_I2C_Read... [06:36:06]*** Stop cut motor [06:36:06]*** Cut end [06:36:06]Read from MH i2c: 01 07 00 [06:36:06]MH_I2C_Read... [06:36:06]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 FF 0F CA [06:36:06]process_action close_receipt done [06:36:06]requested_data is exist [06:36:06]produce_requested_data [06:36:06]requested_item fm.sn is exist - process it [06:36:06]wFMCommunicate request_size=4 [06:36:06]MH_SAM_APDU [06:36:06]CAPDU: 80 11 00 00 [06:36:06]Write to MH i2c: E2 08 00 B4 02 80 11 00 00 00 00 00 00 30 [06:36:06]Write i2c OK [06:36:06]MH_I2C_Read... [06:36:06]Read from MH i2c: E2 [06:36:06]MH_I2C_Read... [06:36:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:36:06]Read from MH i2c: E2 17 00 [06:36:06]MH_I2C_Read... [06:36:06]Read from MH i2c: E2 17 00 B4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8B [06:36:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:36:06]wFMCommunicate OK [06:36:06]requested_item fd.num is exist - process it [06:36:06]SAM_PROTO_GetFieldsCounters [06:36:06]wFMCommunicate request_size=4 [06:36:06]MH_SAM_APDU [06:36:06]CAPDU: 80 13 00 00 [06:36:06]Write to MH i2c: E2 08 00 B5 02 80 13 00 00 00 00 00 00 33 [06:36:06]Write i2c OK [06:36:06]MH_I2C_Read... [06:36:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:36:06]Read from MH i2c: E2 [06:36:06]MH_I2C_Read... [06:36:06]Read from MH i2c: E2 62 00 [06:36:06]MH_I2C_Read... [06:36:06]Read from MH i2c: E2 62 00 B5 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 54 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [06:36:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 54 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:36:06]wFMCommunicate OK [06:36:06]SAM_PROTO_GetFieldsCounters done [06:36:06]requested_item shift.num is exist - process it [06:36:06]requested_item shift.opened is exist - process it [06:36:06]req_shift_opened [06:36:06]FM_GetShiftState [06:36:06]SAM_PROTO_GetShiftState [06:36:06]wFMCommunicate request_size=4 [06:36:06]MH_SAM_APDU [06:36:06]CAPDU: 80 13 01 00 [06:36:06]Write to MH i2c: E2 08 00 B6 02 80 13 01 00 00 00 00 00 35 [06:36:06]Write i2c OK [06:36:06]MH_I2C_Read... [06:36:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:36:06]Read from MH i2c: E2 [06:36:06]MH_I2C_Read... [06:36:06]Read from MH i2c: E2 0E 00 [06:36:06]MH_I2C_Read... [06:36:06]Read from MH i2c: E2 0E 00 B6 02 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 0C [06:36:06]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [06:36:06]wFMCommunicate OK [06:36:06]SAM_PROTO_GetShiftState done [06:36:06]FM_GetShiftState done [06:36:06]req_shift_opened done [06:36:06]requested_item shift.open_date is exist - process it [06:36:06]req_shift_open_date [06:36:06]req_shift_open_date done [06:36:06]produce_requested_data done [06:36:06]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118356,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [06:36:06]process_action_free close_receipt [06:36:06]json_value_free [06:36:06]json_value_free done [06:36:06]process_json_proto returns [06:36:06]Send response to host [06:36:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118356,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [06:36:06]free response buf [06:36:06]execute_script done [06:36:06]execute_script returns [06:36:06]free content buf [06:36:06]Sock 9.Close socket [06:36:06]Sock 9.Thread stoped [06:36:10]OFD Sender: No OFD packet to send [06:36:15]OFD Sender: No OFD packet to send [06:36:20]OFD Sender: No OFD packet to send [06:36:25]OFD Sender: No OFD packet to send [06:36:30]OFD Sender: No OFD packet to send [06:36:35]OFD Sender: No OFD packet to send [06:36:40]OFD Sender: No OFD packet to send [06:36:45]OFD Sender: No OFD packet to send [06:36:50]OFD Sender: No OFD packet to send [06:36:55]OFD Sender: No OFD packet to send [06:37:00]OFD Sender: No OFD packet to send [06:37:05]OFD Sender: No OFD packet to send [06:37:10]OFD Sender: No OFD packet to send [06:37:15]OFD Sender: No OFD packet to send [06:37:20]OFD Sender: No OFD packet to send [06:37:25]OFD Sender: No OFD packet to send [06:37:30]OFD Sender: No OFD packet to send [06:37:35]OFD Sender: No OFD packet to send [06:37:40]OFD Sender: No OFD packet to send [06:37:45]OFD Sender: No OFD packet to send [06:37:50]OFD Sender: No OFD packet to send [06:37:55]OFD Sender: No OFD packet to send [06:38:00]OFD Sender: No OFD packet to send [06:38:05]OFD Sender: No OFD packet to send [06:38:10]OFD Sender: No OFD packet to send [06:38:12]accept exits with 7 [06:38:12]New connection [06:38:12]New thread 3066924388 created [06:38:12]Thread 3067067748 joined [06:38:12]Waiting for new connection... [06:38:12] Sock 7.Parse request [06:38:12]Sock 7.Check first char [06:38:12]Sock 7.First char is OK [06:38:12]request: POST /json_proto HTTP/1.0 [06:38:12]Method: POST [06:38:12]URL: /json_proto [06:38:12]Method is POST - this is cgi request [06:38:12]url: /json_proto [06:38:12]query_string will be loaded in cgi processing [06:38:12]execute_cgi json_proto POST (null) [06:38:12]execute_cgi path=json_proto method=POST [06:38:12]POST find Content-Length [06:38:12]Host: 172.17.45.7:8080 [06:38:12]Content-Length: 682 [06:38:12]Content-Type: application/json [06:38:12] [06:38:12]POST finish read [06:38:12]Found Content-Length = 682 [06:38:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:12]execute_script... [06:38:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:12]POST & json_proto [06:38:12]process_json_proto [06:38:12]json parsed OK: [06:38:12]protocol is kg_v1.0 [06:38:12]action value=close_receipt [06:38:12]process_action close_receipt [06:38:12]cmd_close_receipt [06:38:12]MH_GetDate [06:38:12]Write to MH i2c: F0 00 00 B7 02 A8 [06:38:12]Write i2c OK [06:38:12]MH_I2C_Read... [06:38:12]Read from MH i2c: F0 [06:38:12]MH_I2C_Read... [06:38:12]Read from MH i2c: F0 09 00 [06:38:12]MH_I2C_Read... [06:38:12]Read from MH i2c: F0 09 00 B7 02 00 55 E7 A5 66 90 0F 3E 66 3B [06:38:12]GetLastDocTimeStamp 1722148564 [06:38:12]current date 1722148693 [06:38:12]FM_GetShiftState [06:38:12]SAM_PROTO_GetShiftState [06:38:12]wFMCommunicate request_size=4 [06:38:12]MH_SAM_APDU [06:38:12]CAPDU: 80 13 01 00 [06:38:12]Write to MH i2c: E2 08 00 B8 02 80 13 01 00 00 00 00 00 37 [06:38:12]Write i2c OK [06:38:12]MH_I2C_Read... [06:38:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:12]Read from MH i2c: E2 [06:38:12]MH_I2C_Read... [06:38:12]Read from MH i2c: E2 0E 00 [06:38:12]MH_I2C_Read... [06:38:12]Read from MH i2c: E2 0E 00 B8 02 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 0E [06:38:12]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [06:38:12]wFMCommunicate OK [06:38:12]SAM_PROTO_GetShiftState done [06:38:12]FM_GetShiftState done [06:38:12]opened in 1722125364 [06:38:12]opened+sec_in_day 1722211764 [06:38:12]quantity*price = 200010 [06:38:12]sum+1 = 200011 [06:38:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 26 28.07.2024 06:38 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118357 ФПД: 205303525735768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T063813&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118357&fm=205303525735768&tin=02508201610067®Number=0000000000092660&sum=200000 [06:38:13]StoreToDocumentArchive [06:38:13]shift 433 fd 118357 [06:38:13]save to /storage/0433/doc_00118357 [06:38:13]save last doc name /storage/0433/doc_00118357 to /storage/kkm_last_doc_name [06:38:13]save OK [06:38:13]Clear old archive folders... [06:38:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:38:13]tlvbuf is 00104F20 [06:38:13]SAM_PROTO_ClearQueue [06:38:13]wFMCommunicate request_size=4 [06:38:13]MH_SAM_APDU [06:38:13]CAPDU: 80 09 00 00 [06:38:13]Write to MH i2c: E2 08 00 C5 02 80 09 00 00 00 00 00 00 39 [06:38:13]Write i2c OK [06:38:13]MH_I2C_Read... [06:38:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:38:13]Read from MH i2c: E2 [06:38:13]MH_I2C_Read... [06:38:13]Read from MH i2c: E2 03 00 [06:38:13]MH_I2C_Read... [06:38:13]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [06:38:13]RAPDU: 90 00 [06:38:13]wFMCommunicate OK [06:38:13]SAM_PROTO_ClearQueue done [06:38:13]KKMCreateOFDPacket [06:38:13]OFDProtocolAddRootSTLVToBuf [06:38:13]FM_MakeSignedData [06:38:13]FM_MakeSignedData [06:38:13]SAM_PROTO_SignData [06:38:13]wFMCommunicate request_size=4 [06:38:13]MH_SAM_APDU [06:38:13]CAPDU: 80 0D 01 02 [06:38:13]Write to MH i2c: E2 08 00 C6 02 80 0D 01 02 00 00 00 00 41 [06:38:13]Write i2c OK [06:38:13]MH_I2C_Read... [06:38:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:38:13]Read from MH i2c: E2 [06:38:13]MH_I2C_Read... [06:38:13]Read from MH i2c: E2 03 00 [06:38:13]MH_I2C_Read... [06:38:13]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [06:38:13]RAPDU: 90 00 [06:38:13]wFMCommunicate OK [06:38:13]wFMCommunicate request_size=255 [06:38:13]MH_SAM_APDU [06:38:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 1A 00 00 00 F4 03 04 00 55 E7 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 CE 01 00 35 04 06 00 BA [06:38:13]Write to MH i2c: E2 02 01 C7 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 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 1A 00 00 00 F4 03 04 00 55 E7 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 CE 01 00 35 04 06 00 BA 00 00 BA [06:38:13]Write i2c OK [06:38:13]MH_I2C_Read... [06:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:13]Read from MH i2c: E2 [06:38:13]MH_I2C_Read... [06:38:13]Read from MH i2c: E2 03 00 [06:38:13]MH_I2C_Read... [06:38:13]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [06:38:13]RAPDU: 90 00 [06:38:13]wFMCommunicate OK [06:38:13]wFMCommunicate request_size=10 [06:38:13]MH_SAM_APDU [06:38:13]CAPDU: 80 0D 02 02 05 B8 F3 B8 FD 58 [06:38:13]Write to MH i2c: E2 0D 00 C8 02 80 0D 02 02 05 00 B8 F3 B8 FD 58 00 00 06 [06:38:13]Write i2c OK [06:38:13]MH_I2C_Read... [06:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:13]Read from MH i2c: E2 [06:38:13]MH_I2C_Read... [06:38:13]Read from MH i2c: E2 03 00 [06:38:13]MH_I2C_Read... [06:38:13]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [06:38:13]RAPDU: 90 00 [06:38:13]wFMCommunicate OK [06:38:13]wFMCommunicate request_size=4 [06:38:13]MH_SAM_APDU [06:38:13]CAPDU: 80 0D 03 02 [06:38:13]Write to MH i2c: E2 08 00 C9 02 80 0D 03 02 00 00 00 00 46 [06:38:13]Write i2c OK [06:38:13]MH_I2C_Read... [06:38:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:38:13]Read from MH i2c: E2 [06:38:13]MH_I2C_Read... [06:38:13]Read from MH i2c: E2 0B 00 [06:38:13]MH_I2C_Read... [06:38:13]Read from MH i2c: E2 0B 00 C9 02 00 54 25 93 59 04 35 C0 33 90 00 D8 [06:38:13]RAPDU: 54 25 93 59 04 35 C0 33 90 00 [06:38:13]wFMCommunicate OK [06:38:13]SAM_PROTO_SignData done [06:38:13]FM_MakeSignedData done [06:38:13]CreateOFDProtocolMessage [06:38:13]wFMCommunicate request_size=4 [06:38:13]MH_SAM_APDU [06:38:13]CAPDU: 80 11 00 00 [06:38:13]Write to MH i2c: E2 08 00 CA 02 80 11 00 00 00 00 00 00 46 [06:38:13]Write i2c OK [06:38:13]MH_I2C_Read... [06:38:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:14]Read from MH i2c: E2 [06:38:14]MH_I2C_Read... [06:38:14]Read from MH i2c: E2 17 00 [06:38:14]MH_I2C_Read... [06:38:14]Read from MH i2c: E2 17 00 CA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A1 [06:38:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:38:14]wFMCommunicate OK [06:38:14]CreateOFDProtocolMessage done [06:38:14]OFDSenderStorePacket 118357 [06:38:14]StoreOFDPacket docnum=118357 [06:38:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 72 C4 07 01 79 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 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 1A 00 00 00 F4 03 04 00 55 E7 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 CE 01 00 35 04 06 00 BA B8 F3 B8 FD 58 54 25 93 59 04 35 C0 33 [06:38:14]CheckFolder [06:38:14]dirname=/storage/ofd_packets [06:38:14]CheckFolder done [06:38:14]ProducePacketName [06:38:14]name=ofd_packets/00118357 [06:38:14]NVStorageSaveData ofd_packets/00118357 [06:38:14]File name is /storage/ofd_packets/00118357 [06:38:14]Write 301 bytes [06:38:14]NVStorageSaveData done [06:38:14]OFDSenderStorePacket done [06:38:14]KKMCreateOFDPacket done [06:38:14]NVStorageSaveData kkm_last_timestamp [06:38:14]File name is /storage/kkm_last_timestamp [06:38:14]Write 4 bytes [06:38:14]NVStorageSaveData done [06:38:14]ExternCall_PrintAddStr [06:38:14]wPrintStart [06:38:14]Write to MH i2c: 01 00 00 CB 02 CD [06:38:14]Write i2c OK [06:38:14]MH_I2C_Read... [06:38:14]Read from MH i2c: 01 [06:38:14]MH_I2C_Read... [06:38:14]Read from MH i2c: 01 07 00 [06:38:14]MH_I2C_Read... [06:38:14]Read from MH i2c: 01 07 00 CB 02 00 00 00 00 00 FF 0F E2 [06:38:14]RasterBufferAndPrint [06:38:14]line Счет N : (1)949231 [06:38:14]line ИНН: 02508201610067 [06:38:14]line Контрольно-Кассовый Чек [06:38:14]line ПРОДАЖА [06:38:14]line ТРК (МРК, ГНК) : 31 [06:38:14]line Товар: 2710124130 [06:38:14]line Аи-92-К-4 [06:38:14]line 29.500 * 67.80 [06:38:14]line = 2000.10 [06:38:14]line НДС 12% НСП 1% [06:38:14]line > о реализуемом товаре [06:38:14]line ОКРУГЛЕНИЕ: -0.10 [06:38:14]line ИТОГО: 2000.00 [06:38:14]line Внесено: 2000.00 [06:38:14]line СДАЧА: 0.00 [06:38:14]line НСП 1% : 17.70 [06:38:14]line НДС 12% : 212.40 [06:38:14]line Наличными: 2000.00 [06:38:14]line Безнал.: 0.00 [06:38:14]line Место: АЗС № 134 "Партнер Нефть" [06:38:14]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:38:14]line СНО: Общий режим [06:38:14]line Чек 26 28.07.2024 06:38 [06:38:14]line Смена: 433 ФФД: 1.0 [06:38:14]line ЗНМ: 0300000044 [06:38:14]line РНМ: 0000000000092660 [06:38:14]line Версия ККМ: 001 [06:38:14]line ФМ: 0000000000874939 [06:38:14]line ФД: 118357 [06:38:14]line ФПД: 205303525735768 [06:38:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T063813&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118357&fm=205303525735768&tin=02508201610067®Number=0000000000092660&sum=200000 [06:38:14]OFD Sender: Processing packet 118357 [packets to send 86, broken 85] [06:38:14]ProducePacketName [06:38:14]name=ofd_packets/00118357 [06:38:14]OFD Sender: To server: pG, [06:38:14]CommunicateWithHost lk.salyk.kg:30040 [06:38:14]ConnectInit lk.salyk.kg [06:38:14]written 0, free lines is 4095 [06:38:14]Connected sock=11 [06:38:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 72 C4 07 01 79 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 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 1A 00 00 00 F4 03 04 00 55 E7 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 CE 01 00 35 04 06 00 BA B8 F3 B8 FD 58 54 25 93 59 04 35 C0 33 [06:38:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B8 02 47 00 3E 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 39 33 39 10 04 04 00 55 CE 01 00 F4 03 04 00 E6 94 A5 66 B6 04 01 00 00 B3 BF 50 DA 01 08 A3 5E [06:38:14]CommunicateWithHost err = 0 [06:38:14]CheckOFDResponse [06:38:14]1017 (14) - 77093643461234 [06:38:14]1041 (16) - 0000000000874939 [06:38:14]1040 (4) - 118357 [06:38:14]1012 (4) - 28.07.2024 00:46 [06:38:14]1206 (1) - 0 [06:38:14]OFD Sender: Remove packet 118357 [06:38:14]ProducePacketName [06:38:14]name=ofd_packets/00118357 [06:38:14]NVStorageDeleteData [06:38:14]Write to MH i2c: 01 00 00 F5 02 F7 [06:38:14]Write i2c OK [06:38:14]MH_I2C_Read... [06:38:14]Read from MH i2c: 01 [06:38:14]MH_I2C_Read... [06:38:14]Read from MH i2c: 01 07 00 [06:38:14]MH_I2C_Read... [06:38:14]Read from MH i2c: 01 07 00 F5 02 00 00 00 00 00 D3 0C DD [06:38:14]RasterBufferAndPrint [06:38:14]line [06:38:14]line [06:38:14]line [06:38:14]line [06:38:14]line [06:38:14]written 0, free lines is 3289 [06:38:14]MH_Cut [06:38:14]Write to MH i2c: D1 01 00 FC 02 01 D0 [06:38:14]Write i2c OK [06:38:14]MH_I2C_Read... [06:38:14]Read from MH i2c: D1 [06:38:14]MH_I2C_Read... [06:38:14]Read from MH i2c: D1 01 00 [06:38:14]MH_I2C_Read... [06:38:14]Read from MH i2c: D1 01 00 FC 02 00 CF [06:38:14]Write to MH i2c: 01 00 00 FD 02 FF [06:38:14]Write i2c OK [06:38:14]MH_I2C_Read... [06:38:15]OFD Sender: No OFD packet to send [06:38:15]*** Cut start [06:38:15]*** Partial cut [06:38:15]*** CUTSNS_PIN = 1 [06:38:15]*** CUTSNS_PIN = 0 [06:38:15]*** Brake cut motor [06:38:16]Read from MH i2c: 01 [06:38:16]MH_I2C_Read... [06:38:16]*** Stop cut motor [06:38:16]*** Cut end [06:38:16]Read from MH i2c: 01 07 00 [06:38:16]MH_I2C_Read... [06:38:16]Read from MH i2c: 01 07 00 FD 02 00 00 00 00 00 FF 0F 14 [06:38:16]process_action close_receipt done [06:38:16]requested_data is exist [06:38:16]produce_requested_data [06:38:16]requested_item fm.sn is exist - process it [06:38:16]wFMCommunicate request_size=4 [06:38:16]MH_SAM_APDU [06:38:16]CAPDU: 80 11 00 00 [06:38:16]Write to MH i2c: E2 08 00 FE 02 80 11 00 00 00 00 00 00 7A [06:38:16]Write i2c OK [06:38:16]MH_I2C_Read... [06:38:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:16]Read from MH i2c: E2 [06:38:16]MH_I2C_Read... [06:38:16]Read from MH i2c: E2 17 00 [06:38:16]MH_I2C_Read... [06:38:16]Read from MH i2c: E2 17 00 FE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D5 [06:38:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:38:16]wFMCommunicate OK [06:38:16]requested_item fd.num is exist - process it [06:38:16]SAM_PROTO_GetFieldsCounters [06:38:16]wFMCommunicate request_size=4 [06:38:16]MH_SAM_APDU [06:38:16]CAPDU: 80 13 00 00 [06:38:16]Write to MH i2c: E2 08 00 FF 02 80 13 00 00 00 00 00 00 7D [06:38:16]Write i2c OK [06:38:16]MH_I2C_Read... [06:38:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:38:16]Read from MH i2c: E2 [06:38:16]MH_I2C_Read... [06:38:16]Read from MH i2c: E2 62 00 [06:38:16]MH_I2C_Read... [06:38:16]Read from MH i2c: E2 62 00 FF 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 55 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [06:38:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 55 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:38:16]wFMCommunicate OK [06:38:16]SAM_PROTO_GetFieldsCounters done [06:38:16]requested_item shift.num is exist - process it [06:38:16]requested_item shift.opened is exist - process it [06:38:16]req_shift_opened [06:38:16]FM_GetShiftState [06:38:16]SAM_PROTO_GetShiftState [06:38:16]wFMCommunicate request_size=4 [06:38:16]MH_SAM_APDU [06:38:16]CAPDU: 80 13 01 00 [06:38:16]Write to MH i2c: E2 08 00 00 03 80 13 01 00 00 00 00 00 80 [06:38:16]Write i2c OK [06:38:16]MH_I2C_Read... [06:38:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:16]Read from MH i2c: E2 [06:38:16]MH_I2C_Read... [06:38:16]Read from MH i2c: E2 0E 00 [06:38:16]MH_I2C_Read... [06:38:16]Read from MH i2c: E2 0E 00 00 03 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 57 [06:38:16]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [06:38:16]wFMCommunicate OK [06:38:16]SAM_PROTO_GetShiftState done [06:38:16]FM_GetShiftState done [06:38:16]req_shift_opened done [06:38:16]requested_item shift.open_date is exist - process it [06:38:16]req_shift_open_date [06:38:16]req_shift_open_date done [06:38:16]produce_requested_data done [06:38:16]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118357,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [06:38:16]process_action_free close_receipt [06:38:16]json_value_free [06:38:16]json_value_free done [06:38:16]process_json_proto returns [06:38:16]Send response to host [06:38:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118357,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [06:38:16]free response buf [06:38:16]execute_script done [06:38:16]execute_script returns [06:38:16]free content buf [06:38:16]Sock 7.Close socket [06:38:16]Sock 7.Thread stoped [06:38:20]OFD Sender: No OFD packet to send [06:38:25]OFD Sender: No OFD packet to send [06:38:30]OFD Sender: No OFD packet to send [06:38:35]OFD Sender: No OFD packet to send [06:38:40]OFD Sender: No OFD packet to send [06:38:45]OFD Sender: No OFD packet to send [06:38:50]OFD Sender: No OFD packet to send [06:38:55]OFD Sender: No OFD packet to send [06:39:00]OFD Sender: No OFD packet to send [06:39:05]OFD Sender: No OFD packet to send [06:39:10]OFD Sender: No OFD packet to send [06:39:15]OFD Sender: No OFD packet to send [06:39:20]OFD Sender: No OFD packet to send [06:39:25]OFD Sender: No OFD packet to send [06:39:30]OFD Sender: No OFD packet to send [06:39:35]OFD Sender: No OFD packet to send [06:39:40]OFD Sender: No OFD packet to send [06:39:45]OFD Sender: No OFD packet to send [06:39:50]OFD Sender: No OFD packet to send [06:39:55]OFD Sender: No OFD packet to send [06:40:00]OFD Sender: No OFD packet to send [06:40:05]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [06:40:25]OFD Sender: No OFD packet to send [06:40:30]OFD Sender: No OFD packet to send [06:40:35]OFD Sender: No OFD packet to send [06:40:40]OFD Sender: No OFD packet to send [06:40:45]OFD Sender: No OFD packet to send [06:40:50]OFD Sender: No OFD packet to send [06:40:55]OFD Sender: No OFD packet to send [06:41:00]OFD Sender: No OFD packet to send [06:41:05]OFD Sender: No OFD packet to send [06:41:10]OFD Sender: No OFD packet to send [06:41:15]OFD Sender: No OFD packet to send [06:41:20]OFD Sender: No OFD packet to send [06:41:25]OFD Sender: No OFD packet to send [06:41:30]OFD Sender: No OFD packet to send [06:41:35]OFD Sender: No OFD packet to send [06:41:40]OFD Sender: No OFD packet to send [06:41:45]OFD Sender: No OFD packet to send [06:41:50]OFD Sender: No OFD packet to send [06:41:55]OFD Sender: No OFD packet to send [06:42:00]OFD Sender: No OFD packet to send [06:42:05]OFD Sender: No OFD packet to send [06:42:10]OFD Sender: No OFD packet to send [06:42:15]OFD Sender: No OFD packet to send [06:42:20]OFD Sender: No OFD packet to send [06:42:25]OFD Sender: No OFD packet to send [06:42:30]OFD Sender: No OFD packet to send [06:42:35]OFD Sender: No OFD packet to send [06:42:40]OFD Sender: No OFD packet to send [06:42:45]OFD Sender: No OFD packet to send [06:42:50]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:55]OFD Sender: No OFD packet to send [06:44:00]OFD Sender: No OFD packet to send [06:44:05]OFD Sender: No OFD packet to send [06:44:10]OFD Sender: No OFD packet to send [06:44:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:25]OFD Sender: No OFD packet to send [06:44:30]OFD Sender: No OFD packet to send [06:44:35]OFD Sender: No OFD packet to send [06:44:40]OFD Sender: No OFD packet to send [06:44:45]OFD Sender: No OFD packet to send [06:44:50]OFD Sender: No OFD packet to send [06:44:55]OFD Sender: No OFD packet to send [06:45:00]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:11]OFD Sender: No OFD packet to send [06:50:16]OFD Sender: No OFD packet to send [06:50:21]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:41]OFD Sender: No OFD packet to send [06:50:46]OFD Sender: No OFD packet to send [06:50:51]OFD Sender: No OFD packet to send [06:50:56]OFD Sender: No OFD packet to send [06:51:01]OFD Sender: No OFD packet to send [06:51:06]OFD Sender: No OFD packet to send [06:51:11]OFD Sender: No OFD packet to send [06:51:16]OFD Sender: No OFD packet to send [06:51:21]OFD Sender: No OFD packet to send [06:51:26]OFD Sender: No OFD packet to send [06:51:31]OFD Sender: No OFD packet to send [06:51:36]OFD Sender: No OFD packet to send [06:51:41]OFD Sender: No OFD packet to send [06:51:46]OFD Sender: No OFD packet to send [06:51:51]OFD Sender: No OFD packet to send [06:51:56]OFD Sender: No OFD packet to send [06:52:01]OFD Sender: No OFD packet to send [06:52:06]OFD Sender: No OFD packet to send [06:52:11]OFD Sender: No OFD packet to send [06:52:16]OFD Sender: No OFD packet to send [06:52:21]OFD Sender: No OFD packet to send [06:52:26]OFD Sender: No OFD packet to send [06:52:31]OFD Sender: No OFD packet to send [06:52:36]OFD Sender: No OFD packet to send [06:52:41]OFD Sender: No OFD packet to send [06:52:46]OFD Sender: No OFD packet to send [06:52:51]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54: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:57:59]accept exits with 9 [06:57:59]New connection [06:57:59]New thread 3067067748 created [06:57:59]Thread 3066924388 joined [06:57:59]Waiting for new connection... [06:57:59] Sock 9.Parse request [06:57:59]Sock 9.Check first char [06:57:59]Sock 9.First char is OK [06:57:59]request: POST /json_proto HTTP/1.0 [06:57:59]Method: POST [06:57:59]URL: /json_proto [06:57:59]Method is POST - this is cgi request [06:57:59]url: /json_proto [06:57:59]query_string will be loaded in cgi processing [06:57:59]execute_cgi json_proto POST (null) [06:57:59]execute_cgi path=json_proto method=POST [06:57:59]POST find Content-Length [06:57:59]Host: 172.17.45.7:8080 [06:57:59]Content-Length: 677 [06:57:59]Content-Type: application/json [06:57:59] [06:57:59]POST finish read [06:57:59]Found Content-Length = 677 [06:57:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [06:57:59]execute_script... [06: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)949232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [06:57:59]POST & json_proto [06:57:59]process_json_proto [06:57:59]json parsed OK: [06:57:59]protocol is kg_v1.0 [06:57:59]action value=close_receipt [06:57:59]process_action close_receipt [06:57:59]cmd_close_receipt [06:57:59]MH_GetDate [06:57:59]Write to MH i2c: F0 00 00 01 03 F3 [06:57:59]Write i2c OK [06:57:59]MH_I2C_Read... [06:57:59]Read from MH i2c: F0 [06:57:59]MH_I2C_Read... [06:57:59]Read from MH i2c: F0 09 00 [06:57:59]MH_I2C_Read... [06:57:59]Read from MH i2c: F0 09 00 01 03 00 F8 EB A5 66 90 0F 3E 66 2D [06:57:59]GetLastDocTimeStamp 1722148693 [06:57:59]current date 1722149880 [06:57:59]FM_GetShiftState [06:57:59]SAM_PROTO_GetShiftState [06:57:59]wFMCommunicate request_size=4 [06:57:59]MH_SAM_APDU [06:57:59]CAPDU: 80 13 01 00 [06:57:59]Write to MH i2c: E2 08 00 02 03 80 13 01 00 00 00 00 00 82 [06:57:59]Write i2c OK [06:57:59]MH_I2C_Read... [06:57:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:57:59]Read from MH i2c: E2 [06:57:59]MH_I2C_Read... [06:57:59]Read from MH i2c: E2 0E 00 [06:57:59]MH_I2C_Read... [06:57:59]Read from MH i2c: E2 0E 00 02 03 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 59 [06:57:59]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [06:57:59]wFMCommunicate OK [06:57:59]SAM_PROTO_GetShiftState done [06:57:59]FM_GetShiftState done [06:57:59]opened in 1722125364 [06:57:59]opened+sec_in_day 1722211764 [06:57:59]quantity*price = 40002 [06:57:59]sum+1 = 40003 [06:57:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 27 28.07.2024 06:58 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118358 ФПД: 45931285184185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T065800&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118358&fm=45931285184185&tin=02508201610067®Number=0000000000092660&sum=40000 [06:58:00]StoreToDocumentArchive [06:58:00]shift 433 fd 118358 [06:58:00]save to /storage/0433/doc_00118358 [06:58:00]save last doc name /storage/0433/doc_00118358 to /storage/kkm_last_doc_name [06:58:00]save OK [06:58:00]Clear old archive folders... [06:58:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:58:00]tlvbuf is 00149790 [06:58:00]SAM_PROTO_ClearQueue [06:58:00]wFMCommunicate request_size=4 [06:58:00]MH_SAM_APDU [06:58:00]CAPDU: 80 09 00 00 [06:58:00]Write to MH i2c: E2 08 00 0F 03 80 09 00 00 00 00 00 00 84 [06:58:00]Write i2c OK [06:58:00]MH_I2C_Read... [06:58:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:58:00]Read from MH i2c: E2 [06:58:00]MH_I2C_Read... [06:58:00]Read from MH i2c: E2 03 00 [06:58:00]MH_I2C_Read... [06:58:00]Read from MH i2c: E2 03 00 0F 03 00 90 00 86 [06:58:00]RAPDU: 90 00 [06:58:00]wFMCommunicate OK [06:58:00]SAM_PROTO_ClearQueue done [06:58:00]KKMCreateOFDPacket [06:58:00]OFDProtocolAddRootSTLVToBuf [06:58:00]FM_MakeSignedData [06:58:00]FM_MakeSignedData [06:58:00]SAM_PROTO_SignData [06:58:00]wFMCommunicate request_size=4 [06:58:00]MH_SAM_APDU [06:58:00]CAPDU: 80 0D 01 02 [06:58:00]Write to MH i2c: E2 08 00 10 03 80 0D 01 02 00 00 00 00 8C [06:58:00]Write i2c OK [06:58:00]MH_I2C_Read... [06:58:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:58:00]Read from MH i2c: E2 [06:58:00]MH_I2C_Read... [06:58:00]Read from MH i2c: E2 03 00 [06:58:00]MH_I2C_Read... [06:58:00]Read from MH i2c: E2 03 00 10 03 00 90 00 87 [06:58:00]RAPDU: 90 00 [06:58:00]wFMCommunicate OK [06:58:00]wFMCommunicate request_size=255 [06:58:00]MH_SAM_APDU [06: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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 1B 00 00 00 F4 03 04 00 F8 EB A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 CE 01 00 35 04 06 00 29 [06:58:00]Write to MH i2c: E2 02 01 11 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 1B 00 00 00 F4 03 04 00 F8 EB A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 CE 01 00 35 04 06 00 29 00 00 FE [06:58:00]Write i2c OK [06:58:00]MH_I2C_Read... [06:58:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:00]Read from MH i2c: E2 [06:58:00]MH_I2C_Read... [06:58:00]Read from MH i2c: E2 03 00 [06:58:00]MH_I2C_Read... [06:58:00]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [06:58:00]RAPDU: 90 00 [06:58:00]wFMCommunicate OK [06:58:00]wFMCommunicate request_size=10 [06:58:00]MH_SAM_APDU [06:58:00]CAPDU: 80 0D 02 02 05 C6 35 EF FE B9 [06:58:00]Write to MH i2c: E2 0D 00 12 03 80 0D 02 02 05 00 C6 35 EF FE B9 00 00 3A [06:58:00]Write i2c OK [06:58:00]MH_I2C_Read... [06:58:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:00]Read from MH i2c: E2 [06:58:00]MH_I2C_Read... [06:58:00]Read from MH i2c: E2 03 00 [06:58:00]MH_I2C_Read... [06:58:00]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [06:58:00]RAPDU: 90 00 [06:58:00]wFMCommunicate OK [06:58:00]wFMCommunicate request_size=4 [06:58:00]MH_SAM_APDU [06:58:00]CAPDU: 80 0D 03 02 [06:58:00]Write to MH i2c: E2 08 00 13 03 80 0D 03 02 00 00 00 00 91 [06:58:00]Write i2c OK [06:58:00]MH_I2C_Read... [06:58:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:58:00]Read from MH i2c: E2 [06:58:00]MH_I2C_Read... [06:58:00]Read from MH i2c: E2 0B 00 [06:58:00]MH_I2C_Read... [06:58:00]Read from MH i2c: E2 0B 00 13 03 00 FA BE C2 D3 53 CA 25 4E 90 00 6F [06:58:00]RAPDU: FA BE C2 D3 53 CA 25 4E 90 00 [06:58:00]wFMCommunicate OK [06:58:00]SAM_PROTO_SignData done [06:58:00]FM_MakeSignedData done [06:58:00]CreateOFDProtocolMessage [06:58:00]wFMCommunicate request_size=4 [06:58:00]MH_SAM_APDU [06:58:00]CAPDU: 80 11 00 00 [06:58:00]Write to MH i2c: E2 08 00 14 03 80 11 00 00 00 00 00 00 91 [06:58:00]Write i2c OK [06:58:00]MH_I2C_Read... [06:58:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:01]Read from MH i2c: E2 [06:58:01]MH_I2C_Read... [06:58:01]Read from MH i2c: E2 17 00 [06:58:01]MH_I2C_Read... [06:58:01]Read from MH i2c: E2 17 00 14 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EC [06:58:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:58:01]wFMCommunicate OK [06:58:01]CreateOFDProtocolMessage done [06:58:01]OFDSenderStorePacket 118358 [06:58:01]StoreOFDPacket docnum=118358 [06:58:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 59 15 07 01 5D 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 1B 00 00 00 F4 03 04 00 F8 EB A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 CE 01 00 35 04 06 00 29 C6 35 EF FE B9 FA BE C2 D3 53 CA 25 4E [06:58:01]CheckFolder [06:58:01]dirname=/storage/ofd_packets [06:58:01]CheckFolder done [06:58:01]ProducePacketName [06:58:01]name=ofd_packets/00118358 [06:58:01]NVStorageSaveData ofd_packets/00118358 [06:58:01]File name is /storage/ofd_packets/00118358 [06:58:01]Write 301 bytes [06:58:01]NVStorageSaveData done [06:58:01]OFDSenderStorePacket done [06:58:01]KKMCreateOFDPacket done [06:58:01]NVStorageSaveData kkm_last_timestamp [06:58:01]File name is /storage/kkm_last_timestamp [06:58:01]Write 4 bytes [06:58:01]NVStorageSaveData done [06:58:01]ExternCall_PrintAddStr [06:58:01]wPrintStart [06:58:01]Write to MH i2c: 01 00 00 15 03 18 [06:58:01]Write i2c OK [06:58:01]MH_I2C_Read... [06:58:01]Read from MH i2c: 01 [06:58:01]MH_I2C_Read... [06:58:01]Read from MH i2c: 01 07 00 [06:58:01]MH_I2C_Read... [06:58:01]Read from MH i2c: 01 07 00 15 03 00 00 00 00 00 FF 0F 2D [06:58:01]RasterBufferAndPrint [06:58:01]line Счет N : (1)949232 [06:58:01]line ИНН: 02508201610067 [06:58:01]line Контрольно-Кассовый Чек [06:58:01]line ПРОДАЖА [06:58:01]line ТРК (МРК, ГНК) : 41 [06:58:01]line Товар: 2710124130 [06:58:01]line Аи-92-К-4 [06:58:01]line 5.900 * 67.80 [06:58:01]line = 400.02 [06:58:01]line НДС 12% НСП 1% [06:58:01]line > о реализуемом товаре [06:58:01]line ОКРУГЛЕНИЕ: -0.02 [06:58:01]line ИТОГО: 400.00 [06:58:01]line Внесено: 400.00 [06:58:01]line СДАЧА: 0.00 [06:58:01]line НСП 1% : 3.54 [06:58:01]line НДС 12% : 42.48 [06:58:01]line Наличными: 400.00 [06:58:01]line Безнал.: 0.00 [06:58:01]line Место: АЗС № 134 "Партнер Нефть" [06:58:01]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:58:01]line СНО: Общий режим [06:58:01]line Чек 27 28.07.2024 06:58 [06:58:01]line Смена: 433 ФФД: 1.0 [06:58:01]line ЗНМ: 0300000044 [06:58:01]line РНМ: 0000000000092660 [06:58:01]line Версия ККМ: 001 [06:58:01]line ФМ: 0000000000874939 [06:58:01]line ФД: 118358 [06:58:01]line ФПД: 45931285184185 [06:58:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T065800&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118358&fm=45931285184185&tin=02508201610067®Number=0000000000092660&sum=40000 [06:58:01]written 0, free lines is 4095 [06:58:01]OFD Sender: Processing packet 118358 [packets to send 86, broken 85] [06:58:01]ProducePacketName [06:58:01]name=ofd_packets/00118358 [06:58:01]OFD Sender: To server: pG, [06:58:01]CommunicateWithHost lk.salyk.kg:30040 [06:58:01]ConnectInit lk.salyk.kg [06:58:01]Connected sock=10 [06: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 39 33 39 0F 01 00 00 59 15 07 01 5D 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 1B 00 00 00 F4 03 04 00 F8 EB A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 CE 01 00 35 04 06 00 29 C6 35 EF FE B9 FA BE C2 D3 53 CA 25 4E [06:58:01]Write to MH i2c: 01 00 00 3F 03 42 [06:58:01]Write i2c OK [06:58:01]MH_I2C_Read... [06:58:01]Read from MH i2c: 01 [06:58:01]MH_I2C_Read... [06:58:01]Read from MH i2c: 01 07 00 [06:58:01]MH_I2C_Read... [06:58:01]Read from MH i2c: 01 07 00 3F 03 00 00 00 00 00 CA 0C 1F [06:58:01]RasterBufferAndPrint [06:58:01]line [06:58:01]line [06:58:01]line [06:58:01]line [06:58:01]line [06:58:01]written 0, free lines is 3280 [06:58:01]MH_Cut [06:58:01]Write to MH i2c: D1 01 00 46 03 01 1B [06:58:01]Write i2c OK [06:58:01]MH_I2C_Read... [06:58:01]Read from MH i2c: D1 [06:58:01]MH_I2C_Read... [06:58:01]Read from MH i2c: D1 01 00 [06:58:01]MH_I2C_Read... [06:58:01]Read from MH i2c: D1 01 00 46 03 00 1A [06:58:01]Write to MH i2c: 01 00 00 47 03 4A [06:58:01]Write i2c OK [06:58:01]MH_I2C_Read... [06: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 39 33 39 4F 00 00 00 95 EF 47 00 B0 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 CE 01 00 F4 03 04 00 89 99 A5 66 B6 04 01 00 00 B2 1A 7F AB 9B F8 49 5F [06:58:01]CommunicateWithHost err = 0 [06:58:01]CheckOFDResponse [06:58:01]1017 (14) - 77093643461234 [06:58:01]1041 (16) - 0000000000874939 [06:58:01]1040 (4) - 118358 [06:58:01]1012 (4) - 28.07.2024 01:06 [06:58:01]1206 (1) - 0 [06:58:01]OFD Sender: Remove packet 118358 [06:58:01]ProducePacketName [06:58:01]name=ofd_packets/00118358 [06:58:01]NVStorageDeleteData [06:58:02]OFD Sender: No OFD packet to send [06:58:02]*** Cut start [06:58:02]*** Partial cut [06:58:02]*** CUTSNS_PIN = 1 [06:58:02]*** CUTSNS_PIN = 0 [06:58:02]*** Brake cut motor [06:58:02]Read from MH i2c: 01 [06:58:02]MH_I2C_Read... [06:58:02]*** Stop cut motor [06:58:02]*** Cut end [06:58:02]Read from MH i2c: 01 07 00 [06:58:02]MH_I2C_Read... [06:58:02]Read from MH i2c: 01 07 00 47 03 00 00 00 00 00 FF 0F 5F [06:58:02]process_action close_receipt done [06:58:02]requested_data is exist [06:58:02]produce_requested_data [06:58:02]requested_item fm.sn is exist - process it [06:58:02]wFMCommunicate request_size=4 [06:58:02]MH_SAM_APDU [06:58:02]CAPDU: 80 11 00 00 [06:58:02]Write to MH i2c: E2 08 00 48 03 80 11 00 00 00 00 00 00 C5 [06:58:02]Write i2c OK [06:58:02]MH_I2C_Read... [06:58:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:02]Read from MH i2c: E2 [06:58:02]MH_I2C_Read... [06:58:02]Read from MH i2c: E2 17 00 [06:58:02]MH_I2C_Read... [06:58:02]Read from MH i2c: E2 17 00 48 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 20 [06:58:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:58:02]wFMCommunicate OK [06:58:02]requested_item fd.num is exist - process it [06:58:02]SAM_PROTO_GetFieldsCounters [06:58:02]wFMCommunicate request_size=4 [06:58:02]MH_SAM_APDU [06:58:02]CAPDU: 80 13 00 00 [06:58:02]Write to MH i2c: E2 08 00 49 03 80 13 00 00 00 00 00 00 C8 [06:58:02]Write i2c OK [06:58:02]MH_I2C_Read... [06:58:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:58:03]Read from MH i2c: E2 [06:58:03]MH_I2C_Read... [06:58:03]Read from MH i2c: E2 62 00 [06:58:03]MH_I2C_Read... [06:58:03]Read from MH i2c: E2 62 00 49 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 56 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [06: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 56 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:58:03]wFMCommunicate OK [06:58:03]SAM_PROTO_GetFieldsCounters done [06:58:03]requested_item shift.num is exist - process it [06:58:03]requested_item shift.opened is exist - process it [06:58:03]req_shift_opened [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 4A 03 80 13 01 00 00 00 00 00 CA [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 4A 03 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A1 [06:58:03]RAPDU: 09 00 01 34 8C A5 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]req_shift_opened done [06:58:03]requested_item shift.open_date is exist - process it [06:58:03]req_shift_open_date [06:58:03]req_shift_open_date done [06:58:03]produce_requested_data done [06:58:03]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118358,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [06:58:03]process_action_free close_receipt [06:58:03]json_value_free [06:58:03]json_value_free done [06:58:03]process_json_proto returns [06:58:03]Send response to host [06:58:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118358,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [06:58:03]free response buf [06:58:03]execute_script done [06:58:03]execute_script returns [06:58:03]free content buf [06:58:03]Sock 9.Close socket [06:58:03]Sock 9.Thread stoped [06:58:07]OFD Sender: No OFD packet to send [06:58:12]OFD Sender: No OFD packet to send [06:58:17]OFD Sender: No OFD packet to send [06:58:22]OFD Sender: No OFD packet to send [06:58:27]OFD Sender: No OFD packet to send [06:58:32]OFD Sender: No OFD packet to send [06:58:37]OFD Sender: No OFD packet to send [06:58:42]OFD Sender: No OFD packet to send [06:58:47]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:16]accept exits with 7 [06:59:16]New connection [06:59:16]New thread 3066924388 created [06:59:16]Thread 3067067748 joined [06:59:16]Waiting for new connection... [06:59:16] Sock 7.Parse request [06:59:16]Sock 7.Check first char [06:59:16]Sock 7.First char is OK [06:59:16]request: POST /json_proto HTTP/1.0 [06:59:16]Method: POST [06:59:16]URL: /json_proto [06:59:16]Method is POST - this is cgi request [06:59:16]url: /json_proto [06:59:16]query_string will be loaded in cgi processing [06:59:16]execute_cgi json_proto POST (null) [06:59:16]execute_cgi path=json_proto method=POST [06:59:16]POST find Content-Length [06:59:16]Host: 172.17.45.7:8080 [06:59:16]Content-Length: 679 [06:59:16]Content-Type: application/json [06:59:16] [06:59:16]POST finish read [06:59:16]Found Content-Length = 679 [06:59:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:16]execute_script... [06:59: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)949233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:16]POST & json_proto [06:59:16]process_json_proto [06:59:16]json parsed OK: [06:59:16]protocol is kg_v1.0 [06:59:16]action value=close_receipt [06:59:16]process_action close_receipt [06:59:16]cmd_close_receipt [06:59:16]MH_GetDate [06:59:16]Write to MH i2c: F0 00 00 4B 03 3D [06:59:16]Write i2c OK [06:59:16]MH_I2C_Read... [06:59:16]Read from MH i2c: F0 [06:59:16]MH_I2C_Read... [06:59:16]Read from MH i2c: F0 09 00 [06:59:16]MH_I2C_Read... [06:59:16]Read from MH i2c: F0 09 00 4B 03 00 45 EC A5 66 90 0F 3E 66 C5 [06:59:16]GetLastDocTimeStamp 1722149880 [06:59:16]current date 1722149957 [06:59:16]FM_GetShiftState [06:59:16]SAM_PROTO_GetShiftState [06:59:16]wFMCommunicate request_size=4 [06:59:16]MH_SAM_APDU [06:59:16]CAPDU: 80 13 01 00 [06:59:16]Write to MH i2c: E2 08 00 4C 03 80 13 01 00 00 00 00 00 CC [06:59:16]Write i2c OK [06:59:16]MH_I2C_Read... [06:59:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:16]Read from MH i2c: E2 [06:59:16]MH_I2C_Read... [06:59:16]Read from MH i2c: E2 0E 00 [06:59:16]MH_I2C_Read... [06:59:16]Read from MH i2c: E2 0E 00 4C 03 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A3 [06:59:16]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [06:59:16]wFMCommunicate OK [06:59:16]SAM_PROTO_GetShiftState done [06:59:16]FM_GetShiftState done [06:59:16]opened in 1722125364 [06:59:16]opened+sec_in_day 1722211764 [06:59:16]quantity*price = 150037 [06:59:16]sum+1 = 150039 [06:59:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 28 28.07.2024 06:59 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118359 ФПД: 182802223975738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T065917&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118359&fm=182802223975738&tin=02508201610067®Number=0000000000092660&sum=150000 [06:59:17]StoreToDocumentArchive [06:59:17]shift 433 fd 118359 [06:59:17]save to /storage/0433/doc_00118359 [06:59:17]save last doc name /storage/0433/doc_00118359 to /storage/kkm_last_doc_name [06:59:17]save OK [06:59:17]Clear old archive folders... [06:59:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:59:17]tlvbuf is 00135F20 [06:59:17]SAM_PROTO_ClearQueue [06:59:17]wFMCommunicate request_size=4 [06:59:17]MH_SAM_APDU [06:59:17]CAPDU: 80 09 00 00 [06:59:17]Write to MH i2c: E2 08 00 59 03 80 09 00 00 00 00 00 00 CE [06:59:17]Write i2c OK [06:59:17]MH_I2C_Read... [06:59:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:59:17]Read from MH i2c: E2 [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: E2 03 00 [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: E2 03 00 59 03 00 90 00 D0 [06:59:17]RAPDU: 90 00 [06:59:17]wFMCommunicate OK [06:59:17]SAM_PROTO_ClearQueue done [06:59:17]KKMCreateOFDPacket [06:59:17]OFDProtocolAddRootSTLVToBuf [06:59:17]FM_MakeSignedData [06:59:17]FM_MakeSignedData [06:59:17]SAM_PROTO_SignData [06:59:17]wFMCommunicate request_size=4 [06:59:17]MH_SAM_APDU [06:59:17]CAPDU: 80 0D 01 02 [06:59:17]Write to MH i2c: E2 08 00 5A 03 80 0D 01 02 00 00 00 00 D6 [06:59:17]Write i2c OK [06:59:17]MH_I2C_Read... [06:59:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:59:17]Read from MH i2c: E2 [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: E2 03 00 [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: E2 03 00 5A 03 00 90 00 D1 [06:59:17]RAPDU: 90 00 [06:59:17]wFMCommunicate OK [06:59:17]wFMCommunicate request_size=255 [06:59:17]MH_SAM_APDU [06:59:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 45 EC A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 57 CE 01 00 35 04 06 00 A6 41 F5 9F [06:59:17]Write to MH i2c: E2 02 01 5B 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 45 EC A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 57 CE 01 00 35 04 06 00 A6 41 F5 9F 00 00 88 [06:59:17]Write i2c OK [06:59:17]MH_I2C_Read... [06:59:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:17]Read from MH i2c: E2 [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: E2 03 00 [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [06:59:17]RAPDU: 90 00 [06:59:17]wFMCommunicate OK [06:59:17]wFMCommunicate request_size=7 [06:59:17]MH_SAM_APDU [06:59:17]CAPDU: 80 0D 02 02 02 CD 3A [06:59:17]Write to MH i2c: E2 0A 00 5C 03 80 0D 02 02 02 00 CD 3A 00 00 E4 [06:59:17]Write i2c OK [06:59:17]MH_I2C_Read... [06:59:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:17]Read from MH i2c: E2 [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: E2 03 00 [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [06:59:17]RAPDU: 90 00 [06:59:17]wFMCommunicate OK [06:59:17]wFMCommunicate request_size=4 [06:59:17]MH_SAM_APDU [06:59:17]CAPDU: 80 0D 03 02 [06:59:17]Write to MH i2c: E2 08 00 5D 03 80 0D 03 02 00 00 00 00 DB [06:59:17]Write i2c OK [06:59:17]MH_I2C_Read... [06:59:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:59:18]Read from MH i2c: E2 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 0B 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 0B 00 5D 03 00 A7 2F 47 68 C6 C6 76 E4 90 00 47 [06:59:18]RAPDU: A7 2F 47 68 C6 C6 76 E4 90 00 [06:59:18]wFMCommunicate OK [06:59:18]SAM_PROTO_SignData done [06:59:18]FM_MakeSignedData done [06:59:18]CreateOFDProtocolMessage [06:59:18]wFMCommunicate request_size=4 [06:59:18]MH_SAM_APDU [06:59:18]CAPDU: 80 11 00 00 [06:59:18]Write to MH i2c: E2 08 00 5E 03 80 11 00 00 00 00 00 00 DB [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:18]Read from MH i2c: E2 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 17 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 17 00 5E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 36 [06:59:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:59:18]wFMCommunicate OK [06:59:18]CreateOFDProtocolMessage done [06:59:18]OFDSenderStorePacket 118359 [06:59:18]StoreOFDPacket docnum=118359 [06:59:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C8 D7 04 01 FE 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 45 EC A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 57 CE 01 00 35 04 06 00 A6 41 F5 9F CD 3A A7 2F 47 68 C6 C6 76 E4 [06:59:18]CheckFolder [06:59:18]dirname=/storage/ofd_packets [06:59:18]CheckFolder done [06:59:18]ProducePacketName [06:59:18]name=ofd_packets/00118359 [06:59:18]NVStorageSaveData ofd_packets/00118359 [06:59:18]File name is /storage/ofd_packets/00118359 [06:59:18]Write 298 bytes [06:59:18]NVStorageSaveData done [06:59:18]OFDSenderStorePacket done [06:59:18]KKMCreateOFDPacket done [06:59:18]NVStorageSaveData kkm_last_timestamp [06:59:18]File name is /storage/kkm_last_timestamp [06:59:18]Write 4 bytes [06:59:18]NVStorageSaveData done [06:59:18]ExternCall_PrintAddStr [06:59:18]wPrintStart [06:59:18]Write to MH i2c: 01 00 00 5F 03 62 [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: 01 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: 01 07 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: 01 07 00 5F 03 00 00 00 00 00 FF 0F 77 [06:59:18]RasterBufferAndPrint [06:59:18]line Счет N : (1)949233 [06:59:18]line ИНН: 02508201610067 [06:59:18]line Контрольно-Кассовый Чек [06:59:18]line ПРОДАЖА [06:59:18]line ТРК (МРК, ГНК) : 11 [06:59:18]line Товар: 2710194800 [06:59:18]line ДТ-К-5 [06:59:18]line 19.690 * 76.20 [06:59:18]line = 1500.38 [06:59:18]line НДС 12% НСП 1% [06:59:18]line > о реализуемом товаре [06:59:18]line ОКРУГЛЕНИЕ: -0.38 [06:59:18]line ИТОГО: 1500.00 [06:59:18]line Внесено: 1500.00 [06:59:18]line СДАЧА: 0.00 [06:59:18]line НСП 1% : 13.28 [06:59:18]line НДС 12% : 159.33 [06:59:18]line Наличными: 1500.00 [06:59:18]line Безнал.: 0.00 [06:59:18]line Место: АЗС № 134 "Партнер Нефть" [06:59:18]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:59:18]line СНО: Общий режим [06:59:18]line Чек 28 28.07.2024 06:59 [06:59:18]line Смена: 433 ФФД: 1.0 [06:59:18]line ЗНМ: 0300000044 [06:59:18]line РНМ: 0000000000092660 [06:59:18]line Версия ККМ: 001 [06:59:18]line ФМ: 0000000000874939 [06:59:18]line ФД: 118359 [06:59:18]line ФПД: 182802223975738 [06:59:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T065917&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118359&fm=182802223975738&tin=02508201610067®Number=0000000000092660&sum=150000 [06:59:18]OFD Sender: Processing packet 118359 [packets to send 86, broken 85] [06:59:18]ProducePacketName [06:59:18]name=ofd_packets/00118359 [06:59:18]OFD Sender: To server: pG, [06:59:18]CommunicateWithHost lk.salyk.kg:30040 [06:59:18]ConnectInit lk.salyk.kg [06:59:18]written 0, free lines is 4095 [06:59:18]Connected sock=10 [06:59:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C8 D7 04 01 FE 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 45 EC A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 57 CE 01 00 35 04 06 00 A6 41 F5 9F CD 3A A7 2F 47 68 C6 C6 76 E4 [06:59:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 DD C4 47 00 71 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 39 33 39 10 04 04 00 57 CE 01 00 F4 03 04 00 D6 99 A5 66 B6 04 01 00 00 5A AF 29 E2 BA 34 47 24 [06:59:18]CommunicateWithHost err = 0 [06:59:18]CheckOFDResponse [06:59:18]1017 (14) - 77093643461234 [06:59:18]1041 (16) - 0000000000874939 [06:59:18]1040 (4) - 118359 [06:59:18]1012 (4) - 28.07.2024 01:07 [06:59:18]1206 (1) - 0 [06:59:18]OFD Sender: Remove packet 118359 [06:59:18]ProducePacketName [06:59:18]name=ofd_packets/00118359 [06:59:18]NVStorageDeleteData [06:59:18]Write to MH i2c: 01 00 00 89 03 8C [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: 01 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: 01 07 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: 01 07 00 89 03 00 00 00 00 00 CC 0C 6B [06:59:18]RasterBufferAndPrint [06:59:18]line [06:59:18]line [06:59:18]line [06:59:18]line [06:59:18]line [06:59:18]written 0, free lines is 3283 [06:59:18]MH_Cut [06:59:18]Write to MH i2c: D1 01 00 90 03 01 65 [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: D1 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: D1 01 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: D1 01 00 90 03 00 64 [06:59:18]Write to MH i2c: 01 00 00 91 03 94 [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:19]OFD Sender: No OFD packet to send [06:59:19]*** Cut start [06:59:19]*** Partial cut [06:59:19]*** CUTSNS_PIN = 1 [06:59:19]*** CUTSNS_PIN = 0 [06:59:19]*** Brake cut motor [06:59:20]Read from MH i2c: 01 [06:59:20]MH_I2C_Read... [06:59:20]*** Stop cut motor [06:59:20]*** Cut end [06:59:20]Read from MH i2c: 01 07 00 [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: 01 07 00 91 03 00 00 00 00 00 FF 0F A9 [06:59:20]process_action close_receipt done [06:59:20]requested_data is exist [06:59:20]produce_requested_data [06:59:20]requested_item fm.sn is exist - process it [06:59:20]wFMCommunicate request_size=4 [06:59:20]MH_SAM_APDU [06:59:20]CAPDU: 80 11 00 00 [06:59:20]Write to MH i2c: E2 08 00 92 03 80 11 00 00 00 00 00 00 0F [06:59:20]Write i2c OK [06:59:20]MH_I2C_Read... [06:59:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:20]Read from MH i2c: E2 [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: E2 17 00 [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: E2 17 00 92 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6A [06:59:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:59:20]wFMCommunicate OK [06:59:20]requested_item fd.num is exist - process it [06:59:20]SAM_PROTO_GetFieldsCounters [06:59:20]wFMCommunicate request_size=4 [06:59:20]MH_SAM_APDU [06:59:20]CAPDU: 80 13 00 00 [06:59:20]Write to MH i2c: E2 08 00 93 03 80 13 00 00 00 00 00 00 12 [06:59:20]Write i2c OK [06:59:20]MH_I2C_Read... [06:59:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:59:20]Read from MH i2c: E2 [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: E2 62 00 [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: E2 62 00 93 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 57 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [06:59:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 57 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:59:20]wFMCommunicate OK [06:59:20]SAM_PROTO_GetFieldsCounters done [06:59:20]requested_item shift.num is exist - process it [06:59:20]requested_item shift.opened is exist - process it [06:59:20]req_shift_opened [06:59:20]FM_GetShiftState [06:59:20]SAM_PROTO_GetShiftState [06:59:20]wFMCommunicate request_size=4 [06:59:20]MH_SAM_APDU [06:59:20]CAPDU: 80 13 01 00 [06:59:20]Write to MH i2c: E2 08 00 94 03 80 13 01 00 00 00 00 00 14 [06:59:20]Write i2c OK [06:59:20]MH_I2C_Read... [06:59:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:20]Read from MH i2c: E2 [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: E2 0E 00 [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: E2 0E 00 94 03 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 EB [06:59:20]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [06:59:20]wFMCommunicate OK [06:59:20]SAM_PROTO_GetShiftState done [06:59:20]FM_GetShiftState done [06:59:20]req_shift_opened done [06:59:20]requested_item shift.open_date is exist - process it [06:59:20]req_shift_open_date [06:59:20]req_shift_open_date done [06:59:20]produce_requested_data done [06:59:20]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118359,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [06:59:20]process_action_free close_receipt [06:59:20]json_value_free [06:59:20]json_value_free done [06:59:20]process_json_proto returns [06:59:20]Send response to host [06:59:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118359,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [06:59:20]free response buf [06:59:20]execute_script done [06:59:20]execute_script returns [06:59:20]free content buf [06:59:20]Sock 7.Close socket [06:59:20]Sock 7.Thread stoped [06:59:24]OFD Sender: No OFD packet to send [06:59:25]accept exits with 9 [06:59:25]New connection [06:59:25]New thread 3067067748 created [06:59:25]Thread 3066924388 joined [06:59:25]Waiting for new connection... [06:59:25] Sock 9.Parse request [06:59:25]Sock 9.Check first char [06:59:25]Sock 9.First char is OK [06:59:25]request: POST /json_proto HTTP/1.0 [06:59:25]Method: POST [06:59:25]URL: /json_proto [06:59:25]Method is POST - this is cgi request [06:59:25]url: /json_proto [06:59:25]query_string will be loaded in cgi processing [06:59:25]execute_cgi json_proto POST (null) [06:59:25]execute_cgi path=json_proto method=POST [06:59:25]POST find Content-Length [06:59:25]Host: 172.17.45.7:8080 [06:59:25]Content-Length: 679 [06:59:25]Content-Type: application/json [06:59:25] [06:59:25]POST finish read [06:59:25]Found Content-Length = 679 [06:59:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:25]execute_script... [06:59: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)949234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:25]POST & json_proto [06:59:25]process_json_proto [06:59:25]json parsed OK: [06:59:25]protocol is kg_v1.0 [06:59:25]action value=close_receipt [06:59:25]process_action close_receipt [06:59:25]cmd_close_receipt [06:59:25]MH_GetDate [06:59:25]Write to MH i2c: F0 00 00 95 03 87 [06:59:25]Write i2c OK [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: F0 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: F0 09 00 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: F0 09 00 95 03 00 4F EC A5 66 90 0F 3E 66 19 [06:59:25]GetLastDocTimeStamp 1722149957 [06:59:25]current date 1722149967 [06:59:25]FM_GetShiftState [06:59:25]SAM_PROTO_GetShiftState [06:59:25]wFMCommunicate request_size=4 [06:59:25]MH_SAM_APDU [06:59:25]CAPDU: 80 13 01 00 [06:59:25]Write to MH i2c: E2 08 00 96 03 80 13 01 00 00 00 00 00 16 [06:59:25]Write i2c OK [06:59:25]MH_I2C_Read... [06:59:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:25]Read from MH i2c: E2 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: E2 0E 00 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: E2 0E 00 96 03 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 ED [06:59:25]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [06:59:25]wFMCommunicate OK [06:59:25]SAM_PROTO_GetShiftState done [06:59:25]FM_GetShiftState done [06:59:25]opened in 1722125364 [06:59:25]opened+sec_in_day 1722211764 [06:59:25]quantity*price = 150037 [06:59:25]sum+1 = 150039 [06:59:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 29 28.07.2024 06:59 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118360 ФПД: 191436208758103 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T065927&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118360&fm=191436208758103&tin=02508201610067®Number=0000000000092660&sum=150000 [06:59:27]StoreToDocumentArchive [06:59:27]shift 433 fd 118360 [06:59:27]save to /storage/0433/doc_00118360 [06:59:27]save last doc name /storage/0433/doc_00118360 to /storage/kkm_last_doc_name [06:59:27]save OK [06:59:27]Clear old archive folders... [06:59:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:59:27]tlvbuf is 00136B80 [06:59:27]SAM_PROTO_ClearQueue [06:59:27]wFMCommunicate request_size=4 [06:59:27]MH_SAM_APDU [06:59:27]CAPDU: 80 09 00 00 [06:59:27]Write to MH i2c: E2 08 00 A3 03 80 09 00 00 00 00 00 00 18 [06:59:27]Write i2c OK [06:59:27]MH_I2C_Read... [06:59:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:59:27]Read from MH i2c: E2 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: E2 03 00 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [06:59:27]RAPDU: 90 00 [06:59:27]wFMCommunicate OK [06:59:27]SAM_PROTO_ClearQueue done [06:59:27]KKMCreateOFDPacket [06:59:27]OFDProtocolAddRootSTLVToBuf [06:59:27]FM_MakeSignedData [06:59:27]FM_MakeSignedData [06:59:27]SAM_PROTO_SignData [06:59:27]wFMCommunicate request_size=4 [06:59:27]MH_SAM_APDU [06:59:27]CAPDU: 80 0D 01 02 [06:59:27]Write to MH i2c: E2 08 00 A4 03 80 0D 01 02 00 00 00 00 20 [06:59:27]Write i2c OK [06:59:27]MH_I2C_Read... [06:59:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:59:27]Read from MH i2c: E2 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: E2 03 00 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [06:59:27]RAPDU: 90 00 [06:59:27]wFMCommunicate OK [06:59:27]wFMCommunicate request_size=255 [06:59:27]MH_SAM_APDU [06:59:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4F EC A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 58 CE 01 00 35 04 06 00 AE 1C 37 38 [06:59:27]Write to MH i2c: E2 02 01 A5 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4F EC A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 58 CE 01 00 35 04 06 00 AE 1C 37 38 00 00 9C [06:59:27]Write i2c OK [06:59:27]MH_I2C_Read... [06:59:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:27]Read from MH i2c: E2 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: E2 03 00 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [06:59:27]RAPDU: 90 00 [06:59:27]wFMCommunicate OK [06:59:27]wFMCommunicate request_size=7 [06:59:27]MH_SAM_APDU [06:59:27]CAPDU: 80 0D 02 02 02 5D 57 [06:59:27]Write to MH i2c: E2 0A 00 A6 03 80 0D 02 02 02 00 5D 57 00 00 DB [06:59:27]Write i2c OK [06:59:27]MH_I2C_Read... [06:59:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:27]Read from MH i2c: E2 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: E2 03 00 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: E2 03 00 A6 03 00 90 00 1D [06:59:27]RAPDU: 90 00 [06:59:27]wFMCommunicate OK [06:59:27]wFMCommunicate request_size=4 [06:59:27]MH_SAM_APDU [06:59:27]CAPDU: 80 0D 03 02 [06:59:27]Write to MH i2c: E2 08 00 A7 03 80 0D 03 02 00 00 00 00 25 [06:59:27]Write i2c OK [06:59:27]MH_I2C_Read... [06:59:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:59:27]Read from MH i2c: E2 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: E2 0B 00 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: E2 0B 00 A7 03 00 90 F1 58 0C 7F BA 15 3F 90 00 98 [06:59:27]RAPDU: 90 F1 58 0C 7F BA 15 3F 90 00 [06:59:27]wFMCommunicate OK [06:59:27]SAM_PROTO_SignData done [06:59:27]FM_MakeSignedData done [06:59:27]CreateOFDProtocolMessage [06:59:27]wFMCommunicate request_size=4 [06:59:27]MH_SAM_APDU [06:59:27]CAPDU: 80 11 00 00 [06:59:27]Write to MH i2c: E2 08 00 A8 03 80 11 00 00 00 00 00 00 25 [06:59:27]Write i2c OK [06:59:27]MH_I2C_Read... [06:59:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:27]Read from MH i2c: E2 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: E2 17 00 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: E2 17 00 A8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 80 [06:59:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:59:27]wFMCommunicate OK [06:59:27]CreateOFDProtocolMessage done [06:59:27]OFDSenderStorePacket 118360 [06:59:27]StoreOFDPacket docnum=118360 [06:59:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 56 F4 04 01 8C 80 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4F EC A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 58 CE 01 00 35 04 06 00 AE 1C 37 38 5D 57 90 F1 58 0C 7F BA 15 3F [06:59:27]CheckFolder [06:59:27]dirname=/storage/ofd_packets [06:59:27]CheckFolder done [06:59:27]ProducePacketName [06:59:27]name=ofd_packets/00118360 [06:59:27]NVStorageSaveData ofd_packets/00118360 [06:59:27]File name is /storage/ofd_packets/00118360 [06:59:27]Write 298 bytes [06:59:27]NVStorageSaveData done [06:59:27]OFDSenderStorePacket done [06:59:27]KKMCreateOFDPacket done [06:59:27]NVStorageSaveData kkm_last_timestamp [06:59:27]File name is /storage/kkm_last_timestamp [06:59:27]Write 4 bytes [06:59:27]NVStorageSaveData done [06:59:27]ExternCall_PrintAddStr [06:59:27]wPrintStart [06:59:27]Write to MH i2c: 01 00 00 A9 03 AC [06:59:27]Write i2c OK [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: 01 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: 01 07 00 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: 01 07 00 A9 03 00 00 00 00 00 FF 0F C1 [06:59:27]RasterBufferAndPrint [06:59:27]line Счет N : (1)949234 [06:59:27]line ИНН: 02508201610067 [06:59:27]line Контрольно-Кассовый Чек [06:59:27]line ПРОДАЖА [06:59:27]line ТРК (МРК, ГНК) : 34 [06:59:27]line Товар: 2710194800 [06:59:27]line ДТ-К-5 [06:59:27]line 19.690 * 76.20 [06:59:27]line = 1500.38 [06:59:27]line НДС 12% НСП 1% [06:59:27]line > о реализуемом товаре [06:59:27]line ОКРУГЛЕНИЕ: -0.38 [06:59:27]line ИТОГО: 1500.00 [06:59:27]line Внесено: 1500.00 [06:59:27]line СДАЧА: 0.00 [06:59:27]line НСП 1% : 13.28 [06:59:27]line НДС 12% : 159.33 [06:59:27]line Наличными: 1500.00 [06:59:27]line Безнал.: 0.00 [06:59:27]line Место: АЗС № 134 "Партнер Нефть" [06:59:27]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:59:27]line СНО: Общий режим [06:59:27]line Чек 29 28.07.2024 06:59 [06:59:27]line Смена: 433 ФФД: 1.0 [06:59:27]line ЗНМ: 0300000044 [06:59:27]line РНМ: 0000000000092660 [06:59:27]line Версия ККМ: 001 [06:59:27]line ФМ: 0000000000874939 [06:59:27]line ФД: 118360 [06:59:27]line ФПД: 191436208758103 [06:59:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T065927&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118360&fm=191436208758103&tin=02508201610067®Number=0000000000092660&sum=150000 [06:59:27]written 0, free lines is 4095 [06:59:27]OFD Sender: Processing packet 118360 [packets to send 86, broken 85] [06:59:27]ProducePacketName [06:59:27]name=ofd_packets/00118360 [06:59:27]OFD Sender: To server: pG, [06:59:27]CommunicateWithHost lk.salyk.kg:30040 [06:59:27]ConnectInit lk.salyk.kg [06:59:27]Connected sock=10 [06:59:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 56 F4 04 01 8C 80 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4F EC A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 58 CE 01 00 35 04 06 00 AE 1C 37 38 5D 57 90 F1 58 0C 7F BA 15 3F [06:59:28]Write to MH i2c: 01 00 00 D3 03 D6 [06:59:28]Write i2c OK [06:59:28]MH_I2C_Read... [06:59:28]Read from MH i2c: 01 [06:59:28]MH_I2C_Read... [06:59:28]Read from MH i2c: 01 07 00 [06:59:28]MH_I2C_Read... [06:59:28]Read from MH i2c: 01 07 00 D3 03 00 00 00 00 00 EA 0C D3 [06:59:28]RasterBufferAndPrint [06:59:28]line [06:59:28]line [06:59:28]line [06:59:28]line [06:59:28]line [06:59:28]written 0, free lines is 3313 [06:59:28]MH_Cut [06:59:28]Write to MH i2c: D1 01 00 DA 03 01 AF [06:59:28]Write i2c OK [06:59:28]MH_I2C_Read... [06:59:28]Read from MH i2c: D1 [06:59:28]MH_I2C_Read... [06:59:28]Read from MH i2c: D1 01 00 [06:59:28]MH_I2C_Read... [06:59:28]Read from MH i2c: D1 01 00 DA 03 00 AE [06:59:28]Write to MH i2c: 01 00 00 DB 03 DE [06:59:28]Write i2c OK [06:59:28]MH_I2C_Read... [06:59:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B2 6D 47 00 F3 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 58 CE 01 00 F4 03 04 00 E0 99 A5 66 B6 04 01 00 00 B6 48 4A 71 63 C0 E4 60 [06:59:28]CommunicateWithHost err = 0 [06:59:28]CheckOFDResponse [06:59:28]1017 (14) - 77093643461234 [06:59:28]1041 (16) - 0000000000874939 [06:59:28]1040 (4) - 118360 [06:59:28]1012 (4) - 28.07.2024 01:07 [06:59:28]1206 (1) - 0 [06:59:28]OFD Sender: Remove packet 118360 [06:59:28]ProducePacketName [06:59:28]name=ofd_packets/00118360 [06:59:28]NVStorageDeleteData [06:59:28]OFD Sender: No OFD packet to send [06:59:28]*** Cut start [06:59:28]*** Partial cut [06:59:28]*** CUTSNS_PIN = 1 [06:59:28]*** CUTSNS_PIN = 0 [06:59:29]*** Brake cut motor [06:59:29]Read from MH i2c: 01 [06:59:29]MH_I2C_Read... [06:59:29]*** Stop cut motor [06:59:29]*** Cut end [06:59:29]Read from MH i2c: 01 07 00 [06:59:29]MH_I2C_Read... [06:59:29]Read from MH i2c: 01 07 00 DB 03 00 00 00 00 00 FF 0F F3 [06:59:29]process_action close_receipt done [06:59:29]requested_data is exist [06:59:29]produce_requested_data [06:59:29]requested_item fm.sn is exist - process it [06:59:29]wFMCommunicate request_size=4 [06:59:29]MH_SAM_APDU [06:59:29]CAPDU: 80 11 00 00 [06:59:29]Write to MH i2c: E2 08 00 DC 03 80 11 00 00 00 00 00 00 59 [06:59:29]Write i2c OK [06:59:29]MH_I2C_Read... [06:59:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:29]Read from MH i2c: E2 [06:59:29]MH_I2C_Read... [06:59:29]Read from MH i2c: E2 17 00 [06:59:29]MH_I2C_Read... [06:59:29]Read from MH i2c: E2 17 00 DC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B4 [06:59:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:59:29]wFMCommunicate OK [06:59:29]requested_item fd.num is exist - process it [06:59:29]SAM_PROTO_GetFieldsCounters [06:59:29]wFMCommunicate request_size=4 [06:59:29]MH_SAM_APDU [06:59:29]CAPDU: 80 13 00 00 [06:59:29]Write to MH i2c: E2 08 00 DD 03 80 13 00 00 00 00 00 00 5C [06:59:29]Write i2c OK [06:59:29]MH_I2C_Read... [06:59:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:59:29]Read from MH i2c: E2 [06:59:29]MH_I2C_Read... [06:59:29]Read from MH i2c: E2 62 00 [06:59:29]MH_I2C_Read... [06:59:29]Read from MH i2c: E2 62 00 DD 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 58 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [06:59:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 58 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:59:29]wFMCommunicate OK [06:59:29]SAM_PROTO_GetFieldsCounters done [06:59:29]requested_item shift.num is exist - process it [06:59:29]requested_item shift.opened is exist - process it [06:59:29]req_shift_opened [06:59:29]FM_GetShiftState [06:59:29]SAM_PROTO_GetShiftState [06:59:29]wFMCommunicate request_size=4 [06:59:29]MH_SAM_APDU [06:59:29]CAPDU: 80 13 01 00 [06:59:29]Write to MH i2c: E2 08 00 DE 03 80 13 01 00 00 00 00 00 5E [06:59:29]Write i2c OK [06:59:29]MH_I2C_Read... [06:59:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:29]Read from MH i2c: E2 [06:59:29]MH_I2C_Read... [06:59:29]Read from MH i2c: E2 0E 00 [06:59:29]MH_I2C_Read... [06:59:29]Read from MH i2c: E2 0E 00 DE 03 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 35 [06:59:29]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [06:59:29]wFMCommunicate OK [06:59:29]SAM_PROTO_GetShiftState done [06:59:29]FM_GetShiftState done [06:59:29]req_shift_opened done [06:59:29]requested_item shift.open_date is exist - process it [06:59:29]req_shift_open_date [06:59:29]req_shift_open_date done [06:59:29]produce_requested_data done [06:59:29]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118360,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [06:59:29]process_action_free close_receipt [06:59:29]json_value_free [06:59:29]json_value_free done [06:59:29]process_json_proto returns [06:59:29]Send response to host [06:59:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118360,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [06:59:29]free response buf [06:59:29]execute_script done [06:59:29]execute_script returns [06:59:29]free content buf [06:59:29]Sock 9.Close socket [06:59:29]Sock 9.Thread stoped [06:59:33]OFD Sender: No OFD packet to send [06:59:38]OFD Sender: No OFD packet to send [06:59:43]OFD Sender: No OFD packet to send [06:59:48]OFD Sender: No OFD packet to send [06:59:53]OFD Sender: No OFD packet to send [06:59:58]OFD Sender: No OFD packet to send [07:00:03]OFD Sender: No OFD packet to send [07:00:08]OFD Sender: No OFD packet to send [07:00:13]OFD Sender: No OFD packet to send [07:00:18]OFD Sender: No OFD packet to send [07:00:23]OFD Sender: No OFD packet to send [07:00:28]OFD Sender: No OFD packet to send [07:00:33]OFD Sender: No OFD packet to send [07:00:38]OFD Sender: No OFD packet to send [07:00:43]OFD Sender: No OFD packet to send [07:00:48]OFD Sender: No OFD packet to send [07:00:53]OFD Sender: No OFD packet to send [07:00:58]OFD Sender: No OFD packet to send [07:01:03]OFD Sender: No OFD packet to send [07:01:08]OFD Sender: No OFD packet to send [07:01:13]OFD Sender: No OFD packet to send [07:01:18]OFD Sender: No OFD packet to send [07:01:23]OFD Sender: No OFD packet to send [07:01:28]OFD Sender: No OFD packet to send [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:43]OFD Sender: No OFD packet to send [07:01:48]OFD Sender: No OFD packet to send [07:01:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:03]OFD Sender: No OFD packet to send [07:02:08]OFD Sender: No OFD packet to send [07:02:13]OFD Sender: No OFD packet to send [07:02:18]OFD Sender: No OFD packet to send [07:02:23]OFD Sender: No OFD packet to send [07:02:28]OFD Sender: No OFD packet to send [07:02:33]OFD Sender: No OFD packet to send [07:02:38]OFD Sender: No OFD packet to send [07:02:43]OFD Sender: No OFD packet to send [07:02:48]OFD Sender: No OFD packet to send [07:02:53]OFD Sender: No OFD packet to send [07:02:58]OFD Sender: No OFD packet to send [07:03:03]OFD Sender: No OFD packet to send [07:03:08]OFD Sender: No OFD packet to send [07:03:13]OFD Sender: No OFD packet to send [07:03:18]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:28]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]OFD Sender: No OFD packet to send [07:03:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]OFD Sender: No OFD packet to send [07:04:18]OFD Sender: No OFD packet to send [07:04:23]OFD Sender: No OFD packet to send [07:04:28]OFD Sender: No OFD packet to send [07:04:33]OFD Sender: No OFD packet to send [07:04:38]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:03]OFD Sender: No OFD packet to send [07:05:08]OFD Sender: No OFD packet to send [07:05:13]OFD Sender: No OFD packet to send [07:05:18]OFD Sender: No OFD packet to send [07:05:23]OFD Sender: No OFD packet to send [07:05:28]OFD Sender: No OFD packet to send [07:05:33]OFD Sender: No OFD packet to send [07:05:38]OFD Sender: No OFD packet to send [07:05:43]OFD Sender: No OFD packet to send [07:05:48]OFD Sender: No OFD packet to send [07:05:53]OFD Sender: No OFD packet to send [07:05:58]OFD Sender: No OFD packet to send [07:06:03]OFD Sender: No OFD packet to send [07:06:09]OFD Sender: No OFD packet to send [07:06:14]OFD Sender: No OFD packet to send [07:06:19]OFD Sender: No OFD packet to send [07:06:24]OFD Sender: No OFD packet to send [07:06:29]OFD Sender: No OFD packet to send [07:06:34]OFD Sender: No OFD packet to send [07:06:39]OFD Sender: No OFD packet to send [07:06:44]OFD Sender: No OFD packet to send [07:06:49]OFD Sender: No OFD packet to send [07:06:54]OFD Sender: No OFD packet to send [07:06:59]OFD Sender: No OFD packet to send [07:07:04]OFD Sender: No OFD packet to send [07:07:09]OFD Sender: No OFD packet to send [07:07:14]OFD Sender: No OFD packet to send [07:07:19]OFD Sender: No OFD packet to send [07:07:24]OFD Sender: No OFD packet to send [07:07:29]OFD Sender: No OFD packet to send [07:07:34]OFD Sender: No OFD packet to send [07:07:39]OFD Sender: No OFD packet to send [07:07:44]OFD Sender: No OFD packet to send [07:07:49]OFD Sender: No OFD packet to send [07:07:54]OFD Sender: No OFD packet to send [07:07:59]OFD Sender: No OFD packet to send [07:08:04]OFD Sender: No OFD packet to send [07:08:09]OFD Sender: No OFD packet to send [07:08:14]OFD Sender: No OFD packet to send [07:08:15]accept exits with 7 [07:08:15]New connection [07:08:15]New thread 3066924388 created [07:08:15]Thread 3067067748 joined [07:08:15]Waiting for new connection... [07:08:15] Sock 7.Parse request [07:08:15]Sock 7.Check first char [07:08:15]Sock 7.First char is OK [07:08:15]request: POST /json_proto HTTP/1.0 [07:08:15]Method: POST [07:08:15]URL: /json_proto [07:08:15]Method is POST - this is cgi request [07:08:15]url: /json_proto [07:08:15]query_string will be loaded in cgi processing [07:08:15]execute_cgi json_proto POST (null) [07:08:15]execute_cgi path=json_proto method=POST [07:08:15]POST find Content-Length [07:08:15]Host: 172.17.45.7:8080 [07:08:15]Content-Length: 682 [07:08:15]Content-Type: application/json [07:08:15] [07:08:15]POST finish read [07:08:15]Found Content-Length = 682 [07:08:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:08:15]execute_script... [07:08: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)949235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:08:15]POST & json_proto [07:08:15]process_json_proto [07:08:15]json parsed OK: [07:08:15]protocol is kg_v1.0 [07:08:15]action value=close_receipt [07:08:15]process_action close_receipt [07:08:15]cmd_close_receipt [07:08:15]MH_GetDate [07:08:15]Write to MH i2c: F0 00 00 DF 03 D1 [07:08:15]Write i2c OK [07:08:15]MH_I2C_Read... [07:08:15]Read from MH i2c: F0 [07:08:15]MH_I2C_Read... [07:08:15]Read from MH i2c: F0 09 00 [07:08:15]MH_I2C_Read... [07:08:15]Read from MH i2c: F0 09 00 DF 03 00 60 EE A5 66 90 0F 3E 66 76 [07:08:15]GetLastDocTimeStamp 1722149967 [07:08:15]current date 1722150496 [07:08:15]FM_GetShiftState [07:08:15]SAM_PROTO_GetShiftState [07:08:15]wFMCommunicate request_size=4 [07:08:15]MH_SAM_APDU [07:08:15]CAPDU: 80 13 01 00 [07:08:15]Write to MH i2c: E2 08 00 E0 03 80 13 01 00 00 00 00 00 60 [07:08:15]Write i2c OK [07:08:15]MH_I2C_Read... [07:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:15]Read from MH i2c: E2 [07:08:15]MH_I2C_Read... [07:08:15]Read from MH i2c: E2 0E 00 [07:08:15]MH_I2C_Read... [07:08:15]Read from MH i2c: E2 0E 00 E0 03 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 37 [07:08:15]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:08:15]wFMCommunicate OK [07:08:15]SAM_PROTO_GetShiftState done [07:08:15]FM_GetShiftState done [07:08:15]opened in 1722125364 [07:08:15]opened+sec_in_day 1722211764 [07:08:15]quantity*price = 100021 [07:08:15]sum+1 = 100023 [07:08:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 30 28.07.2024 07:08 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118361 ФПД: 542597219761 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T070816&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118361&fm=542597219761&tin=02508201610067®Number=0000000000092660&sum=100000 [07:08:16]StoreToDocumentArchive [07:08:16]shift 433 fd 118361 [07:08:16]save to /storage/0433/doc_00118361 [07:08:16]save last doc name /storage/0433/doc_00118361 to /storage/kkm_last_doc_name [07:08:16]save OK [07:08:16]Clear old archive folders... [07:08:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:08:16]tlvbuf is 00150520 [07:08:16]SAM_PROTO_ClearQueue [07:08:16]wFMCommunicate request_size=4 [07:08:16]MH_SAM_APDU [07:08:16]CAPDU: 80 09 00 00 [07:08:16]Write to MH i2c: E2 08 00 ED 03 80 09 00 00 00 00 00 00 62 [07:08:16]Write i2c OK [07:08:16]MH_I2C_Read... [07:08:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:08:16]Read from MH i2c: E2 [07:08:16]MH_I2C_Read... [07:08:16]Read from MH i2c: E2 03 00 [07:08:16]MH_I2C_Read... [07:08:16]Read from MH i2c: E2 03 00 ED 03 00 90 00 64 [07:08:16]RAPDU: 90 00 [07:08:16]wFMCommunicate OK [07:08:16]SAM_PROTO_ClearQueue done [07:08:16]KKMCreateOFDPacket [07:08:16]OFDProtocolAddRootSTLVToBuf [07:08:16]FM_MakeSignedData [07:08:16]FM_MakeSignedData [07:08:16]SAM_PROTO_SignData [07:08:16]wFMCommunicate request_size=4 [07:08:16]MH_SAM_APDU [07:08:16]CAPDU: 80 0D 01 02 [07:08:16]Write to MH i2c: E2 08 00 EE 03 80 0D 01 02 00 00 00 00 6A [07:08:16]Write i2c OK [07:08:16]MH_I2C_Read... [07:08:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:08:16]Read from MH i2c: E2 [07:08:16]MH_I2C_Read... [07:08:16]Read from MH i2c: E2 03 00 [07:08:16]MH_I2C_Read... [07:08:16]Read from MH i2c: E2 03 00 EE 03 00 90 00 65 [07:08:16]RAPDU: 90 00 [07:08:16]wFMCommunicate OK [07:08:16]wFMCommunicate request_size=255 [07:08:16]MH_SAM_APDU [07:08:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 60 EE A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 CE 01 00 35 04 06 00 00 [07:08:16]Write to MH i2c: E2 02 01 EF 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 60 EE A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 CE 01 00 35 04 06 00 00 00 00 6B [07:08:16]Write i2c OK [07:08:16]MH_I2C_Read... [07:08:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:16]Read from MH i2c: E2 [07:08:16]MH_I2C_Read... [07:08:16]Read from MH i2c: E2 03 00 [07:08:16]MH_I2C_Read... [07:08:16]Read from MH i2c: E2 03 00 EF 03 00 90 00 66 [07:08:16]RAPDU: 90 00 [07:08:16]wFMCommunicate OK [07:08:16]wFMCommunicate request_size=10 [07:08:16]MH_SAM_APDU [07:08:16]CAPDU: 80 0D 02 02 05 7E 55 50 85 B1 [07:08:16]Write to MH i2c: E2 0D 00 F0 03 80 0D 02 02 05 00 7E 55 50 85 B1 00 00 D0 [07:08:16]Write i2c OK [07:08:16]MH_I2C_Read... [07:08:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:16]Read from MH i2c: E2 [07:08:16]MH_I2C_Read... [07:08:16]Read from MH i2c: E2 03 00 [07:08:16]MH_I2C_Read... [07:08:16]Read from MH i2c: E2 03 00 F0 03 00 90 00 67 [07:08:16]RAPDU: 90 00 [07:08:16]wFMCommunicate OK [07:08:16]wFMCommunicate request_size=4 [07:08:16]MH_SAM_APDU [07:08:16]CAPDU: 80 0D 03 02 [07:08:16]Write to MH i2c: E2 08 00 F1 03 80 0D 03 02 00 00 00 00 6F [07:08:16]Write i2c OK [07:08:16]MH_I2C_Read... [07:08:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:08:16]Read from MH i2c: E2 [07:08:16]MH_I2C_Read... [07:08:16]Read from MH i2c: E2 0B 00 [07:08:16]MH_I2C_Read... [07:08:16]Read from MH i2c: E2 0B 00 F1 03 00 79 99 DB 9E 38 3C B4 85 90 00 A8 [07:08:16]RAPDU: 79 99 DB 9E 38 3C B4 85 90 00 [07:08:16]wFMCommunicate OK [07:08:16]SAM_PROTO_SignData done [07:08:16]FM_MakeSignedData done [07:08:16]CreateOFDProtocolMessage [07:08:16]wFMCommunicate request_size=4 [07:08:16]MH_SAM_APDU [07:08:16]CAPDU: 80 11 00 00 [07:08:16]Write to MH i2c: E2 08 00 F2 03 80 11 00 00 00 00 00 00 6F [07:08:16]Write i2c OK [07:08:16]MH_I2C_Read... [07:08:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:16]Read from MH i2c: E2 [07:08:16]MH_I2C_Read... [07:08:16]Read from MH i2c: E2 17 00 [07:08:16]MH_I2C_Read... [07:08:16]Read from MH i2c: E2 17 00 F2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CA [07:08:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:08:16]wFMCommunicate OK [07:08:16]CreateOFDProtocolMessage done [07:08:16]OFDSenderStorePacket 118361 [07:08:16]StoreOFDPacket docnum=118361 [07:08:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 00 46 07 01 EB 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 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 60 EE A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 CE 01 00 35 04 06 00 00 7E 55 50 85 B1 79 99 DB 9E 38 3C B4 85 [07:08:16]CheckFolder [07:08:16]dirname=/storage/ofd_packets [07:08:16]CheckFolder done [07:08:16]ProducePacketName [07:08:16]name=ofd_packets/00118361 [07:08:16]NVStorageSaveData ofd_packets/00118361 [07:08:16]File name is /storage/ofd_packets/00118361 [07:08:16]Write 301 bytes [07:08:16]NVStorageSaveData done [07:08:16]OFDSenderStorePacket done [07:08:16]KKMCreateOFDPacket done [07:08:16]NVStorageSaveData kkm_last_timestamp [07:08:16]File name is /storage/kkm_last_timestamp [07:08:16]Write 4 bytes [07:08:16]NVStorageSaveData done [07:08:16]OFD Sender: Processing packet 118361 [packets to send 86, broken 85] [07:08:16]ProducePacketName [07:08:16]name=ofd_packets/00118361 [07:08:16]OFD Sender: To server: pG, [07:08:16]CommunicateWithHost lk.salyk.kg:30040 [07:08:16]ConnectInit lk.salyk.kg [07:08:16]ExternCall_PrintAddStr [07:08:16]wPrintStart [07:08:16]Write to MH i2c: 01 00 00 F3 03 F6 [07:08:16]Write i2c OK [07:08:16]MH_I2C_Read... [07:08:16]Read from MH i2c: 01 [07:08:16]MH_I2C_Read... [07:08:16]Read from MH i2c: 01 07 00 [07:08:16]MH_I2C_Read... [07:08:16]Read from MH i2c: 01 07 00 F3 03 00 00 00 00 00 FF 0F 0B [07:08:16]RasterBufferAndPrint [07:08:16]line Счет N : (1)949235 [07:08:16]line ИНН: 02508201610067 [07:08:16]line Контрольно-Кассовый Чек [07:08:16]line ПРОДАЖА [07:08:16]line ТРК (МРК, ГНК) : 63 [07:08:16]line Товар: 2710124500 [07:08:16]line Аи-95-К-3 [07:08:16]line 13.480 * 74.20 [07:08:16]line = 1000.22 [07:08:16]line НДС 12% НСП 1% [07:08:16]line > о реализуемом товаре [07:08:16]line ОКРУГЛЕНИЕ: -0.22 [07:08:16]line ИТОГО: 1000.00 [07:08:16]line Внесено: 1000.00 [07:08:16]line СДАЧА: 0.00 [07:08:16]line НСП 1% : 8.85 [07:08:16]line НДС 12% : 106.22 [07:08:16]line Наличными: 1000.00 [07:08:16]line Безнал.: 0.00 [07:08:16]line Место: АЗС № 134 "Партнер Нефть" [07:08:16]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:08:16]line СНО: Общий режим [07:08:16]line Чек 30 28.07.2024 07:08 [07:08:16]line Смена: 433 ФФД: 1.0 [07:08:16]line ЗНМ: 0300000044 [07:08:16]line РНМ: 0000000000092660 [07:08:16]line Версия ККМ: 001 [07:08:16]line ФМ: 0000000000874939 [07:08:16]line ФД: 118361 [07:08:16]line ФПД: 542597219761 [07:08:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T070816&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118361&fm=542597219761&tin=02508201610067®Number=0000000000092660&sum=100000 [07:08:17]Connected sock=11 [07:08:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 00 46 07 01 EB 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 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 60 EE A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 CE 01 00 35 04 06 00 00 7E 55 50 85 B1 79 99 DB 9E 38 3C B4 85 [07:08:17]written 0, free lines is 4095 [07:08:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 18 20 47 00 72 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 CE 01 00 F4 03 04 00 F1 9B A5 66 B6 04 01 00 00 6B FF 10 40 0E 88 94 88 [07:08:17]CommunicateWithHost err = 0 [07:08:17]CheckOFDResponse [07:08:17]1017 (14) - 77093643461234 [07:08:17]1041 (16) - 0000000000874939 [07:08:17]1040 (4) - 118361 [07:08:17]1012 (4) - 28.07.2024 01:16 [07:08:17]1206 (1) - 0 [07:08:17]OFD Sender: Remove packet 118361 [07:08:17]ProducePacketName [07:08:17]name=ofd_packets/00118361 [07:08:17]NVStorageDeleteData [07:08:17]Write to MH i2c: 01 00 00 1D 04 21 [07:08:17]Write i2c OK [07:08:17]MH_I2C_Read... [07:08:17]Read from MH i2c: 01 [07:08:17]MH_I2C_Read... [07:08:17]Read from MH i2c: 01 07 00 [07:08:17]MH_I2C_Read... [07:08:17]Read from MH i2c: 01 07 00 1D 04 00 00 00 00 00 C7 0C FB [07:08:17]RasterBufferAndPrint [07:08:17]line [07:08:17]line [07:08:17]line [07:08:17]line [07:08:17]line [07:08:17]written 0, free lines is 3276 [07:08:17]MH_Cut [07:08:17]Write to MH i2c: D1 01 00 24 04 01 FA [07:08:17]Write i2c OK [07:08:17]MH_I2C_Read... [07:08:17]Read from MH i2c: D1 [07:08:17]MH_I2C_Read... [07:08:17]Read from MH i2c: D1 01 00 [07:08:17]MH_I2C_Read... [07:08:17]Read from MH i2c: D1 01 00 24 04 00 F9 [07:08:17]Write to MH i2c: 01 00 00 25 04 29 [07:08:17]Write i2c OK [07:08:17]MH_I2C_Read... [07:08:17]OFD Sender: No OFD packet to send [07:08:18]*** Cut start [07:08:18]*** Partial cut [07:08:18]*** CUTSNS_PIN = 1 [07:08:18]*** CUTSNS_PIN = 0 [07:08:18]*** Brake cut motor [07:08:19]Read from MH i2c: 01 [07:08:19]MH_I2C_Read... [07:08:19]*** Stop cut motor [07:08:19]*** Cut end [07:08:19]Read from MH i2c: 01 07 00 [07:08:19]MH_I2C_Read... [07:08:19]Read from MH i2c: 01 07 00 25 04 00 00 00 00 00 FF 0F 3E [07:08:19]process_action close_receipt done [07:08:19]requested_data is exist [07:08:19]produce_requested_data [07:08:19]requested_item fm.sn is exist - process it [07:08:19]wFMCommunicate request_size=4 [07:08:19]MH_SAM_APDU [07:08:19]CAPDU: 80 11 00 00 [07:08:19]Write to MH i2c: E2 08 00 26 04 80 11 00 00 00 00 00 00 A4 [07:08:19]Write i2c OK [07:08:19]MH_I2C_Read... [07:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:19]Read from MH i2c: E2 [07:08:19]MH_I2C_Read... [07:08:19]Read from MH i2c: E2 17 00 [07:08:19]MH_I2C_Read... [07:08:19]Read from MH i2c: E2 17 00 26 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FF [07:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:08:19]wFMCommunicate OK [07:08:19]requested_item fd.num is exist - process it [07:08:19]SAM_PROTO_GetFieldsCounters [07:08:19]wFMCommunicate request_size=4 [07:08:19]MH_SAM_APDU [07:08:19]CAPDU: 80 13 00 00 [07:08:19]Write to MH i2c: E2 08 00 27 04 80 13 00 00 00 00 00 00 A7 [07:08:19]Write i2c OK [07:08:19]MH_I2C_Read... [07:08:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:08:19]Read from MH i2c: E2 [07:08:19]MH_I2C_Read... [07:08:19]Read from MH i2c: E2 62 00 [07:08:19]MH_I2C_Read... [07:08:19]Read from MH i2c: E2 62 00 27 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 59 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [07: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 59 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:08:19]wFMCommunicate OK [07:08:19]SAM_PROTO_GetFieldsCounters done [07:08:19]requested_item shift.num is exist - process it [07:08:19]requested_item shift.opened is exist - process it [07:08:19]req_shift_opened [07:08:19]FM_GetShiftState [07:08:19]SAM_PROTO_GetShiftState [07:08:19]wFMCommunicate request_size=4 [07:08:19]MH_SAM_APDU [07:08:19]CAPDU: 80 13 01 00 [07:08:19]Write to MH i2c: E2 08 00 28 04 80 13 01 00 00 00 00 00 A9 [07:08:19]Write i2c OK [07:08:19]MH_I2C_Read... [07:08:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:19]Read from MH i2c: E2 [07:08:19]MH_I2C_Read... [07:08:19]Read from MH i2c: E2 0E 00 [07:08:19]MH_I2C_Read... [07:08:19]Read from MH i2c: E2 0E 00 28 04 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 80 [07:08:19]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:08:19]wFMCommunicate OK [07:08:19]SAM_PROTO_GetShiftState done [07:08:19]FM_GetShiftState done [07:08:19]req_shift_opened done [07:08:19]requested_item shift.open_date is exist - process it [07:08:19]req_shift_open_date [07:08:19]req_shift_open_date done [07:08:19]produce_requested_data done [07:08:19]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118361,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [07:08:19]process_action_free close_receipt [07:08:19]json_value_free [07:08:19]json_value_free done [07:08:19]process_json_proto returns [07:08:19]Send response to host [07:08:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118361,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [07:08:19]free response buf [07:08:19]execute_script done [07:08:19]execute_script returns [07:08:19]free content buf [07:08:19]Sock 7.Close socket [07:08:19]Sock 7.Thread stoped [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:21]accept exits with 9 [07:16:21]New connection [07:16:21]New thread 3067067748 created [07:16:21]Thread 3066924388 joined [07:16:21]Waiting for new connection... [07:16:21] Sock 9.Parse request [07:16:21]Sock 9.Check first char [07:16:21]Sock 9.First char is OK [07:16:21]request: POST /json_proto HTTP/1.0 [07:16:21]Method: POST [07:16:21]URL: /json_proto [07:16:21]Method is POST - this is cgi request [07:16:21]url: /json_proto [07:16:21]query_string will be loaded in cgi processing [07:16:21]execute_cgi json_proto POST (null) [07:16:21]execute_cgi path=json_proto method=POST [07:16:21]POST find Content-Length [07:16:21]Host: 172.17.45.7:8080 [07:16:21]Content-Length: 819 [07:16:21]Content-Type: application/json [07:16:21] [07:16:21]POST finish read [07:16:21]Found Content-Length = 819 [07:16:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:16:21]execute_script... [07:16: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)949237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:16:21]POST & json_proto [07:16:21]process_json_proto [07:16:21]json parsed OK: [07:16:21]protocol is kg_v1.0 [07:16:21]action value=close_receipt [07:16:21]process_action close_receipt [07:16:21]cmd_close_receipt [07:16:21]MH_GetDate [07:16:21]Write to MH i2c: F0 00 00 29 04 1C [07:16:21]Write i2c OK [07:16:21]MH_I2C_Read... [07:16:21]Read from MH i2c: F0 [07:16:21]MH_I2C_Read... [07:16:21]Read from MH i2c: F0 09 00 [07:16:21]MH_I2C_Read... [07:16:21]Read from MH i2c: F0 09 00 29 04 00 47 F0 A5 66 90 0F 3E 66 AA [07:16:21]GetLastDocTimeStamp 1722150496 [07:16:21]current date 1722150983 [07:16:21]FM_GetShiftState [07:16:21]SAM_PROTO_GetShiftState [07:16:21]wFMCommunicate request_size=4 [07:16:21]MH_SAM_APDU [07:16:21]CAPDU: 80 13 01 00 [07:16:21]Write to MH i2c: E2 08 00 2A 04 80 13 01 00 00 00 00 00 AB [07:16:21]Write i2c OK [07:16:21]MH_I2C_Read... [07:16:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:21]Read from MH i2c: E2 [07:16:21]MH_I2C_Read... [07:16:21]Read from MH i2c: E2 0E 00 [07:16:21]MH_I2C_Read... [07:16:21]Read from MH i2c: E2 0E 00 2A 04 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 82 [07:16:21]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:16:21]wFMCommunicate OK [07:16:21]SAM_PROTO_GetShiftState done [07:16:21]FM_GetShiftState done [07:16:21]opened in 1722125364 [07:16:21]opened+sec_in_day 1722211764 [07:16:21]quantity*price = 200025 [07:16:21]sum+1 = 200026 [07:16:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 31 28.07.2024 07:16 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118362 ФПД: 1924857472730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T071623&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118362&fm=1924857472730&tin=02508201610067®Number=0000000000092660&sum=200000 [07:16:23]StoreToDocumentArchive [07:16:23]shift 433 fd 118362 [07:16:23]save to /storage/0433/doc_00118362 [07:16:23]save last doc name /storage/0433/doc_00118362 to /storage/kkm_last_doc_name [07:16:23]save OK [07:16:23]Clear old archive folders... [07:16:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:16:23]tlvbuf is 00152120 [07:16:23]SAM_PROTO_ClearQueue [07:16:23]wFMCommunicate request_size=4 [07:16:23]MH_SAM_APDU [07:16:23]CAPDU: 80 09 00 00 [07:16:23]Write to MH i2c: E2 08 00 37 04 80 09 00 00 00 00 00 00 AD [07:16:23]Write i2c OK [07:16:23]MH_I2C_Read... [07:16:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:16:23]Read from MH i2c: E2 [07:16:23]MH_I2C_Read... [07:16:23]Read from MH i2c: E2 03 00 [07:16:23]MH_I2C_Read... [07:16:23]Read from MH i2c: E2 03 00 37 04 00 90 00 AF [07:16:23]RAPDU: 90 00 [07:16:23]wFMCommunicate OK [07:16:23]SAM_PROTO_ClearQueue done [07:16:23]KKMCreateOFDPacket [07:16:23]OFDProtocolAddRootSTLVToBuf [07:16:23]FM_MakeSignedData [07:16:23]FM_MakeSignedData [07:16:23]SAM_PROTO_SignData [07:16:23]wFMCommunicate request_size=4 [07:16:23]MH_SAM_APDU [07:16:23]CAPDU: 80 0D 01 02 [07:16:23]Write to MH i2c: E2 08 00 38 04 80 0D 01 02 00 00 00 00 B5 [07:16:23]Write i2c OK [07:16:23]MH_I2C_Read... [07:16:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:16:23]Read from MH i2c: E2 [07:16:23]MH_I2C_Read... [07:16:23]Read from MH i2c: E2 03 00 [07:16:23]MH_I2C_Read... [07:16:23]Read from MH i2c: E2 03 00 38 04 00 90 00 B0 [07:16:23]RAPDU: 90 00 [07:16:23]wFMCommunicate OK [07:16:23]wFMCommunicate request_size=255 [07:16:23]MH_SAM_APDU [07:16:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 47 F0 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5A CE 01 00 35 04 06 00 01 C0 2A 72 [07:16:23]Write to MH i2c: E2 02 01 39 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 47 F0 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5A CE 01 00 35 04 06 00 01 C0 2A 72 00 00 CC [07:16:23]Write i2c OK [07:16:23]MH_I2C_Read... [07:16:23]OFD Sender: No OFD packet to send [07:16:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:23]Read from MH i2c: E2 [07:16:23]MH_I2C_Read... [07:16:23]Read from MH i2c: E2 03 00 [07:16:23]MH_I2C_Read... [07:16:23]Read from MH i2c: E2 03 00 39 04 00 90 00 B1 [07:16:23]RAPDU: 90 00 [07:16:23]wFMCommunicate OK [07:16:23]wFMCommunicate request_size=7 [07:16:23]MH_SAM_APDU [07:16:23]CAPDU: 80 0D 02 02 02 26 DA [07:16:23]Write to MH i2c: E2 0A 00 3A 04 80 0D 02 02 02 00 26 DA 00 00 BC [07:16:23]Write i2c OK [07:16:23]MH_I2C_Read... [07:16:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:23]Read from MH i2c: E2 [07:16:23]MH_I2C_Read... [07:16:23]Read from MH i2c: E2 03 00 [07:16:23]MH_I2C_Read... [07:16:23]Read from MH i2c: E2 03 00 3A 04 00 90 00 B2 [07:16:23]RAPDU: 90 00 [07:16:23]wFMCommunicate OK [07:16:23]wFMCommunicate request_size=4 [07:16:23]MH_SAM_APDU [07:16:23]CAPDU: 80 0D 03 02 [07:16:23]Write to MH i2c: E2 08 00 3B 04 80 0D 03 02 00 00 00 00 BA [07:16:23]Write i2c OK [07:16:23]MH_I2C_Read... [07:16:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:16:23]Read from MH i2c: E2 [07:16:23]MH_I2C_Read... [07:16:23]Read from MH i2c: E2 0B 00 [07:16:23]MH_I2C_Read... [07:16:23]Read from MH i2c: E2 0B 00 3B 04 00 80 E3 6C FC 93 A5 78 75 90 00 AB [07:16:23]RAPDU: 80 E3 6C FC 93 A5 78 75 90 00 [07:16:23]wFMCommunicate OK [07:16:23]SAM_PROTO_SignData done [07:16:23]FM_MakeSignedData done [07:16:23]CreateOFDProtocolMessage [07:16:23]wFMCommunicate request_size=4 [07:16:23]MH_SAM_APDU [07:16:23]CAPDU: 80 11 00 00 [07:16:23]Write to MH i2c: E2 08 00 3C 04 80 11 00 00 00 00 00 00 BA [07:16:23]Write i2c OK [07:16:23]MH_I2C_Read... [07:16:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:23]Read from MH i2c: E2 [07:16:23]MH_I2C_Read... [07:16:23]Read from MH i2c: E2 17 00 [07:16:23]MH_I2C_Read... [07:16:23]Read from MH i2c: E2 17 00 3C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 15 [07:16:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:16:23]wFMCommunicate OK [07:16:23]CreateOFDProtocolMessage done [07:16:23]OFDSenderStorePacket 118362 [07:16:23]StoreOFDPacket docnum=118362 [07:16:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C9 68 04 01 F6 07 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 47 F0 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5A CE 01 00 35 04 06 00 01 C0 2A 72 26 DA 80 E3 6C FC 93 A5 78 75 [07:16:23]CheckFolder [07:16:23]dirname=/storage/ofd_packets [07:16:23]CheckFolder done [07:16:23]ProducePacketName [07:16:23]name=ofd_packets/00118362 [07:16:23]NVStorageSaveData ofd_packets/00118362 [07:16:23]File name is /storage/ofd_packets/00118362 [07:16:23]Write 298 bytes [07:16:23]NVStorageSaveData done [07:16:23]OFDSenderStorePacket done [07:16:23]KKMCreateOFDPacket done [07:16:23]NVStorageSaveData kkm_last_timestamp [07:16:23]File name is /storage/kkm_last_timestamp [07:16:23]Write 4 bytes [07:16:23]NVStorageSaveData done [07:16:23]ExternCall_PrintAddStr [07:16:23]wPrintStart [07:16:23]Write to MH i2c: 01 00 00 3D 04 41 [07:16:23]Write i2c OK [07:16:23]MH_I2C_Read... [07:16:23]Read from MH i2c: 01 [07:16:23]MH_I2C_Read... [07:16:23]Read from MH i2c: 01 07 00 [07:16:23]MH_I2C_Read... [07:16:23]Read from MH i2c: 01 07 00 3D 04 00 00 00 00 00 FF 0F 56 [07:16:23]RasterBufferAndPrint [07:16:23]line Счет N : (1)949237 [07:16:23]line ИНН: 02508201610067 [07:16:23]line Контрольно-Кассовый Чек [07:16:23]line ПРОДАЖА [07:16:23]line ТРК (МРК, ГНК) : 34 [07:16:23]line Товар: 2710194800 [07:16:23]line ДТ-К-5 [07:16:23]line 26.250 * 76.20 [07:16:23]line = 2000.25 [07:16:23]line НДС 12% НСП 1% [07:16:23]line > о реализуемом товаре [07:16:23]line ОКРУГЛЕНИЕ: -0.25 [07:16:23]line ИТОГО: 2000.00 [07:16:23]line НСП 1% : 17.70 [07:16:23]line НДС 12% : 212.42 [07:16:23]line Наличными: 0.00 [07:16:23]line Безнал.: 2000.00 [07:16:23]line Место: АЗС № 134 "Партнер Нефть" [07:16:23]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:16:23]line СНО: Общий режим [07:16:23]line Чек 31 28.07.2024 07:16 [07:16:23]line Смена: 433 ФФД: 1.0 [07:16:23]line ЗНМ: 0300000044 [07:16:23]line РНМ: 0000000000092660 [07:16:23]line Версия ККМ: 001 [07:16:23]line Платежная система: O! деньги [07:16:23]line ФМ: 0000000000874939 [07:16:23]line ФД: 118362 [07:16:23]line ФПД: 1924857472730 [07:16:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T071623&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118362&fm=1924857472730&tin=02508201610067®Number=0000000000092660&sum=200000 [07:16:23]written 0, free lines is 4095 [07:16:23]OFD Sender: Processing packet 118362 [packets to send 86, broken 85] [07:16:23]ProducePacketName [07:16:23]name=ofd_packets/00118362 [07:16:23]OFD Sender: To server: pG, [07:16:23]CommunicateWithHost lk.salyk.kg:30040 [07:16:23]ConnectInit lk.salyk.kg [07:16:24]Connected sock=10 [07:16:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C9 68 04 01 F6 07 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 47 F0 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5A CE 01 00 35 04 06 00 01 C0 2A 72 26 DA 80 E3 6C FC 93 A5 78 75 [07:16:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 67 72 47 00 3D 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5A CE 01 00 F4 03 04 00 D8 9D A5 66 B6 04 01 00 00 6C E8 93 AC 87 01 47 6E [07:16:24]CommunicateWithHost err = 0 [07:16:24]CheckOFDResponse [07:16:24]1017 (14) - 77093643461234 [07:16:24]1041 (16) - 0000000000874939 [07:16:24]1040 (4) - 118362 [07:16:24]1012 (4) - 28.07.2024 01:24 [07:16:24]1206 (1) - 0 [07:16:24]OFD Sender: Remove packet 118362 [07:16:24]ProducePacketName [07:16:24]name=ofd_packets/00118362 [07:16:24]NVStorageDeleteData [07:16:24]Write to MH i2c: 01 00 00 67 04 6B [07:16:24]Write i2c OK [07:16:24]MH_I2C_Read... [07:16:24]Read from MH i2c: 01 [07:16:24]MH_I2C_Read... [07:16:24]Read from MH i2c: 01 07 00 [07:16:24]MH_I2C_Read... [07:16:24]Read from MH i2c: 01 07 00 67 04 00 00 00 00 00 D8 0C 56 [07:16:24]RasterBufferAndPrint [07:16:24]line [07:16:24]line [07:16:24]line [07:16:24]line [07:16:24]line [07:16:24]written 0, free lines is 3295 [07:16:24]MH_Cut [07:16:24]Write to MH i2c: D1 01 00 6E 04 01 44 [07:16:24]Write i2c OK [07:16:24]MH_I2C_Read... [07:16:24]Read from MH i2c: D1 [07:16:24]MH_I2C_Read... [07:16:24]Read from MH i2c: D1 01 00 [07:16:24]MH_I2C_Read... [07:16:24]Read from MH i2c: D1 01 00 6E 04 00 43 [07:16:24]Write to MH i2c: 01 00 00 6F 04 73 [07:16:24]Write i2c OK [07:16:24]MH_I2C_Read... [07:16:24]OFD Sender: No OFD packet to send [07:16:25]*** Cut start [07:16:25]*** Partial cut [07:16:25]*** CUTSNS_PIN = 1 [07:16:25]*** CUTSNS_PIN = 0 [07:16:25]*** Brake cut motor [07:16:25]Read from MH i2c: 01 [07:16:25]MH_I2C_Read... [07:16:25]*** Stop cut motor [07:16:25]*** Cut end [07:16:25]Read from MH i2c: 01 07 00 [07:16:25]MH_I2C_Read... [07:16:25]Read from MH i2c: 01 07 00 6F 04 00 00 00 00 00 FF 0F 88 [07:16:25]process_action close_receipt done [07:16:25]requested_data is exist [07:16:25]produce_requested_data [07:16:25]requested_item fm.sn is exist - process it [07:16:25]wFMCommunicate request_size=4 [07:16:25]MH_SAM_APDU [07:16:25]CAPDU: 80 11 00 00 [07:16:25]Write to MH i2c: E2 08 00 70 04 80 11 00 00 00 00 00 00 EE [07:16:25]Write i2c OK [07:16:25]MH_I2C_Read... [07:16:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:25]Read from MH i2c: E2 [07:16:25]MH_I2C_Read... [07:16:25]Read from MH i2c: E2 17 00 [07:16:25]MH_I2C_Read... [07:16:25]Read from MH i2c: E2 17 00 70 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 49 [07:16:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:16:25]wFMCommunicate OK [07:16:25]requested_item fd.num is exist - process it [07:16:25]SAM_PROTO_GetFieldsCounters [07:16:25]wFMCommunicate request_size=4 [07:16:25]MH_SAM_APDU [07:16:25]CAPDU: 80 13 00 00 [07:16:25]Write to MH i2c: E2 08 00 71 04 80 13 00 00 00 00 00 00 F1 [07:16:25]Write i2c OK [07:16:25]MH_I2C_Read... [07:16:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:16:25]Read from MH i2c: E2 [07:16:25]MH_I2C_Read... [07:16:25]Read from MH i2c: E2 62 00 [07:16:25]MH_I2C_Read... [07:16:25]Read from MH i2c: E2 62 00 71 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5A CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [07:16:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5A CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:16:25]wFMCommunicate OK [07:16:25]SAM_PROTO_GetFieldsCounters done [07:16:25]requested_item shift.num is exist - process it [07:16:25]requested_item shift.opened is exist - process it [07:16:25]req_shift_opened [07:16:25]FM_GetShiftState [07:16:25]SAM_PROTO_GetShiftState [07:16:25]wFMCommunicate request_size=4 [07:16:25]MH_SAM_APDU [07:16:25]CAPDU: 80 13 01 00 [07:16:25]Write to MH i2c: E2 08 00 72 04 80 13 01 00 00 00 00 00 F3 [07:16:25]Write i2c OK [07:16:25]MH_I2C_Read... [07:16:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:26]Read from MH i2c: E2 [07:16:26]MH_I2C_Read... [07:16:26]Read from MH i2c: E2 0E 00 [07:16:26]MH_I2C_Read... [07:16:26]Read from MH i2c: E2 0E 00 72 04 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 CA [07:16:26]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:16:26]wFMCommunicate OK [07:16:26]SAM_PROTO_GetShiftState done [07:16:26]FM_GetShiftState done [07:16:26]req_shift_opened done [07:16:26]requested_item shift.open_date is exist - process it [07:16:26]req_shift_open_date [07:16:26]req_shift_open_date done [07:16:26]produce_requested_data done [07:16:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118362,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [07:16:26]process_action_free close_receipt [07:16:26]json_value_free [07:16:26]json_value_free done [07:16:26]process_json_proto returns [07:16:26]Send response to host [07:16:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118362,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [07:16:26]free response buf [07:16:26]execute_script done [07:16:26]execute_script returns [07:16:26]free content buf [07:16:26]Sock 9.Close socket [07:16:26]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [07:17:24]OFD Sender: No OFD packet to send [07:17:29]OFD Sender: No OFD packet to send [07:17:34]OFD Sender: No OFD packet to send [07:17:37]accept exits with 7 [07:17:37]New connection [07:17:37]New thread 3066924388 created [07:17:37]Thread 3067067748 joined [07:17:37]Waiting for new connection... [07:17:37] Sock 7.Parse request [07:17:37]Sock 7.Check first char [07:17:37]Sock 7.First char is OK [07:17:37]request: POST /json_proto HTTP/1.0 [07:17:37]Method: POST [07:17:37]URL: /json_proto [07:17:37]Method is POST - this is cgi request [07:17:37]url: /json_proto [07:17:37]query_string will be loaded in cgi processing [07:17:37]execute_cgi json_proto POST (null) [07:17:37]execute_cgi path=json_proto method=POST [07:17:37]POST find Content-Length [07:17:37]Host: 172.17.45.7:8080 [07:17:37]Content-Length: 835 [07:17:37]Content-Type: application/json [07:17:37] [07:17:37]POST finish read [07:17:37]Found Content-Length = 835 [07:17:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 72.820, "sum" : 5500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 5500.00, "payments": [ { "type": 1, "sum" : 5500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:17:37]execute_script... [07:17: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)949236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 72.820, "sum" : 5500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 5500.00, "payments": [ { "type": 1, "sum" : 5500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:17:37]POST & json_proto [07:17:37]process_json_proto [07:17:37]json parsed OK: [07:17:37]protocol is kg_v1.0 [07:17:37]action value=close_receipt [07:17:37]process_action close_receipt [07:17:37]cmd_close_receipt [07:17:37]MH_GetDate [07:17:37]Write to MH i2c: F0 00 00 73 04 66 [07:17:37]Write i2c OK [07:17:37]MH_I2C_Read... [07:17:37]Read from MH i2c: F0 [07:17:37]MH_I2C_Read... [07:17:37]Read from MH i2c: F0 09 00 [07:17:37]MH_I2C_Read... [07:17:37]Read from MH i2c: F0 09 00 73 04 00 93 F0 A5 66 90 0F 3E 66 40 [07:17:37]GetLastDocTimeStamp 1722150983 [07:17:37]current date 1722151059 [07:17:37]FM_GetShiftState [07:17:37]SAM_PROTO_GetShiftState [07:17:37]wFMCommunicate request_size=4 [07:17:37]MH_SAM_APDU [07:17:37]CAPDU: 80 13 01 00 [07:17:37]Write to MH i2c: E2 08 00 74 04 80 13 01 00 00 00 00 00 F5 [07:17:37]Write i2c OK [07:17:37]MH_I2C_Read... [07:17:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:37]Read from MH i2c: E2 [07:17:37]MH_I2C_Read... [07:17:37]Read from MH i2c: E2 0E 00 [07:17:37]MH_I2C_Read... [07:17:37]Read from MH i2c: E2 0E 00 74 04 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 CC [07:17:37]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:17:37]wFMCommunicate OK [07:17:37]SAM_PROTO_GetShiftState done [07:17:37]FM_GetShiftState done [07:17:37]opened in 1722125364 [07:17:37]opened+sec_in_day 1722211764 [07:17:37]quantity*price = 550009 [07:17:37]sum+1 = 550010 [07:17:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 5500.00 НСП 1% : 48.67 НДС 12% : 584.08 Наличными: 0.00 Безнал.: 5500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 32 28.07.2024 07:17 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 118363 ФПД: 124932567632325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T071739&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118363&fm=124932567632325&tin=02508201610067®Number=0000000000092660&sum=550000 [07:17:38]StoreToDocumentArchive [07:17:38]shift 433 fd 118363 [07:17:38]save to /storage/0433/doc_00118363 [07:17:38]save last doc name /storage/0433/doc_00118363 to /storage/kkm_last_doc_name [07:17:38]save OK [07:17:38]Clear old archive folders... [07:17:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:17:38]tlvbuf is 001530A0 [07:17:38]SAM_PROTO_ClearQueue [07:17:38]wFMCommunicate request_size=4 [07:17:38]MH_SAM_APDU [07:17:38]CAPDU: 80 09 00 00 [07:17:38]Write to MH i2c: E2 08 00 81 04 80 09 00 00 00 00 00 00 F7 [07:17:38]Write i2c OK [07:17:38]MH_I2C_Read... [07:17:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:17:38]Read from MH i2c: E2 [07:17:38]MH_I2C_Read... [07:17:38]Read from MH i2c: E2 03 00 [07:17:38]MH_I2C_Read... [07:17:38]Read from MH i2c: E2 03 00 81 04 00 90 00 F9 [07:17:38]RAPDU: 90 00 [07:17:38]wFMCommunicate OK [07:17:38]SAM_PROTO_ClearQueue done [07:17:38]KKMCreateOFDPacket [07:17:38]OFDProtocolAddRootSTLVToBuf [07:17:38]FM_MakeSignedData [07:17:38]FM_MakeSignedData [07:17:38]SAM_PROTO_SignData [07:17:38]wFMCommunicate request_size=4 [07:17:38]MH_SAM_APDU [07:17:38]CAPDU: 80 0D 01 02 [07:17:38]Write to MH i2c: E2 08 00 82 04 80 0D 01 02 00 00 00 00 FF [07:17:38]Write i2c OK [07:17:38]MH_I2C_Read... [07:17:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:17:38]Read from MH i2c: E2 [07:17:38]MH_I2C_Read... [07:17:38]Read from MH i2c: E2 03 00 [07:17:38]MH_I2C_Read... [07:17:38]Read from MH i2c: E2 03 00 82 04 00 90 00 FA [07:17:38]RAPDU: 90 00 [07:17:38]wFMCommunicate OK [07:17:38]wFMCommunicate request_size=255 [07:17:38]MH_SAM_APDU [07:17:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 1C 01 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 79 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 93 F0 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5B CE 01 00 35 04 06 00 71 A0 21 50 [07:17:38]Write to MH i2c: E2 02 01 83 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 1C 01 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 79 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 93 F0 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5B CE 01 00 35 04 06 00 71 A0 21 50 00 00 61 [07:17:38]Write i2c OK [07:17:38]MH_I2C_Read... [07:17:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:39]Read from MH i2c: E2 [07:17:39]MH_I2C_Read... [07:17:39]Read from MH i2c: E2 03 00 [07:17:39]MH_I2C_Read... [07:17:39]Read from MH i2c: E2 03 00 83 04 00 90 00 FB [07:17:39]RAPDU: 90 00 [07:17:39]wFMCommunicate OK [07:17:39]wFMCommunicate request_size=7 [07:17:39]MH_SAM_APDU [07:17:39]CAPDU: 80 0D 02 02 02 89 C5 [07:17:39]Write to MH i2c: E2 0A 00 84 04 80 0D 02 02 02 00 89 C5 00 00 54 [07:17:39]Write i2c OK [07:17:39]MH_I2C_Read... [07:17:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:39]Read from MH i2c: E2 [07:17:39]MH_I2C_Read... [07:17:39]Read from MH i2c: E2 03 00 [07:17:39]MH_I2C_Read... [07:17:39]Read from MH i2c: E2 03 00 84 04 00 90 00 FC [07:17:39]RAPDU: 90 00 [07:17:39]wFMCommunicate OK [07:17:39]wFMCommunicate request_size=4 [07:17:39]MH_SAM_APDU [07:17:39]CAPDU: 80 0D 03 02 [07:17:39]Write to MH i2c: E2 08 00 85 04 80 0D 03 02 00 00 00 00 04 [07:17:39]Write i2c OK [07:17:39]MH_I2C_Read... [07:17:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:17:39]Read from MH i2c: E2 [07:17:39]MH_I2C_Read... [07:17:39]Read from MH i2c: E2 0B 00 [07:17:39]MH_I2C_Read... [07:17:39]Read from MH i2c: E2 0B 00 85 04 00 8F 91 67 5A 1F 74 C0 A9 90 00 E2 [07:17:39]RAPDU: 8F 91 67 5A 1F 74 C0 A9 90 00 [07:17:39]wFMCommunicate OK [07:17:39]SAM_PROTO_SignData done [07:17:39]FM_MakeSignedData done [07:17:39]CreateOFDProtocolMessage [07:17:39]wFMCommunicate request_size=4 [07:17:39]MH_SAM_APDU [07:17:39]CAPDU: 80 11 00 00 [07:17:39]Write to MH i2c: E2 08 00 86 04 80 11 00 00 00 00 00 00 04 [07:17:39]Write i2c OK [07:17:39]MH_I2C_Read... [07:17:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:39]Read from MH i2c: E2 [07:17:39]MH_I2C_Read... [07:17:39]Read from MH i2c: E2 17 00 [07:17:39]MH_I2C_Read... [07:17:39]Read from MH i2c: E2 17 00 86 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5F [07:17:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:17:39]wFMCommunicate OK [07:17:39]CreateOFDProtocolMessage done [07:17:39]OFDSenderStorePacket 118363 [07:17:39]StoreOFDPacket docnum=118363 [07:17:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E2 0B 04 01 40 E2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 1C 01 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 79 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 93 F0 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5B CE 01 00 35 04 06 00 71 A0 21 50 89 C5 8F 91 67 5A 1F 74 C0 A9 [07:17:39]CheckFolder [07:17:39]dirname=/storage/ofd_packets [07:17:39]CheckFolder done [07:17:39]ProducePacketName [07:17:39]name=ofd_packets/00118363 [07:17:39]NVStorageSaveData ofd_packets/00118363 [07:17:39]File name is /storage/ofd_packets/00118363 [07:17:39]Write 298 bytes [07:17:39]NVStorageSaveData done [07:17:39]OFDSenderStorePacket done [07:17:39]KKMCreateOFDPacket done [07:17:39]NVStorageSaveData kkm_last_timestamp [07:17:39]File name is /storage/kkm_last_timestamp [07:17:39]Write 4 bytes [07:17:39]NVStorageSaveData done [07:17:39]ExternCall_PrintAddStr [07:17:39]wPrintStart [07:17:39]Write to MH i2c: 01 00 00 87 04 8B [07:17:39]Write i2c OK [07:17:39]MH_I2C_Read... [07:17:39]Read from MH i2c: 01 [07:17:39]MH_I2C_Read... [07:17:39]Read from MH i2c: 01 07 00 [07:17:39]MH_I2C_Read... [07:17:39]Read from MH i2c: 01 07 00 87 04 00 00 00 00 00 FF 0F A0 [07:17:39]RasterBufferAndPrint [07:17:39]line Счет N : (1)949236 [07:17:39]line ИНН: 02508201610067 [07:17:39]line Контрольно-Кассовый Чек [07:17:39]line ПРОДАЖА [07:17:39]line ТРК (МРК, ГНК) : 11 [07:17:39]line Товар: 2710194800 [07:17:39]line ДТ-К-5 [07:17:39]line 72.820 * 75.53 [07:17:39]line = 5500.09 [07:17:39]line НДС 12% НСП 1% [07:17:39]line > о реализуемом товаре [07:17:39]line ОКРУГЛЕНИЕ: -0.09 [07:17:39]line ИТОГО: 5500.00 [07:17:39]line НСП 1% : 48.67 [07:17:39]line НДС 12% : 584.08 [07:17:39]line Наличными: 0.00 [07:17:39]line Безнал.: 5500.00 [07:17:39]line Место: АЗС № 134 "Партнер Нефть" [07:17:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:17:39]line СНО: Общий режим [07:17:39]line Чек 32 28.07.2024 07:17 [07:17:39]line Смена: 433 ФФД: 1.0 [07:17:39]line ЗНМ: 0300000044 [07:17:39]line РНМ: 0000000000092660 [07:17:39]line Версия ККМ: 001 [07:17:39]line Платежная система: Бакай Банк [07:17:39]line ФМ: 0000000000874939 [07:17:39]line ФД: 118363 [07:17:39]line ФПД: 124932567632325 [07:17:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T071739&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118363&fm=124932567632325&tin=02508201610067®Number=0000000000092660&sum=550000 [07:17:39]OFD Sender: Processing packet 118363 [packets to send 86, broken 85] [07:17:39]ProducePacketName [07:17:39]name=ofd_packets/00118363 [07:17:39]OFD Sender: To server: pG, [07:17:39]CommunicateWithHost lk.salyk.kg:30040 [07:17:39]ConnectInit lk.salyk.kg [07:17:39]written 0, free lines is 4095 [07:17:39]Connected sock=11 [07:17: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 39 33 39 0C 01 00 00 E2 0B 04 01 40 E2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 1C 01 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 79 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 93 F0 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5B CE 01 00 35 04 06 00 71 A0 21 50 89 C5 8F 91 67 5A 1F 74 C0 A9 [07:17:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 45 74 47 00 FD 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 39 33 39 10 04 04 00 5B CE 01 00 F4 03 04 00 24 9E A5 66 B6 04 01 00 00 39 E0 85 63 38 E2 74 A7 [07:17:40]CommunicateWithHost err = 0 [07:17:40]CheckOFDResponse [07:17:40]1017 (14) - 77093643461234 [07:17:40]1041 (16) - 0000000000874939 [07:17:40]1040 (4) - 118363 [07:17:40]1012 (4) - 28.07.2024 01:25 [07:17:40]1206 (1) - 0 [07:17:40]OFD Sender: Remove packet 118363 [07:17:40]ProducePacketName [07:17:40]name=ofd_packets/00118363 [07:17:40]NVStorageDeleteData [07:17:40]Write to MH i2c: 01 00 00 B1 04 B5 [07:17:40]Write i2c OK [07:17:40]MH_I2C_Read... [07:17:40]Read from MH i2c: 01 [07:17:40]MH_I2C_Read... [07:17:40]Read from MH i2c: 01 07 00 [07:17:40]MH_I2C_Read... [07:17:40]Read from MH i2c: 01 07 00 B1 04 00 00 00 00 00 E6 0C AE [07:17:40]RasterBufferAndPrint [07:17:40]line [07:17:40]line [07:17:40]line [07:17:40]line [07:17:40]line [07:17:40]written 0, free lines is 3306 [07:17:40]MH_Cut [07:17:40]Write to MH i2c: D1 01 00 B8 04 01 8E [07:17:40]Write i2c OK [07:17:40]MH_I2C_Read... [07:17:40]Read from MH i2c: D1 [07:17:40]MH_I2C_Read... [07:17:40]Read from MH i2c: D1 01 00 [07:17:40]MH_I2C_Read... [07:17:40]Read from MH i2c: D1 01 00 B8 04 00 8D [07:17:40]Write to MH i2c: 01 00 00 B9 04 BD [07:17:40]Write i2c OK [07:17:40]MH_I2C_Read... [07:17:40]OFD Sender: No OFD packet to send [07:17:40]*** Cut start [07:17:40]*** Partial cut [07:17:40]*** CUTSNS_PIN = 1 [07:17:40]*** CUTSNS_PIN = 0 [07:17:41]*** Brake cut motor [07:17:41]Read from MH i2c: 01 [07:17:41]MH_I2C_Read... [07:17:41]*** Stop cut motor [07:17:41]*** Cut end [07:17:41]Read from MH i2c: 01 07 00 [07:17:41]MH_I2C_Read... [07:17:41]Read from MH i2c: 01 07 00 B9 04 00 00 00 00 00 FF 0F D2 [07:17:41]process_action close_receipt done [07:17:41]requested_data is exist [07:17:41]produce_requested_data [07:17:41]requested_item fm.sn is exist - process it [07:17:41]wFMCommunicate request_size=4 [07:17:41]MH_SAM_APDU [07:17:41]CAPDU: 80 11 00 00 [07:17:41]Write to MH i2c: E2 08 00 BA 04 80 11 00 00 00 00 00 00 38 [07:17:41]Write i2c OK [07:17:41]MH_I2C_Read... [07:17:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:41]Read from MH i2c: E2 [07:17:41]MH_I2C_Read... [07:17:41]Read from MH i2c: E2 17 00 [07:17:41]MH_I2C_Read... [07:17:41]Read from MH i2c: E2 17 00 BA 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 93 [07:17:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:17:41]wFMCommunicate OK [07:17:41]requested_item fd.num is exist - process it [07:17:41]SAM_PROTO_GetFieldsCounters [07:17:41]wFMCommunicate request_size=4 [07:17:41]MH_SAM_APDU [07:17:41]CAPDU: 80 13 00 00 [07:17:41]Write to MH i2c: E2 08 00 BB 04 80 13 00 00 00 00 00 00 3B [07:17:41]Write i2c OK [07:17:41]MH_I2C_Read... [07:17:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:17:41]Read from MH i2c: E2 [07:17:41]MH_I2C_Read... [07:17:41]Read from MH i2c: E2 62 00 [07:17:41]MH_I2C_Read... [07:17:41]Read from MH i2c: E2 62 00 BB 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5B CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [07:17:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5B CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:17:41]wFMCommunicate OK [07:17:41]SAM_PROTO_GetFieldsCounters done [07:17:41]requested_item shift.num is exist - process it [07:17:41]requested_item shift.opened is exist - process it [07:17:41]req_shift_opened [07:17:41]FM_GetShiftState [07:17:41]SAM_PROTO_GetShiftState [07:17:41]wFMCommunicate request_size=4 [07:17:41]MH_SAM_APDU [07:17:41]CAPDU: 80 13 01 00 [07:17:41]Write to MH i2c: E2 08 00 BC 04 80 13 01 00 00 00 00 00 3D [07:17:41]Write i2c OK [07:17:41]MH_I2C_Read... [07:17:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:41]Read from MH i2c: E2 [07:17:41]MH_I2C_Read... [07:17:41]Read from MH i2c: E2 0E 00 [07:17:41]MH_I2C_Read... [07:17:41]Read from MH i2c: E2 0E 00 BC 04 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 14 [07:17:41]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:17:41]wFMCommunicate OK [07:17:41]SAM_PROTO_GetShiftState done [07:17:41]FM_GetShiftState done [07:17:41]req_shift_opened done [07:17:41]requested_item shift.open_date is exist - process it [07:17:41]req_shift_open_date [07:17:41]req_shift_open_date done [07:17:41]produce_requested_data done [07:17:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118363,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [07:17:41]process_action_free close_receipt [07:17:41]json_value_free [07:17:41]json_value_free done [07:17:41]process_json_proto returns [07:17:41]Send response to host [07:17:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118363,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [07:17:41]free response buf [07:17:41]execute_script done [07:17:41]execute_script returns [07:17:41]free content buf [07:17:41]Sock 7.Close socket [07:17:41]Sock 7.Thread stoped [07:17:45]OFD Sender: No OFD packet to send [07:17:50]OFD Sender: No OFD packet to send [07:17:55]OFD Sender: No OFD packet to send [07:18:00]OFD Sender: No OFD packet to send [07:18:05]OFD Sender: No OFD packet to send [07:18:10]OFD Sender: No OFD packet to send [07:18:15]OFD Sender: No OFD packet to send [07:18:20]OFD Sender: No OFD packet to send [07:18:25]OFD Sender: No OFD packet to send [07:18:30]OFD Sender: No OFD packet to send [07:18:35]OFD Sender: No OFD packet to send [07:18:40]OFD Sender: No OFD packet to send [07:18:45]OFD Sender: No OFD packet to send [07:18:50]OFD Sender: No OFD packet to send [07:18:55]OFD Sender: No OFD packet to send [07:19:00]OFD Sender: No OFD packet to send [07:19:05]OFD Sender: No OFD packet to send [07:19:10]OFD Sender: No OFD packet to send [07:19:15]OFD Sender: No OFD packet to send [07:19:20]OFD Sender: No OFD packet to send [07:19:25]OFD Sender: No OFD packet to send [07:19:30]OFD Sender: No OFD packet to send [07:19:35]OFD Sender: No OFD packet to send [07:19:40]OFD Sender: No OFD packet to send [07:19:45]OFD Sender: No OFD packet to send [07:19:50]OFD Sender: No OFD packet to send [07:19:55]OFD Sender: No OFD packet to send [07:20:00]OFD Sender: No OFD packet to send [07:20:05]OFD Sender: No OFD packet to send [07:20:10]OFD Sender: No OFD packet to send [07:20:15]OFD Sender: No OFD packet to send [07:20:20]OFD Sender: No OFD packet to send [07:20:25]OFD Sender: No OFD packet to send [07:20:30]OFD Sender: No OFD packet to send [07:20:35]OFD Sender: No OFD packet to send [07:20:40]OFD Sender: No OFD packet to send [07:20:45]OFD Sender: No OFD packet to send [07:20:50]OFD Sender: No OFD packet to send [07:20:55]OFD Sender: No OFD packet to send [07:21:00]OFD Sender: No OFD packet to send [07:21:05]OFD Sender: No OFD packet to send [07:21:10]OFD Sender: No OFD packet to send [07:21:12]accept exits with 9 [07:21:12]New connection [07:21:12]New thread 3067067748 created [07:21:12]Thread 3066924388 joined [07:21:12]Waiting for new connection... [07:21:12] Sock 9.Parse request [07:21:12]Sock 9.Check first char [07:21:12]Sock 9.First char is OK [07:21:12]request: POST /json_proto HTTP/1.0 [07:21:12]Method: POST [07:21:12]URL: /json_proto [07:21:12]Method is POST - this is cgi request [07:21:12]url: /json_proto [07:21:12]query_string will be loaded in cgi processing [07:21:12]execute_cgi json_proto POST (null) [07:21:12]execute_cgi path=json_proto method=POST [07:21:12]POST find Content-Length [07:21:12]Host: 172.17.45.7:8080 [07:21:12]Content-Length: 682 [07:21:12]Content-Type: application/json [07:21:12] [07:21:12]POST finish read [07:21:12]Found Content-Length = 682 [07:21:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "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" ] } } [07:21:12]execute_script... [07:21:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "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" ] } } [07:21:12]POST & json_proto [07:21:12]process_json_proto [07:21:12]json parsed OK: [07:21:12]protocol is kg_v1.0 [07:21:12]action value=close_receipt [07:21:12]process_action close_receipt [07:21:12]cmd_close_receipt [07:21:12]MH_GetDate [07:21:12]Write to MH i2c: F0 00 00 BD 04 B0 [07:21:12]Write i2c OK [07:21:12]MH_I2C_Read... [07:21:12]Read from MH i2c: F0 [07:21:12]MH_I2C_Read... [07:21:12]Read from MH i2c: F0 09 00 [07:21:12]MH_I2C_Read... [07:21:12]Read from MH i2c: F0 09 00 BD 04 00 6A F1 A5 66 90 0F 3E 66 62 [07:21:12]GetLastDocTimeStamp 1722151059 [07:21:12]current date 1722151274 [07:21:12]FM_GetShiftState [07:21:12]SAM_PROTO_GetShiftState [07:21:12]wFMCommunicate request_size=4 [07:21:12]MH_SAM_APDU [07:21:12]CAPDU: 80 13 01 00 [07:21:12]Write to MH i2c: E2 08 00 BE 04 80 13 01 00 00 00 00 00 3F [07:21:12]Write i2c OK [07:21:12]MH_I2C_Read... [07:21:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:12]Read from MH i2c: E2 [07:21:12]MH_I2C_Read... [07:21:12]Read from MH i2c: E2 0E 00 [07:21:12]MH_I2C_Read... [07:21:12]Read from MH i2c: E2 0E 00 BE 04 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 16 [07:21:12]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:21:12]wFMCommunicate OK [07:21:12]SAM_PROTO_GetShiftState done [07:21:12]FM_GetShiftState done [07:21:12]opened in 1722125364 [07:21:12]opened+sec_in_day 1722211764 [07:21:12]quantity*price = 200010 [07:21:12]sum+1 = 200011 [07:21:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 33 28.07.2024 07:21 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118364 ФПД: 36107936491553 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T072114&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118364&fm=36107936491553&tin=02508201610067®Number=0000000000092660&sum=200000 [07:21:13]StoreToDocumentArchive [07:21:13]shift 433 fd 118364 [07:21:13]save to /storage/0433/doc_00118364 [07:21:13]save last doc name /storage/0433/doc_00118364 to /storage/kkm_last_doc_name [07:21:13]save OK [07:21:13]Clear old archive folders... [07:21:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:21:13]tlvbuf is 001420C0 [07:21:13]SAM_PROTO_ClearQueue [07:21:13]wFMCommunicate request_size=4 [07:21:13]MH_SAM_APDU [07:21:13]CAPDU: 80 09 00 00 [07:21:13]Write to MH i2c: E2 08 00 CB 04 80 09 00 00 00 00 00 00 41 [07:21:13]Write i2c OK [07:21:13]MH_I2C_Read... [07:21:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:21:13]Read from MH i2c: E2 [07:21:13]MH_I2C_Read... [07:21:13]Read from MH i2c: E2 03 00 [07:21:13]MH_I2C_Read... [07:21:13]Read from MH i2c: E2 03 00 CB 04 00 90 00 43 [07:21:13]RAPDU: 90 00 [07:21:13]wFMCommunicate OK [07:21:13]SAM_PROTO_ClearQueue done [07:21:13]KKMCreateOFDPacket [07:21:13]OFDProtocolAddRootSTLVToBuf [07:21:13]FM_MakeSignedData [07:21:13]FM_MakeSignedData [07:21:13]SAM_PROTO_SignData [07:21:13]wFMCommunicate request_size=4 [07:21:13]MH_SAM_APDU [07:21:13]CAPDU: 80 0D 01 02 [07:21:13]Write to MH i2c: E2 08 00 CC 04 80 0D 01 02 00 00 00 00 49 [07:21:13]Write i2c OK [07:21:13]MH_I2C_Read... [07:21:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:21:13]Read from MH i2c: E2 [07:21:13]MH_I2C_Read... [07:21:13]Read from MH i2c: E2 03 00 [07:21:13]MH_I2C_Read... [07:21:13]Read from MH i2c: E2 03 00 CC 04 00 90 00 44 [07:21:13]RAPDU: 90 00 [07:21:13]wFMCommunicate OK [07:21:13]wFMCommunicate request_size=255 [07:21:13]MH_SAM_APDU [07:21:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 21 00 00 00 F4 03 04 00 6A F1 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5C CE 01 00 35 04 06 00 20 [07:21:13]Write to MH i2c: E2 02 01 CD 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 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 21 00 00 00 F4 03 04 00 6A F1 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5C CE 01 00 35 04 06 00 20 00 00 55 [07:21:13]Write i2c OK [07:21:13]MH_I2C_Read... [07:21:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:14]Read from MH i2c: E2 [07:21:14]MH_I2C_Read... [07:21:14]Read from MH i2c: E2 03 00 [07:21:14]MH_I2C_Read... [07:21:14]Read from MH i2c: E2 03 00 CD 04 00 90 00 45 [07:21:14]RAPDU: 90 00 [07:21:14]wFMCommunicate OK [07:21:14]wFMCommunicate request_size=10 [07:21:14]MH_SAM_APDU [07:21:14]CAPDU: 80 0D 02 02 05 D7 08 BA 68 21 [07:21:14]Write to MH i2c: E2 0D 00 CE 04 80 0D 02 02 05 00 D7 08 BA 68 21 00 00 78 [07:21:14]Write i2c OK [07:21:14]MH_I2C_Read... [07:21:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:14]Read from MH i2c: E2 [07:21:14]MH_I2C_Read... [07:21:14]Read from MH i2c: E2 03 00 [07:21:14]MH_I2C_Read... [07:21:14]Read from MH i2c: E2 03 00 CE 04 00 90 00 46 [07:21:14]RAPDU: 90 00 [07:21:14]wFMCommunicate OK [07:21:14]wFMCommunicate request_size=4 [07:21:14]MH_SAM_APDU [07:21:14]CAPDU: 80 0D 03 02 [07:21:14]Write to MH i2c: E2 08 00 CF 04 80 0D 03 02 00 00 00 00 4E [07:21:14]Write i2c OK [07:21:14]MH_I2C_Read... [07:21:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:21:14]Read from MH i2c: E2 [07:21:14]MH_I2C_Read... [07:21:14]Read from MH i2c: E2 0B 00 [07:21:14]MH_I2C_Read... [07:21:14]Read from MH i2c: E2 0B 00 CF 04 00 CC FD FA 9E 6D 67 25 72 90 00 1B [07:21:14]RAPDU: CC FD FA 9E 6D 67 25 72 90 00 [07:21:14]wFMCommunicate OK [07:21:14]SAM_PROTO_SignData done [07:21:14]FM_MakeSignedData done [07:21:14]CreateOFDProtocolMessage [07:21:14]wFMCommunicate request_size=4 [07:21:14]MH_SAM_APDU [07:21:14]CAPDU: 80 11 00 00 [07:21:14]Write to MH i2c: E2 08 00 D0 04 80 11 00 00 00 00 00 00 4E [07:21:14]Write i2c OK [07:21:14]MH_I2C_Read... [07:21:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:14]Read from MH i2c: E2 [07:21:14]MH_I2C_Read... [07:21:14]Read from MH i2c: E2 17 00 [07:21:14]MH_I2C_Read... [07:21:14]Read from MH i2c: E2 17 00 D0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A9 [07:21:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:21:14]wFMCommunicate OK [07:21:14]CreateOFDProtocolMessage done [07:21:14]OFDSenderStorePacket 118364 [07:21:14]StoreOFDPacket docnum=118364 [07:21:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 3E B7 07 01 55 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 21 00 00 00 F4 03 04 00 6A F1 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5C CE 01 00 35 04 06 00 20 D7 08 BA 68 21 CC FD FA 9E 6D 67 25 72 [07:21:14]CheckFolder [07:21:14]dirname=/storage/ofd_packets [07:21:14]CheckFolder done [07:21:14]ProducePacketName [07:21:14]name=ofd_packets/00118364 [07:21:14]NVStorageSaveData ofd_packets/00118364 [07:21:14]File name is /storage/ofd_packets/00118364 [07:21:14]Write 301 bytes [07:21:14]NVStorageSaveData done [07:21:14]OFDSenderStorePacket done [07:21:14]KKMCreateOFDPacket done [07:21:14]NVStorageSaveData kkm_last_timestamp [07:21:14]File name is /storage/kkm_last_timestamp [07:21:14]Write 4 bytes [07:21:14]NVStorageSaveData done [07:21:14]ExternCall_PrintAddStr [07:21:14]wPrintStart [07:21:14]Write to MH i2c: 01 00 00 D1 04 D5 [07:21:14]Write i2c OK [07:21:14]MH_I2C_Read... [07:21:14]Read from MH i2c: 01 [07:21:14]MH_I2C_Read... [07:21:14]Read from MH i2c: 01 07 00 [07:21:14]MH_I2C_Read... [07:21:14]Read from MH i2c: 01 07 00 D1 04 00 00 00 00 00 FF 0F EA [07:21:14]RasterBufferAndPrint [07:21:14]line Счет N : (1)949238 [07:21:14]line ИНН: 02508201610067 [07:21:14]line Контрольно-Кассовый Чек [07:21:14]line ПРОДАЖА [07:21:14]line ТРК (МРК, ГНК) : 31 [07:21:14]line Товар: 2710124130 [07:21:14]line Аи-92-К-4 [07:21:14]line 29.500 * 67.80 [07:21:14]line = 2000.10 [07:21:14]line НДС 12% НСП 1% [07:21:14]line > о реализуемом товаре [07:21:14]line ОКРУГЛЕНИЕ: -0.10 [07:21:14]line ИТОГО: 2000.00 [07:21:14]line Внесено: 2000.00 [07:21:14]line СДАЧА: 0.00 [07:21:14]line НСП 1% : 17.70 [07:21:14]line НДС 12% : 212.40 [07:21:14]line Наличными: 2000.00 [07:21:14]line Безнал.: 0.00 [07:21:14]line Место: АЗС № 134 "Партнер Нефть" [07:21:14]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:21:14]line СНО: Общий режим [07:21:14]line Чек 33 28.07.2024 07:21 [07:21:14]line Смена: 433 ФФД: 1.0 [07:21:14]line ЗНМ: 0300000044 [07:21:14]line РНМ: 0000000000092660 [07:21:14]line Версия ККМ: 001 [07:21:14]line ФМ: 0000000000874939 [07:21:14]line ФД: 118364 [07:21:14]line ФПД: 36107936491553 [07:21:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T072114&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118364&fm=36107936491553&tin=02508201610067®Number=0000000000092660&sum=200000 [07:21:14]OFD Sender: Processing packet 118364 [packets to send 86, broken 85] [07:21:14]ProducePacketName [07:21:14]name=ofd_packets/00118364 [07:21:14]OFD Sender: To server: pG, [07:21:14]CommunicateWithHost lk.salyk.kg:30040 [07:21:14]ConnectInit lk.salyk.kg [07:21:14]written 0, free lines is 4095 [07:21:14]Connected sock=10 [07:21:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 3E B7 07 01 55 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 21 00 00 00 F4 03 04 00 6A F1 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5C CE 01 00 35 04 06 00 20 D7 08 BA 68 21 CC FD FA 9E 6D 67 25 72 [07:21:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D4 79 47 00 2B 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 39 33 39 10 04 04 00 5C CE 01 00 F4 03 04 00 FB 9E A5 66 B6 04 01 00 00 36 F7 DF 73 DB 3E 92 CF [07:21:15]CommunicateWithHost err = 0 [07:21:15]CheckOFDResponse [07:21:15]1017 (14) - 77093643461234 [07:21:15]1041 (16) - 0000000000874939 [07:21:15]1040 (4) - 118364 [07:21:15]1012 (4) - 28.07.2024 01:29 [07:21:15]1206 (1) - 0 [07:21:15]OFD Sender: Remove packet 118364 [07:21:15]ProducePacketName [07:21:15]name=ofd_packets/00118364 [07:21:15]NVStorageDeleteData [07:21:15]Write to MH i2c: 01 00 00 FB 04 FF [07:21:15]Write i2c OK [07:21:15]MH_I2C_Read... [07:21:15]Read from MH i2c: 01 [07:21:15]MH_I2C_Read... [07:21:15]Read from MH i2c: 01 07 00 [07:21:15]MH_I2C_Read... [07:21:15]Read from MH i2c: 01 07 00 FB 04 00 00 00 00 00 E2 0C F4 [07:21:15]RasterBufferAndPrint [07:21:15]line [07:21:15]line [07:21:15]line [07:21:15]line [07:21:15]line [07:21:15]written 0, free lines is 3305 [07:21:15]MH_Cut [07:21:15]Write to MH i2c: D1 01 00 02 05 01 D9 [07:21:15]Write i2c OK [07:21:15]MH_I2C_Read... [07:21:15]Read from MH i2c: D1 [07:21:15]MH_I2C_Read... [07:21:15]Read from MH i2c: D1 01 00 [07:21:15]MH_I2C_Read... [07:21:15]Read from MH i2c: D1 01 00 02 05 00 D8 [07:21:15]Write to MH i2c: 01 00 00 03 05 08 [07:21:15]Write i2c OK [07:21:15]MH_I2C_Read... [07:21:15]OFD Sender: No OFD packet to send [07:21:15]*** Cut start [07:21:15]*** Partial cut [07:21:15]*** CUTSNS_PIN = 1 [07:21:16]*** CUTSNS_PIN = 0 [07:21:16]*** Brake cut motor [07:21:16]Read from MH i2c: 01 [07:21:16]MH_I2C_Read... [07:21:16]*** Stop cut motor [07:21:16]*** Cut end [07:21:16]Read from MH i2c: 01 07 00 [07:21:16]MH_I2C_Read... [07:21:16]Read from MH i2c: 01 07 00 03 05 00 00 00 00 00 FF 0F 1D [07:21:16]process_action close_receipt done [07:21:16]requested_data is exist [07:21:16]produce_requested_data [07:21:16]requested_item fm.sn is exist - process it [07:21:16]wFMCommunicate request_size=4 [07:21:16]MH_SAM_APDU [07:21:16]CAPDU: 80 11 00 00 [07:21:16]Write to MH i2c: E2 08 00 04 05 80 11 00 00 00 00 00 00 83 [07:21:16]Write i2c OK [07:21:16]MH_I2C_Read... [07:21:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:16]Read from MH i2c: E2 [07:21:16]MH_I2C_Read... [07:21:16]Read from MH i2c: E2 17 00 [07:21:16]MH_I2C_Read... [07:21:16]Read from MH i2c: E2 17 00 04 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DE [07:21:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:21:16]wFMCommunicate OK [07:21:16]requested_item fd.num is exist - process it [07:21:16]SAM_PROTO_GetFieldsCounters [07:21:16]wFMCommunicate request_size=4 [07:21:16]MH_SAM_APDU [07:21:16]CAPDU: 80 13 00 00 [07:21:16]Write to MH i2c: E2 08 00 05 05 80 13 00 00 00 00 00 00 86 [07:21:16]Write i2c OK [07:21:16]MH_I2C_Read... [07:21:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:21:16]Read from MH i2c: E2 [07:21:16]MH_I2C_Read... [07:21:16]Read from MH i2c: E2 62 00 [07:21:16]MH_I2C_Read... [07:21:16]Read from MH i2c: E2 62 00 05 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5C CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [07:21:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5C CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:21:16]wFMCommunicate OK [07:21:16]SAM_PROTO_GetFieldsCounters done [07:21:16]requested_item shift.num is exist - process it [07:21:16]requested_item shift.opened is exist - process it [07:21:16]req_shift_opened [07:21:16]FM_GetShiftState [07:21:16]SAM_PROTO_GetShiftState [07:21:16]wFMCommunicate request_size=4 [07:21:16]MH_SAM_APDU [07:21:16]CAPDU: 80 13 01 00 [07:21:16]Write to MH i2c: E2 08 00 06 05 80 13 01 00 00 00 00 00 88 [07:21:16]Write i2c OK [07:21:16]MH_I2C_Read... [07:21:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:16]Read from MH i2c: E2 [07:21:16]MH_I2C_Read... [07:21:16]Read from MH i2c: E2 0E 00 [07:21:16]MH_I2C_Read... [07:21:16]Read from MH i2c: E2 0E 00 06 05 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 5F [07:21:16]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:21:16]wFMCommunicate OK [07:21:16]SAM_PROTO_GetShiftState done [07:21:16]FM_GetShiftState done [07:21:16]req_shift_opened done [07:21:16]requested_item shift.open_date is exist - process it [07:21:16]req_shift_open_date [07:21:16]req_shift_open_date done [07:21:16]produce_requested_data done [07:21:16]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118364,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [07:21:16]process_action_free close_receipt [07:21:16]json_value_free [07:21:16]json_value_free done [07:21:16]process_json_proto returns [07:21:16]Send response to host [07:21:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118364,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [07:21:16]free response buf [07:21:16]execute_script done [07:21:16]execute_script returns [07:21:16]free content buf [07:21:16]Sock 9.Close socket [07:21:16]Sock 9.Thread stoped [07:21:20]OFD Sender: No OFD packet to send [07:21:25]OFD Sender: No OFD packet to send [07:21:30]OFD Sender: No OFD packet to send [07:21:35]OFD Sender: No OFD packet to send [07:21:40]OFD Sender: No OFD packet to send [07:21:45]OFD Sender: No OFD packet to send [07:21:50]OFD Sender: No OFD packet to send [07:21:55]OFD Sender: No OFD packet to send [07:22:00]OFD Sender: No OFD packet to send [07:22:05]OFD Sender: No OFD packet to send [07:22:10]OFD Sender: No OFD packet to send [07:22:15]OFD Sender: No OFD packet to send [07:22:20]OFD Sender: No OFD packet to send [07:22:25]OFD Sender: No OFD packet to send [07:22:30]OFD Sender: No OFD packet to send [07:22:35]OFD Sender: No OFD packet to send [07:22:40]OFD Sender: No OFD packet to send [07:22:45]OFD Sender: No OFD packet to send [07:22:50]OFD Sender: No OFD packet to send [07:22:55]OFD Sender: No OFD packet to send [07:23:00]OFD Sender: No OFD packet to send [07:23:05]OFD Sender: No OFD packet to send [07:23:10]OFD Sender: No OFD packet to send [07:23:15]OFD Sender: No OFD packet to send [07:23:20]OFD Sender: No OFD packet to send [07:23:25]OFD Sender: No OFD packet to send [07:23:30]OFD Sender: No OFD packet to send [07:23:35]OFD Sender: No OFD packet to send [07:23:40]OFD Sender: No OFD packet to send [07:23:45]OFD Sender: No OFD packet to send [07:23:50]OFD Sender: No OFD packet to send [07:23:55]OFD Sender: No OFD packet to send [07:24:00]OFD Sender: No OFD packet to send [07:24:05]OFD Sender: No OFD packet to send [07:24:10]OFD Sender: No OFD packet to send [07:24:15]OFD Sender: No OFD packet to send [07:24:20]OFD Sender: No OFD packet to send [07:24:25]OFD Sender: No OFD packet to send [07:24:30]OFD Sender: No OFD packet to send [07:24:35]OFD Sender: No OFD packet to send [07:24:40]OFD Sender: No OFD packet to send [07:24:45]OFD Sender: No OFD packet to send [07:24:50]OFD Sender: No OFD packet to send [07:24:55]OFD Sender: No OFD packet to send [07:25:00]OFD Sender: No OFD packet to send [07:25:05]OFD Sender: No OFD packet to send [07:25:10]OFD Sender: No OFD packet to send [07:25:15]OFD Sender: No OFD packet to send [07:25:20]OFD Sender: No OFD packet to send [07:25:25]OFD Sender: No OFD packet to send [07:25:30]OFD Sender: No OFD packet to send [07:25:35]OFD Sender: No OFD packet to send [07:25:40]OFD Sender: No OFD packet to send [07:25:45]OFD Sender: No OFD packet to send [07:25:50]OFD Sender: No OFD packet to send [07:25:55]OFD Sender: No OFD packet to send [07:26:00]OFD Sender: No OFD packet to send [07:26:05]OFD Sender: No OFD packet to send [07:26:10]OFD Sender: No OFD packet to send [07:26:15]OFD Sender: No OFD packet to send [07:26:20]OFD Sender: No OFD packet to send [07:26:25]OFD Sender: No OFD packet to send [07:26:30]OFD Sender: No OFD packet to send [07:26:35]OFD Sender: No OFD packet to send [07:26:40]OFD Sender: No OFD packet to send [07:26:45]OFD Sender: No OFD packet to send [07:26:50]OFD Sender: No OFD packet to send [07:26:55]OFD Sender: No OFD packet to send [07:27:00]OFD Sender: No OFD packet to send [07:27:05]OFD Sender: No OFD packet to send [07:27:10]OFD Sender: No OFD packet to send [07:27:15]OFD Sender: No OFD packet to send [07:27:20]OFD Sender: No OFD packet to send [07:27:25]OFD Sender: No OFD packet to send [07:27:30]OFD Sender: No OFD packet to send [07:27:35]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:28:00]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:41]OFD Sender: No OFD packet to send [07:30:46]OFD Sender: No OFD packet to send [07:30:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:11]OFD Sender: No OFD packet to send [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:46]OFD Sender: No OFD packet to send [07:33:51]OFD Sender: No OFD packet to send [07:33:56]OFD Sender: No OFD packet to send [07:34:01]OFD Sender: No OFD packet to send [07:34:06]OFD Sender: No OFD packet to send [07:34:11]OFD Sender: No OFD packet to send [07:34:16]OFD Sender: No OFD packet to send [07:34:21]OFD Sender: No OFD packet to send [07:34:26]OFD Sender: No OFD packet to send [07:34:31]OFD Sender: No OFD packet to send [07:34:36]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:51]OFD Sender: No OFD packet to send [07:34:56]OFD Sender: No OFD packet to send [07:35:01]OFD Sender: No OFD packet to send [07:35:06]OFD Sender: No OFD packet to send [07:35:11]OFD Sender: No OFD packet to send [07:35:16]OFD Sender: No OFD packet to send [07:35:21]OFD Sender: No OFD packet to send [07:35:26]OFD Sender: No OFD packet to send [07:35:31]OFD Sender: No OFD packet to send [07:35:36]OFD Sender: No OFD packet to send [07:35:41]OFD Sender: No OFD packet to send [07:35:46]OFD Sender: No OFD packet to send [07:35:51]OFD Sender: No OFD packet to send [07:35:56]OFD Sender: No OFD packet to send [07:36:01]OFD Sender: No OFD packet to send [07:36:06]OFD Sender: No OFD packet to send [07:36:11]OFD Sender: No OFD packet to send [07:36:16]OFD Sender: No OFD packet to send [07:36:21]OFD Sender: No OFD packet to send [07:36:26]OFD Sender: No OFD packet to send [07:36:31]OFD Sender: No OFD packet to send [07:36:36]OFD Sender: No OFD packet to send [07:36:41]OFD Sender: No OFD packet to send [07:36:46]OFD Sender: No OFD packet to send [07:36:51]OFD Sender: No OFD packet to send [07:36:56]OFD Sender: No OFD packet to send [07:37:01]OFD Sender: No OFD packet to send [07:37:06]OFD Sender: No OFD packet to send [07:37:11]OFD Sender: No OFD packet to send [07:37:16]OFD Sender: No OFD packet to send [07:37:21]OFD Sender: No OFD packet to send [07:37:26]OFD Sender: No OFD packet to send [07:37:31]OFD Sender: No OFD packet to send [07:37:36]OFD Sender: No OFD packet to send [07:37:41]OFD Sender: No OFD packet to send [07:37:46]OFD Sender: No OFD packet to send [07:37:51]OFD Sender: No OFD packet to send [07:37:56]OFD Sender: No OFD packet to send [07:38:01]OFD Sender: No OFD packet to send [07:38:06]OFD Sender: No OFD packet to send [07:38:11]OFD Sender: No OFD packet to send [07:38:16]OFD Sender: No OFD packet to send [07:38:21]OFD Sender: No OFD packet to send [07:38:26]OFD Sender: No OFD packet to send [07:38:31]OFD Sender: No OFD packet to send [07:38:36]OFD Sender: No OFD packet to send [07:38:41]OFD Sender: No OFD packet to send [07:38:46]OFD Sender: No OFD packet to send [07:38:51]OFD Sender: No OFD packet to send [07:38:56]OFD Sender: No OFD packet to send [07:39:01]OFD Sender: No OFD packet to send [07:39:06]OFD Sender: No OFD packet to send [07:39:11]OFD Sender: No OFD packet to send [07:39:16]OFD Sender: No OFD packet to send [07:39:21]OFD Sender: No OFD packet to send [07:39:26]OFD Sender: No OFD packet to send [07:39:31]OFD Sender: No OFD packet to send [07:39:36]OFD Sender: No OFD packet to send [07:39:41]OFD Sender: No OFD packet to send [07:39:46]OFD Sender: No OFD packet to send [07:39:51]OFD Sender: No OFD packet to send [07:39:56]OFD Sender: No OFD packet to send [07:40:01]OFD Sender: No OFD packet to send [07:40:06]OFD Sender: No OFD packet to send [07:40:11]OFD Sender: No OFD packet to send [07:40:16]OFD Sender: No OFD packet to send [07:40:21]OFD Sender: No OFD packet to send [07:40:26]OFD Sender: No OFD packet to send [07:40:31]OFD Sender: No OFD packet to send [07:40:36]OFD Sender: No OFD packet to send [07:40:41]OFD Sender: No OFD packet to send [07:40:46]OFD Sender: No OFD packet to send [07:40:51]OFD Sender: No OFD packet to send [07:40:56]OFD Sender: No OFD packet to send [07:41:01]OFD Sender: No OFD packet to send [07:41:06]OFD Sender: No OFD packet to send [07:41:11]OFD Sender: No OFD packet to send [07:41:16]OFD Sender: No OFD packet to send [07:41:21]OFD Sender: No OFD packet to send [07:41:26]OFD Sender: No OFD packet to send [07:41:31]OFD Sender: No OFD packet to send [07:41:36]OFD Sender: No OFD packet to send [07:41:41]OFD Sender: No OFD packet to send [07:41:46]OFD Sender: No OFD packet to send [07:41:51]OFD Sender: No OFD packet to send [07:41:56]OFD Sender: No OFD packet to send [07:42:01]OFD Sender: No OFD packet to send [07:42:06]OFD Sender: No OFD packet to send [07:42:11]OFD Sender: No OFD packet to send [07:42:16]OFD Sender: No OFD packet to send [07:42:21]OFD Sender: No OFD packet to send [07:42:26]OFD Sender: No OFD packet to send [07:42:31]OFD Sender: No OFD packet to send [07:42:36]OFD Sender: No OFD packet to send [07:42:41]OFD Sender: No OFD packet to send [07:42:46]OFD Sender: No OFD packet to send [07:42:51]OFD Sender: No OFD packet to send [07:42:56]OFD Sender: No OFD packet to send [07:43:01]OFD Sender: No OFD packet to send [07:43:06]OFD Sender: No OFD packet to send [07:43:11]OFD Sender: No OFD packet to send [07:43:16]OFD Sender: No OFD packet to send [07:43:21]OFD Sender: No OFD packet to send [07:43:26]OFD Sender: No OFD packet to send [07:43:30]accept exits with 7 [07:43:30]New connection [07:43:30]New thread 3066924388 created [07:43:30]Thread 3067067748 joined [07:43:30]Waiting for new connection... [07:43:30] Sock 7.Parse request [07:43:30]Sock 7.Check first char [07:43:30]Sock 7.First char is OK [07:43:30]request: POST /json_proto HTTP/1.0 [07:43:30]Method: POST [07:43:30]URL: /json_proto [07:43:30]Method is POST - this is cgi request [07:43:30]url: /json_proto [07:43:30]query_string will be loaded in cgi processing [07:43:30]execute_cgi json_proto POST (null) [07:43:30]execute_cgi path=json_proto method=POST [07:43:30]POST find Content-Length [07:43:30]Host: 172.17.45.7:8080 [07:43:30]Content-Length: 677 [07:43:30]Content-Type: application/json [07:43:30] [07:43:30]POST finish read [07:43:30]Found Content-Length = 677 [07:43:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [07:43:30]execute_script... [07:43: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)949239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [07:43:30]POST & json_proto [07:43:30]process_json_proto [07:43:30]json parsed OK: [07:43:30]protocol is kg_v1.0 [07:43:30]action value=close_receipt [07:43:30]process_action close_receipt [07:43:30]cmd_close_receipt [07:43:30]MH_GetDate [07:43:30]Write to MH i2c: F0 00 00 07 05 FB [07:43:30]Write i2c OK [07:43:30]MH_I2C_Read... [07:43:30]Read from MH i2c: F0 [07:43:30]MH_I2C_Read... [07:43:30]Read from MH i2c: F0 09 00 [07:43:30]MH_I2C_Read... [07:43:30]Read from MH i2c: F0 09 00 07 05 00 A3 F6 A5 66 90 0F 3E 66 EB [07:43:30]GetLastDocTimeStamp 1722151274 [07:43:30]current date 1722152611 [07:43:30]FM_GetShiftState [07:43:30]SAM_PROTO_GetShiftState [07:43:30]wFMCommunicate request_size=4 [07:43:30]MH_SAM_APDU [07:43:30]CAPDU: 80 13 01 00 [07:43:30]Write to MH i2c: E2 08 00 08 05 80 13 01 00 00 00 00 00 8A [07:43:30]Write i2c OK [07:43:30]MH_I2C_Read... [07:43:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:30]Read from MH i2c: E2 [07:43:30]MH_I2C_Read... [07:43:30]Read from MH i2c: E2 0E 00 [07:43:30]MH_I2C_Read... [07:43:30]Read from MH i2c: E2 0E 00 08 05 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 61 [07:43:30]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:43:30]wFMCommunicate OK [07:43:30]SAM_PROTO_GetShiftState done [07:43:30]FM_GetShiftState done [07:43:30]opened in 1722125364 [07:43:30]opened+sec_in_day 1722211764 [07:43:30]quantity*price = 30035 [07:43:30]sum+1 = 30036 [07:43:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 34 28.07.2024 07:43 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118365 ФПД: 222536951659528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074331&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118365&fm=222536951659528&tin=02508201610067®Number=0000000000092660&sum=30000 [07:43:31]StoreToDocumentArchive [07:43:31]shift 433 fd 118365 [07:43:31]save to /storage/0433/doc_00118365 [07:43:31]save last doc name /storage/0433/doc_00118365 to /storage/kkm_last_doc_name [07:43:31]save OK [07:43:31]Clear old archive folders... [07:43:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:43:31]tlvbuf is 00132050 [07:43:31]SAM_PROTO_ClearQueue [07:43:31]wFMCommunicate request_size=4 [07:43:31]MH_SAM_APDU [07:43:31]CAPDU: 80 09 00 00 [07:43:31]Write to MH i2c: E2 08 00 15 05 80 09 00 00 00 00 00 00 8C [07:43:31]Write i2c OK [07:43:31]MH_I2C_Read... [07:43:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:43:31]Read from MH i2c: E2 [07:43:31]MH_I2C_Read... [07:43:31]Read from MH i2c: E2 03 00 [07:43:31]MH_I2C_Read... [07:43:31]Read from MH i2c: E2 03 00 15 05 00 90 00 8E [07:43:31]RAPDU: 90 00 [07:43:31]wFMCommunicate OK [07:43:31]SAM_PROTO_ClearQueue done [07:43:31]KKMCreateOFDPacket [07:43:31]OFDProtocolAddRootSTLVToBuf [07:43:31]FM_MakeSignedData [07:43:31]FM_MakeSignedData [07:43:31]SAM_PROTO_SignData [07:43:31]wFMCommunicate request_size=4 [07:43:31]MH_SAM_APDU [07:43:31]CAPDU: 80 0D 01 02 [07:43:31]Write to MH i2c: E2 08 00 16 05 80 0D 01 02 00 00 00 00 94 [07:43:31]Write i2c OK [07:43:31]MH_I2C_Read... [07:43:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:43:31]Read from MH i2c: E2 [07:43:31]MH_I2C_Read... [07:43:31]Read from MH i2c: E2 03 00 [07:43:31]MH_I2C_Read... [07:43:31]Read from MH i2c: E2 03 00 16 05 00 90 00 8F [07:43:31]RAPDU: 90 00 [07:43:31]wFMCommunicate OK [07:43:31]wFMCommunicate request_size=255 [07:43:31]MH_SAM_APDU [07:43: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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 A3 F6 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D CE 01 00 35 04 06 00 CA [07:43:31]Write to MH i2c: E2 02 01 17 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 A3 F6 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D CE 01 00 35 04 06 00 CA 00 00 A5 [07:43:31]Write i2c OK [07:43:31]MH_I2C_Read... [07:43:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:31]Read from MH i2c: E2 [07:43:31]MH_I2C_Read... [07:43:31]Read from MH i2c: E2 03 00 [07:43:31]MH_I2C_Read... [07:43:31]Read from MH i2c: E2 03 00 17 05 00 90 00 90 [07:43:31]RAPDU: 90 00 [07:43:31]wFMCommunicate OK [07:43:31]wFMCommunicate request_size=10 [07:43:31]MH_SAM_APDU [07:43:31]CAPDU: 80 0D 02 02 05 65 6B F3 FC 08 [07:43:31]Write to MH i2c: E2 0D 00 18 05 80 0D 02 02 05 00 65 6B F3 FC 08 00 00 68 [07:43:31]Write i2c OK [07:43:31]MH_I2C_Read... [07:43:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:31]Read from MH i2c: E2 [07:43:31]MH_I2C_Read... [07:43:31]Read from MH i2c: E2 03 00 [07:43:31]MH_I2C_Read... [07:43:31]Read from MH i2c: E2 03 00 18 05 00 90 00 91 [07:43:31]RAPDU: 90 00 [07:43:31]wFMCommunicate OK [07:43:31]wFMCommunicate request_size=4 [07:43:31]MH_SAM_APDU [07:43:31]CAPDU: 80 0D 03 02 [07:43:31]Write to MH i2c: E2 08 00 19 05 80 0D 03 02 00 00 00 00 99 [07:43:31]Write i2c OK [07:43:31]MH_I2C_Read... [07:43:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:43:31]Read from MH i2c: E2 [07:43:31]MH_I2C_Read... [07:43:31]Read from MH i2c: E2 0B 00 [07:43:31]MH_I2C_Read... [07:43:31]Read from MH i2c: E2 0B 00 19 05 00 4C 32 5A 12 AD FA 15 58 90 00 98 [07:43:31]RAPDU: 4C 32 5A 12 AD FA 15 58 90 00 [07:43:31]wFMCommunicate OK [07:43:31]SAM_PROTO_SignData done [07:43:31]FM_MakeSignedData done [07:43:31]CreateOFDProtocolMessage [07:43:31]wFMCommunicate request_size=4 [07:43:31]MH_SAM_APDU [07:43:31]CAPDU: 80 11 00 00 [07:43:31]Write to MH i2c: E2 08 00 1A 05 80 11 00 00 00 00 00 00 99 [07:43:31]Write i2c OK [07:43:31]MH_I2C_Read... [07:43:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:31]Read from MH i2c: E2 [07:43:31]MH_I2C_Read... [07:43:31]Read from MH i2c: E2 17 00 [07:43:31]MH_I2C_Read... [07:43:31]Read from MH i2c: E2 17 00 1A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F4 [07:43:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:43:31]wFMCommunicate OK [07:43:31]CreateOFDProtocolMessage done [07:43:31]OFDSenderStorePacket 118365 [07:43:31]StoreOFDPacket docnum=118365 [07:43:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 8E 76 07 01 A9 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 A3 F6 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D CE 01 00 35 04 06 00 CA 65 6B F3 FC 08 4C 32 5A 12 AD FA 15 58 [07:43:31]CheckFolder [07:43:31]dirname=/storage/ofd_packets [07:43:31]CheckFolder done [07:43:31]ProducePacketName [07:43:31]name=ofd_packets/00118365 [07:43:31]NVStorageSaveData ofd_packets/00118365 [07:43:31]File name is /storage/ofd_packets/00118365 [07:43:31]Write 301 bytes [07:43:31]NVStorageSaveData done [07:43:31]OFDSenderStorePacket done [07:43:31]KKMCreateOFDPacket done [07:43:31]NVStorageSaveData kkm_last_timestamp [07:43:31]File name is /storage/kkm_last_timestamp [07:43:31]Write 4 bytes [07:43:31]NVStorageSaveData done [07:43:31]ExternCall_PrintAddStr [07:43:31]wPrintStart [07:43:31]Write to MH i2c: 01 00 00 1B 05 20 [07:43:31]Write i2c OK [07:43:31]MH_I2C_Read... [07:43:31]Read from MH i2c: 01 [07:43:31]MH_I2C_Read... [07:43:31]Read from MH i2c: 01 07 00 [07:43:31]MH_I2C_Read... [07:43:31]Read from MH i2c: 01 07 00 1B 05 00 00 00 00 00 FF 0F 35 [07:43:31]RasterBufferAndPrint [07:43:31]line Счет N : (1)949239 [07:43:31]line ИНН: 02508201610067 [07:43:31]line Контрольно-Кассовый Чек [07:43:31]line ПРОДАЖА [07:43:31]line ТРК (МРК, ГНК) : 41 [07:43:31]line Товар: 2710124130 [07:43:31]line Аи-92-К-4 [07:43:31]line 4.430 * 67.80 [07:43:31]line = 300.35 [07:43:31]line НДС 12% НСП 1% [07:43:31]line > о реализуемом товаре [07:43:31]line ОКРУГЛЕНИЕ: -0.35 [07:43:31]line ИТОГО: 300.00 [07:43:31]line Внесено: 300.00 [07:43:31]line СДАЧА: 0.00 [07:43:31]line НСП 1% : 2.66 [07:43:31]line НДС 12% : 31.90 [07:43:31]line Наличными: 300.00 [07:43:31]line Безнал.: 0.00 [07:43:31]line Место: АЗС № 134 "Партнер Нефть" [07:43:31]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:43:31]line СНО: Общий режим [07:43:31]line Чек 34 28.07.2024 07:43 [07:43:31]line Смена: 433 ФФД: 1.0 [07:43:31]line ЗНМ: 0300000044 [07:43:31]line РНМ: 0000000000092660 [07:43:31]line Версия ККМ: 001 [07:43:31]line ФМ: 0000000000874939 [07:43:31]line ФД: 118365 [07:43:31]line ФПД: 222536951659528 [07:43:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074331&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118365&fm=222536951659528&tin=02508201610067®Number=0000000000092660&sum=30000 [07:43:31]written 0, free lines is 4095 [07:43:31]OFD Sender: Processing packet 118365 [packets to send 86, broken 85] [07:43:31]ProducePacketName [07:43:31]name=ofd_packets/00118365 [07:43:31]OFD Sender: To server: pG, [07:43:31]CommunicateWithHost lk.salyk.kg:30040 [07:43:31]ConnectInit lk.salyk.kg [07:43:31]Connected sock=10 [07:43:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 8E 76 07 01 A9 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 A3 F6 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D CE 01 00 35 04 06 00 CA 65 6B F3 FC 08 4C 32 5A 12 AD FA 15 58 [07:43:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4C C6 47 00 48 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D CE 01 00 F4 03 04 00 34 A4 A5 66 B6 04 01 00 00 F0 9D D1 F9 EE 6B 90 34 [07:43:32]CommunicateWithHost err = 0 [07:43:32]CheckOFDResponse [07:43:32]1017 (14) - 77093643461234 [07:43:32]1041 (16) - 0000000000874939 [07:43:32]1040 (4) - 118365 [07:43:32]1012 (4) - 28.07.2024 01:51 [07:43:32]1206 (1) - 0 [07:43:32]OFD Sender: Remove packet 118365 [07:43:32]ProducePacketName [07:43:32]name=ofd_packets/00118365 [07:43:32]NVStorageDeleteData [07:43:32]Write to MH i2c: 01 00 00 45 05 4A [07:43:32]Write i2c OK [07:43:32]MH_I2C_Read... [07:43:32]Read from MH i2c: 01 [07:43:32]MH_I2C_Read... [07:43:32]Read from MH i2c: 01 07 00 [07:43:32]MH_I2C_Read... [07:43:32]Read from MH i2c: 01 07 00 45 05 00 00 00 00 00 D5 0C 32 [07:43:32]RasterBufferAndPrint [07:43:32]line [07:43:32]line [07:43:32]line [07:43:32]line [07:43:32]line [07:43:32]written 0, free lines is 3292 [07:43:32]MH_Cut [07:43:32]Write to MH i2c: D1 01 00 4C 05 01 23 [07:43:32]Write i2c OK [07:43:32]MH_I2C_Read... [07:43:32]Read from MH i2c: D1 [07:43:32]MH_I2C_Read... [07:43:32]Read from MH i2c: D1 01 00 [07:43:32]MH_I2C_Read... [07:43:32]Read from MH i2c: D1 01 00 4C 05 00 22 [07:43:32]Write to MH i2c: 01 00 00 4D 05 52 [07:43:32]Write i2c OK [07:43:32]MH_I2C_Read... [07:43:32]OFD Sender: No OFD packet to send [07:43:32]*** Cut start [07:43:32]*** Partial cut [07:43:32]*** CUTSNS_PIN = 1 [07:43:33]*** CUTSNS_PIN = 0 [07:43:33]*** Brake cut motor [07:43:33]Read from MH i2c: 01 [07:43:33]MH_I2C_Read... [07:43:33]*** Stop cut motor [07:43:33]*** Cut end [07:43:33]Read from MH i2c: 01 07 00 [07:43:33]MH_I2C_Read... [07:43:33]Read from MH i2c: 01 07 00 4D 05 00 00 00 00 00 FF 0F 67 [07:43:33]process_action close_receipt done [07:43:33]requested_data is exist [07:43:33]produce_requested_data [07:43:33]requested_item fm.sn is exist - process it [07:43:33]wFMCommunicate request_size=4 [07:43:33]MH_SAM_APDU [07:43:33]CAPDU: 80 11 00 00 [07:43:33]Write to MH i2c: E2 08 00 4E 05 80 11 00 00 00 00 00 00 CD [07:43:33]Write i2c OK [07:43:33]MH_I2C_Read... [07:43:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:33]Read from MH i2c: E2 [07:43:33]MH_I2C_Read... [07:43:33]Read from MH i2c: E2 17 00 [07:43:33]MH_I2C_Read... [07:43:33]Read from MH i2c: E2 17 00 4E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 28 [07:43:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:43:33]wFMCommunicate OK [07:43:33]requested_item fd.num is exist - process it [07:43:33]SAM_PROTO_GetFieldsCounters [07:43:33]wFMCommunicate request_size=4 [07:43:33]MH_SAM_APDU [07:43:33]CAPDU: 80 13 00 00 [07:43:33]Write to MH i2c: E2 08 00 4F 05 80 13 00 00 00 00 00 00 D0 [07:43:33]Write i2c OK [07:43:33]MH_I2C_Read... [07:43:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:33]Read from MH i2c: E2 [07:43:33]MH_I2C_Read... [07:43:33]Read from MH i2c: E2 62 00 [07:43:33]MH_I2C_Read... [07:43:33]Read from MH i2c: E2 62 00 4F 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5D CE 01 00 0E 04 04 00 B1 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 3B [07:43:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5D CE 01 00 0E 04 04 00 B1 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 [07:43:33]wFMCommunicate OK [07:43:33]SAM_PROTO_GetFieldsCounters done [07:43:33]requested_item shift.num is exist - process it [07:43:33]requested_item shift.opened is exist - process it [07:43:33]req_shift_opened [07:43:33]FM_GetShiftState [07:43:33]SAM_PROTO_GetShiftState [07:43:33]wFMCommunicate request_size=4 [07:43:33]MH_SAM_APDU [07:43:33]CAPDU: 80 13 01 00 [07:43:33]Write to MH i2c: E2 08 00 50 05 80 13 01 00 00 00 00 00 D2 [07:43:33]Write i2c OK [07:43:33]MH_I2C_Read... [07:43:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:33]Read from MH i2c: E2 [07:43:33]MH_I2C_Read... [07:43:33]Read from MH i2c: E2 0E 00 [07:43:33]MH_I2C_Read... [07:43:33]Read from MH i2c: E2 0E 00 50 05 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A9 [07:43:33]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:43:33]wFMCommunicate OK [07:43:33]SAM_PROTO_GetShiftState done [07:43:33]FM_GetShiftState done [07:43:33]req_shift_opened done [07:43:33]requested_item shift.open_date is exist - process it [07:43:33]req_shift_open_date [07:43:33]req_shift_open_date done [07:43:33]produce_requested_data done [07:43:33]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118365,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [07:43:33]process_action_free close_receipt [07:43:33]json_value_free [07:43:33]json_value_free done [07:43:33]process_json_proto returns [07:43:33]Send response to host [07:43:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118365,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [07:43:33]free response buf [07:43:33]execute_script done [07:43:33]execute_script returns [07:43:33]free content buf [07:43:33]Sock 7.Close socket [07:43:33]Sock 7.Thread stoped [07:43:34]accept exits with 9 [07:43:34]New connection [07:43:34]New thread 3067067748 created [07:43:34]Thread 3066924388 joined [07:43:34]Waiting for new connection... [07:43:34] Sock 9.Parse request [07:43:34]Sock 9.Check first char [07:43:34]Sock 9.First char is OK [07:43:34]request: POST /json_proto HTTP/1.0 [07:43:34]Method: POST [07:43:34]URL: /json_proto [07:43:34]Method is POST - this is cgi request [07:43:34]url: /json_proto [07:43:34]query_string will be loaded in cgi processing [07:43:34]execute_cgi json_proto POST (null) [07:43:34]execute_cgi path=json_proto method=POST [07:43:34]POST find Content-Length [07:43:34]Host: 172.17.45.7:8080 [07:43:34]Content-Length: 674 [07:43:34]Content-Type: application/json [07:43:34] [07:43:34]POST finish read [07:43:34]Found Content-Length = 674 [07:43:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:34]execute_script... [07:43:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:34]POST & json_proto [07:43:34]process_json_proto [07:43:34]json parsed OK: [07:43:34]protocol is kg_v1.0 [07:43:34]action value=close_receipt [07:43:34]process_action close_receipt [07:43:34]cmd_close_receipt [07:43:34]MH_GetDate [07:43:34]Write to MH i2c: F0 00 00 51 05 45 [07:43:34]Write i2c OK [07:43:34]MH_I2C_Read... [07:43:34]Read from MH i2c: F0 [07:43:34]MH_I2C_Read... [07:43:34]Read from MH i2c: F0 09 00 [07:43:34]MH_I2C_Read... [07:43:34]Read from MH i2c: F0 09 00 51 05 00 A7 F6 A5 66 90 0F 3E 66 39 [07:43:34]GetLastDocTimeStamp 1722152611 [07:43:34]current date 1722152615 [07:43:34]FM_GetShiftState [07:43:34]SAM_PROTO_GetShiftState [07:43:34]wFMCommunicate request_size=4 [07:43:34]MH_SAM_APDU [07:43:34]CAPDU: 80 13 01 00 [07:43:34]Write to MH i2c: E2 08 00 52 05 80 13 01 00 00 00 00 00 D4 [07:43:34]Write i2c OK [07:43:34]MH_I2C_Read... [07:43:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:34]Read from MH i2c: E2 [07:43:34]MH_I2C_Read... [07:43:34]Read from MH i2c: E2 0E 00 [07:43:34]MH_I2C_Read... [07:43:34]Read from MH i2c: E2 0E 00 52 05 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 AB [07:43:34]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:43:34]wFMCommunicate OK [07:43:34]SAM_PROTO_GetShiftState done [07:43:34]FM_GetShiftState done [07:43:34]opened in 1722125364 [07:43:34]opened+sec_in_day 1722211764 [07:43:34]quantity*price = 50063 [07:43:34]sum+1 = 50064 [07:43:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 35 28.07.2024 07:43 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118366 ФПД: 246801884900118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074335&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118366&fm=246801884900118&tin=02508201610067®Number=0000000000092660&sum=50000 [07:43:35]StoreToDocumentArchive [07:43:35]shift 433 fd 118366 [07:43:35]save to /storage/0433/doc_00118366 [07:43:35]save last doc name /storage/0433/doc_00118366 to /storage/kkm_last_doc_name [07:43:35]save OK [07:43:35]Clear old archive folders... [07:43:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:43:35]tlvbuf is 00142BF0 [07:43:35]SAM_PROTO_ClearQueue [07:43:35]wFMCommunicate request_size=4 [07:43:35]MH_SAM_APDU [07:43:35]CAPDU: 80 09 00 00 [07:43:35]Write to MH i2c: E2 08 00 5F 05 80 09 00 00 00 00 00 00 D6 [07:43:35]Write i2c OK [07:43:35]MH_I2C_Read... [07:43:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:43:35]Read from MH i2c: E2 [07:43:35]MH_I2C_Read... [07:43:35]Read from MH i2c: E2 03 00 [07:43:35]MH_I2C_Read... [07:43:35]Read from MH i2c: E2 03 00 5F 05 00 90 00 D8 [07:43:35]RAPDU: 90 00 [07:43:35]wFMCommunicate OK [07:43:35]SAM_PROTO_ClearQueue done [07:43:35]KKMCreateOFDPacket [07:43:35]OFDProtocolAddRootSTLVToBuf [07:43:35]FM_MakeSignedData [07:43:35]FM_MakeSignedData [07:43:35]SAM_PROTO_SignData [07:43:35]wFMCommunicate request_size=4 [07:43:35]MH_SAM_APDU [07:43:35]CAPDU: 80 0D 01 02 [07:43:35]Write to MH i2c: E2 08 00 60 05 80 0D 01 02 00 00 00 00 DE [07:43:35]Write i2c OK [07:43:35]MH_I2C_Read... [07:43:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:43:35]Read from MH i2c: E2 [07:43:35]MH_I2C_Read... [07:43:35]Read from MH i2c: E2 03 00 [07:43:35]MH_I2C_Read... [07:43:35]Read from MH i2c: E2 03 00 60 05 00 90 00 D9 [07:43:35]RAPDU: 90 00 [07:43:35]wFMCommunicate OK [07:43:35]wFMCommunicate request_size=255 [07:43:35]MH_SAM_APDU [07:43:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 A7 F6 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5E CE 01 00 35 04 06 00 E0 77 0A AD [07:43:35]Write to MH i2c: E2 02 01 61 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 A7 F6 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5E CE 01 00 35 04 06 00 E0 77 0A AD 00 00 AE [07:43:35]Write i2c OK [07:43:35]MH_I2C_Read... [07:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:36]Read from MH i2c: E2 [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: E2 03 00 [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: E2 03 00 61 05 00 90 00 DA [07:43:36]RAPDU: 90 00 [07:43:36]wFMCommunicate OK [07:43:36]wFMCommunicate request_size=7 [07:43:36]MH_SAM_APDU [07:43:36]CAPDU: 80 0D 02 02 02 EB 16 [07:43:36]Write to MH i2c: E2 0A 00 62 05 80 0D 02 02 02 00 EB 16 00 00 E6 [07:43:36]Write i2c OK [07:43:36]MH_I2C_Read... [07:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:36]Read from MH i2c: E2 [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: E2 03 00 [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: E2 03 00 62 05 00 90 00 DB [07:43:36]RAPDU: 90 00 [07:43:36]wFMCommunicate OK [07:43:36]wFMCommunicate request_size=4 [07:43:36]MH_SAM_APDU [07:43:36]CAPDU: 80 0D 03 02 [07:43:36]Write to MH i2c: E2 08 00 63 05 80 0D 03 02 00 00 00 00 E3 [07:43:36]Write i2c OK [07:43:36]MH_I2C_Read... [07:43:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:43:36]Read from MH i2c: E2 [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: E2 0B 00 [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: E2 0B 00 63 05 00 1F 03 56 11 67 EE 82 37 90 00 7B [07:43:36]RAPDU: 1F 03 56 11 67 EE 82 37 90 00 [07:43:36]wFMCommunicate OK [07:43:36]SAM_PROTO_SignData done [07:43:36]FM_MakeSignedData done [07:43:36]CreateOFDProtocolMessage [07:43:36]wFMCommunicate request_size=4 [07:43:36]MH_SAM_APDU [07:43:36]CAPDU: 80 11 00 00 [07:43:36]Write to MH i2c: E2 08 00 64 05 80 11 00 00 00 00 00 00 E3 [07:43:36]Write i2c OK [07:43:36]MH_I2C_Read... [07:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:36]Read from MH i2c: E2 [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: E2 17 00 [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: E2 17 00 64 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3E [07:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:43:36]wFMCommunicate OK [07:43:36]CreateOFDProtocolMessage done [07:43:36]OFDSenderStorePacket 118366 [07:43:36]StoreOFDPacket docnum=118366 [07:43:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B6 AA 04 01 92 D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 A7 F6 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5E CE 01 00 35 04 06 00 E0 77 0A AD EB 16 1F 03 56 11 67 EE 82 37 [07:43:36]CheckFolder [07:43:36]dirname=/storage/ofd_packets [07:43:36]CheckFolder done [07:43:36]ProducePacketName [07:43:36]name=ofd_packets/00118366 [07:43:36]NVStorageSaveData ofd_packets/00118366 [07:43:36]File name is /storage/ofd_packets/00118366 [07:43:36]Write 298 bytes [07:43:36]NVStorageSaveData done [07:43:36]OFDSenderStorePacket done [07:43:36]KKMCreateOFDPacket done [07:43:36]NVStorageSaveData kkm_last_timestamp [07:43:36]File name is /storage/kkm_last_timestamp [07:43:36]Write 4 bytes [07:43:36]NVStorageSaveData done [07:43:36]ExternCall_PrintAddStr [07:43:36]wPrintStart [07:43:36]Write to MH i2c: 01 00 00 65 05 6A [07:43:36]Write i2c OK [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: 01 [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: 01 07 00 [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: 01 07 00 65 05 00 00 00 00 00 FF 0F 7F [07:43:36]RasterBufferAndPrint [07:43:36]line Счет N : (1)949240 [07:43:36]line ИНН: 02508201610067 [07:43:36]line Контрольно-Кассовый Чек [07:43:36]line ПРОДАЖА [07:43:36]line ТРК (МРК, ГНК) : 21 [07:43:36]line Товар: 2710194800 [07:43:36]line ДТ-К-5 [07:43:36]line 6.570 * 76.20 [07:43:36]line = 500.63 [07:43:36]line НДС 12% НСП 1% [07:43:36]line > о реализуемом товаре [07:43:36]line ОКРУГЛЕНИЕ: -0.63 [07:43:36]line ИТОГО: 500.00 [07:43:36]line Внесено: 500.00 [07:43:36]line СДАЧА: 0.00 [07:43:36]line НСП 1% : 4.43 [07:43:36]line НДС 12% : 53.16 [07:43:36]line Наличными: 500.00 [07:43:36]line Безнал.: 0.00 [07:43:36]line Место: АЗС № 134 "Партнер Нефть" [07:43:36]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:43:36]line СНО: Общий режим [07:43:36]line Чек 35 28.07.2024 07:43 [07:43:36]line Смена: 433 ФФД: 1.0 [07:43:36]line ЗНМ: 0300000044 [07:43:36]line РНМ: 0000000000092660 [07:43:36]line Версия ККМ: 001 [07:43:36]line ФМ: 0000000000874939 [07:43:36]line ФД: 118366 [07:43:36]line ФПД: 246801884900118 [07:43:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074335&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118366&fm=246801884900118&tin=02508201610067®Number=0000000000092660&sum=50000 [07:43:36]OFD Sender: Processing packet 118366 [packets to send 86, broken 85] [07:43:36]ProducePacketName [07:43:36]name=ofd_packets/00118366 [07:43:36]OFD Sender: To server: pG, [07:43:36]CommunicateWithHost lk.salyk.kg:30040 [07:43:36]ConnectInit lk.salyk.kg [07:43:36]written 0, free lines is 4095 [07:43:36]Connected sock=10 [07: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 39 33 39 0C 01 00 00 B6 AA 04 01 92 D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 A7 F6 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5E CE 01 00 35 04 06 00 E0 77 0A AD EB 16 1F 03 56 11 67 EE 82 37 [07:43:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 52 D8 47 00 71 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 39 33 39 10 04 04 00 5E CE 01 00 F4 03 04 00 39 A4 A5 66 B6 04 01 00 00 C1 45 CB 8F F1 DB B2 56 [07:43:36]CommunicateWithHost err = 0 [07:43:36]CheckOFDResponse [07:43:36]1017 (14) - 77093643461234 [07:43:36]1041 (16) - 0000000000874939 [07:43:36]1040 (4) - 118366 [07:43:36]1012 (4) - 28.07.2024 01:51 [07:43:36]1206 (1) - 0 [07:43:36]OFD Sender: Remove packet 118366 [07:43:36]ProducePacketName [07:43:36]name=ofd_packets/00118366 [07:43:36]NVStorageDeleteData [07:43:37]Write to MH i2c: 01 00 00 8F 05 94 [07:43:37]Write i2c OK [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: 01 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: 01 07 00 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: 01 07 00 8F 05 00 00 00 00 00 EF 0C 96 [07:43:37]RasterBufferAndPrint [07:43:37]line [07:43:37]line [07:43:37]line [07:43:37]line [07:43:37]line [07:43:37]written 0, free lines is 3327 [07:43:37]MH_Cut [07:43:37]Write to MH i2c: D1 01 00 96 05 01 6D [07:43:37]Write i2c OK [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: D1 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: D1 01 00 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: D1 01 00 96 05 00 6C [07:43:37]Write to MH i2c: 01 00 00 97 05 9C [07:43:37]Write i2c OK [07:43:37]MH_I2C_Read... [07:43:37]OFD Sender: No OFD packet to send [07:43:37]*** Cut start [07:43:37]*** Partial cut [07:43:37]*** CUTSNS_PIN = 1 [07:43:37]*** CUTSNS_PIN = 0 [07:43:38]*** Brake cut motor [07:43:38]Read from MH i2c: 01 [07:43:38]MH_I2C_Read... [07:43:38]*** Stop cut motor [07:43:38]*** Cut end [07:43:38]Read from MH i2c: 01 07 00 [07:43:38]MH_I2C_Read... [07:43:38]Read from MH i2c: 01 07 00 97 05 00 00 00 00 00 FF 0F B1 [07:43:38]process_action close_receipt done [07:43:38]requested_data is exist [07:43:38]produce_requested_data [07:43:38]requested_item fm.sn is exist - process it [07:43:38]wFMCommunicate request_size=4 [07:43:38]MH_SAM_APDU [07:43:38]CAPDU: 80 11 00 00 [07:43:38]Write to MH i2c: E2 08 00 98 05 80 11 00 00 00 00 00 00 17 [07:43:38]Write i2c OK [07:43:38]MH_I2C_Read... [07:43:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:38]Read from MH i2c: E2 [07:43:38]MH_I2C_Read... [07:43:38]Read from MH i2c: E2 17 00 [07:43:38]MH_I2C_Read... [07:43:38]Read from MH i2c: E2 17 00 98 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 72 [07:43:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:43:38]wFMCommunicate OK [07:43:38]requested_item fd.num is exist - process it [07:43:38]SAM_PROTO_GetFieldsCounters [07:43:38]wFMCommunicate request_size=4 [07:43:38]MH_SAM_APDU [07:43:38]CAPDU: 80 13 00 00 [07:43:38]Write to MH i2c: E2 08 00 99 05 80 13 00 00 00 00 00 00 1A [07:43:38]Write i2c OK [07:43:38]MH_I2C_Read... [07:43:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:38]Read from MH i2c: E2 [07:43:38]MH_I2C_Read... [07:43:38]Read from MH i2c: E2 62 00 [07:43:38]MH_I2C_Read... [07:43:38]Read from MH i2c: E2 62 00 99 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5E CE 01 00 0E 04 04 00 B1 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 [07:43:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5E CE 01 00 0E 04 04 00 B1 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 [07:43:38]wFMCommunicate OK [07:43:38]SAM_PROTO_GetFieldsCounters done [07:43:38]requested_item shift.num is exist - process it [07:43:38]requested_item shift.opened is exist - process it [07:43:38]req_shift_opened [07:43:38]FM_GetShiftState [07:43:38]SAM_PROTO_GetShiftState [07:43:38]wFMCommunicate request_size=4 [07:43:38]MH_SAM_APDU [07:43:38]CAPDU: 80 13 01 00 [07:43:38]Write to MH i2c: E2 08 00 9A 05 80 13 01 00 00 00 00 00 1C [07:43:38]Write i2c OK [07:43:38]MH_I2C_Read... [07:43:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:38]Read from MH i2c: E2 [07:43:38]MH_I2C_Read... [07:43:38]Read from MH i2c: E2 0E 00 [07:43:38]MH_I2C_Read... [07:43:38]Read from MH i2c: E2 0E 00 9A 05 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 F3 [07:43:38]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:43:38]wFMCommunicate OK [07:43:38]SAM_PROTO_GetShiftState done [07:43:38]FM_GetShiftState done [07:43:38]req_shift_opened done [07:43:38]requested_item shift.open_date is exist - process it [07:43:38]req_shift_open_date [07:43:38]req_shift_open_date done [07:43:38]produce_requested_data done [07:43:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118366,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [07:43:38]process_action_free close_receipt [07:43:38]json_value_free [07:43:38]json_value_free done [07:43:38]process_json_proto returns [07:43:38]Send response to host [07:43:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118366,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [07:43:38]free response buf [07:43:38]execute_script done [07:43:38]execute_script returns [07:43:38]free content buf [07:43:38]Sock 9.Close socket [07:43:38]Sock 9.Thread stoped [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:57]OFD Sender: No OFD packet to send [07:44:02]OFD Sender: No OFD packet to send [07:44:07]OFD Sender: No OFD packet to send [07:44:12]OFD Sender: No OFD packet to send [07:44:17]OFD Sender: No OFD packet to send [07:44:22]OFD Sender: No OFD packet to send [07:44:27]OFD Sender: No OFD packet to send [07:44:32]OFD Sender: No OFD packet to send [07:44:37]OFD Sender: No OFD packet to send [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44:57]OFD Sender: No OFD packet to send [07:45:02]OFD Sender: No OFD packet to send [07:45:07]OFD Sender: No OFD packet to send [07:45:12]OFD Sender: No OFD packet to send [07:45:17]OFD Sender: No OFD packet to send [07:45:22]OFD Sender: No OFD packet to send [07:45:27]OFD Sender: No OFD packet to send [07:45:32]OFD Sender: No OFD packet to send [07:45:37]OFD Sender: No OFD packet to send [07:45:42]accept exits with 7 [07:45:42]New connection [07:45:42]New thread 3066924388 created [07:45:42]Thread 3067067748 joined [07:45:42]Waiting for new connection... [07:45:42] Sock 7.Parse request [07:45:42]Sock 7.Check first char [07:45:42]Sock 7.First char is OK [07:45:42]request: POST /json_proto HTTP/1.0 [07:45:42]Method: POST [07:45:42]URL: /json_proto [07:45:42]Method is POST - this is cgi request [07:45:42]url: /json_proto [07:45:42]query_string will be loaded in cgi processing [07:45:42]execute_cgi json_proto POST (null) [07:45:42]execute_cgi path=json_proto method=POST [07:45:42]POST find Content-Length [07:45:42]Host: 172.17.45.7:8080 [07:45:42]Content-Length: 677 [07:45:42]Content-Type: application/json [07:45:42] [07:45:42]POST finish read [07:45:42]Found Content-Length = 677 [07:45:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:45:42]execute_script... [07:45: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)949241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:45:42]POST & json_proto [07:45:42]process_json_proto [07:45:42]json parsed OK: [07:45:42]protocol is kg_v1.0 [07:45:42]action value=close_receipt [07:45:42]process_action close_receipt [07:45:42]cmd_close_receipt [07:45:42]MH_GetDate [07:45:42]Write to MH i2c: F0 00 00 9B 05 8F [07:45:42]Write i2c OK [07:45:42]MH_I2C_Read... [07:45:42]Read from MH i2c: F0 [07:45:42]MH_I2C_Read... [07:45:42]Read from MH i2c: F0 09 00 [07:45:42]MH_I2C_Read... [07:45:42]Read from MH i2c: F0 09 00 9B 05 00 28 F7 A5 66 90 0F 3E 66 05 [07:45:42]GetLastDocTimeStamp 1722152615 [07:45:42]current date 1722152744 [07:45:42]FM_GetShiftState [07:45:42]SAM_PROTO_GetShiftState [07:45:42]wFMCommunicate request_size=4 [07:45:42]MH_SAM_APDU [07:45:42]CAPDU: 80 13 01 00 [07:45:42]Write to MH i2c: E2 08 00 9C 05 80 13 01 00 00 00 00 00 1E [07:45:42]Write i2c OK [07:45:42]MH_I2C_Read... [07:45:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:42]Read from MH i2c: E2 [07:45:42]MH_I2C_Read... [07:45:42]Read from MH i2c: E2 0E 00 [07:45:42]MH_I2C_Read... [07:45:42]Read from MH i2c: E2 0E 00 9C 05 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 F5 [07:45:42]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:45:42]wFMCommunicate OK [07:45:42]SAM_PROTO_GetShiftState done [07:45:42]FM_GetShiftState done [07:45:42]opened in 1722125364 [07:45:42]opened+sec_in_day 1722211764 [07:45:42]quantity*price = 50036 [07:45:42]sum+1 = 50037 [07:45:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 36 28.07.2024 07:45 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118367 ФПД: 20332435106500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074544&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118367&fm=20332435106500&tin=02508201610067®Number=0000000000092660&sum=50000 [07:45:43]StoreToDocumentArchive [07:45:43]shift 433 fd 118367 [07:45:43]save to /storage/0433/doc_00118367 [07:45:43]save last doc name /storage/0433/doc_00118367 to /storage/kkm_last_doc_name [07:45:43]save OK [07:45:43]Clear old archive folders... [07:45:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:45:43]tlvbuf is 0012A4F0 [07:45:43]SAM_PROTO_ClearQueue [07:45:43]wFMCommunicate request_size=4 [07:45:43]MH_SAM_APDU [07:45:43]CAPDU: 80 09 00 00 [07:45:43]Write to MH i2c: E2 08 00 A9 05 80 09 00 00 00 00 00 00 20 [07:45:43]Write i2c OK [07:45:43]MH_I2C_Read... [07:45:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:45:43]Read from MH i2c: E2 [07:45:43]MH_I2C_Read... [07:45:43]Read from MH i2c: E2 03 00 [07:45:43]MH_I2C_Read... [07:45:43]Read from MH i2c: E2 03 00 A9 05 00 90 00 22 [07:45:43]RAPDU: 90 00 [07:45:43]wFMCommunicate OK [07:45:43]SAM_PROTO_ClearQueue done [07:45:43]KKMCreateOFDPacket [07:45:43]OFDProtocolAddRootSTLVToBuf [07:45:43]FM_MakeSignedData [07:45:43]FM_MakeSignedData [07:45:43]SAM_PROTO_SignData [07:45:43]wFMCommunicate request_size=4 [07:45:43]MH_SAM_APDU [07:45:43]CAPDU: 80 0D 01 02 [07:45:43]Write to MH i2c: E2 08 00 AA 05 80 0D 01 02 00 00 00 00 28 [07:45:43]Write i2c OK [07:45:43]MH_I2C_Read... [07:45:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:45:43]Read from MH i2c: E2 [07:45:43]MH_I2C_Read... [07:45:43]Read from MH i2c: E2 03 00 [07:45:43]MH_I2C_Read... [07:45:43]Read from MH i2c: E2 03 00 AA 05 00 90 00 23 [07:45:43]RAPDU: 90 00 [07:45:43]wFMCommunicate OK [07:45:43]wFMCommunicate request_size=255 [07:45:43]MH_SAM_APDU [07:45: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 28 F7 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5F CE 01 00 35 04 06 00 12 [07:45:43]Write to MH i2c: E2 02 01 AB 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 28 F7 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5F CE 01 00 35 04 06 00 12 00 00 EC [07:45:43]Write i2c OK [07:45:43]MH_I2C_Read... [07:45:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:44]Read from MH i2c: E2 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: E2 03 00 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: E2 03 00 AB 05 00 90 00 24 [07:45:44]RAPDU: 90 00 [07:45:44]wFMCommunicate OK [07:45:44]wFMCommunicate request_size=10 [07:45:44]MH_SAM_APDU [07:45:44]CAPDU: 80 0D 02 02 05 7E 03 92 6A C4 [07:45:44]Write to MH i2c: E2 0D 00 AC 05 80 0D 02 02 05 00 7E 03 92 6A C4 00 00 76 [07:45:44]Write i2c OK [07:45:44]MH_I2C_Read... [07:45:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:44]Read from MH i2c: E2 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: E2 03 00 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: E2 03 00 AC 05 00 90 00 25 [07:45:44]RAPDU: 90 00 [07:45:44]wFMCommunicate OK [07:45:44]wFMCommunicate request_size=4 [07:45:44]MH_SAM_APDU [07:45:44]CAPDU: 80 0D 03 02 [07:45:44]Write to MH i2c: E2 08 00 AD 05 80 0D 03 02 00 00 00 00 2D [07:45:44]Write i2c OK [07:45:44]MH_I2C_Read... [07:45:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:45:44]Read from MH i2c: E2 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: E2 0B 00 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: E2 0B 00 AD 05 00 CC 3F 4A F2 01 6D C9 D2 90 00 7E [07:45:44]RAPDU: CC 3F 4A F2 01 6D C9 D2 90 00 [07:45:44]wFMCommunicate OK [07:45:44]SAM_PROTO_SignData done [07:45:44]FM_MakeSignedData done [07:45:44]CreateOFDProtocolMessage [07:45:44]wFMCommunicate request_size=4 [07:45:44]MH_SAM_APDU [07:45:44]CAPDU: 80 11 00 00 [07:45:44]Write to MH i2c: E2 08 00 AE 05 80 11 00 00 00 00 00 00 2D [07:45:44]Write i2c OK [07:45:44]MH_I2C_Read... [07:45:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:44]Read from MH i2c: E2 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: E2 17 00 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: E2 17 00 AE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 88 [07:45:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:45:44]wFMCommunicate OK [07:45:44]CreateOFDProtocolMessage done [07:45:44]OFDSenderStorePacket 118367 [07:45:44]StoreOFDPacket docnum=118367 [07:45:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A0 54 07 01 D7 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 28 F7 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5F CE 01 00 35 04 06 00 12 7E 03 92 6A C4 CC 3F 4A F2 01 6D C9 D2 [07:45:44]CheckFolder [07:45:44]dirname=/storage/ofd_packets [07:45:44]CheckFolder done [07:45:44]ProducePacketName [07:45:44]name=ofd_packets/00118367 [07:45:44]NVStorageSaveData ofd_packets/00118367 [07:45:44]File name is /storage/ofd_packets/00118367 [07:45:44]Write 301 bytes [07:45:44]NVStorageSaveData done [07:45:44]OFDSenderStorePacket done [07:45:44]KKMCreateOFDPacket done [07:45:44]NVStorageSaveData kkm_last_timestamp [07:45:44]File name is /storage/kkm_last_timestamp [07:45:44]Write 4 bytes [07:45:44]NVStorageSaveData done [07:45:44]ExternCall_PrintAddStr [07:45:44]wPrintStart [07:45:44]Write to MH i2c: 01 00 00 AF 05 B4 [07:45:44]Write i2c OK [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: 01 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: 01 07 00 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: 01 07 00 AF 05 00 00 00 00 00 FF 0F C9 [07:45:44]RasterBufferAndPrint [07:45:44]line Счет N : (1)949241 [07:45:44]line ИНН: 02508201610067 [07:45:44]line Контрольно-Кассовый Чек [07:45:44]line ПРОДАЖА [07:45:44]line ТРК (МРК, ГНК) : 61 [07:45:44]line Товар: 2710124130 [07:45:44]line Аи-92-К-4 [07:45:44]line 7.380 * 67.80 [07:45:44]line = 500.36 [07:45:44]line НДС 12% НСП 1% [07:45:44]line > о реализуемом товаре [07:45:44]line ОКРУГЛЕНИЕ: -0.36 [07:45:44]line ИТОГО: 500.00 [07:45:44]line Внесено: 500.00 [07:45:44]line СДАЧА: 0.00 [07:45:44]line НСП 1% : 4.43 [07:45:44]line НДС 12% : 53.14 [07:45:44]line Наличными: 500.00 [07:45:44]line Безнал.: 0.00 [07:45:44]line Место: АЗС № 134 "Партнер Нефть" [07:45:44]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:45:44]line СНО: Общий режим [07:45:44]line Чек 36 28.07.2024 07:45 [07:45:44]line Смена: 433 ФФД: 1.0 [07:45:44]line ЗНМ: 0300000044 [07:45:44]line РНМ: 0000000000092660 [07:45:44]line Версия ККМ: 001 [07:45:44]line ФМ: 0000000000874939 [07:45:44]line ФД: 118367 [07:45:44]line ФПД: 20332435106500 [07:45:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074544&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118367&fm=20332435106500&tin=02508201610067®Number=0000000000092660&sum=50000 [07:45:44]written 0, free lines is 4095 [07:45:44]OFD Sender: Processing packet 118367 [packets to send 86, broken 85] [07:45:44]ProducePacketName [07:45:44]name=ofd_packets/00118367 [07:45:44]OFD Sender: To server: pG, [07:45:44]CommunicateWithHost lk.salyk.kg:30040 [07:45:44]ConnectInit lk.salyk.kg [07:45:44]Connected sock=10 [07:45:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A0 54 07 01 D7 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 28 F7 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5F CE 01 00 35 04 06 00 12 7E 03 92 6A C4 CC 3F 4A F2 01 6D C9 D2 [07:45:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9E 82 47 00 9A 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 39 33 39 10 04 04 00 5F CE 01 00 F4 03 04 00 B8 A4 A5 66 B6 04 01 00 00 07 A1 FC 4F FE A5 73 0E [07:45:44]CommunicateWithHost err = 0 [07:45:44]CheckOFDResponse [07:45:44]1017 (14) - 77093643461234 [07:45:44]1041 (16) - 0000000000874939 [07:45:44]1040 (4) - 118367 [07:45:44]1012 (4) - 28.07.2024 01:54 [07:45:44]1206 (1) - 0 [07:45:44]OFD Sender: Remove packet 118367 [07:45:44]ProducePacketName [07:45:44]name=ofd_packets/00118367 [07:45:44]NVStorageDeleteData [07:45:44]Write to MH i2c: 01 00 00 D9 05 DE [07:45:44]Write i2c OK [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: 01 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: 01 07 00 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: 01 07 00 D9 05 00 00 00 00 00 DC 0C CD [07:45:44]RasterBufferAndPrint [07:45:44]line [07:45:44]line [07:45:44]line [07:45:44]line [07:45:44]line [07:45:44]written 0, free lines is 3298 [07:45:44]MH_Cut [07:45:44]Write to MH i2c: D1 01 00 E0 05 01 B7 [07:45:44]Write i2c OK [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: D1 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: D1 01 00 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: D1 01 00 E0 05 00 B6 [07:45:44]Write to MH i2c: 01 00 00 E1 05 E6 [07:45:44]Write i2c OK [07:45:44]MH_I2C_Read... [07:45:45]OFD Sender: No OFD packet to send [07:45:45]*** Cut start [07:45:45]*** Partial cut [07:45:45]*** CUTSNS_PIN = 1 [07:45:45]*** CUTSNS_PIN = 0 [07:45:45]*** Brake cut motor [07:45:46]Read from MH i2c: 01 [07:45:46]MH_I2C_Read... [07:45:46]*** Stop cut motor [07:45:46]*** Cut end [07:45:46]Read from MH i2c: 01 07 00 [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: 01 07 00 E1 05 00 00 00 00 00 FF 0F FB [07:45:46]process_action close_receipt done [07:45:46]requested_data is exist [07:45:46]produce_requested_data [07:45:46]requested_item fm.sn is exist - process it [07:45:46]wFMCommunicate request_size=4 [07:45:46]MH_SAM_APDU [07:45:46]CAPDU: 80 11 00 00 [07:45:46]Write to MH i2c: E2 08 00 E2 05 80 11 00 00 00 00 00 00 61 [07:45:46]Write i2c OK [07:45:46]MH_I2C_Read... [07:45:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:46]Read from MH i2c: E2 [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: E2 17 00 [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: E2 17 00 E2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BC [07:45:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:45:46]wFMCommunicate OK [07:45:46]requested_item fd.num is exist - process it [07:45:46]SAM_PROTO_GetFieldsCounters [07:45:46]wFMCommunicate request_size=4 [07:45:46]MH_SAM_APDU [07:45:46]CAPDU: 80 13 00 00 [07:45:46]Write to MH i2c: E2 08 00 E3 05 80 13 00 00 00 00 00 00 64 [07:45:46]Write i2c OK [07:45:46]MH_I2C_Read... [07:45:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:45:46]Read from MH i2c: E2 [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: E2 62 00 [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: E2 62 00 E3 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5F CE 01 00 0E 04 04 00 B1 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 D7 [07:45:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5F CE 01 00 0E 04 04 00 B1 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 [07:45:46]wFMCommunicate OK [07:45:46]SAM_PROTO_GetFieldsCounters done [07:45:46]requested_item shift.num is exist - process it [07:45:46]requested_item shift.opened is exist - process it [07:45:46]req_shift_opened [07:45:46]FM_GetShiftState [07:45:46]SAM_PROTO_GetShiftState [07:45:46]wFMCommunicate request_size=4 [07:45:46]MH_SAM_APDU [07:45:46]CAPDU: 80 13 01 00 [07:45:46]Write to MH i2c: E2 08 00 E4 05 80 13 01 00 00 00 00 00 66 [07:45:46]Write i2c OK [07:45:46]MH_I2C_Read... [07:45:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:46]Read from MH i2c: E2 [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: E2 0E 00 [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: E2 0E 00 E4 05 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 3D [07:45:46]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:45:46]wFMCommunicate OK [07:45:46]SAM_PROTO_GetShiftState done [07:45:46]FM_GetShiftState done [07:45:46]req_shift_opened done [07:45:46]requested_item shift.open_date is exist - process it [07:45:46]req_shift_open_date [07:45:46]req_shift_open_date done [07:45:46]produce_requested_data done [07:45:46]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118367,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [07:45:46]process_action_free close_receipt [07:45:46]json_value_free [07:45:46]json_value_free done [07:45:46]process_json_proto returns [07:45:46]Send response to host [07:45:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118367,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [07:45:46]free response buf [07:45:46]execute_script done [07:45:46]execute_script returns [07:45:46]free content buf [07:45:46]Sock 7.Close socket [07:45:46]Sock 7.Thread stoped [07:45:50]OFD Sender: No OFD packet to send [07:45:55]OFD Sender: No OFD packet to send [07:46:00]OFD Sender: No OFD packet to send [07:46:05]OFD Sender: No OFD packet to send [07:46:10]OFD Sender: No OFD packet to send [07:46:15]OFD Sender: No OFD packet to send [07:46:20]OFD Sender: No OFD packet to send [07:46:25]OFD Sender: No OFD packet to send [07:46:30]OFD Sender: No OFD packet to send [07:46:35]OFD Sender: No OFD packet to send [07:46:40]OFD Sender: No OFD packet to send [07:46:45]OFD Sender: No OFD packet to send [07:46:50]OFD Sender: No OFD packet to send [07:46:55]OFD Sender: No OFD packet to send [07:47:00]OFD Sender: No OFD packet to send [07:47:05]OFD Sender: No OFD packet to send [07:47:10]OFD Sender: No OFD packet to send [07:47:15]OFD Sender: No OFD packet to send [07:47:20]OFD Sender: No OFD packet to send [07:47:25]OFD Sender: No OFD packet to send [07:47:30]OFD Sender: No OFD packet to send [07:47:35]OFD Sender: No OFD packet to send [07:47:40]OFD Sender: No OFD packet to send [07:47:45]OFD Sender: No OFD packet to send [07:47:50]OFD Sender: No OFD packet to send [07:47:55]OFD Sender: No OFD packet to send [07:48:00]OFD Sender: No OFD packet to send [07:48:05]OFD Sender: No OFD packet to send [07:48:10]OFD Sender: No OFD packet to send [07:48:15]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:40]OFD Sender: No OFD packet to send [07:48:45]OFD Sender: No OFD packet to send [07:48:50]OFD Sender: No OFD packet to send [07:48:55]OFD Sender: No OFD packet to send [07:49:00]OFD Sender: No OFD packet to send [07:49:05]OFD Sender: No OFD packet to send [07:49:10]OFD Sender: No OFD packet to send [07:49:15]OFD Sender: No OFD packet to send [07:49:20]OFD Sender: No OFD packet to send [07:49:25]OFD Sender: No OFD packet to send [07:49:30]OFD Sender: No OFD packet to send [07:49:35]OFD Sender: No OFD packet to send [07:49:40]OFD Sender: No OFD packet to send [07:49:45]OFD Sender: No OFD packet to send [07:49:50]OFD Sender: No OFD packet to send [07:49:55]OFD Sender: No OFD packet to send [07:50:00]OFD Sender: No OFD packet to send [07:50:05]OFD Sender: No OFD packet to send [07:50:10]OFD Sender: No OFD packet to send [07:50:15]OFD Sender: No OFD packet to send [07:50:20]OFD Sender: No OFD packet to send [07:50:25]OFD Sender: No OFD packet to send [07:50:30]OFD Sender: No OFD packet to send [07:50:35]OFD Sender: No OFD packet to send [07:50:40]OFD Sender: No OFD packet to send [07:50:45]OFD Sender: No OFD packet to send [07:50:50]OFD Sender: No OFD packet to send [07:50:55]OFD Sender: No OFD packet to send [07:51:00]OFD Sender: No OFD packet to send [07:51:05]OFD Sender: No OFD packet to send [07:51:10]OFD Sender: No OFD packet to send [07:51:15]OFD Sender: No OFD packet to send [07:51:20]OFD Sender: No OFD packet to send [07:51:25]OFD Sender: No OFD packet to send [07:51:30]OFD Sender: No OFD packet to send [07:51:35]OFD Sender: No OFD packet to send [07:51:40]OFD Sender: No OFD packet to send [07:51:45]OFD Sender: No OFD packet to send [07:51:50]OFD Sender: No OFD packet to send [07:51:55]OFD Sender: No OFD packet to send [07:52:00]OFD Sender: No OFD packet to send [07:52:05]OFD Sender: No OFD packet to send [07:52:10]OFD Sender: No OFD packet to send [07:52:15]OFD Sender: No OFD packet to send [07:52:20]OFD Sender: No OFD packet to send [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:45]OFD Sender: No OFD packet to send [07:52:50]OFD Sender: No OFD packet to send [07:52:55]OFD Sender: No OFD packet to send [07:53:00]OFD Sender: No OFD packet to send [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:11]accept exits with 9 [07:54:11]New connection [07:54:11]New thread 3067067748 created [07:54:11]Thread 3066924388 joined [07:54:11]Waiting for new connection... [07:54:11] Sock 9.Parse request [07:54:11]Sock 9.Check first char [07:54:11]Sock 9.First char is OK [07:54:11]request: POST /json_proto HTTP/1.0 [07:54:11]Method: POST [07:54:11]URL: /json_proto [07:54:11]Method is POST - this is cgi request [07:54:11]url: /json_proto [07:54:11]query_string will be loaded in cgi processing [07:54:11]execute_cgi json_proto POST (null) [07:54:11]execute_cgi path=json_proto method=POST [07:54:11]POST find Content-Length [07:54:11]Host: 172.17.45.7:8080 [07:54:11]Content-Length: 682 [07:54:11]Content-Type: application/json [07:54:11] [07:54:11]POST finish read [07:54:11]Found Content-Length = 682 [07:54:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:11]execute_script... [07:54: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)949242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:11]POST & json_proto [07:54:11]process_json_proto [07:54:11]json parsed OK: [07:54:11]protocol is kg_v1.0 [07:54:11]action value=close_receipt [07:54:11]process_action close_receipt [07:54:11]cmd_close_receipt [07:54:11]MH_GetDate [07:54:11]Write to MH i2c: F0 00 00 E5 05 D9 [07:54:11]Write i2c OK [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: F0 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: F0 09 00 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: F0 09 00 E5 05 00 24 F9 A5 66 90 0F 3E 66 4D [07:54:11]GetLastDocTimeStamp 1722152744 [07:54:11]current date 1722153252 [07:54:11]FM_GetShiftState [07:54:11]SAM_PROTO_GetShiftState [07:54:11]wFMCommunicate request_size=4 [07:54:11]MH_SAM_APDU [07:54:11]CAPDU: 80 13 01 00 [07:54:11]Write to MH i2c: E2 08 00 E6 05 80 13 01 00 00 00 00 00 68 [07:54:11]Write i2c OK [07:54:11]MH_I2C_Read... [07:54:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:11]Read from MH i2c: E2 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: E2 0E 00 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: E2 0E 00 E6 05 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 3F [07:54:11]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:54:11]wFMCommunicate OK [07:54:11]SAM_PROTO_GetShiftState done [07:54:11]FM_GetShiftState done [07:54:11]opened in 1722125364 [07:54:11]opened+sec_in_day 1722211764 [07:54:11]quantity*price = 100005 [07:54:11]sum+1 = 100006 [07:54:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 37 28.07.2024 07:54 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118368 ФПД: 190368558499290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T075413&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118368&fm=190368558499290&tin=02508201610067®Number=0000000000092660&sum=100000 [07:54:12]StoreToDocumentArchive [07:54:12]shift 433 fd 118368 [07:54:12]save to /storage/0433/doc_00118368 [07:54:12]save last doc name /storage/0433/doc_00118368 to /storage/kkm_last_doc_name [07:54:12]save OK [07:54:12]Clear old archive folders... [07:54:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:54:12]tlvbuf is 00142390 [07:54:12]SAM_PROTO_ClearQueue [07:54:12]wFMCommunicate request_size=4 [07:54:12]MH_SAM_APDU [07:54:12]CAPDU: 80 09 00 00 [07:54:12]Write to MH i2c: E2 08 00 F3 05 80 09 00 00 00 00 00 00 6A [07:54:12]Write i2c OK [07:54:12]MH_I2C_Read... [07:54:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:12]Read from MH i2c: E2 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 03 00 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 03 00 F3 05 00 90 00 6C [07:54:12]RAPDU: 90 00 [07:54:12]wFMCommunicate OK [07:54:12]SAM_PROTO_ClearQueue done [07:54:12]KKMCreateOFDPacket [07:54:12]OFDProtocolAddRootSTLVToBuf [07:54:12]FM_MakeSignedData [07:54:12]FM_MakeSignedData [07:54:12]SAM_PROTO_SignData [07:54:12]wFMCommunicate request_size=4 [07:54:12]MH_SAM_APDU [07:54:12]CAPDU: 80 0D 01 02 [07:54:12]Write to MH i2c: E2 08 00 F4 05 80 0D 01 02 00 00 00 00 72 [07:54:12]Write i2c OK [07:54:12]MH_I2C_Read... [07:54:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:12]Read from MH i2c: E2 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 03 00 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 03 00 F4 05 00 90 00 6D [07:54:12]RAPDU: 90 00 [07:54:12]wFMCommunicate OK [07:54:12]wFMCommunicate request_size=255 [07:54:12]MH_SAM_APDU [07:54: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 25 F9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 60 CE 01 00 35 04 06 00 AD [07:54:12]Write to MH i2c: E2 02 01 F5 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 25 F9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 60 CE 01 00 35 04 06 00 AD 00 00 61 [07:54:12]Write i2c OK [07:54:12]MH_I2C_Read... [07:54:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:12]Read from MH i2c: E2 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 03 00 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 03 00 F5 05 00 90 00 6E [07:54:12]RAPDU: 90 00 [07:54:12]wFMCommunicate OK [07:54:12]wFMCommunicate request_size=10 [07:54:12]MH_SAM_APDU [07:54:12]CAPDU: 80 0D 02 02 05 23 A2 4E 45 DA [07:54:12]Write to MH i2c: E2 0D 00 F6 05 80 0D 02 02 05 00 23 A2 4E 45 DA 00 00 B1 [07:54:12]Write i2c OK [07:54:12]MH_I2C_Read... [07:54:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:12]Read from MH i2c: E2 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 03 00 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 03 00 F6 05 00 90 00 6F [07:54:12]RAPDU: 90 00 [07:54:12]wFMCommunicate OK [07:54:12]wFMCommunicate request_size=4 [07:54:12]MH_SAM_APDU [07:54:12]CAPDU: 80 0D 03 02 [07:54:12]Write to MH i2c: E2 08 00 F7 05 80 0D 03 02 00 00 00 00 77 [07:54:12]Write i2c OK [07:54:12]MH_I2C_Read... [07:54:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:13]Read from MH i2c: E2 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: E2 0B 00 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: E2 0B 00 F7 05 00 73 08 0E 96 6C EC DA 9C 90 00 65 [07:54:13]RAPDU: 73 08 0E 96 6C EC DA 9C 90 00 [07:54:13]wFMCommunicate OK [07:54:13]SAM_PROTO_SignData done [07:54:13]FM_MakeSignedData done [07:54:13]CreateOFDProtocolMessage [07:54:13]wFMCommunicate request_size=4 [07:54:13]MH_SAM_APDU [07:54:13]CAPDU: 80 11 00 00 [07:54:13]Write to MH i2c: E2 08 00 F8 05 80 11 00 00 00 00 00 00 77 [07:54:13]Write i2c OK [07:54:13]MH_I2C_Read... [07:54:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:13]Read from MH i2c: E2 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: E2 17 00 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: E2 17 00 F8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D2 [07:54:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:54:13]wFMCommunicate OK [07:54:13]CreateOFDProtocolMessage done [07:54:13]OFDSenderStorePacket 118368 [07:54:13]StoreOFDPacket docnum=118368 [07:54:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 52 3C 07 01 BB 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 25 F9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 60 CE 01 00 35 04 06 00 AD 23 A2 4E 45 DA 73 08 0E 96 6C EC DA 9C [07:54:13]CheckFolder [07:54:13]dirname=/storage/ofd_packets [07:54:13]CheckFolder done [07:54:13]ProducePacketName [07:54:13]name=ofd_packets/00118368 [07:54:13]NVStorageSaveData ofd_packets/00118368 [07:54:13]File name is /storage/ofd_packets/00118368 [07:54:13]Write 301 bytes [07:54:13]NVStorageSaveData done [07:54:13]OFDSenderStorePacket done [07:54:13]KKMCreateOFDPacket done [07:54:13]NVStorageSaveData kkm_last_timestamp [07:54:13]File name is /storage/kkm_last_timestamp [07:54:13]Write 4 bytes [07:54:13]NVStorageSaveData done [07:54:13]ExternCall_PrintAddStr [07:54:13]wPrintStart [07:54:13]Write to MH i2c: 01 00 00 F9 05 FE [07:54:13]Write i2c OK [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: 01 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: 01 07 00 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: 01 07 00 F9 05 00 00 00 00 00 FF 0F 13 [07:54:13]RasterBufferAndPrint [07:54:13]line Счет N : (1)949242 [07:54:13]line ИНН: 02508201610067 [07:54:13]line Контрольно-Кассовый Чек [07:54:13]line ПРОДАЖА [07:54:13]line ТРК (МРК, ГНК) : 31 [07:54:13]line Товар: 2710124130 [07:54:13]line Аи-92-К-4 [07:54:13]line 14.750 * 67.80 [07:54:13]line = 1000.05 [07:54:13]line НДС 12% НСП 1% [07:54:13]line > о реализуемом товаре [07:54:13]line ОКРУГЛЕНИЕ: -0.05 [07:54:13]line ИТОГО: 1000.00 [07:54:13]line Внесено: 1000.00 [07:54:13]line СДАЧА: 0.00 [07:54:13]line НСП 1% : 8.85 [07:54:13]line НДС 12% : 106.20 [07:54:13]line Наличными: 1000.00 [07:54:13]line Безнал.: 0.00 [07:54:13]line Место: АЗС № 134 "Партнер Нефть" [07:54:13]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:54:13]line СНО: Общий режим [07:54:13]line Чек 37 28.07.2024 07:54 [07:54:13]line Смена: 433 ФФД: 1.0 [07:54:13]line ЗНМ: 0300000044 [07:54:13]line РНМ: 0000000000092660 [07:54:13]line Версия ККМ: 001 [07:54:13]line ФМ: 0000000000874939 [07:54:13]line ФД: 118368 [07:54:13]line ФПД: 190368558499290 [07:54:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T075413&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118368&fm=190368558499290&tin=02508201610067®Number=0000000000092660&sum=100000 [07:54:13]OFD Sender: Processing packet 118368 [packets to send 86, broken 85] [07:54:13]ProducePacketName [07:54:13]name=ofd_packets/00118368 [07:54:13]OFD Sender: To server: pG, [07:54:13]CommunicateWithHost lk.salyk.kg:30040 [07:54:13]ConnectInit lk.salyk.kg [07:54:13]written 0, free lines is 4095 [07:54:13]Connected sock=10 [07:54:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 52 3C 07 01 BB 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 25 F9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 60 CE 01 00 35 04 06 00 AD 23 A2 4E 45 DA 73 08 0E 96 6C EC DA 9C [07:54:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B7 9D 47 00 A6 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 60 CE 01 00 F4 03 04 00 B5 A6 A5 66 B6 04 01 00 00 5B 04 5E 18 97 82 C9 EC [07:54:13]CommunicateWithHost err = 0 [07:54:13]CheckOFDResponse [07:54:13]1017 (14) - 77093643461234 [07:54:13]1041 (16) - 0000000000874939 [07:54:13]1040 (4) - 118368 [07:54:13]1012 (4) - 28.07.2024 02:02 [07:54:13]1206 (1) - 0 [07:54:13]OFD Sender: Remove packet 118368 [07:54:13]ProducePacketName [07:54:13]name=ofd_packets/00118368 [07:54:13]NVStorageDeleteData [07:54:13]Write to MH i2c: 01 00 00 23 06 29 [07:54:13]Write i2c OK [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: 01 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: 01 07 00 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: 01 07 00 23 06 00 00 00 00 00 D8 0C 14 [07:54:13]RasterBufferAndPrint [07:54:13]line [07:54:13]line [07:54:13]line [07:54:13]line [07:54:13]line [07:54:13]written 0, free lines is 3295 [07:54:13]MH_Cut [07:54:13]Write to MH i2c: D1 01 00 2A 06 01 02 [07:54:13]Write i2c OK [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: D1 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: D1 01 00 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: D1 01 00 2A 06 00 01 [07:54:13]Write to MH i2c: 01 00 00 2B 06 31 [07:54:13]Write i2c OK [07:54:13]MH_I2C_Read... [07:54:14]OFD Sender: No OFD packet to send [07:54:14]*** Cut start [07:54:14]*** Partial cut [07:54:14]*** CUTSNS_PIN = 1 [07:54:14]*** CUTSNS_PIN = 0 [07:54:14]*** Brake cut motor [07:54:15]Read from MH i2c: 01 [07:54:15]MH_I2C_Read... [07:54:15]*** Stop cut motor [07:54:15]*** Cut end [07:54:15]Read from MH i2c: 01 07 00 [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: 01 07 00 2B 06 00 00 00 00 00 FF 0F 46 [07:54:15]process_action close_receipt done [07:54:15]requested_data is exist [07:54:15]produce_requested_data [07:54:15]requested_item fm.sn is exist - process it [07:54:15]wFMCommunicate request_size=4 [07:54:15]MH_SAM_APDU [07:54:15]CAPDU: 80 11 00 00 [07:54:15]Write to MH i2c: E2 08 00 2C 06 80 11 00 00 00 00 00 00 AC [07:54:15]Write i2c OK [07:54:15]MH_I2C_Read... [07:54:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:15]Read from MH i2c: E2 [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: E2 17 00 [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: E2 17 00 2C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 07 [07:54:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:54:15]wFMCommunicate OK [07:54:15]requested_item fd.num is exist - process it [07:54:15]SAM_PROTO_GetFieldsCounters [07:54:15]wFMCommunicate request_size=4 [07:54:15]MH_SAM_APDU [07:54:15]CAPDU: 80 13 00 00 [07:54:15]Write to MH i2c: E2 08 00 2D 06 80 13 00 00 00 00 00 00 AF [07:54:15]Write i2c OK [07:54:15]MH_I2C_Read... [07:54:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:15]Read from MH i2c: E2 [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: E2 62 00 [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: E2 62 00 2D 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 60 CE 01 00 0E 04 04 00 B1 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 26 [07:54: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 60 CE 01 00 0E 04 04 00 B1 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 [07:54:15]wFMCommunicate OK [07:54:15]SAM_PROTO_GetFieldsCounters done [07:54:15]requested_item shift.num is exist - process it [07:54:15]requested_item shift.opened is exist - process it [07:54:15]req_shift_opened [07:54:15]FM_GetShiftState [07:54:15]SAM_PROTO_GetShiftState [07:54:15]wFMCommunicate request_size=4 [07:54:15]MH_SAM_APDU [07:54:15]CAPDU: 80 13 01 00 [07:54:15]Write to MH i2c: E2 08 00 2E 06 80 13 01 00 00 00 00 00 B1 [07:54:15]Write i2c OK [07:54:15]MH_I2C_Read... [07:54:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:15]Read from MH i2c: E2 [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: E2 0E 00 [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: E2 0E 00 2E 06 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 88 [07:54:15]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:54:15]wFMCommunicate OK [07:54:15]SAM_PROTO_GetShiftState done [07:54:15]FM_GetShiftState done [07:54:15]req_shift_opened done [07:54:15]requested_item shift.open_date is exist - process it [07:54:15]req_shift_open_date [07:54:15]req_shift_open_date done [07:54:15]produce_requested_data done [07:54:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118368,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [07:54:15]process_action_free close_receipt [07:54:15]json_value_free [07:54:15]json_value_free done [07:54:15]process_json_proto returns [07:54:15]Send response to host [07:54:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118368,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [07:54:15]free response buf [07:54:15]execute_script done [07:54:15]execute_script returns [07:54:15]free content buf [07:54:15]Sock 9.Close socket [07:54:15]Sock 9.Thread stoped [07:54:19]OFD Sender: No OFD packet to send [07:54:23]accept exits with 7 [07:54:23]New connection [07:54:23]New thread 3066924388 created [07:54:23]Thread 3067067748 joined [07:54:23]Waiting for new connection... [07:54:23] Sock 7.Parse request [07:54:23]Sock 7.Check first char [07:54:23]Sock 7.First char is OK [07:54:23]request: POST /json_proto HTTP/1.0 [07:54:23]Method: POST [07:54:23]URL: /json_proto [07:54:23]Method is POST - this is cgi request [07:54:23]url: /json_proto [07:54:23]query_string will be loaded in cgi processing [07:54:23]execute_cgi json_proto POST (null) [07:54:23]execute_cgi path=json_proto method=POST [07:54:23]POST find Content-Length [07:54:23]Host: 172.17.45.7:8080 [07:54:23]Content-Length: 677 [07:54:23]Content-Type: application/json [07:54:23] [07:54:23]POST finish read [07:54:23]Found Content-Length = 677 [07:54:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:23]execute_script... [07:54: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)949243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:23]POST & json_proto [07:54:23]process_json_proto [07:54:23]json parsed OK: [07:54:23]protocol is kg_v1.0 [07:54:23]action value=close_receipt [07:54:23]process_action close_receipt [07:54:23]cmd_close_receipt [07:54:23]MH_GetDate [07:54:23]Write to MH i2c: F0 00 00 2F 06 24 [07:54:23]Write i2c OK [07:54:23]MH_I2C_Read... [07:54:23]Read from MH i2c: F0 [07:54:23]MH_I2C_Read... [07:54:23]Read from MH i2c: F0 09 00 [07:54:23]MH_I2C_Read... [07:54:23]Read from MH i2c: F0 09 00 2F 06 00 30 F9 A5 66 90 0F 3E 66 A4 [07:54:23]GetLastDocTimeStamp 1722153253 [07:54:23]current date 1722153264 [07:54:23]FM_GetShiftState [07:54:23]SAM_PROTO_GetShiftState [07:54:23]wFMCommunicate request_size=4 [07:54:23]MH_SAM_APDU [07:54:23]CAPDU: 80 13 01 00 [07:54:23]Write to MH i2c: E2 08 00 30 06 80 13 01 00 00 00 00 00 B3 [07:54:23]Write i2c OK [07:54:23]MH_I2C_Read... [07:54:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:23]Read from MH i2c: E2 [07:54:23]MH_I2C_Read... [07:54:23]Read from MH i2c: E2 0E 00 [07:54:23]MH_I2C_Read... [07:54:23]Read from MH i2c: E2 0E 00 30 06 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 8A [07:54:23]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:54:23]wFMCommunicate OK [07:54:23]SAM_PROTO_GetShiftState done [07:54:23]FM_GetShiftState done [07:54:23]opened in 1722125364 [07:54:23]opened+sec_in_day 1722211764 [07:54:23]quantity*price = 50036 [07:54:23]sum+1 = 50037 [07:54:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 38 28.07.2024 07:54 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118369 ФПД: 278466991162557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T075424&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118369&fm=278466991162557&tin=02508201610067®Number=0000000000092660&sum=50000 [07:54:24]StoreToDocumentArchive [07:54:24]shift 433 fd 118369 [07:54:24]save to /storage/0433/doc_00118369 [07:54:24]save last doc name /storage/0433/doc_00118369 to /storage/kkm_last_doc_name [07:54:24]save OK [07:54:24]Clear old archive folders... [07:54:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:54:24]tlvbuf is 0012C900 [07:54:24]SAM_PROTO_ClearQueue [07:54:24]wFMCommunicate request_size=4 [07:54:24]MH_SAM_APDU [07:54:24]CAPDU: 80 09 00 00 [07:54:24]Write to MH i2c: E2 08 00 3D 06 80 09 00 00 00 00 00 00 B5 [07:54:24]Write i2c OK [07:54:24]MH_I2C_Read... [07:54:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:24]Read from MH i2c: E2 [07:54:24]MH_I2C_Read... [07:54:24]Read from MH i2c: E2 03 00 [07:54:24]MH_I2C_Read... [07:54:24]Read from MH i2c: E2 03 00 3D 06 00 90 00 B7 [07:54:24]RAPDU: 90 00 [07:54:24]wFMCommunicate OK [07:54:24]SAM_PROTO_ClearQueue done [07:54:24]KKMCreateOFDPacket [07:54:24]OFDProtocolAddRootSTLVToBuf [07:54:24]FM_MakeSignedData [07:54:24]FM_MakeSignedData [07:54:24]SAM_PROTO_SignData [07:54:24]wFMCommunicate request_size=4 [07:54:24]MH_SAM_APDU [07:54:24]CAPDU: 80 0D 01 02 [07:54:24]Write to MH i2c: E2 08 00 3E 06 80 0D 01 02 00 00 00 00 BD [07:54:24]Write i2c OK [07:54:24]MH_I2C_Read... [07:54:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:24]Read from MH i2c: E2 [07:54:24]MH_I2C_Read... [07:54:24]Read from MH i2c: E2 03 00 [07:54:24]MH_I2C_Read... [07:54:24]Read from MH i2c: E2 03 00 3E 06 00 90 00 B8 [07:54:24]RAPDU: 90 00 [07:54:24]wFMCommunicate OK [07:54:24]wFMCommunicate request_size=255 [07:54:24]MH_SAM_APDU [07:54: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 30 F9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 61 CE 01 00 35 04 06 00 FD [07:54:24]Write to MH i2c: E2 02 01 3F 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 30 F9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 61 CE 01 00 35 04 06 00 FD 00 00 7A [07:54:24]Write i2c OK [07:54:24]MH_I2C_Read... [07:54:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:24]Read from MH i2c: E2 [07:54:24]MH_I2C_Read... [07:54:24]Read from MH i2c: E2 03 00 [07:54:24]MH_I2C_Read... [07:54:24]Read from MH i2c: E2 03 00 3F 06 00 90 00 B9 [07:54:24]RAPDU: 90 00 [07:54:24]wFMCommunicate OK [07:54:24]wFMCommunicate request_size=10 [07:54:24]MH_SAM_APDU [07:54:24]CAPDU: 80 0D 02 02 05 43 A6 17 04 BD [07:54:24]Write to MH i2c: E2 0D 00 40 06 80 0D 02 02 05 00 43 A6 17 04 BD 00 00 8B [07:54:24]Write i2c OK [07:54:24]MH_I2C_Read... [07:54:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:24]Read from MH i2c: E2 [07:54:24]MH_I2C_Read... [07:54:24]Read from MH i2c: E2 03 00 [07:54:24]MH_I2C_Read... [07:54:24]Read from MH i2c: E2 03 00 40 06 00 90 00 BA [07:54:24]RAPDU: 90 00 [07:54:24]wFMCommunicate OK [07:54:24]wFMCommunicate request_size=4 [07:54:24]MH_SAM_APDU [07:54:24]CAPDU: 80 0D 03 02 [07:54:24]Write to MH i2c: E2 08 00 41 06 80 0D 03 02 00 00 00 00 C2 [07:54:24]Write i2c OK [07:54:24]MH_I2C_Read... [07:54:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:24]Read from MH i2c: E2 [07:54:24]MH_I2C_Read... [07:54:24]Read from MH i2c: E2 0B 00 [07:54:24]MH_I2C_Read... [07:54:24]Read from MH i2c: E2 0B 00 41 06 00 64 40 1C E5 6E 39 52 D2 90 00 33 [07:54:24]RAPDU: 64 40 1C E5 6E 39 52 D2 90 00 [07:54:24]wFMCommunicate OK [07:54:24]SAM_PROTO_SignData done [07:54:24]FM_MakeSignedData done [07:54:24]CreateOFDProtocolMessage [07:54:24]wFMCommunicate request_size=4 [07:54:24]MH_SAM_APDU [07:54:24]CAPDU: 80 11 00 00 [07:54:24]Write to MH i2c: E2 08 00 42 06 80 11 00 00 00 00 00 00 C2 [07:54:24]Write i2c OK [07:54:24]MH_I2C_Read... [07:54:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:25]Read from MH i2c: E2 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: E2 17 00 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: E2 17 00 42 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1D [07:54:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:54:25]wFMCommunicate OK [07:54:25]CreateOFDProtocolMessage done [07:54:25]OFDSenderStorePacket 118369 [07:54:25]StoreOFDPacket docnum=118369 [07:54:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 BD 0B 07 01 D6 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 30 F9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 61 CE 01 00 35 04 06 00 FD 43 A6 17 04 BD 64 40 1C E5 6E 39 52 D2 [07:54:25]CheckFolder [07:54:25]dirname=/storage/ofd_packets [07:54:25]CheckFolder done [07:54:25]ProducePacketName [07:54:25]name=ofd_packets/00118369 [07:54:25]NVStorageSaveData ofd_packets/00118369 [07:54:25]File name is /storage/ofd_packets/00118369 [07:54:25]Write 301 bytes [07:54:25]NVStorageSaveData done [07:54:25]OFDSenderStorePacket done [07:54:25]KKMCreateOFDPacket done [07:54:25]NVStorageSaveData kkm_last_timestamp [07:54:25]File name is /storage/kkm_last_timestamp [07:54:25]Write 4 bytes [07:54:25]NVStorageSaveData done [07:54:25]ExternCall_PrintAddStr [07:54:25]wPrintStart [07:54:25]Write to MH i2c: 01 00 00 43 06 49 [07:54:25]Write i2c OK [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: 01 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: 01 07 00 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: 01 07 00 43 06 00 00 00 00 00 FF 0F 5E [07:54:25]RasterBufferAndPrint [07:54:25]line Счет N : (1)949243 [07:54:25]line ИНН: 02508201610067 [07:54:25]line Контрольно-Кассовый Чек [07:54:25]line ПРОДАЖА [07:54:25]line ТРК (МРК, ГНК) : 51 [07:54:25]line Товар: 2710124130 [07:54:25]line Аи-92-К-4 [07:54:25]line 7.380 * 67.80 [07:54:25]line = 500.36 [07:54:25]line НДС 12% НСП 1% [07:54:25]line > о реализуемом товаре [07:54:25]line ОКРУГЛЕНИЕ: -0.36 [07:54:25]line ИТОГО: 500.00 [07:54:25]line Внесено: 500.00 [07:54:25]line СДАЧА: 0.00 [07:54:25]line НСП 1% : 4.43 [07:54:25]line НДС 12% : 53.14 [07:54:25]line Наличными: 500.00 [07:54:25]line Безнал.: 0.00 [07:54:25]line Место: АЗС № 134 "Партнер Нефть" [07:54:25]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:54:25]line СНО: Общий режим [07:54:25]line Чек 38 28.07.2024 07:54 [07:54:25]line Смена: 433 ФФД: 1.0 [07:54:25]line ЗНМ: 0300000044 [07:54:25]line РНМ: 0000000000092660 [07:54:25]line Версия ККМ: 001 [07:54:25]line ФМ: 0000000000874939 [07:54:25]line ФД: 118369 [07:54:25]line ФПД: 278466991162557 [07:54:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T075424&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118369&fm=278466991162557&tin=02508201610067®Number=0000000000092660&sum=50000 [07:54:25]written 0, free lines is 4095 [07:54:25]OFD Sender: Processing packet 118369 [packets to send 86, broken 85] [07:54:25]ProducePacketName [07:54:25]name=ofd_packets/00118369 [07:54:25]OFD Sender: To server: pG, [07:54:25]CommunicateWithHost lk.salyk.kg:30040 [07:54:25]ConnectInit lk.salyk.kg [07:54:25]Connected sock=10 [07:54:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 BD 0B 07 01 D6 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 30 F9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 61 CE 01 00 35 04 06 00 FD 43 A6 17 04 BD 64 40 1C E5 6E 39 52 D2 [07:54:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 50 04 47 00 39 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 39 33 39 10 04 04 00 61 CE 01 00 F4 03 04 00 C1 A6 A5 66 B6 04 01 00 00 CA 1F 65 84 74 61 44 A2 [07:54:25]CommunicateWithHost err = 0 [07:54:25]CheckOFDResponse [07:54:25]1017 (14) - 77093643461234 [07:54:25]1041 (16) - 0000000000874939 [07:54:25]1040 (4) - 118369 [07:54:25]1012 (4) - 28.07.2024 02:02 [07:54:25]1206 (1) - 0 [07:54:25]OFD Sender: Remove packet 118369 [07:54:25]ProducePacketName [07:54:25]name=ofd_packets/00118369 [07:54:25]NVStorageDeleteData [07:54:25]Write to MH i2c: 01 00 00 6D 06 73 [07:54:25]Write i2c OK [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: 01 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: 01 07 00 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: 01 07 00 6D 06 00 00 00 00 00 E7 0C 6D [07:54:25]RasterBufferAndPrint [07:54:25]line [07:54:25]line [07:54:25]line [07:54:25]line [07:54:25]line [07:54:25]written 0, free lines is 3312 [07:54:25]MH_Cut [07:54:25]Write to MH i2c: D1 01 00 74 06 01 4C [07:54:25]Write i2c OK [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: D1 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: D1 01 00 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: D1 01 00 74 06 00 4B [07:54:25]Write to MH i2c: 01 00 00 75 06 7B [07:54:25]Write i2c OK [07:54:25]MH_I2C_Read... [07:54:25]OFD Sender: No OFD packet to send [07:54:26]*** Cut start [07:54:26]*** Partial cut [07:54:26]*** CUTSNS_PIN = 1 [07:54:26]*** CUTSNS_PIN = 0 [07:54:26]*** Brake cut motor [07:54:26]Read from MH i2c: 01 [07:54:26]MH_I2C_Read... [07:54:26]*** Stop cut motor [07:54:26]*** Cut end [07:54:26]Read from MH i2c: 01 07 00 [07:54:26]MH_I2C_Read... [07:54:26]Read from MH i2c: 01 07 00 75 06 00 00 00 00 00 FF 0F 90 [07:54:26]process_action close_receipt done [07:54:26]requested_data is exist [07:54:26]produce_requested_data [07:54:26]requested_item fm.sn is exist - process it [07:54:26]wFMCommunicate request_size=4 [07:54:26]MH_SAM_APDU [07:54:26]CAPDU: 80 11 00 00 [07:54:26]Write to MH i2c: E2 08 00 76 06 80 11 00 00 00 00 00 00 F6 [07:54:26]Write i2c OK [07:54:26]MH_I2C_Read... [07:54:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:26]Read from MH i2c: E2 [07:54:26]MH_I2C_Read... [07:54:26]Read from MH i2c: E2 17 00 [07:54:26]MH_I2C_Read... [07:54:26]Read from MH i2c: E2 17 00 76 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 51 [07:54:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:54:26]wFMCommunicate OK [07:54:26]requested_item fd.num is exist - process it [07:54:26]SAM_PROTO_GetFieldsCounters [07:54:26]wFMCommunicate request_size=4 [07:54:26]MH_SAM_APDU [07:54:26]CAPDU: 80 13 00 00 [07:54:26]Write to MH i2c: E2 08 00 77 06 80 13 00 00 00 00 00 00 F9 [07:54:26]Write i2c OK [07:54:26]MH_I2C_Read... [07:54:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:27]Read from MH i2c: E2 [07:54:27]MH_I2C_Read... [07:54:27]Read from MH i2c: E2 62 00 [07:54:27]MH_I2C_Read... [07:54:27]Read from MH i2c: E2 62 00 77 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 61 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [07:54: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 61 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:54:27]wFMCommunicate OK [07:54:27]SAM_PROTO_GetFieldsCounters done [07:54:27]requested_item shift.num is exist - process it [07:54:27]requested_item shift.opened is exist - process it [07:54:27]req_shift_opened [07:54:27]FM_GetShiftState [07:54:27]SAM_PROTO_GetShiftState [07:54:27]wFMCommunicate request_size=4 [07:54:27]MH_SAM_APDU [07:54:27]CAPDU: 80 13 01 00 [07:54:27]Write to MH i2c: E2 08 00 78 06 80 13 01 00 00 00 00 00 FB [07:54:27]Write i2c OK [07:54:27]MH_I2C_Read... [07:54:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:27]Read from MH i2c: E2 [07:54:27]MH_I2C_Read... [07:54:27]Read from MH i2c: E2 0E 00 [07:54:27]MH_I2C_Read... [07:54:27]Read from MH i2c: E2 0E 00 78 06 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 D2 [07:54:27]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:54:27]wFMCommunicate OK [07:54:27]SAM_PROTO_GetShiftState done [07:54:27]FM_GetShiftState done [07:54:27]req_shift_opened done [07:54:27]requested_item shift.open_date is exist - process it [07:54:27]req_shift_open_date [07:54:27]req_shift_open_date done [07:54:27]produce_requested_data done [07:54:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118369,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [07:54:27]process_action_free close_receipt [07:54:27]json_value_free [07:54:27]json_value_free done [07:54:27]process_json_proto returns [07:54:27]Send response to host [07:54:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118369,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [07:54:27]free response buf [07:54:27]execute_script done [07:54:27]execute_script returns [07:54:27]free content buf [07:54:27]Sock 7.Close socket [07:54:27]Sock 7.Thread stoped [07:54:29]accept exits with 9 [07:54:29]New connection [07:54:29]New thread 3067067748 created [07:54:29]Thread 3066924388 joined [07:54:29]Waiting for new connection... [07:54:29] Sock 9.Parse request [07:54:29]Sock 9.Check first char [07:54:29]Sock 9.First char is OK [07:54:29]request: POST /json_proto HTTP/1.0 [07:54:29]Method: POST [07:54:29]URL: /json_proto [07:54:29]Method is POST - this is cgi request [07:54:29]url: /json_proto [07:54:29]query_string will be loaded in cgi processing [07:54:29]execute_cgi json_proto POST (null) [07:54:29]execute_cgi path=json_proto method=POST [07:54:29]POST find Content-Length [07:54:29]Host: 172.17.45.7:8080 [07:54:29]Content-Length: 739 [07:54:29]Content-Type: application/json [07:54:29] [07:54:29]POST finish read [07:54:29]Found Content-Length = 739 [07:54:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118368, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:29]execute_script... [07:54:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118368, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:29]POST & json_proto [07:54:29]process_json_proto [07:54:29]json parsed OK: [07:54:29]protocol is kg_v1.0 [07:54:29]action value=close_receipt [07:54:29]process_action close_receipt [07:54:29]cmd_close_receipt [07:54:29]MH_GetDate [07:54:29]Write to MH i2c: F0 00 00 79 06 6E [07:54:29]Write i2c OK [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: F0 [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: F0 09 00 [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: F0 09 00 79 06 00 37 F9 A5 66 90 0F 3E 66 F5 [07:54:29]GetLastDocTimeStamp 1722153264 [07:54:29]current date 1722153271 [07:54:29]FM_GetShiftState [07:54:29]SAM_PROTO_GetShiftState [07:54:29]wFMCommunicate request_size=4 [07:54:29]MH_SAM_APDU [07:54:29]CAPDU: 80 13 01 00 [07:54:29]Write to MH i2c: E2 08 00 7A 06 80 13 01 00 00 00 00 00 FD [07:54:29]Write i2c OK [07:54:29]MH_I2C_Read... [07:54:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:29]Read from MH i2c: E2 [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: E2 0E 00 [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: E2 0E 00 7A 06 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 D4 [07:54:29]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:54:29]wFMCommunicate OK [07:54:29]SAM_PROTO_GetShiftState done [07:54:29]FM_GetShiftState done [07:54:29]opened in 1722125364 [07:54:29]opened+sec_in_day 1722211764 [07:54:29]quantity*price = 100005 [07:54:29]sum+1 = 100006 [07:54:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 39 28.07.2024 07:54 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 118368 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 118370 ФПД: 269121250560501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T075431&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118370&fm=269121250560501&tin=02508201610067®Number=0000000000092660&sum=100000 [07:54:31]StoreToDocumentArchive [07:54:31]shift 433 fd 118370 [07:54:31]save to /storage/0433/doc_00118370 [07:54:31]save last doc name /storage/0433/doc_00118370 to /storage/kkm_last_doc_name [07:54:31]save OK [07:54:31]Clear old archive folders... [07:54:31]ProcessDocumentItem done err = 0, tmpTLVsize=279 [07:54:31]tlvbuf is 00131F40 [07:54:31]SAM_PROTO_ClearQueue [07:54:31]wFMCommunicate request_size=4 [07:54:31]MH_SAM_APDU [07:54:31]CAPDU: 80 09 00 00 [07:54:31]Write to MH i2c: E2 08 00 89 06 80 09 00 00 00 00 00 00 01 [07:54:31]Write i2c OK [07:54:31]MH_I2C_Read... [07:54:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:31]Read from MH i2c: E2 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 03 00 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 03 00 89 06 00 90 00 03 [07:54:31]RAPDU: 90 00 [07:54:31]wFMCommunicate OK [07:54:31]SAM_PROTO_ClearQueue done [07:54:31]KKMCreateOFDPacket [07:54:31]OFDProtocolAddRootSTLVToBuf [07:54:31]FM_MakeSignedData [07:54:31]FM_MakeSignedData [07:54:31]SAM_PROTO_SignData [07:54:31]wFMCommunicate request_size=4 [07:54:31]MH_SAM_APDU [07:54:31]CAPDU: 80 0D 01 02 [07:54:31]Write to MH i2c: E2 08 00 8A 06 80 0D 01 02 00 00 00 00 09 [07:54:31]Write i2c OK [07:54:31]MH_I2C_Read... [07:54:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:31]Read from MH i2c: E2 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 03 00 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 03 00 8A 06 00 90 00 04 [07:54:31]RAPDU: 90 00 [07:54:31]wFMCommunicate OK [07:54:31]wFMCommunicate request_size=255 [07:54:31]MH_SAM_APDU [07:54:31]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 37 F9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 60 CE 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 [07:54:31]Write to MH i2c: E2 02 01 8B 06 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 37 F9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 60 CE 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 00 00 C1 [07:54:31]Write i2c OK [07:54:31]MH_I2C_Read... [07:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:31]Read from MH i2c: E2 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 03 00 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 03 00 8B 06 00 90 00 05 [07:54:31]RAPDU: 90 00 [07:54:31]wFMCommunicate OK [07:54:31]wFMCommunicate request_size=38 [07:54:31]MH_SAM_APDU [07:54:31]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 62 CE 01 00 35 04 06 00 F4 C3 AC 8A 89 F5 [07:54:31]Write to MH i2c: E2 29 00 8C 06 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 62 CE 01 00 35 04 06 00 F4 C3 AC 8A 89 F5 00 00 39 [07:54:31]Write i2c OK [07:54:31]MH_I2C_Read... [07:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:31]Read from MH i2c: E2 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 03 00 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 03 00 8C 06 00 90 00 06 [07:54:31]RAPDU: 90 00 [07:54:31]wFMCommunicate OK [07:54:31]wFMCommunicate request_size=4 [07:54:31]MH_SAM_APDU [07:54:31]CAPDU: 80 0D 03 02 [07:54:31]Write to MH i2c: E2 08 00 8D 06 80 0D 03 02 00 00 00 00 0E [07:54:31]Write i2c OK [07:54:31]MH_I2C_Read... [07:54:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:31]Read from MH i2c: E2 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 0B 00 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 0B 00 8D 06 00 23 CB 69 04 26 6B E2 DF 90 00 BC [07:54:31]RAPDU: 23 CB 69 04 26 6B E2 DF 90 00 [07:54:31]wFMCommunicate OK [07:54:31]SAM_PROTO_SignData done [07:54:31]FM_MakeSignedData done [07:54:31]CreateOFDProtocolMessage [07:54:31]wFMCommunicate request_size=4 [07:54:31]MH_SAM_APDU [07:54:31]CAPDU: 80 11 00 00 [07:54:31]Write to MH i2c: E2 08 00 8E 06 80 11 00 00 00 00 00 00 0E [07:54:31]Write i2c OK [07:54:31]MH_I2C_Read... [07:54:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:31]Read from MH i2c: E2 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 17 00 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 17 00 8E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 69 [07:54:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:54:31]wFMCommunicate OK [07:54:31]CreateOFDProtocolMessage done [07:54:31]OFDSenderStorePacket 118370 [07:54:31]StoreOFDPacket docnum=118370 [07:54:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 72 89 23 01 E0 CB 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 37 F9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 60 CE 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 62 CE 01 00 35 04 06 00 F4 C3 AC 8A 89 F5 23 CB 69 04 26 6B E2 DF [07:54:31]CheckFolder [07:54:31]dirname=/storage/ofd_packets [07:54:31]CheckFolder done [07:54:31]ProducePacketName [07:54:31]name=ofd_packets/00118370 [07:54:31]NVStorageSaveData ofd_packets/00118370 [07:54:31]File name is /storage/ofd_packets/00118370 [07:54:31]Write 329 bytes [07:54:31]NVStorageSaveData done [07:54:31]OFDSenderStorePacket done [07:54:31]KKMCreateOFDPacket done [07:54:31]NVStorageSaveData kkm_last_timestamp [07:54:31]File name is /storage/kkm_last_timestamp [07:54:31]Write 4 bytes [07:54:31]NVStorageSaveData done [07:54:31]ExternCall_PrintAddStr [07:54:31]wPrintStart [07:54:31]Write to MH i2c: 01 00 00 8F 06 95 [07:54:31]Write i2c OK [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: 01 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: 01 07 00 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: 01 07 00 8F 06 00 00 00 00 00 FF 0F AA [07:54:31]RasterBufferAndPrint [07:54:31]line Счет N : (1)949242 [07:54:31]line ИНН: 02508201610067 [07:54:31]line Контрольно-Кассовый Чек [07:54:31]line ВОЗВРАТ ПРОДАЖИ [07:54:31]line ТРК (МРК, ГНК) : 31 [07:54:31]line Товар: 2710124130 [07:54:31]line Аи-92-К-4 [07:54:31]line 14.750 * 67.80 [07:54:31]line = 1000.05 [07:54:31]line НДС 12% НСП 1% [07:54:31]line > о реализуемом товаре [07:54:31]line ОКРУГЛЕНИЕ: -0.05 [07:54:31]line ИТОГО: 1000.00 [07:54:31]line НСП 1% : 8.85 [07:54:31]line НДС 12% : 106.20 [07:54:31]line Наличными: 1000.00 [07:54:31]line Безнал.: 0.00 [07:54:31]line Место: АЗС № 134 "Партнер Нефть" [07:54:31]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:54:31]line СНО: Общий режим [07:54:31]line Чек 39 28.07.2024 07:54 [07:54:31]line Смена: 433 ФФД: 1.0 [07:54:31]line ЗНМ: 0300000044 [07:54:31]line РНМ: 0000000000092660 [07:54:31]line Версия ККМ: 001 [07:54:31]line ФД осн.: 118368 [07:54:31]line ФМ осн.: 0000000000874939 [07:54:31]line ФМ: 0000000000874939 [07:54:31]line ФД: 118370 [07:54:31]line ФПД: 269121250560501 [07:54:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T075431&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118370&fm=269121250560501&tin=02508201610067®Number=0000000000092660&sum=100000 [07:54:31]written 0, free lines is 4095 [07:54:31]OFD Sender: Processing packet 118370 [packets to send 86, broken 85] [07:54:31]ProducePacketName [07:54:31]name=ofd_packets/00118370 [07:54:31]OFD Sender: To server: pG, [07:54:31]CommunicateWithHost lk.salyk.kg:30040 [07:54:31]ConnectInit lk.salyk.kg [07:54:31]Connected sock=11 [07:54:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 72 89 23 01 E0 CB 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 37 F9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 60 CE 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 62 CE 01 00 35 04 06 00 F4 C3 AC 8A 89 F5 23 CB 69 04 26 6B E2 DF [07:54:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 0C C7 47 00 6A EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 62 CE 01 00 F4 03 04 00 C8 A6 A5 66 B6 04 01 00 00 2C 08 99 22 44 E1 BA B0 [07:54:32]CommunicateWithHost err = 0 [07:54:32]CheckOFDResponse [07:54:32]1017 (14) - 77093643461234 [07:54:32]1041 (16) - 0000000000874939 [07:54:32]1040 (4) - 118370 [07:54:32]1012 (4) - 28.07.2024 02:02 [07:54:32]1206 (1) - 0 [07:54:32]OFD Sender: Remove packet 118370 [07:54:32]ProducePacketName [07:54:32]name=ofd_packets/00118370 [07:54:32]NVStorageDeleteData [07:54:32]Write to MH i2c: 01 00 00 B9 06 BF [07:54:32]Write i2c OK [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: 01 [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: 01 07 00 [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: 01 07 00 B9 06 00 00 00 00 00 F0 0C C2 [07:54:32]RasterBufferAndPrint [07:54:32]line [07:54:32]line [07:54:32]line [07:54:32]line [07:54:32]line [07:54:32]written 0, free lines is 3325 [07:54:32]MH_Cut [07:54:32]Write to MH i2c: D1 01 00 C0 06 01 98 [07:54:32]Write i2c OK [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: D1 [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: D1 01 00 [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: D1 01 00 C0 06 00 97 [07:54:32]Write to MH i2c: 01 00 00 C1 06 C7 [07:54:32]Write i2c OK [07:54:32]MH_I2C_Read... [07:54:32]OFD Sender: No OFD packet to send [07:54:32]*** Cut start [07:54:32]*** Partial cut [07:54:32]*** CUTSNS_PIN = 1 [07:54:32]*** CUTSNS_PIN = 0 [07:54:33]*** Brake cut motor [07:54:33]Read from MH i2c: 01 [07:54:33]MH_I2C_Read... [07:54:33]*** Stop cut motor [07:54:33]*** Cut end [07:54:33]Read from MH i2c: 01 07 00 [07:54:33]MH_I2C_Read... [07:54:33]Read from MH i2c: 01 07 00 C1 06 00 00 00 00 00 FF 0F DC [07:54:33]process_action close_receipt done [07:54:33]requested_data is exist [07:54:33]produce_requested_data [07:54:33]requested_item fm.sn is exist - process it [07:54:33]wFMCommunicate request_size=4 [07:54:33]MH_SAM_APDU [07:54:33]CAPDU: 80 11 00 00 [07:54:33]Write to MH i2c: E2 08 00 C2 06 80 11 00 00 00 00 00 00 42 [07:54:33]Write i2c OK [07:54:33]MH_I2C_Read... [07:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:33]Read from MH i2c: E2 [07:54:33]MH_I2C_Read... [07:54:33]Read from MH i2c: E2 17 00 [07:54:33]MH_I2C_Read... [07:54:33]Read from MH i2c: E2 17 00 C2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9D [07:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:54:33]wFMCommunicate OK [07:54:33]requested_item fd.num is exist - process it [07:54:33]SAM_PROTO_GetFieldsCounters [07:54:33]wFMCommunicate request_size=4 [07:54:33]MH_SAM_APDU [07:54:33]CAPDU: 80 13 00 00 [07:54:33]Write to MH i2c: E2 08 00 C3 06 80 13 00 00 00 00 00 00 45 [07:54:33]Write i2c OK [07:54:33]MH_I2C_Read... [07:54:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:33]Read from MH i2c: E2 [07:54:33]MH_I2C_Read... [07:54:33]Read from MH i2c: E2 62 00 [07:54:33]MH_I2C_Read... [07:54:33]Read from MH i2c: E2 62 00 C3 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 62 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [07:54:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 62 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:54:33]wFMCommunicate OK [07:54:33]SAM_PROTO_GetFieldsCounters done [07:54:33]requested_item shift.num is exist - process it [07:54:33]requested_item shift.opened is exist - process it [07:54:33]req_shift_opened [07:54:33]FM_GetShiftState [07:54:33]SAM_PROTO_GetShiftState [07:54:33]wFMCommunicate request_size=4 [07:54:33]MH_SAM_APDU [07:54:33]CAPDU: 80 13 01 00 [07:54:33]Write to MH i2c: E2 08 00 C4 06 80 13 01 00 00 00 00 00 47 [07:54:33]Write i2c OK [07:54:33]MH_I2C_Read... [07:54:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:33]Read from MH i2c: E2 [07:54:33]MH_I2C_Read... [07:54:33]Read from MH i2c: E2 0E 00 [07:54:33]MH_I2C_Read... [07:54:33]Read from MH i2c: E2 0E 00 C4 06 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 1E [07:54:33]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:54:33]wFMCommunicate OK [07:54:33]SAM_PROTO_GetShiftState done [07:54:33]FM_GetShiftState done [07:54:33]req_shift_opened done [07:54:33]requested_item shift.open_date is exist - process it [07:54:33]req_shift_open_date [07:54:33]req_shift_open_date done [07:54:33]produce_requested_data done [07:54:33]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118370,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [07:54:33]process_action_free close_receipt [07:54:33]json_value_free [07:54:33]json_value_free done [07:54:33]process_json_proto returns [07:54:33]Send response to host [07:54:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118370,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [07:54:33]free response buf [07:54:33]execute_script done [07:54:33]execute_script returns [07:54:33]free content buf [07:54:33]Sock 9.Close socket [07:54:33]Sock 9.Thread stoped [07:54:34]accept exits with 7 [07:54:34]New connection [07:54:34]New thread 3066924388 created [07:54:34]Thread 3067067748 joined [07:54:34]Waiting for new connection... [07:54:34] Sock 7.Parse request [07:54:34]Sock 7.Check first char [07:54:34]Sock 7.First char is OK [07:54:34]request: POST /json_proto HTTP/1.0 [07:54:34]Method: POST [07:54:34]URL: /json_proto [07:54:34]Method is POST - this is cgi request [07:54:34]url: /json_proto [07:54:34]query_string will be loaded in cgi processing [07:54:34]execute_cgi json_proto POST (null) [07:54:34]execute_cgi path=json_proto method=POST [07:54:34]POST find Content-Length [07:54:34]Host: 172.17.45.7:8080 [07:54:34]Content-Length: 682 [07:54:34]Content-Type: application/json [07:54:34] [07:54:34]POST finish read [07:54:34]Found Content-Length = 682 [07:54:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:34]execute_script... [07:54: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)949244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:34]POST & json_proto [07:54:34]process_json_proto [07:54:34]json parsed OK: [07:54:34]protocol is kg_v1.0 [07:54:34]action value=close_receipt [07:54:34]process_action close_receipt [07:54:34]cmd_close_receipt [07:54:34]MH_GetDate [07:54:34]Write to MH i2c: F0 00 00 C5 06 BA [07:54:34]Write i2c OK [07:54:34]MH_I2C_Read... [07:54:34]Read from MH i2c: F0 [07:54:34]MH_I2C_Read... [07:54:34]Read from MH i2c: F0 09 00 [07:54:34]MH_I2C_Read... [07:54:34]Read from MH i2c: F0 09 00 C5 06 00 3B F9 A5 66 90 0F 3E 66 45 [07:54:34]GetLastDocTimeStamp 1722153271 [07:54:34]current date 1722153275 [07:54:34]FM_GetShiftState [07:54:34]SAM_PROTO_GetShiftState [07:54:34]wFMCommunicate request_size=4 [07:54:34]MH_SAM_APDU [07:54:34]CAPDU: 80 13 01 00 [07:54:34]Write to MH i2c: E2 08 00 C6 06 80 13 01 00 00 00 00 00 49 [07:54:34]Write i2c OK [07:54:34]MH_I2C_Read... [07:54:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:34]Read from MH i2c: E2 [07:54:34]MH_I2C_Read... [07:54:34]Read from MH i2c: E2 0E 00 [07:54:34]MH_I2C_Read... [07:54:34]Read from MH i2c: E2 0E 00 C6 06 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 20 [07:54:34]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:54:34]wFMCommunicate OK [07:54:34]SAM_PROTO_GetShiftState done [07:54:34]FM_GetShiftState done [07:54:34]opened in 1722125364 [07:54:34]opened+sec_in_day 1722211764 [07:54:34]quantity*price = 100021 [07:54:34]sum+1 = 100023 [07:54:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 40 28.07.2024 07:54 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118371 ФПД: 30801919176191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T075435&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118371&fm=30801919176191&tin=02508201610067®Number=0000000000092660&sum=100000 [07:54:35]StoreToDocumentArchive [07:54:35]shift 433 fd 118371 [07:54:35]save to /storage/0433/doc_00118371 [07:54:35]save last doc name /storage/0433/doc_00118371 to /storage/kkm_last_doc_name [07:54:35]save OK [07:54:35]Clear old archive folders... [07:54:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:54:35]tlvbuf is 00114690 [07:54:35]SAM_PROTO_ClearQueue [07:54:35]wFMCommunicate request_size=4 [07:54:35]MH_SAM_APDU [07:54:35]CAPDU: 80 09 00 00 [07:54:35]Write to MH i2c: E2 08 00 D3 06 80 09 00 00 00 00 00 00 4B [07:54:35]Write i2c OK [07:54:35]MH_I2C_Read... [07:54:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:35]Read from MH i2c: E2 [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: E2 03 00 [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: E2 03 00 D3 06 00 90 00 4D [07:54:35]RAPDU: 90 00 [07:54:35]wFMCommunicate OK [07:54:35]SAM_PROTO_ClearQueue done [07:54:35]KKMCreateOFDPacket [07:54:35]OFDProtocolAddRootSTLVToBuf [07:54:35]FM_MakeSignedData [07:54:35]FM_MakeSignedData [07:54:35]SAM_PROTO_SignData [07:54:35]wFMCommunicate request_size=4 [07:54:35]MH_SAM_APDU [07:54:35]CAPDU: 80 0D 01 02 [07:54:35]Write to MH i2c: E2 08 00 D4 06 80 0D 01 02 00 00 00 00 53 [07:54:35]Write i2c OK [07:54:35]MH_I2C_Read... [07:54:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:35]Read from MH i2c: E2 [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: E2 03 00 [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: E2 03 00 D4 06 00 90 00 4E [07:54:35]RAPDU: 90 00 [07:54:35]wFMCommunicate OK [07:54:35]wFMCommunicate request_size=255 [07:54:35]MH_SAM_APDU [07:54:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 3B F9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 CE 01 00 35 04 06 00 1C [07:54:35]Write to MH i2c: E2 02 01 D5 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 3B F9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 CE 01 00 35 04 06 00 1C 00 00 6A [07:54:35]Write i2c OK [07:54:35]MH_I2C_Read... [07:54:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:36]Read from MH i2c: E2 [07:54:36]MH_I2C_Read... [07:54:36]Read from MH i2c: E2 03 00 [07:54:36]MH_I2C_Read... [07:54:36]Read from MH i2c: E2 03 00 D5 06 00 90 00 4F [07:54:36]RAPDU: 90 00 [07:54:36]wFMCommunicate OK [07:54:36]wFMCommunicate request_size=10 [07:54:36]MH_SAM_APDU [07:54:36]CAPDU: 80 0D 02 02 05 03 A1 73 6D FF [07:54:36]Write to MH i2c: E2 0D 00 D6 06 80 0D 02 02 05 00 03 A1 73 6D FF 00 00 E3 [07:54:36]Write i2c OK [07:54:36]MH_I2C_Read... [07:54:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:36]Read from MH i2c: E2 [07:54:36]MH_I2C_Read... [07:54:36]Read from MH i2c: E2 03 00 [07:54:36]MH_I2C_Read... [07:54:36]Read from MH i2c: E2 03 00 D6 06 00 90 00 50 [07:54:36]RAPDU: 90 00 [07:54:36]wFMCommunicate OK [07:54:36]wFMCommunicate request_size=4 [07:54:36]MH_SAM_APDU [07:54:36]CAPDU: 80 0D 03 02 [07:54:36]Write to MH i2c: E2 08 00 D7 06 80 0D 03 02 00 00 00 00 58 [07:54:36]Write i2c OK [07:54:36]MH_I2C_Read... [07:54:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:36]Read from MH i2c: E2 [07:54:36]MH_I2C_Read... [07:54:36]Read from MH i2c: E2 0B 00 [07:54:36]MH_I2C_Read... [07:54:36]Read from MH i2c: E2 0B 00 D7 06 00 93 AF 8C 1D 37 22 38 7F 90 00 54 [07:54:36]RAPDU: 93 AF 8C 1D 37 22 38 7F 90 00 [07:54:36]wFMCommunicate OK [07:54:36]SAM_PROTO_SignData done [07:54:36]FM_MakeSignedData done [07:54:36]CreateOFDProtocolMessage [07:54:36]wFMCommunicate request_size=4 [07:54:36]MH_SAM_APDU [07:54:36]CAPDU: 80 11 00 00 [07:54:36]Write to MH i2c: E2 08 00 D8 06 80 11 00 00 00 00 00 00 58 [07:54:36]Write i2c OK [07:54:36]MH_I2C_Read... [07:54:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:36]Read from MH i2c: E2 [07:54:36]MH_I2C_Read... [07:54:36]Read from MH i2c: E2 17 00 [07:54:36]MH_I2C_Read... [07:54:36]Read from MH i2c: E2 17 00 D8 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B3 [07:54:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:54:36]wFMCommunicate OK [07:54:36]CreateOFDProtocolMessage done [07:54:36]OFDSenderStorePacket 118371 [07:54:36]StoreOFDPacket docnum=118371 [07:54:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C7 72 07 01 AC 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 3B F9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 CE 01 00 35 04 06 00 1C 03 A1 73 6D FF 93 AF 8C 1D 37 22 38 7F [07:54:36]CheckFolder [07:54:36]dirname=/storage/ofd_packets [07:54:36]CheckFolder done [07:54:36]ProducePacketName [07:54:36]name=ofd_packets/00118371 [07:54:36]NVStorageSaveData ofd_packets/00118371 [07:54:36]File name is /storage/ofd_packets/00118371 [07:54:36]Write 301 bytes [07:54:36]NVStorageSaveData done [07:54:36]OFDSenderStorePacket done [07:54:36]KKMCreateOFDPacket done [07:54:36]NVStorageSaveData kkm_last_timestamp [07:54:36]File name is /storage/kkm_last_timestamp [07:54:36]Write 4 bytes [07:54:36]NVStorageSaveData done [07:54:36]ExternCall_PrintAddStr [07:54:36]wPrintStart [07:54:36]Write to MH i2c: 01 00 00 D9 06 DF [07:54:36]Write i2c OK [07:54:36]MH_I2C_Read... [07:54:36]Read from MH i2c: 01 [07:54:36]MH_I2C_Read... [07:54:36]Read from MH i2c: 01 07 00 [07:54:36]MH_I2C_Read... [07:54:36]Read from MH i2c: 01 07 00 D9 06 00 00 00 00 00 FF 0F F4 [07:54:36]RasterBufferAndPrint [07:54:36]line Счет N : (1)949244 [07:54:36]line ИНН: 02508201610067 [07:54:36]line Контрольно-Кассовый Чек [07:54:36]line ПРОДАЖА [07:54:36]line ТРК (МРК, ГНК) : 33 [07:54:36]line Товар: 2710124500 [07:54:36]line Аи-95-К-3 [07:54:36]line 13.480 * 74.20 [07:54:36]line = 1000.22 [07:54:36]line НДС 12% НСП 1% [07:54:36]line > о реализуемом товаре [07:54:36]line ОКРУГЛЕНИЕ: -0.22 [07:54:36]line ИТОГО: 1000.00 [07:54:36]line Внесено: 1000.00 [07:54:36]line СДАЧА: 0.00 [07:54:36]line НСП 1% : 8.85 [07:54:36]line НДС 12% : 106.22 [07:54:36]line Наличными: 1000.00 [07:54:36]line Безнал.: 0.00 [07:54:36]line Место: АЗС № 134 "Партнер Нефть" [07:54:36]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:54:36]line СНО: Общий режим [07:54:36]line Чек 40 28.07.2024 07:54 [07:54:36]line Смена: 433 ФФД: 1.0 [07:54:36]line ЗНМ: 0300000044 [07:54:36]line РНМ: 0000000000092660 [07:54:36]line Версия ККМ: 001 [07:54:36]line ФМ: 0000000000874939 [07:54:36]line ФД: 118371 [07:54:36]line ФПД: 30801919176191 [07:54:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T075435&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118371&fm=30801919176191&tin=02508201610067®Number=0000000000092660&sum=100000 [07:54:36]OFD Sender: Processing packet 118371 [packets to send 86, broken 85] [07:54:36]ProducePacketName [07:54:36]name=ofd_packets/00118371 [07:54:36]OFD Sender: To server: pG, [07:54:36]CommunicateWithHost lk.salyk.kg:30040 [07:54:36]ConnectInit lk.salyk.kg [07:54:36]written 0, free lines is 4095 [07:54:36]Connected sock=10 [07:54:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C7 72 07 01 AC 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 3B F9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 CE 01 00 35 04 06 00 1C 03 A1 73 6D FF 93 AF 8C 1D 37 22 38 7F [07:54:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 CD F9 47 00 C7 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 CE 01 00 F4 03 04 00 CD A6 A5 66 B6 04 01 00 00 96 0A B3 E3 83 0D FE 5D [07:54:36]CommunicateWithHost err = 0 [07:54:36]CheckOFDResponse [07:54:36]1017 (14) - 77093643461234 [07:54:36]1041 (16) - 0000000000874939 [07:54:36]1040 (4) - 118371 [07:54:36]1012 (4) - 28.07.2024 02:02 [07:54:36]1206 (1) - 0 [07:54:36]OFD Sender: Remove packet 118371 [07:54:36]ProducePacketName [07:54:36]name=ofd_packets/00118371 [07:54:37]NVStorageDeleteData [07:54:37]Write to MH i2c: 01 00 00 03 07 0A [07:54:37]Write i2c OK [07:54:37]MH_I2C_Read... [07:54:37]Read from MH i2c: 01 [07:54:37]MH_I2C_Read... [07:54:37]Read from MH i2c: 01 07 00 [07:54:37]MH_I2C_Read... [07:54:37]Read from MH i2c: 01 07 00 03 07 00 00 00 00 00 2E 0D 4C [07:54:37]RasterBufferAndPrint [07:54:37]line [07:54:37]line [07:54:37]line [07:54:37]line [07:54:37]line [07:54:37]written 0, free lines is 3394 [07:54:37]MH_Cut [07:54:37]Write to MH i2c: D1 01 00 0A 07 01 E3 [07:54:37]Write i2c OK [07:54:37]MH_I2C_Read... [07:54:37]Read from MH i2c: D1 [07:54:37]MH_I2C_Read... [07:54:37]Read from MH i2c: D1 01 00 [07:54:37]MH_I2C_Read... [07:54:37]Read from MH i2c: D1 01 00 0A 07 00 E2 [07:54:37]Write to MH i2c: 01 00 00 0B 07 12 [07:54:37]Write i2c OK [07:54:37]MH_I2C_Read... [07:54:37]OFD Sender: No OFD packet to send [07:54:37]*** Cut start [07:54:37]*** Partial cut [07:54:37]*** CUTSNS_PIN = 1 [07:54:37]*** CUTSNS_PIN = 0 [07:54:37]*** Brake cut motor [07:54:38]Read from MH i2c: 01 [07:54:38]MH_I2C_Read... [07:54:38]*** Stop cut motor [07:54:38]*** Cut end [07:54:38]Read from MH i2c: 01 07 00 [07:54:38]MH_I2C_Read... [07:54:38]Read from MH i2c: 01 07 00 0B 07 00 00 00 00 00 FF 0F 27 [07:54:38]process_action close_receipt done [07:54:38]requested_data is exist [07:54:38]produce_requested_data [07:54:38]requested_item fm.sn is exist - process it [07:54:38]wFMCommunicate request_size=4 [07:54:38]MH_SAM_APDU [07:54:38]CAPDU: 80 11 00 00 [07:54:38]Write to MH i2c: E2 08 00 0C 07 80 11 00 00 00 00 00 00 8D [07:54:38]Write i2c OK [07:54:38]MH_I2C_Read... [07:54:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:38]Read from MH i2c: E2 [07:54:38]MH_I2C_Read... [07:54:38]Read from MH i2c: E2 17 00 [07:54:38]MH_I2C_Read... [07:54:38]Read from MH i2c: E2 17 00 0C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E8 [07:54:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:54:38]wFMCommunicate OK [07:54:38]requested_item fd.num is exist - process it [07:54:38]SAM_PROTO_GetFieldsCounters [07:54:38]wFMCommunicate request_size=4 [07:54:38]MH_SAM_APDU [07:54:38]CAPDU: 80 13 00 00 [07:54:38]Write to MH i2c: E2 08 00 0D 07 80 13 00 00 00 00 00 00 90 [07:54:38]Write i2c OK [07:54:38]MH_I2C_Read... [07:54:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:38]Read from MH i2c: E2 [07:54:38]MH_I2C_Read... [07:54:38]Read from MH i2c: E2 62 00 [07:54:38]MH_I2C_Read... [07:54:38]Read from MH i2c: E2 62 00 0D 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 63 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [07:54:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 63 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:54:38]wFMCommunicate OK [07:54:38]SAM_PROTO_GetFieldsCounters done [07:54:38]requested_item shift.num is exist - process it [07:54:38]requested_item shift.opened is exist - process it [07:54:38]req_shift_opened [07:54:38]FM_GetShiftState [07:54:38]SAM_PROTO_GetShiftState [07:54:38]wFMCommunicate request_size=4 [07:54:38]MH_SAM_APDU [07:54:38]CAPDU: 80 13 01 00 [07:54:38]Write to MH i2c: E2 08 00 0E 07 80 13 01 00 00 00 00 00 92 [07:54:38]Write i2c OK [07:54:38]MH_I2C_Read... [07:54:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:38]Read from MH i2c: E2 [07:54:38]MH_I2C_Read... [07:54:38]Read from MH i2c: E2 0E 00 [07:54:38]MH_I2C_Read... [07:54:38]Read from MH i2c: E2 0E 00 0E 07 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 69 [07:54:38]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:54:38]wFMCommunicate OK [07:54:38]SAM_PROTO_GetShiftState done [07:54:38]FM_GetShiftState done [07:54:38]req_shift_opened done [07:54:38]requested_item shift.open_date is exist - process it [07:54:38]req_shift_open_date [07:54:38]req_shift_open_date done [07:54:38]produce_requested_data done [07:54:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118371,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [07:54:38]process_action_free close_receipt [07:54:38]json_value_free [07:54:38]json_value_free done [07:54:38]process_json_proto returns [07:54:38]Send response to host [07:54:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118371,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [07:54:38]free response buf [07:54:38]execute_script done [07:54:38]execute_script returns [07:54:38]free content buf [07:54:38]Sock 7.Close socket [07:54:38]Sock 7.Thread stoped [07:54:41]accept exits with 9 [07:54:41]New connection [07:54:41]New thread 3067067748 created [07:54:41]Thread 3066924388 joined [07:54:41]Waiting for new connection... [07:54:41] Sock 9.Parse request [07:54:41]Sock 9.Check first char [07:54:41]Sock 9.First char is OK [07:54:41]request: POST /json_proto HTTP/1.0 [07:54:41]Method: POST [07:54:41]URL: /json_proto [07:54:41]Method is POST - this is cgi request [07:54:41]url: /json_proto [07:54:41]query_string will be loaded in cgi processing [07:54:41]execute_cgi json_proto POST (null) [07:54:41]execute_cgi path=json_proto method=POST [07:54:41]POST find Content-Length [07:54:41]Host: 172.17.45.7:8080 [07:54:41]Content-Length: 739 [07:54:41]Content-Type: application/json [07:54:41] [07:54:41]POST finish read [07:54:41]Found Content-Length = 739 [07:54:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118371, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:41]execute_script... [07:54:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118371, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:41]POST & json_proto [07:54:41]process_json_proto [07:54:41]json parsed OK: [07:54:41]protocol is kg_v1.0 [07:54:41]action value=close_receipt [07:54:42]process_action close_receipt [07:54:42]cmd_close_receipt [07:54:42]MH_GetDate [07:54:42]Write to MH i2c: F0 00 00 0F 07 05 [07:54:42]Write i2c OK [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: F0 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: F0 09 00 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: F0 09 00 0F 07 00 43 F9 A5 66 90 0F 3E 66 98 [07:54:42]GetLastDocTimeStamp 1722153275 [07:54:42]current date 1722153283 [07:54:42]FM_GetShiftState [07:54:42]SAM_PROTO_GetShiftState [07:54:42]wFMCommunicate request_size=4 [07:54:42]MH_SAM_APDU [07:54:42]CAPDU: 80 13 01 00 [07:54:42]Write to MH i2c: E2 08 00 10 07 80 13 01 00 00 00 00 00 94 [07:54:42]Write i2c OK [07:54:42]MH_I2C_Read... [07:54:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:42]Read from MH i2c: E2 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: E2 0E 00 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: E2 0E 00 10 07 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 6B [07:54:42]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:54:42]wFMCommunicate OK [07:54:42]SAM_PROTO_GetShiftState done [07:54:42]FM_GetShiftState done [07:54:42]opened in 1722125364 [07:54:42]opened+sec_in_day 1722211764 [07:54:42]quantity*price = 100021 [07:54:42]sum+1 = 100023 [07:54:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 41 28.07.2024 07:54 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 118371 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 118372 ФПД: 67633673508361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T075443&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118372&fm=67633673508361&tin=02508201610067®Number=0000000000092660&sum=100000 [07:54:43]StoreToDocumentArchive [07:54:43]shift 433 fd 118372 [07:54:43]save to /storage/0433/doc_00118372 [07:54:43]save last doc name /storage/0433/doc_00118372 to /storage/kkm_last_doc_name [07:54:43]save OK [07:54:43]Clear old archive folders... [07:54:43]ProcessDocumentItem done err = 0, tmpTLVsize=279 [07:54:43]tlvbuf is 001225F0 [07:54:43]SAM_PROTO_ClearQueue [07:54:43]wFMCommunicate request_size=4 [07:54:43]MH_SAM_APDU [07:54:43]CAPDU: 80 09 00 00 [07:54:43]Write to MH i2c: E2 08 00 1F 07 80 09 00 00 00 00 00 00 98 [07:54:43]Write i2c OK [07:54:43]MH_I2C_Read... [07:54:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:43]Read from MH i2c: E2 [07:54:43]MH_I2C_Read... [07:54:43]Read from MH i2c: E2 03 00 [07:54:43]MH_I2C_Read... [07:54:43]Read from MH i2c: E2 03 00 1F 07 00 90 00 9A [07:54:43]RAPDU: 90 00 [07:54:43]wFMCommunicate OK [07:54:43]SAM_PROTO_ClearQueue done [07:54:43]KKMCreateOFDPacket [07:54:43]OFDProtocolAddRootSTLVToBuf [07:54:43]FM_MakeSignedData [07:54:43]FM_MakeSignedData [07:54:43]SAM_PROTO_SignData [07:54:43]wFMCommunicate request_size=4 [07:54:43]MH_SAM_APDU [07:54:43]CAPDU: 80 0D 01 02 [07:54:43]Write to MH i2c: E2 08 00 20 07 80 0D 01 02 00 00 00 00 A0 [07:54:43]Write i2c OK [07:54:43]MH_I2C_Read... [07:54:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:43]Read from MH i2c: E2 [07:54:43]MH_I2C_Read... [07:54:43]Read from MH i2c: E2 03 00 [07:54:43]MH_I2C_Read... [07:54:43]Read from MH i2c: E2 03 00 20 07 00 90 00 9B [07:54:43]RAPDU: 90 00 [07:54:43]wFMCommunicate OK [07:54:43]wFMCommunicate request_size=255 [07:54:43]MH_SAM_APDU [07:54:43]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 43 F9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 63 CE 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 [07:54:43]Write to MH i2c: E2 02 01 21 07 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 43 F9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 63 CE 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 00 00 06 [07:54:43]Write i2c OK [07:54:43]MH_I2C_Read... [07:54:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:44]Read from MH i2c: E2 [07:54:44]MH_I2C_Read... [07:54:44]Read from MH i2c: E2 03 00 [07:54:44]MH_I2C_Read... [07:54:44]Read from MH i2c: E2 03 00 21 07 00 90 00 9C [07:54:44]RAPDU: 90 00 [07:54:44]wFMCommunicate OK [07:54:44]wFMCommunicate request_size=38 [07:54:44]MH_SAM_APDU [07:54:44]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 64 CE 01 00 35 04 06 00 3D 83 31 15 96 09 [07:54:44]Write to MH i2c: E2 29 00 22 07 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 64 CE 01 00 35 04 06 00 3D 83 31 15 96 09 00 00 0C [07:54:44]Write i2c OK [07:54:44]MH_I2C_Read... [07:54:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:44]Read from MH i2c: E2 [07:54:44]MH_I2C_Read... [07:54:44]Read from MH i2c: E2 03 00 [07:54:44]MH_I2C_Read... [07:54:44]Read from MH i2c: E2 03 00 22 07 00 90 00 9D [07:54:44]RAPDU: 90 00 [07:54:44]wFMCommunicate OK [07:54:44]wFMCommunicate request_size=4 [07:54:44]MH_SAM_APDU [07:54:44]CAPDU: 80 0D 03 02 [07:54:44]Write to MH i2c: E2 08 00 23 07 80 0D 03 02 00 00 00 00 A5 [07:54:44]Write i2c OK [07:54:44]MH_I2C_Read... [07:54:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:44]Read from MH i2c: E2 [07:54:44]MH_I2C_Read... [07:54:44]Read from MH i2c: E2 0B 00 [07:54:44]MH_I2C_Read... [07:54:44]Read from MH i2c: E2 0B 00 23 07 00 83 92 36 77 D7 8C 84 F8 90 00 47 [07:54:44]RAPDU: 83 92 36 77 D7 8C 84 F8 90 00 [07:54:44]wFMCommunicate OK [07:54:44]SAM_PROTO_SignData done [07:54:44]FM_MakeSignedData done [07:54:44]CreateOFDProtocolMessage [07:54:44]wFMCommunicate request_size=4 [07:54:44]MH_SAM_APDU [07:54:44]CAPDU: 80 11 00 00 [07:54:44]Write to MH i2c: E2 08 00 24 07 80 11 00 00 00 00 00 00 A5 [07:54:44]Write i2c OK [07:54:44]MH_I2C_Read... [07:54:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:44]Read from MH i2c: E2 [07:54:44]MH_I2C_Read... [07:54:44]Read from MH i2c: E2 17 00 [07:54:44]MH_I2C_Read... [07:54:44]Read from MH i2c: E2 17 00 24 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 00 [07:54:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:54:44]wFMCommunicate OK [07:54:44]CreateOFDProtocolMessage done [07:54:44]OFDSenderStorePacket 118372 [07:54:44]StoreOFDPacket docnum=118372 [07:54:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 2C 41 23 01 7B C8 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 43 F9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 63 CE 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 64 CE 01 00 35 04 06 00 3D 83 31 15 96 09 83 92 36 77 D7 8C 84 F8 [07:54:44]CheckFolder [07:54:44]dirname=/storage/ofd_packets [07:54:44]CheckFolder done [07:54:44]ProducePacketName [07:54:44]name=ofd_packets/00118372 [07:54:44]NVStorageSaveData ofd_packets/00118372 [07:54:44]File name is /storage/ofd_packets/00118372 [07:54:44]Write 329 bytes [07:54:44]NVStorageSaveData done [07:54:44]OFDSenderStorePacket done [07:54:44]KKMCreateOFDPacket done [07:54:44]NVStorageSaveData kkm_last_timestamp [07:54:44]File name is /storage/kkm_last_timestamp [07:54:44]Write 4 bytes [07:54:44]NVStorageSaveData done [07:54:44]ExternCall_PrintAddStr [07:54:44]wPrintStart [07:54:44]Write to MH i2c: 01 00 00 25 07 2C [07:54:44]Write i2c OK [07:54:44]MH_I2C_Read... [07:54:44]Read from MH i2c: 01 [07:54:44]MH_I2C_Read... [07:54:44]Read from MH i2c: 01 07 00 [07:54:44]MH_I2C_Read... [07:54:44]Read from MH i2c: 01 07 00 25 07 00 00 00 00 00 FF 0F 41 [07:54:44]RasterBufferAndPrint [07:54:44]line Счет N : (1)949244 [07:54:44]line ИНН: 02508201610067 [07:54:44]line Контрольно-Кассовый Чек [07:54:44]line ВОЗВРАТ ПРОДАЖИ [07:54:44]line ТРК (МРК, ГНК) : 33 [07:54:44]line Товар: 2710124500 [07:54:44]line Аи-95-К-3 [07:54:44]line 13.480 * 74.20 [07:54:44]line = 1000.22 [07:54:44]line НДС 12% НСП 1% [07:54:44]line > о реализуемом товаре [07:54:44]line ОКРУГЛЕНИЕ: -0.22 [07:54:44]line ИТОГО: 1000.00 [07:54:44]line НСП 1% : 8.85 [07:54:44]line НДС 12% : 106.22 [07:54:44]line Наличными: 1000.00 [07:54:44]line Безнал.: 0.00 [07:54:44]line Место: АЗС № 134 "Партнер Нефть" [07:54:44]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:54:44]line СНО: Общий режим [07:54:44]line Чек 41 28.07.2024 07:54 [07:54:44]line Смена: 433 ФФД: 1.0 [07:54:44]line ЗНМ: 0300000044 [07:54:44]line РНМ: 0000000000092660 [07:54:44]line Версия ККМ: 001 [07:54:44]line ФД осн.: 118371 [07:54:44]line ФМ осн.: 0000000000874939 [07:54:44]line ФМ: 0000000000874939 [07:54:44]line ФД: 118372 [07:54:44]line ФПД: 67633673508361 [07:54:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T075443&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118372&fm=67633673508361&tin=02508201610067®Number=0000000000092660&sum=100000 [07:54:44]written 0, free lines is 4095 [07:54:44]OFD Sender: Processing packet 118372 [packets to send 86, broken 85] [07:54:44]ProducePacketName [07:54:44]name=ofd_packets/00118372 [07:54:44]OFD Sender: To server: pG, [07:54:44]CommunicateWithHost lk.salyk.kg:30040 [07:54:44]ConnectInit lk.salyk.kg [07:54:44]Connected sock=10 [07:54:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 2C 41 23 01 7B C8 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 43 F9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 63 CE 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 64 CE 01 00 35 04 06 00 3D 83 31 15 96 09 83 92 36 77 D7 8C 84 F8 [07:54:44]Write to MH i2c: 01 00 00 4F 07 56 [07:54:44]Write i2c OK [07:54:44]MH_I2C_Read... [07:54:44]Read from MH i2c: 01 [07:54:44]MH_I2C_Read... [07:54:44]Read from MH i2c: 01 07 00 [07:54:44]MH_I2C_Read... [07:54:44]Read from MH i2c: 01 07 00 4F 07 00 00 00 00 00 F8 0C 61 [07:54:44]RasterBufferAndPrint [07:54:44]line [07:54:44]line [07:54:44]line [07:54:44]line [07:54:44]line [07:54:44]written 0, free lines is 3347 [07:54:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 83 7D 47 00 C9 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 64 CE 01 00 F4 03 04 00 D5 A6 A5 66 B6 04 01 00 00 91 F7 D8 24 51 8F B5 76 [07:54:45]CommunicateWithHost err = 0 [07:54:45]CheckOFDResponse [07:54:45]1017 (14) - 77093643461234 [07:54:45]1041 (16) - 0000000000874939 [07:54:45]1040 (4) - 118372 [07:54:45]1012 (4) - 28.07.2024 02:03 [07:54:45]1206 (1) - 0 [07:54:45]OFD Sender: Remove packet 118372 [07:54:45]ProducePacketName [07:54:45]name=ofd_packets/00118372 [07:54:45]NVStorageDeleteData [07:54:45]MH_Cut [07:54:45]Write to MH i2c: D1 01 00 56 07 01 2F [07:54:45]Write i2c OK [07:54:45]MH_I2C_Read... [07:54:45]Read from MH i2c: D1 [07:54:45]MH_I2C_Read... [07:54:45]Read from MH i2c: D1 01 00 [07:54:45]MH_I2C_Read... [07:54:45]Read from MH i2c: D1 01 00 56 07 00 2E [07:54:45]Write to MH i2c: 01 00 00 57 07 5E [07:54:45]Write i2c OK [07:54:45]MH_I2C_Read... [07:54:45]OFD Sender: No OFD packet to send [07:54:45]*** Cut start [07:54:45]*** Partial cut [07:54:45]*** CUTSNS_PIN = 1 [07:54:45]*** CUTSNS_PIN = 0 [07:54:45]*** Brake cut motor [07:54:46]Read from MH i2c: 01 [07:54:46]MH_I2C_Read... [07:54:46]*** Stop cut motor [07:54:46]*** Cut end [07:54:46]Read from MH i2c: 01 07 00 [07:54:46]MH_I2C_Read... [07:54:46]Read from MH i2c: 01 07 00 57 07 00 00 00 00 00 FF 0F 73 [07:54:46]process_action close_receipt done [07:54:46]requested_data is exist [07:54:46]produce_requested_data [07:54:46]requested_item fm.sn is exist - process it [07:54:46]wFMCommunicate request_size=4 [07:54:46]MH_SAM_APDU [07:54:46]CAPDU: 80 11 00 00 [07:54:46]Write to MH i2c: E2 08 00 58 07 80 11 00 00 00 00 00 00 D9 [07:54:46]Write i2c OK [07:54:46]MH_I2C_Read... [07:54:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:46]Read from MH i2c: E2 [07:54:46]MH_I2C_Read... [07:54:46]Read from MH i2c: E2 17 00 [07:54:46]MH_I2C_Read... [07:54:46]Read from MH i2c: E2 17 00 58 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 34 [07:54:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:54:46]wFMCommunicate OK [07:54:46]requested_item fd.num is exist - process it [07:54:46]SAM_PROTO_GetFieldsCounters [07:54:46]wFMCommunicate request_size=4 [07:54:46]MH_SAM_APDU [07:54:46]CAPDU: 80 13 00 00 [07:54:46]Write to MH i2c: E2 08 00 59 07 80 13 00 00 00 00 00 00 DC [07:54:46]Write i2c OK [07:54:46]MH_I2C_Read... [07:54:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:46]Read from MH i2c: E2 [07:54:46]MH_I2C_Read... [07:54:46]Read from MH i2c: E2 62 00 [07:54:46]MH_I2C_Read... [07:54:46]Read from MH i2c: E2 62 00 59 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 64 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [07:54:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 64 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:54:46]wFMCommunicate OK [07:54:46]SAM_PROTO_GetFieldsCounters done [07:54:46]requested_item shift.num is exist - process it [07:54:46]requested_item shift.opened is exist - process it [07:54:46]req_shift_opened [07:54:46]FM_GetShiftState [07:54:46]SAM_PROTO_GetShiftState [07:54:46]wFMCommunicate request_size=4 [07:54:46]MH_SAM_APDU [07:54:46]CAPDU: 80 13 01 00 [07:54:46]Write to MH i2c: E2 08 00 5A 07 80 13 01 00 00 00 00 00 DE [07:54:46]Write i2c OK [07:54:46]MH_I2C_Read... [07:54:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:46]Read from MH i2c: E2 [07:54:46]MH_I2C_Read... [07:54:46]Read from MH i2c: E2 0E 00 [07:54:46]MH_I2C_Read... [07:54:46]Read from MH i2c: E2 0E 00 5A 07 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 B5 [07:54:46]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:54:46]wFMCommunicate OK [07:54:46]SAM_PROTO_GetShiftState done [07:54:46]FM_GetShiftState done [07:54:46]req_shift_opened done [07:54:46]requested_item shift.open_date is exist - process it [07:54:46]req_shift_open_date [07:54:46]req_shift_open_date done [07:54:46]produce_requested_data done [07:54:46]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118372,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [07:54:46]process_action_free close_receipt [07:54:46]json_value_free [07:54:46]json_value_free done [07:54:46]process_json_proto returns [07:54:46]Send response to host [07:54:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118372,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [07:54:46]free response buf [07:54:46]execute_script done [07:54:46]execute_script returns [07:54:46]free content buf [07:54:46]Sock 9.Close socket [07:54:46]Sock 9.Thread stoped [07:54:47]accept exits with 7 [07:54:47]New connection [07:54:47]New thread 3066924388 created [07:54:47]Thread 3067067748 joined [07:54:47]Waiting for new connection... [07:54:47] Sock 7.Parse request [07:54:47]Sock 7.Check first char [07:54:47]Sock 7.First char is OK [07:54:47]request: POST /json_proto HTTP/1.0 [07:54:47]Method: POST [07:54:47]URL: /json_proto [07:54:47]Method is POST - this is cgi request [07:54:47]url: /json_proto [07:54:47]query_string will be loaded in cgi processing [07:54:47]execute_cgi json_proto POST (null) [07:54:47]execute_cgi path=json_proto method=POST [07:54:47]POST find Content-Length [07:54:47]Host: 172.17.45.7:8080 [07:54:47]Content-Length: 679 [07:54:47]Content-Type: application/json [07:54:47] [07:54:47]POST finish read [07:54:47]Found Content-Length = 679 [07:54:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:47]execute_script... [07:54: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)949245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:47]POST & json_proto [07:54:47]process_json_proto [07:54:47]json parsed OK: [07:54:47]protocol is kg_v1.0 [07:54:47]action value=close_receipt [07:54:47]process_action close_receipt [07:54:47]cmd_close_receipt [07:54:47]MH_GetDate [07:54:47]Write to MH i2c: F0 00 00 5B 07 51 [07:54:47]Write i2c OK [07:54:47]MH_I2C_Read... [07:54:47]Read from MH i2c: F0 [07:54:47]MH_I2C_Read... [07:54:47]Read from MH i2c: F0 09 00 [07:54:47]MH_I2C_Read... [07:54:47]Read from MH i2c: F0 09 00 5B 07 00 48 F9 A5 66 90 0F 3E 66 E9 [07:54:47]GetLastDocTimeStamp 1722153283 [07:54:47]current date 1722153288 [07:54:47]FM_GetShiftState [07:54:47]SAM_PROTO_GetShiftState [07:54:47]wFMCommunicate request_size=4 [07:54:47]MH_SAM_APDU [07:54:47]CAPDU: 80 13 01 00 [07:54:47]Write to MH i2c: E2 08 00 5C 07 80 13 01 00 00 00 00 00 E0 [07:54:47]Write i2c OK [07:54:47]MH_I2C_Read... [07:54:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:47]Read from MH i2c: E2 [07:54:47]MH_I2C_Read... [07:54:47]Read from MH i2c: E2 0E 00 [07:54:47]MH_I2C_Read... [07:54:47]Read from MH i2c: E2 0E 00 5C 07 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 B7 [07:54:47]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:54:47]wFMCommunicate OK [07:54:47]SAM_PROTO_GetShiftState done [07:54:47]FM_GetShiftState done [07:54:47]opened in 1722125364 [07:54:47]opened+sec_in_day 1722211764 [07:54:47]quantity*price = 100050 [07:54:47]sum+1 = 100052 [07:54:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 42 28.07.2024 07:54 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118373 ФПД: 93342341078840 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T075448&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118373&fm=93342341078840&tin=02508201610067®Number=0000000000092660&sum=100000 [07:54:48]StoreToDocumentArchive [07:54:48]shift 433 fd 118373 [07:54:48]save to /storage/0433/doc_00118373 [07:54:48]save last doc name /storage/0433/doc_00118373 to /storage/kkm_last_doc_name [07:54:48]save OK [07:54:48]Clear old archive folders... [07:54:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:54:48]tlvbuf is 001C73B0 [07:54:48]SAM_PROTO_ClearQueue [07:54:48]wFMCommunicate request_size=4 [07:54:48]MH_SAM_APDU [07:54:48]CAPDU: 80 09 00 00 [07:54:48]Write to MH i2c: E2 08 00 69 07 80 09 00 00 00 00 00 00 E2 [07:54:48]Write i2c OK [07:54:48]MH_I2C_Read... [07:54:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:48]Read from MH i2c: E2 [07:54:48]MH_I2C_Read... [07:54:48]Read from MH i2c: E2 03 00 [07:54:48]MH_I2C_Read... [07:54:48]Read from MH i2c: E2 03 00 69 07 00 90 00 E4 [07:54:48]RAPDU: 90 00 [07:54:48]wFMCommunicate OK [07:54:48]SAM_PROTO_ClearQueue done [07:54:48]KKMCreateOFDPacket [07:54:48]OFDProtocolAddRootSTLVToBuf [07:54:48]FM_MakeSignedData [07:54:48]FM_MakeSignedData [07:54:48]SAM_PROTO_SignData [07:54:48]wFMCommunicate request_size=4 [07:54:48]MH_SAM_APDU [07:54:48]CAPDU: 80 0D 01 02 [07:54:48]Write to MH i2c: E2 08 00 6A 07 80 0D 01 02 00 00 00 00 EA [07:54:48]Write i2c OK [07:54:48]MH_I2C_Read... [07:54:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:48]Read from MH i2c: E2 [07:54:48]MH_I2C_Read... [07:54:48]Read from MH i2c: E2 03 00 [07:54:48]MH_I2C_Read... [07:54:48]Read from MH i2c: E2 03 00 6A 07 00 90 00 E5 [07:54:48]RAPDU: 90 00 [07:54:48]wFMCommunicate OK [07:54:48]wFMCommunicate request_size=255 [07:54:48]MH_SAM_APDU [07:54:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 48 F9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 CE 01 00 35 04 06 00 54 E4 F5 15 [07:54:49]Write to MH i2c: E2 02 01 6B 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 48 F9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 CE 01 00 35 04 06 00 54 E4 F5 15 00 00 18 [07:54:49]Write i2c OK [07:54:49]MH_I2C_Read... [07:54:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:49]Read from MH i2c: E2 [07:54:49]MH_I2C_Read... [07:54:49]Read from MH i2c: E2 03 00 [07:54:49]MH_I2C_Read... [07:54:49]Read from MH i2c: E2 03 00 6B 07 00 90 00 E6 [07:54:49]RAPDU: 90 00 [07:54:49]wFMCommunicate OK [07:54:49]wFMCommunicate request_size=7 [07:54:49]MH_SAM_APDU [07:54:49]CAPDU: 80 0D 02 02 02 1F 38 [07:54:49]Write to MH i2c: E2 0A 00 6C 07 80 0D 02 02 02 00 1F 38 00 00 48 [07:54:49]Write i2c OK [07:54:49]MH_I2C_Read... [07:54:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:49]Read from MH i2c: E2 [07:54:49]MH_I2C_Read... [07:54:49]Read from MH i2c: E2 03 00 [07:54:49]MH_I2C_Read... [07:54:49]Read from MH i2c: E2 03 00 6C 07 00 90 00 E7 [07:54:49]RAPDU: 90 00 [07:54:49]wFMCommunicate OK [07:54:49]wFMCommunicate request_size=4 [07:54:49]MH_SAM_APDU [07:54:49]CAPDU: 80 0D 03 02 [07:54:49]Write to MH i2c: E2 08 00 6D 07 80 0D 03 02 00 00 00 00 EF [07:54:49]Write i2c OK [07:54:49]MH_I2C_Read... [07:54:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:49]Read from MH i2c: E2 [07:54:49]MH_I2C_Read... [07:54:49]Read from MH i2c: E2 0B 00 [07:54:49]MH_I2C_Read... [07:54:49]Read from MH i2c: E2 0B 00 6D 07 00 69 CA AA 29 29 6E BC B7 90 00 00 [07:54:49]RAPDU: 69 CA AA 29 29 6E BC B7 90 00 [07:54:49]wFMCommunicate OK [07:54:49]SAM_PROTO_SignData done [07:54:49]FM_MakeSignedData done [07:54:49]CreateOFDProtocolMessage [07:54:49]wFMCommunicate request_size=4 [07:54:49]MH_SAM_APDU [07:54:49]CAPDU: 80 11 00 00 [07:54:49]Write to MH i2c: E2 08 00 6E 07 80 11 00 00 00 00 00 00 EF [07:54:49]Write i2c OK [07:54:49]MH_I2C_Read... [07:54:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:49]Read from MH i2c: E2 [07:54:49]MH_I2C_Read... [07:54:49]Read from MH i2c: E2 17 00 [07:54:49]MH_I2C_Read... [07:54:49]Read from MH i2c: E2 17 00 6E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4A [07:54:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:54:49]wFMCommunicate OK [07:54:49]CreateOFDProtocolMessage done [07:54:49]OFDSenderStorePacket 118373 [07:54:49]StoreOFDPacket docnum=118373 [07:54:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 EC BD 04 01 E3 C2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 48 F9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 CE 01 00 35 04 06 00 54 E4 F5 15 1F 38 69 CA AA 29 29 6E BC B7 [07:54:49]CheckFolder [07:54:49]dirname=/storage/ofd_packets [07:54:49]CheckFolder done [07:54:49]ProducePacketName [07:54:49]name=ofd_packets/00118373 [07:54:49]NVStorageSaveData ofd_packets/00118373 [07:54:49]File name is /storage/ofd_packets/00118373 [07:54:49]Write 298 bytes [07:54:49]NVStorageSaveData done [07:54:49]OFDSenderStorePacket done [07:54:49]KKMCreateOFDPacket done [07:54:49]NVStorageSaveData kkm_last_timestamp [07:54:49]File name is /storage/kkm_last_timestamp [07:54:49]Write 4 bytes [07:54:49]NVStorageSaveData done [07:54:49]ExternCall_PrintAddStr [07:54:49]wPrintStart [07:54:49]Write to MH i2c: 01 00 00 6F 07 76 [07:54:49]Write i2c OK [07:54:49]MH_I2C_Read... [07:54:49]Read from MH i2c: 01 [07:54:49]MH_I2C_Read... [07:54:49]Read from MH i2c: 01 07 00 [07:54:49]MH_I2C_Read... [07:54:49]Read from MH i2c: 01 07 00 6F 07 00 00 00 00 00 FF 0F 8B [07:54:49]RasterBufferAndPrint [07:54:49]line Счет N : (1)949245 [07:54:49]line ИНН: 02508201610067 [07:54:49]line Контрольно-Кассовый Чек [07:54:49]line ПРОДАЖА [07:54:49]line ТРК (МРК, ГНК) : 34 [07:54:49]line Товар: 2710194800 [07:54:49]line ДТ-К-5 [07:54:49]line 13.130 * 76.20 [07:54:49]line = 1000.51 [07:54:49]line НДС 12% НСП 1% [07:54:49]line > о реализуемом товаре [07:54:49]line ОКРУГЛЕНИЕ: -0.51 [07:54:49]line ИТОГО: 1000.00 [07:54:49]line Внесено: 1000.00 [07:54:49]line СДАЧА: 0.00 [07:54:49]line НСП 1% : 8.85 [07:54:49]line НДС 12% : 106.25 [07:54:49]line Наличными: 1000.00 [07:54:49]line Безнал.: 0.00 [07:54:49]line Место: АЗС № 134 "Партнер Нефть" [07:54:49]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:54:49]line СНО: Общий режим [07:54:49]line Чек 42 28.07.2024 07:54 [07:54:49]line Смена: 433 ФФД: 1.0 [07:54:49]line ЗНМ: 0300000044 [07:54:49]line РНМ: 0000000000092660 [07:54:49]line Версия ККМ: 001 [07:54:49]line ФМ: 0000000000874939 [07:54:49]line ФД: 118373 [07:54:49]line ФПД: 93342341078840 [07:54:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T075448&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118373&fm=93342341078840&tin=02508201610067®Number=0000000000092660&sum=100000 [07:54:49]OFD Sender: Processing packet 118373 [packets to send 86, broken 85] [07:54:49]ProducePacketName [07:54:49]name=ofd_packets/00118373 [07:54:49]OFD Sender: To server: pG, [07:54:49]CommunicateWithHost lk.salyk.kg:30040 [07:54:49]ConnectInit lk.salyk.kg [07:54:49]written 0, free lines is 4095 [07:54:49]Connected sock=10 [07:54: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 39 33 39 0C 01 00 00 EC BD 04 01 E3 C2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 48 F9 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 CE 01 00 35 04 06 00 54 E4 F5 15 1F 38 69 CA AA 29 29 6E BC B7 [07:54:50]Write to MH i2c: 01 00 00 99 07 A0 [07:54:50]Write i2c OK [07:54:50]MH_I2C_Read... [07:54:50]Read from MH i2c: 01 [07:54:50]MH_I2C_Read... [07:54:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 51 0A 47 00 A0 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 CE 01 00 F4 03 04 00 DA A6 A5 66 B6 04 01 00 00 3F 3B 14 C5 5D 88 97 95 [07:54:50]CommunicateWithHost err = 0 [07:54:50]CheckOFDResponse [07:54:50]1017 (14) - 77093643461234 [07:54:50]1041 (16) - 0000000000874939 [07:54:50]1040 (4) - 118373 [07:54:50]1012 (4) - 28.07.2024 02:03 [07:54:50]1206 (1) - 0 [07:54:50]OFD Sender: Remove packet 118373 [07:54:50]ProducePacketName [07:54:50]name=ofd_packets/00118373 [07:54:50]NVStorageDeleteData [07:54:50]Read from MH i2c: 01 07 00 [07:54:50]MH_I2C_Read... [07:54:50]Read from MH i2c: 01 07 00 99 07 00 00 00 00 00 F3 0C A6 [07:54:50]RasterBufferAndPrint [07:54:50]line [07:54:50]line [07:54:50]line [07:54:50]line [07:54:50]line [07:54:50]written 0, free lines is 3579 [07:54:50]MH_Cut [07:54:50]Write to MH i2c: D1 01 00 A0 07 01 79 [07:54:50]Write i2c OK [07:54:50]MH_I2C_Read... [07:54:50]Read from MH i2c: D1 [07:54:50]MH_I2C_Read... [07:54:50]Read from MH i2c: D1 01 00 [07:54:50]MH_I2C_Read... [07:54:50]Read from MH i2c: D1 01 00 A0 07 00 78 [07:54:50]Write to MH i2c: 01 00 00 A1 07 A8 [07:54:50]Write i2c OK [07:54:50]MH_I2C_Read... [07:54:50]OFD Sender: No OFD packet to send [07:54:51]*** Cut start [07:54:51]*** Partial cut [07:54:51]*** CUTSNS_PIN = 1 [07:54:51]*** CUTSNS_PIN = 0 [07:54:51]*** Brake cut motor [07:54:51]Read from MH i2c: 01 [07:54:51]MH_I2C_Read... [07:54:51]*** Stop cut motor [07:54:51]*** Cut end [07:54:51]Read from MH i2c: 01 07 00 [07:54:51]MH_I2C_Read... [07:54:51]Read from MH i2c: 01 07 00 A1 07 00 00 00 00 00 FF 0F BD [07:54:51]process_action close_receipt done [07:54:51]requested_data is exist [07:54:51]produce_requested_data [07:54:51]requested_item fm.sn is exist - process it [07:54:51]wFMCommunicate request_size=4 [07:54:51]MH_SAM_APDU [07:54:51]CAPDU: 80 11 00 00 [07:54:51]Write to MH i2c: E2 08 00 A2 07 80 11 00 00 00 00 00 00 23 [07:54:51]Write i2c OK [07:54:51]MH_I2C_Read... [07:54:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:51]Read from MH i2c: E2 [07:54:51]MH_I2C_Read... [07:54:51]Read from MH i2c: E2 17 00 [07:54:51]MH_I2C_Read... [07:54:51]Read from MH i2c: E2 17 00 A2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7E [07:54:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:54:51]wFMCommunicate OK [07:54:51]requested_item fd.num is exist - process it [07:54:51]SAM_PROTO_GetFieldsCounters [07:54:51]wFMCommunicate request_size=4 [07:54:51]MH_SAM_APDU [07:54:51]CAPDU: 80 13 00 00 [07:54:51]Write to MH i2c: E2 08 00 A3 07 80 13 00 00 00 00 00 00 26 [07:54:51]Write i2c OK [07:54:51]MH_I2C_Read... [07:54:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:51]Read from MH i2c: E2 [07:54:51]MH_I2C_Read... [07:54:51]Read from MH i2c: E2 62 00 [07:54:51]MH_I2C_Read... [07:54:51]Read from MH i2c: E2 62 00 A3 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 65 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [07:54:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 65 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:54:52]wFMCommunicate OK [07:54:52]SAM_PROTO_GetFieldsCounters done [07:54:52]requested_item shift.num is exist - process it [07:54:52]requested_item shift.opened is exist - process it [07:54:52]req_shift_opened [07:54:52]FM_GetShiftState [07:54:52]SAM_PROTO_GetShiftState [07:54:52]wFMCommunicate request_size=4 [07:54:52]MH_SAM_APDU [07:54:52]CAPDU: 80 13 01 00 [07:54:52]Write to MH i2c: E2 08 00 A4 07 80 13 01 00 00 00 00 00 28 [07:54:52]Write i2c OK [07:54:52]MH_I2C_Read... [07:54:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:52]Read from MH i2c: E2 [07:54:52]MH_I2C_Read... [07:54:52]Read from MH i2c: E2 0E 00 [07:54:52]MH_I2C_Read... [07:54:52]Read from MH i2c: E2 0E 00 A4 07 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 FF [07:54:52]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:54:52]wFMCommunicate OK [07:54:52]SAM_PROTO_GetShiftState done [07:54:52]FM_GetShiftState done [07:54:52]req_shift_opened done [07:54:52]requested_item shift.open_date is exist - process it [07:54:52]req_shift_open_date [07:54:52]req_shift_open_date done [07:54:52]produce_requested_data done [07:54:52]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118373,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [07:54:52]process_action_free close_receipt [07:54:52]json_value_free [07:54:52]json_value_free done [07:54:52]process_json_proto returns [07:54:52]Send response to host [07:54:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118373,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [07:54:52]free response buf [07:54:52]execute_script done [07:54:52]execute_script returns [07:54:52]free content buf [07:54:52]Sock 7.Close socket [07:54:52]Sock 7.Thread stoped [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:06]OFD Sender: No OFD packet to send [07:55:11]OFD Sender: No OFD packet to send [07:55:16]OFD Sender: No OFD packet to send [07:55:21]OFD Sender: No OFD packet to send [07:55:26]OFD Sender: No OFD packet to send [07:55:31]OFD Sender: No OFD packet to send [07:55:36]OFD Sender: No OFD packet to send [07:55:41]OFD Sender: No OFD packet to send [07:55:46]OFD Sender: No OFD packet to send [07:55:51]OFD Sender: No OFD packet to send [07:55:56]OFD Sender: No OFD packet to send [07:56:01]OFD Sender: No OFD packet to send [07:56:06]OFD Sender: No OFD packet to send [07:56:11]OFD Sender: No OFD packet to send [07:56:16]OFD Sender: No OFD packet to send [07:56:21]OFD Sender: No OFD packet to send [07:56:26]OFD Sender: No OFD packet to send [07:56:31]OFD Sender: No OFD packet to send [07:56:36]OFD Sender: No OFD packet to send [07:56:41]OFD Sender: No OFD packet to send [07:56:46]OFD Sender: No OFD packet to send [07:56:51]OFD Sender: No OFD packet to send [07:56:56]OFD Sender: No OFD packet to send [07:57:01]OFD Sender: No OFD packet to send [07:57:06]OFD Sender: No OFD packet to send [07:57:11]OFD Sender: No OFD packet to send [07:57:16]OFD Sender: No OFD packet to send [07:57:21]OFD Sender: No OFD packet to send [07:57:26]OFD Sender: No OFD packet to send [07:57:31]OFD Sender: No OFD packet to send [07:57:36]OFD Sender: No OFD packet to send [07:57:41]OFD Sender: No OFD packet to send [07:57:46]OFD Sender: No OFD packet to send [07:57:51]OFD Sender: No OFD packet to send [07:57:56]OFD Sender: No OFD packet to send [07:58:01]OFD Sender: No OFD packet to send [07:58:06]OFD Sender: No OFD packet to send [07:58:11]OFD Sender: No OFD packet to send [07:58:16]OFD Sender: No OFD packet to send [07:58:21]OFD Sender: No OFD packet to send [07:58:26]OFD Sender: No OFD packet to send [07:58:31]OFD Sender: No OFD packet to send [07:58:36]OFD Sender: No OFD packet to send [07:58:41]OFD Sender: No OFD packet to send [07:58:46]OFD Sender: No OFD packet to send [07:58:51]OFD Sender: No OFD packet to send [07:58:56]OFD Sender: No OFD packet to send [07:59:01]OFD Sender: No OFD packet to send [07:59:06]OFD Sender: No OFD packet to send [07:59:11]OFD Sender: No OFD packet to send [07:59:15]accept exits with 9 [07:59:15]New connection [07:59:15]New thread 3067067748 created [07:59:15]Thread 3066924388 joined [07:59:15]Waiting for new connection... [07:59:15] Sock 9.Parse request [07:59:15]Sock 9.Check first char [07:59:15]Sock 9.First char is OK [07:59:15]request: POST /json_proto HTTP/1.0 [07:59:15]Method: POST [07:59:15]URL: /json_proto [07:59:15]Method is POST - this is cgi request [07:59:15]url: /json_proto [07:59:15]query_string will be loaded in cgi processing [07:59:15]execute_cgi json_proto POST (null) [07:59:15]execute_cgi path=json_proto method=POST [07:59:15]POST find Content-Length [07:59:15]Host: 172.17.45.7:8080 [07:59:15]Content-Length: 679 [07:59:15]Content-Type: application/json [07:59:15] [07:59:15]POST finish read [07:59:15]Found Content-Length = 679 [07:59:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:15]execute_script... [07:59: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)949247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:15]POST & json_proto [07:59:15]process_json_proto [07:59:15]json parsed OK: [07:59:15]protocol is kg_v1.0 [07:59:15]action value=close_receipt [07:59:15]process_action close_receipt [07:59:15]cmd_close_receipt [07:59:15]MH_GetDate [07:59:15]Write to MH i2c: F0 00 00 A5 07 9B [07:59:15]Write i2c OK [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: F0 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: F0 09 00 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: F0 09 00 A5 07 00 55 FA A5 66 90 0F 3E 66 41 [07:59:15]GetLastDocTimeStamp 1722153288 [07:59:15]current date 1722153557 [07:59:15]FM_GetShiftState [07:59:15]SAM_PROTO_GetShiftState [07:59:15]wFMCommunicate request_size=4 [07:59:15]MH_SAM_APDU [07:59:15]CAPDU: 80 13 01 00 [07:59:15]Write to MH i2c: E2 08 00 A6 07 80 13 01 00 00 00 00 00 2A [07:59:15]Write i2c OK [07:59:15]MH_I2C_Read... [07:59:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:15]Read from MH i2c: E2 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: E2 0E 00 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: E2 0E 00 A6 07 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 01 [07:59:15]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:59:15]wFMCommunicate OK [07:59:15]SAM_PROTO_GetShiftState done [07:59:15]FM_GetShiftState done [07:59:15]opened in 1722125364 [07:59:15]opened+sec_in_day 1722211764 [07:59:15]quantity*price = 100050 [07:59:15]sum+1 = 100052 [07:59:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 43 28.07.2024 07:59 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118374 ФПД: 28078989286265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T075917&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118374&fm=28078989286265&tin=02508201610067®Number=0000000000092660&sum=100000 [07:59:16]StoreToDocumentArchive [07:59:16]shift 433 fd 118374 [07:59:16]save to /storage/0433/doc_00118374 [07:59:16]save last doc name /storage/0433/doc_00118374 to /storage/kkm_last_doc_name [07:59:16]save OK [07:59:16]Clear old archive folders... [07:59:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:59:16]tlvbuf is 001683D0 [07:59:16]SAM_PROTO_ClearQueue [07:59:16]wFMCommunicate request_size=4 [07:59:16]MH_SAM_APDU [07:59:16]CAPDU: 80 09 00 00 [07:59:16]Write to MH i2c: E2 08 00 B3 07 80 09 00 00 00 00 00 00 2C [07:59:16]Write i2c OK [07:59:16]MH_I2C_Read... [07:59:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:59:16]Read from MH i2c: E2 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 03 00 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 03 00 B3 07 00 90 00 2E [07:59:16]RAPDU: 90 00 [07:59:16]wFMCommunicate OK [07:59:16]SAM_PROTO_ClearQueue done [07:59:16]KKMCreateOFDPacket [07:59:16]OFDProtocolAddRootSTLVToBuf [07:59:16]FM_MakeSignedData [07:59:16]FM_MakeSignedData [07:59:16]SAM_PROTO_SignData [07:59:16]wFMCommunicate request_size=4 [07:59:16]MH_SAM_APDU [07:59:16]CAPDU: 80 0D 01 02 [07:59:16]Write to MH i2c: E2 08 00 B4 07 80 0D 01 02 00 00 00 00 34 [07:59:16]Write i2c OK [07:59:16]MH_I2C_Read... [07:59:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:59:16]Read from MH i2c: E2 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 03 00 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 03 00 B4 07 00 90 00 2F [07:59:16]RAPDU: 90 00 [07:59:16]wFMCommunicate OK [07:59:16]wFMCommunicate request_size=255 [07:59:16]MH_SAM_APDU [07:59:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 55 FA A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 CE 01 00 35 04 06 00 19 89 A6 2E [07:59:16]Write to MH i2c: E2 02 01 B5 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 55 FA A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 CE 01 00 35 04 06 00 19 89 A6 2E 00 00 A6 [07:59:16]Write i2c OK [07:59:16]MH_I2C_Read... [07:59:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:16]Read from MH i2c: E2 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 03 00 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 03 00 B5 07 00 90 00 30 [07:59:16]RAPDU: 90 00 [07:59:16]wFMCommunicate OK [07:59:16]wFMCommunicate request_size=7 [07:59:16]MH_SAM_APDU [07:59:16]CAPDU: 80 0D 02 02 02 9B 79 [07:59:16]Write to MH i2c: E2 0A 00 B6 07 80 0D 02 02 02 00 9B 79 00 00 4F [07:59:16]Write i2c OK [07:59:16]MH_I2C_Read... [07:59:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:16]Read from MH i2c: E2 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 03 00 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 03 00 B6 07 00 90 00 31 [07:59:16]RAPDU: 90 00 [07:59:16]wFMCommunicate OK [07:59:16]wFMCommunicate request_size=4 [07:59:16]MH_SAM_APDU [07:59:16]CAPDU: 80 0D 03 02 [07:59:16]Write to MH i2c: E2 08 00 B7 07 80 0D 03 02 00 00 00 00 39 [07:59:16]Write i2c OK [07:59:16]MH_I2C_Read... [07:59:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:59:16]Read from MH i2c: E2 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 0B 00 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 0B 00 B7 07 00 72 7B 80 4E 8A 08 C8 8F 90 00 DE [07:59:16]RAPDU: 72 7B 80 4E 8A 08 C8 8F 90 00 [07:59:16]wFMCommunicate OK [07:59:16]SAM_PROTO_SignData done [07:59:16]FM_MakeSignedData done [07:59:16]CreateOFDProtocolMessage [07:59:16]wFMCommunicate request_size=4 [07:59:16]MH_SAM_APDU [07:59:16]CAPDU: 80 11 00 00 [07:59:16]Write to MH i2c: E2 08 00 B8 07 80 11 00 00 00 00 00 00 39 [07:59:16]Write i2c OK [07:59:16]MH_I2C_Read... [07:59:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:17]Read from MH i2c: E2 [07:59:17]MH_I2C_Read... [07:59:17]Read from MH i2c: E2 17 00 [07:59:17]MH_I2C_Read... [07:59:17]Read from MH i2c: E2 17 00 B8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 94 [07:59:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:59:17]wFMCommunicate OK [07:59:17]CreateOFDProtocolMessage done [07:59:17]OFDSenderStorePacket 118374 [07:59:17]StoreOFDPacket docnum=118374 [07:59:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 4F 12 04 01 C5 D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 55 FA A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 CE 01 00 35 04 06 00 19 89 A6 2E 9B 79 72 7B 80 4E 8A 08 C8 8F [07:59:17]CheckFolder [07:59:17]dirname=/storage/ofd_packets [07:59:17]CheckFolder done [07:59:17]ProducePacketName [07:59:17]name=ofd_packets/00118374 [07:59:17]NVStorageSaveData ofd_packets/00118374 [07:59:17]File name is /storage/ofd_packets/00118374 [07:59:17]Write 298 bytes [07:59:17]NVStorageSaveData done [07:59:17]OFDSenderStorePacket done [07:59:17]KKMCreateOFDPacket done [07:59:17]NVStorageSaveData kkm_last_timestamp [07:59:17]File name is /storage/kkm_last_timestamp [07:59:17]Write 4 bytes [07:59:17]NVStorageSaveData done [07:59:17]ExternCall_PrintAddStr [07:59:17]wPrintStart [07:59:17]Write to MH i2c: 01 00 00 B9 07 C0 [07:59:17]Write i2c OK [07:59:17]MH_I2C_Read... [07:59:17]Read from MH i2c: 01 [07:59:17]MH_I2C_Read... [07:59:17]Read from MH i2c: 01 07 00 [07:59:17]MH_I2C_Read... [07:59:17]Read from MH i2c: 01 07 00 B9 07 00 00 00 00 00 FF 0F D5 [07:59:17]RasterBufferAndPrint [07:59:17]line Счет N : (1)949247 [07:59:17]line ИНН: 02508201610067 [07:59:17]line Контрольно-Кассовый Чек [07:59:17]line ПРОДАЖА [07:59:17]line ТРК (МРК, ГНК) : 54 [07:59:17]line Товар: 2710194800 [07:59:17]line ДТ-К-5 [07:59:17]line 13.130 * 76.20 [07:59:17]line = 1000.51 [07:59:17]line НДС 12% НСП 1% [07:59:17]line > о реализуемом товаре [07:59:17]line ОКРУГЛЕНИЕ: -0.51 [07:59:17]line ИТОГО: 1000.00 [07:59:17]line Внесено: 1000.00 [07:59:17]line СДАЧА: 0.00 [07:59:17]line НСП 1% : 8.85 [07:59:17]line НДС 12% : 106.25 [07:59:17]line Наличными: 1000.00 [07:59:17]line Безнал.: 0.00 [07:59:17]line Место: АЗС № 134 "Партнер Нефть" [07:59:17]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:59:17]line СНО: Общий режим [07:59:17]line Чек 43 28.07.2024 07:59 [07:59:17]line Смена: 433 ФФД: 1.0 [07:59:17]line ЗНМ: 0300000044 [07:59:17]line РНМ: 0000000000092660 [07:59:17]line Версия ККМ: 001 [07:59:17]line ФМ: 0000000000874939 [07:59:17]line ФД: 118374 [07:59:17]line ФПД: 28078989286265 [07:59:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T075917&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118374&fm=28078989286265&tin=02508201610067®Number=0000000000092660&sum=100000 [07:59:17]OFD Sender: Processing packet 118374 [packets to send 86, broken 85] [07:59:17]ProducePacketName [07:59:17]name=ofd_packets/00118374 [07:59:17]OFD Sender: To server: pG, [07:59:17]CommunicateWithHost lk.salyk.kg:30040 [07:59:17]ConnectInit lk.salyk.kg [07:59:17]written 0, free lines is 4095 [07:59:17]Connected sock=10 [07:59:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 4F 12 04 01 C5 D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 55 FA A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 CE 01 00 35 04 06 00 19 89 A6 2E 9B 79 72 7B 80 4E 8A 08 C8 8F [07:59:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 56 C7 47 00 50 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 39 33 39 10 04 04 00 66 CE 01 00 F4 03 04 00 E5 A7 A5 66 B6 04 01 00 00 EB 96 AA 24 8C F1 EF A2 [07:59:17]CommunicateWithHost err = 0 [07:59:17]CheckOFDResponse [07:59:17]1017 (14) - 77093643461234 [07:59:17]1041 (16) - 0000000000874939 [07:59:17]1040 (4) - 118374 [07:59:17]1012 (4) - 28.07.2024 02:07 [07:59:17]1206 (1) - 0 [07:59:17]OFD Sender: Remove packet 118374 [07:59:17]ProducePacketName [07:59:17]name=ofd_packets/00118374 [07:59:17]NVStorageDeleteData [07:59:17]Write to MH i2c: 01 00 00 E3 07 EA [07:59:17]Write i2c OK [07:59:17]MH_I2C_Read... [07:59:17]Read from MH i2c: 01 [07:59:17]MH_I2C_Read... [07:59:17]Read from MH i2c: 01 07 00 [07:59:17]MH_I2C_Read... [07:59:17]Read from MH i2c: 01 07 00 E3 07 00 00 00 00 00 DE 0C DB [07:59:17]RasterBufferAndPrint [07:59:17]line [07:59:17]line [07:59:17]line [07:59:17]line [07:59:17]line [07:59:17]written 0, free lines is 3298 [07:59:17]MH_Cut [07:59:17]Write to MH i2c: D1 01 00 EA 07 01 C3 [07:59:17]Write i2c OK [07:59:17]MH_I2C_Read... [07:59:17]Read from MH i2c: D1 [07:59:17]MH_I2C_Read... [07:59:17]Read from MH i2c: D1 01 00 [07:59:17]MH_I2C_Read... [07:59:17]Read from MH i2c: D1 01 00 EA 07 00 C2 [07:59:17]Write to MH i2c: 01 00 00 EB 07 F2 [07:59:17]Write i2c OK [07:59:17]MH_I2C_Read... [07:59:18]OFD Sender: No OFD packet to send [07:59:18]*** Cut start [07:59:18]*** Partial cut [07:59:18]*** CUTSNS_PIN = 1 [07:59:18]*** CUTSNS_PIN = 0 [07:59:18]*** Brake cut motor [07:59:19]Read from MH i2c: 01 [07:59:19]MH_I2C_Read... [07:59:19]*** Stop cut motor [07:59:19]*** Cut end [07:59:19]Read from MH i2c: 01 07 00 [07:59:19]MH_I2C_Read... [07:59:19]Read from MH i2c: 01 07 00 EB 07 00 00 00 00 00 FF 0F 07 [07:59:19]process_action close_receipt done [07:59:19]requested_data is exist [07:59:19]produce_requested_data [07:59:19]requested_item fm.sn is exist - process it [07:59:19]wFMCommunicate request_size=4 [07:59:19]MH_SAM_APDU [07:59:19]CAPDU: 80 11 00 00 [07:59:19]Write to MH i2c: E2 08 00 EC 07 80 11 00 00 00 00 00 00 6D [07:59:19]Write i2c OK [07:59:19]MH_I2C_Read... [07:59:19]Read from MH i2c: E2 [07:59:19]MH_I2C_Read... [07:59:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:19]Read from MH i2c: E2 17 00 [07:59:19]MH_I2C_Read... [07:59:19]Read from MH i2c: E2 17 00 EC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C8 [07:59:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:59:19]wFMCommunicate OK [07:59:19]requested_item fd.num is exist - process it [07:59:19]SAM_PROTO_GetFieldsCounters [07:59:19]wFMCommunicate request_size=4 [07:59:19]MH_SAM_APDU [07:59:19]CAPDU: 80 13 00 00 [07:59:19]Write to MH i2c: E2 08 00 ED 07 80 13 00 00 00 00 00 00 70 [07:59:19]Write i2c OK [07:59:19]MH_I2C_Read... [07:59:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:59:19]Read from MH i2c: E2 [07:59:19]MH_I2C_Read... [07:59:19]Read from MH i2c: E2 62 00 [07:59:19]MH_I2C_Read... [07:59:19]Read from MH i2c: E2 62 00 ED 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 66 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [07:59:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 66 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:59:19]wFMCommunicate OK [07:59:19]SAM_PROTO_GetFieldsCounters done [07:59:19]requested_item shift.num is exist - process it [07:59:19]requested_item shift.opened is exist - process it [07:59:19]req_shift_opened [07:59:19]FM_GetShiftState [07:59:19]SAM_PROTO_GetShiftState [07:59:19]wFMCommunicate request_size=4 [07:59:19]MH_SAM_APDU [07:59:19]CAPDU: 80 13 01 00 [07:59:19]Write to MH i2c: E2 08 00 EE 07 80 13 01 00 00 00 00 00 72 [07:59:19]Write i2c OK [07:59:19]MH_I2C_Read... [07:59:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:19]Read from MH i2c: E2 [07:59:19]MH_I2C_Read... [07:59:19]Read from MH i2c: E2 0E 00 [07:59:19]MH_I2C_Read... [07:59:19]Read from MH i2c: E2 0E 00 EE 07 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 49 [07:59:19]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:59:19]wFMCommunicate OK [07:59:19]SAM_PROTO_GetShiftState done [07:59:19]FM_GetShiftState done [07:59:19]req_shift_opened done [07:59:19]requested_item shift.open_date is exist - process it [07:59:19]req_shift_open_date [07:59:19]req_shift_open_date done [07:59:19]produce_requested_data done [07:59:19]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118374,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [07:59:19]process_action_free close_receipt [07:59:19]json_value_free [07:59:19]json_value_free done [07:59:19]process_json_proto returns [07:59:19]Send response to host [07:59:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118374,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [07:59:19]free response buf [07:59:19]execute_script done [07:59:19]execute_script returns [07:59:19]free content buf [07:59:19]Sock 9.Close socket [07:59:19]Sock 9.Thread stoped [07:59:23]OFD Sender: No OFD packet to send [07:59:28]OFD Sender: No OFD packet to send [07:59:33]accept exits with 7 [07:59:33]New connection [07:59:33]New thread 3066924388 created [07:59:33]Thread 3067067748 joined [07:59:33]Waiting for new connection... [07:59:33] Sock 7.Parse request [07:59:33]Sock 7.Check first char [07:59:33]Sock 7.First char is OK [07:59:33]request: POST /json_proto HTTP/1.0 [07:59:33]Method: POST [07:59:33]URL: /json_proto [07:59:33]Method is POST - this is cgi request [07:59:33]url: /json_proto [07:59:33]query_string will be loaded in cgi processing [07:59:33]execute_cgi json_proto POST (null) [07:59:33]execute_cgi path=json_proto method=POST [07:59:33]POST find Content-Length [07:59:33]Host: 172.17.45.7:8080 [07:59:33]Content-Length: 819 [07:59:33]Content-Type: application/json [07:59:33] [07:59:33]POST finish read [07:59:33]Found Content-Length = 819 [07:59:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:33]execute_script... [07: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)949246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:33]POST & json_proto [07:59:33]process_json_proto [07:59:33]json parsed OK: [07:59:33]protocol is kg_v1.0 [07:59:33]action value=close_receipt [07:59:33]process_action close_receipt [07:59:33]cmd_close_receipt [07:59:33]MH_GetDate [07:59:33]Write to MH i2c: F0 00 00 EF 07 E5 [07:59:33]OFD Sender: No OFD packet to send [07:59:33]Write i2c OK [07:59:33]MH_I2C_Read... [07:59:33]Read from MH i2c: F0 [07:59:33]MH_I2C_Read... [07:59:33]Read from MH i2c: F0 09 00 [07:59:33]MH_I2C_Read... [07:59:33]Read from MH i2c: F0 09 00 EF 07 00 66 FA A5 66 90 0F 3E 66 9C [07:59:33]GetLastDocTimeStamp 1722153557 [07:59:33]current date 1722153574 [07:59:33]FM_GetShiftState [07:59:33]SAM_PROTO_GetShiftState [07:59:33]wFMCommunicate request_size=4 [07:59:33]MH_SAM_APDU [07:59:33]CAPDU: 80 13 01 00 [07:59:33]Write to MH i2c: E2 08 00 F0 07 80 13 01 00 00 00 00 00 74 [07:59:33]Write i2c OK [07:59:33]MH_I2C_Read... [07:59:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:33]Read from MH i2c: E2 [07:59:33]MH_I2C_Read... [07:59:33]Read from MH i2c: E2 0E 00 [07:59:33]MH_I2C_Read... [07:59:33]Read from MH i2c: E2 0E 00 F0 07 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 4B [07:59:33]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:59:33]wFMCommunicate OK [07:59:33]SAM_PROTO_GetShiftState done [07:59:33]FM_GetShiftState done [07:59:33]opened in 1722125364 [07:59:33]opened+sec_in_day 1722211764 [07:59:33]quantity*price = 300075 [07:59:33]sum+1 = 300077 [07:59:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 44 28.07.2024 07:59 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118375 ФПД: 49270152415047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T075934&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118375&fm=49270152415047&tin=02508201610067®Number=0000000000092660&sum=300000 [07:59:34]StoreToDocumentArchive [07:59:34]shift 433 fd 118375 [07:59:34]save to /storage/0433/doc_00118375 [07:59:34]save last doc name /storage/0433/doc_00118375 to /storage/kkm_last_doc_name [07:59:34]save OK [07:59:34]Clear old archive folders... [07:59:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:59:34]tlvbuf is 00127190 [07:59:34]SAM_PROTO_ClearQueue [07:59:34]wFMCommunicate request_size=4 [07:59:34]MH_SAM_APDU [07:59:34]CAPDU: 80 09 00 00 [07:59:34]Write to MH i2c: E2 08 00 FD 07 80 09 00 00 00 00 00 00 76 [07:59:34]Write i2c OK [07:59:34]MH_I2C_Read... [07:59:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:59:34]Read from MH i2c: E2 [07:59:34]MH_I2C_Read... [07:59:34]Read from MH i2c: E2 03 00 [07:59:34]MH_I2C_Read... [07:59:34]Read from MH i2c: E2 03 00 FD 07 00 90 00 78 [07:59:34]RAPDU: 90 00 [07:59:34]wFMCommunicate OK [07:59:34]SAM_PROTO_ClearQueue done [07:59:34]KKMCreateOFDPacket [07:59:34]OFDProtocolAddRootSTLVToBuf [07:59:34]FM_MakeSignedData [07:59:34]FM_MakeSignedData [07:59:34]SAM_PROTO_SignData [07:59:34]wFMCommunicate request_size=4 [07:59:34]MH_SAM_APDU [07:59:34]CAPDU: 80 0D 01 02 [07:59:34]Write to MH i2c: E2 08 00 FE 07 80 0D 01 02 00 00 00 00 7E [07:59:34]Write i2c OK [07:59:34]MH_I2C_Read... [07:59:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:59:34]Read from MH i2c: E2 [07:59:34]MH_I2C_Read... [07:59:34]Read from MH i2c: E2 03 00 [07:59:34]MH_I2C_Read... [07:59:34]Read from MH i2c: E2 03 00 FE 07 00 90 00 79 [07:59:34]RAPDU: 90 00 [07:59:34]wFMCommunicate OK [07:59:34]wFMCommunicate request_size=255 [07:59:34]MH_SAM_APDU [07:59:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 66 FA A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 67 CE 01 00 35 04 06 00 2C CF 99 EE [07:59:34]Write to MH i2c: E2 02 01 FF 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 66 FA A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 67 CE 01 00 35 04 06 00 2C CF 99 EE 00 00 46 [07:59:34]Write i2c OK [07:59:34]MH_I2C_Read... [07:59:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:34]Read from MH i2c: E2 [07:59:34]MH_I2C_Read... [07:59:34]Read from MH i2c: E2 03 00 [07:59:34]MH_I2C_Read... [07:59:34]Read from MH i2c: E2 03 00 FF 07 00 90 00 7A [07:59:34]RAPDU: 90 00 [07:59:34]wFMCommunicate OK [07:59:34]wFMCommunicate request_size=7 [07:59:34]MH_SAM_APDU [07:59:34]CAPDU: 80 0D 02 02 02 C7 47 [07:59:34]Write to MH i2c: E2 0A 00 00 08 80 0D 02 02 02 00 C7 47 00 00 94 [07:59:34]Write i2c OK [07:59:34]MH_I2C_Read... [07:59:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:34]Read from MH i2c: E2 [07:59:34]MH_I2C_Read... [07:59:34]Read from MH i2c: E2 03 00 [07:59:34]MH_I2C_Read... [07:59:34]Read from MH i2c: E2 03 00 00 08 00 90 00 7C [07:59:34]RAPDU: 90 00 [07:59:34]wFMCommunicate OK [07:59:34]wFMCommunicate request_size=4 [07:59:34]MH_SAM_APDU [07:59:34]CAPDU: 80 0D 03 02 [07:59:34]Write to MH i2c: E2 08 00 01 08 80 0D 03 02 00 00 00 00 84 [07:59:34]Write i2c OK [07:59:34]MH_I2C_Read... [07:59:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:59:34]Read from MH i2c: E2 [07:59:34]MH_I2C_Read... [07:59:34]Read from MH i2c: E2 0B 00 [07:59:34]MH_I2C_Read... [07:59:34]Read from MH i2c: E2 0B 00 01 08 00 81 52 43 7F 80 4C 22 EF 90 00 F7 [07:59:34]RAPDU: 81 52 43 7F 80 4C 22 EF 90 00 [07:59:34]wFMCommunicate OK [07:59:34]SAM_PROTO_SignData done [07:59:34]FM_MakeSignedData done [07:59:34]CreateOFDProtocolMessage [07:59:34]wFMCommunicate request_size=4 [07:59:34]MH_SAM_APDU [07:59:34]CAPDU: 80 11 00 00 [07:59:34]Write to MH i2c: E2 08 00 02 08 80 11 00 00 00 00 00 00 84 [07:59:34]Write i2c OK [07:59:34]MH_I2C_Read... [07:59:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:34]Read from MH i2c: E2 [07:59:34]MH_I2C_Read... [07:59:34]Read from MH i2c: E2 17 00 [07:59:34]MH_I2C_Read... [07:59:34]Read from MH i2c: E2 17 00 02 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DF [07:59:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:59:34]wFMCommunicate OK [07:59:34]CreateOFDProtocolMessage done [07:59:34]OFDSenderStorePacket 118375 [07:59:34]StoreOFDPacket docnum=118375 [07:59:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C2 84 04 01 C8 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 66 FA A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 67 CE 01 00 35 04 06 00 2C CF 99 EE C7 47 81 52 43 7F 80 4C 22 EF [07:59:34]CheckFolder [07:59:34]dirname=/storage/ofd_packets [07:59:34]CheckFolder done [07:59:34]ProducePacketName [07:59:34]name=ofd_packets/00118375 [07:59:34]NVStorageSaveData ofd_packets/00118375 [07:59:34]File name is /storage/ofd_packets/00118375 [07:59:34]Write 298 bytes [07:59:34]NVStorageSaveData done [07:59:34]OFDSenderStorePacket done [07:59:34]KKMCreateOFDPacket done [07:59:34]NVStorageSaveData kkm_last_timestamp [07:59:34]File name is /storage/kkm_last_timestamp [07:59:34]Write 4 bytes [07:59:34]NVStorageSaveData done [07:59:34]ExternCall_PrintAddStr [07:59:34]wPrintStart [07:59:34]Write to MH i2c: 01 00 00 03 08 0B [07:59:34]Write i2c OK [07:59:34]MH_I2C_Read... [07:59:34]Read from MH i2c: 01 [07:59:34]MH_I2C_Read... [07:59:34]Read from MH i2c: 01 07 00 [07:59:34]MH_I2C_Read... [07:59:34]Read from MH i2c: 01 07 00 03 08 00 00 00 00 00 FF 0F 20 [07:59:34]RasterBufferAndPrint [07:59:34]line Счет N : (1)949246 [07:59:34]line ИНН: 02508201610067 [07:59:34]line Контрольно-Кассовый Чек [07:59:34]line ПРОДАЖА [07:59:34]line ТРК (МРК, ГНК) : 34 [07:59:34]line Товар: 2710194800 [07:59:34]line ДТ-К-5 [07:59:34]line 39.380 * 76.20 [07:59:34]line = 3000.76 [07:59:34]line НДС 12% НСП 1% [07:59:34]line > о реализуемом товаре [07:59:34]line ОКРУГЛЕНИЕ: -0.76 [07:59:34]line ИТОГО: 3000.00 [07:59:34]line НСП 1% : 26.55 [07:59:34]line НДС 12% : 318.66 [07:59:34]line Наличными: 0.00 [07:59:34]line Безнал.: 3000.00 [07:59:34]line Место: АЗС № 134 "Партнер Нефть" [07:59:34]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:59:34]line СНО: Общий режим [07:59:34]line Чек 44 28.07.2024 07:59 [07:59:34]line Смена: 433 ФФД: 1.0 [07:59:34]line ЗНМ: 0300000044 [07:59:34]line РНМ: 0000000000092660 [07:59:34]line Версия ККМ: 001 [07:59:34]line Платежная система: O! деньги [07:59:34]line ФМ: 0000000000874939 [07:59:34]line ФД: 118375 [07:59:34]line ФПД: 49270152415047 [07:59:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T075934&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118375&fm=49270152415047&tin=02508201610067®Number=0000000000092660&sum=300000 [07:59:35]OFD Sender: Processing packet 118375 [packets to send 86, broken 85] [07:59:35]ProducePacketName [07:59:35]name=ofd_packets/00118375 [07:59:35]OFD Sender: To server: pG, [07:59:35]CommunicateWithHost lk.salyk.kg:30040 [07:59:35]ConnectInit lk.salyk.kg [07:59:35]written 0, free lines is 4095 [07:59:35]Connected sock=10 [07:59: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 39 33 39 0C 01 00 00 C2 84 04 01 C8 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 66 FA A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 67 CE 01 00 35 04 06 00 2C CF 99 EE C7 47 81 52 43 7F 80 4C 22 EF [07:59:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EF 9C 47 00 6D 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 39 33 39 10 04 04 00 67 CE 01 00 F4 03 04 00 F7 A7 A5 66 B6 04 01 00 00 B1 D8 1E 32 D4 2D 9C E3 [07:59:35]CommunicateWithHost err = 0 [07:59:35]CheckOFDResponse [07:59:35]1017 (14) - 77093643461234 [07:59:35]1041 (16) - 0000000000874939 [07:59:35]1040 (4) - 118375 [07:59:35]1012 (4) - 28.07.2024 02:07 [07:59:35]1206 (1) - 0 [07:59:35]OFD Sender: Remove packet 118375 [07:59:35]ProducePacketName [07:59:35]name=ofd_packets/00118375 [07:59:35]NVStorageDeleteData [07:59:35]Write to MH i2c: 01 00 00 2D 08 35 [07:59:35]Write i2c OK [07:59:35]MH_I2C_Read... [07:59:35]Read from MH i2c: 01 [07:59:35]MH_I2C_Read... [07:59:35]Read from MH i2c: 01 07 00 [07:59:35]MH_I2C_Read... [07:59:35]Read from MH i2c: 01 07 00 2D 08 00 00 00 00 00 DA 0C 22 [07:59:35]RasterBufferAndPrint [07:59:35]line [07:59:35]line [07:59:35]line [07:59:35]line [07:59:35]line [07:59:35]written 0, free lines is 3297 [07:59:35]MH_Cut [07:59:35]Write to MH i2c: D1 01 00 34 08 01 0E [07:59:35]Write i2c OK [07:59:35]MH_I2C_Read... [07:59:35]Read from MH i2c: D1 [07:59:35]MH_I2C_Read... [07:59:35]Read from MH i2c: D1 01 00 [07:59:35]MH_I2C_Read... [07:59:35]Read from MH i2c: D1 01 00 34 08 00 0D [07:59:35]Write to MH i2c: 01 00 00 35 08 3D [07:59:35]Write i2c OK [07:59:35]MH_I2C_Read... [07:59:36]OFD Sender: No OFD packet to send [07:59:36]*** Cut start [07:59:36]*** Partial cut [07:59:36]*** CUTSNS_PIN = 1 [07:59:36]*** CUTSNS_PIN = 0 [07:59:36]*** Brake cut motor [07:59:37]Read from MH i2c: 01 [07:59:37]MH_I2C_Read... [07:59:37]*** Stop cut motor [07:59:37]*** Cut end [07:59:37]Read from MH i2c: 01 07 00 [07:59:37]MH_I2C_Read... [07:59:37]Read from MH i2c: 01 07 00 35 08 00 00 00 00 00 FF 0F 52 [07:59:37]process_action close_receipt done [07:59:37]requested_data is exist [07:59:37]produce_requested_data [07:59:37]requested_item fm.sn is exist - process it [07:59:37]wFMCommunicate request_size=4 [07:59:37]MH_SAM_APDU [07:59:37]CAPDU: 80 11 00 00 [07:59:37]Write to MH i2c: E2 08 00 36 08 80 11 00 00 00 00 00 00 B8 [07:59:37]Write i2c OK [07:59:37]MH_I2C_Read... [07:59:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:37]Read from MH i2c: E2 [07:59:37]MH_I2C_Read... [07:59:37]Read from MH i2c: E2 17 00 [07:59:37]MH_I2C_Read... [07:59:37]Read from MH i2c: E2 17 00 36 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 13 [07:59:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:59:37]wFMCommunicate OK [07:59:37]requested_item fd.num is exist - process it [07:59:37]SAM_PROTO_GetFieldsCounters [07:59:37]wFMCommunicate request_size=4 [07:59:37]MH_SAM_APDU [07:59:37]CAPDU: 80 13 00 00 [07:59:37]Write to MH i2c: E2 08 00 37 08 80 13 00 00 00 00 00 00 BB [07:59:37]Write i2c OK [07:59:37]MH_I2C_Read... [07:59:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:59:37]Read from MH i2c: E2 [07:59:37]MH_I2C_Read... [07:59:37]Read from MH i2c: E2 62 00 [07:59:37]MH_I2C_Read... [07:59:37]Read from MH i2c: E2 62 00 37 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 67 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [07:59:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 67 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:59:37]wFMCommunicate OK [07:59:37]SAM_PROTO_GetFieldsCounters done [07:59:37]requested_item shift.num is exist - process it [07:59:37]requested_item shift.opened is exist - process it [07:59:37]req_shift_opened [07:59:37]FM_GetShiftState [07:59:37]SAM_PROTO_GetShiftState [07:59:37]wFMCommunicate request_size=4 [07:59:37]MH_SAM_APDU [07:59:37]CAPDU: 80 13 01 00 [07:59:37]Write to MH i2c: E2 08 00 38 08 80 13 01 00 00 00 00 00 BD [07:59:37]Write i2c OK [07:59:37]MH_I2C_Read... [07:59:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:37]Read from MH i2c: E2 [07:59:37]MH_I2C_Read... [07:59:37]Read from MH i2c: E2 0E 00 [07:59:37]MH_I2C_Read... [07:59:37]Read from MH i2c: E2 0E 00 38 08 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 94 [07:59:37]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [07:59:37]wFMCommunicate OK [07:59:37]SAM_PROTO_GetShiftState done [07:59:37]FM_GetShiftState done [07:59:37]req_shift_opened done [07:59:37]requested_item shift.open_date is exist - process it [07:59:37]req_shift_open_date [07:59:37]req_shift_open_date done [07:59:37]produce_requested_data done [07:59:37]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118375,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [07:59:37]process_action_free close_receipt [07:59:37]json_value_free [07:59:37]json_value_free done [07:59:37]process_json_proto returns [07:59:37]Send response to host [07:59:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118375,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [07:59:37]free response buf [07:59:37]execute_script done [07:59:37]execute_script returns [07:59:37]free content buf [07:59:37]Sock 7.Close socket [07:59:37]Sock 7.Thread stoped [07:59:41]OFD Sender: No OFD packet to send [07:59:46]OFD Sender: No OFD packet to send [07:59:51]OFD Sender: No OFD packet to send [07:59:56]OFD Sender: No OFD packet to send [08:00:01]OFD Sender: No OFD packet to send [08:00:06]OFD Sender: No OFD packet to send [08:00:11]OFD Sender: No OFD packet to send [08:00:16]OFD Sender: No OFD packet to send [08:00:21]OFD Sender: No OFD packet to send [08:00:26]OFD Sender: No OFD packet to send [08:00:31]OFD Sender: No OFD packet to send [08:00:36]OFD Sender: No OFD packet to send [08:00:41]OFD Sender: No OFD packet to send [08:00:41]accept exits with 9 [08:00:41]New connection [08:00:41]New thread 3067067748 created [08:00:41]Thread 3066924388 joined [08:00:41]Waiting for new connection... [08:00:41] Sock 9.Parse request [08:00:41]Sock 9.Check first char [08:00:41]Sock 9.First char is OK [08:00:41]request: POST /json_proto HTTP/1.0 [08:00:41]Method: POST [08:00:41]URL: /json_proto [08:00:41]Method is POST - this is cgi request [08:00:41]url: /json_proto [08:00:41]query_string will be loaded in cgi processing [08:00:41]execute_cgi json_proto POST (null) [08:00:41]execute_cgi path=json_proto method=POST [08:00:41]POST find Content-Length [08:00:41]Host: 172.17.45.7:8080 [08:00:41]Content-Length: 819 [08:00:41]Content-Type: application/json [08:00:41] [08:00:41]POST finish read [08:00:41]Found Content-Length = 819 [08:00:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:41]execute_script... [08: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)949248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:41]POST & json_proto [08:00:41]process_json_proto [08:00:41]json parsed OK: [08:00:41]protocol is kg_v1.0 [08:00:41]action value=close_receipt [08:00:41]process_action close_receipt [08:00:41]cmd_close_receipt [08:00:41]MH_GetDate [08:00:41]Write to MH i2c: F0 00 00 39 08 30 [08:00:41]Write i2c OK [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: F0 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: F0 09 00 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: F0 09 00 39 08 00 AB FA A5 66 90 0F 3E 66 2C [08:00:41]GetLastDocTimeStamp 1722153574 [08:00:41]current date 1722153643 [08:00:41]FM_GetShiftState [08:00:41]SAM_PROTO_GetShiftState [08:00:41]wFMCommunicate request_size=4 [08:00:41]MH_SAM_APDU [08:00:41]CAPDU: 80 13 01 00 [08:00:41]Write to MH i2c: E2 08 00 3A 08 80 13 01 00 00 00 00 00 BF [08:00:41]Write i2c OK [08:00:41]MH_I2C_Read... [08:00:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:41]Read from MH i2c: E2 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: E2 0E 00 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: E2 0E 00 3A 08 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 96 [08:00:41]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:00:41]wFMCommunicate OK [08:00:41]SAM_PROTO_GetShiftState done [08:00:41]FM_GetShiftState done [08:00:41]opened in 1722125364 [08:00:41]opened+sec_in_day 1722211764 [08:00:41]quantity*price = 200025 [08:00:41]sum+1 = 200026 [08:00:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 45 28.07.2024 08:00 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118376 ФПД: 232150303505630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T080043&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118376&fm=232150303505630&tin=02508201610067®Number=0000000000092660&sum=200000 [08:00:42]StoreToDocumentArchive [08:00:42]shift 433 fd 118376 [08:00:42]save to /storage/0433/doc_00118376 [08:00:42]save last doc name /storage/0433/doc_00118376 to /storage/kkm_last_doc_name [08:00:42]save OK [08:00:42]Clear old archive folders... [08:00:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:00:42]tlvbuf is 00145EC0 [08:00:42]SAM_PROTO_ClearQueue [08:00:42]wFMCommunicate request_size=4 [08:00:42]MH_SAM_APDU [08:00:42]CAPDU: 80 09 00 00 [08:00:42]Write to MH i2c: E2 08 00 47 08 80 09 00 00 00 00 00 00 C1 [08:00:42]Write i2c OK [08:00:42]MH_I2C_Read... [08:00:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:00:42]Read from MH i2c: E2 [08:00:42]MH_I2C_Read... [08:00:42]Read from MH i2c: E2 03 00 [08:00:42]MH_I2C_Read... [08:00:42]Read from MH i2c: E2 03 00 47 08 00 90 00 C3 [08:00:42]RAPDU: 90 00 [08:00:42]wFMCommunicate OK [08:00:42]SAM_PROTO_ClearQueue done [08:00:42]KKMCreateOFDPacket [08:00:42]OFDProtocolAddRootSTLVToBuf [08:00:42]FM_MakeSignedData [08:00:42]FM_MakeSignedData [08:00:42]SAM_PROTO_SignData [08:00:42]wFMCommunicate request_size=4 [08:00:42]MH_SAM_APDU [08:00:42]CAPDU: 80 0D 01 02 [08:00:42]Write to MH i2c: E2 08 00 48 08 80 0D 01 02 00 00 00 00 C9 [08:00:42]Write i2c OK [08:00:42]MH_I2C_Read... [08:00:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:00:42]Read from MH i2c: E2 [08:00:42]MH_I2C_Read... [08:00:42]Read from MH i2c: E2 03 00 [08:00:42]MH_I2C_Read... [08:00:42]Read from MH i2c: E2 03 00 48 08 00 90 00 C4 [08:00:42]RAPDU: 90 00 [08:00:42]wFMCommunicate OK [08:00:42]wFMCommunicate request_size=255 [08:00:42]MH_SAM_APDU [08:00:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 AB FA A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 68 CE 01 00 35 04 06 00 D3 23 B4 5F [08:00:42]Write to MH i2c: E2 02 01 49 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 AB FA A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 68 CE 01 00 35 04 06 00 D3 23 B4 5F 00 00 16 [08:00:42]Write i2c OK [08:00:42]MH_I2C_Read... [08:00:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:43]Read from MH i2c: E2 [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: E2 03 00 [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: E2 03 00 49 08 00 90 00 C5 [08:00:43]RAPDU: 90 00 [08:00:43]wFMCommunicate OK [08:00:43]wFMCommunicate request_size=7 [08:00:43]MH_SAM_APDU [08:00:43]CAPDU: 80 0D 02 02 02 FC DE [08:00:43]Write to MH i2c: E2 0A 00 4A 08 80 0D 02 02 02 00 FC DE 00 00 AA [08:00:43]Write i2c OK [08:00:43]MH_I2C_Read... [08:00:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:43]Read from MH i2c: E2 [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: E2 03 00 [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: E2 03 00 4A 08 00 90 00 C6 [08:00:43]RAPDU: 90 00 [08:00:43]wFMCommunicate OK [08:00:43]wFMCommunicate request_size=4 [08:00:43]MH_SAM_APDU [08:00:43]CAPDU: 80 0D 03 02 [08:00:43]Write to MH i2c: E2 08 00 4B 08 80 0D 03 02 00 00 00 00 CE [08:00:43]Write i2c OK [08:00:43]MH_I2C_Read... [08:00:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:00:43]Read from MH i2c: E2 [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: E2 0B 00 [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: E2 0B 00 4B 08 00 AC 3B B0 DC 1C E4 11 45 90 00 98 [08:00:43]RAPDU: AC 3B B0 DC 1C E4 11 45 90 00 [08:00:43]wFMCommunicate OK [08:00:43]SAM_PROTO_SignData done [08:00:43]FM_MakeSignedData done [08:00:43]CreateOFDProtocolMessage [08:00:43]wFMCommunicate request_size=4 [08:00:43]MH_SAM_APDU [08:00:43]CAPDU: 80 11 00 00 [08:00:43]Write to MH i2c: E2 08 00 4C 08 80 11 00 00 00 00 00 00 CE [08:00:43]Write i2c OK [08:00:43]MH_I2C_Read... [08:00:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:43]Read from MH i2c: E2 [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: E2 17 00 [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: E2 17 00 4C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 29 [08:00:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:00:43]wFMCommunicate OK [08:00:43]CreateOFDProtocolMessage done [08:00:43]OFDSenderStorePacket 118376 [08:00:43]StoreOFDPacket docnum=118376 [08:00:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E2 A7 04 01 65 95 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 AB FA A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 68 CE 01 00 35 04 06 00 D3 23 B4 5F FC DE AC 3B B0 DC 1C E4 11 45 [08:00:43]CheckFolder [08:00:43]dirname=/storage/ofd_packets [08:00:43]CheckFolder done [08:00:43]ProducePacketName [08:00:43]name=ofd_packets/00118376 [08:00:43]NVStorageSaveData ofd_packets/00118376 [08:00:43]File name is /storage/ofd_packets/00118376 [08:00:43]Write 298 bytes [08:00:43]NVStorageSaveData done [08:00:43]OFDSenderStorePacket done [08:00:43]KKMCreateOFDPacket done [08:00:43]NVStorageSaveData kkm_last_timestamp [08:00:43]File name is /storage/kkm_last_timestamp [08:00:43]Write 4 bytes [08:00:43]NVStorageSaveData done [08:00:43]ExternCall_PrintAddStr [08:00:43]wPrintStart [08:00:43]Write to MH i2c: 01 00 00 4D 08 55 [08:00:43]Write i2c OK [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: 01 [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: 01 07 00 [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: 01 07 00 4D 08 00 00 00 00 00 FF 0F 6A [08:00:43]RasterBufferAndPrint [08:00:43]line Счет N : (1)949248 [08:00:43]line ИНН: 02508201610067 [08:00:43]line Контрольно-Кассовый Чек [08:00:43]line ПРОДАЖА [08:00:43]line ТРК (МРК, ГНК) : 11 [08:00:43]line Товар: 2710194800 [08:00:43]line ДТ-К-5 [08:00:43]line 26.250 * 76.20 [08:00:43]line = 2000.25 [08:00:43]line НДС 12% НСП 1% [08:00:43]line > о реализуемом товаре [08:00:43]line ОКРУГЛЕНИЕ: -0.25 [08:00:43]line ИТОГО: 2000.00 [08:00:43]line НСП 1% : 17.70 [08:00:43]line НДС 12% : 212.42 [08:00:43]line Наличными: 0.00 [08:00:43]line Безнал.: 2000.00 [08:00:43]line Место: АЗС № 134 "Партнер Нефть" [08:00:43]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:00:43]line СНО: Общий режим [08:00:43]line Чек 45 28.07.2024 08:00 [08:00:43]line Смена: 433 ФФД: 1.0 [08:00:43]line ЗНМ: 0300000044 [08:00:43]line РНМ: 0000000000092660 [08:00:43]line Версия ККМ: 001 [08:00:43]line Платежная система: O! деньги [08:00:43]line ФМ: 0000000000874939 [08:00:43]line ФД: 118376 [08:00:43]line ФПД: 232150303505630 [08:00:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T080043&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118376&fm=232150303505630&tin=02508201610067®Number=0000000000092660&sum=200000 [08:00:43]OFD Sender: Processing packet 118376 [packets to send 86, broken 85] [08:00:43]ProducePacketName [08:00:43]name=ofd_packets/00118376 [08:00:43]OFD Sender: To server: pG, [08:00:43]CommunicateWithHost lk.salyk.kg:30040 [08:00:43]ConnectInit lk.salyk.kg [08:00:43]written 0, free lines is 4095 [08:00:43]Connected sock=10 [08: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 39 33 39 0C 01 00 00 E2 A7 04 01 65 95 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 AB FA A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 68 CE 01 00 35 04 06 00 D3 23 B4 5F FC DE AC 3B B0 DC 1C E4 11 45 [08:00:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 87 1A 47 00 06 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 39 33 39 10 04 04 00 68 CE 01 00 F4 03 04 00 3C A8 A5 66 B6 04 01 00 00 00 7A 12 C9 72 BE 6B 10 [08:00:44]CommunicateWithHost err = 0 [08:00:44]CheckOFDResponse [08:00:44]1017 (14) - 77093643461234 [08:00:44]1041 (16) - 0000000000874939 [08:00:44]1040 (4) - 118376 [08:00:44]1012 (4) - 28.07.2024 02:09 [08:00:44]1206 (1) - 0 [08:00:44]OFD Sender: Remove packet 118376 [08:00:44]ProducePacketName [08:00:44]name=ofd_packets/00118376 [08:00:44]NVStorageDeleteData [08:00:44]Write to MH i2c: 01 00 00 77 08 7F [08:00:44]Write i2c OK [08:00:44]MH_I2C_Read... [08:00:44]Read from MH i2c: 01 [08:00:44]MH_I2C_Read... [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 77 08 00 00 00 00 00 DC 0C 6E [08:00:44]RasterBufferAndPrint [08:00:44]line [08:00:44]line [08:00:44]line [08:00:44]line [08:00:44]line [08:00:44]written 0, free lines is 3298 [08:00:44]MH_Cut [08:00:44]Write to MH i2c: D1 01 00 7E 08 01 58 [08:00:44]Write i2c OK [08:00:44]MH_I2C_Read... [08:00:44]Read from MH i2c: D1 [08:00:44]MH_I2C_Read... [08:00:44]Read from MH i2c: D1 01 00 [08:00:44]MH_I2C_Read... [08:00:44]Read from MH i2c: D1 01 00 7E 08 00 57 [08:00:44]Write to MH i2c: 01 00 00 7F 08 87 [08:00:44]Write i2c OK [08:00:44]MH_I2C_Read... [08:00:44]OFD Sender: No OFD packet to send [08:00:44]*** Cut start [08:00:44]*** Partial cut [08:00:44]*** CUTSNS_PIN = 1 [08:00:44]*** CUTSNS_PIN = 0 [08:00:45]*** Brake cut motor [08:00:45]Read from MH i2c: 01 [08:00:45]MH_I2C_Read... [08:00:45]*** Stop cut motor [08:00:45]*** Cut end [08:00:45]Read from MH i2c: 01 07 00 [08:00:45]MH_I2C_Read... [08:00:45]Read from MH i2c: 01 07 00 7F 08 00 00 00 00 00 FF 0F 9C [08:00:45]process_action close_receipt done [08:00:45]requested_data is exist [08:00:45]produce_requested_data [08:00:45]requested_item fm.sn is exist - process it [08:00:45]wFMCommunicate request_size=4 [08:00:45]MH_SAM_APDU [08:00:45]CAPDU: 80 11 00 00 [08:00:45]Write to MH i2c: E2 08 00 80 08 80 11 00 00 00 00 00 00 02 [08:00:45]Write i2c OK [08:00:45]MH_I2C_Read... [08:00:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:45]Read from MH i2c: E2 [08:00:45]MH_I2C_Read... [08:00:45]Read from MH i2c: E2 17 00 [08:00:45]MH_I2C_Read... [08:00:45]Read from MH i2c: E2 17 00 80 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5D [08:00:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:00:45]wFMCommunicate OK [08:00:45]requested_item fd.num is exist - process it [08:00:45]SAM_PROTO_GetFieldsCounters [08:00:45]wFMCommunicate request_size=4 [08:00:45]MH_SAM_APDU [08:00:45]CAPDU: 80 13 00 00 [08:00:45]Write to MH i2c: E2 08 00 81 08 80 13 00 00 00 00 00 00 05 [08:00:45]Write i2c OK [08:00:45]MH_I2C_Read... [08:00:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:00:45]Read from MH i2c: E2 [08:00:45]MH_I2C_Read... [08:00:45]Read from MH i2c: E2 62 00 [08:00:45]MH_I2C_Read... [08:00:45]Read from MH i2c: E2 62 00 81 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 68 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [08: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 68 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:00:45]wFMCommunicate OK [08:00:45]SAM_PROTO_GetFieldsCounters done [08:00:45]requested_item shift.num is exist - process it [08:00:45]requested_item shift.opened is exist - process it [08:00:45]req_shift_opened [08:00:45]FM_GetShiftState [08:00:45]SAM_PROTO_GetShiftState [08:00:45]wFMCommunicate request_size=4 [08:00:45]MH_SAM_APDU [08:00:45]CAPDU: 80 13 01 00 [08:00:45]Write to MH i2c: E2 08 00 82 08 80 13 01 00 00 00 00 00 07 [08:00:45]Write i2c OK [08:00:45]MH_I2C_Read... [08:00:45]Read from MH i2c: E2 [08:00:45]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 0E 00 [08:00:45]MH_I2C_Read... [08:00:45]Read from MH i2c: E2 0E 00 82 08 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 DE [08:00:45]RAPDU: 09 00 01 34 8C A5 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":"0000000000874939","fd.num":118376,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [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":"0000000000874939","fd.num":118376,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [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 9.Close socket [08:00:45]Sock 9.Thread stoped [08:00:49]OFD Sender: No OFD packet to send [08:00:54]OFD Sender: No OFD packet to send [08:00:59]OFD Sender: No OFD packet to send [08:01:04]OFD Sender: No OFD packet to send [08:01:09]OFD Sender: No OFD packet to send [08:01:14]OFD Sender: No OFD packet to send [08:01:19]OFD Sender: No OFD packet to send [08:01:24]OFD Sender: No OFD packet to send [08:01:29]OFD Sender: No OFD packet to send [08:01:34]OFD Sender: No OFD packet to send [08:01:39]OFD Sender: No OFD packet to send [08:01:44]OFD Sender: No OFD packet to send [08:01:49]OFD Sender: No OFD packet to send [08:01:54]OFD Sender: No OFD packet to send [08:01:59]OFD Sender: No OFD packet to send [08:02:04]OFD Sender: No OFD packet to send [08:02:09]OFD Sender: No OFD packet to send [08:02:14]OFD Sender: No OFD packet to send [08:02:19]OFD Sender: No OFD packet to send [08:02:24]OFD Sender: No OFD packet to send [08:02:29]OFD Sender: No OFD packet to send [08:02:34]OFD Sender: No OFD packet to send [08:02:39]OFD Sender: No OFD packet to send [08:02:44]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]OFD Sender: No OFD packet to send [08:03:09]OFD Sender: No OFD packet to send [08:03:14]OFD Sender: No OFD packet to send [08:03:19]OFD Sender: No OFD packet to send [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:48]accept exits with 7 [08:03:48]New connection [08:03:48]New thread 3066924388 created [08:03:48]Thread 3067067748 joined [08:03:48]Waiting for new connection... [08:03:48] Sock 7.Parse request [08:03:48]Sock 7.Check first char [08:03:48]Sock 7.First char is OK [08:03:48]request: POST /json_proto HTTP/1.0 [08:03:48]Method: POST [08:03:48]URL: /json_proto [08:03:48]Method is POST - this is cgi request [08:03:48]url: /json_proto [08:03:48]query_string will be loaded in cgi processing [08:03:48]execute_cgi json_proto POST (null) [08:03:48]execute_cgi path=json_proto method=POST [08:03:48]POST find Content-Length [08:03:48]Host: 172.17.45.7:8080 [08:03:48]Content-Length: 677 [08:03:48]Content-Type: application/json [08:03:48] [08:03:48]POST finish read [08:03:48]Found Content-Length = 677 [08:03:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [08:03:48]execute_script... [08:03: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)949249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [08:03:48]POST & json_proto [08:03:48]process_json_proto [08:03:48]json parsed OK: [08:03:48]protocol is kg_v1.0 [08:03:48]action value=close_receipt [08:03:48]process_action close_receipt [08:03:48]cmd_close_receipt [08:03:48]MH_GetDate [08:03:48]Write to MH i2c: F0 00 00 83 08 7A [08:03:48]Write i2c OK [08:03:48]MH_I2C_Read... [08:03:48]Read from MH i2c: F0 [08:03:48]MH_I2C_Read... [08:03:48]Read from MH i2c: F0 09 00 [08:03:48]MH_I2C_Read... [08:03:48]Read from MH i2c: F0 09 00 83 08 00 65 FB A5 66 90 0F 3E 66 31 [08:03:48]GetLastDocTimeStamp 1722153643 [08:03:48]current date 1722153829 [08:03:48]FM_GetShiftState [08:03:48]SAM_PROTO_GetShiftState [08:03:48]wFMCommunicate request_size=4 [08:03:48]MH_SAM_APDU [08:03:48]CAPDU: 80 13 01 00 [08:03:48]Write to MH i2c: E2 08 00 84 08 80 13 01 00 00 00 00 00 09 [08:03:48]Write i2c OK [08:03:48]MH_I2C_Read... [08:03:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:48]Read from MH i2c: E2 [08:03:48]MH_I2C_Read... [08:03:48]Read from MH i2c: E2 0E 00 [08:03:48]MH_I2C_Read... [08:03:48]Read from MH i2c: E2 0E 00 84 08 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 E0 [08:03:48]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:03:48]wFMCommunicate OK [08:03:48]SAM_PROTO_GetShiftState done [08:03:48]FM_GetShiftState done [08:03:48]opened in 1722125364 [08:03:48]opened+sec_in_day 1722211764 [08:03:48]quantity*price = 30035 [08:03:48]sum+1 = 30036 [08:03:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 46 28.07.2024 08:03 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118377 ФПД: 221977593295890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T080349&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118377&fm=221977593295890&tin=02508201610067®Number=0000000000092660&sum=30000 [08:03:49]StoreToDocumentArchive [08:03:49]shift 433 fd 118377 [08:03:49]save to /storage/0433/doc_00118377 [08:03:49]save last doc name /storage/0433/doc_00118377 to /storage/kkm_last_doc_name [08:03:49]save OK [08:03:49]Clear old archive folders... [08:03:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:03:49]tlvbuf is 001479D0 [08:03:49]SAM_PROTO_ClearQueue [08:03:49]wFMCommunicate request_size=4 [08:03:49]MH_SAM_APDU [08:03:49]CAPDU: 80 09 00 00 [08:03:49]Write to MH i2c: E2 08 00 91 08 80 09 00 00 00 00 00 00 0B [08:03:49]Write i2c OK [08:03:49]MH_I2C_Read... [08:03:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:49]Read from MH i2c: E2 [08:03:49]MH_I2C_Read... [08:03:49]Read from MH i2c: E2 03 00 [08:03:49]MH_I2C_Read... [08:03:49]Read from MH i2c: E2 03 00 91 08 00 90 00 0D [08:03:49]RAPDU: 90 00 [08:03:49]wFMCommunicate OK [08:03:49]SAM_PROTO_ClearQueue done [08:03:49]KKMCreateOFDPacket [08:03:49]OFDProtocolAddRootSTLVToBuf [08:03:49]FM_MakeSignedData [08:03:49]FM_MakeSignedData [08:03:49]SAM_PROTO_SignData [08:03:49]wFMCommunicate request_size=4 [08:03:49]MH_SAM_APDU [08:03:49]CAPDU: 80 0D 01 02 [08:03:49]Write to MH i2c: E2 08 00 92 08 80 0D 01 02 00 00 00 00 13 [08:03:49]Write i2c OK [08:03:49]MH_I2C_Read... [08:03:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:49]Read from MH i2c: E2 [08:03:49]MH_I2C_Read... [08:03:49]Read from MH i2c: E2 03 00 [08:03:49]MH_I2C_Read... [08:03:49]Read from MH i2c: E2 03 00 92 08 00 90 00 0E [08:03:49]RAPDU: 90 00 [08:03:49]wFMCommunicate OK [08:03:49]wFMCommunicate request_size=255 [08:03:49]MH_SAM_APDU [08:03: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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 65 FB A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 69 CE 01 00 35 04 06 00 C9 [08:03:49]Write to MH i2c: E2 02 01 93 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 65 FB A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 69 CE 01 00 35 04 06 00 C9 00 00 02 [08:03:49]Write i2c OK [08:03:49]MH_I2C_Read... [08:03:49]OFD Sender: No OFD packet to send [08:03:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:49]Read from MH i2c: E2 [08:03:49]MH_I2C_Read... [08:03:49]Read from MH i2c: E2 03 00 [08:03:49]MH_I2C_Read... [08:03:49]Read from MH i2c: E2 03 00 93 08 00 90 00 0F [08:03:49]RAPDU: 90 00 [08:03:49]wFMCommunicate OK [08:03:49]wFMCommunicate request_size=10 [08:03:49]MH_SAM_APDU [08:03:49]CAPDU: 80 0D 02 02 05 E3 2F 98 B4 12 [08:03:49]Write to MH i2c: E2 0D 00 94 08 80 0D 02 02 05 00 E3 2F 98 B4 12 00 00 90 [08:03:49]Write i2c OK [08:03:49]MH_I2C_Read... [08:03:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:49]Read from MH i2c: E2 [08:03:49]MH_I2C_Read... [08:03:49]Read from MH i2c: E2 03 00 [08:03:49]MH_I2C_Read... [08:03:49]Read from MH i2c: E2 03 00 94 08 00 90 00 10 [08:03:49]RAPDU: 90 00 [08:03:49]wFMCommunicate OK [08:03:49]wFMCommunicate request_size=4 [08:03:49]MH_SAM_APDU [08:03:49]CAPDU: 80 0D 03 02 [08:03:49]Write to MH i2c: E2 08 00 95 08 80 0D 03 02 00 00 00 00 18 [08:03:49]Write i2c OK [08:03:49]MH_I2C_Read... [08:03:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:49]Read from MH i2c: E2 [08:03:49]MH_I2C_Read... [08:03:49]Read from MH i2c: E2 0B 00 [08:03:49]MH_I2C_Read... [08:03:49]Read from MH i2c: E2 0B 00 95 08 00 DE B1 FE 8F 84 F1 63 43 90 00 50 [08:03:49]RAPDU: DE B1 FE 8F 84 F1 63 43 90 00 [08:03:49]wFMCommunicate OK [08:03:49]SAM_PROTO_SignData done [08:03:49]FM_MakeSignedData done [08:03:49]CreateOFDProtocolMessage [08:03:49]wFMCommunicate request_size=4 [08:03:49]MH_SAM_APDU [08:03:49]CAPDU: 80 11 00 00 [08:03:49]Write to MH i2c: E2 08 00 96 08 80 11 00 00 00 00 00 00 18 [08:03:49]Write i2c OK [08:03:49]MH_I2C_Read... [08:03:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:49]Read from MH i2c: E2 [08:03:49]MH_I2C_Read... [08:03:49]Read from MH i2c: E2 17 00 [08:03:49]MH_I2C_Read... [08:03:49]Read from MH i2c: E2 17 00 96 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 73 [08:03:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:03:49]wFMCommunicate OK [08:03:49]CreateOFDProtocolMessage done [08:03:49]OFDSenderStorePacket 118377 [08:03:49]StoreOFDPacket docnum=118377 [08:03:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2F 28 07 01 18 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 65 FB A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 69 CE 01 00 35 04 06 00 C9 E3 2F 98 B4 12 DE B1 FE 8F 84 F1 63 43 [08:03:49]CheckFolder [08:03:49]dirname=/storage/ofd_packets [08:03:49]CheckFolder done [08:03:49]ProducePacketName [08:03:49]name=ofd_packets/00118377 [08:03:49]NVStorageSaveData ofd_packets/00118377 [08:03:49]File name is /storage/ofd_packets/00118377 [08:03:49]Write 301 bytes [08:03:49]NVStorageSaveData done [08:03:49]OFDSenderStorePacket done [08:03:49]KKMCreateOFDPacket done [08:03:49]NVStorageSaveData kkm_last_timestamp [08:03:49]File name is /storage/kkm_last_timestamp [08:03:49]Write 4 bytes [08:03:49]NVStorageSaveData done [08:03:49]ExternCall_PrintAddStr [08:03:49]wPrintStart [08:03:49]Write to MH i2c: 01 00 00 97 08 9F [08:03:49]Write i2c OK [08:03:49]MH_I2C_Read... [08:03:49]Read from MH i2c: 01 [08:03:49]MH_I2C_Read... [08:03:49]Read from MH i2c: 01 07 00 [08:03:49]MH_I2C_Read... [08:03:49]Read from MH i2c: 01 07 00 97 08 00 00 00 00 00 FF 0F B4 [08:03:49]RasterBufferAndPrint [08:03:49]line Счет N : (1)949249 [08:03:49]line ИНН: 02508201610067 [08:03:49]line Контрольно-Кассовый Чек [08:03:49]line ПРОДАЖА [08:03:49]line ТРК (МРК, ГНК) : 41 [08:03:49]line Товар: 2710124130 [08:03:49]line Аи-92-К-4 [08:03:49]line 4.430 * 67.80 [08:03:49]line = 300.35 [08:03:49]line НДС 12% НСП 1% [08:03:49]line > о реализуемом товаре [08:03:49]line ОКРУГЛЕНИЕ: -0.35 [08:03:49]line ИТОГО: 300.00 [08:03:49]line Внесено: 300.00 [08:03:49]line СДАЧА: 0.00 [08:03:49]line НСП 1% : 2.66 [08:03:49]line НДС 12% : 31.90 [08:03:49]line Наличными: 300.00 [08:03:49]line Безнал.: 0.00 [08:03:49]line Место: АЗС № 134 "Партнер Нефть" [08:03:49]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:03:49]line СНО: Общий режим [08:03:49]line Чек 46 28.07.2024 08:03 [08:03:49]line Смена: 433 ФФД: 1.0 [08:03:49]line ЗНМ: 0300000044 [08:03:49]line РНМ: 0000000000092660 [08:03:49]line Версия ККМ: 001 [08:03:49]line ФМ: 0000000000874939 [08:03:49]line ФД: 118377 [08:03:49]line ФПД: 221977593295890 [08:03:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T080349&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118377&fm=221977593295890&tin=02508201610067®Number=0000000000092660&sum=30000 [08:03:49]written 0, free lines is 4095 [08:03:49]OFD Sender: Processing packet 118377 [packets to send 86, broken 85] [08:03:49]ProducePacketName [08:03:49]name=ofd_packets/00118377 [08:03:49]OFD Sender: To server: pG, [08:03:49]CommunicateWithHost lk.salyk.kg:30040 [08:03:49]ConnectInit lk.salyk.kg [08:03:50]Connected sock=10 [08:03: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 39 33 39 0F 01 00 00 2F 28 07 01 18 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 65 FB A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 69 CE 01 00 35 04 06 00 C9 E3 2F 98 B4 12 DE B1 FE 8F 84 F1 63 43 [08:03:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 53 13 47 00 67 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 39 33 39 10 04 04 00 69 CE 01 00 F4 03 04 00 F6 A8 A5 66 B6 04 01 00 00 DD 7C D9 1A 12 81 B6 E9 [08:03:50]CommunicateWithHost err = 0 [08:03:50]CheckOFDResponse [08:03:50]1017 (14) - 77093643461234 [08:03:50]1041 (16) - 0000000000874939 [08:03:50]1040 (4) - 118377 [08:03:50]1012 (4) - 28.07.2024 02:12 [08:03:50]1206 (1) - 0 [08:03:50]OFD Sender: Remove packet 118377 [08:03:50]ProducePacketName [08:03:50]name=ofd_packets/00118377 [08:03:50]NVStorageDeleteData [08:03:50]Write to MH i2c: 01 00 00 C1 08 C9 [08:03:50]Write i2c OK [08:03:50]MH_I2C_Read... [08:03:50]Read from MH i2c: 01 [08:03:50]MH_I2C_Read... [08:03:50]Read from MH i2c: 01 07 00 [08:03:50]MH_I2C_Read... [08:03:50]Read from MH i2c: 01 07 00 C1 08 00 00 00 00 00 E0 0C BC [08:03:50]RasterBufferAndPrint [08:03:50]line [08:03:50]line [08:03:50]line [08:03:50]line [08:03:50]line [08:03:50]written 0, free lines is 3302 [08:03:50]MH_Cut [08:03:50]Write to MH i2c: D1 01 00 C8 08 01 A2 [08:03:50]Write i2c OK [08:03:50]MH_I2C_Read... [08:03:50]Read from MH i2c: D1 [08:03:50]MH_I2C_Read... [08:03:50]Read from MH i2c: D1 01 00 [08:03:50]MH_I2C_Read... [08:03:50]Read from MH i2c: D1 01 00 C8 08 00 A1 [08:03:50]Write to MH i2c: 01 00 00 C9 08 D1 [08:03:50]Write i2c OK [08:03:50]MH_I2C_Read... [08:03:50]OFD Sender: No OFD packet to send [08:03:51]*** Cut start [08:03:51]*** Partial cut [08:03:51]*** CUTSNS_PIN = 1 [08:03:51]*** CUTSNS_PIN = 0 [08:03:51]*** Brake cut motor [08:03:51]Read from MH i2c: 01 [08:03:51]MH_I2C_Read... [08:03:51]*** Stop cut motor [08:03:51]*** Cut end [08:03:51]Read from MH i2c: 01 07 00 [08:03:51]MH_I2C_Read... [08:03:51]Read from MH i2c: 01 07 00 C9 08 00 00 00 00 00 FF 0F E6 [08:03:51]process_action close_receipt done [08:03:51]requested_data is exist [08:03:51]produce_requested_data [08:03:51]requested_item fm.sn is exist - process it [08:03:51]wFMCommunicate request_size=4 [08:03:51]MH_SAM_APDU [08:03:51]CAPDU: 80 11 00 00 [08:03:51]Write to MH i2c: E2 08 00 CA 08 80 11 00 00 00 00 00 00 4C [08:03:51]Write i2c OK [08:03:51]MH_I2C_Read... [08:03:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:51]Read from MH i2c: E2 [08:03:51]MH_I2C_Read... [08:03:51]Read from MH i2c: E2 17 00 [08:03:51]MH_I2C_Read... [08:03:51]Read from MH i2c: E2 17 00 CA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A7 [08:03:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:03:51]wFMCommunicate OK [08:03:51]requested_item fd.num is exist - process it [08:03:51]SAM_PROTO_GetFieldsCounters [08:03:51]wFMCommunicate request_size=4 [08:03:51]MH_SAM_APDU [08:03:51]CAPDU: 80 13 00 00 [08:03:51]Write to MH i2c: E2 08 00 CB 08 80 13 00 00 00 00 00 00 4F [08:03:51]Write i2c OK [08:03:51]MH_I2C_Read... [08:03:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:51]Read from MH i2c: E2 [08:03:51]MH_I2C_Read... [08:03:51]Read from MH i2c: E2 62 00 [08:03:51]MH_I2C_Read... [08:03:51]Read from MH i2c: E2 62 00 CB 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 69 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [08:03:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 69 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:03:51]wFMCommunicate OK [08:03:51]SAM_PROTO_GetFieldsCounters done [08:03:51]requested_item shift.num is exist - process it [08:03:51]requested_item shift.opened is exist - process it [08:03:51]req_shift_opened [08:03:51]FM_GetShiftState [08:03:51]SAM_PROTO_GetShiftState [08:03:51]wFMCommunicate request_size=4 [08:03:51]MH_SAM_APDU [08:03:51]CAPDU: 80 13 01 00 [08:03:51]Write to MH i2c: E2 08 00 CC 08 80 13 01 00 00 00 00 00 51 [08:03:51]Write i2c OK [08:03:51]MH_I2C_Read... [08:03:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:52]Read from MH i2c: E2 [08:03:52]MH_I2C_Read... [08:03:52]Read from MH i2c: E2 0E 00 [08:03:52]MH_I2C_Read... [08:03:52]Read from MH i2c: E2 0E 00 CC 08 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 28 [08:03:52]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:03:52]wFMCommunicate OK [08:03:52]SAM_PROTO_GetShiftState done [08:03:52]FM_GetShiftState done [08:03:52]req_shift_opened done [08:03:52]requested_item shift.open_date is exist - process it [08:03:52]req_shift_open_date [08:03:52]req_shift_open_date done [08:03:52]produce_requested_data done [08:03:52]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118377,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [08:03:52]process_action_free close_receipt [08:03:52]json_value_free [08:03:52]json_value_free done [08:03:52]process_json_proto returns [08:03:52]Send response to host [08:03:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118377,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [08:03:52]free response buf [08:03:52]execute_script done [08:03:52]execute_script returns [08:03:52]free content buf [08:03:52]Sock 7.Close socket [08:03:52]Sock 7.Thread stoped [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:40]OFD Sender: No OFD packet to send [08:04:45]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:20]OFD Sender: No OFD packet to send [08:05:25]OFD Sender: No OFD packet to send [08:05:30]OFD Sender: No OFD packet to send [08:05:35]OFD Sender: No OFD packet to send [08:05:40]OFD Sender: No OFD packet to send [08:05:45]OFD Sender: No OFD packet to send [08:05:50]OFD Sender: No OFD packet to send [08:05:55]OFD Sender: No OFD packet to send [08:06:00]OFD Sender: No OFD packet to send [08:06:05]OFD Sender: No OFD packet to send [08:06:10]OFD Sender: No OFD packet to send [08:06:15]OFD Sender: No OFD packet to send [08:06:20]OFD Sender: No OFD packet to send [08:06:25]OFD Sender: No OFD packet to send [08:06:30]OFD Sender: No OFD packet to send [08:06:35]OFD Sender: No OFD packet to send [08:06:40]OFD Sender: No OFD packet to send [08:06:44]accept exits with 9 [08:06:44]New connection [08:06:44]New thread 3067067748 created [08:06:44]Thread 3066924388 joined [08:06:44]Waiting for new connection... [08:06:44] Sock 9.Parse request [08:06:44]Sock 9.Check first char [08:06:44]Sock 9.First char is OK [08:06:44]request: POST /json_proto HTTP/1.0 [08:06:44]Method: POST [08:06:44]URL: /json_proto [08:06:44]Method is POST - this is cgi request [08:06:44]url: /json_proto [08:06:44]query_string will be loaded in cgi processing [08:06:44]execute_cgi json_proto POST (null) [08:06:44]execute_cgi path=json_proto method=POST [08:06:44]POST find Content-Length [08:06:44]Host: 172.17.45.7:8080 [08:06:44]Content-Length: 679 [08:06:44]Content-Type: application/json [08:06:44] [08:06:44]POST finish read [08:06:44]Found Content-Length = 679 [08:06:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:44]execute_script... [08:06: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)949250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:44]POST & json_proto [08:06:44]process_json_proto [08:06:44]json parsed OK: [08:06:44]protocol is kg_v1.0 [08:06:44]action value=close_receipt [08:06:44]process_action close_receipt [08:06:44]cmd_close_receipt [08:06:44]MH_GetDate [08:06:44]Write to MH i2c: F0 00 00 CD 08 C4 [08:06:44]Write i2c OK [08:06:44]MH_I2C_Read... [08:06:44]Read from MH i2c: F0 [08:06:44]MH_I2C_Read... [08:06:44]Read from MH i2c: F0 09 00 [08:06:44]MH_I2C_Read... [08:06:44]Read from MH i2c: F0 09 00 CD 08 00 16 FC A5 66 90 0F 3E 66 2D [08:06:44]GetLastDocTimeStamp 1722153829 [08:06:44]current date 1722154006 [08:06:44]FM_GetShiftState [08:06:44]SAM_PROTO_GetShiftState [08:06:44]wFMCommunicate request_size=4 [08:06:44]MH_SAM_APDU [08:06:44]CAPDU: 80 13 01 00 [08:06:44]Write to MH i2c: E2 08 00 CE 08 80 13 01 00 00 00 00 00 53 [08:06:44]Write i2c OK [08:06:44]MH_I2C_Read... [08:06:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:44]Read from MH i2c: E2 [08:06:44]MH_I2C_Read... [08:06:44]Read from MH i2c: E2 0E 00 [08:06:44]MH_I2C_Read... [08:06:44]Read from MH i2c: E2 0E 00 CE 08 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 2A [08:06:44]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:06:44]wFMCommunicate OK [08:06:44]SAM_PROTO_GetShiftState done [08:06:44]FM_GetShiftState done [08:06:44]opened in 1722125364 [08:06:44]opened+sec_in_day 1722211764 [08:06:44]quantity*price = 100050 [08:06:44]sum+1 = 100052 [08:06:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 47 28.07.2024 08:06 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118378 ФПД: 252835575737236 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T080646&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118378&fm=252835575737236&tin=02508201610067®Number=0000000000092660&sum=100000 [08:06:45]StoreToDocumentArchive [08:06:45]shift 433 fd 118378 [08:06:45]save to /storage/0433/doc_00118378 [08:06:45]save last doc name /storage/0433/doc_00118378 to /storage/kkm_last_doc_name [08:06:45]save OK [08:06:45]Clear old archive folders... [08:06:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:06:45]tlvbuf is 00147030 [08:06:45]SAM_PROTO_ClearQueue [08:06:45]wFMCommunicate request_size=4 [08:06:45]MH_SAM_APDU [08:06:45]CAPDU: 80 09 00 00 [08:06:45]Write to MH i2c: E2 08 00 DB 08 80 09 00 00 00 00 00 00 55 [08:06:45]Write i2c OK [08:06:45]MH_I2C_Read... [08:06:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:06:45]Read from MH i2c: E2 [08:06:45]MH_I2C_Read... [08:06:45]Read from MH i2c: E2 03 00 [08:06:45]MH_I2C_Read... [08:06:45]Read from MH i2c: E2 03 00 DB 08 00 90 00 57 [08:06:45]RAPDU: 90 00 [08:06:45]wFMCommunicate OK [08:06:45]SAM_PROTO_ClearQueue done [08:06:45]KKMCreateOFDPacket [08:06:45]OFDProtocolAddRootSTLVToBuf [08:06:45]FM_MakeSignedData [08:06:45]FM_MakeSignedData [08:06:45]SAM_PROTO_SignData [08:06:45]wFMCommunicate request_size=4 [08:06:45]MH_SAM_APDU [08:06:45]CAPDU: 80 0D 01 02 [08:06:45]Write to MH i2c: E2 08 00 DC 08 80 0D 01 02 00 00 00 00 5D [08:06:45]Write i2c OK [08:06:45]MH_I2C_Read... [08:06:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:06:45]Read from MH i2c: E2 [08:06:45]MH_I2C_Read... [08:06:45]Read from MH i2c: E2 03 00 [08:06:45]MH_I2C_Read... [08:06:45]Read from MH i2c: E2 03 00 DC 08 00 90 00 58 [08:06:45]RAPDU: 90 00 [08:06:45]wFMCommunicate OK [08:06:45]wFMCommunicate request_size=255 [08:06:45]MH_SAM_APDU [08:06:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 16 FC A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6A CE 01 00 35 04 06 00 E5 F3 DE AD [08:06:45]Write to MH i2c: E2 02 01 DD 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 16 FC A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6A CE 01 00 35 04 06 00 E5 F3 DE AD 00 00 87 [08:06:45]Write i2c OK [08:06:45]MH_I2C_Read... [08:06:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:46]OFD Sender: No OFD packet to send [08:06:46]Read from MH i2c: E2 [08:06:46]MH_I2C_Read... [08:06:46]Read from MH i2c: E2 03 00 [08:06:46]MH_I2C_Read... [08:06:46]Read from MH i2c: E2 03 00 DD 08 00 90 00 59 [08:06:46]RAPDU: 90 00 [08:06:46]wFMCommunicate OK [08:06:46]wFMCommunicate request_size=7 [08:06:46]MH_SAM_APDU [08:06:46]CAPDU: 80 0D 02 02 02 AB 94 [08:06:46]Write to MH i2c: E2 0A 00 DE 08 80 0D 02 02 02 00 AB 94 00 00 A3 [08:06:46]Write i2c OK [08:06:46]MH_I2C_Read... [08:06:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:46]Read from MH i2c: E2 [08:06:46]MH_I2C_Read... [08:06:46]Read from MH i2c: E2 03 00 [08:06:46]MH_I2C_Read... [08:06:46]Read from MH i2c: E2 03 00 DE 08 00 90 00 5A [08:06:46]RAPDU: 90 00 [08:06:46]wFMCommunicate OK [08:06:46]wFMCommunicate request_size=4 [08:06:46]MH_SAM_APDU [08:06:46]CAPDU: 80 0D 03 02 [08:06:46]Write to MH i2c: E2 08 00 DF 08 80 0D 03 02 00 00 00 00 62 [08:06:46]Write i2c OK [08:06:46]MH_I2C_Read... [08:06:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:06:46]Read from MH i2c: E2 [08:06:46]MH_I2C_Read... [08:06:46]Read from MH i2c: E2 0B 00 [08:06:46]MH_I2C_Read... [08:06:46]Read from MH i2c: E2 0B 00 DF 08 00 B8 9D 7C 47 B5 1F 52 52 90 00 F3 [08:06:46]RAPDU: B8 9D 7C 47 B5 1F 52 52 90 00 [08:06:46]wFMCommunicate OK [08:06:46]SAM_PROTO_SignData done [08:06:46]FM_MakeSignedData done [08:06:46]CreateOFDProtocolMessage [08:06:46]wFMCommunicate request_size=4 [08:06:46]MH_SAM_APDU [08:06:46]CAPDU: 80 11 00 00 [08:06:46]Write to MH i2c: E2 08 00 E0 08 80 11 00 00 00 00 00 00 62 [08:06:46]Write i2c OK [08:06:46]MH_I2C_Read... [08:06:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:46]Read from MH i2c: E2 [08:06:46]MH_I2C_Read... [08:06:46]Read from MH i2c: E2 17 00 [08:06:46]MH_I2C_Read... [08:06:46]Read from MH i2c: E2 17 00 E0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BD [08:06:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:06:46]wFMCommunicate OK [08:06:46]CreateOFDProtocolMessage done [08:06:46]OFDSenderStorePacket 118378 [08:06:46]StoreOFDPacket docnum=118378 [08:06:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 BF C9 04 01 12 94 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 16 FC A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6A CE 01 00 35 04 06 00 E5 F3 DE AD AB 94 B8 9D 7C 47 B5 1F 52 52 [08:06:46]CheckFolder [08:06:46]dirname=/storage/ofd_packets [08:06:46]CheckFolder done [08:06:46]ProducePacketName [08:06:46]name=ofd_packets/00118378 [08:06:46]NVStorageSaveData ofd_packets/00118378 [08:06:46]File name is /storage/ofd_packets/00118378 [08:06:46]Write 298 bytes [08:06:46]NVStorageSaveData done [08:06:46]OFDSenderStorePacket done [08:06:46]KKMCreateOFDPacket done [08:06:46]NVStorageSaveData kkm_last_timestamp [08:06:46]File name is /storage/kkm_last_timestamp [08:06:46]Write 4 bytes [08:06:46]NVStorageSaveData done [08:06:46]ExternCall_PrintAddStr [08:06:46]wPrintStart [08:06:46]Write to MH i2c: 01 00 00 E1 08 E9 [08:06:46]Write i2c OK [08:06:46]MH_I2C_Read... [08:06:46]Read from MH i2c: 01 [08:06:46]MH_I2C_Read... [08:06:46]Read from MH i2c: 01 07 00 [08:06:46]MH_I2C_Read... [08:06:46]Read from MH i2c: 01 07 00 E1 08 00 00 00 00 00 FF 0F FE [08:06:46]RasterBufferAndPrint [08:06:46]line Счет N : (1)949250 [08:06:46]line ИНН: 02508201610067 [08:06:46]line Контрольно-Кассовый Чек [08:06:46]line ПРОДАЖА [08:06:46]line ТРК (МРК, ГНК) : 44 [08:06:46]line Товар: 2710194800 [08:06:46]line ДТ-К-5 [08:06:46]line 13.130 * 76.20 [08:06:46]line = 1000.51 [08:06:46]line НДС 12% НСП 1% [08:06:46]line > о реализуемом товаре [08:06:46]line ОКРУГЛЕНИЕ: -0.51 [08:06:46]line ИТОГО: 1000.00 [08:06:46]line Внесено: 1000.00 [08:06:46]line СДАЧА: 0.00 [08:06:46]line НСП 1% : 8.85 [08:06:46]line НДС 12% : 106.25 [08:06:46]line Наличными: 1000.00 [08:06:46]line Безнал.: 0.00 [08:06:46]line Место: АЗС № 134 "Партнер Нефть" [08:06:46]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:06:46]line СНО: Общий режим [08:06:46]line Чек 47 28.07.2024 08:06 [08:06:46]line Смена: 433 ФФД: 1.0 [08:06:46]line ЗНМ: 0300000044 [08:06:46]line РНМ: 0000000000092660 [08:06:46]line Версия ККМ: 001 [08:06:46]line ФМ: 0000000000874939 [08:06:46]line ФД: 118378 [08:06:46]line ФПД: 252835575737236 [08:06:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T080646&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118378&fm=252835575737236&tin=02508201610067®Number=0000000000092660&sum=100000 [08:06:46]OFD Sender: Processing packet 118378 [packets to send 86, broken 85] [08:06:46]ProducePacketName [08:06:46]name=ofd_packets/00118378 [08:06:46]OFD Sender: To server: pG, [08:06:46]CommunicateWithHost lk.salyk.kg:30040 [08:06:46]ConnectInit lk.salyk.kg [08:06:46]written 0, free lines is 4095 [08:06:46]Connected sock=10 [08:06: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 39 33 39 0C 01 00 00 BF C9 04 01 12 94 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 16 FC A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6A CE 01 00 35 04 06 00 E5 F3 DE AD AB 94 B8 9D 7C 47 B5 1F 52 52 [08:06:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 15 18 47 00 9B 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6A CE 01 00 F4 03 04 00 A7 A9 A5 66 B6 04 01 00 00 F5 6F 9B 43 C8 FB A6 CF [08:06:46]CommunicateWithHost err = 0 [08:06:46]CheckOFDResponse [08:06:46]1017 (14) - 77093643461234 [08:06:46]1041 (16) - 0000000000874939 [08:06:46]1040 (4) - 118378 [08:06:46]1012 (4) - 28.07.2024 02:15 [08:06:46]1206 (1) - 0 [08:06:46]OFD Sender: Remove packet 118378 [08:06:46]ProducePacketName [08:06:46]name=ofd_packets/00118378 [08:06:46]NVStorageDeleteData [08:06:46]Write to MH i2c: 01 00 00 0B 09 14 [08:06:46]Write i2c OK [08:06:46]MH_I2C_Read... [08:06:46]Read from MH i2c: 01 [08:06:46]MH_I2C_Read... [08:06:46]Read from MH i2c: 01 07 00 [08:06:46]MH_I2C_Read... [08:06:46]Read from MH i2c: 01 07 00 0B 09 00 00 00 00 00 D6 0C FD [08:06:46]RasterBufferAndPrint [08:06:46]line [08:06:46]line [08:06:46]line [08:06:46]line [08:06:46]line [08:06:46]written 0, free lines is 3293 [08:06:46]MH_Cut [08:06:46]Write to MH i2c: D1 01 00 12 09 01 ED [08:06:46]Write i2c OK [08:06:46]MH_I2C_Read... [08:06:46]Read from MH i2c: D1 [08:06:46]MH_I2C_Read... [08:06:46]Read from MH i2c: D1 01 00 [08:06:46]MH_I2C_Read... [08:06:46]Read from MH i2c: D1 01 00 12 09 00 EC [08:06:46]Write to MH i2c: 01 00 00 13 09 1C [08:06:46]Write i2c OK [08:06:46]MH_I2C_Read... [08:06:47]OFD Sender: No OFD packet to send [08:06:47]*** Cut start [08:06:47]*** Partial cut [08:06:47]*** CUTSNS_PIN = 1 [08:06:47]*** CUTSNS_PIN = 0 [08:06:47]*** Brake cut motor [08:06:48]Read from MH i2c: 01 [08:06:48]MH_I2C_Read... [08:06:48]*** Stop cut motor [08:06:48]*** Cut end [08:06:48]Read from MH i2c: 01 07 00 [08:06:48]MH_I2C_Read... [08:06:48]Read from MH i2c: 01 07 00 13 09 00 00 00 00 00 FF 0F 31 [08:06:48]process_action close_receipt done [08:06:48]requested_data is exist [08:06:48]produce_requested_data [08:06:48]requested_item fm.sn is exist - process it [08:06:48]wFMCommunicate request_size=4 [08:06:48]MH_SAM_APDU [08:06:48]CAPDU: 80 11 00 00 [08:06:48]Write to MH i2c: E2 08 00 14 09 80 11 00 00 00 00 00 00 97 [08:06:48]Write i2c OK [08:06:48]MH_I2C_Read... [08:06:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:48]Read from MH i2c: E2 [08:06:48]MH_I2C_Read... [08:06:48]Read from MH i2c: E2 17 00 [08:06:48]MH_I2C_Read... [08:06:48]Read from MH i2c: E2 17 00 14 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F2 [08:06:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:06:48]wFMCommunicate OK [08:06:48]requested_item fd.num is exist - process it [08:06:48]SAM_PROTO_GetFieldsCounters [08:06:48]wFMCommunicate request_size=4 [08:06:48]MH_SAM_APDU [08:06:48]CAPDU: 80 13 00 00 [08:06:48]Write to MH i2c: E2 08 00 15 09 80 13 00 00 00 00 00 00 9A [08:06:48]Write i2c OK [08:06:48]MH_I2C_Read... [08:06:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:48]Read from MH i2c: E2 [08:06:48]MH_I2C_Read... [08:06:48]Read from MH i2c: E2 62 00 [08:06:48]MH_I2C_Read... [08:06:48]Read from MH i2c: E2 62 00 15 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6A CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [08:06:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6A CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:06:48]wFMCommunicate OK [08:06:48]SAM_PROTO_GetFieldsCounters done [08:06:48]requested_item shift.num is exist - process it [08:06:48]requested_item shift.opened is exist - process it [08:06:48]req_shift_opened [08:06:48]FM_GetShiftState [08:06:48]SAM_PROTO_GetShiftState [08:06:48]wFMCommunicate request_size=4 [08:06:48]MH_SAM_APDU [08:06:48]CAPDU: 80 13 01 00 [08:06:48]Write to MH i2c: E2 08 00 16 09 80 13 01 00 00 00 00 00 9C [08:06:48]Write i2c OK [08:06:48]MH_I2C_Read... [08:06:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:48]Read from MH i2c: E2 [08:06:48]MH_I2C_Read... [08:06:48]Read from MH i2c: E2 0E 00 [08:06:48]MH_I2C_Read... [08:06:48]Read from MH i2c: E2 0E 00 16 09 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 73 [08:06:48]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:06:48]wFMCommunicate OK [08:06:48]SAM_PROTO_GetShiftState done [08:06:48]FM_GetShiftState done [08:06:48]req_shift_opened done [08:06:48]requested_item shift.open_date is exist - process it [08:06:48]req_shift_open_date [08:06:48]req_shift_open_date done [08:06:48]produce_requested_data done [08:06:48]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118378,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [08:06:48]process_action_free close_receipt [08:06:48]json_value_free [08:06:48]json_value_free done [08:06:48]process_json_proto returns [08:06:48]Send response to host [08:06:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118378,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [08:06:48]free response buf [08:06:48]execute_script done [08:06:48]execute_script returns [08:06:48]free content buf [08:06:48]Sock 9.Close socket [08:06:48]Sock 9.Thread stoped [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:42]OFD Sender: No OFD packet to send [08:08:47]OFD Sender: No OFD packet to send [08:08:52]OFD Sender: No OFD packet to send [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:32]OFD Sender: No OFD packet to send [08:09:37]OFD Sender: No OFD packet to send [08:09:42]OFD Sender: No OFD packet to send [08:09:47]OFD Sender: No OFD packet to send [08:09:52]OFD Sender: No OFD packet to send [08:09:57]OFD Sender: No OFD packet to send [08:10:02]OFD Sender: No OFD packet to send [08:10:07]OFD Sender: No OFD packet to send [08:10:12]OFD Sender: No OFD packet to send [08:10:17]OFD Sender: No OFD packet to send [08:10:22]OFD Sender: No OFD packet to send [08:10:27]OFD Sender: No OFD packet to send [08:10:32]OFD Sender: No OFD packet to send [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:47]OFD Sender: No OFD packet to send [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]accept exits with 7 [08:11:32]New connection [08:11:32]New thread 3066924388 created [08:11:32]Thread 3067067748 joined [08:11:32]Waiting for new connection... [08:11:32] Sock 7.Parse request [08:11:32]Sock 7.Check first char [08:11:32]Sock 7.First char is OK [08:11:32]request: POST /json_proto HTTP/1.0 [08:11:32]Method: POST [08:11:32]URL: /json_proto [08:11:32]Method is POST - this is cgi request [08:11:32]url: /json_proto [08:11:32]query_string will be loaded in cgi processing [08:11:32]execute_cgi json_proto POST (null) [08:11:32]execute_cgi path=json_proto method=POST [08:11:32]POST find Content-Length [08:11:32]Host: 172.17.45.7:8080 [08:11:32]Content-Length: 679 [08:11:32]Content-Type: application/json [08:11:32] [08:11:32]POST finish read [08:11:32]Found Content-Length = 679 [08:11:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:32]execute_script... [08: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)949251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:32]POST & json_proto [08:11:32]process_json_proto [08:11:32]json parsed OK: [08:11:32]protocol is kg_v1.0 [08:11:32]action value=close_receipt [08:11:32]process_action close_receipt [08:11:32]cmd_close_receipt [08:11:32]MH_GetDate [08:11:32]Write to MH i2c: F0 00 00 17 09 0F [08:11:32]Write i2c OK [08:11:32]MH_I2C_Read... [08:11:32]Read from MH i2c: F0 [08:11:32]MH_I2C_Read... [08:11:32]Read from MH i2c: F0 09 00 [08:11:32]MH_I2C_Read... [08:11:32]Read from MH i2c: F0 09 00 17 09 00 35 FD A5 66 90 0F 3E 66 98 [08:11:32]GetLastDocTimeStamp 1722154006 [08:11:32]current date 1722154293 [08:11:32]FM_GetShiftState [08:11:32]SAM_PROTO_GetShiftState [08:11:32]wFMCommunicate request_size=4 [08:11:32]MH_SAM_APDU [08:11:32]CAPDU: 80 13 01 00 [08:11:32]Write to MH i2c: E2 08 00 18 09 80 13 01 00 00 00 00 00 9E [08:11:32]Write i2c OK [08:11:32]MH_I2C_Read... [08:11:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:32]Read from MH i2c: E2 [08:11:32]MH_I2C_Read... [08:11:32]Read from MH i2c: E2 0E 00 [08:11:32]MH_I2C_Read... [08:11:32]Read from MH i2c: E2 0E 00 18 09 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 75 [08:11:32]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:11:32]wFMCommunicate OK [08:11:32]SAM_PROTO_GetShiftState done [08:11:32]FM_GetShiftState done [08:11:32]opened in 1722125364 [08:11:32]opened+sec_in_day 1722211764 [08:11:32]quantity*price = 100050 [08:11:32]sum+1 = 100052 [08:11:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 48 28.07.2024 08:11 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118379 ФПД: 276484729333414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T081133&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118379&fm=276484729333414&tin=02508201610067®Number=0000000000092660&sum=100000 [08:11:33]StoreToDocumentArchive [08:11:33]shift 433 fd 118379 [08:11:33]save to /storage/0433/doc_00118379 [08:11:33]save last doc name /storage/0433/doc_00118379 to /storage/kkm_last_doc_name [08:11:33]save OK [08:11:33]Clear old archive folders... [08:11:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:11:33]tlvbuf is 00127FF0 [08:11:33]SAM_PROTO_ClearQueue [08:11:33]wFMCommunicate request_size=4 [08:11:33]MH_SAM_APDU [08:11:33]CAPDU: 80 09 00 00 [08:11:33]Write to MH i2c: E2 08 00 25 09 80 09 00 00 00 00 00 00 A0 [08:11:33]Write i2c OK [08:11:33]MH_I2C_Read... [08:11:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:11:33]Read from MH i2c: E2 [08:11:33]MH_I2C_Read... [08:11:33]Read from MH i2c: E2 03 00 [08:11:33]MH_I2C_Read... [08:11:33]Read from MH i2c: E2 03 00 25 09 00 90 00 A2 [08:11:33]RAPDU: 90 00 [08:11:33]wFMCommunicate OK [08:11:33]SAM_PROTO_ClearQueue done [08:11:33]KKMCreateOFDPacket [08:11:33]OFDProtocolAddRootSTLVToBuf [08:11:33]FM_MakeSignedData [08:11:33]FM_MakeSignedData [08:11:33]SAM_PROTO_SignData [08:11:33]wFMCommunicate request_size=4 [08:11:33]MH_SAM_APDU [08:11:33]CAPDU: 80 0D 01 02 [08:11:33]Write to MH i2c: E2 08 00 26 09 80 0D 01 02 00 00 00 00 A8 [08:11:33]Write i2c OK [08:11:33]MH_I2C_Read... [08:11:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:11:33]Read from MH i2c: E2 [08:11:33]MH_I2C_Read... [08:11:33]Read from MH i2c: E2 03 00 [08:11:33]MH_I2C_Read... [08:11:33]Read from MH i2c: E2 03 00 26 09 00 90 00 A3 [08:11:33]RAPDU: 90 00 [08:11:33]wFMCommunicate OK [08:11:33]wFMCommunicate request_size=255 [08:11:33]MH_SAM_APDU [08:11:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 35 FD A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6B CE 01 00 35 04 06 00 FB 76 1E 13 [08:11:33]Write to MH i2c: E2 02 01 27 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 35 FD A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6B CE 01 00 35 04 06 00 FB 76 1E 13 00 00 33 [08:11:33]Write i2c OK [08:11:33]MH_I2C_Read... [08:11:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:33]Read from MH i2c: E2 [08:11:33]MH_I2C_Read... [08:11:33]Read from MH i2c: E2 03 00 [08:11:33]MH_I2C_Read... [08:11:33]Read from MH i2c: E2 03 00 27 09 00 90 00 A4 [08:11:33]RAPDU: 90 00 [08:11:33]wFMCommunicate OK [08:11:33]wFMCommunicate request_size=7 [08:11:33]MH_SAM_APDU [08:11:33]CAPDU: 80 0D 02 02 02 E6 A6 [08:11:33]Write to MH i2c: E2 0A 00 28 09 80 0D 02 02 02 00 E6 A6 00 00 3B [08:11:33]Write i2c OK [08:11:33]MH_I2C_Read... [08:11:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:33]Read from MH i2c: E2 [08:11:33]MH_I2C_Read... [08:11:33]Read from MH i2c: E2 03 00 [08:11:33]MH_I2C_Read... [08:11:33]Read from MH i2c: E2 03 00 28 09 00 90 00 A5 [08:11:33]RAPDU: 90 00 [08:11:33]wFMCommunicate OK [08:11:33]wFMCommunicate request_size=4 [08:11:33]MH_SAM_APDU [08:11:33]CAPDU: 80 0D 03 02 [08:11:33]Write to MH i2c: E2 08 00 29 09 80 0D 03 02 00 00 00 00 AD [08:11:33]Write i2c OK [08:11:33]MH_I2C_Read... [08:11:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:11:33]Read from MH i2c: E2 [08:11:33]MH_I2C_Read... [08:11:33]Read from MH i2c: E2 0B 00 [08:11:33]MH_I2C_Read... [08:11:33]Read from MH i2c: E2 0B 00 29 09 00 78 3C 83 BA D2 3C F6 38 90 00 DB [08:11:33]RAPDU: 78 3C 83 BA D2 3C F6 38 90 00 [08:11:33]wFMCommunicate OK [08:11:33]SAM_PROTO_SignData done [08:11:33]FM_MakeSignedData done [08:11:33]CreateOFDProtocolMessage [08:11:33]wFMCommunicate request_size=4 [08:11:33]MH_SAM_APDU [08:11:33]CAPDU: 80 11 00 00 [08:11:33]Write to MH i2c: E2 08 00 2A 09 80 11 00 00 00 00 00 00 AD [08:11:33]Write i2c OK [08:11:33]MH_I2C_Read... [08:11:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:33]Read from MH i2c: E2 [08:11:33]MH_I2C_Read... [08:11:33]Read from MH i2c: E2 17 00 [08:11:33]MH_I2C_Read... [08:11:33]Read from MH i2c: E2 17 00 2A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 08 [08:11:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:11:33]wFMCommunicate OK [08:11:33]CreateOFDProtocolMessage done [08:11:33]OFDSenderStorePacket 118379 [08:11:33]StoreOFDPacket docnum=118379 [08:11:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 11 E0 04 01 E4 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 35 FD A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6B CE 01 00 35 04 06 00 FB 76 1E 13 E6 A6 78 3C 83 BA D2 3C F6 38 [08:11:33]CheckFolder [08:11:33]dirname=/storage/ofd_packets [08:11:33]CheckFolder done [08:11:33]ProducePacketName [08:11:33]name=ofd_packets/00118379 [08:11:33]NVStorageSaveData ofd_packets/00118379 [08:11:33]File name is /storage/ofd_packets/00118379 [08:11:33]Write 298 bytes [08:11:33]NVStorageSaveData done [08:11:33]OFDSenderStorePacket done [08:11:33]KKMCreateOFDPacket done [08:11:33]NVStorageSaveData kkm_last_timestamp [08:11:33]File name is /storage/kkm_last_timestamp [08:11:33]Write 4 bytes [08:11:33]NVStorageSaveData done [08:11:33]ExternCall_PrintAddStr [08:11:33]wPrintStart [08:11:33]Write to MH i2c: 01 00 00 2B 09 34 [08:11:33]Write i2c OK [08:11:33]MH_I2C_Read... [08:11:33]Read from MH i2c: 01 [08:11:33]MH_I2C_Read... [08:11:33]Read from MH i2c: 01 07 00 [08:11:33]MH_I2C_Read... [08:11:33]Read from MH i2c: 01 07 00 2B 09 00 00 00 00 00 FF 0F 49 [08:11:33]RasterBufferAndPrint [08:11:33]line Счет N : (1)949251 [08:11:33]line ИНН: 02508201610067 [08:11:33]line Контрольно-Кассовый Чек [08:11:33]line ПРОДАЖА [08:11:33]line ТРК (МРК, ГНК) : 44 [08:11:33]line Товар: 2710194800 [08:11:33]line ДТ-К-5 [08:11:33]line 13.130 * 76.20 [08:11:33]line = 1000.51 [08:11:33]line НДС 12% НСП 1% [08:11:33]line > о реализуемом товаре [08:11:33]line ОКРУГЛЕНИЕ: -0.51 [08:11:33]line ИТОГО: 1000.00 [08:11:33]line Внесено: 1000.00 [08:11:33]line СДАЧА: 0.00 [08:11:33]line НСП 1% : 8.85 [08:11:33]line НДС 12% : 106.25 [08:11:33]line Наличными: 1000.00 [08:11:33]line Безнал.: 0.00 [08:11:33]line Место: АЗС № 134 "Партнер Нефть" [08:11:33]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:11:33]line СНО: Общий режим [08:11:33]line Чек 48 28.07.2024 08:11 [08:11:33]line Смена: 433 ФФД: 1.0 [08:11:33]line ЗНМ: 0300000044 [08:11:33]line РНМ: 0000000000092660 [08:11:33]line Версия ККМ: 001 [08:11:33]line ФМ: 0000000000874939 [08:11:33]line ФД: 118379 [08:11:33]line ФПД: 276484729333414 [08:11:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T081133&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118379&fm=276484729333414&tin=02508201610067®Number=0000000000092660&sum=100000 [08:11:34]OFD Sender: Processing packet 118379 [packets to send 86, broken 85] [08:11:34]ProducePacketName [08:11:34]name=ofd_packets/00118379 [08:11:34]OFD Sender: To server: pG, [08:11:34]CommunicateWithHost lk.salyk.kg:30040 [08:11:34]ConnectInit lk.salyk.kg [08:11:34]written 0, free lines is 4095 [08:11:34]Connected sock=10 [08: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 39 33 39 0C 01 00 00 11 E0 04 01 E4 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 35 FD A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6B CE 01 00 35 04 06 00 FB 76 1E 13 E6 A6 78 3C 83 BA D2 3C F6 38 [08:11:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 48 A2 47 00 35 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6B CE 01 00 F4 03 04 00 C6 AA A5 66 B6 04 01 00 00 8C F8 5E 36 37 09 FC 17 [08:11:34]CommunicateWithHost err = 0 [08:11:34]CheckOFDResponse [08:11:34]1017 (14) - 77093643461234 [08:11:34]1041 (16) - 0000000000874939 [08:11:34]1040 (4) - 118379 [08:11:34]1012 (4) - 28.07.2024 02:19 [08:11:34]1206 (1) - 0 [08:11:34]OFD Sender: Remove packet 118379 [08:11:34]ProducePacketName [08:11:34]name=ofd_packets/00118379 [08:11:34]NVStorageDeleteData [08:11:34]Write to MH i2c: 01 00 00 55 09 5E [08:11:34]Write i2c OK [08:11:34]MH_I2C_Read... [08:11:34]Read from MH i2c: 01 [08:11:34]MH_I2C_Read... [08:11:34]Read from MH i2c: 01 07 00 [08:11:34]MH_I2C_Read... [08:11:34]Read from MH i2c: 01 07 00 55 09 00 00 00 00 00 DC 0C 4D [08:11:34]RasterBufferAndPrint [08:11:34]line [08:11:34]line [08:11:34]line [08:11:34]line [08:11:34]line [08:11:34]written 0, free lines is 3297 [08:11:34]MH_Cut [08:11:34]Write to MH i2c: D1 01 00 5C 09 01 37 [08:11:34]Write i2c OK [08:11:34]MH_I2C_Read... [08:11:34]Read from MH i2c: D1 [08:11:34]MH_I2C_Read... [08:11:34]Read from MH i2c: D1 01 00 [08:11:34]MH_I2C_Read... [08:11:34]Read from MH i2c: D1 01 00 5C 09 00 36 [08:11:34]Write to MH i2c: 01 00 00 5D 09 66 [08:11:34]Write i2c OK [08:11:34]MH_I2C_Read... [08:11:34]OFD Sender: No OFD packet to send [08:11:35]*** Cut start [08:11:35]*** Partial cut [08:11:35]*** CUTSNS_PIN = 1 [08:11:35]*** CUTSNS_PIN = 0 [08:11:35]*** Brake cut motor [08:11:35]Read from MH i2c: 01 [08:11:35]MH_I2C_Read... [08:11:35]*** Stop cut motor [08:11:35]*** Cut end [08:11:35]Read from MH i2c: 01 07 00 [08:11:35]MH_I2C_Read... [08:11:35]Read from MH i2c: 01 07 00 5D 09 00 00 00 00 00 FF 0F 7B [08:11:35]process_action close_receipt done [08:11:35]requested_data is exist [08:11:35]produce_requested_data [08:11:35]requested_item fm.sn is exist - process it [08:11:35]wFMCommunicate request_size=4 [08:11:35]MH_SAM_APDU [08:11:35]CAPDU: 80 11 00 00 [08:11:35]Write to MH i2c: E2 08 00 5E 09 80 11 00 00 00 00 00 00 E1 [08:11:35]Write i2c OK [08:11:35]MH_I2C_Read... [08:11:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:36]Read from MH i2c: E2 [08:11:36]MH_I2C_Read... [08:11:36]Read from MH i2c: E2 17 00 [08:11:36]MH_I2C_Read... [08:11:36]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 39 33 39 90 00 3C [08:11:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:11:36]wFMCommunicate OK [08:11:36]requested_item fd.num is exist - process it [08:11:36]SAM_PROTO_GetFieldsCounters [08:11:36]wFMCommunicate request_size=4 [08:11:36]MH_SAM_APDU [08:11:36]CAPDU: 80 13 00 00 [08:11:36]Write to MH i2c: E2 08 00 5F 09 80 13 00 00 00 00 00 00 E4 [08:11:36]Write i2c OK [08:11:36]MH_I2C_Read... [08:11:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:11:36]Read from MH i2c: E2 [08:11:36]MH_I2C_Read... [08:11:36]Read from MH i2c: E2 62 00 [08:11:36]MH_I2C_Read... [08:11:36]Read from MH i2c: E2 62 00 5F 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6B CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [08: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6B CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:11:36]wFMCommunicate OK [08:11:36]SAM_PROTO_GetFieldsCounters done [08:11:36]requested_item shift.num is exist - process it [08:11:36]requested_item shift.opened is exist - process it [08:11:36]req_shift_opened [08:11:36]FM_GetShiftState [08:11:36]SAM_PROTO_GetShiftState [08:11:36]wFMCommunicate request_size=4 [08:11:36]MH_SAM_APDU [08:11:36]CAPDU: 80 13 01 00 [08:11:36]Write to MH i2c: E2 08 00 60 09 80 13 01 00 00 00 00 00 E6 [08:11:36]Write i2c OK [08:11:36]MH_I2C_Read... [08:11:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:36]Read from MH i2c: E2 [08:11:36]MH_I2C_Read... [08:11:36]Read from MH i2c: E2 0E 00 [08:11:36]MH_I2C_Read... [08:11:36]Read from MH i2c: E2 0E 00 60 09 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 BD [08:11:36]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:11:36]wFMCommunicate OK [08:11:36]SAM_PROTO_GetShiftState done [08:11:36]FM_GetShiftState done [08:11:36]req_shift_opened done [08:11:36]requested_item shift.open_date is exist - process it [08:11:36]req_shift_open_date [08:11:36]req_shift_open_date done [08:11:36]produce_requested_data done [08:11:36]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118379,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [08:11:36]process_action_free close_receipt [08:11:36]json_value_free [08:11:36]json_value_free done [08:11:36]process_json_proto returns [08:11:36]Send response to host [08:11:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118379,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [08:11:36]free response buf [08:11:36]execute_script done [08:11:36]execute_script returns [08:11:36]free content buf [08:11:36]Sock 7.Close socket [08:11:36]Sock 7.Thread stoped [08:11:39]OFD Sender: No OFD packet to send [08:11:44]OFD Sender: No OFD packet to send [08:11:49]OFD Sender: No OFD packet to send [08:11:54]OFD Sender: No OFD packet to send [08:12:00]OFD Sender: No OFD packet to send [08:12:05]OFD Sender: No OFD packet to send [08:12:10]OFD Sender: No OFD packet to send [08:12:15]OFD Sender: No OFD packet to send [08:12:20]OFD Sender: No OFD packet to send [08:12:25]OFD Sender: No OFD packet to send [08:12:30]OFD Sender: No OFD packet to send [08:12:35]OFD Sender: No OFD packet to send [08:12:40]OFD Sender: No OFD packet to send [08:12:45]OFD Sender: No OFD packet to send [08:12:50]OFD Sender: No OFD packet to send [08:12:55]OFD Sender: No OFD packet to send [08:13:00]OFD Sender: No OFD packet to send [08:13:05]OFD Sender: No OFD packet to send [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:20]OFD Sender: No OFD packet to send [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:55]OFD Sender: No OFD packet to send [08:14:00]OFD Sender: No OFD packet to send [08:14:05]OFD Sender: No OFD packet to send [08:14:10]OFD Sender: No OFD packet to send [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:25]OFD Sender: No OFD packet to send [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:40]OFD Sender: No OFD packet to send [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:05]OFD Sender: No OFD packet to send [08:15:10]OFD Sender: No OFD packet to send [08:15:15]OFD Sender: No OFD packet to send [08:15:20]OFD Sender: No OFD packet to send [08:15:25]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:35]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:45]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:15]OFD Sender: No OFD packet to send [08:16:16]accept exits with 9 [08:16:16]New connection [08:16:16]New thread 3067067748 created [08:16:16]Thread 3066924388 joined [08:16:16]Waiting for new connection... [08:16:16] Sock 9.Parse request [08:16:16]Sock 9.Check first char [08:16:16]Sock 9.First char is OK [08:16:16]request: POST /json_proto HTTP/1.0 [08:16:16]Method: POST [08:16:16]URL: /json_proto [08:16:16]Method is POST - this is cgi request [08:16:16]url: /json_proto [08:16:16]query_string will be loaded in cgi processing [08:16:16]execute_cgi json_proto POST (null) [08:16:16]execute_cgi path=json_proto method=POST [08:16:16]POST find Content-Length [08:16:16]Host: 172.17.45.7:8080 [08:16:16]Content-Length: 677 [08:16:16]Content-Type: application/json [08:16:16] [08:16:16]POST finish read [08:16:16]Found Content-Length = 677 [08:16:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.980, "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" ] } } [08:16:16]execute_script... [08:16: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)949253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.980, "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" ] } } [08:16:16]POST & json_proto [08:16:16]process_json_proto [08:16:16]json parsed OK: [08:16:16]protocol is kg_v1.0 [08:16:16]action value=close_receipt [08:16:16]process_action close_receipt [08:16:16]cmd_close_receipt [08:16:16]MH_GetDate [08:16:16]Write to MH i2c: F0 00 00 61 09 59 [08:16:16]Write i2c OK [08:16:16]MH_I2C_Read... [08:16:16]Read from MH i2c: F0 [08:16:16]MH_I2C_Read... [08:16:16]Read from MH i2c: F0 09 00 [08:16:16]MH_I2C_Read... [08:16:16]Read from MH i2c: F0 09 00 61 09 00 51 FE A5 66 90 0F 3E 66 FF [08:16:16]GetLastDocTimeStamp 1722154293 [08:16:16]current date 1722154577 [08:16:16]FM_GetShiftState [08:16:16]SAM_PROTO_GetShiftState [08:16:16]wFMCommunicate request_size=4 [08:16:16]MH_SAM_APDU [08:16:16]CAPDU: 80 13 01 00 [08:16:16]Write to MH i2c: E2 08 00 62 09 80 13 01 00 00 00 00 00 E8 [08:16:16]Write i2c OK [08:16:16]MH_I2C_Read... [08:16:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:16]Read from MH i2c: E2 [08:16:16]MH_I2C_Read... [08:16:16]Read from MH i2c: E2 0E 00 [08:16:16]MH_I2C_Read... [08:16:16]Read from MH i2c: E2 0E 00 62 09 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 BF [08:16:16]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:16:16]wFMCommunicate OK [08:16:16]SAM_PROTO_GetShiftState done [08:16:16]FM_GetShiftState done [08:16:16]opened in 1722125364 [08:16:16]opened+sec_in_day 1722211764 [08:16:16]quantity*price = 74051 [08:16:16]sum+1 = 74053 [08:16:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 740.00 Внесено: 740.00 СДАЧА: 0.00 НСП 1% : 6.55 НДС 12% : 78.64 Наличными: 740.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 49 28.07.2024 08:16 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118380 ФПД: 33532308135693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T081617&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118380&fm=33532308135693&tin=02508201610067®Number=0000000000092660&sum=74000 [08:16:17]StoreToDocumentArchive [08:16:17]shift 433 fd 118380 [08:16:17]save to /storage/0433/doc_00118380 [08:16:17]save last doc name /storage/0433/doc_00118380 to /storage/kkm_last_doc_name [08:16:17]save OK [08:16:17]Clear old archive folders... [08:16:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:16:17]tlvbuf is 00102210 [08:16:17]SAM_PROTO_ClearQueue [08:16:17]wFMCommunicate request_size=4 [08:16:17]MH_SAM_APDU [08:16:17]CAPDU: 80 09 00 00 [08:16:17]Write to MH i2c: E2 08 00 6F 09 80 09 00 00 00 00 00 00 EA [08:16:17]Write i2c OK [08:16:17]MH_I2C_Read... [08:16:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:17]Read from MH i2c: E2 [08:16:17]MH_I2C_Read... [08:16:17]Read from MH i2c: E2 03 00 [08:16:17]MH_I2C_Read... [08:16:17]Read from MH i2c: E2 03 00 6F 09 00 90 00 EC [08:16:17]RAPDU: 90 00 [08:16:17]wFMCommunicate OK [08:16:17]SAM_PROTO_ClearQueue done [08:16:17]KKMCreateOFDPacket [08:16:17]OFDProtocolAddRootSTLVToBuf [08:16:17]FM_MakeSignedData [08:16:17]FM_MakeSignedData [08:16:17]SAM_PROTO_SignData [08:16:17]wFMCommunicate request_size=4 [08:16:17]MH_SAM_APDU [08:16:17]CAPDU: 80 0D 01 02 [08:16:17]Write to MH i2c: E2 08 00 70 09 80 0D 01 02 00 00 00 00 F2 [08:16:17]Write i2c OK [08:16:17]MH_I2C_Read... [08:16:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:17]Read from MH i2c: E2 [08:16:17]MH_I2C_Read... [08:16:17]Read from MH i2c: E2 03 00 [08:16:17]MH_I2C_Read... [08:16:17]Read from MH i2c: E2 03 00 70 09 00 90 00 ED [08:16:17]RAPDU: 90 00 [08:16:17]wFMCommunicate OK [08:16:17]wFMCommunicate request_size=255 [08:16:17]MH_SAM_APDU [08:16: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 33 FF 03 08 00 03 FC 26 00 00 00 00 00 37 04 06 00 FC 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 31 00 00 00 F4 03 04 00 51 FE A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6C CE 01 00 35 04 06 00 1E [08:16:17]Write to MH i2c: E2 02 01 71 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 26 00 00 00 00 00 37 04 06 00 FC 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 31 00 00 00 F4 03 04 00 51 FE A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6C CE 01 00 35 04 06 00 1E 00 00 05 [08:16:17]Write i2c OK [08:16:17]MH_I2C_Read... [08:16:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:17]Read from MH i2c: E2 [08:16:17]MH_I2C_Read... [08:16:17]Read from MH i2c: E2 03 00 [08:16:17]MH_I2C_Read... [08:16:17]Read from MH i2c: E2 03 00 71 09 00 90 00 EE [08:16:17]RAPDU: 90 00 [08:16:17]wFMCommunicate OK [08:16:17]wFMCommunicate request_size=10 [08:16:17]MH_SAM_APDU [08:16:17]CAPDU: 80 0D 02 02 05 7F 59 50 9F 0D [08:16:17]Write to MH i2c: E2 0D 00 72 09 80 0D 02 02 05 00 7F 59 50 9F 0D 00 00 D3 [08:16:17]Write i2c OK [08:16:17]MH_I2C_Read... [08:16:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:17]Read from MH i2c: E2 [08:16:17]MH_I2C_Read... [08:16:17]Read from MH i2c: E2 03 00 [08:16:17]MH_I2C_Read... [08:16:17]Read from MH i2c: E2 03 00 72 09 00 90 00 EF [08:16:17]RAPDU: 90 00 [08:16:17]wFMCommunicate OK [08:16:17]wFMCommunicate request_size=4 [08:16:17]MH_SAM_APDU [08:16:17]CAPDU: 80 0D 03 02 [08:16:17]Write to MH i2c: E2 08 00 73 09 80 0D 03 02 00 00 00 00 F7 [08:16:17]Write i2c OK [08:16:17]MH_I2C_Read... [08:16:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:17]Read from MH i2c: E2 [08:16:17]MH_I2C_Read... [08:16:17]Read from MH i2c: E2 0B 00 [08:16:17]MH_I2C_Read... [08:16:17]Read from MH i2c: E2 0B 00 73 09 00 8E BE 2F 9C 38 40 38 AB 90 00 6A [08:16:17]RAPDU: 8E BE 2F 9C 38 40 38 AB 90 00 [08:16:17]wFMCommunicate OK [08:16:17]SAM_PROTO_SignData done [08:16:17]FM_MakeSignedData done [08:16:17]CreateOFDProtocolMessage [08:16:17]wFMCommunicate request_size=4 [08:16:17]MH_SAM_APDU [08:16:17]CAPDU: 80 11 00 00 [08:16:17]Write to MH i2c: E2 08 00 74 09 80 11 00 00 00 00 00 00 F7 [08:16:17]Write i2c OK [08:16:17]MH_I2C_Read... [08:16:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:17]Read from MH i2c: E2 [08:16:17]MH_I2C_Read... [08:16:17]Read from MH i2c: E2 17 00 [08:16:17]MH_I2C_Read... [08:16:17]Read from MH i2c: E2 17 00 74 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 52 [08:16:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:16:17]wFMCommunicate OK [08:16:17]CreateOFDProtocolMessage done [08:16:17]OFDSenderStorePacket 118380 [08:16:17]StoreOFDPacket docnum=118380 [08:16:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F6 D5 07 01 16 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 26 00 00 00 00 00 37 04 06 00 FC 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 31 00 00 00 F4 03 04 00 51 FE A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6C CE 01 00 35 04 06 00 1E 7F 59 50 9F 0D 8E BE 2F 9C 38 40 38 AB [08:16:17]CheckFolder [08:16:17]dirname=/storage/ofd_packets [08:16:17]CheckFolder done [08:16:17]ProducePacketName [08:16:17]name=ofd_packets/00118380 [08:16:17]NVStorageSaveData ofd_packets/00118380 [08:16:17]File name is /storage/ofd_packets/00118380 [08:16:17]Write 301 bytes [08:16:17]NVStorageSaveData done [08:16:17]OFDSenderStorePacket done [08:16:17]KKMCreateOFDPacket done [08:16:17]NVStorageSaveData kkm_last_timestamp [08:16:17]File name is /storage/kkm_last_timestamp [08:16:17]Write 4 bytes [08:16:17]NVStorageSaveData done [08:16:17]ExternCall_PrintAddStr [08:16:17]wPrintStart [08:16:17]Write to MH i2c: 01 00 00 75 09 7E [08:16:17]Write i2c OK [08:16:17]MH_I2C_Read... [08:16:17]Read from MH i2c: 01 [08:16:17]MH_I2C_Read... [08:16:17]Read from MH i2c: 01 07 00 [08:16:17]MH_I2C_Read... [08:16:17]Read from MH i2c: 01 07 00 75 09 00 00 00 00 00 FF 0F 93 [08:16:17]RasterBufferAndPrint [08:16:17]line Счет N : (1)949253 [08:16:17]line ИНН: 02508201610067 [08:16:17]line Контрольно-Кассовый Чек [08:16:17]line ПРОДАЖА [08:16:17]line ТРК (МРК, ГНК) : 43 [08:16:17]line Товар: 2710124500 [08:16:17]line Аи-95-К-3 [08:16:17]line 9.980 * 74.20 [08:16:17]line = 740.52 [08:16:17]line НДС 12% НСП 1% [08:16:17]line > о реализуемом товаре [08:16:17]line ОКРУГЛЕНИЕ: -0.52 [08:16:17]line ИТОГО: 740.00 [08:16:17]line Внесено: 740.00 [08:16:17]line СДАЧА: 0.00 [08:16:17]line НСП 1% : 6.55 [08:16:17]line НДС 12% : 78.64 [08:16:17]line Наличными: 740.00 [08:16:17]line Безнал.: 0.00 [08:16:17]line Место: АЗС № 134 "Партнер Нефть" [08:16:17]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:16:17]line СНО: Общий режим [08:16:17]line Чек 49 28.07.2024 08:16 [08:16:17]line Смена: 433 ФФД: 1.0 [08:16:17]line ЗНМ: 0300000044 [08:16:17]line РНМ: 0000000000092660 [08:16:17]line Версия ККМ: 001 [08:16:17]line ФМ: 0000000000874939 [08:16:17]line ФД: 118380 [08:16:17]line ФПД: 33532308135693 [08:16:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T081617&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118380&fm=33532308135693&tin=02508201610067®Number=0000000000092660&sum=74000 [08:16:18]OFD Sender: Processing packet 118380 [packets to send 86, broken 85] [08:16:18]ProducePacketName [08:16:18]name=ofd_packets/00118380 [08:16:18]OFD Sender: To server: pG, [08:16:18]CommunicateWithHost lk.salyk.kg:30040 [08:16:18]ConnectInit lk.salyk.kg [08:16:18]written 0, free lines is 4095 [08:16:18]Connected sock=10 [08:16:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F6 D5 07 01 16 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 26 00 00 00 00 00 37 04 06 00 FC 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 31 00 00 00 F4 03 04 00 51 FE A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6C CE 01 00 35 04 06 00 1E 7F 59 50 9F 0D 8E BE 2F 9C 38 40 38 AB [08:16:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5C 51 47 00 46 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6C CE 01 00 F4 03 04 00 E2 AB A5 66 B6 04 01 00 00 11 68 85 BF CE E2 7B F5 [08:16:18]CommunicateWithHost err = 0 [08:16:18]CheckOFDResponse [08:16:18]1017 (14) - 77093643461234 [08:16:18]1041 (16) - 0000000000874939 [08:16:18]1040 (4) - 118380 [08:16:18]1012 (4) - 28.07.2024 02:24 [08:16:18]1206 (1) - 0 [08:16:18]OFD Sender: Remove packet 118380 [08:16:18]ProducePacketName [08:16:18]name=ofd_packets/00118380 [08:16:18]NVStorageDeleteData [08:16:18]Write to MH i2c: 01 00 00 9F 09 A8 [08:16:18]Write i2c OK [08:16:18]MH_I2C_Read... [08:16:18]Read from MH i2c: 01 [08:16:18]MH_I2C_Read... [08:16:18]Read from MH i2c: 01 07 00 [08:16:18]MH_I2C_Read... [08:16:18]Read from MH i2c: 01 07 00 9F 09 00 00 00 00 00 E4 0C 9F [08:16:18]RasterBufferAndPrint [08:16:18]line [08:16:18]line [08:16:18]line [08:16:18]line [08:16:18]line [08:16:18]written 0, free lines is 3306 [08:16:18]MH_Cut [08:16:18]Write to MH i2c: D1 01 00 A6 09 01 81 [08:16:18]Write i2c OK [08:16:18]MH_I2C_Read... [08:16:18]Read from MH i2c: D1 [08:16:18]MH_I2C_Read... [08:16:18]Read from MH i2c: D1 01 00 [08:16:18]MH_I2C_Read... [08:16:18]Read from MH i2c: D1 01 00 A6 09 00 80 [08:16:18]Write to MH i2c: 01 00 00 A7 09 B0 [08:16:18]Write i2c OK [08:16:18]MH_I2C_Read... [08:16:19]OFD Sender: No OFD packet to send [08:16:19]*** Cut start [08:16:19]*** Partial cut [08:16:19]*** CUTSNS_PIN = 1 [08:16:19]*** CUTSNS_PIN = 0 [08:16:19]*** Brake cut motor [08:16:20]Read from MH i2c: 01 [08:16:20]MH_I2C_Read... [08:16:20]*** Stop cut motor [08:16:20]*** Cut end [08:16:20]Read from MH i2c: 01 07 00 [08:16:20]MH_I2C_Read... [08:16:20]Read from MH i2c: 01 07 00 A7 09 00 00 00 00 00 FF 0F C5 [08:16:20]process_action close_receipt done [08:16:20]requested_data is exist [08:16:20]produce_requested_data [08:16:20]requested_item fm.sn is exist - process it [08:16:20]wFMCommunicate request_size=4 [08:16:20]MH_SAM_APDU [08:16:20]CAPDU: 80 11 00 00 [08:16:20]Write to MH i2c: E2 08 00 A8 09 80 11 00 00 00 00 00 00 2B [08:16:20]Write i2c OK [08:16:20]MH_I2C_Read... [08:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:20]Read from MH i2c: E2 [08:16:20]MH_I2C_Read... [08:16:20]Read from MH i2c: E2 17 00 [08:16:20]MH_I2C_Read... [08:16:20]Read from MH i2c: E2 17 00 A8 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 86 [08:16:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:16:20]wFMCommunicate OK [08:16:20]requested_item fd.num is exist - process it [08:16:20]SAM_PROTO_GetFieldsCounters [08:16:20]wFMCommunicate request_size=4 [08:16:20]MH_SAM_APDU [08:16:20]CAPDU: 80 13 00 00 [08:16:20]Write to MH i2c: E2 08 00 A9 09 80 13 00 00 00 00 00 00 2E [08:16:20]Write i2c OK [08:16:20]MH_I2C_Read... [08:16:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:20]Read from MH i2c: E2 [08:16:20]MH_I2C_Read... [08:16:20]Read from MH i2c: E2 62 00 [08:16:20]MH_I2C_Read... [08:16:20]Read from MH i2c: E2 62 00 A9 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6C CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [08:16:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6C CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:16:20]wFMCommunicate OK [08:16:20]SAM_PROTO_GetFieldsCounters done [08:16:20]requested_item shift.num is exist - process it [08:16:20]requested_item shift.opened is exist - process it [08:16:20]req_shift_opened [08:16:20]FM_GetShiftState [08:16:20]SAM_PROTO_GetShiftState [08:16:20]wFMCommunicate request_size=4 [08:16:20]MH_SAM_APDU [08:16:20]CAPDU: 80 13 01 00 [08:16:20]Write to MH i2c: E2 08 00 AA 09 80 13 01 00 00 00 00 00 30 [08:16:20]Write i2c OK [08:16:20]MH_I2C_Read... [08:16:20]Read from MH i2c: E2 [08:16:20]MH_I2C_Read... [08:16:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:20]Read from MH i2c: E2 0E 00 [08:16:20]MH_I2C_Read... [08:16:20]Read from MH i2c: E2 0E 00 AA 09 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 07 [08:16:20]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:16:20]wFMCommunicate OK [08:16:20]SAM_PROTO_GetShiftState done [08:16:20]FM_GetShiftState done [08:16:20]req_shift_opened done [08:16:20]requested_item shift.open_date is exist - process it [08:16:20]req_shift_open_date [08:16:20]req_shift_open_date done [08:16:20]produce_requested_data done [08:16:20]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118380,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [08:16:20]process_action_free close_receipt [08:16:20]json_value_free [08:16:20]json_value_free done [08:16:20]process_json_proto returns [08:16:20]Send response to host [08:16:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118380,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [08:16:20]free response buf [08:16:20]execute_script done [08:16:20]execute_script returns [08:16:20]free content buf [08:16:20]Sock 9.Close socket [08:16:20]Sock 9.Thread stoped [08:16:24]OFD Sender: No OFD packet to send [08:16:29]OFD Sender: No OFD packet to send [08:16:34]OFD Sender: No OFD packet to send [08:16:39]OFD Sender: No OFD packet to send [08:16:44]OFD Sender: No OFD packet to send [08:16:49]OFD Sender: No OFD packet to send [08:16:54]OFD Sender: No OFD packet to send [08:16:59]OFD Sender: No OFD packet to send [08:17:04]OFD Sender: No OFD packet to send [08:17:09]OFD Sender: No OFD packet to send [08:17:11]accept exits with 7 [08:17:11]New connection [08:17:11]New thread 3066924388 created [08:17:11]Thread 3067067748 joined [08:17:11]Waiting for new connection... [08:17:11] Sock 7.Parse request [08:17:11]Sock 7.Check first char [08:17:11]Sock 7.First char is OK [08:17:11]request: POST /json_proto HTTP/1.0 [08:17:11]Method: POST [08:17:11]URL: /json_proto [08:17:11]Method is POST - this is cgi request [08:17:11]url: /json_proto [08:17:11]query_string will be loaded in cgi processing [08:17:11]execute_cgi json_proto POST (null) [08:17:11]execute_cgi path=json_proto method=POST [08:17:11]POST find Content-Length [08:17:11]Host: 172.17.45.7:8080 [08:17:11]Content-Length: 822 [08:17:11]Content-Type: application/json [08:17:11] [08:17:11]POST finish read [08:17:11]Found Content-Length = 822 [08:17:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:11]execute_script... [08:17: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)949252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:11]POST & json_proto [08:17:11]process_json_proto [08:17:11]json parsed OK: [08:17:11]protocol is kg_v1.0 [08:17:11]action value=close_receipt [08:17:11]process_action close_receipt [08:17:11]cmd_close_receipt [08:17:11]MH_GetDate [08:17:11]Write to MH i2c: F0 00 00 AB 09 A3 [08:17:11]Write i2c OK [08:17:11]MH_I2C_Read... [08:17:11]Read from MH i2c: F0 [08:17:11]MH_I2C_Read... [08:17:11]Read from MH i2c: F0 09 00 [08:17:11]MH_I2C_Read... [08:17:11]Read from MH i2c: F0 09 00 AB 09 00 89 FE A5 66 90 0F 3E 66 81 [08:17:11]GetLastDocTimeStamp 1722154577 [08:17:11]current date 1722154633 [08:17:11]FM_GetShiftState [08:17:11]SAM_PROTO_GetShiftState [08:17:11]wFMCommunicate request_size=4 [08:17:11]MH_SAM_APDU [08:17:11]CAPDU: 80 13 01 00 [08:17:11]Write to MH i2c: E2 08 00 AC 09 80 13 01 00 00 00 00 00 32 [08:17:11]Write i2c OK [08:17:11]MH_I2C_Read... [08:17:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:11]Read from MH i2c: E2 [08:17:11]MH_I2C_Read... [08:17:11]Read from MH i2c: E2 0E 00 [08:17:11]MH_I2C_Read... [08:17:11]Read from MH i2c: E2 0E 00 AC 09 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 09 [08:17:11]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:17:11]wFMCommunicate OK [08:17:11]SAM_PROTO_GetShiftState done [08:17:11]FM_GetShiftState done [08:17:11]opened in 1722125364 [08:17:11]opened+sec_in_day 1722211764 [08:17:11]quantity*price = 150032 [08:17:11]sum+1 = 150033 [08:17:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 50 28.07.2024 08:17 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118381 ФПД: 173760914191709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T081713&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118381&fm=173760914191709&tin=02508201610067®Number=0000000000092660&sum=150000 [08:17:12]StoreToDocumentArchive [08:17:12]shift 433 fd 118381 [08:17:12]save to /storage/0433/doc_00118381 [08:17:12]save last doc name /storage/0433/doc_00118381 to /storage/kkm_last_doc_name [08:17:12]save OK [08:17:12]Clear old archive folders... [08:17:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:17:12]tlvbuf is 00102360 [08:17:12]SAM_PROTO_ClearQueue [08:17:12]wFMCommunicate request_size=4 [08:17:12]MH_SAM_APDU [08:17:12]CAPDU: 80 09 00 00 [08:17:12]Write to MH i2c: E2 08 00 B9 09 80 09 00 00 00 00 00 00 34 [08:17:12]Write i2c OK [08:17:12]MH_I2C_Read... [08:17:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:17:12]Read from MH i2c: E2 [08:17:12]MH_I2C_Read... [08:17:12]Read from MH i2c: E2 03 00 [08:17:12]MH_I2C_Read... [08:17:12]Read from MH i2c: E2 03 00 B9 09 00 90 00 36 [08:17:12]RAPDU: 90 00 [08:17:12]wFMCommunicate OK [08:17:12]SAM_PROTO_ClearQueue done [08:17:12]KKMCreateOFDPacket [08:17:12]OFDProtocolAddRootSTLVToBuf [08:17:12]FM_MakeSignedData [08:17:12]FM_MakeSignedData [08:17:12]SAM_PROTO_SignData [08:17:12]wFMCommunicate request_size=4 [08:17:12]MH_SAM_APDU [08:17:12]CAPDU: 80 0D 01 02 [08:17:12]Write to MH i2c: E2 08 00 BA 09 80 0D 01 02 00 00 00 00 3C [08:17:12]Write i2c OK [08:17:12]MH_I2C_Read... [08:17:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:17:12]Read from MH i2c: E2 [08:17:12]MH_I2C_Read... [08:17:12]Read from MH i2c: E2 03 00 [08:17:12]MH_I2C_Read... [08:17:12]Read from MH i2c: E2 03 00 BA 09 00 90 00 37 [08:17:12]RAPDU: 90 00 [08:17:12]wFMCommunicate OK [08:17:12]wFMCommunicate request_size=255 [08:17:12]MH_SAM_APDU [08:17: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 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 89 FE A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6D CE 01 00 35 04 06 00 9E [08:17:12]Write to MH i2c: E2 02 01 BB 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 89 FE A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6D CE 01 00 35 04 06 00 9E 00 00 82 [08:17:12]Write i2c OK [08:17:12]MH_I2C_Read... [08:17:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:13]Read from MH i2c: E2 [08:17:13]MH_I2C_Read... [08:17:13]Read from MH i2c: E2 03 00 [08:17:13]MH_I2C_Read... [08:17:13]Read from MH i2c: E2 03 00 BB 09 00 90 00 38 [08:17:13]RAPDU: 90 00 [08:17:13]wFMCommunicate OK [08:17:13]wFMCommunicate request_size=10 [08:17:13]MH_SAM_APDU [08:17:13]CAPDU: 80 0D 02 02 05 08 DD 90 F5 5D [08:17:13]Write to MH i2c: E2 0D 00 BC 09 80 0D 02 02 05 00 08 DD 90 F5 5D 00 00 10 [08:17:13]Write i2c OK [08:17:13]MH_I2C_Read... [08:17:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:13]Read from MH i2c: E2 [08:17:13]MH_I2C_Read... [08:17:13]Read from MH i2c: E2 03 00 [08:17:13]MH_I2C_Read... [08:17:13]Read from MH i2c: E2 03 00 BC 09 00 90 00 39 [08:17:13]RAPDU: 90 00 [08:17:13]wFMCommunicate OK [08:17:13]wFMCommunicate request_size=4 [08:17:13]MH_SAM_APDU [08:17:13]CAPDU: 80 0D 03 02 [08:17:13]Write to MH i2c: E2 08 00 BD 09 80 0D 03 02 00 00 00 00 41 [08:17:13]Write i2c OK [08:17:13]MH_I2C_Read... [08:17:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:17:13]Read from MH i2c: E2 [08:17:13]MH_I2C_Read... [08:17:13]Read from MH i2c: E2 0B 00 [08:17:13]MH_I2C_Read... [08:17:13]Read from MH i2c: E2 0B 00 BD 09 00 98 5F D2 22 AA 07 20 A6 90 00 A4 [08:17:13]RAPDU: 98 5F D2 22 AA 07 20 A6 90 00 [08:17:13]wFMCommunicate OK [08:17:13]SAM_PROTO_SignData done [08:17:13]FM_MakeSignedData done [08:17:13]CreateOFDProtocolMessage [08:17:13]wFMCommunicate request_size=4 [08:17:13]MH_SAM_APDU [08:17:13]CAPDU: 80 11 00 00 [08:17:13]Write to MH i2c: E2 08 00 BE 09 80 11 00 00 00 00 00 00 41 [08:17:13]Write i2c OK [08:17:13]MH_I2C_Read... [08:17:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:13]Read from MH i2c: E2 [08:17:13]MH_I2C_Read... [08:17:13]Read from MH i2c: E2 17 00 [08:17:13]MH_I2C_Read... [08:17:13]Read from MH i2c: E2 17 00 BE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9C [08:17:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:17:13]wFMCommunicate OK [08:17:13]CreateOFDProtocolMessage done [08:17:13]OFDSenderStorePacket 118381 [08:17:13]StoreOFDPacket docnum=118381 [08:17:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 62 95 07 01 F6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 89 FE A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6D CE 01 00 35 04 06 00 9E 08 DD 90 F5 5D 98 5F D2 22 AA 07 20 A6 [08:17:13]CheckFolder [08:17:13]dirname=/storage/ofd_packets [08:17:13]CheckFolder done [08:17:13]ProducePacketName [08:17:13]name=ofd_packets/00118381 [08:17:13]NVStorageSaveData ofd_packets/00118381 [08:17:13]File name is /storage/ofd_packets/00118381 [08:17:13]Write 301 bytes [08:17:13]NVStorageSaveData done [08:17:13]OFDSenderStorePacket done [08:17:13]KKMCreateOFDPacket done [08:17:13]NVStorageSaveData kkm_last_timestamp [08:17:13]File name is /storage/kkm_last_timestamp [08:17:13]Write 4 bytes [08:17:13]NVStorageSaveData done [08:17:13]ExternCall_PrintAddStr [08:17:13]wPrintStart [08:17:13]Write to MH i2c: 01 00 00 BF 09 C8 [08:17:13]Write i2c OK [08:17:13]MH_I2C_Read... [08:17:13]Read from MH i2c: 01 [08:17:13]MH_I2C_Read... [08:17:13]Read from MH i2c: 01 07 00 [08:17:13]MH_I2C_Read... [08:17:13]Read from MH i2c: 01 07 00 BF 09 00 00 00 00 00 FF 0F DD [08:17:13]RasterBufferAndPrint [08:17:13]line Счет N : (1)949252 [08:17:13]line ИНН: 02508201610067 [08:17:13]line Контрольно-Кассовый Чек [08:17:13]line ПРОДАЖА [08:17:13]line ТРК (МРК, ГНК) : 63 [08:17:13]line Товар: 2710124500 [08:17:13]line Аи-95-К-3 [08:17:13]line 20.220 * 74.20 [08:17:13]line = 1500.32 [08:17:13]line НДС 12% НСП 1% [08:17:13]line > о реализуемом товаре [08:17:13]line ОКРУГЛЕНИЕ: -0.32 [08:17:13]line ИТОГО: 1500.00 [08:17:13]line НСП 1% : 13.28 [08:17:13]line НДС 12% : 159.33 [08:17:13]line Наличными: 0.00 [08:17:13]line Безнал.: 1500.00 [08:17:13]line Место: АЗС № 134 "Партнер Нефть" [08:17:13]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:17:13]line СНО: Общий режим [08:17:13]line Чек 50 28.07.2024 08:17 [08:17:13]line Смена: 433 ФФД: 1.0 [08:17:13]line ЗНМ: 0300000044 [08:17:13]line РНМ: 0000000000092660 [08:17:13]line Версия ККМ: 001 [08:17:13]line Платежная система: O! деньги [08:17:13]line ФМ: 0000000000874939 [08:17:13]line ФД: 118381 [08:17:13]line ФПД: 173760914191709 [08:17:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T081713&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118381&fm=173760914191709&tin=02508201610067®Number=0000000000092660&sum=150000 [08:17:13]written 0, free lines is 4095 [08:17:13]OFD Sender: Processing packet 118381 [packets to send 86, broken 85] [08:17:13]ProducePacketName [08:17:13]name=ofd_packets/00118381 [08:17:13]OFD Sender: To server: pG, [08:17:13]CommunicateWithHost lk.salyk.kg:30040 [08:17:13]ConnectInit lk.salyk.kg [08:17:13]Connected sock=10 [08:17:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 62 95 07 01 F6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 89 FE A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6D CE 01 00 35 04 06 00 9E 08 DD 90 F5 5D 98 5F D2 22 AA 07 20 A6 [08:17:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 54 DE 47 00 97 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 39 33 39 10 04 04 00 6D CE 01 00 F4 03 04 00 1A AC A5 66 B6 04 01 00 00 FD 75 89 7E 17 CD CD CE [08:17:14]CommunicateWithHost err = 0 [08:17:14]CheckOFDResponse [08:17:14]1017 (14) - 77093643461234 [08:17:14]1041 (16) - 0000000000874939 [08:17:14]1040 (4) - 118381 [08:17:14]1012 (4) - 28.07.2024 02:25 [08:17:14]1206 (1) - 0 [08:17:14]OFD Sender: Remove packet 118381 [08:17:14]ProducePacketName [08:17:14]name=ofd_packets/00118381 [08:17:14]NVStorageDeleteData [08:17:14]Write to MH i2c: 01 00 00 E9 09 F2 [08:17:14]Write i2c OK [08:17:14]MH_I2C_Read... [08:17:14]Read from MH i2c: 01 [08:17:14]MH_I2C_Read... [08:17:14]Read from MH i2c: 01 07 00 [08:17:14]MH_I2C_Read... [08:17:14]Read from MH i2c: 01 07 00 E9 09 00 00 00 00 00 D1 0C D6 [08:17:14]RasterBufferAndPrint [08:17:14]line [08:17:14]line [08:17:14]line [08:17:14]line [08:17:14]line [08:17:14]written 0, free lines is 3285 [08:17:14]MH_Cut [08:17:14]Write to MH i2c: D1 01 00 F0 09 01 CB [08:17:14]Write i2c OK [08:17:14]MH_I2C_Read... [08:17:14]Read from MH i2c: D1 [08:17:14]MH_I2C_Read... [08:17:14]Read from MH i2c: D1 01 00 [08:17:14]MH_I2C_Read... [08:17:14]Read from MH i2c: D1 01 00 F0 09 00 CA [08:17:14]Write to MH i2c: 01 00 00 F1 09 FA [08:17:14]Write i2c OK [08:17:14]MH_I2C_Read... [08:17:14]OFD Sender: No OFD packet to send [08:17:14]*** Cut start [08:17:14]*** Partial cut [08:17:14]*** CUTSNS_PIN = 1 [08:17:14]*** CUTSNS_PIN = 0 [08:17:15]*** Brake cut motor [08:17:15]Read from MH i2c: 01 [08:17:15]MH_I2C_Read... [08:17:15]*** Stop cut motor [08:17:15]*** Cut end [08:17:15]Read from MH i2c: 01 07 00 [08:17:15]MH_I2C_Read... [08:17:15]Read from MH i2c: 01 07 00 F1 09 00 00 00 00 00 FF 0F 0F [08:17:15]process_action close_receipt done [08:17:15]requested_data is exist [08:17:15]produce_requested_data [08:17:15]requested_item fm.sn is exist - process it [08:17:15]wFMCommunicate request_size=4 [08:17:15]MH_SAM_APDU [08:17:15]CAPDU: 80 11 00 00 [08:17:15]Write to MH i2c: E2 08 00 F2 09 80 11 00 00 00 00 00 00 75 [08:17:15]Write i2c OK [08:17:15]MH_I2C_Read... [08:17:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:15]Read from MH i2c: E2 [08:17:15]MH_I2C_Read... [08:17:15]Read from MH i2c: E2 17 00 [08:17:15]MH_I2C_Read... [08:17:15]Read from MH i2c: E2 17 00 F2 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D0 [08:17:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:17:15]wFMCommunicate OK [08:17:15]requested_item fd.num is exist - process it [08:17:15]SAM_PROTO_GetFieldsCounters [08:17:15]wFMCommunicate request_size=4 [08:17:15]MH_SAM_APDU [08:17:15]CAPDU: 80 13 00 00 [08:17:15]Write to MH i2c: E2 08 00 F3 09 80 13 00 00 00 00 00 00 78 [08:17:15]Write i2c OK [08:17:15]MH_I2C_Read... [08:17:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:17:15]Read from MH i2c: E2 [08:17:15]MH_I2C_Read... [08:17:15]Read from MH i2c: E2 62 00 [08:17:15]MH_I2C_Read... [08:17:15]Read from MH i2c: E2 62 00 F3 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6D CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [08:17: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6D CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:17:15]wFMCommunicate OK [08:17:15]SAM_PROTO_GetFieldsCounters done [08:17:15]requested_item shift.num is exist - process it [08:17:15]requested_item shift.opened is exist - process it [08:17:15]req_shift_opened [08:17:15]FM_GetShiftState [08:17:15]SAM_PROTO_GetShiftState [08:17:15]wFMCommunicate request_size=4 [08:17:15]MH_SAM_APDU [08:17:15]CAPDU: 80 13 01 00 [08:17:15]Write to MH i2c: E2 08 00 F4 09 80 13 01 00 00 00 00 00 7A [08:17:15]Write i2c OK [08:17:15]MH_I2C_Read... [08:17:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:15]Read from MH i2c: E2 [08:17:15]MH_I2C_Read... [08:17:15]Read from MH i2c: E2 0E 00 [08:17:15]MH_I2C_Read... [08:17:15]Read from MH i2c: E2 0E 00 F4 09 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 51 [08:17:15]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:17:15]wFMCommunicate OK [08:17:15]SAM_PROTO_GetShiftState done [08:17:15]FM_GetShiftState done [08:17:15]req_shift_opened done [08:17:15]requested_item shift.open_date is exist - process it [08:17:15]req_shift_open_date [08:17:15]req_shift_open_date done [08:17:15]produce_requested_data done [08:17:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118381,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [08:17:15]process_action_free close_receipt [08:17:15]json_value_free [08:17:15]json_value_free done [08:17:15]process_json_proto returns [08:17:15]Send response to host [08:17:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118381,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [08:17:15]free response buf [08:17:15]execute_script done [08:17:15]execute_script returns [08:17:15]free content buf [08:17:15]Sock 7.Close socket [08:17:15]Sock 7.Thread stoped [08:17:19]OFD Sender: No OFD packet to send [08:17:24]OFD Sender: No OFD packet to send [08:17:29]OFD Sender: No OFD packet to send [08:17:34]OFD Sender: No OFD packet to send [08:17:39]OFD Sender: No OFD packet to send [08:17:44]OFD Sender: No OFD packet to send [08:17:49]OFD Sender: No OFD packet to send [08:17:54]OFD Sender: No OFD packet to send [08:17:59]OFD Sender: No OFD packet to send [08:18:04]OFD Sender: No OFD packet to send [08:18:09]OFD Sender: No OFD packet to send [08:18:14]OFD Sender: No OFD packet to send [08:18:19]OFD Sender: No OFD packet to send [08:18:24]OFD Sender: No OFD packet to send [08:18:29]OFD Sender: No OFD packet to send [08:18:34]OFD Sender: No OFD packet to send [08:18:39]OFD Sender: No OFD packet to send [08:18:44]OFD Sender: No OFD packet to send [08:18:49]OFD Sender: No OFD packet to send [08:18:50]accept exits with 9 [08:18:50]New connection [08:18:50]New thread 3067067748 created [08:18:50]Thread 3066924388 joined [08:18:50]Waiting for new connection... [08:18:50] Sock 9.Parse request [08:18:50]Sock 9.Check first char [08:18:50]Sock 9.First char is OK [08:18:50]request: POST /json_proto HTTP/1.0 [08:18:50]Method: POST [08:18:50]URL: /json_proto [08:18:50]Method is POST - this is cgi request [08:18:50]url: /json_proto [08:18:50]query_string will be loaded in cgi processing [08:18:50]execute_cgi json_proto POST (null) [08:18:50]execute_cgi path=json_proto method=POST [08:18:50]POST find Content-Length [08:18:50]Host: 172.17.45.7:8080 [08:18:50]Content-Length: 677 [08:18:50]Content-Type: application/json [08:18:50] [08:18:50]POST finish read [08:18:50]Found Content-Length = 677 [08:18:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 7.960, "sum" : 590.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 590.00, "total" : 590.00, "payments": [ { "type": 0, "sum" : 590.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:50]execute_script... [08:18: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)949254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 7.960, "sum" : 590.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 590.00, "total" : 590.00, "payments": [ { "type": 0, "sum" : 590.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:50]POST & json_proto [08:18:50]process_json_proto [08:18:50]json parsed OK: [08:18:50]protocol is kg_v1.0 [08:18:50]action value=close_receipt [08:18:50]process_action close_receipt [08:18:50]cmd_close_receipt [08:18:50]MH_GetDate [08:18:50]Write to MH i2c: F0 00 00 F5 09 ED [08:18:50]Write i2c OK [08:18:50]MH_I2C_Read... [08:18:50]Read from MH i2c: F0 [08:18:50]MH_I2C_Read... [08:18:50]Read from MH i2c: F0 09 00 [08:18:50]MH_I2C_Read... [08:18:50]Read from MH i2c: F0 09 00 F5 09 00 EC FE A5 66 90 0F 3E 66 2E [08:18:50]GetLastDocTimeStamp 1722154633 [08:18:50]current date 1722154732 [08:18:50]FM_GetShiftState [08:18:50]SAM_PROTO_GetShiftState [08:18:50]wFMCommunicate request_size=4 [08:18:50]MH_SAM_APDU [08:18:50]CAPDU: 80 13 01 00 [08:18:50]Write to MH i2c: E2 08 00 F6 09 80 13 01 00 00 00 00 00 7C [08:18:50]Write i2c OK [08:18:50]MH_I2C_Read... [08:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:50]Read from MH i2c: E2 [08:18:50]MH_I2C_Read... [08:18:50]Read from MH i2c: E2 0E 00 [08:18:50]MH_I2C_Read... [08:18:50]Read from MH i2c: E2 0E 00 F6 09 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 53 [08:18:50]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:18:50]wFMCommunicate OK [08:18:50]SAM_PROTO_GetShiftState done [08:18:50]FM_GetShiftState done [08:18:50]opened in 1722125364 [08:18:50]opened+sec_in_day 1722211764 [08:18:50]quantity*price = 59063 [08:18:50]sum+1 = 59064 [08:18:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 590.00 Внесено: 590.00 СДАЧА: 0.00 НСП 1% : 5.23 НДС 12% : 62.72 Наличными: 590.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 51 28.07.2024 08:18 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118382 ФПД: 202713297603584 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T081852&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118382&fm=202713297603584&tin=02508201610067®Number=0000000000092660&sum=59000 [08:18:51]StoreToDocumentArchive [08:18:51]shift 433 fd 118382 [08:18:51]save to /storage/0433/doc_00118382 [08:18:51]save last doc name /storage/0433/doc_00118382 to /storage/kkm_last_doc_name [08:18:51]save OK [08:18:51]Clear old archive folders... [08:18:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:18:51]tlvbuf is 00151FA0 [08:18:51]SAM_PROTO_ClearQueue [08:18:51]wFMCommunicate request_size=4 [08:18:51]MH_SAM_APDU [08:18:51]CAPDU: 80 09 00 00 [08:18:51]Write to MH i2c: E2 08 00 03 0A 80 09 00 00 00 00 00 00 7F [08:18:51]Write i2c OK [08:18:51]MH_I2C_Read... [08:18:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:18:51]Read from MH i2c: E2 [08:18:51]MH_I2C_Read... [08:18:51]Read from MH i2c: E2 03 00 [08:18:51]MH_I2C_Read... [08:18:51]Read from MH i2c: E2 03 00 03 0A 00 90 00 81 [08:18:51]RAPDU: 90 00 [08:18:51]wFMCommunicate OK [08:18:51]SAM_PROTO_ClearQueue done [08:18:51]KKMCreateOFDPacket [08:18:51]OFDProtocolAddRootSTLVToBuf [08:18:51]FM_MakeSignedData [08:18:51]FM_MakeSignedData [08:18:51]SAM_PROTO_SignData [08:18:51]wFMCommunicate request_size=4 [08:18:51]MH_SAM_APDU [08:18:51]CAPDU: 80 0D 01 02 [08:18:51]Write to MH i2c: E2 08 00 04 0A 80 0D 01 02 00 00 00 00 87 [08:18:51]Write i2c OK [08:18:51]MH_I2C_Read... [08:18:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:18:51]Read from MH i2c: E2 [08:18:51]MH_I2C_Read... [08:18:51]Read from MH i2c: E2 03 00 [08:18:51]MH_I2C_Read... [08:18:51]Read from MH i2c: E2 03 00 04 0A 00 90 00 82 [08:18:51]RAPDU: 90 00 [08:18:51]wFMCommunicate OK [08:18:51]wFMCommunicate request_size=255 [08:18:51]MH_SAM_APDU [08:18:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B7 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 0B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 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 33 00 00 00 F4 03 04 00 EC FE A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6E CE 01 00 35 04 06 00 B8 [08:18:51]Write to MH i2c: E2 02 01 05 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 33 FF 03 08 00 03 18 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B7 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 0B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 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 33 00 00 00 F4 03 04 00 EC FE A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6E CE 01 00 35 04 06 00 B8 00 00 B5 [08:18:51]Write i2c OK [08:18:51]MH_I2C_Read... [08:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:51]Read from MH i2c: E2 [08:18:51]MH_I2C_Read... [08:18:51]Read from MH i2c: E2 03 00 [08:18:51]MH_I2C_Read... [08:18:51]Read from MH i2c: E2 03 00 05 0A 00 90 00 83 [08:18:51]RAPDU: 90 00 [08:18:51]wFMCommunicate OK [08:18:51]wFMCommunicate request_size=10 [08:18:51]MH_SAM_APDU [08:18:51]CAPDU: 80 0D 02 02 05 5D DE 18 4C 00 [08:18:51]Write to MH i2c: E2 0D 00 06 0A 80 0D 02 02 05 00 5D DE 18 4C 00 00 00 33 [08:18:51]Write i2c OK [08:18:51]MH_I2C_Read... [08:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:51]Read from MH i2c: E2 [08:18:51]MH_I2C_Read... [08:18:51]Read from MH i2c: E2 03 00 [08:18:51]MH_I2C_Read... [08:18:51]Read from MH i2c: E2 03 00 06 0A 00 90 00 84 [08:18:51]RAPDU: 90 00 [08:18:51]wFMCommunicate OK [08:18:51]wFMCommunicate request_size=4 [08:18:51]MH_SAM_APDU [08:18:51]CAPDU: 80 0D 03 02 [08:18:51]Write to MH i2c: E2 08 00 07 0A 80 0D 03 02 00 00 00 00 8C [08:18:51]Write i2c OK [08:18:51]MH_I2C_Read... [08:18:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:18:52]Read from MH i2c: E2 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: E2 0B 00 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: E2 0B 00 07 0A 00 36 27 2C 11 C1 32 D2 85 90 00 71 [08:18:52]RAPDU: 36 27 2C 11 C1 32 D2 85 90 00 [08:18:52]wFMCommunicate OK [08:18:52]SAM_PROTO_SignData done [08:18:52]FM_MakeSignedData done [08:18:52]CreateOFDProtocolMessage [08:18:52]wFMCommunicate request_size=4 [08:18:52]MH_SAM_APDU [08:18:52]CAPDU: 80 11 00 00 [08:18:52]Write to MH i2c: E2 08 00 08 0A 80 11 00 00 00 00 00 00 8C [08:18:52]Write i2c OK [08:18:52]MH_I2C_Read... [08:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:52]Read from MH i2c: E2 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: E2 17 00 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: E2 17 00 08 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E7 [08:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:18:52]wFMCommunicate OK [08:18:52]CreateOFDProtocolMessage done [08:18:52]OFDSenderStorePacket 118382 [08:18:52]StoreOFDPacket docnum=118382 [08:18:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 20 74 07 01 F3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B7 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 0B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 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 33 00 00 00 F4 03 04 00 EC FE A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6E CE 01 00 35 04 06 00 B8 5D DE 18 4C 00 36 27 2C 11 C1 32 D2 85 [08:18:52]CheckFolder [08:18:52]dirname=/storage/ofd_packets [08:18:52]CheckFolder done [08:18:52]ProducePacketName [08:18:52]name=ofd_packets/00118382 [08:18:52]NVStorageSaveData ofd_packets/00118382 [08:18:52]File name is /storage/ofd_packets/00118382 [08:18:52]Write 301 bytes [08:18:52]NVStorageSaveData done [08:18:52]OFDSenderStorePacket done [08:18:52]KKMCreateOFDPacket done [08:18:52]NVStorageSaveData kkm_last_timestamp [08:18:52]File name is /storage/kkm_last_timestamp [08:18:52]Write 4 bytes [08:18:52]NVStorageSaveData done [08:18:52]ExternCall_PrintAddStr [08:18:52]wPrintStart [08:18:52]Write to MH i2c: 01 00 00 09 0A 13 [08:18:52]Write i2c OK [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: 01 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: 01 07 00 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: 01 07 00 09 0A 00 00 00 00 00 FF 0F 28 [08:18:52]RasterBufferAndPrint [08:18:52]line Счет N : (1)949254 [08:18:52]line ИНН: 02508201610067 [08:18:52]line Контрольно-Кассовый Чек [08:18:52]line ПРОДАЖА [08:18:52]line ТРК (МРК, ГНК) : 63 [08:18:52]line Товар: 2710124500 [08:18:52]line Аи-95-К-3 [08:18:52]line 7.960 * 74.20 [08:18:52]line = 590.63 [08:18:52]line НДС 12% НСП 1% [08:18:52]line > о реализуемом товаре [08:18:52]line ОКРУГЛЕНИЕ: -0.63 [08:18:52]line ИТОГО: 590.00 [08:18:52]line Внесено: 590.00 [08:18:52]line СДАЧА: 0.00 [08:18:52]line НСП 1% : 5.23 [08:18:52]line НДС 12% : 62.72 [08:18:52]line Наличными: 590.00 [08:18:52]line Безнал.: 0.00 [08:18:52]line Место: АЗС № 134 "Партнер Нефть" [08:18:52]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:18:52]line СНО: Общий режим [08:18:52]line Чек 51 28.07.2024 08:18 [08:18:52]line Смена: 433 ФФД: 1.0 [08:18:52]line ЗНМ: 0300000044 [08:18:52]line РНМ: 0000000000092660 [08:18:52]line Версия ККМ: 001 [08:18:52]line ФМ: 0000000000874939 [08:18:52]line ФД: 118382 [08:18:52]line ФПД: 202713297603584 [08:18:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T081852&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118382&fm=202713297603584&tin=02508201610067®Number=0000000000092660&sum=59000 [08:18:52]OFD Sender: Processing packet 118382 [packets to send 86, broken 85] [08:18:52]ProducePacketName [08:18:52]name=ofd_packets/00118382 [08:18:52]OFD Sender: To server: pG, [08:18:52]CommunicateWithHost lk.salyk.kg:30040 [08:18:52]ConnectInit lk.salyk.kg [08:18:52]written 0, free lines is 4095 [08:18:52]Connected sock=10 [08:18:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 20 74 07 01 F3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B7 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 0B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 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 33 00 00 00 F4 03 04 00 EC FE A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6E CE 01 00 35 04 06 00 B8 5D DE 18 4C 00 36 27 2C 11 C1 32 D2 85 [08:18:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1D 46 47 00 E8 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 39 33 39 10 04 04 00 6E CE 01 00 F4 03 04 00 7C AC A5 66 B6 04 01 00 00 D5 8D 23 DA 3E 84 AC F5 [08:18:52]CommunicateWithHost err = 0 [08:18:52]CheckOFDResponse [08:18:52]1017 (14) - 77093643461234 [08:18:52]1041 (16) - 0000000000874939 [08:18:52]1040 (4) - 118382 [08:18:52]1012 (4) - 28.07.2024 02:27 [08:18:52]1206 (1) - 0 [08:18:52]OFD Sender: Remove packet 118382 [08:18:52]ProducePacketName [08:18:52]name=ofd_packets/00118382 [08:18:52]NVStorageDeleteData [08:18:52]Write to MH i2c: 01 00 00 33 0A 3D [08:18:52]Write i2c OK [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: 01 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: 01 07 00 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: 01 07 00 33 0A 00 00 00 00 00 E5 0C 35 [08:18:52]RasterBufferAndPrint [08:18:52]line [08:18:52]line [08:18:52]line [08:18:52]line [08:18:52]line [08:18:52]written 0, free lines is 3307 [08:18:52]MH_Cut [08:18:52]Write to MH i2c: D1 01 00 3A 0A 01 16 [08:18:52]Write i2c OK [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: D1 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: D1 01 00 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: D1 01 00 3A 0A 00 15 [08:18:52]Write to MH i2c: 01 00 00 3B 0A 45 [08:18:52]Write i2c OK [08:18:52]MH_I2C_Read... [08:18:53]OFD Sender: No OFD packet to send [08:18:53]*** Cut start [08:18:53]*** Partial cut [08:18:53]*** CUTSNS_PIN = 1 [08:18:53]*** CUTSNS_PIN = 0 [08:18:53]*** Brake cut motor [08:18:54]Read from MH i2c: 01 [08:18:54]MH_I2C_Read... [08:18:54]*** Stop cut motor [08:18:54]*** Cut end [08:18:54]Read from MH i2c: 01 07 00 [08:18:54]MH_I2C_Read... [08:18:54]Read from MH i2c: 01 07 00 3B 0A 00 00 00 00 00 FF 0F 5A [08:18:54]process_action close_receipt done [08:18:54]requested_data is exist [08:18:54]produce_requested_data [08:18:54]requested_item fm.sn is exist - process it [08:18:54]wFMCommunicate request_size=4 [08:18:54]MH_SAM_APDU [08:18:54]CAPDU: 80 11 00 00 [08:18:54]Write to MH i2c: E2 08 00 3C 0A 80 11 00 00 00 00 00 00 C0 [08:18:54]Write i2c OK [08:18:54]MH_I2C_Read... [08:18:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:54]Read from MH i2c: E2 [08:18:54]MH_I2C_Read... [08:18:54]Read from MH i2c: E2 17 00 [08:18:54]MH_I2C_Read... [08:18:54]Read from MH i2c: E2 17 00 3C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1B [08:18:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:18:54]wFMCommunicate OK [08:18:54]requested_item fd.num is exist - process it [08:18:54]SAM_PROTO_GetFieldsCounters [08:18:54]wFMCommunicate request_size=4 [08:18:54]MH_SAM_APDU [08:18:54]CAPDU: 80 13 00 00 [08:18:54]Write to MH i2c: E2 08 00 3D 0A 80 13 00 00 00 00 00 00 C3 [08:18:54]Write i2c OK [08:18:54]MH_I2C_Read... [08:18:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:54]Read from MH i2c: E2 [08:18:54]MH_I2C_Read... [08:18:54]Read from MH i2c: E2 62 00 [08:18:54]MH_I2C_Read... [08:18:54]Read from MH i2c: E2 62 00 3D 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6E CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [08:18:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6E CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:18:54]wFMCommunicate OK [08:18:54]SAM_PROTO_GetFieldsCounters done [08:18:54]requested_item shift.num is exist - process it [08:18:54]requested_item shift.opened is exist - process it [08:18:54]req_shift_opened [08:18:54]FM_GetShiftState [08:18:54]SAM_PROTO_GetShiftState [08:18:54]wFMCommunicate request_size=4 [08:18:54]MH_SAM_APDU [08:18:54]CAPDU: 80 13 01 00 [08:18:54]Write to MH i2c: E2 08 00 3E 0A 80 13 01 00 00 00 00 00 C5 [08:18:54]Write i2c OK [08:18:54]MH_I2C_Read... [08:18:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:54]Read from MH i2c: E2 [08:18:54]MH_I2C_Read... [08:18:54]Read from MH i2c: E2 0E 00 [08:18:54]MH_I2C_Read... [08:18:54]Read from MH i2c: E2 0E 00 3E 0A 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 9C [08:18:54]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:18:54]wFMCommunicate OK [08:18:54]SAM_PROTO_GetShiftState done [08:18:54]FM_GetShiftState done [08:18:54]req_shift_opened done [08:18:54]requested_item shift.open_date is exist - process it [08:18:54]req_shift_open_date [08:18:54]req_shift_open_date done [08:18:54]produce_requested_data done [08:18:54]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118382,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [08:18:54]process_action_free close_receipt [08:18:54]json_value_free [08:18:54]json_value_free done [08:18:54]process_json_proto returns [08:18:54]Send response to host [08:18:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118382,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [08:18:54]free response buf [08:18:54]execute_script done [08:18:54]execute_script returns [08:18:54]free content buf [08:18:54]Sock 9.Close socket [08:18:54]Sock 9.Thread stoped [08:18:58]OFD Sender: No OFD packet to send [08:19:03]OFD Sender: No OFD packet to send [08:19:08]OFD Sender: No OFD packet to send [08:19:13]OFD Sender: No OFD packet to send [08:19:18]OFD Sender: No OFD packet to send [08:19:23]OFD Sender: No OFD packet to send [08:19:28]OFD Sender: No OFD packet to send [08:19:33]OFD Sender: No OFD packet to send [08:19:38]OFD Sender: No OFD packet to send [08:19:43]OFD Sender: No OFD packet to send [08:19:48]OFD Sender: No OFD packet to send [08:19:53]OFD Sender: No OFD packet to send [08:19:58]OFD Sender: No OFD packet to send [08:20:03]OFD Sender: No OFD packet to send [08:20:08]OFD Sender: No OFD packet to send [08:20:13]OFD Sender: No OFD packet to send [08:20:18]OFD Sender: No OFD packet to send [08:20:23]OFD Sender: No OFD packet to send [08:20:28]OFD Sender: No OFD packet to send [08:20:33]OFD Sender: No OFD packet to send [08:20:38]OFD Sender: No OFD packet to send [08:20:39]accept exits with 7 [08:20:39]New connection [08:20:39]New thread 3066924388 created [08:20:39]Thread 3067067748 joined [08:20:39]Waiting for new connection... [08:20:39] Sock 7.Parse request [08:20:39]Sock 7.Check first char [08:20:39]Sock 7.First char is OK [08:20:39]request: POST /json_proto HTTP/1.0 [08:20:39]Method: POST [08:20:39]URL: /json_proto [08:20:39]Method is POST - this is cgi request [08:20:39]url: /json_proto [08:20:39]query_string will be loaded in cgi processing [08:20:39]execute_cgi json_proto POST (null) [08:20:39]execute_cgi path=json_proto method=POST [08:20:39]POST find Content-Length [08:20:39]Host: 172.17.45.7:8080 [08:20:39]Content-Length: 677 [08:20:39]Content-Type: application/json [08:20:39] [08:20:39]POST finish read [08:20:39]Found Content-Length = 677 [08:20:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:39]execute_script... [08:20: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)949255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:39]POST & json_proto [08:20:39]process_json_proto [08:20:39]json parsed OK: [08:20:39]protocol is kg_v1.0 [08:20:39]action value=close_receipt [08:20:39]process_action close_receipt [08:20:39]cmd_close_receipt [08:20:39]MH_GetDate [08:20:39]Write to MH i2c: F0 00 00 3F 0A 38 [08:20:39]Write i2c OK [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: F0 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: F0 09 00 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: F0 09 00 3F 0A 00 59 FF A5 66 90 0F 3E 66 E7 [08:20:39]GetLastDocTimeStamp 1722154732 [08:20:39]current date 1722154841 [08:20:39]FM_GetShiftState [08:20:39]SAM_PROTO_GetShiftState [08:20:39]wFMCommunicate request_size=4 [08:20:39]MH_SAM_APDU [08:20:39]CAPDU: 80 13 01 00 [08:20:39]Write to MH i2c: E2 08 00 40 0A 80 13 01 00 00 00 00 00 C7 [08:20:39]Write i2c OK [08:20:39]MH_I2C_Read... [08:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:39]Read from MH i2c: E2 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: E2 0E 00 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: E2 0E 00 40 0A 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 9E [08:20:39]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:20:39]wFMCommunicate OK [08:20:39]SAM_PROTO_GetShiftState done [08:20:39]FM_GetShiftState done [08:20:39]opened in 1722125364 [08:20:39]opened+sec_in_day 1722211764 [08:20:39]quantity*price = 50036 [08:20:39]sum+1 = 50037 [08:20:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 52 28.07.2024 08:20 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118383 ФПД: 233314539871673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T082041&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118383&fm=233314539871673&tin=02508201610067®Number=0000000000092660&sum=50000 [08:20:40]StoreToDocumentArchive [08:20:40]shift 433 fd 118383 [08:20:40]save to /storage/0433/doc_00118383 [08:20:40]save last doc name /storage/0433/doc_00118383 to /storage/kkm_last_doc_name [08:20:40]save OK [08:20:40]Clear old archive folders... [08:20:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:20:40]tlvbuf is 00151D90 [08:20:40]SAM_PROTO_ClearQueue [08:20:40]wFMCommunicate request_size=4 [08:20:40]MH_SAM_APDU [08:20:40]CAPDU: 80 09 00 00 [08:20:40]Write to MH i2c: E2 08 00 4D 0A 80 09 00 00 00 00 00 00 C9 [08:20:40]Write i2c OK [08:20:40]MH_I2C_Read... [08:20:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:40]Read from MH i2c: E2 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: E2 03 00 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: E2 03 00 4D 0A 00 90 00 CB [08:20:40]RAPDU: 90 00 [08:20:40]wFMCommunicate OK [08:20:40]SAM_PROTO_ClearQueue done [08:20:40]KKMCreateOFDPacket [08:20:40]OFDProtocolAddRootSTLVToBuf [08:20:40]FM_MakeSignedData [08:20:40]FM_MakeSignedData [08:20:40]SAM_PROTO_SignData [08:20:40]wFMCommunicate request_size=4 [08:20:40]MH_SAM_APDU [08:20:40]CAPDU: 80 0D 01 02 [08:20:40]Write to MH i2c: E2 08 00 4E 0A 80 0D 01 02 00 00 00 00 D1 [08:20:40]Write i2c OK [08:20:40]MH_I2C_Read... [08:20:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:40]Read from MH i2c: E2 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: E2 03 00 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: E2 03 00 4E 0A 00 90 00 CC [08:20:40]RAPDU: 90 00 [08:20:40]wFMCommunicate OK [08:20:40]wFMCommunicate request_size=255 [08:20:40]MH_SAM_APDU [08:20: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 59 FF A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6F CE 01 00 35 04 06 00 D4 [08:20:40]Write to MH i2c: E2 02 01 4F 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 59 FF A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6F CE 01 00 35 04 06 00 D4 00 00 B0 [08:20:40]Write i2c OK [08:20:40]MH_I2C_Read... [08:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:41]Read from MH i2c: E2 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 03 00 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 03 00 4F 0A 00 90 00 CD [08:20:41]RAPDU: 90 00 [08:20:41]wFMCommunicate OK [08:20:41]wFMCommunicate request_size=10 [08:20:41]MH_SAM_APDU [08:20:41]CAPDU: 80 0D 02 02 05 32 C6 45 1D B9 [08:20:41]Write to MH i2c: E2 0D 00 50 0A 80 0D 02 02 05 00 32 C6 45 1D B9 00 00 F1 [08:20:41]Write i2c OK [08:20:41]MH_I2C_Read... [08:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:41]Read from MH i2c: E2 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 03 00 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 03 00 50 0A 00 90 00 CE [08:20:41]RAPDU: 90 00 [08:20:41]wFMCommunicate OK [08:20:41]wFMCommunicate request_size=4 [08:20:41]MH_SAM_APDU [08:20:41]CAPDU: 80 0D 03 02 [08:20:41]Write to MH i2c: E2 08 00 51 0A 80 0D 03 02 00 00 00 00 D6 [08:20:41]Write i2c OK [08:20:41]MH_I2C_Read... [08:20:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:41]Read from MH i2c: E2 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 0B 00 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 0B 00 51 0A 00 82 7F 07 A6 6F F2 DD 4D 90 00 10 [08:20:41]RAPDU: 82 7F 07 A6 6F F2 DD 4D 90 00 [08:20:41]wFMCommunicate OK [08:20:41]SAM_PROTO_SignData done [08:20:41]FM_MakeSignedData done [08:20:41]CreateOFDProtocolMessage [08:20:41]wFMCommunicate request_size=4 [08:20:41]MH_SAM_APDU [08:20:41]CAPDU: 80 11 00 00 [08:20:41]Write to MH i2c: E2 08 00 52 0A 80 11 00 00 00 00 00 00 D6 [08:20:41]Write i2c OK [08:20:41]MH_I2C_Read... [08:20:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:41]Read from MH i2c: E2 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 17 00 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 17 00 52 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 31 [08:20:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:20:41]wFMCommunicate OK [08:20:41]CreateOFDProtocolMessage done [08:20:41]OFDSenderStorePacket 118383 [08:20:41]StoreOFDPacket docnum=118383 [08:20:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 48 07 07 01 15 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 59 FF A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6F CE 01 00 35 04 06 00 D4 32 C6 45 1D B9 82 7F 07 A6 6F F2 DD 4D [08:20:41]CheckFolder [08:20:41]dirname=/storage/ofd_packets [08:20:41]CheckFolder done [08:20:41]ProducePacketName [08:20:41]name=ofd_packets/00118383 [08:20:41]NVStorageSaveData ofd_packets/00118383 [08:20:41]File name is /storage/ofd_packets/00118383 [08:20:41]Write 301 bytes [08:20:41]NVStorageSaveData done [08:20:41]OFDSenderStorePacket done [08:20:41]KKMCreateOFDPacket done [08:20:41]NVStorageSaveData kkm_last_timestamp [08:20:41]File name is /storage/kkm_last_timestamp [08:20:41]Write 4 bytes [08:20:41]NVStorageSaveData done [08:20:41]ExternCall_PrintAddStr [08:20:41]wPrintStart [08:20:41]Write to MH i2c: 01 00 00 53 0A 5D [08:20:41]Write i2c OK [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: 01 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: 01 07 00 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: 01 07 00 53 0A 00 00 00 00 00 FF 0F 72 [08:20:41]RasterBufferAndPrint [08:20:41]line Счет N : (1)949255 [08:20:41]line ИНН: 02508201610067 [08:20:41]line Контрольно-Кассовый Чек [08:20:41]line ПРОДАЖА [08:20:41]line ТРК (МРК, ГНК) : 41 [08:20:41]line Товар: 2710124130 [08:20:41]line Аи-92-К-4 [08:20:41]line 7.380 * 67.80 [08:20:41]line = 500.36 [08:20:41]line НДС 12% НСП 1% [08:20:41]line > о реализуемом товаре [08:20:41]line ОКРУГЛЕНИЕ: -0.36 [08:20:41]line ИТОГО: 500.00 [08:20:41]line Внесено: 500.00 [08:20:41]line СДАЧА: 0.00 [08:20:41]line НСП 1% : 4.43 [08:20:41]line НДС 12% : 53.14 [08:20:41]line Наличными: 500.00 [08:20:41]line Безнал.: 0.00 [08:20:41]line Место: АЗС № 134 "Партнер Нефть" [08:20:41]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:20:41]line СНО: Общий режим [08:20:41]line Чек 52 28.07.2024 08:20 [08:20:41]line Смена: 433 ФФД: 1.0 [08:20:41]line ЗНМ: 0300000044 [08:20:41]line РНМ: 0000000000092660 [08:20:41]line Версия ККМ: 001 [08:20:41]line ФМ: 0000000000874939 [08:20:41]line ФД: 118383 [08:20:41]line ФПД: 233314539871673 [08:20:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T082041&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118383&fm=233314539871673&tin=02508201610067®Number=0000000000092660&sum=50000 [08:20:41]OFD Sender: Processing packet 118383 [packets to send 86, broken 85] [08:20:41]ProducePacketName [08:20:41]name=ofd_packets/00118383 [08:20:41]OFD Sender: To server: pG, [08:20:41]CommunicateWithHost lk.salyk.kg:30040 [08:20:41]ConnectInit lk.salyk.kg [08:20:41]written 0, free lines is 4095 [08:20:41]Connected sock=10 [08:20: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 39 33 39 0F 01 00 00 48 07 07 01 15 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 59 FF A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6F CE 01 00 35 04 06 00 D4 32 C6 45 1D B9 82 7F 07 A6 6F F2 DD 4D [08:20:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E7 8A 47 00 DA 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 39 33 39 10 04 04 00 6F CE 01 00 F4 03 04 00 EA AC A5 66 B6 04 01 00 00 4E 05 7F 67 71 8C 20 EC [08:20:41]CommunicateWithHost err = 0 [08:20:41]CheckOFDResponse [08:20:41]1017 (14) - 77093643461234 [08:20:41]1041 (16) - 0000000000874939 [08:20:41]1040 (4) - 118383 [08:20:41]1012 (4) - 28.07.2024 02:28 [08:20:41]1206 (1) - 0 [08:20:41]OFD Sender: Remove packet 118383 [08:20:41]ProducePacketName [08:20:41]name=ofd_packets/00118383 [08:20:41]NVStorageDeleteData [08:20:42]Write to MH i2c: 01 00 00 7D 0A 87 [08:20:42]Write i2c OK [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: 01 [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: 01 07 00 [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: 01 07 00 7D 0A 00 00 00 00 00 D9 0C 73 [08:20:42]RasterBufferAndPrint [08:20:42]line [08:20:42]line [08:20:42]line [08:20:42]line [08:20:42]line [08:20:42]written 0, free lines is 3296 [08:20:42]MH_Cut [08:20:42]Write to MH i2c: D1 01 00 84 0A 01 60 [08:20:42]Write i2c OK [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: D1 [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: D1 01 00 [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: D1 01 00 84 0A 00 5F [08:20:42]Write to MH i2c: 01 00 00 85 0A 8F [08:20:42]Write i2c OK [08:20:42]MH_I2C_Read... [08:20:42]OFD Sender: No OFD packet to send [08:20:42]*** Cut start [08:20:42]*** Partial cut [08:20:42]*** CUTSNS_PIN = 1 [08:20:42]*** CUTSNS_PIN = 0 [08:20:43]*** Brake cut motor [08:20:43]Read from MH i2c: 01 [08:20:43]MH_I2C_Read... [08:20:43]*** Stop cut motor [08:20:43]*** Cut end [08:20:43]Read from MH i2c: 01 07 00 [08:20:43]MH_I2C_Read... [08:20:43]Read from MH i2c: 01 07 00 85 0A 00 00 00 00 00 FF 0F A4 [08:20:43]process_action close_receipt done [08:20:43]requested_data is exist [08:20:43]produce_requested_data [08:20:43]requested_item fm.sn is exist - process it [08:20:43]wFMCommunicate request_size=4 [08:20:43]MH_SAM_APDU [08:20:43]CAPDU: 80 11 00 00 [08:20:43]Write to MH i2c: E2 08 00 86 0A 80 11 00 00 00 00 00 00 0A [08:20:43]Write i2c OK [08:20:43]MH_I2C_Read... [08:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:43]Read from MH i2c: E2 [08:20:43]MH_I2C_Read... [08:20:43]Read from MH i2c: E2 17 00 [08:20:43]MH_I2C_Read... [08:20:43]Read from MH i2c: E2 17 00 86 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 65 [08:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:20:43]wFMCommunicate OK [08:20:43]requested_item fd.num is exist - process it [08:20:43]SAM_PROTO_GetFieldsCounters [08:20:43]wFMCommunicate request_size=4 [08:20:43]MH_SAM_APDU [08:20:43]CAPDU: 80 13 00 00 [08:20:43]Write to MH i2c: E2 08 00 87 0A 80 13 00 00 00 00 00 00 0D [08:20:43]Write i2c OK [08:20:43]MH_I2C_Read... [08:20:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:43]Read from MH i2c: E2 [08:20:43]MH_I2C_Read... [08:20:43]Read from MH i2c: E2 62 00 [08:20:43]MH_I2C_Read... [08:20:43]Read from MH i2c: E2 62 00 87 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6F CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [08: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6F CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:20:43]wFMCommunicate OK [08:20:43]SAM_PROTO_GetFieldsCounters done [08:20:43]requested_item shift.num is exist - process it [08:20:43]requested_item shift.opened is exist - process it [08:20:43]req_shift_opened [08:20:43]FM_GetShiftState [08:20:43]SAM_PROTO_GetShiftState [08:20:43]wFMCommunicate request_size=4 [08:20:43]MH_SAM_APDU [08:20:43]CAPDU: 80 13 01 00 [08:20:43]Write to MH i2c: E2 08 00 88 0A 80 13 01 00 00 00 00 00 0F [08:20:43]Write i2c OK [08:20:43]MH_I2C_Read... [08:20:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:43]Read from MH i2c: E2 [08:20:43]MH_I2C_Read... [08:20:43]Read from MH i2c: E2 0E 00 [08:20:43]MH_I2C_Read... [08:20:43]Read from MH i2c: E2 0E 00 88 0A 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 E6 [08:20:43]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:20:43]wFMCommunicate OK [08:20:43]SAM_PROTO_GetShiftState done [08:20:43]FM_GetShiftState done [08:20:43]req_shift_opened done [08:20:43]requested_item shift.open_date is exist - process it [08:20:43]req_shift_open_date [08:20:43]req_shift_open_date done [08:20:43]produce_requested_data done [08:20:43]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118383,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [08:20:43]process_action_free close_receipt [08:20:43]json_value_free [08:20:43]json_value_free done [08:20:43]process_json_proto returns [08:20:43]Send response to host [08:20:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118383,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [08:20:43]free response buf [08:20:43]execute_script done [08:20:43]execute_script returns [08:20:43]free content buf [08:20:43]Sock 7.Close socket [08:20:43]Sock 7.Thread stoped [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:27]OFD Sender: No OFD packet to send [08:21:32]OFD Sender: No OFD packet to send [08:21:37]OFD Sender: No OFD packet to send [08:21:42]OFD Sender: No OFD packet to send [08:21:47]OFD Sender: No OFD packet to send [08:21:52]OFD Sender: No OFD packet to send [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:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:17]OFD Sender: No OFD packet to send [08:25:22]OFD Sender: No OFD packet to send [08:25:27]OFD Sender: No OFD packet to send [08:25:32]OFD Sender: No OFD packet to send [08:25:34]accept exits with 9 [08:25:34]New connection [08:25:34]New thread 3067067748 created [08:25:34]Thread 3066924388 joined [08:25:34]Waiting for new connection... [08:25:34] Sock 9.Parse request [08:25:34]Sock 9.Check first char [08:25:34]Sock 9.First char is OK [08:25:34]request: POST /json_proto HTTP/1.0 [08:25:34]Method: POST [08:25:34]URL: /json_proto [08:25:34]Method is POST - this is cgi request [08:25:34]url: /json_proto [08:25:34]query_string will be loaded in cgi processing [08:25:34]execute_cgi json_proto POST (null) [08:25:34]execute_cgi path=json_proto method=POST [08:25:34]POST find Content-Length [08:25:34]Host: 172.17.45.7:8080 [08:25:34]Content-Length: 819 [08:25:34]Content-Type: application/json [08:25:34] [08:25:34]POST finish read [08:25:34]Found Content-Length = 819 [08:25:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:34]execute_script... [08:25:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:34]POST & json_proto [08:25:34]process_json_proto [08:25:34]json parsed OK: [08:25:34]protocol is kg_v1.0 [08:25:34]action value=close_receipt [08:25:34]process_action close_receipt [08:25:34]cmd_close_receipt [08:25:34]MH_GetDate [08:25:34]Write to MH i2c: F0 00 00 89 0A 82 [08:25:34]Write i2c OK [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: F0 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: F0 09 00 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: F0 09 00 89 0A 00 7F 00 A6 66 90 0F 3E 66 59 [08:25:34]GetLastDocTimeStamp 1722154841 [08:25:34]current date 1722155135 [08:25:34]FM_GetShiftState [08:25:34]SAM_PROTO_GetShiftState [08:25:34]wFMCommunicate request_size=4 [08:25:34]MH_SAM_APDU [08:25:34]CAPDU: 80 13 01 00 [08:25:34]Write to MH i2c: E2 08 00 8A 0A 80 13 01 00 00 00 00 00 11 [08:25:34]Write i2c OK [08:25:34]MH_I2C_Read... [08:25:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:34]Read from MH i2c: E2 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: E2 0E 00 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: E2 0E 00 8A 0A 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 E8 [08:25:34]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:25:34]wFMCommunicate OK [08:25:34]SAM_PROTO_GetShiftState done [08:25:34]FM_GetShiftState done [08:25:34]opened in 1722125364 [08:25:34]opened+sec_in_day 1722211764 [08:25:34]quantity*price = 300075 [08:25:34]sum+1 = 300077 [08:25:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 53 28.07.2024 08:25 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118384 ФПД: 95101342694044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T082535&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118384&fm=95101342694044&tin=02508201610067®Number=0000000000092660&sum=300000 [08:25:35]StoreToDocumentArchive [08:25:35]shift 433 fd 118384 [08:25:35]save to /storage/0433/doc_00118384 [08:25:35]save last doc name /storage/0433/doc_00118384 to /storage/kkm_last_doc_name [08:25:35]save OK [08:25:35]Clear old archive folders... [08:25:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:25:35]tlvbuf is 00127190 [08:25:35]SAM_PROTO_ClearQueue [08:25:35]wFMCommunicate request_size=4 [08:25:35]MH_SAM_APDU [08:25:35]CAPDU: 80 09 00 00 [08:25:35]Write to MH i2c: E2 08 00 97 0A 80 09 00 00 00 00 00 00 13 [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:35]Read from MH i2c: E2 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 03 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 03 00 97 0A 00 90 00 15 [08:25:35]RAPDU: 90 00 [08:25:35]wFMCommunicate OK [08:25:35]SAM_PROTO_ClearQueue done [08:25:35]KKMCreateOFDPacket [08:25:35]OFDProtocolAddRootSTLVToBuf [08:25:35]FM_MakeSignedData [08:25:35]FM_MakeSignedData [08:25:35]SAM_PROTO_SignData [08:25:35]wFMCommunicate request_size=4 [08:25:35]MH_SAM_APDU [08:25:35]CAPDU: 80 0D 01 02 [08:25:35]Write to MH i2c: E2 08 00 98 0A 80 0D 01 02 00 00 00 00 1B [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:35]Read from MH i2c: E2 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 03 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 03 00 98 0A 00 90 00 16 [08:25:35]RAPDU: 90 00 [08:25:35]wFMCommunicate OK [08:25:35]wFMCommunicate request_size=255 [08:25:35]MH_SAM_APDU [08:25:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 7F 00 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 70 CE 01 00 35 04 06 00 56 7E 81 BF [08:25:35]Write to MH i2c: E2 02 01 99 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 7F 00 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 70 CE 01 00 35 04 06 00 56 7E 81 BF 00 00 A7 [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:35]Read from MH i2c: E2 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 03 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 03 00 99 0A 00 90 00 17 [08:25:35]RAPDU: 90 00 [08:25:35]wFMCommunicate OK [08:25:35]wFMCommunicate request_size=7 [08:25:35]MH_SAM_APDU [08:25:35]CAPDU: 80 0D 02 02 02 BA 9C [08:25:35]Write to MH i2c: E2 0A 00 9A 0A 80 0D 02 02 02 00 BA 9C 00 00 78 [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:35]Read from MH i2c: E2 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 03 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 03 00 9A 0A 00 90 00 18 [08:25:35]RAPDU: 90 00 [08:25:35]wFMCommunicate OK [08:25:35]wFMCommunicate request_size=4 [08:25:35]MH_SAM_APDU [08:25:35]CAPDU: 80 0D 03 02 [08:25:35]Write to MH i2c: E2 08 00 9B 0A 80 0D 03 02 00 00 00 00 20 [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:35]Read from MH i2c: E2 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 0B 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 0B 00 9B 0A 00 CC CF 90 39 93 FA 26 9D 90 00 D5 [08:25:35]RAPDU: CC CF 90 39 93 FA 26 9D 90 00 [08:25:35]wFMCommunicate OK [08:25:35]SAM_PROTO_SignData done [08:25:35]FM_MakeSignedData done [08:25:35]CreateOFDProtocolMessage [08:25:35]wFMCommunicate request_size=4 [08:25:35]MH_SAM_APDU [08:25:35]CAPDU: 80 11 00 00 [08:25:35]Write to MH i2c: E2 08 00 9C 0A 80 11 00 00 00 00 00 00 20 [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:35]Read from MH i2c: E2 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 17 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 17 00 9C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7B [08:25:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:25:35]wFMCommunicate OK [08:25:35]CreateOFDProtocolMessage done [08:25:35]OFDSenderStorePacket 118384 [08:25:35]StoreOFDPacket docnum=118384 [08:25:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 19 50 04 01 C6 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 7F 00 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 70 CE 01 00 35 04 06 00 56 7E 81 BF BA 9C CC CF 90 39 93 FA 26 9D [08:25:35]CheckFolder [08:25:35]dirname=/storage/ofd_packets [08:25:35]CheckFolder done [08:25:35]ProducePacketName [08:25:35]name=ofd_packets/00118384 [08:25:35]NVStorageSaveData ofd_packets/00118384 [08:25:35]File name is /storage/ofd_packets/00118384 [08:25:35]Write 298 bytes [08:25:35]NVStorageSaveData done [08:25:35]OFDSenderStorePacket done [08:25:35]KKMCreateOFDPacket done [08:25:35]NVStorageSaveData kkm_last_timestamp [08:25:35]File name is /storage/kkm_last_timestamp [08:25:35]Write 4 bytes [08:25:35]NVStorageSaveData done [08:25:35]ExternCall_PrintAddStr [08:25:35]wPrintStart [08:25:35]Write to MH i2c: 01 00 00 9D 0A A7 [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: 01 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: 01 07 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: 01 07 00 9D 0A 00 00 00 00 00 FF 0F BC [08:25:35]RasterBufferAndPrint [08:25:35]line Счет N : (1)949256 [08:25:35]line ИНН: 02508201610067 [08:25:35]line Контрольно-Кассовый Чек [08:25:35]line ПРОДАЖА [08:25:35]line ТРК (МРК, ГНК) : 11 [08:25:35]line Товар: 2710194800 [08:25:35]line ДТ-К-5 [08:25:35]line 39.380 * 76.20 [08:25:35]line = 3000.76 [08:25:35]line НДС 12% НСП 1% [08:25:35]line > о реализуемом товаре [08:25:35]line ОКРУГЛЕНИЕ: -0.76 [08:25:35]line ИТОГО: 3000.00 [08:25:35]line НСП 1% : 26.55 [08:25:35]line НДС 12% : 318.66 [08:25:35]line Наличными: 0.00 [08:25:35]line Безнал.: 3000.00 [08:25:35]line Место: АЗС № 134 "Партнер Нефть" [08:25:35]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:25:35]line СНО: Общий режим [08:25:35]line Чек 53 28.07.2024 08:25 [08:25:35]line Смена: 433 ФФД: 1.0 [08:25:35]line ЗНМ: 0300000044 [08:25:35]line РНМ: 0000000000092660 [08:25:35]line Версия ККМ: 001 [08:25:35]line Платежная система: O! деньги [08:25:35]line ФМ: 0000000000874939 [08:25:35]line ФД: 118384 [08:25:35]line ФПД: 95101342694044 [08:25:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T082535&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118384&fm=95101342694044&tin=02508201610067®Number=0000000000092660&sum=300000 [08:25:36]OFD Sender: Processing packet 118384 [packets to send 86, broken 85] [08:25:36]ProducePacketName [08:25:36]name=ofd_packets/00118384 [08:25:36]OFD Sender: To server: pG, [08:25:36]CommunicateWithHost lk.salyk.kg:30040 [08:25:36]ConnectInit lk.salyk.kg [08:25:36]written 0, free lines is 4095 [08:25:36]Connected sock=10 [08:25:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 19 50 04 01 C6 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 7F 00 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 70 CE 01 00 35 04 06 00 56 7E 81 BF BA 9C CC CF 90 39 93 FA 26 9D [08:25:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 84 15 47 00 0B 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 39 33 39 10 04 04 00 70 CE 01 00 F4 03 04 00 10 AE A5 66 B6 04 01 00 00 57 89 D7 F3 A8 B3 99 BD [08:25:36]CommunicateWithHost err = 0 [08:25:36]CheckOFDResponse [08:25:36]1017 (14) - 77093643461234 [08:25:36]1041 (16) - 0000000000874939 [08:25:36]1040 (4) - 118384 [08:25:36]1012 (4) - 28.07.2024 02:33 [08:25:36]1206 (1) - 0 [08:25:36]OFD Sender: Remove packet 118384 [08:25:36]ProducePacketName [08:25:36]name=ofd_packets/00118384 [08:25:36]NVStorageDeleteData [08:25:36]Write to MH i2c: 01 00 00 C7 0A D1 [08:25:36]Write i2c OK [08:25:36]MH_I2C_Read... [08:25:36]Read from MH i2c: 01 [08:25:36]MH_I2C_Read... [08:25:36]Read from MH i2c: 01 07 00 [08:25:36]MH_I2C_Read... [08:25:36]Read from MH i2c: 01 07 00 C7 0A 00 00 00 00 00 D1 0C B5 [08:25:36]RasterBufferAndPrint [08:25:36]line [08:25:36]line [08:25:36]line [08:25:36]line [08:25:36]line [08:25:36]written 0, free lines is 3285 [08:25:36]MH_Cut [08:25:36]Write to MH i2c: D1 01 00 CE 0A 01 AA [08:25:36]Write i2c OK [08:25:36]MH_I2C_Read... [08:25:36]Read from MH i2c: D1 [08:25:36]MH_I2C_Read... [08:25:36]Read from MH i2c: D1 01 00 [08:25:36]MH_I2C_Read... [08:25:36]Read from MH i2c: D1 01 00 CE 0A 00 A9 [08:25:36]Write to MH i2c: 01 00 00 CF 0A D9 [08:25:36]Write i2c OK [08:25:36]MH_I2C_Read... [08:25:36]OFD Sender: No OFD packet to send [08:25:37]*** Cut start [08:25:37]*** Partial cut [08:25:37]*** CUTSNS_PIN = 1 [08:25:37]*** CUTSNS_PIN = 0 [08:25:37]*** Brake cut motor [08:25:38]Read from MH i2c: 01 [08:25:38]MH_I2C_Read... [08:25:38]*** Stop cut motor [08:25:38]*** Cut end [08:25:38]Read from MH i2c: 01 07 00 [08:25:38]MH_I2C_Read... [08:25:38]Read from MH i2c: 01 07 00 CF 0A 00 00 00 00 00 FF 0F EE [08:25:38]process_action close_receipt done [08:25:38]requested_data is exist [08:25:38]produce_requested_data [08:25:38]requested_item fm.sn is exist - process it [08:25:38]wFMCommunicate request_size=4 [08:25:38]MH_SAM_APDU [08:25:38]CAPDU: 80 11 00 00 [08:25:38]Write to MH i2c: E2 08 00 D0 0A 80 11 00 00 00 00 00 00 54 [08:25:38]Write i2c OK [08:25:38]MH_I2C_Read... [08:25:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:38]Read from MH i2c: E2 [08:25:38]MH_I2C_Read... [08:25:38]Read from MH i2c: E2 17 00 [08:25:38]MH_I2C_Read... [08:25:38]Read from MH i2c: E2 17 00 D0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AF [08:25:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:25:38]wFMCommunicate OK [08:25:38]requested_item fd.num is exist - process it [08:25:38]SAM_PROTO_GetFieldsCounters [08:25:38]wFMCommunicate request_size=4 [08:25:38]MH_SAM_APDU [08:25:38]CAPDU: 80 13 00 00 [08:25:38]Write to MH i2c: E2 08 00 D1 0A 80 13 00 00 00 00 00 00 57 [08:25:38]Write i2c OK [08:25:38]MH_I2C_Read... [08:25:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:38]Read from MH i2c: E2 [08:25:38]MH_I2C_Read... [08:25:38]Read from MH i2c: E2 62 00 [08:25:38]MH_I2C_Read... [08:25:38]Read from MH i2c: E2 62 00 D1 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 70 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [08:25:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 70 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:25:38]wFMCommunicate OK [08:25:38]SAM_PROTO_GetFieldsCounters done [08:25:38]requested_item shift.num is exist - process it [08:25:38]requested_item shift.opened is exist - process it [08:25:38]req_shift_opened [08:25:38]FM_GetShiftState [08:25:38]SAM_PROTO_GetShiftState [08:25:38]wFMCommunicate request_size=4 [08:25:38]MH_SAM_APDU [08:25:38]CAPDU: 80 13 01 00 [08:25:38]Write to MH i2c: E2 08 00 D2 0A 80 13 01 00 00 00 00 00 59 [08:25:38]Write i2c OK [08:25:38]MH_I2C_Read... [08:25:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:38]Read from MH i2c: E2 [08:25:38]MH_I2C_Read... [08:25:38]Read from MH i2c: E2 0E 00 [08:25:38]MH_I2C_Read... [08:25:38]Read from MH i2c: E2 0E 00 D2 0A 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 30 [08:25:38]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:25:38]wFMCommunicate OK [08:25:38]SAM_PROTO_GetShiftState done [08:25:38]FM_GetShiftState done [08:25:38]req_shift_opened done [08:25:38]requested_item shift.open_date is exist - process it [08:25:38]req_shift_open_date [08:25:38]req_shift_open_date done [08:25:38]produce_requested_data done [08:25:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118384,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [08:25:38]process_action_free close_receipt [08:25:38]json_value_free [08:25:38]json_value_free done [08:25:38]process_json_proto returns [08:25:38]Send response to host [08:25:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118384,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [08:25:38]free response buf [08:25:38]execute_script done [08:25:38]execute_script returns [08:25:38]free content buf [08:25:38]Sock 9.Close socket [08:25:38]Sock 9.Thread stoped [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:52]OFD Sender: No OFD packet to send [08:25:57]OFD Sender: No OFD packet to send [08:26:02]OFD Sender: No OFD packet to send [08:26:07]OFD Sender: No OFD packet to send [08:26:12]OFD Sender: No OFD packet to send [08:26:17]OFD Sender: No OFD packet to send [08:26:22]OFD Sender: No OFD packet to send [08:26:27]OFD Sender: No OFD packet to send [08:26:32]OFD Sender: No OFD packet to send [08:26:37]OFD Sender: No OFD packet to send [08:26:42]OFD Sender: No OFD packet to send [08:26:47]OFD Sender: No OFD packet to send [08:26:52]OFD Sender: No OFD packet to send [08:26:57]OFD Sender: No OFD packet to send [08:27:02]OFD Sender: No OFD packet to send [08:27:07]OFD Sender: No OFD packet to send [08:27:12]OFD Sender: No OFD packet to send [08:27:17]OFD Sender: No OFD packet to send [08:27:22]OFD Sender: No OFD packet to send [08:27:27]OFD Sender: No OFD packet to send [08:27:32]OFD Sender: No OFD packet to send [08:27:37]OFD Sender: No OFD packet to send [08:27:42]OFD Sender: No OFD packet to send [08:27:47]OFD Sender: No OFD packet to send [08:27:52]OFD Sender: No OFD packet to send [08:27:57]OFD Sender: No OFD packet to send [08:28:02]OFD Sender: No OFD packet to send [08:28:07]OFD Sender: No OFD packet to send [08:28:12]OFD Sender: No OFD packet to send [08:28:17]OFD Sender: No OFD packet to send [08:28:22]OFD Sender: No OFD packet to send [08:28:27]OFD Sender: No OFD packet to send [08:28:32]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:30:02]OFD Sender: No OFD packet to send [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:19]accept exits with 7 [08:32:19]New connection [08:32:19]New thread 3066924388 created [08:32:19]Thread 3067067748 joined [08:32:19]Waiting for new connection... [08:32:19] Sock 7.Parse request [08:32:19]Sock 7.Check first char [08:32:19]Sock 7.First char is OK [08:32:19]request: POST /json_proto HTTP/1.0 [08:32:19]Method: POST [08:32:19]URL: /json_proto [08:32:19]Method is POST - this is cgi request [08:32:19]url: /json_proto [08:32:19]query_string will be loaded in cgi processing [08:32:19]execute_cgi json_proto POST (null) [08:32:19]execute_cgi path=json_proto method=POST [08:32:19]POST find Content-Length [08:32:19]Host: 172.17.45.7:8080 [08:32:19]Content-Length: 678 [08:32:19]Content-Type: application/json [08:32:19] [08:32:19]POST finish read [08:32:19]Found Content-Length = 678 [08:32:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:19]execute_script... [08:32: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)949257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:19]POST & json_proto [08:32:19]process_json_proto [08:32:19]json parsed OK: [08:32:19]protocol is kg_v1.0 [08:32:19]action value=close_receipt [08:32:19]process_action close_receipt [08:32:19]cmd_close_receipt [08:32:19]MH_GetDate [08:32:19]Write to MH i2c: F0 00 00 D3 0A CC [08:32:19]Write i2c OK [08:32:19]MH_I2C_Read... [08:32:19]Read from MH i2c: F0 [08:32:19]MH_I2C_Read... [08:32:19]Read from MH i2c: F0 09 00 [08:32:19]MH_I2C_Read... [08:32:19]Read from MH i2c: F0 09 00 D3 0A 00 15 02 A6 66 90 0F 3E 66 3B [08:32:19]GetLastDocTimeStamp 1722155135 [08:32:19]current date 1722155541 [08:32:19]FM_GetShiftState [08:32:19]SAM_PROTO_GetShiftState [08:32:19]wFMCommunicate request_size=4 [08:32:19]MH_SAM_APDU [08:32:19]CAPDU: 80 13 01 00 [08:32:19]Write to MH i2c: E2 08 00 D4 0A 80 13 01 00 00 00 00 00 5B [08:32:19]Write i2c OK [08:32:19]MH_I2C_Read... [08:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:19]Read from MH i2c: E2 [08:32:19]MH_I2C_Read... [08:32:19]Read from MH i2c: E2 0E 00 [08:32:19]MH_I2C_Read... [08:32:19]Read from MH i2c: E2 0E 00 D4 0A 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 32 [08:32:19]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:32:19]wFMCommunicate OK [08:32:19]SAM_PROTO_GetShiftState done [08:32:19]FM_GetShiftState done [08:32:19]opened in 1722125364 [08:32:19]opened+sec_in_day 1722211764 [08:32:19]quantity*price = 70037 [08:32:19]sum+1 = 70038 [08:32:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 54 28.07.2024 08:32 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118385 ФПД: 216126739794245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T083221&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118385&fm=216126739794245&tin=02508201610067®Number=0000000000092660&sum=70000 [08:32:20]StoreToDocumentArchive [08:32:20]shift 433 fd 118385 [08:32:20]save to /storage/0433/doc_00118385 [08:32:20]save last doc name /storage/0433/doc_00118385 to /storage/kkm_last_doc_name [08:32:20]save OK [08:32:20]Clear old archive folders... [08:32:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:32:20]tlvbuf is 0014DDC0 [08:32:20]SAM_PROTO_ClearQueue [08:32:20]wFMCommunicate request_size=4 [08:32:20]MH_SAM_APDU [08:32:20]CAPDU: 80 09 00 00 [08:32:20]Write to MH i2c: E2 08 00 E1 0A 80 09 00 00 00 00 00 00 5D [08:32:20]Write i2c OK [08:32:20]MH_I2C_Read... [08:32:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:20]Read from MH i2c: E2 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 03 00 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 03 00 E1 0A 00 90 00 5F [08:32:20]RAPDU: 90 00 [08:32:20]wFMCommunicate OK [08:32:20]SAM_PROTO_ClearQueue done [08:32:20]KKMCreateOFDPacket [08:32:20]OFDProtocolAddRootSTLVToBuf [08:32:20]FM_MakeSignedData [08:32:20]FM_MakeSignedData [08:32:20]SAM_PROTO_SignData [08:32:20]wFMCommunicate request_size=4 [08:32:20]MH_SAM_APDU [08:32:20]CAPDU: 80 0D 01 02 [08:32:20]Write to MH i2c: E2 08 00 E2 0A 80 0D 01 02 00 00 00 00 65 [08:32:20]Write i2c OK [08:32:20]MH_I2C_Read... [08:32:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:20]Read from MH i2c: E2 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 03 00 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 03 00 E2 0A 00 90 00 60 [08:32:20]RAPDU: 90 00 [08:32:20]wFMCommunicate OK [08:32:20]wFMCommunicate request_size=255 [08:32:20]MH_SAM_APDU [08:32: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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 15 02 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 71 CE 01 00 35 04 06 00 C4 [08:32:20]Write to MH i2c: E2 02 01 E3 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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 15 02 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 71 CE 01 00 35 04 06 00 C4 00 00 DF [08:32:20]Write i2c OK [08:32:20]MH_I2C_Read... [08:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:20]Read from MH i2c: E2 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 03 00 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 03 00 E3 0A 00 90 00 61 [08:32:20]RAPDU: 90 00 [08:32:20]wFMCommunicate OK [08:32:20]wFMCommunicate request_size=10 [08:32:20]MH_SAM_APDU [08:32:20]CAPDU: 80 0D 02 02 05 90 ED 8D 49 45 [08:32:20]Write to MH i2c: E2 0D 00 E4 0A 80 0D 02 02 05 00 90 ED 8D 49 45 00 00 0A [08:32:20]Write i2c OK [08:32:20]MH_I2C_Read... [08:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:20]Read from MH i2c: E2 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 03 00 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 03 00 E4 0A 00 90 00 62 [08:32:20]RAPDU: 90 00 [08:32:20]wFMCommunicate OK [08:32:20]wFMCommunicate request_size=4 [08:32:20]MH_SAM_APDU [08:32:20]CAPDU: 80 0D 03 02 [08:32:20]Write to MH i2c: E2 08 00 E5 0A 80 0D 03 02 00 00 00 00 6A [08:32:20]Write i2c OK [08:32:20]MH_I2C_Read... [08:32:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:20]Read from MH i2c: E2 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 0B 00 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 0B 00 E5 0A 00 9E 9A DD B0 FB 05 5B 72 90 00 FD [08:32:20]RAPDU: 9E 9A DD B0 FB 05 5B 72 90 00 [08:32:20]wFMCommunicate OK [08:32:20]SAM_PROTO_SignData done [08:32:20]FM_MakeSignedData done [08:32:20]CreateOFDProtocolMessage [08:32:20]wFMCommunicate request_size=4 [08:32:20]MH_SAM_APDU [08:32:20]CAPDU: 80 11 00 00 [08:32:20]Write to MH i2c: E2 08 00 E6 0A 80 11 00 00 00 00 00 00 6A [08:32:20]Write i2c OK [08:32:20]MH_I2C_Read... [08:32:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:20]Read from MH i2c: E2 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 17 00 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 17 00 E6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C5 [08:32:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:32:20]wFMCommunicate OK [08:32:20]CreateOFDProtocolMessage done [08:32:20]OFDSenderStorePacket 118385 [08:32:20]StoreOFDPacket docnum=118385 [08:32:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F1 3F 07 01 A2 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 15 02 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 71 CE 01 00 35 04 06 00 C4 90 ED 8D 49 45 9E 9A DD B0 FB 05 5B 72 [08:32:20]CheckFolder [08:32:20]dirname=/storage/ofd_packets [08:32:20]CheckFolder done [08:32:20]ProducePacketName [08:32:20]name=ofd_packets/00118385 [08:32:20]NVStorageSaveData ofd_packets/00118385 [08:32:20]File name is /storage/ofd_packets/00118385 [08:32:20]Write 301 bytes [08:32:20]NVStorageSaveData done [08:32:20]OFDSenderStorePacket done [08:32:20]KKMCreateOFDPacket done [08:32:20]NVStorageSaveData kkm_last_timestamp [08:32:20]File name is /storage/kkm_last_timestamp [08:32:20]Write 4 bytes [08:32:20]NVStorageSaveData done [08:32:20]OFD Sender: Processing packet 118385 [packets to send 86, broken 85] [08:32:20]ProducePacketName [08:32:20]name=ofd_packets/00118385 [08:32:20]OFD Sender: To server: pG, [08:32:20]CommunicateWithHost lk.salyk.kg:30040 [08:32:20]ConnectInit lk.salyk.kg [08:32:20]ExternCall_PrintAddStr [08:32:20]wPrintStart [08:32:20]Write to MH i2c: 01 00 00 E7 0A F1 [08:32:20]Write i2c OK [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: 01 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: 01 07 00 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: 01 07 00 E7 0A 00 00 00 00 00 FF 0F 06 [08:32:20]RasterBufferAndPrint [08:32:20]line Счет N : (1)949257 [08:32:20]line ИНН: 02508201610067 [08:32:20]line Контрольно-Кассовый Чек [08:32:20]line ПРОДАЖА [08:32:20]line ТРК (МРК, ГНК) : 41 [08:32:20]line Товар: 2710124130 [08:32:20]line Аи-92-К-4 [08:32:20]line 10.330 * 67.80 [08:32:20]line = 700.37 [08:32:20]line НДС 12% НСП 1% [08:32:20]line > о реализуемом товаре [08:32:20]line ОКРУГЛЕНИЕ: -0.37 [08:32:20]line ИТОГО: 700.00 [08:32:20]line Внесено: 700.00 [08:32:20]line СДАЧА: 0.00 [08:32:20]line НСП 1% : 6.20 [08:32:20]line НДС 12% : 74.38 [08:32:20]line Наличными: 700.00 [08:32:20]line Безнал.: 0.00 [08:32:20]line Место: АЗС № 134 "Партнер Нефть" [08:32:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:32:20]line СНО: Общий режим [08:32:20]line Чек 54 28.07.2024 08:32 [08:32:20]line Смена: 433 ФФД: 1.0 [08:32:20]line ЗНМ: 0300000044 [08:32:20]line РНМ: 0000000000092660 [08:32:20]line Версия ККМ: 001 [08:32:20]line ФМ: 0000000000874939 [08:32:20]line ФД: 118385 [08:32:20]line ФПД: 216126739794245 [08:32:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T083221&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118385&fm=216126739794245&tin=02508201610067®Number=0000000000092660&sum=70000 [08:32:21]Connected sock=11 [08:32: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 39 33 39 0F 01 00 00 F1 3F 07 01 A2 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 15 02 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 71 CE 01 00 35 04 06 00 C4 90 ED 8D 49 45 9E 9A DD B0 FB 05 5B 72 [08:32:21]written 0, free lines is 4095 [08:32:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1E 76 47 00 45 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 39 33 39 10 04 04 00 71 CE 01 00 F4 03 04 00 A5 AF A5 66 B6 04 01 00 00 50 06 61 E8 91 DF 01 1E [08:32:21]CommunicateWithHost err = 0 [08:32:21]CheckOFDResponse [08:32:21]1017 (14) - 77093643461234 [08:32:21]1041 (16) - 0000000000874939 [08:32:21]1040 (4) - 118385 [08:32:21]1012 (4) - 28.07.2024 02:40 [08:32:21]1206 (1) - 0 [08:32:21]OFD Sender: Remove packet 118385 [08:32:21]ProducePacketName [08:32:21]name=ofd_packets/00118385 [08:32:21]NVStorageDeleteData [08:32:21]Write to MH i2c: 01 00 00 11 0B 1C [08:32:21]Write i2c OK [08:32:21]MH_I2C_Read... [08:32:21]Read from MH i2c: 01 [08:32:21]MH_I2C_Read... [08:32:21]Read from MH i2c: 01 07 00 [08:32:21]MH_I2C_Read... [08:32:21]Read from MH i2c: 01 07 00 11 0B 00 00 00 00 00 D2 0C 01 [08:32:21]RasterBufferAndPrint [08:32:21]line [08:32:21]line [08:32:21]line [08:32:21]line [08:32:21]line [08:32:21]written 0, free lines is 3288 [08:32:21]MH_Cut [08:32:21]Write to MH i2c: D1 01 00 18 0B 01 F5 [08:32:21]Write i2c OK [08:32:21]MH_I2C_Read... [08:32:21]Read from MH i2c: D1 [08:32:21]MH_I2C_Read... [08:32:21]Read from MH i2c: D1 01 00 [08:32:21]MH_I2C_Read... [08:32:21]Read from MH i2c: D1 01 00 18 0B 00 F4 [08:32:21]Write to MH i2c: 01 00 00 19 0B 24 [08:32:21]Write i2c OK [08:32:21]MH_I2C_Read... [08:32:21]OFD Sender: No OFD packet to send [08:32:22]*** Cut start [08:32:22]*** Partial cut [08:32:22]*** CUTSNS_PIN = 1 [08:32:22]*** CUTSNS_PIN = 0 [08:32:22]*** Brake cut motor [08:32:23]Read from MH i2c: 01 [08:32:23]MH_I2C_Read... [08:32:23]*** Stop cut motor [08:32:23]*** Cut end [08:32:23]Read from MH i2c: 01 07 00 [08:32:23]MH_I2C_Read... [08:32:23]Read from MH i2c: 01 07 00 19 0B 00 00 00 00 00 FF 0F 39 [08:32:23]process_action close_receipt done [08:32:23]requested_data is exist [08:32:23]produce_requested_data [08:32:23]requested_item fm.sn is exist - process it [08:32:23]wFMCommunicate request_size=4 [08:32:23]MH_SAM_APDU [08:32:23]CAPDU: 80 11 00 00 [08:32:23]Write to MH i2c: E2 08 00 1A 0B 80 11 00 00 00 00 00 00 9F [08:32:23]Write i2c OK [08:32:23]MH_I2C_Read... [08:32:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:23]Read from MH i2c: E2 [08:32:23]MH_I2C_Read... [08:32:23]Read from MH i2c: E2 17 00 [08:32:23]MH_I2C_Read... [08:32:23]Read from MH i2c: E2 17 00 1A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FA [08:32:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:32:23]wFMCommunicate OK [08:32:23]requested_item fd.num is exist - process it [08:32:23]SAM_PROTO_GetFieldsCounters [08:32:23]wFMCommunicate request_size=4 [08:32:23]MH_SAM_APDU [08:32:23]CAPDU: 80 13 00 00 [08:32:23]Write to MH i2c: E2 08 00 1B 0B 80 13 00 00 00 00 00 00 A2 [08:32:23]Write i2c OK [08:32:23]MH_I2C_Read... [08:32:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:23]Read from MH i2c: E2 [08:32:23]MH_I2C_Read... [08:32:23]Read from MH i2c: E2 62 00 [08:32:23]MH_I2C_Read... [08:32:23]Read from MH i2c: E2 62 00 1B 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 71 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [08:32:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 71 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:32:23]wFMCommunicate OK [08:32:23]SAM_PROTO_GetFieldsCounters done [08:32:23]requested_item shift.num is exist - process it [08:32:23]requested_item shift.opened is exist - process it [08:32:23]req_shift_opened [08:32:23]FM_GetShiftState [08:32:23]SAM_PROTO_GetShiftState [08:32:23]wFMCommunicate request_size=4 [08:32:23]MH_SAM_APDU [08:32:23]CAPDU: 80 13 01 00 [08:32:23]Write to MH i2c: E2 08 00 1C 0B 80 13 01 00 00 00 00 00 A4 [08:32:23]Write i2c OK [08:32:23]MH_I2C_Read... [08:32:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:23]Read from MH i2c: E2 [08:32:23]MH_I2C_Read... [08:32:23]Read from MH i2c: E2 0E 00 [08:32:23]MH_I2C_Read... [08:32:23]Read from MH i2c: E2 0E 00 1C 0B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 7B [08:32:23]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:32:23]wFMCommunicate OK [08:32:23]SAM_PROTO_GetShiftState done [08:32:23]FM_GetShiftState done [08:32:23]req_shift_opened done [08:32:23]requested_item shift.open_date is exist - process it [08:32:23]req_shift_open_date [08:32:23]req_shift_open_date done [08:32:23]produce_requested_data done [08:32:23]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118385,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [08:32:23]process_action_free close_receipt [08:32:23]json_value_free [08:32:23]json_value_free done [08:32:23]process_json_proto returns [08:32:23]Send response to host [08:32:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118385,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [08:32:23]free response buf [08:32:23]execute_script done [08:32:23]execute_script returns [08:32:23]free content buf [08:32:23]Sock 7.Close socket [08:32:23]Sock 7.Thread stoped [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:55]accept exits with 9 [08:34:55]New connection [08:34:55]New thread 3067067748 created [08:34:55]Thread 3066924388 joined [08:34:55]Waiting for new connection... [08:34:55] Sock 9.Parse request [08:34:55]Sock 9.Check first char [08:34:55]Sock 9.First char is OK [08:34:55]request: POST /json_proto HTTP/1.0 [08:34:55]Method: POST [08:34:55]URL: /json_proto [08:34:55]Method is POST - this is cgi request [08:34:55]url: /json_proto [08:34:55]query_string will be loaded in cgi processing [08:34:55]execute_cgi json_proto POST (null) [08:34:55]execute_cgi path=json_proto method=POST [08:34:55]POST find Content-Length [08:34:55]Host: 172.17.45.7:8080 [08:34:55]Content-Length: 677 [08:34:55]Content-Type: application/json [08:34:55] [08:34:55]POST finish read [08:34:55]Found Content-Length = 677 [08:34:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:55]execute_script... [08:34:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:55]POST & json_proto [08:34:55]process_json_proto [08:34:55]json parsed OK: [08:34:55]protocol is kg_v1.0 [08:34:55]action value=close_receipt [08:34:55]process_action close_receipt [08:34:55]cmd_close_receipt [08:34:55]MH_GetDate [08:34:55]Write to MH i2c: F0 00 00 1D 0B 17 [08:34:55]Write i2c OK [08:34:55]MH_I2C_Read... [08:34:55]Read from MH i2c: F0 [08:34:55]MH_I2C_Read... [08:34:55]Read from MH i2c: F0 09 00 [08:34:55]MH_I2C_Read... [08:34:55]Read from MH i2c: F0 09 00 1D 0B 00 B0 02 A6 66 90 0F 3E 66 21 [08:34:55]GetLastDocTimeStamp 1722155541 [08:34:55]current date 1722155696 [08:34:55]FM_GetShiftState [08:34:55]SAM_PROTO_GetShiftState [08:34:55]wFMCommunicate request_size=4 [08:34:55]MH_SAM_APDU [08:34:55]CAPDU: 80 13 01 00 [08:34:55]Write to MH i2c: E2 08 00 1E 0B 80 13 01 00 00 00 00 00 A6 [08:34:55]Write i2c OK [08:34:55]MH_I2C_Read... [08:34:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:55]Read from MH i2c: E2 [08:34:55]MH_I2C_Read... [08:34:55]Read from MH i2c: E2 0E 00 [08:34:55]MH_I2C_Read... [08:34:55]Read from MH i2c: E2 0E 00 1E 0B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 7D [08:34:55]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:34:55]wFMCommunicate OK [08:34:55]SAM_PROTO_GetShiftState done [08:34:55]FM_GetShiftState done [08:34:55]opened in 1722125364 [08:34:55]opened+sec_in_day 1722211764 [08:34:55]quantity*price = 50036 [08:34:55]sum+1 = 50037 [08:34:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 55 28.07.2024 08:34 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118386 ФПД: 40464141432250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T083456&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118386&fm=40464141432250&tin=02508201610067®Number=0000000000092660&sum=50000 [08:34:56]StoreToDocumentArchive [08:34:56]shift 433 fd 118386 [08:34:56]save to /storage/0433/doc_00118386 [08:34:56]save last doc name /storage/0433/doc_00118386 to /storage/kkm_last_doc_name [08:34:56]save OK [08:34:56]Clear old archive folders... [08:34:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:34:56]tlvbuf is 001023B0 [08:34:56]SAM_PROTO_ClearQueue [08:34:56]wFMCommunicate request_size=4 [08:34:56]MH_SAM_APDU [08:34:56]CAPDU: 80 09 00 00 [08:34:56]Write to MH i2c: E2 08 00 2B 0B 80 09 00 00 00 00 00 00 A8 [08:34:56]Write i2c OK [08:34:56]MH_I2C_Read... [08:34:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:56]Read from MH i2c: E2 [08:34:56]MH_I2C_Read... [08:34:56]Read from MH i2c: E2 03 00 [08:34:56]MH_I2C_Read... [08:34:56]Read from MH i2c: E2 03 00 2B 0B 00 90 00 AA [08:34:56]RAPDU: 90 00 [08:34:56]wFMCommunicate OK [08:34:56]SAM_PROTO_ClearQueue done [08:34:56]KKMCreateOFDPacket [08:34:56]OFDProtocolAddRootSTLVToBuf [08:34:56]FM_MakeSignedData [08:34:56]FM_MakeSignedData [08:34:56]SAM_PROTO_SignData [08:34:56]wFMCommunicate request_size=4 [08:34:56]MH_SAM_APDU [08:34:56]CAPDU: 80 0D 01 02 [08:34:56]Write to MH i2c: E2 08 00 2C 0B 80 0D 01 02 00 00 00 00 B0 [08:34:56]Write i2c OK [08:34:56]MH_I2C_Read... [08:34:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:56]Read from MH i2c: E2 [08:34:56]MH_I2C_Read... [08:34:56]Read from MH i2c: E2 03 00 [08:34:56]MH_I2C_Read... [08:34:56]Read from MH i2c: E2 03 00 2C 0B 00 90 00 AB [08:34:56]RAPDU: 90 00 [08:34:56]wFMCommunicate OK [08:34:56]wFMCommunicate request_size=255 [08:34:56]MH_SAM_APDU [08:34:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 B0 02 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 72 CE 01 00 35 04 06 00 24 [08:34:56]Write to MH i2c: E2 02 01 2D 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 B0 02 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 72 CE 01 00 35 04 06 00 24 00 00 40 [08:34:56]Write i2c OK [08:34:56]MH_I2C_Read... [08:34:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:56]Read from MH i2c: E2 [08:34:56]MH_I2C_Read... [08:34:56]Read from MH i2c: E2 03 00 [08:34:56]MH_I2C_Read... [08:34:56]Read from MH i2c: E2 03 00 2D 0B 00 90 00 AC [08:34:56]RAPDU: 90 00 [08:34:56]wFMCommunicate OK [08:34:56]wFMCommunicate request_size=10 [08:34:56]MH_SAM_APDU [08:34:56]CAPDU: 80 0D 02 02 05 CD 4A C6 B5 BA [08:34:56]Write to MH i2c: E2 0D 00 2E 0B 80 0D 02 02 05 00 CD 4A C6 B5 BA 00 00 09 [08:34:56]Write i2c OK [08:34:56]MH_I2C_Read... [08:34:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:56]Read from MH i2c: E2 [08:34:56]MH_I2C_Read... [08:34:56]Read from MH i2c: E2 03 00 [08:34:56]MH_I2C_Read... [08:34:56]Read from MH i2c: E2 03 00 2E 0B 00 90 00 AD [08:34:56]RAPDU: 90 00 [08:34:56]wFMCommunicate OK [08:34:56]wFMCommunicate request_size=4 [08:34:56]MH_SAM_APDU [08:34:56]CAPDU: 80 0D 03 02 [08:34:56]Write to MH i2c: E2 08 00 2F 0B 80 0D 03 02 00 00 00 00 B5 [08:34:56]Write i2c OK [08:34:56]MH_I2C_Read... [08:34:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:56]Read from MH i2c: E2 [08:34:56]MH_I2C_Read... [08:34:56]Read from MH i2c: E2 0B 00 [08:34:56]MH_I2C_Read... [08:34:56]Read from MH i2c: E2 0B 00 2F 0B 00 2A 29 02 5E BC 61 3E DD 90 00 A1 [08:34:56]RAPDU: 2A 29 02 5E BC 61 3E DD 90 00 [08:34:56]wFMCommunicate OK [08:34:56]SAM_PROTO_SignData done [08:34:56]FM_MakeSignedData done [08:34:56]CreateOFDProtocolMessage [08:34:56]wFMCommunicate request_size=4 [08:34:56]MH_SAM_APDU [08:34:56]CAPDU: 80 11 00 00 [08:34:56]Write to MH i2c: E2 08 00 30 0B 80 11 00 00 00 00 00 00 B5 [08:34:56]Write i2c OK [08:34:56]MH_I2C_Read... [08:34:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:56]Read from MH i2c: E2 [08:34:56]MH_I2C_Read... [08:34:56]Read from MH i2c: E2 17 00 [08:34:56]MH_I2C_Read... [08:34:56]Read from MH i2c: E2 17 00 30 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 10 [08:34:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:34:56]wFMCommunicate OK [08:34:56]CreateOFDProtocolMessage done [08:34:56]OFDSenderStorePacket 118386 [08:34:56]StoreOFDPacket docnum=118386 [08:34:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 95 01 07 01 8A 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 B0 02 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 72 CE 01 00 35 04 06 00 24 CD 4A C6 B5 BA 2A 29 02 5E BC 61 3E DD [08:34:56]CheckFolder [08:34:56]dirname=/storage/ofd_packets [08:34:56]CheckFolder done [08:34:56]ProducePacketName [08:34:56]name=ofd_packets/00118386 [08:34:56]NVStorageSaveData ofd_packets/00118386 [08:34:56]File name is /storage/ofd_packets/00118386 [08:34:56]Write 301 bytes [08:34:56]NVStorageSaveData done [08:34:56]OFDSenderStorePacket done [08:34:56]KKMCreateOFDPacket done [08:34:56]NVStorageSaveData kkm_last_timestamp [08:34:56]File name is /storage/kkm_last_timestamp [08:34:56]Write 4 bytes [08:34:56]NVStorageSaveData done [08:34:56]ExternCall_PrintAddStr [08:34:56]wPrintStart [08:34:56]Write to MH i2c: 01 00 00 31 0B 3C [08:34:56]Write i2c OK [08:34:56]MH_I2C_Read... [08:34:56]Read from MH i2c: 01 [08:34:56]MH_I2C_Read... [08:34:56]Read from MH i2c: 01 07 00 [08:34:56]MH_I2C_Read... [08:34:56]Read from MH i2c: 01 07 00 31 0B 00 00 00 00 00 FF 0F 51 [08:34:56]RasterBufferAndPrint [08:34:56]line Счет N : (1)949258 [08:34:56]line ИНН: 02508201610067 [08:34:56]line Контрольно-Кассовый Чек [08:34:56]line ПРОДАЖА [08:34:56]line ТРК (МРК, ГНК) : 41 [08:34:56]line Товар: 2710124130 [08:34:56]line Аи-92-К-4 [08:34:56]line 7.380 * 67.80 [08:34:56]line = 500.36 [08:34:56]line НДС 12% НСП 1% [08:34:56]line > о реализуемом товаре [08:34:56]line ОКРУГЛЕНИЕ: -0.36 [08:34:56]line ИТОГО: 500.00 [08:34:56]line Внесено: 500.00 [08:34:56]line СДАЧА: 0.00 [08:34:56]line НСП 1% : 4.43 [08:34:56]line НДС 12% : 53.14 [08:34:56]line Наличными: 500.00 [08:34:56]line Безнал.: 0.00 [08:34:56]line Место: АЗС № 134 "Партнер Нефть" [08:34:56]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:34:56]line СНО: Общий режим [08:34:56]line Чек 55 28.07.2024 08:34 [08:34:56]line Смена: 433 ФФД: 1.0 [08:34:56]line ЗНМ: 0300000044 [08:34:56]line РНМ: 0000000000092660 [08:34:56]line Версия ККМ: 001 [08:34:56]line ФМ: 0000000000874939 [08:34:56]line ФД: 118386 [08:34:56]line ФПД: 40464141432250 [08:34:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T083456&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118386&fm=40464141432250&tin=02508201610067®Number=0000000000092660&sum=50000 [08:34:57]OFD Sender: Processing packet 118386 [packets to send 86, broken 85] [08:34:57]ProducePacketName [08:34:57]name=ofd_packets/00118386 [08:34:57]OFD Sender: To server: pG, [08:34:57]CommunicateWithHost lk.salyk.kg:30040 [08:34:57]ConnectInit lk.salyk.kg [08:34:57]written 0, free lines is 4095 [08:34:57]Connected sock=10 [08:34:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 95 01 07 01 8A 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 B0 02 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 72 CE 01 00 35 04 06 00 24 CD 4A C6 B5 BA 2A 29 02 5E BC 61 3E DD [08:34:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3B BD 47 00 10 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 39 33 39 10 04 04 00 72 CE 01 00 F4 03 04 00 41 B0 A5 66 B6 04 01 00 00 E9 7B E7 15 49 13 7C 45 [08:34:57]CommunicateWithHost err = 0 [08:34:57]CheckOFDResponse [08:34:57]1017 (14) - 77093643461234 [08:34:57]1041 (16) - 0000000000874939 [08:34:57]1040 (4) - 118386 [08:34:57]1012 (4) - 28.07.2024 02:43 [08:34:57]1206 (1) - 0 [08:34:57]OFD Sender: Remove packet 118386 [08:34:57]ProducePacketName [08:34:57]name=ofd_packets/00118386 [08:34:57]NVStorageDeleteData [08:34:57]Write to MH i2c: 01 00 00 5B 0B 66 [08:34:57]Write i2c OK [08:34:57]MH_I2C_Read... [08:34:57]Read from MH i2c: 01 [08:34:57]MH_I2C_Read... [08:34:57]Read from MH i2c: 01 07 00 [08:34:57]MH_I2C_Read... [08:34:57]Read from MH i2c: 01 07 00 5B 0B 00 00 00 00 00 DF 0C 58 [08:34:57]RasterBufferAndPrint [08:34:57]line [08:34:57]line [08:34:57]line [08:34:57]line [08:34:57]line [08:34:57]written 0, free lines is 3301 [08:34:57]MH_Cut [08:34:57]Write to MH i2c: D1 01 00 62 0B 01 3F [08:34:57]Write i2c OK [08:34:57]MH_I2C_Read... [08:34:57]Read from MH i2c: D1 [08:34:57]MH_I2C_Read... [08:34:57]Read from MH i2c: D1 01 00 [08:34:57]MH_I2C_Read... [08:34:57]Read from MH i2c: D1 01 00 62 0B 00 3E [08:34:57]Write to MH i2c: 01 00 00 63 0B 6E [08:34:57]Write i2c OK [08:34:57]MH_I2C_Read... [08:34:57]OFD Sender: No OFD packet to send [08:34:58]*** Cut start [08:34:58]*** Partial cut [08:34:58]*** CUTSNS_PIN = 1 [08:34:58]*** CUTSNS_PIN = 0 [08:34:58]*** Brake cut motor [08:34:58]Read from MH i2c: 01 [08:34:58]MH_I2C_Read... [08:34:58]*** Stop cut motor [08:34:58]*** Cut end [08:34:58]Read from MH i2c: 01 07 00 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: 01 07 00 63 0B 00 00 00 00 00 FF 0F 83 [08:34:58]process_action close_receipt done [08:34:58]requested_data is exist [08:34:58]produce_requested_data [08:34:58]requested_item fm.sn is exist - process it [08:34:58]wFMCommunicate request_size=4 [08:34:58]MH_SAM_APDU [08:34:58]CAPDU: 80 11 00 00 [08:34:58]Write to MH i2c: E2 08 00 64 0B 80 11 00 00 00 00 00 00 E9 [08:34:58]Write i2c OK [08:34:58]MH_I2C_Read... [08:34:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:59]Read from MH i2c: E2 [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: E2 17 00 [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: E2 17 00 64 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 44 [08:34:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:34:59]wFMCommunicate OK [08:34:59]requested_item fd.num is exist - process it [08:34:59]SAM_PROTO_GetFieldsCounters [08:34:59]wFMCommunicate request_size=4 [08:34:59]MH_SAM_APDU [08:34:59]CAPDU: 80 13 00 00 [08:34:59]Write to MH i2c: E2 08 00 65 0B 80 13 00 00 00 00 00 00 EC [08:34:59]Write i2c OK [08:34:59]MH_I2C_Read... [08:34:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:59]Read from MH i2c: E2 [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: E2 62 00 [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: E2 62 00 65 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 72 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [08:34:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 72 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:34:59]wFMCommunicate OK [08:34:59]SAM_PROTO_GetFieldsCounters done [08:34:59]requested_item shift.num is exist - process it [08:34:59]requested_item shift.opened is exist - process it [08:34:59]req_shift_opened [08:34:59]FM_GetShiftState [08:34:59]SAM_PROTO_GetShiftState [08:34:59]wFMCommunicate request_size=4 [08:34:59]MH_SAM_APDU [08:34:59]CAPDU: 80 13 01 00 [08:34:59]Write to MH i2c: E2 08 00 66 0B 80 13 01 00 00 00 00 00 EE [08:34:59]Write i2c OK [08:34:59]MH_I2C_Read... [08:34:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:59]Read from MH i2c: E2 [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: E2 0E 00 [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: E2 0E 00 66 0B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 C5 [08:34:59]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:34:59]wFMCommunicate OK [08:34:59]SAM_PROTO_GetShiftState done [08:34:59]FM_GetShiftState done [08:34:59]req_shift_opened done [08:34:59]requested_item shift.open_date is exist - process it [08:34:59]req_shift_open_date [08:34:59]req_shift_open_date done [08:34:59]produce_requested_data done [08:34:59]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118386,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [08:34:59]process_action_free close_receipt [08:34:59]json_value_free [08:34:59]json_value_free done [08:34:59]process_json_proto returns [08:34:59]Send response to host [08:34:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118386,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [08:34:59]free response buf [08:34:59]execute_script done [08:34:59]execute_script returns [08:34:59]free content buf [08:34:59]Sock 9.Close socket [08:34:59]Sock 9.Thread stoped [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:13]OFD Sender: No OFD packet to send [08:35:18]OFD Sender: No OFD packet to send [08:35:23]OFD Sender: No OFD packet to send [08:35:28]OFD Sender: No OFD packet to send [08:35:33]OFD Sender: No OFD packet to send [08:35:38]OFD Sender: No OFD packet to send [08:35:43]OFD Sender: No OFD packet to send [08:35:48]OFD Sender: No OFD packet to send [08:35:53]OFD Sender: No OFD packet to send [08:35:58]OFD Sender: No OFD packet to send [08:36:03]OFD Sender: No OFD packet to send [08:36:08]OFD Sender: No OFD packet to send [08:36:13]OFD Sender: No OFD packet to send [08:36:18]OFD Sender: No OFD packet to send [08:36:23]OFD Sender: No OFD packet to send [08:36:28]OFD Sender: No OFD packet to send [08:36:33]OFD Sender: No OFD packet to send [08:36:38]OFD Sender: No OFD packet to send [08:36:43]OFD Sender: No OFD packet to send [08:36:48]OFD Sender: No OFD packet to send [08:36:53]OFD Sender: No OFD packet to send [08:36:58]OFD Sender: No OFD packet to send [08:37:03]OFD Sender: No OFD packet to send [08:37:08]OFD Sender: No OFD packet to send [08:37:13]OFD Sender: No OFD packet to send [08:37:18]OFD Sender: No OFD packet to send [08:37:23]OFD Sender: No OFD packet to send [08:37:28]OFD Sender: No OFD packet to send [08:37:33]OFD Sender: No OFD packet to send [08:37:38]OFD Sender: No OFD packet to send [08:37:43]OFD Sender: No OFD packet to send [08:37:48]OFD Sender: No OFD packet to send [08:37:53]OFD Sender: No OFD packet to send [08:37:58]OFD Sender: No OFD packet to send [08:38:03]OFD Sender: No OFD packet to send [08:38:08]OFD Sender: No OFD packet to send [08:38:13]OFD Sender: No OFD packet to send [08:38:18]OFD Sender: No OFD packet to send [08:38:23]OFD Sender: No OFD packet to send [08:38:28]OFD Sender: No OFD packet to send [08:38:33]OFD Sender: No OFD packet to send [08:38:38]OFD Sender: No OFD packet to send [08:38:43]OFD Sender: No OFD packet to send [08:38:48]OFD Sender: No OFD packet to send [08:38:53]OFD Sender: No OFD packet to send [08:38:58]OFD Sender: No OFD packet to send [08:39:03]OFD Sender: No OFD packet to send [08:39:08]OFD Sender: No OFD packet to send [08:39:13]OFD Sender: No OFD packet to send [08:39:18]OFD Sender: No OFD packet to send [08:39:23]OFD Sender: No OFD packet to send [08:39:28]OFD Sender: No OFD packet to send [08:39:33]OFD Sender: No OFD packet to send [08:39:38]OFD Sender: No OFD packet to send [08:39:43]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:58]OFD Sender: No OFD packet to send [08:40:03]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:14]accept exits with 7 [08:40:14]New connection [08:40:14]New thread 3066924388 created [08:40:14]Thread 3067067748 joined [08:40:14]Waiting for new connection... [08:40:14] Sock 7.Parse request [08:40:14]Sock 7.Check first char [08:40:14]Sock 7.First char is OK [08:40:14]request: POST /json_proto HTTP/1.0 [08:40:14]Method: POST [08:40:14]URL: /json_proto [08:40:14]Method is POST - this is cgi request [08:40:14]url: /json_proto [08:40:14]query_string will be loaded in cgi processing [08:40:14]execute_cgi json_proto POST (null) [08:40:14]execute_cgi path=json_proto method=POST [08:40:14]POST find Content-Length [08:40:14]Host: 172.17.45.7:8080 [08:40:14]Content-Length: 677 [08:40:14]Content-Type: application/json [08:40:14] [08:40:14]POST finish read [08:40:14]Found Content-Length = 677 [08:40:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:14]execute_script... [08:40: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)949259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:14]POST & json_proto [08:40:14]process_json_proto [08:40:14]json parsed OK: [08:40:14]protocol is kg_v1.0 [08:40:14]action value=close_receipt [08:40:14]process_action close_receipt [08:40:14]cmd_close_receipt [08:40:14]MH_GetDate [08:40:14]Write to MH i2c: F0 00 00 67 0B 61 [08:40:14]Write i2c OK [08:40:14]MH_I2C_Read... [08:40:14]Read from MH i2c: F0 [08:40:14]MH_I2C_Read... [08:40:14]Read from MH i2c: F0 09 00 [08:40:14]MH_I2C_Read... [08:40:14]Read from MH i2c: F0 09 00 67 0B 00 F0 03 A6 66 90 0F 3E 66 AC [08:40:14]GetLastDocTimeStamp 1722155696 [08:40:14]current date 1722156016 [08:40:14]FM_GetShiftState [08:40:14]SAM_PROTO_GetShiftState [08:40:14]wFMCommunicate request_size=4 [08:40:14]MH_SAM_APDU [08:40:14]CAPDU: 80 13 01 00 [08:40:14]Write to MH i2c: E2 08 00 68 0B 80 13 01 00 00 00 00 00 F0 [08:40:14]Write i2c OK [08:40:14]MH_I2C_Read... [08:40:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:14]Read from MH i2c: E2 [08:40:14]MH_I2C_Read... [08:40:14]Read from MH i2c: E2 0E 00 [08:40:14]MH_I2C_Read... [08:40:14]Read from MH i2c: E2 0E 00 68 0B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 C7 [08:40:14]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:40:14]wFMCommunicate OK [08:40:14]SAM_PROTO_GetShiftState done [08:40:14]FM_GetShiftState done [08:40:14]opened in 1722125364 [08:40:14]opened+sec_in_day 1722211764 [08:40:14]quantity*price = 50036 [08:40:14]sum+1 = 50037 [08:40:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 56 28.07.2024 08:40 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118387 ФПД: 31269253005508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T084016&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118387&fm=31269253005508&tin=02508201610067®Number=0000000000092660&sum=50000 [08:40:15]StoreToDocumentArchive [08:40:15]shift 433 fd 118387 [08:40:15]save to /storage/0433/doc_00118387 [08:40:15]save last doc name /storage/0433/doc_00118387 to /storage/kkm_last_doc_name [08:40:15]save OK [08:40:15]Clear old archive folders... [08:40:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:40:15]tlvbuf is 00156F90 [08:40:15]SAM_PROTO_ClearQueue [08:40:15]wFMCommunicate request_size=4 [08:40:15]MH_SAM_APDU [08:40:15]CAPDU: 80 09 00 00 [08:40:15]Write to MH i2c: E2 08 00 75 0B 80 09 00 00 00 00 00 00 F2 [08:40:15]Write i2c OK [08:40:15]MH_I2C_Read... [08:40:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:16]Read from MH i2c: E2 [08:40:16]MH_I2C_Read... [08:40:16]Read from MH i2c: E2 03 00 [08:40:16]MH_I2C_Read... [08:40:16]Read from MH i2c: E2 03 00 75 0B 00 90 00 F4 [08:40:16]RAPDU: 90 00 [08:40:16]wFMCommunicate OK [08:40:16]SAM_PROTO_ClearQueue done [08:40:16]KKMCreateOFDPacket [08:40:16]OFDProtocolAddRootSTLVToBuf [08:40:16]FM_MakeSignedData [08:40:16]FM_MakeSignedData [08:40:16]SAM_PROTO_SignData [08:40:16]wFMCommunicate request_size=4 [08:40:16]MH_SAM_APDU [08:40:16]CAPDU: 80 0D 01 02 [08:40:16]Write to MH i2c: E2 08 00 76 0B 80 0D 01 02 00 00 00 00 FA [08:40:16]Write i2c OK [08:40:16]MH_I2C_Read... [08:40:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:16]Read from MH i2c: E2 [08:40:16]MH_I2C_Read... [08:40:16]Read from MH i2c: E2 03 00 [08:40:16]MH_I2C_Read... [08:40:16]Read from MH i2c: E2 03 00 76 0B 00 90 00 F5 [08:40:16]RAPDU: 90 00 [08:40:16]wFMCommunicate OK [08:40:16]wFMCommunicate request_size=255 [08:40:16]MH_SAM_APDU [08:40: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 F0 03 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 73 CE 01 00 35 04 06 00 1C [08:40:16]Write to MH i2c: E2 02 01 77 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 F0 03 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 73 CE 01 00 35 04 06 00 1C 00 00 C5 [08:40:16]Write i2c OK [08:40:16]MH_I2C_Read... [08:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:16]Read from MH i2c: E2 [08:40:16]MH_I2C_Read... [08:40:16]Read from MH i2c: E2 03 00 [08:40:16]MH_I2C_Read... [08:40:16]Read from MH i2c: E2 03 00 77 0B 00 90 00 F6 [08:40:16]RAPDU: 90 00 [08:40:16]wFMCommunicate OK [08:40:16]wFMCommunicate request_size=10 [08:40:16]MH_SAM_APDU [08:40:16]CAPDU: 80 0D 02 02 05 70 70 B7 C0 C4 [08:40:16]Write to MH i2c: E2 0D 00 78 0B 80 0D 02 02 05 00 70 70 B7 C0 C4 00 00 22 [08:40:16]Write i2c OK [08:40:16]MH_I2C_Read... [08:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:16]Read from MH i2c: E2 [08:40:16]MH_I2C_Read... [08:40:16]Read from MH i2c: E2 03 00 [08:40:16]MH_I2C_Read... [08:40:16]Read from MH i2c: E2 03 00 78 0B 00 90 00 F7 [08:40:16]RAPDU: 90 00 [08:40:16]wFMCommunicate OK [08:40:16]wFMCommunicate request_size=4 [08:40:16]MH_SAM_APDU [08:40:16]CAPDU: 80 0D 03 02 [08:40:16]Write to MH i2c: E2 08 00 79 0B 80 0D 03 02 00 00 00 00 FF [08:40:16]Write i2c OK [08:40:16]MH_I2C_Read... [08:40:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:16]Read from MH i2c: E2 [08:40:16]MH_I2C_Read... [08:40:16]Read from MH i2c: E2 0B 00 [08:40:16]MH_I2C_Read... [08:40:16]Read from MH i2c: E2 0B 00 79 0B 00 90 51 51 70 74 EA 76 EB 90 00 61 [08:40:16]RAPDU: 90 51 51 70 74 EA 76 EB 90 00 [08:40:16]wFMCommunicate OK [08:40:16]SAM_PROTO_SignData done [08:40:16]FM_MakeSignedData done [08:40:16]CreateOFDProtocolMessage [08:40:16]wFMCommunicate request_size=4 [08:40:16]MH_SAM_APDU [08:40:16]CAPDU: 80 11 00 00 [08:40:16]Write to MH i2c: E2 08 00 7A 0B 80 11 00 00 00 00 00 00 FF [08:40:16]Write i2c OK [08:40:16]MH_I2C_Read... [08:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:16]Read from MH i2c: E2 [08:40:16]MH_I2C_Read... [08:40:16]Read from MH i2c: E2 17 00 [08:40:16]MH_I2C_Read... [08:40:16]Read from MH i2c: E2 17 00 7A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5A [08:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:40:16]wFMCommunicate OK [08:40:16]CreateOFDProtocolMessage done [08:40:16]OFDSenderStorePacket 118387 [08:40:16]StoreOFDPacket docnum=118387 [08:40:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 48 34 07 01 FE 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 F0 03 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 73 CE 01 00 35 04 06 00 1C 70 70 B7 C0 C4 90 51 51 70 74 EA 76 EB [08:40:16]CheckFolder [08:40:16]dirname=/storage/ofd_packets [08:40:16]CheckFolder done [08:40:16]ProducePacketName [08:40:16]name=ofd_packets/00118387 [08:40:16]NVStorageSaveData ofd_packets/00118387 [08:40:16]File name is /storage/ofd_packets/00118387 [08:40:16]Write 301 bytes [08:40:16]NVStorageSaveData done [08:40:16]OFDSenderStorePacket done [08:40:16]KKMCreateOFDPacket done [08:40:16]NVStorageSaveData kkm_last_timestamp [08:40:16]File name is /storage/kkm_last_timestamp [08:40:16]Write 4 bytes [08:40:16]NVStorageSaveData done [08:40:16]ExternCall_PrintAddStr [08:40:16]wPrintStart [08:40:16]Write to MH i2c: 01 00 00 7B 0B 86 [08:40:16]Write i2c OK [08:40:16]MH_I2C_Read... [08:40:16]Read from MH i2c: 01 [08:40:16]MH_I2C_Read... [08:40:16]Read from MH i2c: 01 07 00 [08:40:16]MH_I2C_Read... [08:40:16]Read from MH i2c: 01 07 00 7B 0B 00 00 00 00 00 FF 0F 9B [08:40:16]RasterBufferAndPrint [08:40:16]line Счет N : (1)949259 [08:40:16]line ИНН: 02508201610067 [08:40:16]line Контрольно-Кассовый Чек [08:40:16]line ПРОДАЖА [08:40:16]line ТРК (МРК, ГНК) : 51 [08:40:16]line Товар: 2710124130 [08:40:16]line Аи-92-К-4 [08:40:16]line 7.380 * 67.80 [08:40:16]line = 500.36 [08:40:16]line НДС 12% НСП 1% [08:40:16]line > о реализуемом товаре [08:40:16]line ОКРУГЛЕНИЕ: -0.36 [08:40:16]line ИТОГО: 500.00 [08:40:16]line Внесено: 500.00 [08:40:16]line СДАЧА: 0.00 [08:40:16]line НСП 1% : 4.43 [08:40:16]line НДС 12% : 53.14 [08:40:16]line Наличными: 500.00 [08:40:16]line Безнал.: 0.00 [08:40:16]line Место: АЗС № 134 "Партнер Нефть" [08:40:16]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:40:16]line СНО: Общий режим [08:40:16]line Чек 56 28.07.2024 08:40 [08:40:16]line Смена: 433 ФФД: 1.0 [08:40:16]line ЗНМ: 0300000044 [08:40:16]line РНМ: 0000000000092660 [08:40:16]line Версия ККМ: 001 [08:40:16]line ФМ: 0000000000874939 [08:40:16]line ФД: 118387 [08:40:16]line ФПД: 31269253005508 [08:40:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T084016&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118387&fm=31269253005508&tin=02508201610067®Number=0000000000092660&sum=50000 [08:40:16]written 0, free lines is 4095 [08:40:16]OFD Sender: Processing packet 118387 [packets to send 86, broken 85] [08:40:16]ProducePacketName [08:40:16]name=ofd_packets/00118387 [08:40:16]OFD Sender: To server: pG, [08:40:16]CommunicateWithHost lk.salyk.kg:30040 [08:40:16]ConnectInit lk.salyk.kg [08:40:16]Write to MH i2c: 01 00 00 A5 0B B0 [08:40:16]Write i2c OK [08:40:16]MH_I2C_Read... [08:40:16]Read from MH i2c: 01 [08:40:16]MH_I2C_Read... [08:40:16]Read from MH i2c: 01 07 00 [08:40:16]MH_I2C_Read... [08:40:16]Read from MH i2c: 01 07 00 A5 0B 00 00 00 00 00 D2 0C 95 [08:40:16]RasterBufferAndPrint [08:40:16]line [08:40:16]line [08:40:16]line [08:40:16]line [08:40:16]line [08:40:16]Connected sock=10 [08:40: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 39 33 39 0F 01 00 00 48 34 07 01 FE 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 F0 03 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 73 CE 01 00 35 04 06 00 1C 70 70 B7 C0 C4 90 51 51 70 74 EA 76 EB [08:40:16]written 0, free lines is 3288 [08:40:17]MH_Cut [08:40:17]Write to MH i2c: D1 01 00 AC 0B 01 89 [08:40:17]Write i2c OK [08:40:17]MH_I2C_Read... [08:40:17]Read from MH i2c: D1 [08:40:17]MH_I2C_Read... [08:40:17]Read from MH i2c: D1 01 00 [08:40:17]MH_I2C_Read... [08:40:17]Read from MH i2c: D1 01 00 AC 0B 00 88 [08:40:17]Write to MH i2c: 01 00 00 AD 0B B8 [08:40:17]Write i2c OK [08:40:17]MH_I2C_Read... [08:40:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F9 45 47 00 62 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 39 33 39 10 04 04 00 73 CE 01 00 F4 03 04 00 81 B1 A5 66 B6 04 01 00 00 43 BD 1C 4E FE FF 95 96 [08:40:17]CommunicateWithHost err = 0 [08:40:17]CheckOFDResponse [08:40:17]1017 (14) - 77093643461234 [08:40:17]1041 (16) - 0000000000874939 [08:40:17]1040 (4) - 118387 [08:40:17]1012 (4) - 28.07.2024 02:48 [08:40:17]1206 (1) - 0 [08:40:17]OFD Sender: Remove packet 118387 [08:40:17]ProducePacketName [08:40:17]name=ofd_packets/00118387 [08:40:17]NVStorageDeleteData [08:40:17]OFD Sender: No OFD packet to send [08:40:17]*** Cut start [08:40:17]*** Partial cut [08:40:17]*** CUTSNS_PIN = 1 [08:40:17]*** CUTSNS_PIN = 0 [08:40:17]*** Brake cut motor [08:40:18]Read from MH i2c: 01 [08:40:18]MH_I2C_Read... [08:40:18]*** Stop cut motor [08:40:18]*** Cut end [08:40:18]Read from MH i2c: 01 07 00 [08:40:18]MH_I2C_Read... [08:40:18]Read from MH i2c: 01 07 00 AD 0B 00 00 00 00 00 FF 0F CD [08:40:18]process_action close_receipt done [08:40:18]requested_data is exist [08:40:18]produce_requested_data [08:40:18]requested_item fm.sn is exist - process it [08:40:18]wFMCommunicate request_size=4 [08:40:18]MH_SAM_APDU [08:40:18]CAPDU: 80 11 00 00 [08:40:18]Write to MH i2c: E2 08 00 AE 0B 80 11 00 00 00 00 00 00 33 [08:40:18]Write i2c OK [08:40:18]MH_I2C_Read... [08:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:18]Read from MH i2c: E2 [08:40:18]MH_I2C_Read... [08:40:18]Read from MH i2c: E2 17 00 [08:40:18]MH_I2C_Read... [08:40:18]Read from MH i2c: E2 17 00 AE 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8E [08:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:40:18]wFMCommunicate OK [08:40:18]requested_item fd.num is exist - process it [08:40:18]SAM_PROTO_GetFieldsCounters [08:40:18]wFMCommunicate request_size=4 [08:40:18]MH_SAM_APDU [08:40:18]CAPDU: 80 13 00 00 [08:40:18]Write to MH i2c: E2 08 00 AF 0B 80 13 00 00 00 00 00 00 36 [08:40:18]Write i2c OK [08:40:18]MH_I2C_Read... [08:40:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:18]Read from MH i2c: E2 [08:40:18]MH_I2C_Read... [08:40:18]Read from MH i2c: E2 62 00 [08:40:18]MH_I2C_Read... [08:40:18]Read from MH i2c: E2 62 00 AF 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 73 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [08:40:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 73 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:40:18]wFMCommunicate OK [08:40:18]SAM_PROTO_GetFieldsCounters done [08:40:18]requested_item shift.num is exist - process it [08:40:18]requested_item shift.opened is exist - process it [08:40:18]req_shift_opened [08:40:18]FM_GetShiftState [08:40:18]SAM_PROTO_GetShiftState [08:40:18]wFMCommunicate request_size=4 [08:40:18]MH_SAM_APDU [08:40:18]CAPDU: 80 13 01 00 [08:40:18]Write to MH i2c: E2 08 00 B0 0B 80 13 01 00 00 00 00 00 38 [08:40:18]Write i2c OK [08:40:18]MH_I2C_Read... [08:40:18]Read from MH i2c: E2 [08:40:18]MH_I2C_Read... [08:40:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:18]Read from MH i2c: E2 0E 00 [08:40:18]MH_I2C_Read... [08:40:18]Read from MH i2c: E2 0E 00 B0 0B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 0F [08:40:18]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:40:18]wFMCommunicate OK [08:40:18]SAM_PROTO_GetShiftState done [08:40:18]FM_GetShiftState done [08:40:18]req_shift_opened done [08:40:18]requested_item shift.open_date is exist - process it [08:40:18]req_shift_open_date [08:40:18]req_shift_open_date done [08:40:18]produce_requested_data done [08:40:18]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118387,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [08:40:18]process_action_free close_receipt [08:40:18]json_value_free [08:40:18]json_value_free done [08:40:18]process_json_proto returns [08:40:18]Send response to host [08:40:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118387,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [08:40:18]free response buf [08:40:18]execute_script done [08:40:18]execute_script returns [08:40:18]free content buf [08:40:18]Sock 7.Close socket [08:40:18]Sock 7.Thread stoped [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:42]OFD Sender: No OFD packet to send [08:40:47]OFD Sender: No OFD packet to send [08:40:52]OFD Sender: No OFD packet to send [08:40:57]OFD Sender: No OFD packet to send [08:41:02]OFD Sender: No OFD packet to send [08:41:07]OFD Sender: No OFD packet to send [08:41:12]OFD Sender: No OFD packet to send [08:41:17]OFD Sender: No OFD packet to send [08:41:22]OFD Sender: No OFD packet to send [08:41:27]OFD Sender: No OFD packet to send [08:41:32]OFD Sender: No OFD packet to send [08:41:37]OFD Sender: No OFD packet to send [08:41:42]OFD Sender: No OFD packet to send [08:41:47]OFD Sender: No OFD packet to send [08:41:52]OFD Sender: No OFD packet to send [08:41:57]OFD Sender: No OFD packet to send [08:42:02]OFD Sender: No OFD packet to send [08:42:07]OFD Sender: No OFD packet to send [08:42:12]OFD Sender: No OFD packet to send [08:42:17]OFD Sender: No OFD packet to send [08:42:22]OFD Sender: No OFD packet to send [08:42:27]OFD Sender: No OFD packet to send [08:42:32]OFD Sender: No OFD packet to send [08:42:37]OFD Sender: No OFD packet to send [08:42:42]OFD Sender: No OFD packet to send [08:42:47]OFD Sender: No OFD packet to send [08:42:52]OFD Sender: No OFD packet to send [08:42:57]OFD Sender: No OFD packet to send [08:43:02]OFD Sender: No OFD packet to send [08:43:07]OFD Sender: No OFD packet to send [08:43:12]OFD Sender: No OFD packet to send [08:43:17]OFD Sender: No OFD packet to send [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:32]OFD Sender: No OFD packet to send [08:43:37]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:01]accept exits with 9 [08:44:01]New connection [08:44:01]New thread 3067067748 created [08:44:01]Thread 3066924388 joined [08:44:01]Waiting for new connection... [08:44:01] Sock 9.Parse request [08:44:01]Sock 9.Check first char [08:44:01]Sock 9.First char is OK [08:44:01]request: POST /json_proto HTTP/1.0 [08:44:01]Method: POST [08:44:01]URL: /json_proto [08:44:01]Method is POST - this is cgi request [08:44:01]url: /json_proto [08:44:01]query_string will be loaded in cgi processing [08:44:01]execute_cgi json_proto POST (null) [08:44:01]execute_cgi path=json_proto method=POST [08:44:01]POST find Content-Length [08:44:01]Host: 172.17.45.7:8080 [08:44:01]Content-Length: 682 [08:44:01]Content-Type: application/json [08:44:01] [08:44:01]POST finish read [08:44:01]Found Content-Length = 682 [08:44:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:01]execute_script... [08:44:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:01]POST & json_proto [08:44:01]process_json_proto [08:44:01]json parsed OK: [08:44:01]protocol is kg_v1.0 [08:44:01]action value=close_receipt [08:44:01]process_action close_receipt [08:44:01]cmd_close_receipt [08:44:01]MH_GetDate [08:44:01]Write to MH i2c: F0 00 00 B1 0B AB [08:44:01]Write i2c OK [08:44:01]MH_I2C_Read... [08:44:01]Read from MH i2c: F0 [08:44:01]MH_I2C_Read... [08:44:01]Read from MH i2c: F0 09 00 [08:44:01]MH_I2C_Read... [08:44:01]Read from MH i2c: F0 09 00 B1 0B 00 D3 04 A6 66 90 0F 3E 66 DA [08:44:01]GetLastDocTimeStamp 1722156016 [08:44:01]current date 1722156243 [08:44:01]FM_GetShiftState [08:44:01]SAM_PROTO_GetShiftState [08:44:01]wFMCommunicate request_size=4 [08:44:01]MH_SAM_APDU [08:44:01]CAPDU: 80 13 01 00 [08:44:01]Write to MH i2c: E2 08 00 B2 0B 80 13 01 00 00 00 00 00 3A [08:44:01]Write i2c OK [08:44:01]MH_I2C_Read... [08:44:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:01]Read from MH i2c: E2 [08:44:01]MH_I2C_Read... [08:44:01]Read from MH i2c: E2 0E 00 [08:44:01]MH_I2C_Read... [08:44:01]Read from MH i2c: E2 0E 00 B2 0B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 11 [08:44:01]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:44:01]wFMCommunicate OK [08:44:01]SAM_PROTO_GetShiftState done [08:44:01]FM_GetShiftState done [08:44:01]opened in 1722125364 [08:44:01]opened+sec_in_day 1722211764 [08:44:01]quantity*price = 100021 [08:44:01]sum+1 = 100023 [08:44:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 57 28.07.2024 08:44 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118388 ФПД: 116848096736671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T084403&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118388&fm=116848096736671&tin=02508201610067®Number=0000000000092660&sum=100000 [08:44:02]StoreToDocumentArchive [08:44:02]shift 433 fd 118388 [08:44:02]save to /storage/0433/doc_00118388 [08:44:02]save last doc name /storage/0433/doc_00118388 to /storage/kkm_last_doc_name [08:44:02]save OK [08:44:02]Clear old archive folders... [08:44:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:44:02]tlvbuf is 00127C80 [08:44:02]SAM_PROTO_ClearQueue [08:44:02]wFMCommunicate request_size=4 [08:44:02]MH_SAM_APDU [08:44:02]CAPDU: 80 09 00 00 [08:44:02]Write to MH i2c: E2 08 00 BF 0B 80 09 00 00 00 00 00 00 3C [08:44:02]Write i2c OK [08:44:02]MH_I2C_Read... [08:44:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:02]Read from MH i2c: E2 [08:44:02]MH_I2C_Read... [08:44:02]Read from MH i2c: E2 03 00 [08:44:02]MH_I2C_Read... [08:44:02]Read from MH i2c: E2 03 00 BF 0B 00 90 00 3E [08:44:02]RAPDU: 90 00 [08:44:02]wFMCommunicate OK [08:44:02]SAM_PROTO_ClearQueue done [08:44:02]KKMCreateOFDPacket [08:44:02]OFDProtocolAddRootSTLVToBuf [08:44:02]FM_MakeSignedData [08:44:02]FM_MakeSignedData [08:44:02]SAM_PROTO_SignData [08:44:02]wFMCommunicate request_size=4 [08:44:02]MH_SAM_APDU [08:44:02]CAPDU: 80 0D 01 02 [08:44:02]Write to MH i2c: E2 08 00 C0 0B 80 0D 01 02 00 00 00 00 44 [08:44:02]Write i2c OK [08:44:02]MH_I2C_Read... [08:44:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:02]Read from MH i2c: E2 [08:44:02]MH_I2C_Read... [08:44:02]Read from MH i2c: E2 03 00 [08:44:02]MH_I2C_Read... [08:44:02]Read from MH i2c: E2 03 00 C0 0B 00 90 00 3F [08:44:02]RAPDU: 90 00 [08:44:02]wFMCommunicate OK [08:44:02]wFMCommunicate request_size=255 [08:44:02]MH_SAM_APDU [08:44:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 D3 04 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 74 CE 01 00 35 04 06 00 6A [08:44:02]Write to MH i2c: E2 02 01 C1 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 D3 04 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 74 CE 01 00 35 04 06 00 6A 00 00 6F [08:44:02]Write i2c OK [08:44:02]MH_I2C_Read... [08:44:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:02]Read from MH i2c: E2 [08:44:02]MH_I2C_Read... [08:44:02]Read from MH i2c: E2 03 00 [08:44:02]MH_I2C_Read... [08:44:02]Read from MH i2c: E2 03 00 C1 0B 00 90 00 40 [08:44:02]RAPDU: 90 00 [08:44:02]wFMCommunicate OK [08:44:02]wFMCommunicate request_size=10 [08:44:02]MH_SAM_APDU [08:44:02]CAPDU: 80 0D 02 02 05 45 D1 4C 75 9F [08:44:02]Write to MH i2c: E2 0D 00 C2 0B 80 0D 02 02 05 00 45 D1 4C 75 9F 00 00 C7 [08:44:02]Write i2c OK [08:44:02]MH_I2C_Read... [08:44:02]OFD Sender: No OFD packet to send [08:44:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:02]Read from MH i2c: E2 [08:44:02]MH_I2C_Read... [08:44:02]Read from MH i2c: E2 03 00 [08:44:02]MH_I2C_Read... [08:44:02]Read from MH i2c: E2 03 00 C2 0B 00 90 00 41 [08:44:02]RAPDU: 90 00 [08:44:02]wFMCommunicate OK [08:44:02]wFMCommunicate request_size=4 [08:44:02]MH_SAM_APDU [08:44:02]CAPDU: 80 0D 03 02 [08:44:02]Write to MH i2c: E2 08 00 C3 0B 80 0D 03 02 00 00 00 00 49 [08:44:02]Write i2c OK [08:44:02]MH_I2C_Read... [08:44:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:03]Read from MH i2c: E2 [08:44:03]MH_I2C_Read... [08:44:03]Read from MH i2c: E2 0B 00 [08:44:03]MH_I2C_Read... [08:44:03]Read from MH i2c: E2 0B 00 C3 0B 00 24 5A 76 83 3D 6D 73 6C 90 00 4A [08:44:03]RAPDU: 24 5A 76 83 3D 6D 73 6C 90 00 [08:44:03]wFMCommunicate OK [08:44:03]SAM_PROTO_SignData done [08:44:03]FM_MakeSignedData done [08:44:03]CreateOFDProtocolMessage [08:44:03]wFMCommunicate request_size=4 [08:44:03]MH_SAM_APDU [08:44:03]CAPDU: 80 11 00 00 [08:44:03]Write to MH i2c: E2 08 00 C4 0B 80 11 00 00 00 00 00 00 49 [08:44:03]Write i2c OK [08:44:03]MH_I2C_Read... [08:44:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:03]Read from MH i2c: E2 [08:44:03]MH_I2C_Read... [08:44:03]Read from MH i2c: E2 17 00 [08:44:03]MH_I2C_Read... [08:44:03]Read from MH i2c: E2 17 00 C4 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A4 [08:44:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:44:03]wFMCommunicate OK [08:44:03]CreateOFDProtocolMessage done [08:44:03]OFDSenderStorePacket 118388 [08:44:03]StoreOFDPacket docnum=118388 [08:44:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A2 69 07 01 30 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 D3 04 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 74 CE 01 00 35 04 06 00 6A 45 D1 4C 75 9F 24 5A 76 83 3D 6D 73 6C [08:44:03]CheckFolder [08:44:03]dirname=/storage/ofd_packets [08:44:03]CheckFolder done [08:44:03]ProducePacketName [08:44:03]name=ofd_packets/00118388 [08:44:03]NVStorageSaveData ofd_packets/00118388 [08:44:03]File name is /storage/ofd_packets/00118388 [08:44:03]Write 301 bytes [08:44:03]NVStorageSaveData done [08:44:03]OFDSenderStorePacket done [08:44:03]KKMCreateOFDPacket done [08:44:03]NVStorageSaveData kkm_last_timestamp [08:44:03]File name is /storage/kkm_last_timestamp [08:44:03]Write 4 bytes [08:44:03]NVStorageSaveData done [08:44:03]ExternCall_PrintAddStr [08:44:03]wPrintStart [08:44:03]Write to MH i2c: 01 00 00 C5 0B D0 [08:44:03]Write i2c OK [08:44:03]MH_I2C_Read... [08:44:03]Read from MH i2c: 01 [08:44:03]MH_I2C_Read... [08:44:03]Read from MH i2c: 01 07 00 [08:44:03]MH_I2C_Read... [08:44:03]Read from MH i2c: 01 07 00 C5 0B 00 00 00 00 00 FF 0F E5 [08:44:03]RasterBufferAndPrint [08:44:03]line Счет N : (1)949260 [08:44:03]line ИНН: 02508201610067 [08:44:03]line Контрольно-Кассовый Чек [08:44:03]line ПРОДАЖА [08:44:03]line ТРК (МРК, ГНК) : 63 [08:44:03]line Товар: 2710124500 [08:44:03]line Аи-95-К-3 [08:44:03]line 13.480 * 74.20 [08:44:03]line = 1000.22 [08:44:03]line НДС 12% НСП 1% [08:44:03]line > о реализуемом товаре [08:44:03]line ОКРУГЛЕНИЕ: -0.22 [08:44:03]line ИТОГО: 1000.00 [08:44:03]line Внесено: 1000.00 [08:44:03]line СДАЧА: 0.00 [08:44:03]line НСП 1% : 8.85 [08:44:03]line НДС 12% : 106.22 [08:44:03]line Наличными: 1000.00 [08:44:03]line Безнал.: 0.00 [08:44:03]line Место: АЗС № 134 "Партнер Нефть" [08:44:03]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:44:03]line СНО: Общий режим [08:44:03]line Чек 57 28.07.2024 08:44 [08:44:03]line Смена: 433 ФФД: 1.0 [08:44:03]line ЗНМ: 0300000044 [08:44:03]line РНМ: 0000000000092660 [08:44:03]line Версия ККМ: 001 [08:44:03]line ФМ: 0000000000874939 [08:44:03]line ФД: 118388 [08:44:03]line ФПД: 116848096736671 [08:44:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T084403&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118388&fm=116848096736671&tin=02508201610067®Number=0000000000092660&sum=100000 [08:44:03]OFD Sender: Processing packet 118388 [packets to send 86, broken 85] [08:44:03]ProducePacketName [08:44:03]name=ofd_packets/00118388 [08:44:03]OFD Sender: To server: pG, [08:44:03]CommunicateWithHost lk.salyk.kg:30040 [08:44:03]ConnectInit lk.salyk.kg [08:44:03]written 0, free lines is 4095 [08:44:03]Connected sock=10 [08:44:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A2 69 07 01 30 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 D3 04 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 74 CE 01 00 35 04 06 00 6A 45 D1 4C 75 9F 24 5A 76 83 3D 6D 73 6C [08:44:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 90 85 47 00 12 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 39 33 39 10 04 04 00 74 CE 01 00 F4 03 04 00 64 B2 A5 66 B6 04 01 00 00 34 5B 34 89 AB A1 3D B2 [08:44:03]CommunicateWithHost err = 0 [08:44:03]CheckOFDResponse [08:44:03]1017 (14) - 77093643461234 [08:44:03]1041 (16) - 0000000000874939 [08:44:03]1040 (4) - 118388 [08:44:03]1012 (4) - 28.07.2024 02:52 [08:44:03]1206 (1) - 0 [08:44:03]OFD Sender: Remove packet 118388 [08:44:03]ProducePacketName [08:44:03]name=ofd_packets/00118388 [08:44:03]NVStorageDeleteData [08:44:03]Write to MH i2c: 01 00 00 EF 0B FA [08:44:03]Write i2c OK [08:44:03]MH_I2C_Read... [08:44:03]Read from MH i2c: 01 [08:44:03]MH_I2C_Read... [08:44:03]Read from MH i2c: 01 07 00 [08:44:03]MH_I2C_Read... [08:44:03]Read from MH i2c: 01 07 00 EF 0B 00 00 00 00 00 DD 0C EA [08:44:03]RasterBufferAndPrint [08:44:03]line [08:44:03]line [08:44:03]line [08:44:03]line [08:44:03]line [08:44:03]written 0, free lines is 3298 [08:44:03]MH_Cut [08:44:03]Write to MH i2c: D1 01 00 F6 0B 01 D3 [08:44:03]Write i2c OK [08:44:03]MH_I2C_Read... [08:44:03]Read from MH i2c: D1 [08:44:03]MH_I2C_Read... [08:44:03]Read from MH i2c: D1 01 00 [08:44:03]MH_I2C_Read... [08:44:03]Read from MH i2c: D1 01 00 F6 0B 00 D2 [08:44:03]Write to MH i2c: 01 00 00 F7 0B 02 [08:44:03]Write i2c OK [08:44:03]MH_I2C_Read... [08:44:04]OFD Sender: No OFD packet to send [08:44:04]*** Cut start [08:44:04]*** Partial cut [08:44:04]*** CUTSNS_PIN = 1 [08:44:04]*** CUTSNS_PIN = 0 [08:44:04]*** Brake cut motor [08:44:05]Read from MH i2c: 01 [08:44:05]MH_I2C_Read... [08:44:05]*** Stop cut motor [08:44:05]*** Cut end [08:44:05]Read from MH i2c: 01 07 00 [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: 01 07 00 F7 0B 00 00 00 00 00 FF 0F 17 [08:44:05]process_action close_receipt done [08:44:05]requested_data is exist [08:44:05]produce_requested_data [08:44:05]requested_item fm.sn is exist - process it [08:44:05]wFMCommunicate request_size=4 [08:44:05]MH_SAM_APDU [08:44:05]CAPDU: 80 11 00 00 [08:44:05]Write to MH i2c: E2 08 00 F8 0B 80 11 00 00 00 00 00 00 7D [08:44:05]Write i2c OK [08:44:05]MH_I2C_Read... [08:44:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:05]Read from MH i2c: E2 [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: E2 17 00 [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: E2 17 00 F8 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D8 [08:44:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:44:05]wFMCommunicate OK [08:44:05]requested_item fd.num is exist - process it [08:44:05]SAM_PROTO_GetFieldsCounters [08:44:05]wFMCommunicate request_size=4 [08:44:05]MH_SAM_APDU [08:44:05]CAPDU: 80 13 00 00 [08:44:05]Write to MH i2c: E2 08 00 F9 0B 80 13 00 00 00 00 00 00 80 [08:44:05]Write i2c OK [08:44:05]MH_I2C_Read... [08:44:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:05]Read from MH i2c: E2 [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: E2 62 00 [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: E2 62 00 F9 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 74 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [08:44:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 74 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:44:05]wFMCommunicate OK [08:44:05]SAM_PROTO_GetFieldsCounters done [08:44:05]requested_item shift.num is exist - process it [08:44:05]requested_item shift.opened is exist - process it [08:44:05]req_shift_opened [08:44:05]FM_GetShiftState [08:44:05]SAM_PROTO_GetShiftState [08:44:05]wFMCommunicate request_size=4 [08:44:05]MH_SAM_APDU [08:44:05]CAPDU: 80 13 01 00 [08:44:05]Write to MH i2c: E2 08 00 FA 0B 80 13 01 00 00 00 00 00 82 [08:44:05]Write i2c OK [08:44:05]MH_I2C_Read... [08:44:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:05]Read from MH i2c: E2 [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: E2 0E 00 [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: E2 0E 00 FA 0B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 59 [08:44:05]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:44:05]wFMCommunicate OK [08:44:05]SAM_PROTO_GetShiftState done [08:44:05]FM_GetShiftState done [08:44:05]req_shift_opened done [08:44:05]requested_item shift.open_date is exist - process it [08:44:05]req_shift_open_date [08:44:05]req_shift_open_date done [08:44:05]produce_requested_data done [08:44:05]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118388,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [08:44:05]process_action_free close_receipt [08:44:05]json_value_free [08:44:05]json_value_free done [08:44:05]process_json_proto returns [08:44:05]Send response to host [08:44:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118388,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [08:44:05]free response buf [08:44:05]execute_script done [08:44:05]execute_script returns [08:44:05]free content buf [08:44:05]Sock 9.Close socket [08:44:05]Sock 9.Thread stoped [08:44:09]OFD Sender: No OFD packet to send [08:44:14]OFD Sender: No OFD packet to send [08:44:19]OFD Sender: No OFD packet to send [08:44:24]OFD Sender: No OFD packet to send [08:44:29]OFD Sender: No OFD packet to send [08:44:34]OFD Sender: No OFD packet to send [08:44:39]OFD Sender: No OFD packet to send [08:44:44]OFD Sender: No OFD packet to send [08:44:49]OFD Sender: No OFD packet to send [08:44:54]OFD Sender: No OFD packet to send [08:44:59]OFD Sender: No OFD packet to send [08:45:04]OFD Sender: No OFD packet to send [08:45:09]OFD Sender: No OFD packet to send [08:45:12]accept exits with 7 [08:45:12]New connection [08:45:12]New thread 3066924388 created [08:45:12]Thread 3067067748 joined [08:45:12]Waiting for new connection... [08:45:12] Sock 7.Parse request [08:45:12]Sock 7.Check first char [08:45:12]Sock 7.First char is OK [08:45:12]request: POST /json_proto HTTP/1.0 [08:45:12]Method: POST [08:45:12]URL: /json_proto [08:45:12]Method is POST - this is cgi request [08:45:12]url: /json_proto [08:45:12]query_string will be loaded in cgi processing [08:45:12]execute_cgi json_proto POST (null) [08:45:12]execute_cgi path=json_proto method=POST [08:45:12]POST find Content-Length [08:45:12]Host: 172.17.45.7:8080 [08:45:12]Content-Length: 677 [08:45:12]Content-Type: application/json [08:45:12] [08:45:12]POST finish read [08:45:12]Found Content-Length = 677 [08:45:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:45:12]execute_script... [08:45: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)949261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:45:12]POST & json_proto [08:45:12]process_json_proto [08:45:12]json parsed OK: [08:45:12]protocol is kg_v1.0 [08:45:12]action value=close_receipt [08:45:12]process_action close_receipt [08:45:12]cmd_close_receipt [08:45:12]MH_GetDate [08:45:12]Write to MH i2c: F0 00 00 FB 0B F5 [08:45:12]Write i2c OK [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: F0 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: F0 09 00 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: F0 09 00 FB 0B 00 1A 05 A6 66 90 0F 3E 66 6C [08:45:12]GetLastDocTimeStamp 1722156243 [08:45:12]current date 1722156314 [08:45:12]FM_GetShiftState [08:45:12]SAM_PROTO_GetShiftState [08:45:12]wFMCommunicate request_size=4 [08:45:12]MH_SAM_APDU [08:45:12]CAPDU: 80 13 01 00 [08:45:12]Write to MH i2c: E2 08 00 FC 0B 80 13 01 00 00 00 00 00 84 [08:45:12]Write i2c OK [08:45:12]MH_I2C_Read... [08:45:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:12]Read from MH i2c: E2 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: E2 0E 00 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: E2 0E 00 FC 0B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 5B [08:45:12]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:45:12]wFMCommunicate OK [08:45:12]SAM_PROTO_GetShiftState done [08:45:12]FM_GetShiftState done [08:45:12]opened in 1722125364 [08:45:12]opened+sec_in_day 1722211764 [08:45:12]quantity*price = 60003 [08:45:12]sum+1 = 60004 [08:45:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 58 28.07.2024 08:45 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118389 ФПД: 25958762509513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T084514&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118389&fm=25958762509513&tin=02508201610067®Number=0000000000092660&sum=60000 [08:45:13]StoreToDocumentArchive [08:45:13]shift 433 fd 118389 [08:45:13]save to /storage/0433/doc_00118389 [08:45:13]save last doc name /storage/0433/doc_00118389 to /storage/kkm_last_doc_name [08:45:13]save OK [08:45:13]Clear old archive folders... [08:45:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:45:13]tlvbuf is 0014A4D0 [08:45:13]SAM_PROTO_ClearQueue [08:45:13]wFMCommunicate request_size=4 [08:45:13]MH_SAM_APDU [08:45:13]CAPDU: 80 09 00 00 [08:45:13]Write to MH i2c: E2 08 00 09 0C 80 09 00 00 00 00 00 00 87 [08:45:13]Write i2c OK [08:45:13]MH_I2C_Read... [08:45:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:13]Read from MH i2c: E2 [08:45:13]MH_I2C_Read... [08:45:13]Read from MH i2c: E2 03 00 [08:45:13]MH_I2C_Read... [08:45:13]Read from MH i2c: E2 03 00 09 0C 00 90 00 89 [08:45:13]RAPDU: 90 00 [08:45:13]wFMCommunicate OK [08:45:13]SAM_PROTO_ClearQueue done [08:45:13]KKMCreateOFDPacket [08:45:13]OFDProtocolAddRootSTLVToBuf [08:45:13]FM_MakeSignedData [08:45:13]FM_MakeSignedData [08:45:13]SAM_PROTO_SignData [08:45:13]wFMCommunicate request_size=4 [08:45:13]MH_SAM_APDU [08:45:13]CAPDU: 80 0D 01 02 [08:45:13]Write to MH i2c: E2 08 00 0A 0C 80 0D 01 02 00 00 00 00 8F [08:45:13]Write i2c OK [08:45:13]MH_I2C_Read... [08:45:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:13]Read from MH i2c: E2 [08:45:13]MH_I2C_Read... [08:45:13]Read from MH i2c: E2 03 00 [08:45:13]MH_I2C_Read... [08:45:13]Read from MH i2c: E2 03 00 0A 0C 00 90 00 8A [08:45:13]RAPDU: 90 00 [08:45:13]wFMCommunicate OK [08:45:13]wFMCommunicate request_size=255 [08:45:13]MH_SAM_APDU [08:45: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 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 3A 00 00 00 F4 03 04 00 1A 05 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 75 CE 01 00 35 04 06 00 17 [08:45:13]Write to MH i2c: E2 02 01 0B 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 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 3A 00 00 00 F4 03 04 00 1A 05 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 75 CE 01 00 35 04 06 00 17 00 00 4C [08:45:13]Write i2c OK [08:45:13]MH_I2C_Read... [08:45:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:14]Read from MH i2c: E2 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: E2 03 00 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: E2 03 00 0B 0C 00 90 00 8B [08:45:14]RAPDU: 90 00 [08:45:14]wFMCommunicate OK [08:45:14]wFMCommunicate request_size=10 [08:45:14]MH_SAM_APDU [08:45:14]CAPDU: 80 0D 02 02 05 9B FE D1 74 C9 [08:45:14]Write to MH i2c: E2 0D 00 0C 0C 80 0D 02 02 05 00 9B FE D1 74 C9 00 00 43 [08:45:14]Write i2c OK [08:45:14]MH_I2C_Read... [08:45:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:14]Read from MH i2c: E2 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: E2 03 00 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: E2 03 00 0C 0C 00 90 00 8C [08:45:14]RAPDU: 90 00 [08:45:14]wFMCommunicate OK [08:45:14]wFMCommunicate request_size=4 [08:45:14]MH_SAM_APDU [08:45:14]CAPDU: 80 0D 03 02 [08:45:14]Write to MH i2c: E2 08 00 0D 0C 80 0D 03 02 00 00 00 00 94 [08:45:14]Write i2c OK [08:45:14]MH_I2C_Read... [08:45:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:14]Read from MH i2c: E2 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: E2 0B 00 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: E2 0B 00 0D 0C 00 23 E6 5D BF 68 22 B3 99 90 00 90 [08:45:14]RAPDU: 23 E6 5D BF 68 22 B3 99 90 00 [08:45:14]wFMCommunicate OK [08:45:14]SAM_PROTO_SignData done [08:45:14]FM_MakeSignedData done [08:45:14]CreateOFDProtocolMessage [08:45:14]wFMCommunicate request_size=4 [08:45:14]MH_SAM_APDU [08:45:14]CAPDU: 80 11 00 00 [08:45:14]Write to MH i2c: E2 08 00 0E 0C 80 11 00 00 00 00 00 00 94 [08:45:14]Write i2c OK [08:45:14]MH_I2C_Read... [08:45:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:14]Read from MH i2c: E2 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: E2 17 00 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: E2 17 00 0E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EF [08:45:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:45:14]wFMCommunicate OK [08:45:14]CreateOFDProtocolMessage done [08:45:14]OFDSenderStorePacket 118389 [08:45:14]StoreOFDPacket docnum=118389 [08:45:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 40 D8 07 01 F4 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 3A 00 00 00 F4 03 04 00 1A 05 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 75 CE 01 00 35 04 06 00 17 9B FE D1 74 C9 23 E6 5D BF 68 22 B3 99 [08:45:14]CheckFolder [08:45:14]dirname=/storage/ofd_packets [08:45:14]CheckFolder done [08:45:14]ProducePacketName [08:45:14]name=ofd_packets/00118389 [08:45:14]NVStorageSaveData ofd_packets/00118389 [08:45:14]File name is /storage/ofd_packets/00118389 [08:45:14]Write 301 bytes [08:45:14]NVStorageSaveData done [08:45:14]OFDSenderStorePacket done [08:45:14]KKMCreateOFDPacket done [08:45:14]NVStorageSaveData kkm_last_timestamp [08:45:14]File name is /storage/kkm_last_timestamp [08:45:14]Write 4 bytes [08:45:14]NVStorageSaveData done [08:45:14]ExternCall_PrintAddStr [08:45:14]wPrintStart [08:45:14]Write to MH i2c: 01 00 00 0F 0C 1B [08:45:14]Write i2c OK [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: 01 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: 01 07 00 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: 01 07 00 0F 0C 00 00 00 00 00 FF 0F 30 [08:45:14]RasterBufferAndPrint [08:45:14]line Счет N : (1)949261 [08:45:14]line ИНН: 02508201610067 [08:45:14]line Контрольно-Кассовый Чек [08:45:14]line ПРОДАЖА [08:45:14]line ТРК (МРК, ГНК) : 41 [08:45:14]line Товар: 2710124130 [08:45:14]line Аи-92-К-4 [08:45:14]line 8.850 * 67.80 [08:45:14]line = 600.03 [08:45:14]line НДС 12% НСП 1% [08:45:14]line > о реализуемом товаре [08:45:14]line ОКРУГЛЕНИЕ: -0.03 [08:45:14]line ИТОГО: 600.00 [08:45:14]line Внесено: 600.00 [08:45:14]line СДАЧА: 0.00 [08:45:14]line НСП 1% : 5.31 [08:45:14]line НДС 12% : 63.72 [08:45:14]line Наличными: 600.00 [08:45:14]line Безнал.: 0.00 [08:45:14]line Место: АЗС № 134 "Партнер Нефть" [08:45:14]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:45:14]line СНО: Общий режим [08:45:14]line Чек 58 28.07.2024 08:45 [08:45:14]line Смена: 433 ФФД: 1.0 [08:45:14]line ЗНМ: 0300000044 [08:45:14]line РНМ: 0000000000092660 [08:45:14]line Версия ККМ: 001 [08:45:14]line ФМ: 0000000000874939 [08:45:14]line ФД: 118389 [08:45:14]line ФПД: 25958762509513 [08:45:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T084514&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118389&fm=25958762509513&tin=02508201610067®Number=0000000000092660&sum=60000 [08:45:14]written 0, free lines is 4095 [08:45:14]OFD Sender: Processing packet 118389 [packets to send 86, broken 85] [08:45:14]ProducePacketName [08:45:14]name=ofd_packets/00118389 [08:45:14]OFD Sender: To server: pG, [08:45:14]CommunicateWithHost lk.salyk.kg:30040 [08:45:14]ConnectInit lk.salyk.kg [08:45:14]Connected sock=10 [08:45:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 40 D8 07 01 F4 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 3A 00 00 00 F4 03 04 00 1A 05 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 75 CE 01 00 35 04 06 00 17 9B FE D1 74 C9 23 E6 5D BF 68 22 B3 99 [08:45:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9E 96 47 00 B7 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 39 33 39 10 04 04 00 75 CE 01 00 F4 03 04 00 AA B2 A5 66 B6 04 01 00 00 44 7D 56 F5 01 25 E2 2E [08:45:14]CommunicateWithHost err = 0 [08:45:14]CheckOFDResponse [08:45:14]1017 (14) - 77093643461234 [08:45:14]1041 (16) - 0000000000874939 [08:45:14]1040 (4) - 118389 [08:45:14]1012 (4) - 28.07.2024 02:53 [08:45:14]1206 (1) - 0 [08:45:14]OFD Sender: Remove packet 118389 [08:45:14]ProducePacketName [08:45:14]name=ofd_packets/00118389 [08:45:14]NVStorageDeleteData [08:45:14]Write to MH i2c: 01 00 00 39 0C 45 [08:45:14]Write i2c OK [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: 01 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: 01 07 00 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: 01 07 00 39 0C 00 00 00 00 00 E2 0C 3A [08:45:14]RasterBufferAndPrint [08:45:14]line [08:45:14]line [08:45:14]line [08:45:14]line [08:45:14]line [08:45:14]written 0, free lines is 3304 [08:45:14]MH_Cut [08:45:14]Write to MH i2c: D1 01 00 40 0C 01 1E [08:45:14]Write i2c OK [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: D1 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: D1 01 00 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: D1 01 00 40 0C 00 1D [08:45:14]Write to MH i2c: 01 00 00 41 0C 4D [08:45:14]Write i2c OK [08:45:14]MH_I2C_Read... [08:45:15]OFD Sender: No OFD packet to send [08:45:15]*** Cut start [08:45:15]*** Partial cut [08:45:15]*** CUTSNS_PIN = 1 [08:45:15]*** CUTSNS_PIN = 0 [08:45:15]*** Brake cut motor [08:45:16]Read from MH i2c: 01 [08:45:16]MH_I2C_Read... [08:45:16]*** Stop cut motor [08:45:16]*** Cut end [08:45:16]Read from MH i2c: 01 07 00 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: 01 07 00 41 0C 00 00 00 00 00 FF 0F 62 [08:45:16]process_action close_receipt done [08:45:16]requested_data is exist [08:45:16]produce_requested_data [08:45:16]requested_item fm.sn is exist - process it [08:45:16]wFMCommunicate request_size=4 [08:45:16]MH_SAM_APDU [08:45:16]CAPDU: 80 11 00 00 [08:45:16]Write to MH i2c: E2 08 00 42 0C 80 11 00 00 00 00 00 00 C8 [08:45:16]Write i2c OK [08:45:16]MH_I2C_Read... [08:45:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:16]Read from MH i2c: E2 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: E2 17 00 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: E2 17 00 42 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 23 [08:45:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:45:16]wFMCommunicate OK [08:45:16]requested_item fd.num is exist - process it [08:45:16]SAM_PROTO_GetFieldsCounters [08:45:16]wFMCommunicate request_size=4 [08:45:16]MH_SAM_APDU [08:45:16]CAPDU: 80 13 00 00 [08:45:16]Write to MH i2c: E2 08 00 43 0C 80 13 00 00 00 00 00 00 CB [08:45:16]Write i2c OK [08:45:16]MH_I2C_Read... [08:45:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:16]Read from MH i2c: E2 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: E2 62 00 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: E2 62 00 43 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 75 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [08:45:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 75 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:45:16]wFMCommunicate OK [08:45:16]SAM_PROTO_GetFieldsCounters done [08:45:16]requested_item shift.num is exist - process it [08:45:16]requested_item shift.opened is exist - process it [08:45:16]req_shift_opened [08:45:16]FM_GetShiftState [08:45:16]SAM_PROTO_GetShiftState [08:45:16]wFMCommunicate request_size=4 [08:45:16]MH_SAM_APDU [08:45:16]CAPDU: 80 13 01 00 [08:45:16]Write to MH i2c: E2 08 00 44 0C 80 13 01 00 00 00 00 00 CD [08:45:16]Write i2c OK [08:45:16]MH_I2C_Read... [08:45:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:16]Read from MH i2c: E2 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: E2 0E 00 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: E2 0E 00 44 0C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A4 [08:45:16]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:45:16]wFMCommunicate OK [08:45:16]SAM_PROTO_GetShiftState done [08:45:16]FM_GetShiftState done [08:45:16]req_shift_opened done [08:45:16]requested_item shift.open_date is exist - process it [08:45:16]req_shift_open_date [08:45:16]req_shift_open_date done [08:45:16]produce_requested_data done [08:45:16]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118389,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [08:45:16]process_action_free close_receipt [08:45:16]json_value_free [08:45:16]json_value_free done [08:45:16]process_json_proto returns [08:45:16]Send response to host [08:45:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118389,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [08:45:16]free response buf [08:45:16]execute_script done [08:45:16]execute_script returns [08:45:16]free content buf [08:45:16]Sock 7.Close socket [08:45:16]Sock 7.Thread stoped [08:45:20]OFD Sender: No OFD packet to send [08:45:25]OFD Sender: No OFD packet to send [08:45:30]OFD Sender: No OFD packet to send [08:45:35]OFD Sender: No OFD packet to send [08:45:40]OFD Sender: No OFD packet to send [08:45:45]OFD Sender: No OFD packet to send [08:45:50]OFD Sender: No OFD packet to send [08:45:55]OFD Sender: No OFD packet to send [08:46:00]OFD Sender: No OFD packet to send [08:46:05]OFD Sender: No OFD packet to send [08:46:10]OFD Sender: No OFD packet to send [08:46:15]OFD Sender: No OFD packet to send [08:46:20]OFD Sender: No OFD packet to send [08:46:25]OFD Sender: No OFD packet to send [08:46:30]OFD Sender: No OFD packet to send [08:46:35]OFD Sender: No OFD packet to send [08:46:35]accept exits with 9 [08:46:35]New connection [08:46:35]New thread 3067067748 created [08:46:35]Thread 3066924388 joined [08:46:35]Waiting for new connection... [08:46:35] Sock 9.Parse request [08:46:35]Sock 9.Check first char [08:46:35]Sock 9.First char is OK [08:46:35]request: POST /json_proto HTTP/1.0 [08:46:35]Method: POST [08:46:35]URL: /json_proto [08:46:35]Method is POST - this is cgi request [08:46:35]url: /json_proto [08:46:35]query_string will be loaded in cgi processing [08:46:35]execute_cgi json_proto POST (null) [08:46:35]execute_cgi path=json_proto method=POST [08:46:35]POST find Content-Length [08:46:35]Host: 172.17.45.7:8080 [08:46:35]Content-Length: 682 [08:46:35]Content-Type: application/json [08:46:35] [08:46:35]POST finish read [08:46:35]Found Content-Length = 682 [08:46:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:35]execute_script... [08:46: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)949262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:35]POST & json_proto [08:46:35]process_json_proto [08:46:35]json parsed OK: [08:46:35]protocol is kg_v1.0 [08:46:35]action value=close_receipt [08:46:35]process_action close_receipt [08:46:35]cmd_close_receipt [08:46:35]MH_GetDate [08:46:35]Write to MH i2c: F0 00 00 45 0C 40 [08:46:35]Write i2c OK [08:46:35]MH_I2C_Read... [08:46:35]Read from MH i2c: F0 [08:46:35]MH_I2C_Read... [08:46:35]Read from MH i2c: F0 09 00 [08:46:35]MH_I2C_Read... [08:46:35]Read from MH i2c: F0 09 00 45 0C 00 6D 05 A6 66 90 0F 3E 66 0A [08:46:35]GetLastDocTimeStamp 1722156314 [08:46:35]current date 1722156397 [08:46:35]FM_GetShiftState [08:46:35]SAM_PROTO_GetShiftState [08:46:35]wFMCommunicate request_size=4 [08:46:35]MH_SAM_APDU [08:46:35]CAPDU: 80 13 01 00 [08:46:35]Write to MH i2c: E2 08 00 46 0C 80 13 01 00 00 00 00 00 CF [08:46:35]Write i2c OK [08:46:35]MH_I2C_Read... [08:46:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:35]Read from MH i2c: E2 [08:46:35]MH_I2C_Read... [08:46:35]Read from MH i2c: E2 0E 00 [08:46:35]MH_I2C_Read... [08:46:35]Read from MH i2c: E2 0E 00 46 0C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A6 [08:46:35]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:46:35]wFMCommunicate OK [08:46:35]SAM_PROTO_GetShiftState done [08:46:35]FM_GetShiftState done [08:46:35]opened in 1722125364 [08:46:35]opened+sec_in_day 1722211764 [08:46:35]quantity*price = 100021 [08:46:35]sum+1 = 100023 [08:46:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 59 28.07.2024 08:46 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118390 ФПД: 245508225832367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T084637&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118390&fm=245508225832367&tin=02508201610067®Number=0000000000092660&sum=100000 [08:46:37]StoreToDocumentArchive [08:46:37]shift 433 fd 118390 [08:46:37]save to /storage/0433/doc_00118390 [08:46:37]save last doc name /storage/0433/doc_00118390 to /storage/kkm_last_doc_name [08:46:37]save OK [08:46:37]Clear old archive folders... [08:46:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:46:37]tlvbuf is 00155A60 [08:46:37]SAM_PROTO_ClearQueue [08:46:37]wFMCommunicate request_size=4 [08:46:37]MH_SAM_APDU [08:46:37]CAPDU: 80 09 00 00 [08:46:37]Write to MH i2c: E2 08 00 53 0C 80 09 00 00 00 00 00 00 D1 [08:46:37]Write i2c OK [08:46:37]MH_I2C_Read... [08:46:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:37]Read from MH i2c: E2 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 03 00 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 03 00 53 0C 00 90 00 D3 [08:46:37]RAPDU: 90 00 [08:46:37]wFMCommunicate OK [08:46:37]SAM_PROTO_ClearQueue done [08:46:37]KKMCreateOFDPacket [08:46:37]OFDProtocolAddRootSTLVToBuf [08:46:37]FM_MakeSignedData [08:46:37]FM_MakeSignedData [08:46:37]SAM_PROTO_SignData [08:46:37]wFMCommunicate request_size=4 [08:46:37]MH_SAM_APDU [08:46:37]CAPDU: 80 0D 01 02 [08:46:37]Write to MH i2c: E2 08 00 54 0C 80 0D 01 02 00 00 00 00 D9 [08:46:37]Write i2c OK [08:46:37]MH_I2C_Read... [08:46:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:37]Read from MH i2c: E2 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 03 00 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 03 00 54 0C 00 90 00 D4 [08:46:37]RAPDU: 90 00 [08:46:37]wFMCommunicate OK [08:46:37]wFMCommunicate request_size=255 [08:46:37]MH_SAM_APDU [08:46:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 6D 05 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 76 CE 01 00 35 04 06 00 DF [08:46:37]Write to MH i2c: E2 02 01 55 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 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 6D 05 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 76 CE 01 00 35 04 06 00 DF 00 00 18 [08:46:37]Write i2c OK [08:46:37]MH_I2C_Read... [08:46:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:37]Read from MH i2c: E2 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 03 00 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 03 00 55 0C 00 90 00 D5 [08:46:37]RAPDU: 90 00 [08:46:37]wFMCommunicate OK [08:46:37]wFMCommunicate request_size=10 [08:46:37]MH_SAM_APDU [08:46:37]CAPDU: 80 0D 02 02 05 49 D6 97 15 AF [08:46:37]Write to MH i2c: E2 0D 00 56 0C 80 0D 02 02 05 00 49 D6 97 15 AF 00 00 60 [08:46:37]Write i2c OK [08:46:37]MH_I2C_Read... [08:46:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:37]Read from MH i2c: E2 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 03 00 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 03 00 56 0C 00 90 00 D6 [08:46:37]RAPDU: 90 00 [08:46:37]wFMCommunicate OK [08:46:37]wFMCommunicate request_size=4 [08:46:37]MH_SAM_APDU [08:46:37]CAPDU: 80 0D 03 02 [08:46:37]Write to MH i2c: E2 08 00 57 0C 80 0D 03 02 00 00 00 00 DE [08:46:37]Write i2c OK [08:46:37]MH_I2C_Read... [08:46:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:37]Read from MH i2c: E2 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 0B 00 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 0B 00 57 0C 00 3C BF 99 4C FA 1F EA C0 90 00 82 [08:46:37]RAPDU: 3C BF 99 4C FA 1F EA C0 90 00 [08:46:37]wFMCommunicate OK [08:46:37]SAM_PROTO_SignData done [08:46:37]FM_MakeSignedData done [08:46:37]CreateOFDProtocolMessage [08:46:37]wFMCommunicate request_size=4 [08:46:37]MH_SAM_APDU [08:46:37]CAPDU: 80 11 00 00 [08:46:37]Write to MH i2c: E2 08 00 58 0C 80 11 00 00 00 00 00 00 DE [08:46:37]Write i2c OK [08:46:37]MH_I2C_Read... [08:46:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:37]Read from MH i2c: E2 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 17 00 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 17 00 58 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 39 [08:46:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:46:37]wFMCommunicate OK [08:46:37]CreateOFDProtocolMessage done [08:46:37]OFDSenderStorePacket 118390 [08:46:37]StoreOFDPacket docnum=118390 [08:46:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 32 CA 07 01 E9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 6D 05 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 76 CE 01 00 35 04 06 00 DF 49 D6 97 15 AF 3C BF 99 4C FA 1F EA C0 [08:46:37]CheckFolder [08:46:37]dirname=/storage/ofd_packets [08:46:37]CheckFolder done [08:46:37]ProducePacketName [08:46:37]name=ofd_packets/00118390 [08:46:37]NVStorageSaveData ofd_packets/00118390 [08:46:37]File name is /storage/ofd_packets/00118390 [08:46:37]Write 301 bytes [08:46:37]NVStorageSaveData done [08:46:37]OFDSenderStorePacket done [08:46:37]KKMCreateOFDPacket done [08:46:37]NVStorageSaveData kkm_last_timestamp [08:46:37]File name is /storage/kkm_last_timestamp [08:46:37]Write 4 bytes [08:46:37]NVStorageSaveData done [08:46:37]ExternCall_PrintAddStr [08:46:37]wPrintStart [08:46:37]Write to MH i2c: 01 00 00 59 0C 65 [08:46:37]Write i2c OK [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: 01 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: 01 07 00 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: 01 07 00 59 0C 00 00 00 00 00 FF 0F 7A [08:46:37]RasterBufferAndPrint [08:46:37]line Счет N : (1)949262 [08:46:37]line ИНН: 02508201610067 [08:46:37]line Контрольно-Кассовый Чек [08:46:37]line ПРОДАЖА [08:46:37]line ТРК (МРК, ГНК) : 53 [08:46:37]line Товар: 2710124500 [08:46:37]line Аи-95-К-3 [08:46:37]line 13.480 * 74.20 [08:46:37]line = 1000.22 [08:46:37]line НДС 12% НСП 1% [08:46:37]line > о реализуемом товаре [08:46:37]line ОКРУГЛЕНИЕ: -0.22 [08:46:37]line ИТОГО: 1000.00 [08:46:37]line Внесено: 1000.00 [08:46:37]line СДАЧА: 0.00 [08:46:37]line НСП 1% : 8.85 [08:46:37]line НДС 12% : 106.22 [08:46:37]line Наличными: 1000.00 [08:46:37]line Безнал.: 0.00 [08:46:37]line Место: АЗС № 134 "Партнер Нефть" [08:46:37]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:46:37]line СНО: Общий режим [08:46:37]line Чек 59 28.07.2024 08:46 [08:46:37]line Смена: 433 ФФД: 1.0 [08:46:37]line ЗНМ: 0300000044 [08:46:37]line РНМ: 0000000000092660 [08:46:37]line Версия ККМ: 001 [08:46:37]line ФМ: 0000000000874939 [08:46:37]line ФД: 118390 [08:46:37]line ФПД: 245508225832367 [08:46:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T084637&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118390&fm=245508225832367&tin=02508201610067®Number=0000000000092660&sum=100000 [08:46:37]OFD Sender: Processing packet 118390 [packets to send 86, broken 85] [08:46:37]ProducePacketName [08:46:37]name=ofd_packets/00118390 [08:46:37]OFD Sender: To server: pG, [08:46:37]CommunicateWithHost lk.salyk.kg:30040 [08:46:37]ConnectInit lk.salyk.kg [08:46:37]written 0, free lines is 4095 [08:46:38]Connected sock=10 [08: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 39 33 39 0F 01 00 00 32 CA 07 01 E9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 6D 05 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 76 CE 01 00 35 04 06 00 DF 49 D6 97 15 AF 3C BF 99 4C FA 1F EA C0 [08:46:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AD BB 47 00 6E D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 76 CE 01 00 F4 03 04 00 FE B2 A5 66 B6 04 01 00 00 24 3E 23 14 E4 D3 D8 10 [08:46:38]CommunicateWithHost err = 0 [08:46:38]CheckOFDResponse [08:46:38]1017 (14) - 77093643461234 [08:46:38]1041 (16) - 0000000000874939 [08:46:38]1040 (4) - 118390 [08:46:38]1012 (4) - 28.07.2024 02:54 [08:46:38]1206 (1) - 0 [08:46:38]OFD Sender: Remove packet 118390 [08:46:38]ProducePacketName [08:46:38]name=ofd_packets/00118390 [08:46:38]NVStorageDeleteData [08:46:38]Write to MH i2c: 01 00 00 83 0C 8F [08:46:38]Write i2c OK [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: 01 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: 01 07 00 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: 01 07 00 83 0C 00 00 00 00 00 E2 0C 84 [08:46:38]RasterBufferAndPrint [08:46:38]line [08:46:38]line [08:46:38]line [08:46:38]line [08:46:38]line [08:46:38]written 0, free lines is 3304 [08:46:38]MH_Cut [08:46:38]Write to MH i2c: D1 01 00 8A 0C 01 68 [08:46:38]Write i2c OK [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: D1 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: D1 01 00 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: D1 01 00 8A 0C 00 67 [08:46:38]Write to MH i2c: 01 00 00 8B 0C 97 [08:46:38]Write i2c OK [08:46:38]MH_I2C_Read... [08:46:38]OFD Sender: No OFD packet to send [08:46:39]*** Cut start [08:46:39]*** Partial cut [08:46:39]*** CUTSNS_PIN = 1 [08:46:39]*** CUTSNS_PIN = 0 [08:46:39]*** Brake cut motor [08:46:39]Read from MH i2c: 01 [08:46:39]MH_I2C_Read... [08:46:39]*** Stop cut motor [08:46:39]*** Cut end [08:46:39]Read from MH i2c: 01 07 00 [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: 01 07 00 8B 0C 00 00 00 00 00 FF 0F AC [08:46:39]process_action close_receipt done [08:46:39]requested_data is exist [08:46:39]produce_requested_data [08:46:39]requested_item fm.sn is exist - process it [08:46:39]wFMCommunicate request_size=4 [08:46:39]MH_SAM_APDU [08:46:39]CAPDU: 80 11 00 00 [08:46:39]Write to MH i2c: E2 08 00 8C 0C 80 11 00 00 00 00 00 00 12 [08:46:39]Write i2c OK [08:46:39]MH_I2C_Read... [08:46:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:39]Read from MH i2c: E2 [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: E2 17 00 [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: E2 17 00 8C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6D [08:46:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:46:39]wFMCommunicate OK [08:46:39]requested_item fd.num is exist - process it [08:46:39]SAM_PROTO_GetFieldsCounters [08:46:39]wFMCommunicate request_size=4 [08:46:39]MH_SAM_APDU [08:46:39]CAPDU: 80 13 00 00 [08:46:39]Write to MH i2c: E2 08 00 8D 0C 80 13 00 00 00 00 00 00 15 [08:46:39]Write i2c OK [08:46:39]MH_I2C_Read... [08:46:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:40]Read from MH i2c: E2 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: E2 62 00 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: E2 62 00 8D 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 76 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [08: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 76 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:46:40]wFMCommunicate OK [08:46:40]SAM_PROTO_GetFieldsCounters done [08:46:40]requested_item shift.num is exist - process it [08:46:40]requested_item shift.opened is exist - process it [08:46:40]req_shift_opened [08:46:40]FM_GetShiftState [08:46:40]SAM_PROTO_GetShiftState [08:46:40]wFMCommunicate request_size=4 [08:46:40]MH_SAM_APDU [08:46:40]CAPDU: 80 13 01 00 [08:46:40]Write to MH i2c: E2 08 00 8E 0C 80 13 01 00 00 00 00 00 17 [08:46:40]Write i2c OK [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: E2 [08:46:40]MH_I2C_Read... [08:46:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:40]Read from MH i2c: E2 0E 00 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: E2 0E 00 8E 0C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 EE [08:46:40]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:46:40]wFMCommunicate OK [08:46:40]SAM_PROTO_GetShiftState done [08:46:40]FM_GetShiftState done [08:46:40]req_shift_opened done [08:46:40]requested_item shift.open_date is exist - process it [08:46:40]req_shift_open_date [08:46:40]req_shift_open_date done [08:46:40]produce_requested_data done [08:46:40]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118390,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [08:46:40]process_action_free close_receipt [08:46:40]json_value_free [08:46:40]json_value_free done [08:46:40]process_json_proto returns [08:46:40]Send response to host [08:46:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118390,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [08:46:40]free response buf [08:46:40]execute_script done [08:46:40]execute_script returns [08:46:40]free content buf [08:46:40]Sock 9.Close socket [08:46:40]Sock 9.Thread stoped [08:46:43]OFD Sender: No OFD packet to send [08:46:48]OFD Sender: No OFD packet to send [08:46:53]OFD Sender: No OFD packet to send [08:46:58]OFD Sender: No OFD packet to send [08:47:03]OFD Sender: No OFD packet to send [08:47:08]OFD Sender: No OFD packet to send [08:47:13]OFD Sender: No OFD packet to send [08:47:18]OFD Sender: No OFD packet to send [08:47:23]OFD Sender: No OFD packet to send [08:47:28]OFD Sender: No OFD packet to send [08:47: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]accept exits with 7 [08:48:38]New connection [08:48:38]New thread 3066924388 created [08:48:38]Thread 3067067748 joined [08:48:38]Waiting for new connection... [08:48:38] Sock 7.Parse request [08:48:38]Sock 7.Check first char [08:48:38]Sock 7.First char is OK [08:48:38]request: POST /json_proto HTTP/1.0 [08:48:38]Method: POST [08:48:38]URL: /json_proto [08:48:38]Method is POST - this is cgi request [08:48:38]url: /json_proto [08:48:38]query_string will be loaded in cgi processing [08:48:38]execute_cgi json_proto POST (null) [08:48:38]execute_cgi path=json_proto method=POST [08:48:38]POST find Content-Length [08:48:38]Host: 172.17.45.7:8080 [08:48:38]Content-Length: 831 [08:48:38]Content-Type: application/json [08:48:38] [08:48:38]POST finish read [08:48:38]Found Content-Length = 831 [08:48:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 3.980, "sum" : 300.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 300.00, "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:38]execute_script... [08:48: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)949263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 3.980, "sum" : 300.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 300.00, "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:38]POST & json_proto [08:48:38]process_json_proto [08:48:38]json parsed OK: [08:48:38]protocol is kg_v1.0 [08:48:38]action value=close_receipt [08:48:38]process_action close_receipt [08:48:38]cmd_close_receipt [08:48:38]MH_GetDate [08:48:38]Write to MH i2c: F0 00 00 8F 0C 8A [08:48:38]Write i2c OK [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: F0 [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: F0 09 00 [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: F0 09 00 8F 0C 00 E8 05 A6 66 90 0F 3E 66 CF [08:48:38]GetLastDocTimeStamp 1722156397 [08:48:38]current date 1722156520 [08:48:38]FM_GetShiftState [08:48:38]SAM_PROTO_GetShiftState [08:48:38]wFMCommunicate request_size=4 [08:48:38]MH_SAM_APDU [08:48:38]CAPDU: 80 13 01 00 [08:48:38]Write to MH i2c: E2 08 00 90 0C 80 13 01 00 00 00 00 00 19 [08:48:38]Write i2c OK [08:48:38]MH_I2C_Read... [08:48:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:38]Read from MH i2c: E2 [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: E2 0E 00 [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: E2 0E 00 90 0C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 F0 [08:48:38]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:48:38]wFMCommunicate OK [08:48:38]SAM_PROTO_GetShiftState done [08:48:38]FM_GetShiftState done [08:48:38]opened in 1722125364 [08:48:38]opened+sec_in_day 1722211764 [08:48:38]quantity*price = 30060 [08:48:38]sum+1 = 30062 [08:48:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 300.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 0.00 Безнал.: 300.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 60 28.07.2024 08:48 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 118391 ФПД: 94419626765899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T084840&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118391&fm=94419626765899&tin=02508201610067®Number=0000000000092660&sum=30000 [08:48:39]StoreToDocumentArchive [08:48:39]shift 433 fd 118391 [08:48:39]save to /storage/0433/doc_00118391 [08:48:39]save last doc name /storage/0433/doc_00118391 to /storage/kkm_last_doc_name [08:48:39]save OK [08:48:39]Clear old archive folders... [08:48:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:48:39]tlvbuf is 001399F0 [08:48:39]SAM_PROTO_ClearQueue [08:48:39]wFMCommunicate request_size=4 [08:48:39]MH_SAM_APDU [08:48:39]CAPDU: 80 09 00 00 [08:48:39]Write to MH i2c: E2 08 00 9D 0C 80 09 00 00 00 00 00 00 1B [08:48:39]Write i2c OK [08:48:39]MH_I2C_Read... [08:48:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:39]Read from MH i2c: E2 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: E2 03 00 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: E2 03 00 9D 0C 00 90 00 1D [08:48:39]RAPDU: 90 00 [08:48:39]wFMCommunicate OK [08:48:39]SAM_PROTO_ClearQueue done [08:48:39]KKMCreateOFDPacket [08:48:39]OFDProtocolAddRootSTLVToBuf [08:48:39]FM_MakeSignedData [08:48:39]FM_MakeSignedData [08:48:39]SAM_PROTO_SignData [08:48:39]wFMCommunicate request_size=4 [08:48:39]MH_SAM_APDU [08:48:39]CAPDU: 80 0D 01 02 [08:48:39]Write to MH i2c: E2 08 00 9E 0C 80 0D 01 02 00 00 00 00 23 [08:48:39]Write i2c OK [08:48:39]MH_I2C_Read... [08:48:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:39]Read from MH i2c: E2 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: E2 03 00 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: E2 03 00 9E 0C 00 90 00 1E [08:48:39]RAPDU: 90 00 [08:48:39]wFMCommunicate OK [08:48:39]wFMCommunicate request_size=255 [08:48:39]MH_SAM_APDU [08:48:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 0F 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 6D 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 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 E8 05 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 77 CE 01 00 35 04 06 00 55 DF C8 50 [08:48:39]Write to MH i2c: E2 02 01 9F 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 0F 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 6D 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 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 E8 05 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 77 CE 01 00 35 04 06 00 55 DF C8 50 00 00 F8 [08:48:39]Write i2c OK [08:48:39]MH_I2C_Read... [08:48:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:39]Read from MH i2c: E2 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: E2 03 00 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: E2 03 00 9F 0C 00 90 00 1F [08:48:39]RAPDU: 90 00 [08:48:39]wFMCommunicate OK [08:48:39]wFMCommunicate request_size=7 [08:48:39]MH_SAM_APDU [08:48:39]CAPDU: 80 0D 02 02 02 2E 4B [08:48:39]Write to MH i2c: E2 0A 00 A0 0C 80 0D 02 02 02 00 2E 4B 00 00 A3 [08:48:39]Write i2c OK [08:48:39]MH_I2C_Read... [08:48:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:39]Read from MH i2c: E2 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: E2 03 00 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: E2 03 00 A0 0C 00 90 00 20 [08:48:39]RAPDU: 90 00 [08:48:39]wFMCommunicate OK [08:48:39]wFMCommunicate request_size=4 [08:48:39]MH_SAM_APDU [08:48:39]CAPDU: 80 0D 03 02 [08:48:39]Write to MH i2c: E2 08 00 A1 0C 80 0D 03 02 00 00 00 00 28 [08:48:39]Write i2c OK [08:48:39]MH_I2C_Read... [08:48:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:39]Read from MH i2c: E2 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: E2 0B 00 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: E2 0B 00 A1 0C 00 61 39 6D F0 CF 52 42 31 90 00 B4 [08:48:39]RAPDU: 61 39 6D F0 CF 52 42 31 90 00 [08:48:39]wFMCommunicate OK [08:48:39]SAM_PROTO_SignData done [08:48:39]FM_MakeSignedData done [08:48:39]CreateOFDProtocolMessage [08:48:39]wFMCommunicate request_size=4 [08:48:39]MH_SAM_APDU [08:48:39]CAPDU: 80 11 00 00 [08:48:39]Write to MH i2c: E2 08 00 A2 0C 80 11 00 00 00 00 00 00 28 [08:48:39]Write i2c OK [08:48:39]MH_I2C_Read... [08:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:40]Read from MH i2c: E2 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: E2 17 00 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: E2 17 00 A2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 83 [08:48:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:48:40]wFMCommunicate OK [08:48:40]CreateOFDProtocolMessage done [08:48:40]OFDSenderStorePacket 118391 [08:48:40]StoreOFDPacket docnum=118391 [08:48:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F9 34 04 01 02 32 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 0F 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 6D 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 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 E8 05 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 77 CE 01 00 35 04 06 00 55 DF C8 50 2E 4B 61 39 6D F0 CF 52 42 31 [08:48:40]CheckFolder [08:48:40]dirname=/storage/ofd_packets [08:48:40]CheckFolder done [08:48:40]ProducePacketName [08:48:40]name=ofd_packets/00118391 [08:48:40]NVStorageSaveData ofd_packets/00118391 [08:48:40]File name is /storage/ofd_packets/00118391 [08:48:40]Write 298 bytes [08:48:40]NVStorageSaveData done [08:48:40]OFDSenderStorePacket done [08:48:40]KKMCreateOFDPacket done [08:48:40]NVStorageSaveData kkm_last_timestamp [08:48:40]File name is /storage/kkm_last_timestamp [08:48:40]Write 4 bytes [08:48:40]NVStorageSaveData done [08:48:40]ExternCall_PrintAddStr [08:48:40]wPrintStart [08:48:40]Write to MH i2c: 01 00 00 A3 0C AF [08:48:40]Write i2c OK [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: 01 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: 01 07 00 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: 01 07 00 A3 0C 00 00 00 00 00 FF 0F C4 [08:48:40]RasterBufferAndPrint [08:48:40]line Счет N : (1)949263 [08:48:40]line ИНН: 02508201610067 [08:48:40]line Контрольно-Кассовый Чек [08:48:40]line ПРОДАЖА [08:48:40]line ТРК (МРК, ГНК) : 21 [08:48:40]line Товар: 2710194800 [08:48:40]line ДТ-К-5 [08:48:40]line 3.980 * 75.53 [08:48:40]line = 300.61 [08:48:40]line НДС 12% НСП 1% [08:48:40]line > о реализуемом товаре [08:48:40]line ОКРУГЛЕНИЕ: -0.61 [08:48:40]line ИТОГО: 300.00 [08:48:40]line НСП 1% : 2.66 [08:48:40]line НДС 12% : 31.92 [08:48:40]line Наличными: 0.00 [08:48:40]line Безнал.: 300.00 [08:48:40]line Место: АЗС № 134 "Партнер Нефть" [08:48:40]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:48:40]line СНО: Общий режим [08:48:40]line Чек 60 28.07.2024 08:48 [08:48:40]line Смена: 433 ФФД: 1.0 [08:48:40]line ЗНМ: 0300000044 [08:48:40]line РНМ: 0000000000092660 [08:48:40]line Версия ККМ: 001 [08:48:40]line Платежная система: Бакай Банк [08:48:40]line ФМ: 0000000000874939 [08:48:40]line ФД: 118391 [08:48:40]line ФПД: 94419626765899 [08:48:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T084840&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118391&fm=94419626765899&tin=02508201610067®Number=0000000000092660&sum=30000 [08:48:40]OFD Sender: Processing packet 118391 [packets to send 86, broken 85] [08:48:40]ProducePacketName [08:48:40]name=ofd_packets/00118391 [08:48:40]OFD Sender: To server: pG, [08:48:40]CommunicateWithHost lk.salyk.kg:30040 [08:48:40]ConnectInit lk.salyk.kg [08:48:40]written 0, free lines is 4095 [08:48:40]Connected sock=10 [08:48: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 39 33 39 0C 01 00 00 F9 34 04 01 02 32 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 0F 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 6D 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 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 E8 05 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 77 CE 01 00 35 04 06 00 55 DF C8 50 2E 4B 61 39 6D F0 CF 52 42 31 [08:48:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E1 0E 47 00 BB 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 39 33 39 10 04 04 00 77 CE 01 00 F4 03 04 00 78 B3 A5 66 B6 04 01 00 00 2D FA 06 BA 99 0A 6C 11 [08:48:40]CommunicateWithHost err = 0 [08:48:40]CheckOFDResponse [08:48:40]1017 (14) - 77093643461234 [08:48:40]1041 (16) - 0000000000874939 [08:48:40]1040 (4) - 118391 [08:48:40]1012 (4) - 28.07.2024 02:56 [08:48:40]1206 (1) - 0 [08:48:40]OFD Sender: Remove packet 118391 [08:48:40]ProducePacketName [08:48:40]name=ofd_packets/00118391 [08:48:40]NVStorageDeleteData [08:48:40]Write to MH i2c: 01 00 00 CD 0C D9 [08:48:40]Write i2c OK [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: 01 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: 01 07 00 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: 01 07 00 CD 0C 00 00 00 00 00 E4 0C D0 [08:48:40]RasterBufferAndPrint [08:48:40]line [08:48:40]line [08:48:40]line [08:48:40]line [08:48:40]line [08:48:40]written 0, free lines is 3307 [08:48:40]MH_Cut [08:48:40]Write to MH i2c: D1 01 00 D4 0C 01 B2 [08:48:40]Write i2c OK [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: D1 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: D1 01 00 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: D1 01 00 D4 0C 00 B1 [08:48:40]Write to MH i2c: 01 00 00 D5 0C E1 [08:48:40]Write i2c OK [08:48:40]MH_I2C_Read... [08:48:41]OFD Sender: No OFD packet to send [08:48:41]*** Cut start [08:48:41]*** Partial cut [08:48:41]*** CUTSNS_PIN = 1 [08:48:41]*** CUTSNS_PIN = 0 [08:48:41]*** Brake cut motor [08:48:42]Read from MH i2c: 01 [08:48:42]MH_I2C_Read... [08:48:42]*** Stop cut motor [08:48:42]*** Cut end [08:48:42]Read from MH i2c: 01 07 00 [08:48:42]MH_I2C_Read... [08:48:42]Read from MH i2c: 01 07 00 D5 0C 00 00 00 00 00 FF 0F F6 [08:48:42]process_action close_receipt done [08:48:42]requested_data is exist [08:48:42]produce_requested_data [08:48:42]requested_item fm.sn is exist - process it [08:48:42]wFMCommunicate request_size=4 [08:48:42]MH_SAM_APDU [08:48:42]CAPDU: 80 11 00 00 [08:48:42]Write to MH i2c: E2 08 00 D6 0C 80 11 00 00 00 00 00 00 5C [08:48:42]Write i2c OK [08:48:42]MH_I2C_Read... [08:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:42]Read from MH i2c: E2 [08:48:42]MH_I2C_Read... [08:48:42]Read from MH i2c: E2 17 00 [08:48:42]MH_I2C_Read... [08:48:42]Read from MH i2c: E2 17 00 D6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B7 [08:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:48:42]wFMCommunicate OK [08:48:42]requested_item fd.num is exist - process it [08:48:42]SAM_PROTO_GetFieldsCounters [08:48:42]wFMCommunicate request_size=4 [08:48:42]MH_SAM_APDU [08:48:42]CAPDU: 80 13 00 00 [08:48:42]Write to MH i2c: E2 08 00 D7 0C 80 13 00 00 00 00 00 00 5F [08:48:42]Write i2c OK [08:48:42]MH_I2C_Read... [08:48:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:42]Read from MH i2c: E2 [08:48:42]MH_I2C_Read... [08:48:42]Read from MH i2c: E2 62 00 [08:48:42]MH_I2C_Read... [08:48:42]Read from MH i2c: E2 62 00 D7 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 77 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [08:48: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 77 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:48:42]wFMCommunicate OK [08:48:42]SAM_PROTO_GetFieldsCounters done [08:48:42]requested_item shift.num is exist - process it [08:48:42]requested_item shift.opened is exist - process it [08:48:42]req_shift_opened [08:48:42]FM_GetShiftState [08:48:42]SAM_PROTO_GetShiftState [08:48:42]wFMCommunicate request_size=4 [08:48:42]MH_SAM_APDU [08:48:42]CAPDU: 80 13 01 00 [08:48:42]Write to MH i2c: E2 08 00 D8 0C 80 13 01 00 00 00 00 00 61 [08:48:42]Write i2c OK [08:48:42]MH_I2C_Read... [08:48:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:42]Read from MH i2c: E2 [08:48:42]MH_I2C_Read... [08:48:42]Read from MH i2c: E2 0E 00 [08:48:42]MH_I2C_Read... [08:48:42]Read from MH i2c: E2 0E 00 D8 0C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 38 [08:48:42]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:48:42]wFMCommunicate OK [08:48:42]SAM_PROTO_GetShiftState done [08:48:42]FM_GetShiftState done [08:48:42]req_shift_opened done [08:48:42]requested_item shift.open_date is exist - process it [08:48:42]req_shift_open_date [08:48:42]req_shift_open_date done [08:48:42]produce_requested_data done [08:48:42]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118391,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [08:48:42]process_action_free close_receipt [08:48:42]json_value_free [08:48:42]json_value_free done [08:48:42]process_json_proto returns [08:48:42]Send response to host [08:48:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118391,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [08:48:42]free response buf [08:48:42]execute_script done [08:48:42]execute_script returns [08:48:42]free content buf [08:48:42]Sock 7.Close socket [08:48:42]Sock 7.Thread stoped [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:22]accept exits with 9 [08:51:22]New connection [08:51:22]New thread 3067067748 created [08:51:22]Thread 3066924388 joined [08:51:22]Waiting for new connection... [08:51:22] Sock 9.Parse request [08:51:22]Sock 9.Check first char [08:51:22]Sock 9.First char is OK [08:51:22]request: POST /json_proto HTTP/1.0 [08:51:22]Method: POST [08:51:22]URL: /json_proto [08:51:22]Method is POST - this is cgi request [08:51:22]url: /json_proto [08:51:22]query_string will be loaded in cgi processing [08:51:22]execute_cgi json_proto POST (null) [08:51:22]execute_cgi path=json_proto method=POST [08:51:22]POST find Content-Length [08:51:22]Host: 172.17.45.7:8080 [08:51:22]Content-Length: 677 [08:51:22]Content-Type: application/json [08:51:22] [08:51:22]POST finish read [08:51:22]Found Content-Length = 677 [08:51:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:22]execute_script... [08:51:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:22]POST & json_proto [08:51:22]process_json_proto [08:51:22]json parsed OK: [08:51:22]protocol is kg_v1.0 [08:51:22]action value=close_receipt [08:51:22]process_action close_receipt [08:51:22]cmd_close_receipt [08:51:22]MH_GetDate [08:51:22]Write to MH i2c: F0 00 00 D9 0C D4 [08:51:22]Write i2c OK [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: F0 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: F0 09 00 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: F0 09 00 D9 0C 00 8C 06 A6 66 90 0F 3E 66 BE [08:51:22]GetLastDocTimeStamp 1722156520 [08:51:22]current date 1722156684 [08:51:22]FM_GetShiftState [08:51:22]SAM_PROTO_GetShiftState [08:51:22]wFMCommunicate request_size=4 [08:51:22]MH_SAM_APDU [08:51:22]CAPDU: 80 13 01 00 [08:51:22]Write to MH i2c: E2 08 00 DA 0C 80 13 01 00 00 00 00 00 63 [08:51:22]Write i2c OK [08:51:22]MH_I2C_Read... [08:51:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:22]Read from MH i2c: E2 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 0E 00 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 0E 00 DA 0C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 3A [08:51:22]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:51:22]wFMCommunicate OK [08:51:22]SAM_PROTO_GetShiftState done [08:51:22]FM_GetShiftState done [08:51:22]opened in 1722125364 [08:51:22]opened+sec_in_day 1722211764 [08:51:22]quantity*price = 50036 [08:51:22]sum+1 = 50037 [08:51:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 61 28.07.2024 08:51 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118392 ФПД: 47492113743760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T085124&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118392&fm=47492113743760&tin=02508201610067®Number=0000000000092660&sum=50000 [08:51:23]StoreToDocumentArchive [08:51:23]shift 433 fd 118392 [08:51:23]save to /storage/0433/doc_00118392 [08:51:23]save last doc name /storage/0433/doc_00118392 to /storage/kkm_last_doc_name [08:51:23]save OK [08:51:23]Clear old archive folders... [08:51:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:51:23]tlvbuf is 00101CD0 [08:51:23]SAM_PROTO_ClearQueue [08:51:23]wFMCommunicate request_size=4 [08:51:23]MH_SAM_APDU [08:51:23]CAPDU: 80 09 00 00 [08:51:23]Write to MH i2c: E2 08 00 E7 0C 80 09 00 00 00 00 00 00 65 [08:51:23]Write i2c OK [08:51:23]MH_I2C_Read... [08:51:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:23]Read from MH i2c: E2 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: E2 03 00 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: E2 03 00 E7 0C 00 90 00 67 [08:51:23]RAPDU: 90 00 [08:51:23]wFMCommunicate OK [08:51:23]SAM_PROTO_ClearQueue done [08:51:23]KKMCreateOFDPacket [08:51:23]OFDProtocolAddRootSTLVToBuf [08:51:23]FM_MakeSignedData [08:51:23]FM_MakeSignedData [08:51:23]SAM_PROTO_SignData [08:51:23]wFMCommunicate request_size=4 [08:51:23]MH_SAM_APDU [08:51:23]CAPDU: 80 0D 01 02 [08:51:23]Write to MH i2c: E2 08 00 E8 0C 80 0D 01 02 00 00 00 00 6D [08:51:23]Write i2c OK [08:51:23]MH_I2C_Read... [08:51:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:24]Read from MH i2c: E2 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 03 00 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 03 00 E8 0C 00 90 00 68 [08:51:24]RAPDU: 90 00 [08:51:24]wFMCommunicate OK [08:51:24]wFMCommunicate request_size=255 [08:51:24]MH_SAM_APDU [08:51:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 8C 06 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 78 CE 01 00 35 04 06 00 2B [08:51:24]Write to MH i2c: E2 02 01 E9 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 8C 06 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 78 CE 01 00 35 04 06 00 2B 00 00 F0 [08:51:24]Write i2c OK [08:51:24]MH_I2C_Read... [08:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:24]Read from MH i2c: E2 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 03 00 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 03 00 E9 0C 00 90 00 69 [08:51:24]RAPDU: 90 00 [08:51:24]wFMCommunicate OK [08:51:24]wFMCommunicate request_size=10 [08:51:24]MH_SAM_APDU [08:51:24]CAPDU: 80 0D 02 02 05 31 9E 91 BF 90 [08:51:24]Write to MH i2c: E2 0D 00 EA 0C 80 0D 02 02 05 00 31 9E 91 BF 90 00 00 29 [08:51:24]Write i2c OK [08:51:24]MH_I2C_Read... [08:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:24]Read from MH i2c: E2 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 03 00 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 03 00 EA 0C 00 90 00 6A [08:51:24]RAPDU: 90 00 [08:51:24]wFMCommunicate OK [08:51:24]wFMCommunicate request_size=4 [08:51:24]MH_SAM_APDU [08:51:24]CAPDU: 80 0D 03 02 [08:51:24]Write to MH i2c: E2 08 00 EB 0C 80 0D 03 02 00 00 00 00 72 [08:51:24]Write i2c OK [08:51:24]MH_I2C_Read... [08:51:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:24]Read from MH i2c: E2 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 0B 00 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 0B 00 EB 0C 00 3E D9 4A A6 CE A4 A2 CC 90 00 5A [08:51:24]RAPDU: 3E D9 4A A6 CE A4 A2 CC 90 00 [08:51:24]wFMCommunicate OK [08:51:24]SAM_PROTO_SignData done [08:51:24]FM_MakeSignedData done [08:51:24]CreateOFDProtocolMessage [08:51:24]wFMCommunicate request_size=4 [08:51:24]MH_SAM_APDU [08:51:24]CAPDU: 80 11 00 00 [08:51:24]Write to MH i2c: E2 08 00 EC 0C 80 11 00 00 00 00 00 00 72 [08:51:24]Write i2c OK [08:51:24]MH_I2C_Read... [08:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:24]Read from MH i2c: E2 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 17 00 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 17 00 EC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CD [08:51:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:51:24]wFMCommunicate OK [08:51:24]CreateOFDProtocolMessage done [08:51:24]OFDSenderStorePacket 118392 [08:51:24]StoreOFDPacket docnum=118392 [08:51:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 47 DC 07 01 14 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 8C 06 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 78 CE 01 00 35 04 06 00 2B 31 9E 91 BF 90 3E D9 4A A6 CE A4 A2 CC [08:51:24]CheckFolder [08:51:24]dirname=/storage/ofd_packets [08:51:24]CheckFolder done [08:51:24]ProducePacketName [08:51:24]name=ofd_packets/00118392 [08:51:24]NVStorageSaveData ofd_packets/00118392 [08:51:24]File name is /storage/ofd_packets/00118392 [08:51:24]Write 301 bytes [08:51:24]NVStorageSaveData done [08:51:24]OFDSenderStorePacket done [08:51:24]KKMCreateOFDPacket done [08:51:24]NVStorageSaveData kkm_last_timestamp [08:51:24]File name is /storage/kkm_last_timestamp [08:51:24]Write 4 bytes [08:51:24]NVStorageSaveData done [08:51:24]OFD Sender: Processing packet 118392 [packets to send 86, broken 85] [08:51:24]ProducePacketName [08:51:24]name=ofd_packets/00118392 [08:51:24]OFD Sender: To server: pG, [08:51:24]CommunicateWithHost lk.salyk.kg:30040 [08:51:24]ConnectInit lk.salyk.kg [08:51:24]ExternCall_PrintAddStr [08:51:24]wPrintStart [08:51:24]Write to MH i2c: 01 00 00 ED 0C F9 [08:51:24]Write i2c OK [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: 01 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: 01 07 00 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: 01 07 00 ED 0C 00 00 00 00 00 FF 0F 0E [08:51:24]RasterBufferAndPrint [08:51:24]line Счет N : (1)949264 [08:51:24]line ИНН: 02508201610067 [08:51:24]line Контрольно-Кассовый Чек [08:51:24]line ПРОДАЖА [08:51:24]line ТРК (МРК, ГНК) : 31 [08:51:24]line Товар: 2710124130 [08:51:24]line Аи-92-К-4 [08:51:24]line 7.380 * 67.80 [08:51:24]line = 500.36 [08:51:24]line НДС 12% НСП 1% [08:51:24]line > о реализуемом товаре [08:51:24]line ОКРУГЛЕНИЕ: -0.36 [08:51:24]line ИТОГО: 500.00 [08:51:24]line Внесено: 500.00 [08:51:24]line СДАЧА: 0.00 [08:51:24]line НСП 1% : 4.43 [08:51:24]line НДС 12% : 53.14 [08:51:24]line Наличными: 500.00 [08:51:24]line Безнал.: 0.00 [08:51:24]line Место: АЗС № 134 "Партнер Нефть" [08:51:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:51:24]line СНО: Общий режим [08:51:24]line Чек 61 28.07.2024 08:51 [08:51:24]line Смена: 433 ФФД: 1.0 [08:51:24]line ЗНМ: 0300000044 [08:51:24]line РНМ: 0000000000092660 [08:51:24]line Версия ККМ: 001 [08:51:24]line ФМ: 0000000000874939 [08:51:24]line ФД: 118392 [08:51:24]line ФПД: 47492113743760 [08:51:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T085124&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118392&fm=47492113743760&tin=02508201610067®Number=0000000000092660&sum=50000 [08:51:24]Connected sock=11 [08:51:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 47 DC 07 01 14 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 8C 06 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 78 CE 01 00 35 04 06 00 2B 31 9E 91 BF 90 3E D9 4A A6 CE A4 A2 CC [08:51:24]written 0, free lines is 4095 [08:51:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 32 F6 47 00 38 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 78 CE 01 00 F4 03 04 00 1D B4 A5 66 B6 04 01 00 00 D1 21 48 5F 42 8E 79 B7 [08:51:24]CommunicateWithHost err = 0 [08:51:24]CheckOFDResponse [08:51:24]1017 (14) - 77093643461234 [08:51:24]1041 (16) - 0000000000874939 [08:51:24]1040 (4) - 118392 [08:51:24]1012 (4) - 28.07.2024 02:59 [08:51:24]1206 (1) - 0 [08:51:24]OFD Sender: Remove packet 118392 [08:51:24]ProducePacketName [08:51:24]name=ofd_packets/00118392 [08:51:24]NVStorageDeleteData [08:51:25]Write to MH i2c: 01 00 00 17 0D 24 [08:51:25]Write i2c OK [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: 01 [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: 01 07 00 [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: 01 07 00 17 0D 00 00 00 00 00 D7 0C 0E [08:51:25]RasterBufferAndPrint [08:51:25]line [08:51:25]line [08:51:25]line [08:51:25]line [08:51:25]line [08:51:25]written 0, free lines is 3294 [08:51:25]MH_Cut [08:51:25]Write to MH i2c: D1 01 00 1E 0D 01 FD [08:51:25]Write i2c OK [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: D1 [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: D1 01 00 [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: D1 01 00 1E 0D 00 FC [08:51:25]Write to MH i2c: 01 00 00 1F 0D 2C [08:51:25]Write i2c OK [08:51:25]MH_I2C_Read... [08:51:25]OFD Sender: No OFD packet to send [08:51:25]*** Cut start [08:51:25]*** Partial cut [08:51:25]*** CUTSNS_PIN = 1 [08:51:26]*** CUTSNS_PIN = 0 [08:51:26]*** Brake cut motor [08:51:26]Read from MH i2c: 01 [08:51:26]MH_I2C_Read... [08:51:26]*** Stop cut motor [08:51:26]*** Cut end [08:51:26]Read from MH i2c: 01 07 00 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: 01 07 00 1F 0D 00 00 00 00 00 FF 0F 41 [08:51:26]process_action close_receipt done [08:51:26]requested_data is exist [08:51:26]produce_requested_data [08:51:26]requested_item fm.sn is exist - process it [08:51:26]wFMCommunicate request_size=4 [08:51:26]MH_SAM_APDU [08:51:26]CAPDU: 80 11 00 00 [08:51:26]Write to MH i2c: E2 08 00 20 0D 80 11 00 00 00 00 00 00 A7 [08:51:26]Write i2c OK [08:51:26]MH_I2C_Read... [08:51:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:26]Read from MH i2c: E2 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: E2 17 00 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: E2 17 00 20 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 02 [08:51:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:51:26]wFMCommunicate OK [08:51:26]requested_item fd.num is exist - process it [08:51:26]SAM_PROTO_GetFieldsCounters [08:51:26]wFMCommunicate request_size=4 [08:51:26]MH_SAM_APDU [08:51:26]CAPDU: 80 13 00 00 [08:51:26]Write to MH i2c: E2 08 00 21 0D 80 13 00 00 00 00 00 00 AA [08:51:26]Write i2c OK [08:51:26]MH_I2C_Read... [08:51:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:26]Read from MH i2c: E2 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: E2 62 00 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: E2 62 00 21 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 78 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [08:51:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 78 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:51:26]wFMCommunicate OK [08:51:26]SAM_PROTO_GetFieldsCounters done [08:51:26]requested_item shift.num is exist - process it [08:51:26]requested_item shift.opened is exist - process it [08:51:26]req_shift_opened [08:51:26]FM_GetShiftState [08:51:26]SAM_PROTO_GetShiftState [08:51:26]wFMCommunicate request_size=4 [08:51:26]MH_SAM_APDU [08:51:26]CAPDU: 80 13 01 00 [08:51:26]Write to MH i2c: E2 08 00 22 0D 80 13 01 00 00 00 00 00 AC [08:51:26]Write i2c OK [08:51:26]MH_I2C_Read... [08:51:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:26]Read from MH i2c: E2 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: E2 0E 00 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: E2 0E 00 22 0D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 83 [08:51:26]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:51:26]wFMCommunicate OK [08:51:26]SAM_PROTO_GetShiftState done [08:51:26]FM_GetShiftState done [08:51:26]req_shift_opened done [08:51:26]requested_item shift.open_date is exist - process it [08:51:26]req_shift_open_date [08:51:26]req_shift_open_date done [08:51:26]produce_requested_data done [08:51:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118392,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [08:51:26]process_action_free close_receipt [08:51:26]json_value_free [08:51:26]json_value_free done [08:51:26]process_json_proto returns [08:51:26]Send response to host [08:51:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118392,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [08:51:26]free response buf [08:51:26]execute_script done [08:51:26]execute_script returns [08:51:26]free content buf [08:51:26]Sock 9.Close socket [08:51:26]Sock 9.Thread stoped [08:51:30]OFD Sender: No OFD packet to send [08:51:35]OFD Sender: No OFD packet to send [08:51:40]OFD Sender: No OFD packet to send [08:51:45]OFD Sender: No OFD packet to send [08:51:50]OFD Sender: No OFD packet to send [08:51:55]OFD Sender: No OFD packet to send [08:52:00]OFD Sender: No OFD packet to send [08:52:05]OFD Sender: No OFD packet to send [08:52:10]OFD Sender: No OFD packet to send [08:52:15]OFD Sender: No OFD packet to send [08:52:20]OFD Sender: No OFD packet to send [08:52:25]OFD Sender: No OFD packet to send [08:52:30]OFD Sender: No OFD packet to send [08:52:35]OFD Sender: No OFD packet to send [08:52:40]OFD Sender: No OFD packet to send [08:52:45]OFD Sender: No OFD packet to send [08:52:50]OFD Sender: No OFD packet to send [08:52:55]OFD Sender: No OFD packet to send [08:53:00]OFD Sender: No OFD packet to send [08:53:05]OFD Sender: No OFD packet to send [08:53:10]OFD Sender: No OFD packet to send [08:53:15]OFD Sender: No OFD packet to send [08:53:20]OFD Sender: No OFD packet to send [08:53:25]OFD Sender: No OFD packet to send [08:53:30]OFD Sender: No OFD packet to send [08:53:35]OFD Sender: No OFD packet to send [08:53:40]OFD Sender: No OFD packet to send [08:53:45]OFD Sender: No OFD packet to send [08:53:50]OFD Sender: No OFD packet to send [08:53:55]OFD Sender: No OFD packet to send [08:54:00]OFD Sender: No OFD packet to send [08:54:05]OFD Sender: No OFD packet to send [08:54:10]OFD Sender: No OFD packet to send [08:54:15]OFD Sender: No OFD packet to send [08:54:20]OFD Sender: No OFD packet to send [08:54:25]OFD Sender: No OFD packet to send [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54:40]OFD Sender: No OFD packet to send [08:54:45]OFD Sender: No OFD packet to send [08:54:50]OFD Sender: No OFD packet to send [08:54:55]OFD Sender: No OFD packet to send [08:55:00]OFD Sender: No OFD packet to send [08:55:05]OFD Sender: No OFD packet to send [08:55:10]OFD Sender: No OFD packet to send [08:55:15]OFD Sender: No OFD packet to send [08:55:20]OFD Sender: No OFD packet to send [08:55:25]OFD Sender: No OFD packet to send [08:55:30]OFD Sender: No OFD packet to send [08:55:35]OFD Sender: No OFD packet to send [08:55:40]OFD Sender: No OFD packet to send [08:55:45]OFD Sender: No OFD packet to send [08:55:50]OFD Sender: No OFD packet to send [08:55:50]accept exits with 7 [08:55:50]New connection [08:55:50]New thread 3066924388 created [08:55:50]Thread 3067067748 joined [08:55:50]Waiting for new connection... [08:55:50] Sock 7.Parse request [08:55:50]Sock 7.Check first char [08:55:50]Sock 7.First char is OK [08:55:50]request: POST /json_proto HTTP/1.0 [08:55:50]Method: POST [08:55:50]URL: /json_proto [08:55:50]Method is POST - this is cgi request [08:55:50]url: /json_proto [08:55:50]query_string will be loaded in cgi processing [08:55:50]execute_cgi json_proto POST (null) [08:55:50]execute_cgi path=json_proto method=POST [08:55:50]POST find Content-Length [08:55:50]Host: 172.17.45.7:8080 [08:55:50]Content-Length: 677 [08:55:50]Content-Type: application/json [08:55:50] [08:55:50]POST finish read [08:55:50]Found Content-Length = 677 [08:55:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:55:50]execute_script... [08:55: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)949265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:55:50]POST & json_proto [08:55:50]process_json_proto [08:55:50]json parsed OK: [08:55:50]protocol is kg_v1.0 [08:55:50]action value=close_receipt [08:55:50]process_action close_receipt [08:55:50]cmd_close_receipt [08:55:50]MH_GetDate [08:55:50]Write to MH i2c: F0 00 00 23 0D 1F [08:55:50]Write i2c OK [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: F0 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: F0 09 00 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: F0 09 00 23 0D 00 98 07 A6 66 90 0F 3E 66 16 [08:55:50]GetLastDocTimeStamp 1722156684 [08:55:50]current date 1722156952 [08:55:50]FM_GetShiftState [08:55:50]SAM_PROTO_GetShiftState [08:55:50]wFMCommunicate request_size=4 [08:55:50]MH_SAM_APDU [08:55:50]CAPDU: 80 13 01 00 [08:55:50]Write to MH i2c: E2 08 00 24 0D 80 13 01 00 00 00 00 00 AE [08:55:50]Write i2c OK [08:55:50]MH_I2C_Read... [08:55:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:50]Read from MH i2c: E2 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: E2 0E 00 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: E2 0E 00 24 0D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 85 [08:55:50]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:55:50]wFMCommunicate OK [08:55:50]SAM_PROTO_GetShiftState done [08:55:50]FM_GetShiftState done [08:55:50]opened in 1722125364 [08:55:50]opened+sec_in_day 1722211764 [08:55:50]quantity*price = 60003 [08:55:50]sum+1 = 60004 [08:55:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 62 28.07.2024 08:55 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118393 ФПД: 207073071840851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T085552&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118393&fm=207073071840851&tin=02508201610067®Number=0000000000092660&sum=60000 [08:55:52]StoreToDocumentArchive [08:55:52]shift 433 fd 118393 [08:55:52]save to /storage/0433/doc_00118393 [08:55:52]save last doc name /storage/0433/doc_00118393 to /storage/kkm_last_doc_name [08:55:52]save OK [08:55:52]Clear old archive folders... [08:55:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:55:52]tlvbuf is 0019F1A0 [08:55:52]SAM_PROTO_ClearQueue [08:55:52]wFMCommunicate request_size=4 [08:55:52]MH_SAM_APDU [08:55:52]CAPDU: 80 09 00 00 [08:55:52]Write to MH i2c: E2 08 00 31 0D 80 09 00 00 00 00 00 00 B0 [08:55:52]Write i2c OK [08:55:52]MH_I2C_Read... [08:55:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:52]Read from MH i2c: E2 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: E2 03 00 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: E2 03 00 31 0D 00 90 00 B2 [08:55:52]RAPDU: 90 00 [08:55:52]wFMCommunicate OK [08:55:52]SAM_PROTO_ClearQueue done [08:55:52]KKMCreateOFDPacket [08:55:52]OFDProtocolAddRootSTLVToBuf [08:55:52]FM_MakeSignedData [08:55:52]FM_MakeSignedData [08:55:52]SAM_PROTO_SignData [08:55:52]wFMCommunicate request_size=4 [08:55:52]MH_SAM_APDU [08:55:52]CAPDU: 80 0D 01 02 [08:55:52]Write to MH i2c: E2 08 00 32 0D 80 0D 01 02 00 00 00 00 B8 [08:55:52]Write i2c OK [08:55:52]MH_I2C_Read... [08:55:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:52]Read from MH i2c: E2 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: E2 03 00 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: E2 03 00 32 0D 00 90 00 B3 [08:55:52]RAPDU: 90 00 [08:55:52]wFMCommunicate OK [08:55:52]wFMCommunicate request_size=255 [08:55:52]MH_SAM_APDU [08:55: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 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 3E 00 00 00 F4 03 04 00 98 07 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 79 CE 01 00 35 04 06 00 BC [08:55:52]Write to MH i2c: E2 02 01 33 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 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 3E 00 00 00 F4 03 04 00 98 07 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 79 CE 01 00 35 04 06 00 BC 00 00 A2 [08:55:52]Write i2c OK [08:55:52]MH_I2C_Read... [08:55:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:52]Read from MH i2c: E2 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: E2 03 00 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: E2 03 00 33 0D 00 90 00 B4 [08:55:52]RAPDU: 90 00 [08:55:52]wFMCommunicate OK [08:55:52]wFMCommunicate request_size=10 [08:55:52]MH_SAM_APDU [08:55:52]CAPDU: 80 0D 02 02 05 54 F4 E3 BE 53 [08:55:52]Write to MH i2c: E2 0D 00 34 0D 80 0D 02 02 05 00 54 F4 E3 BE 53 00 00 01 [08:55:52]Write i2c OK [08:55:52]MH_I2C_Read... [08:55:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:52]Read from MH i2c: E2 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: E2 03 00 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: E2 03 00 34 0D 00 90 00 B5 [08:55:52]RAPDU: 90 00 [08:55:52]wFMCommunicate OK [08:55:52]wFMCommunicate request_size=4 [08:55:52]MH_SAM_APDU [08:55:52]CAPDU: 80 0D 03 02 [08:55:52]Write to MH i2c: E2 08 00 35 0D 80 0D 03 02 00 00 00 00 BD [08:55:52]Write i2c OK [08:55:52]MH_I2C_Read... [08:55:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:52]Read from MH i2c: E2 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: E2 0B 00 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: E2 0B 00 35 0D 00 12 59 BF 60 08 43 78 47 90 00 52 [08:55:52]RAPDU: 12 59 BF 60 08 43 78 47 90 00 [08:55:52]wFMCommunicate OK [08:55:52]SAM_PROTO_SignData done [08:55:52]FM_MakeSignedData done [08:55:52]CreateOFDProtocolMessage [08:55:52]wFMCommunicate request_size=4 [08:55:52]MH_SAM_APDU [08:55:52]CAPDU: 80 11 00 00 [08:55:52]Write to MH i2c: E2 08 00 36 0D 80 11 00 00 00 00 00 00 BD [08:55:52]Write i2c OK [08:55:52]MH_I2C_Read... [08:55:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:52]Read from MH i2c: E2 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: E2 17 00 [08:55:52]MH_I2C_Read... [08:55:52]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 39 33 39 90 00 18 [08:55:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:55:52]wFMCommunicate OK [08:55:52]CreateOFDProtocolMessage done [08:55:52]OFDSenderStorePacket 118393 [08:55:52]StoreOFDPacket docnum=118393 [08:55:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F4 AA 07 01 0C 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 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 3E 00 00 00 F4 03 04 00 98 07 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 79 CE 01 00 35 04 06 00 BC 54 F4 E3 BE 53 12 59 BF 60 08 43 78 47 [08:55:52]CheckFolder [08:55:52]dirname=/storage/ofd_packets [08:55:52]CheckFolder done [08:55:52]ProducePacketName [08:55:52]name=ofd_packets/00118393 [08:55:52]NVStorageSaveData ofd_packets/00118393 [08:55:52]File name is /storage/ofd_packets/00118393 [08:55:52]Write 301 bytes [08:55:52]NVStorageSaveData done [08:55:52]OFDSenderStorePacket done [08:55:52]KKMCreateOFDPacket done [08:55:52]NVStorageSaveData kkm_last_timestamp [08:55:52]File name is /storage/kkm_last_timestamp [08:55:52]Write 4 bytes [08:55:52]NVStorageSaveData done [08:55:52]ExternCall_PrintAddStr [08:55:52]wPrintStart [08:55:52]Write to MH i2c: 01 00 00 37 0D 44 [08:55:52]Write i2c OK [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: 01 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: 01 07 00 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: 01 07 00 37 0D 00 00 00 00 00 FF 0F 59 [08:55:52]RasterBufferAndPrint [08:55:52]line Счет N : (1)949265 [08:55:52]line ИНН: 02508201610067 [08:55:52]line Контрольно-Кассовый Чек [08:55:52]line ПРОДАЖА [08:55:52]line ТРК (МРК, ГНК) : 51 [08:55:52]line Товар: 2710124130 [08:55:52]line Аи-92-К-4 [08:55:52]line 8.850 * 67.80 [08:55:52]line = 600.03 [08:55:52]line НДС 12% НСП 1% [08:55:52]line > о реализуемом товаре [08:55:52]line ОКРУГЛЕНИЕ: -0.03 [08:55:52]line ИТОГО: 600.00 [08:55:52]line Внесено: 600.00 [08:55:52]line СДАЧА: 0.00 [08:55:52]line НСП 1% : 5.31 [08:55:52]line НДС 12% : 63.72 [08:55:52]line Наличными: 600.00 [08:55:52]line Безнал.: 0.00 [08:55:52]line Место: АЗС № 134 "Партнер Нефть" [08:55:52]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:55:52]line СНО: Общий режим [08:55:52]line Чек 62 28.07.2024 08:55 [08:55:52]line Смена: 433 ФФД: 1.0 [08:55:52]line ЗНМ: 0300000044 [08:55:52]line РНМ: 0000000000092660 [08:55:52]line Версия ККМ: 001 [08:55:52]line ФМ: 0000000000874939 [08:55:52]line ФД: 118393 [08:55:52]line ФПД: 207073071840851 [08:55:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T085552&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118393&fm=207073071840851&tin=02508201610067®Number=0000000000092660&sum=60000 [08:55:52]written 0, free lines is 4095 [08:55:52]OFD Sender: Processing packet 118393 [packets to send 86, broken 85] [08:55:52]ProducePacketName [08:55:52]name=ofd_packets/00118393 [08:55:52]OFD Sender: To server: pG, [08:55:52]CommunicateWithHost lk.salyk.kg:30040 [08:55:52]ConnectInit lk.salyk.kg [08:55:52]Connected sock=10 [08:55:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F4 AA 07 01 0C 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 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 3E 00 00 00 F4 03 04 00 98 07 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 79 CE 01 00 35 04 06 00 BC 54 F4 E3 BE 53 12 59 BF 60 08 43 78 47 [08:55:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9F 2A 47 00 83 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 39 33 39 10 04 04 00 79 CE 01 00 F4 03 04 00 29 B5 A5 66 B6 04 01 00 00 BC 07 61 2C 14 CC 29 58 [08:55:52]CommunicateWithHost err = 0 [08:55:52]CheckOFDResponse [08:55:52]1017 (14) - 77093643461234 [08:55:52]1041 (16) - 0000000000874939 [08:55:52]1040 (4) - 118393 [08:55:52]1012 (4) - 28.07.2024 03:04 [08:55:52]1206 (1) - 0 [08:55:52]OFD Sender: Remove packet 118393 [08:55:52]ProducePacketName [08:55:52]name=ofd_packets/00118393 [08:55:52]NVStorageDeleteData [08:55:53]Write to MH i2c: 01 00 00 61 0D 6E [08:55:53]Write i2c OK [08:55:53]MH_I2C_Read... [08:55:53]Read from MH i2c: 01 [08:55:53]MH_I2C_Read... [08:55:53]Read from MH i2c: 01 07 00 [08:55:53]MH_I2C_Read... [08:55:53]Read from MH i2c: 01 07 00 61 0D 00 00 00 00 00 EB 0C 6C [08:55:53]RasterBufferAndPrint [08:55:53]line [08:55:53]line [08:55:53]line [08:55:53]line [08:55:53]line [08:55:53]written 0, free lines is 3313 [08:55:53]MH_Cut [08:55:53]Write to MH i2c: D1 01 00 68 0D 01 47 [08:55:53]Write i2c OK [08:55:53]MH_I2C_Read... [08:55:53]Read from MH i2c: D1 [08:55:53]MH_I2C_Read... [08:55:53]Read from MH i2c: D1 01 00 [08:55:53]MH_I2C_Read... [08:55:53]Read from MH i2c: D1 01 00 68 0D 00 46 [08:55:53]Write to MH i2c: 01 00 00 69 0D 76 [08:55:53]Write i2c OK [08:55:53]MH_I2C_Read... [08:55:53]OFD Sender: No OFD packet to send [08:55:53]*** Cut start [08:55:53]*** Partial cut [08:55:53]*** CUTSNS_PIN = 1 [08:55:53]*** CUTSNS_PIN = 0 [08:55:54]*** Brake cut motor [08:55:54]Read from MH i2c: 01 [08:55:54]MH_I2C_Read... [08:55:54]*** Stop cut motor [08:55:54]*** Cut end [08:55:54]Read from MH i2c: 01 07 00 [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: 01 07 00 69 0D 00 00 00 00 00 FF 0F 8B [08:55:54]process_action close_receipt done [08:55:54]requested_data is exist [08:55:54]produce_requested_data [08:55:54]requested_item fm.sn is exist - process it [08:55:54]wFMCommunicate request_size=4 [08:55:54]MH_SAM_APDU [08:55:54]CAPDU: 80 11 00 00 [08:55:54]Write to MH i2c: E2 08 00 6A 0D 80 11 00 00 00 00 00 00 F1 [08:55:54]Write i2c OK [08:55:54]MH_I2C_Read... [08:55:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:54]Read from MH i2c: E2 [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: E2 17 00 [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: E2 17 00 6A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4C [08:55:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:55:54]wFMCommunicate OK [08:55:54]requested_item fd.num is exist - process it [08:55:54]SAM_PROTO_GetFieldsCounters [08:55:54]wFMCommunicate request_size=4 [08:55:54]MH_SAM_APDU [08:55:54]CAPDU: 80 13 00 00 [08:55:54]Write to MH i2c: E2 08 00 6B 0D 80 13 00 00 00 00 00 00 F4 [08:55:54]Write i2c OK [08:55:54]MH_I2C_Read... [08:55:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:54]Read from MH i2c: E2 [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: E2 62 00 [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: E2 62 00 6B 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 79 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [08:55:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 79 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:54]wFMCommunicate OK [08:55:54]SAM_PROTO_GetFieldsCounters done [08:55:54]requested_item shift.num is exist - process it [08:55:54]requested_item shift.opened is exist - process it [08:55:54]req_shift_opened [08:55:54]FM_GetShiftState [08:55:54]SAM_PROTO_GetShiftState [08:55:54]wFMCommunicate request_size=4 [08:55:54]MH_SAM_APDU [08:55:54]CAPDU: 80 13 01 00 [08:55:54]Write to MH i2c: E2 08 00 6C 0D 80 13 01 00 00 00 00 00 F6 [08:55:54]Write i2c OK [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: E2 [08:55:54]MH_I2C_Read... [08:55:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:54]Read from MH i2c: E2 0E 00 [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: E2 0E 00 6C 0D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 CD [08:55:54]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:55:54]wFMCommunicate OK [08:55:54]SAM_PROTO_GetShiftState done [08:55:54]FM_GetShiftState done [08:55:54]req_shift_opened done [08:55:54]requested_item shift.open_date is exist - process it [08:55:54]req_shift_open_date [08:55:54]req_shift_open_date done [08:55:54]produce_requested_data done [08:55:54]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118393,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [08:55:54]process_action_free close_receipt [08:55:54]json_value_free [08:55:54]json_value_free done [08:55:54]process_json_proto returns [08:55:54]Send response to host [08:55:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118393,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [08:55:54]free response buf [08:55:54]execute_script done [08:55:54]execute_script returns [08:55:54]free content buf [08:55:54]Sock 7.Close socket [08:55:54]Sock 7.Thread stoped [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:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:36]accept exits with 9 [08:57:36]New connection [08:57:36]New thread 3067067748 created [08:57:36]Thread 3066924388 joined [08:57:36]Waiting for new connection... [08:57:36] Sock 9.Parse request [08:57:36]Sock 9.Check first char [08:57:36]Sock 9.First char is OK [08:57:36]request: POST /json_proto HTTP/1.0 [08:57:36]Method: POST [08:57:36]URL: /json_proto [08:57:36]Method is POST - this is cgi request [08:57:36]url: /json_proto [08:57:36]query_string will be loaded in cgi processing [08:57:36]execute_cgi json_proto POST (null) [08:57:36]execute_cgi path=json_proto method=POST [08:57:36]POST find Content-Length [08:57:36]Host: 172.17.45.7:8080 [08:57:36]Content-Length: 677 [08:57:36]Content-Type: application/json [08:57:36] [08:57:36]POST finish read [08:57:36]Found Content-Length = 677 [08:57:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.720, "sum" : 320.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:36]execute_script... [08:57: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)949266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.720, "sum" : 320.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:36]POST & json_proto [08:57:36]process_json_proto [08:57:36]json parsed OK: [08:57:36]protocol is kg_v1.0 [08:57:36]action value=close_receipt [08:57:36]process_action close_receipt [08:57:36]cmd_close_receipt [08:57:36]MH_GetDate [08:57:36]Write to MH i2c: F0 00 00 6D 0D 69 [08:57:36]Write i2c OK [08:57:36]MH_I2C_Read... [08:57:36]Read from MH i2c: F0 [08:57:36]MH_I2C_Read... [08:57:36]Read from MH i2c: F0 09 00 [08:57:36]MH_I2C_Read... [08:57:36]Read from MH i2c: F0 09 00 6D 0D 00 01 08 A6 66 90 0F 3E 66 CA [08:57:36]GetLastDocTimeStamp 1722156952 [08:57:36]current date 1722157057 [08:57:36]FM_GetShiftState [08:57:36]SAM_PROTO_GetShiftState [08:57:36]wFMCommunicate request_size=4 [08:57:36]MH_SAM_APDU [08:57:36]CAPDU: 80 13 01 00 [08:57:36]Write to MH i2c: E2 08 00 6E 0D 80 13 01 00 00 00 00 00 F8 [08:57:36]Write i2c OK [08:57:36]MH_I2C_Read... [08:57:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:36]Read from MH i2c: E2 [08:57:36]MH_I2C_Read... [08:57:36]Read from MH i2c: E2 0E 00 [08:57:36]MH_I2C_Read... [08:57:36]Read from MH i2c: E2 0E 00 6E 0D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 CF [08:57:36]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:57:36]wFMCommunicate OK [08:57:36]SAM_PROTO_GetShiftState done [08:57:36]FM_GetShiftState done [08:57:36]opened in 1722125364 [08:57:36]opened+sec_in_day 1722211764 [08:57:36]quantity*price = 32001 [08:57:36]sum+1 = 32003 [08:57:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.83 НДС 12% : 33.98 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 63 28.07.2024 08:57 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118394 ФПД: 232878679507268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T085737&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118394&fm=232878679507268&tin=02508201610067®Number=0000000000092660&sum=32000 [08:57:37]StoreToDocumentArchive [08:57:37]shift 433 fd 118394 [08:57:37]save to /storage/0433/doc_00118394 [08:57:37]save last doc name /storage/0433/doc_00118394 to /storage/kkm_last_doc_name [08:57:37]save OK [08:57:37]Clear old archive folders... [08:57:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:57:37]tlvbuf is 00127B20 [08:57:37]SAM_PROTO_ClearQueue [08:57:37]wFMCommunicate request_size=4 [08:57:37]MH_SAM_APDU [08:57:37]CAPDU: 80 09 00 00 [08:57:37]Write to MH i2c: E2 08 00 7B 0D 80 09 00 00 00 00 00 00 FA [08:57:37]Write i2c OK [08:57:37]MH_I2C_Read... [08:57:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:37]Read from MH i2c: E2 [08:57:37]MH_I2C_Read... [08:57:37]Read from MH i2c: E2 03 00 [08:57:37]MH_I2C_Read... [08:57:37]Read from MH i2c: E2 03 00 7B 0D 00 90 00 FC [08:57:37]RAPDU: 90 00 [08:57:37]wFMCommunicate OK [08:57:37]SAM_PROTO_ClearQueue done [08:57:37]KKMCreateOFDPacket [08:57:37]OFDProtocolAddRootSTLVToBuf [08:57:37]FM_MakeSignedData [08:57:37]FM_MakeSignedData [08:57:37]SAM_PROTO_SignData [08:57:37]wFMCommunicate request_size=4 [08:57:37]MH_SAM_APDU [08:57:37]CAPDU: 80 0D 01 02 [08:57:37]Write to MH i2c: E2 08 00 7C 0D 80 0D 01 02 00 00 00 00 02 [08:57:37]Write i2c OK [08:57:37]MH_I2C_Read... [08:57:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:37]Read from MH i2c: E2 [08:57:37]MH_I2C_Read... [08:57:37]Read from MH i2c: E2 03 00 [08:57:37]MH_I2C_Read... [08:57:37]Read from MH i2c: E2 03 00 7C 0D 00 90 00 FD [08:57:37]RAPDU: 90 00 [08:57:37]wFMCommunicate OK [08:57:37]wFMCommunicate request_size=255 [08:57:37]MH_SAM_APDU [08:57: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 34 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 02 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 01 08 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7A CE 01 00 35 04 06 00 D3 [08:57:37]Write to MH i2c: E2 02 01 7D 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 34 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 02 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 01 08 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7A CE 01 00 35 04 06 00 D3 00 00 33 [08:57:37]Write i2c OK [08:57:37]MH_I2C_Read... [08:57:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:37]Read from MH i2c: E2 [08:57:37]MH_I2C_Read... [08:57:37]Read from MH i2c: E2 03 00 [08:57:37]MH_I2C_Read... [08:57:37]Read from MH i2c: E2 03 00 7D 0D 00 90 00 FE [08:57:37]RAPDU: 90 00 [08:57:37]wFMCommunicate OK [08:57:37]wFMCommunicate request_size=10 [08:57:37]MH_SAM_APDU [08:57:37]CAPDU: 80 0D 02 02 05 CD 4A F7 C1 44 [08:57:37]Write to MH i2c: E2 0D 00 7E 0D 80 0D 02 02 05 00 CD 4A F7 C1 44 00 00 22 [08:57:37]Write i2c OK [08:57:37]MH_I2C_Read... [08:57:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:37]Read from MH i2c: E2 [08:57:37]MH_I2C_Read... [08:57:37]Read from MH i2c: E2 03 00 [08:57:37]MH_I2C_Read... [08:57:37]Read from MH i2c: E2 03 00 7E 0D 00 90 00 FF [08:57:37]RAPDU: 90 00 [08:57:37]wFMCommunicate OK [08:57:37]wFMCommunicate request_size=4 [08:57:37]MH_SAM_APDU [08:57:37]CAPDU: 80 0D 03 02 [08:57:37]Write to MH i2c: E2 08 00 7F 0D 80 0D 03 02 00 00 00 00 07 [08:57:37]Write i2c OK [08:57:37]MH_I2C_Read... [08:57:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:37]Read from MH i2c: E2 [08:57:37]MH_I2C_Read... [08:57:37]Read from MH i2c: E2 0B 00 [08:57:37]MH_I2C_Read... [08:57:37]Read from MH i2c: E2 0B 00 7F 0D 00 9C DB AF 4D 86 01 D3 EC 90 00 C1 [08:57:37]RAPDU: 9C DB AF 4D 86 01 D3 EC 90 00 [08:57:37]wFMCommunicate OK [08:57:37]SAM_PROTO_SignData done [08:57:37]FM_MakeSignedData done [08:57:37]CreateOFDProtocolMessage [08:57:37]wFMCommunicate request_size=4 [08:57:37]MH_SAM_APDU [08:57:37]CAPDU: 80 11 00 00 [08:57:37]Write to MH i2c: E2 08 00 80 0D 80 11 00 00 00 00 00 00 07 [08:57:37]Write i2c OK [08:57:37]MH_I2C_Read... [08:57:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:37]Read from MH i2c: E2 [08:57:37]MH_I2C_Read... [08:57:37]Read from MH i2c: E2 17 00 [08:57:37]MH_I2C_Read... [08:57:37]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 39 33 39 90 00 62 [08:57:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:57:37]wFMCommunicate OK [08:57:37]CreateOFDProtocolMessage done [08:57:37]OFDSenderStorePacket 118394 [08:57:37]StoreOFDPacket docnum=118394 [08:57:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 88 AD 07 01 55 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 34 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 02 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 01 08 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7A CE 01 00 35 04 06 00 D3 CD 4A F7 C1 44 9C DB AF 4D 86 01 D3 EC [08:57:37]CheckFolder [08:57:37]dirname=/storage/ofd_packets [08:57:37]CheckFolder done [08:57:37]ProducePacketName [08:57:37]name=ofd_packets/00118394 [08:57:37]NVStorageSaveData ofd_packets/00118394 [08:57:37]File name is /storage/ofd_packets/00118394 [08:57:37]Write 301 bytes [08:57:37]NVStorageSaveData done [08:57:37]OFDSenderStorePacket done [08:57:37]KKMCreateOFDPacket done [08:57:37]NVStorageSaveData kkm_last_timestamp [08:57:37]File name is /storage/kkm_last_timestamp [08:57:37]Write 4 bytes [08:57:37]NVStorageSaveData done [08:57:37]OFD Sender: Processing packet 118394 [packets to send 86, broken 85] [08:57:37]ProducePacketName [08:57:37]name=ofd_packets/00118394 [08:57:37]OFD Sender: To server: pG, [08:57:37]CommunicateWithHost lk.salyk.kg:30040 [08:57:37]ConnectInit lk.salyk.kg [08:57:37]ExternCall_PrintAddStr [08:57:37]wPrintStart [08:57:37]Write to MH i2c: 01 00 00 81 0D 8E [08:57:37]Write i2c OK [08:57:37]MH_I2C_Read... [08:57:37]Read from MH i2c: 01 [08:57:37]MH_I2C_Read... [08:57:37]Read from MH i2c: 01 07 00 [08:57:37]MH_I2C_Read... [08:57:37]Read from MH i2c: 01 07 00 81 0D 00 00 00 00 00 FF 0F A3 [08:57:37]RasterBufferAndPrint [08:57:37]line Счет N : (1)949266 [08:57:37]line ИНН: 02508201610067 [08:57:37]line Контрольно-Кассовый Чек [08:57:37]line ПРОДАЖА [08:57:37]line ТРК (МРК, ГНК) : 61 [08:57:37]line Товар: 2710124130 [08:57:37]line Аи-92-К-4 [08:57:37]line 4.720 * 67.80 [08:57:37]line = 320.02 [08:57:37]line НДС 12% НСП 1% [08:57:37]line > о реализуемом товаре [08:57:37]line ОКРУГЛЕНИЕ: -0.02 [08:57:37]line ИТОГО: 320.00 [08:57:37]line Внесено: 320.00 [08:57:37]line СДАЧА: 0.00 [08:57:37]line НСП 1% : 2.83 [08:57:37]line НДС 12% : 33.98 [08:57:37]line Наличными: 320.00 [08:57:37]line Безнал.: 0.00 [08:57:37]line Место: АЗС № 134 "Партнер Нефть" [08:57:37]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:57:37]line СНО: Общий режим [08:57:37]line Чек 63 28.07.2024 08:57 [08:57:37]line Смена: 433 ФФД: 1.0 [08:57:37]line ЗНМ: 0300000044 [08:57:37]line РНМ: 0000000000092660 [08:57:37]line Версия ККМ: 001 [08:57:37]line ФМ: 0000000000874939 [08:57:37]line ФД: 118394 [08:57:37]line ФПД: 232878679507268 [08:57:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T085737&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118394&fm=232878679507268&tin=02508201610067®Number=0000000000092660&sum=32000 [08:57:38]Connected sock=11 [08:57: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 39 33 39 0F 01 00 00 88 AD 07 01 55 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 34 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 02 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 01 08 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7A CE 01 00 35 04 06 00 D3 CD 4A F7 C1 44 9C DB AF 4D 86 01 D3 EC [08:57:38]written 0, free lines is 4095 [08:57:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EB 0E 47 00 41 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7A CE 01 00 F4 03 04 00 92 B5 A5 66 B6 04 01 00 00 D7 B0 FC E3 B5 A1 29 43 [08:57:38]CommunicateWithHost err = 0 [08:57:38]CheckOFDResponse [08:57:38]1017 (14) - 77093643461234 [08:57:38]1041 (16) - 0000000000874939 [08:57:38]1040 (4) - 118394 [08:57:38]1012 (4) - 28.07.2024 03:05 [08:57:38]1206 (1) - 0 [08:57:38]OFD Sender: Remove packet 118394 [08:57:38]ProducePacketName [08:57:38]name=ofd_packets/00118394 [08:57:38]NVStorageDeleteData [08:57:38]Write to MH i2c: 01 00 00 AB 0D B8 [08:57:38]Write i2c OK [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: 01 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: 01 07 00 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: 01 07 00 AB 0D 00 00 00 00 00 E0 0C AB [08:57:38]RasterBufferAndPrint [08:57:38]line [08:57:38]line [08:57:38]line [08:57:38]line [08:57:38]line [08:57:38]written 0, free lines is 3302 [08:57:38]MH_Cut [08:57:38]Write to MH i2c: D1 01 00 B2 0D 01 91 [08:57:38]Write i2c OK [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: D1 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: D1 01 00 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: D1 01 00 B2 0D 00 90 [08:57:38]Write to MH i2c: 01 00 00 B3 0D C0 [08:57:38]Write i2c OK [08:57:38]MH_I2C_Read... [08:57:38]OFD Sender: No OFD packet to send [08:57:39]*** Cut start [08:57:39]*** Partial cut [08:57:39]*** CUTSNS_PIN = 1 [08:57:39]*** CUTSNS_PIN = 0 [08:57:39]*** Brake cut motor [08:57:39]Read from MH i2c: 01 [08:57:39]MH_I2C_Read... [08:57:39]*** Stop cut motor [08:57:39]*** Cut end [08:57:39]Read from MH i2c: 01 07 00 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: 01 07 00 B3 0D 00 00 00 00 00 FF 0F D5 [08:57:39]process_action close_receipt done [08:57:39]requested_data is exist [08:57:39]produce_requested_data [08:57:39]requested_item fm.sn is exist - process it [08:57:39]wFMCommunicate request_size=4 [08:57:39]MH_SAM_APDU [08:57:39]CAPDU: 80 11 00 00 [08:57:39]Write to MH i2c: E2 08 00 B4 0D 80 11 00 00 00 00 00 00 3B [08:57:39]Write i2c OK [08:57:39]MH_I2C_Read... [08:57:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:40]Read from MH i2c: E2 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: E2 17 00 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: E2 17 00 B4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 96 [08:57:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:57:40]wFMCommunicate OK [08:57:40]requested_item fd.num is exist - process it [08:57:40]SAM_PROTO_GetFieldsCounters [08:57:40]wFMCommunicate request_size=4 [08:57:40]MH_SAM_APDU [08:57:40]CAPDU: 80 13 00 00 [08:57:40]Write to MH i2c: E2 08 00 B5 0D 80 13 00 00 00 00 00 00 3E [08:57:40]Write i2c OK [08:57:40]MH_I2C_Read... [08:57:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:40]Read from MH i2c: E2 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: E2 62 00 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: E2 62 00 B5 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7A CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [08: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7A CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:40]wFMCommunicate OK [08:57:40]SAM_PROTO_GetFieldsCounters done [08:57:40]requested_item shift.num is exist - process it [08:57:40]requested_item shift.opened is exist - process it [08:57:40]req_shift_opened [08:57:40]FM_GetShiftState [08:57:40]SAM_PROTO_GetShiftState [08:57:40]wFMCommunicate request_size=4 [08:57:40]MH_SAM_APDU [08:57:40]CAPDU: 80 13 01 00 [08:57:40]Write to MH i2c: E2 08 00 B6 0D 80 13 01 00 00 00 00 00 40 [08:57:40]Write i2c OK [08:57:40]MH_I2C_Read... [08:57:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:40]Read from MH i2c: E2 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: E2 0E 00 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: E2 0E 00 B6 0D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 17 [08:57:40]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [08:57:40]wFMCommunicate OK [08:57:40]SAM_PROTO_GetShiftState done [08:57:40]FM_GetShiftState done [08:57:40]req_shift_opened done [08:57:40]requested_item shift.open_date is exist - process it [08:57:40]req_shift_open_date [08:57:40]req_shift_open_date done [08:57:40]produce_requested_data done [08:57:40]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118394,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [08:57:40]process_action_free close_receipt [08:57:40]json_value_free [08:57:40]json_value_free done [08:57:40]process_json_proto returns [08:57:40]Send response to host [08:57:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118394,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [08:57:40]free response buf [08:57:40]execute_script done [08:57:40]execute_script returns [08:57:40]free content buf [08:57:40]Sock 9.Close socket [08:57:40]Sock 9.Thread stoped [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:29]OFD Sender: No OFD packet to send [09:00:34]OFD Sender: No OFD packet to send [09:00:39]OFD Sender: No OFD packet to send [09:00:44]OFD Sender: No OFD packet to send [09:00:49]OFD Sender: No OFD packet to send [09:00:54]OFD Sender: No OFD packet to send [09:00:59]OFD Sender: No OFD packet to send [09:01:04]OFD Sender: No OFD packet to send [09:01:09]OFD Sender: No OFD packet to send [09:01:14]OFD Sender: No OFD packet to send [09:01:19]OFD Sender: No OFD packet to send [09:01:24]OFD Sender: No OFD packet to send [09:01:29]OFD Sender: No OFD packet to send [09:01:34]OFD Sender: No OFD packet to send [09:01:39]OFD Sender: No OFD packet to send [09:01:44]OFD Sender: No OFD packet to send [09:01:49]OFD Sender: No OFD packet to send [09:01:54]OFD Sender: No OFD packet to send [09:01:57]accept exits with 7 [09:01:57]New connection [09:01:57]New thread 3066924388 created [09:01:57]Thread 3067067748 joined [09:01:57]Waiting for new connection... [09:01:57] Sock 7.Parse request [09:01:57]Sock 7.Check first char [09:01:57]Sock 7.First char is OK [09:01:57]request: POST /json_proto HTTP/1.0 [09:01:57]Method: POST [09:01:57]URL: /json_proto [09:01:57]Method is POST - this is cgi request [09:01:57]url: /json_proto [09:01:57]query_string will be loaded in cgi processing [09:01:57]execute_cgi json_proto POST (null) [09:01:57]execute_cgi path=json_proto method=POST [09:01:57]POST find Content-Length [09:01:57]Host: 172.17.45.7:8080 [09:01:57]Content-Length: 682 [09:01:57]Content-Type: application/json [09:01:57] [09:01:57]POST finish read [09:01:57]Found Content-Length = 682 [09:01:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:57]execute_script... [09: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)949267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:57]POST & json_proto [09:01:57]process_json_proto [09:01:57]json parsed OK: [09:01:57]protocol is kg_v1.0 [09:01:57]action value=close_receipt [09:01:57]process_action close_receipt [09:01:57]cmd_close_receipt [09:01:57]MH_GetDate [09:01:57]Write to MH i2c: F0 00 00 B7 0D B3 [09:01:57]Write i2c OK [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: F0 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: F0 09 00 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: F0 09 00 B7 0D 00 06 09 A6 66 90 0F 3E 66 1A [09:01:57]GetLastDocTimeStamp 1722157057 [09:01:57]current date 1722157318 [09:01:57]FM_GetShiftState [09:01:57]SAM_PROTO_GetShiftState [09:01:57]wFMCommunicate request_size=4 [09:01:57]MH_SAM_APDU [09:01:57]CAPDU: 80 13 01 00 [09:01:57]Write to MH i2c: E2 08 00 B8 0D 80 13 01 00 00 00 00 00 42 [09:01:57]Write i2c OK [09:01:57]MH_I2C_Read... [09:01:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:57]Read from MH i2c: E2 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: E2 0E 00 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: E2 0E 00 B8 0D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 19 [09:01:57]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:01:57]wFMCommunicate OK [09:01:57]SAM_PROTO_GetShiftState done [09:01:57]FM_GetShiftState done [09:01:57]opened in 1722125364 [09:01:57]opened+sec_in_day 1722211764 [09:01:57]quantity*price = 100005 [09:01:57]sum+1 = 100006 [09:01:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 64 28.07.2024 09:01 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118395 ФПД: 59688654582271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T090159&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118395&fm=59688654582271&tin=02508201610067®Number=0000000000092660&sum=100000 [09:01:58]StoreToDocumentArchive [09:01:58]shift 433 fd 118395 [09:01:58]save to /storage/0433/doc_00118395 [09:01:58]save last doc name /storage/0433/doc_00118395 to /storage/kkm_last_doc_name [09:01:58]save OK [09:01:58]Clear old archive folders... [09:01:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:01:58]tlvbuf is 001022B0 [09:01:58]SAM_PROTO_ClearQueue [09:01:58]wFMCommunicate request_size=4 [09:01:58]MH_SAM_APDU [09:01:58]CAPDU: 80 09 00 00 [09:01:58]Write to MH i2c: E2 08 00 C5 0D 80 09 00 00 00 00 00 00 44 [09:01:58]Write i2c OK [09:01:58]MH_I2C_Read... [09:01:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:58]Read from MH i2c: E2 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 03 00 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 03 00 C5 0D 00 90 00 46 [09:01:58]RAPDU: 90 00 [09:01:58]wFMCommunicate OK [09:01:58]SAM_PROTO_ClearQueue done [09:01:58]KKMCreateOFDPacket [09:01:58]OFDProtocolAddRootSTLVToBuf [09:01:58]FM_MakeSignedData [09:01:58]FM_MakeSignedData [09:01:58]SAM_PROTO_SignData [09:01:58]wFMCommunicate request_size=4 [09:01:58]MH_SAM_APDU [09:01:58]CAPDU: 80 0D 01 02 [09:01:58]Write to MH i2c: E2 08 00 C6 0D 80 0D 01 02 00 00 00 00 4C [09:01:58]Write i2c OK [09:01:58]MH_I2C_Read... [09:01:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:58]Read from MH i2c: E2 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 03 00 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 03 00 C6 0D 00 90 00 47 [09:01:58]RAPDU: 90 00 [09:01:58]wFMCommunicate OK [09:01:58]wFMCommunicate request_size=255 [09:01:58]MH_SAM_APDU [09: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 07 09 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7B CE 01 00 35 04 06 00 36 [09:01:58]Write to MH i2c: E2 02 01 C7 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 07 09 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7B CE 01 00 35 04 06 00 36 00 00 ED [09:01:58]Write i2c OK [09:01:58]MH_I2C_Read... [09:01:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:58]Read from MH i2c: E2 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 03 00 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 03 00 C7 0D 00 90 00 48 [09:01:58]RAPDU: 90 00 [09:01:58]wFMCommunicate OK [09:01:58]wFMCommunicate request_size=10 [09:01:58]MH_SAM_APDU [09:01:58]CAPDU: 80 0D 02 02 05 49 59 0D B1 FF [09:01:58]Write to MH i2c: E2 0D 00 C8 0D 80 0D 02 02 05 00 49 59 0D B1 FF 00 00 B8 [09:01:58]Write i2c OK [09:01:58]MH_I2C_Read... [09:01:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:58]Read from MH i2c: E2 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 03 00 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 03 00 C8 0D 00 90 00 49 [09:01:58]RAPDU: 90 00 [09:01:58]wFMCommunicate OK [09:01:58]wFMCommunicate request_size=4 [09:01:58]MH_SAM_APDU [09:01:58]CAPDU: 80 0D 03 02 [09:01:58]Write to MH i2c: E2 08 00 C9 0D 80 0D 03 02 00 00 00 00 51 [09:01:58]Write i2c OK [09:01:58]MH_I2C_Read... [09:01:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:58]Read from MH i2c: E2 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 0B 00 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 0B 00 C9 0D 00 4D 0E 74 70 69 73 52 B8 90 00 77 [09:01:58]RAPDU: 4D 0E 74 70 69 73 52 B8 90 00 [09:01:58]wFMCommunicate OK [09:01:58]SAM_PROTO_SignData done [09:01:58]FM_MakeSignedData done [09:01:58]CreateOFDProtocolMessage [09:01:58]wFMCommunicate request_size=4 [09:01:58]MH_SAM_APDU [09:01:58]CAPDU: 80 11 00 00 [09:01:58]Write to MH i2c: E2 08 00 CA 0D 80 11 00 00 00 00 00 00 51 [09:01:58]Write i2c OK [09:01:58]MH_I2C_Read... [09:01:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:58]Read from MH i2c: E2 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 17 00 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 17 00 CA 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AC [09:01:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:01:58]wFMCommunicate OK [09:01:58]CreateOFDProtocolMessage done [09:01:58]OFDSenderStorePacket 118395 [09:01:58]StoreOFDPacket docnum=118395 [09:01:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D7 D0 07 01 FD 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 07 09 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7B CE 01 00 35 04 06 00 36 49 59 0D B1 FF 4D 0E 74 70 69 73 52 B8 [09:01:58]CheckFolder [09:01:58]dirname=/storage/ofd_packets [09:01:58]CheckFolder done [09:01:58]ProducePacketName [09:01:58]name=ofd_packets/00118395 [09:01:58]NVStorageSaveData ofd_packets/00118395 [09:01:58]File name is /storage/ofd_packets/00118395 [09:01:58]Write 301 bytes [09:01:58]NVStorageSaveData done [09:01:58]OFDSenderStorePacket done [09:01:58]KKMCreateOFDPacket done [09:01:58]NVStorageSaveData kkm_last_timestamp [09:01:58]File name is /storage/kkm_last_timestamp [09:01:58]Write 4 bytes [09:01:58]NVStorageSaveData done [09:01:58]ExternCall_PrintAddStr [09:01:58]wPrintStart [09:01:58]Write to MH i2c: 01 00 00 CB 0D D8 [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 CB 0D 00 00 00 00 00 FF 0F ED [09:01:58]RasterBufferAndPrint [09:01:58]line Счет N : (1)949267 [09:01:58]line ИНН: 02508201610067 [09:01:58]line Контрольно-Кассовый Чек [09:01:58]line ПРОДАЖА [09:01:58]line ТРК (МРК, ГНК) : 41 [09:01:58]line Товар: 2710124130 [09:01:58]line Аи-92-К-4 [09:01:58]line 14.750 * 67.80 [09:01:58]line = 1000.05 [09:01:58]line НДС 12% НСП 1% [09:01:58]line > о реализуемом товаре [09:01:58]line ОКРУГЛЕНИЕ: -0.05 [09:01:58]line ИТОГО: 1000.00 [09:01:58]line Внесено: 1000.00 [09:01:58]line СДАЧА: 0.00 [09:01:58]line НСП 1% : 8.85 [09:01:58]line НДС 12% : 106.20 [09:01:58]line Наличными: 1000.00 [09:01:58]line Безнал.: 0.00 [09:01:58]line Место: АЗС № 134 "Партнер Нефть" [09:01:58]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:01:58]line СНО: Общий режим [09:01:58]line Чек 64 28.07.2024 09:01 [09:01:58]line Смена: 433 ФФД: 1.0 [09:01:58]line ЗНМ: 0300000044 [09:01:58]line РНМ: 0000000000092660 [09:01:58]line Версия ККМ: 001 [09:01:58]line ФМ: 0000000000874939 [09:01:58]line ФД: 118395 [09:01:58]line ФПД: 59688654582271 [09:01:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T090159&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118395&fm=59688654582271&tin=02508201610067®Number=0000000000092660&sum=100000 [09:01:59]OFD Sender: Processing packet 118395 [packets to send 86, broken 85] [09:01:59]ProducePacketName [09:01:59]name=ofd_packets/00118395 [09:01:59]OFD Sender: To server: pG, [09:01:59]CommunicateWithHost lk.salyk.kg:30040 [09:01:59]ConnectInit lk.salyk.kg [09:01:59]written 0, free lines is 4095 [09:01:59]Connected sock=10 [09: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 39 33 39 0F 01 00 00 D7 D0 07 01 FD 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 07 09 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7B CE 01 00 35 04 06 00 36 49 59 0D B1 FF 4D 0E 74 70 69 73 52 B8 [09: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 39 33 39 4F 00 00 00 94 ED 47 00 57 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 39 33 39 10 04 04 00 7B CE 01 00 F4 03 04 00 97 B6 A5 66 B6 04 01 00 00 9B B3 3C 08 3A 5C 7A 94 [09:01:59]CommunicateWithHost err = 0 [09:01:59]CheckOFDResponse [09:01:59]1017 (14) - 77093643461234 [09:01:59]1041 (16) - 0000000000874939 [09:01:59]1040 (4) - 118395 [09:01:59]1012 (4) - 28.07.2024 03:10 [09:01:59]1206 (1) - 0 [09:01:59]OFD Sender: Remove packet 118395 [09:01:59]ProducePacketName [09:01:59]name=ofd_packets/00118395 [09:01:59]NVStorageDeleteData [09:01:59]Write to MH i2c: 01 00 00 F5 0D 02 [09:01:59]Write i2c OK [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: 01 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: 01 07 00 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: 01 07 00 F5 0D 00 00 00 00 00 DC 0C F1 [09:01:59]RasterBufferAndPrint [09:01:59]line [09:01:59]line [09:01:59]line [09:01:59]line [09:01:59]line [09:01:59]written 0, free lines is 3298 [09:01:59]MH_Cut [09:01:59]Write to MH i2c: D1 01 00 FC 0D 01 DB [09:01:59]Write i2c OK [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: D1 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: D1 01 00 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: D1 01 00 FC 0D 00 DA [09:01:59]Write to MH i2c: 01 00 00 FD 0D 0A [09:01:59]Write i2c OK [09:01:59]MH_I2C_Read... [09:01:59]OFD Sender: No OFD packet to send [09:02:00]*** Cut start [09:02:00]*** Partial cut [09:02:00]*** CUTSNS_PIN = 1 [09:02:00]*** CUTSNS_PIN = 0 [09:02:00]*** Brake cut motor [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 FD 0D 00 00 00 00 00 FF 0F 1F [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 FE 0D 80 11 00 00 00 00 00 00 85 [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 FE 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E0 [09:02:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 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 FF 0D 80 13 00 00 00 00 00 00 88 [09:02:00]Write i2c OK [09:02:00]MH_I2C_Read... [09:02:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:01]Read from MH i2c: E2 [09:02:01]MH_I2C_Read... [09:02:01]Read from MH i2c: E2 62 00 [09:02:01]MH_I2C_Read... [09:02:01]Read from MH i2c: E2 62 00 FF 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7B CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [09: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7B CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:01]wFMCommunicate OK [09:02:01]SAM_PROTO_GetFieldsCounters done [09:02:01]requested_item shift.num is exist - process it [09:02:01]requested_item shift.opened is exist - process it [09:02:01]req_shift_opened [09:02:01]FM_GetShiftState [09:02:01]SAM_PROTO_GetShiftState [09:02:01]wFMCommunicate request_size=4 [09:02:01]MH_SAM_APDU [09:02:01]CAPDU: 80 13 01 00 [09:02:01]Write to MH i2c: E2 08 00 00 0E 80 13 01 00 00 00 00 00 8B [09:02:01]Write i2c OK [09:02:01]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 00 0E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 62 [09:02:01]RAPDU: 09 00 01 34 8C A5 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":"0000000000874939","fd.num":118395,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [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":"0000000000874939","fd.num":118395,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [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 7.Close socket [09:02:01]Sock 7.Thread stoped [09:02:04]OFD Sender: No OFD packet to send [09:02:09]OFD Sender: No OFD packet to send [09:02:14]OFD Sender: No OFD packet to send [09:02:19]OFD Sender: No OFD packet to send [09:02:24]OFD Sender: No OFD packet to send [09:02:29]OFD Sender: No OFD packet to send [09:02:34]OFD Sender: No OFD packet to send [09:02:39]OFD Sender: No OFD packet to send [09:02:44]OFD Sender: No OFD packet to send [09:02:50]OFD Sender: No OFD packet to send [09:02:55]OFD Sender: No OFD packet to send [09:03:00]OFD Sender: No OFD packet to send [09:03:05]OFD Sender: No OFD packet to send [09:03:10]OFD Sender: No OFD packet to send [09:03:15]OFD Sender: No OFD packet to send [09:03:20]OFD Sender: No OFD packet to send [09:03:25]OFD Sender: No OFD packet to send [09:03:30]OFD Sender: No OFD packet to send [09:03:35]OFD Sender: No OFD packet to send [09:03:40]OFD Sender: No OFD packet to send [09:03:45]OFD Sender: No OFD packet to send [09:03:50]OFD Sender: No OFD packet to send [09:03:55]OFD Sender: No OFD packet to send [09:04:00]OFD Sender: No OFD packet to send [09:04:05]OFD Sender: No OFD packet to send [09:04:10]OFD Sender: No OFD packet to send [09:04:15]OFD Sender: No OFD packet to send [09:04:20]OFD Sender: No OFD packet to send [09:04:25]OFD Sender: No OFD packet to send [09:04:26]accept exits with 9 [09:04:26]New connection [09:04:26]New thread 3067067748 created [09:04:26]Thread 3066924388 joined [09:04:26]Waiting for new connection... [09:04:26] Sock 9.Parse request [09:04:26]Sock 9.Check first char [09:04:26]Sock 9.First char is OK [09:04:26]request: POST /json_proto HTTP/1.0 [09:04:26]Method: POST [09:04:26]URL: /json_proto [09:04:26]Method is POST - this is cgi request [09:04:26]url: /json_proto [09:04:26]query_string will be loaded in cgi processing [09:04:26]execute_cgi json_proto POST (null) [09:04:26]execute_cgi path=json_proto method=POST [09:04:26]POST find Content-Length [09:04:26]Host: 172.17.45.7:8080 [09:04:26]Content-Length: 678 [09:04:26]Content-Type: application/json [09:04:26] [09:04:26]POST finish read [09:04:26]Found Content-Length = 678 [09:04:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 12.650, "sum" : 857.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 857.00, "total" : 857.00, "payments": [ { "type": 0, "sum" : 857.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:26]execute_script... [09:04:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 12.650, "sum" : 857.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 857.00, "total" : 857.00, "payments": [ { "type": 0, "sum" : 857.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:26]POST & json_proto [09:04:26]process_json_proto [09:04:26]json parsed OK: [09:04:26]protocol is kg_v1.0 [09:04:26]action value=close_receipt [09:04:26]process_action close_receipt [09:04:26]cmd_close_receipt [09:04:26]MH_GetDate [09:04:26]Write to MH i2c: F0 00 00 01 0E FE [09:04:26]Write i2c OK [09:04:26]MH_I2C_Read... [09:04:26]Read from MH i2c: F0 [09:04:26]MH_I2C_Read... [09:04:26]Read from MH i2c: F0 09 00 [09:04:26]MH_I2C_Read... [09:04:26]Read from MH i2c: F0 09 00 01 0E 00 9C 09 A6 66 90 0F 3E 66 FB [09:04:26]GetLastDocTimeStamp 1722157319 [09:04:26]current date 1722157468 [09:04:26]FM_GetShiftState [09:04:26]SAM_PROTO_GetShiftState [09:04:26]wFMCommunicate request_size=4 [09:04:26]MH_SAM_APDU [09:04:26]CAPDU: 80 13 01 00 [09:04:26]Write to MH i2c: E2 08 00 02 0E 80 13 01 00 00 00 00 00 8D [09:04:26]Write i2c OK [09:04:26]MH_I2C_Read... [09:04:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:26]Read from MH i2c: E2 [09:04:26]MH_I2C_Read... [09:04:26]Read from MH i2c: E2 0E 00 [09:04:26]MH_I2C_Read... [09:04:26]Read from MH i2c: E2 0E 00 02 0E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 64 [09:04:26]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:04:26]wFMCommunicate OK [09:04:26]SAM_PROTO_GetShiftState done [09:04:26]FM_GetShiftState done [09:04:26]opened in 1722125364 [09:04:26]opened+sec_in_day 1722211764 [09:04:26]quantity*price = 85767 [09:04:26]sum+1 = 85768 [09:04:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 857.00 Внесено: 857.00 СДАЧА: 0.00 НСП 1% : 7.59 НДС 12% : 91.08 Наличными: 857.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 65 28.07.2024 09:04 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118396 ФПД: 272867221562730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T090428&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118396&fm=272867221562730&tin=02508201610067®Number=0000000000092660&sum=85700 [09:04:27]StoreToDocumentArchive [09:04:27]shift 433 fd 118396 [09:04:27]save to /storage/0433/doc_00118396 [09:04:27]save last doc name /storage/0433/doc_00118396 to /storage/kkm_last_doc_name [09:04:27]save OK [09:04:27]Clear old archive folders... [09:04:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:04:27]tlvbuf is 0011AB10 [09:04:27]SAM_PROTO_ClearQueue [09:04:27]wFMCommunicate request_size=4 [09:04:27]MH_SAM_APDU [09:04:27]CAPDU: 80 09 00 00 [09:04:27]Write to MH i2c: E2 08 00 0F 0E 80 09 00 00 00 00 00 00 8F [09:04:27]Write i2c OK [09:04:27]MH_I2C_Read... [09:04:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:04:27]Read from MH i2c: E2 [09:04:27]MH_I2C_Read... [09:04:27]Read from MH i2c: E2 03 00 [09:04:27]MH_I2C_Read... [09:04:27]Read from MH i2c: E2 03 00 0F 0E 00 90 00 91 [09:04:27]RAPDU: 90 00 [09:04:27]wFMCommunicate OK [09:04:27]SAM_PROTO_ClearQueue done [09:04:27]KKMCreateOFDPacket [09:04:27]OFDProtocolAddRootSTLVToBuf [09:04:27]FM_MakeSignedData [09:04:27]FM_MakeSignedData [09:04:27]SAM_PROTO_SignData [09:04:27]wFMCommunicate request_size=4 [09:04:27]MH_SAM_APDU [09:04:27]CAPDU: 80 0D 01 02 [09:04:27]Write to MH i2c: E2 08 00 10 0E 80 0D 01 02 00 00 00 00 97 [09:04:27]Write i2c OK [09:04:27]MH_I2C_Read... [09:04:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:04:27]Read from MH i2c: E2 [09:04:27]MH_I2C_Read... [09:04:27]Read from MH i2c: E2 03 00 [09:04:27]MH_I2C_Read... [09:04:27]Read from MH i2c: E2 03 00 10 0E 00 90 00 92 [09:04:27]RAPDU: 90 00 [09:04:27]wFMCommunicate OK [09:04:27]wFMCommunicate request_size=255 [09:04:27]MH_SAM_APDU [09:04: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 34 FF 03 08 00 03 6A 31 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 07 4F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 23 00 00 00 00 07 04 06 00 C4 4E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 9C 09 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7C CE 01 00 35 04 06 00 F8 [09:04:27]Write to MH i2c: E2 02 01 11 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 34 FF 03 08 00 03 6A 31 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 07 4F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 23 00 00 00 00 07 04 06 00 C4 4E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 9C 09 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7C CE 01 00 35 04 06 00 F8 00 00 EB [09:04:27]Write i2c OK [09:04:27]MH_I2C_Read... [09:04:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:28]Read from MH i2c: E2 [09:04:28]MH_I2C_Read... [09:04:28]Read from MH i2c: E2 03 00 [09:04:28]MH_I2C_Read... [09:04:28]Read from MH i2c: E2 03 00 11 0E 00 90 00 93 [09:04:28]RAPDU: 90 00 [09:04:28]wFMCommunicate OK [09:04:28]wFMCommunicate request_size=10 [09:04:28]MH_SAM_APDU [09:04:28]CAPDU: 80 0D 02 02 05 2B D9 CF E5 6A [09:04:28]Write to MH i2c: E2 0D 00 12 0E 80 0D 02 02 05 00 2B D9 CF E5 6A 00 00 C6 [09:04:28]Write i2c OK [09:04:28]MH_I2C_Read... [09:04:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:28]Read from MH i2c: E2 [09:04:28]MH_I2C_Read... [09:04:28]Read from MH i2c: E2 03 00 [09:04:28]MH_I2C_Read... [09:04:28]Read from MH i2c: E2 03 00 12 0E 00 90 00 94 [09:04:28]RAPDU: 90 00 [09:04:28]wFMCommunicate OK [09:04:28]wFMCommunicate request_size=4 [09:04:28]MH_SAM_APDU [09:04:28]CAPDU: 80 0D 03 02 [09:04:28]Write to MH i2c: E2 08 00 13 0E 80 0D 03 02 00 00 00 00 9C [09:04:28]Write i2c OK [09:04:28]MH_I2C_Read... [09:04:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:04:28]Read from MH i2c: E2 [09:04:28]MH_I2C_Read... [09:04:28]Read from MH i2c: E2 0B 00 [09:04:28]MH_I2C_Read... [09:04:28]Read from MH i2c: E2 0B 00 13 0E 00 3A 5C 34 9B 23 8A 9B 63 90 00 AD [09:04:28]RAPDU: 3A 5C 34 9B 23 8A 9B 63 90 00 [09:04:28]wFMCommunicate OK [09:04:28]SAM_PROTO_SignData done [09:04:28]FM_MakeSignedData done [09:04:28]CreateOFDProtocolMessage [09:04:28]wFMCommunicate request_size=4 [09:04:28]MH_SAM_APDU [09:04:28]CAPDU: 80 11 00 00 [09:04:28]Write to MH i2c: E2 08 00 14 0E 80 11 00 00 00 00 00 00 9C [09:04:28]Write i2c OK [09:04:28]MH_I2C_Read... [09:04:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:28]Read from MH i2c: E2 [09:04:28]MH_I2C_Read... [09:04:28]Read from MH i2c: E2 17 00 [09:04:28]MH_I2C_Read... [09:04:28]Read from MH i2c: E2 17 00 14 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F7 [09:04:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:04:28]wFMCommunicate OK [09:04:28]CreateOFDProtocolMessage done [09:04:28]OFDSenderStorePacket 118396 [09:04:28]StoreOFDPacket docnum=118396 [09:04:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FA A7 07 01 E0 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 34 FF 03 08 00 03 6A 31 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 07 4F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 23 00 00 00 00 07 04 06 00 C4 4E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 9C 09 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7C CE 01 00 35 04 06 00 F8 2B D9 CF E5 6A 3A 5C 34 9B 23 8A 9B 63 [09:04:28]CheckFolder [09:04:28]dirname=/storage/ofd_packets [09:04:28]CheckFolder done [09:04:28]ProducePacketName [09:04:28]name=ofd_packets/00118396 [09:04:28]NVStorageSaveData ofd_packets/00118396 [09:04:28]File name is /storage/ofd_packets/00118396 [09:04:28]Write 301 bytes [09:04:28]NVStorageSaveData done [09:04:28]OFDSenderStorePacket done [09:04:28]KKMCreateOFDPacket done [09:04:28]NVStorageSaveData kkm_last_timestamp [09:04:28]File name is /storage/kkm_last_timestamp [09:04:28]Write 4 bytes [09:04:28]NVStorageSaveData done [09:04:28]ExternCall_PrintAddStr [09:04:28]wPrintStart [09:04:28]Write to MH i2c: 01 00 00 15 0E 23 [09:04:28]Write i2c OK [09:04:28]MH_I2C_Read... [09:04:28]Read from MH i2c: 01 [09:04:28]MH_I2C_Read... [09:04:28]Read from MH i2c: 01 07 00 [09:04:28]MH_I2C_Read... [09:04:28]Read from MH i2c: 01 07 00 15 0E 00 00 00 00 00 FF 0F 38 [09:04:28]RasterBufferAndPrint [09:04:28]line Счет N : (1)949268 [09:04:28]line ИНН: 02508201610067 [09:04:28]line Контрольно-Кассовый Чек [09:04:28]line ПРОДАЖА [09:04:28]line ТРК (МРК, ГНК) : 31 [09:04:28]line Товар: 2710124130 [09:04:28]line Аи-92-К-4 [09:04:28]line 12.650 * 67.80 [09:04:28]line = 857.67 [09:04:28]line НДС 12% НСП 1% [09:04:28]line > о реализуемом товаре [09:04:28]line ОКРУГЛЕНИЕ: -0.67 [09:04:28]line ИТОГО: 857.00 [09:04:28]line Внесено: 857.00 [09:04:28]line СДАЧА: 0.00 [09:04:28]line НСП 1% : 7.59 [09:04:28]line НДС 12% : 91.08 [09:04:28]line Наличными: 857.00 [09:04:28]line Безнал.: 0.00 [09:04:28]line Место: АЗС № 134 "Партнер Нефть" [09:04:28]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:04:28]line СНО: Общий режим [09:04:28]line Чек 65 28.07.2024 09:04 [09:04:28]line Смена: 433 ФФД: 1.0 [09:04:28]line ЗНМ: 0300000044 [09:04:28]line РНМ: 0000000000092660 [09:04:28]line Версия ККМ: 001 [09:04:28]line ФМ: 0000000000874939 [09:04:28]line ФД: 118396 [09:04:28]line ФПД: 272867221562730 [09:04:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T090428&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118396&fm=272867221562730&tin=02508201610067®Number=0000000000092660&sum=85700 [09:04:28]OFD Sender: Processing packet 118396 [packets to send 86, broken 85] [09:04:28]ProducePacketName [09:04:28]name=ofd_packets/00118396 [09:04:28]OFD Sender: To server: pG, [09:04:28]CommunicateWithHost lk.salyk.kg:30040 [09:04:28]ConnectInit lk.salyk.kg [09:04:28]written 0, free lines is 4095 [09:04:28]Connected sock=10 [09:04: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 39 33 39 0F 01 00 00 FA A7 07 01 E0 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 34 FF 03 08 00 03 6A 31 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 07 4F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 23 00 00 00 00 07 04 06 00 C4 4E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 9C 09 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7C CE 01 00 35 04 06 00 F8 2B D9 CF E5 6A 3A 5C 34 9B 23 8A 9B 63 [09:04:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 56 7A 47 00 54 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7C CE 01 00 F4 03 04 00 2D B7 A5 66 B6 04 01 00 00 D0 92 C1 63 64 6E 63 FC [09:04:28]CommunicateWithHost err = 0 [09:04:28]CheckOFDResponse [09:04:28]1017 (14) - 77093643461234 [09:04:28]1041 (16) - 0000000000874939 [09:04:28]1040 (4) - 118396 [09:04:28]1012 (4) - 28.07.2024 03:12 [09:04:28]1206 (1) - 0 [09:04:28]OFD Sender: Remove packet 118396 [09:04:28]ProducePacketName [09:04:28]name=ofd_packets/00118396 [09:04:28]NVStorageDeleteData [09:04:29]Write to MH i2c: 01 00 00 3F 0E 4D [09:04:29]Write i2c OK [09:04:29]MH_I2C_Read... [09:04:29]Read from MH i2c: 01 [09:04:29]MH_I2C_Read... [09:04:29]Read from MH i2c: 01 07 00 [09:04:29]MH_I2C_Read... [09:04:29]Read from MH i2c: 01 07 00 3F 0E 00 00 00 00 00 E3 0C 43 [09:04:29]RasterBufferAndPrint [09:04:29]line [09:04:29]line [09:04:29]line [09:04:29]line [09:04:29]line [09:04:29]written 0, free lines is 3305 [09:04:29]MH_Cut [09:04:29]Write to MH i2c: D1 01 00 46 0E 01 26 [09:04:29]Write i2c OK [09:04:29]MH_I2C_Read... [09:04:29]Read from MH i2c: D1 [09:04:29]MH_I2C_Read... [09:04:29]Read from MH i2c: D1 01 00 [09:04:29]MH_I2C_Read... [09:04:29]Read from MH i2c: D1 01 00 46 0E 00 25 [09:04:29]Write to MH i2c: 01 00 00 47 0E 55 [09:04:29]Write i2c OK [09:04:29]MH_I2C_Read... [09:04:29]OFD Sender: No OFD packet to send [09:04:29]*** Cut start [09:04:29]*** Partial cut [09:04:29]*** CUTSNS_PIN = 1 [09:04:29]*** CUTSNS_PIN = 0 [09:04:30]*** Brake cut motor [09:04:30]Read from MH i2c: 01 [09:04:30]MH_I2C_Read... [09:04:30]*** Stop cut motor [09:04:30]*** Cut end [09:04:30]Read from MH i2c: 01 07 00 [09:04:30]MH_I2C_Read... [09:04:30]Read from MH i2c: 01 07 00 47 0E 00 00 00 00 00 FF 0F 6A [09:04:30]process_action close_receipt done [09:04:30]requested_data is exist [09:04:30]produce_requested_data [09:04:30]requested_item fm.sn is exist - process it [09:04:30]wFMCommunicate request_size=4 [09:04:30]MH_SAM_APDU [09:04:30]CAPDU: 80 11 00 00 [09:04:30]Write to MH i2c: E2 08 00 48 0E 80 11 00 00 00 00 00 00 D0 [09:04:30]Write i2c OK [09:04:30]MH_I2C_Read... [09:04:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:30]Read from MH i2c: E2 [09:04:30]MH_I2C_Read... [09:04:30]Read from MH i2c: E2 17 00 [09:04:30]MH_I2C_Read... [09:04:30]Read from MH i2c: E2 17 00 48 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2B [09:04:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:04:30]wFMCommunicate OK [09:04:30]requested_item fd.num is exist - process it [09:04:30]SAM_PROTO_GetFieldsCounters [09:04:30]wFMCommunicate request_size=4 [09:04:30]MH_SAM_APDU [09:04:30]CAPDU: 80 13 00 00 [09:04:30]Write to MH i2c: E2 08 00 49 0E 80 13 00 00 00 00 00 00 D3 [09:04:30]Write i2c OK [09:04:30]MH_I2C_Read... [09:04:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:30]Read from MH i2c: E2 [09:04:30]MH_I2C_Read... [09:04:30]Read from MH i2c: E2 62 00 [09:04:30]MH_I2C_Read... [09:04:30]Read from MH i2c: E2 62 00 49 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7C CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [09:04:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7C CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:04:30]wFMCommunicate OK [09:04:30]SAM_PROTO_GetFieldsCounters done [09:04:30]requested_item shift.num is exist - process it [09:04:30]requested_item shift.opened is exist - process it [09:04:30]req_shift_opened [09:04:30]FM_GetShiftState [09:04:30]SAM_PROTO_GetShiftState [09:04:30]wFMCommunicate request_size=4 [09:04:30]MH_SAM_APDU [09:04:30]CAPDU: 80 13 01 00 [09:04:30]Write to MH i2c: E2 08 00 4A 0E 80 13 01 00 00 00 00 00 D5 [09:04:30]Write i2c OK [09:04:30]MH_I2C_Read... [09:04:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:30]Read from MH i2c: E2 [09:04:30]MH_I2C_Read... [09:04:30]Read from MH i2c: E2 0E 00 [09:04:30]MH_I2C_Read... [09:04:30]Read from MH i2c: E2 0E 00 4A 0E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 AC [09:04:30]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:04:30]wFMCommunicate OK [09:04:30]SAM_PROTO_GetShiftState done [09:04:30]FM_GetShiftState done [09:04:30]req_shift_opened done [09:04:30]requested_item shift.open_date is exist - process it [09:04:30]req_shift_open_date [09:04:30]req_shift_open_date done [09:04:30]produce_requested_data done [09:04:30]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118396,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [09:04:30]process_action_free close_receipt [09:04:30]json_value_free [09:04:30]json_value_free done [09:04:30]process_json_proto returns [09:04:30]Send response to host [09:04:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118396,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [09:04:30]free response buf [09:04:30]execute_script done [09:04:30]execute_script returns [09:04:30]free content buf [09:04:30]Sock 9.Close socket [09:04:30]Sock 9.Thread stoped [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:09]OFD Sender: No OFD packet to send [09:06:14]OFD Sender: No OFD packet to send [09:06:19]OFD Sender: No OFD packet to send [09:06:24]OFD Sender: No OFD packet to send [09:06:29]OFD Sender: No OFD packet to send [09:06:34]OFD Sender: No OFD packet to send [09:06:39]OFD Sender: No OFD packet to send [09:06:44]OFD Sender: No OFD packet to send [09:06:49]OFD Sender: No OFD packet to send [09:06:54]OFD Sender: No OFD packet to send [09:06:59]OFD Sender: No OFD packet to send [09:07:04]OFD Sender: No OFD packet to send [09:07:09]OFD Sender: No OFD packet to send [09:07:14]OFD Sender: No OFD packet to send [09:07:19]OFD Sender: No OFD packet to send [09:07:24]OFD Sender: No OFD packet to send [09:07:29]OFD Sender: No OFD packet to send [09:07:34]OFD Sender: No OFD packet to send [09:07:39]OFD Sender: No OFD packet to send [09:07:44]OFD Sender: No OFD packet to send [09:07:49]OFD Sender: No OFD packet to send [09:07:54]OFD Sender: No OFD packet to send [09:07:59]OFD Sender: No OFD packet to send [09:08:04]OFD Sender: No OFD packet to send [09:08:09]OFD Sender: No OFD packet to send [09:08:13]accept exits with 7 [09:08:13]New connection [09:08:13]New thread 3066924388 created [09:08:13]Thread 3067067748 joined [09:08:13]Waiting for new connection... [09:08:13] Sock 7.Parse request [09:08:13]Sock 7.Check first char [09:08:13]Sock 7.First char is OK [09:08:13]request: POST /json_proto HTTP/1.0 [09:08:13]Method: POST [09:08:13]URL: /json_proto [09:08:13]Method is POST - this is cgi request [09:08:13]url: /json_proto [09:08:13]query_string will be loaded in cgi processing [09:08:13]execute_cgi json_proto POST (null) [09:08:13]execute_cgi path=json_proto method=POST [09:08:13]POST find Content-Length [09:08:13]Host: 172.17.45.7:8080 [09:08:13]Content-Length: 682 [09:08:13]Content-Type: application/json [09:08:13] [09:08:13]POST finish read [09:08:13]Found Content-Length = 682 [09:08:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:13]execute_script... [09:08: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)949269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:13]POST & json_proto [09:08:13]process_json_proto [09:08:13]json parsed OK: [09:08:13]protocol is kg_v1.0 [09:08:13]action value=close_receipt [09:08:13]process_action close_receipt [09:08:13]cmd_close_receipt [09:08:13]MH_GetDate [09:08:13]Write to MH i2c: F0 00 00 4B 0E 48 [09:08:13]Write i2c OK [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: F0 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: F0 09 00 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: F0 09 00 4B 0E 00 7F 0A A6 66 90 0F 3E 66 29 [09:08:13]GetLastDocTimeStamp 1722157468 [09:08:13]current date 1722157695 [09:08:13]FM_GetShiftState [09:08:13]SAM_PROTO_GetShiftState [09:08:13]wFMCommunicate request_size=4 [09:08:13]MH_SAM_APDU [09:08:13]CAPDU: 80 13 01 00 [09:08:13]Write to MH i2c: E2 08 00 4C 0E 80 13 01 00 00 00 00 00 D7 [09:08:13]Write i2c OK [09:08:13]MH_I2C_Read... [09:08:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:13]Read from MH i2c: E2 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: E2 0E 00 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: E2 0E 00 4C 0E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 AE [09:08:13]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:08:13]wFMCommunicate OK [09:08:13]SAM_PROTO_GetShiftState done [09:08:13]FM_GetShiftState done [09:08:13]opened in 1722125364 [09:08:13]opened+sec_in_day 1722211764 [09:08:13]quantity*price = 100005 [09:08:13]sum+1 = 100006 [09:08:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 66 28.07.2024 09:08 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118397 ФПД: 276321048026135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T090815&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118397&fm=276321048026135&tin=02508201610067®Number=0000000000092660&sum=100000 [09:08:14]StoreToDocumentArchive [09:08:14]shift 433 fd 118397 [09:08:14]save to /storage/0433/doc_00118397 [09:08:14]save last doc name /storage/0433/doc_00118397 to /storage/kkm_last_doc_name [09:08:14]save OK [09:08:14]Clear old archive folders... [09:08:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:14]tlvbuf is 0013CB90 [09:08:14]SAM_PROTO_ClearQueue [09:08:14]wFMCommunicate request_size=4 [09:08:14]MH_SAM_APDU [09:08:14]CAPDU: 80 09 00 00 [09:08:14]Write to MH i2c: E2 08 00 59 0E 80 09 00 00 00 00 00 00 D9 [09:08:14]Write i2c OK [09:08:14]MH_I2C_Read... [09:08:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:14]Read from MH i2c: E2 [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: E2 03 00 [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: E2 03 00 59 0E 00 90 00 DB [09:08:14]RAPDU: 90 00 [09:08:14]wFMCommunicate OK [09:08:14]SAM_PROTO_ClearQueue done [09:08:14]KKMCreateOFDPacket [09:08:14]OFDProtocolAddRootSTLVToBuf [09:08:14]FM_MakeSignedData [09:08:14]FM_MakeSignedData [09:08:14]SAM_PROTO_SignData [09:08:14]wFMCommunicate request_size=4 [09:08:14]MH_SAM_APDU [09:08:14]CAPDU: 80 0D 01 02 [09:08:14]Write to MH i2c: E2 08 00 5A 0E 80 0D 01 02 00 00 00 00 E1 [09:08:14]Write i2c OK [09:08:14]MH_I2C_Read... [09:08:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:15]Read from MH i2c: E2 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 03 00 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 03 00 5A 0E 00 90 00 DC [09:08:15]RAPDU: 90 00 [09:08:15]wFMCommunicate OK [09:08:15]wFMCommunicate request_size=255 [09:08:15]MH_SAM_APDU [09: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 7F 0A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7D CE 01 00 35 04 06 00 FB [09:08:15]Write to MH i2c: E2 02 01 5B 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 7F 0A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7D CE 01 00 35 04 06 00 FB 00 00 C4 [09:08:15]Write i2c OK [09:08:15]MH_I2C_Read... [09:08:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:15]Read from MH i2c: E2 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 03 00 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 03 00 5B 0E 00 90 00 DD [09:08:15]RAPDU: 90 00 [09:08:15]wFMCommunicate OK [09:08:15]wFMCommunicate request_size=10 [09:08:15]MH_SAM_APDU [09:08:15]CAPDU: 80 0D 02 02 05 50 01 E9 5C 17 [09:08:15]Write to MH i2c: E2 0D 00 5C 0E 80 0D 02 02 05 00 50 01 E9 5C 17 00 00 9B [09:08:15]Write i2c OK [09:08:15]MH_I2C_Read... [09:08:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:15]Read from MH i2c: E2 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 03 00 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 03 00 5C 0E 00 90 00 DE [09:08:15]RAPDU: 90 00 [09:08:15]wFMCommunicate OK [09:08:15]wFMCommunicate request_size=4 [09:08:15]MH_SAM_APDU [09:08:15]CAPDU: 80 0D 03 02 [09:08:15]Write to MH i2c: E2 08 00 5D 0E 80 0D 03 02 00 00 00 00 E6 [09:08:15]Write i2c OK [09:08:15]MH_I2C_Read... [09:08:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:15]Read from MH i2c: E2 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 0B 00 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 0B 00 5D 0E 00 F4 BD 6D 0D A9 D6 DB 9E 90 00 0A [09:08:15]RAPDU: F4 BD 6D 0D A9 D6 DB 9E 90 00 [09:08:15]wFMCommunicate OK [09:08:15]SAM_PROTO_SignData done [09:08:15]FM_MakeSignedData done [09:08:15]CreateOFDProtocolMessage [09:08:15]wFMCommunicate request_size=4 [09:08:15]MH_SAM_APDU [09:08:15]CAPDU: 80 11 00 00 [09:08:15]Write to MH i2c: E2 08 00 5E 0E 80 11 00 00 00 00 00 00 E6 [09:08:15]Write i2c OK [09:08:15]MH_I2C_Read... [09:08:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:15]Read from MH i2c: E2 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 17 00 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 17 00 5E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 41 [09:08:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:08:15]wFMCommunicate OK [09:08:15]CreateOFDProtocolMessage done [09:08:15]OFDSenderStorePacket 118397 [09:08:15]StoreOFDPacket docnum=118397 [09:08:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C1 1E 07 01 4F 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 7F 0A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7D CE 01 00 35 04 06 00 FB 50 01 E9 5C 17 F4 BD 6D 0D A9 D6 DB 9E [09:08:15]CheckFolder [09:08:15]dirname=/storage/ofd_packets [09:08:15]CheckFolder done [09:08:15]ProducePacketName [09:08:15]name=ofd_packets/00118397 [09:08:15]NVStorageSaveData ofd_packets/00118397 [09:08:15]File name is /storage/ofd_packets/00118397 [09:08:15]Write 301 bytes [09:08:15]NVStorageSaveData done [09:08:15]OFDSenderStorePacket done [09:08:15]KKMCreateOFDPacket done [09:08:15]NVStorageSaveData kkm_last_timestamp [09:08:15]File name is /storage/kkm_last_timestamp [09:08:15]Write 4 bytes [09:08:15]NVStorageSaveData done [09:08:15]ExternCall_PrintAddStr [09:08:15]wPrintStart [09:08:15]Write to MH i2c: 01 00 00 5F 0E 6D [09:08:15]Write i2c OK [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: 01 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: 01 07 00 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: 01 07 00 5F 0E 00 00 00 00 00 FF 0F 82 [09:08:15]RasterBufferAndPrint [09:08:15]line Счет N : (1)949269 [09:08:15]line ИНН: 02508201610067 [09:08:15]line Контрольно-Кассовый Чек [09:08:15]line ПРОДАЖА [09:08:15]line ТРК (МРК, ГНК) : 51 [09:08:15]line Товар: 2710124130 [09:08:15]line Аи-92-К-4 [09:08:15]line 14.750 * 67.80 [09:08:15]line = 1000.05 [09:08:15]line НДС 12% НСП 1% [09:08:15]line > о реализуемом товаре [09:08:15]line ОКРУГЛЕНИЕ: -0.05 [09:08:15]line ИТОГО: 1000.00 [09:08:15]line Внесено: 1000.00 [09:08:15]line СДАЧА: 0.00 [09:08:15]line НСП 1% : 8.85 [09:08:15]line НДС 12% : 106.20 [09:08:15]line Наличными: 1000.00 [09:08:15]line Безнал.: 0.00 [09:08:15]line Место: АЗС № 134 "Партнер Нефть" [09:08:15]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:08:15]line СНО: Общий режим [09:08:15]line Чек 66 28.07.2024 09:08 [09:08:15]line Смена: 433 ФФД: 1.0 [09:08:15]line ЗНМ: 0300000044 [09:08:15]line РНМ: 0000000000092660 [09:08:15]line Версия ККМ: 001 [09:08:15]line ФМ: 0000000000874939 [09:08:15]line ФД: 118397 [09:08:15]line ФПД: 276321048026135 [09:08:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T090815&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118397&fm=276321048026135&tin=02508201610067®Number=0000000000092660&sum=100000 [09:08:15]OFD Sender: Processing packet 118397 [packets to send 86, broken 85] [09:08:15]ProducePacketName [09:08:15]name=ofd_packets/00118397 [09:08:15]OFD Sender: To server: pG, [09:08:15]CommunicateWithHost lk.salyk.kg:30040 [09:08:15]ConnectInit lk.salyk.kg [09:08:15]written 0, free lines is 4095 [09:08:15]Connected sock=11 [09:08:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C1 1E 07 01 4F 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 7F 0A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7D CE 01 00 35 04 06 00 FB 50 01 E9 5C 17 F4 BD 6D 0D A9 D6 DB 9E [09: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 39 33 39 4F 00 00 00 B5 93 47 00 B8 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 39 33 39 10 04 04 00 7D CE 01 00 F4 03 04 00 10 B8 A5 66 B6 04 01 00 00 58 78 AC B2 C8 1A 23 35 [09:08:16]CommunicateWithHost err = 0 [09:08:16]CheckOFDResponse [09:08:16]1017 (14) - 77093643461234 [09:08:16]1041 (16) - 0000000000874939 [09:08:16]1040 (4) - 118397 [09:08:16]1012 (4) - 28.07.2024 03:16 [09:08:16]1206 (1) - 0 [09:08:16]OFD Sender: Remove packet 118397 [09:08:16]ProducePacketName [09:08:16]name=ofd_packets/00118397 [09:08:16]NVStorageDeleteData [09:08:16]Write to MH i2c: 01 00 00 89 0E 97 [09:08:16]Write i2c OK [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: 01 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: 01 07 00 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: 01 07 00 89 0E 00 00 00 00 00 E3 0C 8D [09:08:16]RasterBufferAndPrint [09:08:16]line [09:08:16]line [09:08:16]line [09:08:16]line [09:08:16]line [09:08:16]written 0, free lines is 3305 [09:08:16]MH_Cut [09:08:16]Write to MH i2c: D1 01 00 90 0E 01 70 [09:08:16]Write i2c OK [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: D1 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: D1 01 00 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: D1 01 00 90 0E 00 6F [09:08:16]Write to MH i2c: 01 00 00 91 0E 9F [09:08:16]Write i2c OK [09:08:16]MH_I2C_Read... [09:08:16]OFD Sender: No OFD packet to send [09:08:16]*** Cut start [09:08:16]*** Partial cut [09:08:16]*** CUTSNS_PIN = 1 [09:08:17]*** CUTSNS_PIN = 0 [09:08:17]*** Brake cut motor [09:08:17]Read from MH i2c: 01 [09:08:17]MH_I2C_Read... [09:08:17]*** Stop cut motor [09:08:17]*** Cut end [09:08:17]Read from MH i2c: 01 07 00 [09:08:17]MH_I2C_Read... [09:08:17]Read from MH i2c: 01 07 00 91 0E 00 00 00 00 00 FF 0F B4 [09:08:17]process_action close_receipt done [09:08:17]requested_data is exist [09:08:17]produce_requested_data [09:08:17]requested_item fm.sn is exist - process it [09:08:17]wFMCommunicate request_size=4 [09:08:17]MH_SAM_APDU [09:08:17]CAPDU: 80 11 00 00 [09:08:17]Write to MH i2c: E2 08 00 92 0E 80 11 00 00 00 00 00 00 1A [09:08:17]Write i2c OK [09:08:17]MH_I2C_Read... [09:08:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:17]Read from MH i2c: E2 [09:08:17]MH_I2C_Read... [09:08:17]Read from MH i2c: E2 17 00 [09:08:17]MH_I2C_Read... [09:08:17]Read from MH i2c: E2 17 00 92 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 75 [09:08:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:08:17]wFMCommunicate OK [09:08:17]requested_item fd.num is exist - process it [09:08:17]SAM_PROTO_GetFieldsCounters [09:08:17]wFMCommunicate request_size=4 [09:08:17]MH_SAM_APDU [09:08:17]CAPDU: 80 13 00 00 [09:08:17]Write to MH i2c: E2 08 00 93 0E 80 13 00 00 00 00 00 00 1D [09:08:17]Write i2c OK [09:08:17]MH_I2C_Read... [09:08:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:17]Read from MH i2c: E2 [09:08:17]MH_I2C_Read... [09:08:17]Read from MH i2c: E2 62 00 [09:08:17]MH_I2C_Read... [09:08:17]Read from MH i2c: E2 62 00 93 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7D CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [09:08:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7D CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:17]wFMCommunicate OK [09:08:17]SAM_PROTO_GetFieldsCounters done [09:08:17]requested_item shift.num is exist - process it [09:08:17]requested_item shift.opened is exist - process it [09:08:17]req_shift_opened [09:08:17]FM_GetShiftState [09:08:17]SAM_PROTO_GetShiftState [09:08:17]wFMCommunicate request_size=4 [09:08:17]MH_SAM_APDU [09:08:17]CAPDU: 80 13 01 00 [09:08:17]Write to MH i2c: E2 08 00 94 0E 80 13 01 00 00 00 00 00 1F [09:08:17]Write i2c OK [09:08:17]MH_I2C_Read... [09:08:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:17]Read from MH i2c: E2 [09:08:17]MH_I2C_Read... [09:08:17]Read from MH i2c: E2 0E 00 [09:08:17]MH_I2C_Read... [09:08:17]Read from MH i2c: E2 0E 00 94 0E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 F6 [09:08:17]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:08:17]wFMCommunicate OK [09:08:17]SAM_PROTO_GetShiftState done [09:08:17]FM_GetShiftState done [09:08:17]req_shift_opened done [09:08:17]requested_item shift.open_date is exist - process it [09:08:17]req_shift_open_date [09:08:17]req_shift_open_date done [09:08:17]produce_requested_data done [09:08:17]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118397,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [09:08:17]process_action_free close_receipt [09:08:17]json_value_free [09:08:17]json_value_free done [09:08:17]process_json_proto returns [09:08:17]Send response to host [09:08:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118397,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [09:08:17]free response buf [09:08:17]execute_script done [09:08:17]execute_script returns [09:08:17]free content buf [09:08:17]Sock 7.Close socket [09:08:17]Sock 7.Thread stoped [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: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:56]OFD Sender: No OFD packet to send [09:11:01]OFD Sender: No OFD packet to send [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:16]OFD Sender: No OFD packet to send [09:11:21]OFD Sender: No OFD packet to send [09:11:26]OFD Sender: No OFD packet to send [09:11:31]OFD Sender: No OFD packet to send [09:11:36]OFD Sender: No OFD packet to send [09:11:41]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:40]accept exits with 9 [09:12:40]New connection [09:12:40]New thread 3067067748 created [09:12:40]Thread 3066924388 joined [09:12:40]Waiting for new connection... [09:12:40] Sock 9.Parse request [09:12:40]Sock 9.Check first char [09:12:40]Sock 9.First char is OK [09:12:40]request: POST /json_proto HTTP/1.0 [09:12:40]Method: POST [09:12:40]URL: /json_proto [09:12:40]Method is POST - this is cgi request [09:12:40]url: /json_proto [09:12:40]query_string will be loaded in cgi processing [09:12:40]execute_cgi json_proto POST (null) [09:12:40]execute_cgi path=json_proto method=POST [09:12:40]POST find Content-Length [09:12:40]Host: 172.17.45.7:8080 [09:12:40]Content-Length: 674 [09:12:40]Content-Type: application/json [09:12:40] [09:12:40]POST finish read [09:12:40]Found Content-Length = 674 [09:12:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:40]execute_script... [09: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)949270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:40]POST & json_proto [09:12:40]process_json_proto [09:12:40]json parsed OK: [09:12:40]protocol is kg_v1.0 [09:12:40]action value=close_receipt [09:12:40]process_action close_receipt [09:12:40]cmd_close_receipt [09:12:40]MH_GetDate [09:12:40]Write to MH i2c: F0 00 00 95 0E 92 [09:12:40]Write i2c OK [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: F0 [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: F0 09 00 [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: F0 09 00 95 0E 00 8A 0B A6 66 90 0F 3E 66 7F [09:12:40]GetLastDocTimeStamp 1722157695 [09:12:40]current date 1722157962 [09:12:40]FM_GetShiftState [09:12:40]SAM_PROTO_GetShiftState [09:12:40]wFMCommunicate request_size=4 [09:12:40]MH_SAM_APDU [09:12:40]CAPDU: 80 13 01 00 [09:12:40]Write to MH i2c: E2 08 00 96 0E 80 13 01 00 00 00 00 00 21 [09:12:40]Write i2c OK [09:12:40]MH_I2C_Read... [09:12:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:40]Read from MH i2c: E2 [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: E2 0E 00 [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: E2 0E 00 96 0E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 F8 [09:12:40]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:12:40]wFMCommunicate OK [09:12:40]SAM_PROTO_GetShiftState done [09:12:40]FM_GetShiftState done [09:12:40]opened in 1722125364 [09:12:40]opened+sec_in_day 1722211764 [09:12:40]quantity*price = 50063 [09:12:40]sum+1 = 50064 [09:12:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 67 28.07.2024 09:12 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118398 ФПД: 113261846062381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T091242&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118398&fm=113261846062381&tin=02508201610067®Number=0000000000092660&sum=50000 [09:12:41]StoreToDocumentArchive [09:12:41]shift 433 fd 118398 [09:12:41]save to /storage/0433/doc_00118398 [09:12:41]save last doc name /storage/0433/doc_00118398 to /storage/kkm_last_doc_name [09:12:41]save OK [09:12:41]Clear old archive folders... [09:12:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:12:41]tlvbuf is 00156780 [09:12:41]SAM_PROTO_ClearQueue [09:12:41]wFMCommunicate request_size=4 [09:12:41]MH_SAM_APDU [09:12:41]CAPDU: 80 09 00 00 [09:12:41]Write to MH i2c: E2 08 00 A3 0E 80 09 00 00 00 00 00 00 23 [09:12:41]Write i2c OK [09:12:41]MH_I2C_Read... [09:12:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:41]Read from MH i2c: E2 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: E2 03 00 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: E2 03 00 A3 0E 00 90 00 25 [09:12:41]RAPDU: 90 00 [09:12:41]wFMCommunicate OK [09:12:41]SAM_PROTO_ClearQueue done [09:12:41]KKMCreateOFDPacket [09:12:41]OFDProtocolAddRootSTLVToBuf [09:12:41]FM_MakeSignedData [09:12:41]FM_MakeSignedData [09:12:41]SAM_PROTO_SignData [09:12:41]wFMCommunicate request_size=4 [09:12:41]MH_SAM_APDU [09:12:41]CAPDU: 80 0D 01 02 [09:12:41]Write to MH i2c: E2 08 00 A4 0E 80 0D 01 02 00 00 00 00 2B [09:12:41]Write i2c OK [09:12:41]MH_I2C_Read... [09:12:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:41]Read from MH i2c: E2 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: E2 03 00 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: E2 03 00 A4 0E 00 90 00 26 [09:12:41]RAPDU: 90 00 [09:12:41]wFMCommunicate OK [09:12:41]wFMCommunicate request_size=255 [09:12:41]MH_SAM_APDU [09:12:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 8A 0B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7E CE 01 00 35 04 06 00 67 02 D4 19 [09:12:41]Write to MH i2c: E2 02 01 A5 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 8A 0B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7E CE 01 00 35 04 06 00 67 02 D4 19 00 00 7C [09:12:41]Write i2c OK [09:12:41]MH_I2C_Read... [09:12:41]OFD Sender: No OFD packet to send [09:12:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:42]Read from MH i2c: E2 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: E2 03 00 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: E2 03 00 A5 0E 00 90 00 27 [09:12:42]RAPDU: 90 00 [09:12:42]wFMCommunicate OK [09:12:42]wFMCommunicate request_size=7 [09:12:42]MH_SAM_APDU [09:12:42]CAPDU: 80 0D 02 02 02 E5 2D [09:12:42]Write to MH i2c: E2 0A 00 A6 0E 80 0D 02 02 02 00 E5 2D 00 00 44 [09:12:42]Write i2c OK [09:12:42]MH_I2C_Read... [09:12:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:42]Read from MH i2c: E2 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: E2 03 00 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: E2 03 00 A6 0E 00 90 00 28 [09:12:42]RAPDU: 90 00 [09:12:42]wFMCommunicate OK [09:12:42]wFMCommunicate request_size=4 [09:12:42]MH_SAM_APDU [09:12:42]CAPDU: 80 0D 03 02 [09:12:42]Write to MH i2c: E2 08 00 A7 0E 80 0D 03 02 00 00 00 00 30 [09:12:42]Write i2c OK [09:12:42]MH_I2C_Read... [09:12:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:42]Read from MH i2c: E2 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: E2 0B 00 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: E2 0B 00 A7 0E 00 3C 54 1F 81 56 61 64 0C 90 00 88 [09:12:42]RAPDU: 3C 54 1F 81 56 61 64 0C 90 00 [09:12:42]wFMCommunicate OK [09:12:42]SAM_PROTO_SignData done [09:12:42]FM_MakeSignedData done [09:12:42]CreateOFDProtocolMessage [09:12:42]wFMCommunicate request_size=4 [09:12:42]MH_SAM_APDU [09:12:42]CAPDU: 80 11 00 00 [09:12:42]Write to MH i2c: E2 08 00 A8 0E 80 11 00 00 00 00 00 00 30 [09:12:42]Write i2c OK [09:12:42]MH_I2C_Read... [09:12:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:42]Read from MH i2c: E2 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: E2 17 00 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: E2 17 00 A8 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8B [09:12:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:12:42]wFMCommunicate OK [09:12:42]CreateOFDProtocolMessage done [09:12:42]OFDSenderStorePacket 118398 [09:12:42]StoreOFDPacket docnum=118398 [09:12:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 4B 32 04 01 5D BA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 8A 0B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7E CE 01 00 35 04 06 00 67 02 D4 19 E5 2D 3C 54 1F 81 56 61 64 0C [09:12:42]CheckFolder [09:12:42]dirname=/storage/ofd_packets [09:12:42]CheckFolder done [09:12:42]ProducePacketName [09:12:42]name=ofd_packets/00118398 [09:12:42]NVStorageSaveData ofd_packets/00118398 [09:12:42]File name is /storage/ofd_packets/00118398 [09:12:42]Write 298 bytes [09:12:42]NVStorageSaveData done [09:12:42]OFDSenderStorePacket done [09:12:42]KKMCreateOFDPacket done [09:12:42]NVStorageSaveData kkm_last_timestamp [09:12:42]File name is /storage/kkm_last_timestamp [09:12:42]Write 4 bytes [09:12:42]NVStorageSaveData done [09:12:42]ExternCall_PrintAddStr [09:12:42]wPrintStart [09:12:42]Write to MH i2c: 01 00 00 A9 0E B7 [09:12:42]Write i2c OK [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: 01 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: 01 07 00 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: 01 07 00 A9 0E 00 00 00 00 00 FF 0F CC [09:12:42]RasterBufferAndPrint [09:12:42]line Счет N : (1)949270 [09:12:42]line ИНН: 02508201610067 [09:12:42]line Контрольно-Кассовый Чек [09:12:42]line ПРОДАЖА [09:12:42]line ТРК (МРК, ГНК) : 21 [09:12:42]line Товар: 2710194800 [09:12:42]line ДТ-К-5 [09:12:42]line 6.570 * 76.20 [09:12:42]line = 500.63 [09:12:42]line НДС 12% НСП 1% [09:12:42]line > о реализуемом товаре [09:12:42]line ОКРУГЛЕНИЕ: -0.63 [09:12:42]line ИТОГО: 500.00 [09:12:42]line Внесено: 500.00 [09:12:42]line СДАЧА: 0.00 [09:12:42]line НСП 1% : 4.43 [09:12:42]line НДС 12% : 53.16 [09:12:42]line Наличными: 500.00 [09:12:42]line Безнал.: 0.00 [09:12:42]line Место: АЗС № 134 "Партнер Нефть" [09:12:42]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:12:42]line СНО: Общий режим [09:12:42]line Чек 67 28.07.2024 09:12 [09:12:42]line Смена: 433 ФФД: 1.0 [09:12:42]line ЗНМ: 0300000044 [09:12:42]line РНМ: 0000000000092660 [09:12:42]line Версия ККМ: 001 [09:12:42]line ФМ: 0000000000874939 [09:12:42]line ФД: 118398 [09:12:42]line ФПД: 113261846062381 [09:12:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T091242&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118398&fm=113261846062381&tin=02508201610067®Number=0000000000092660&sum=50000 [09:12:42]OFD Sender: Processing packet 118398 [packets to send 86, broken 85] [09:12:42]ProducePacketName [09:12:42]name=ofd_packets/00118398 [09:12:42]OFD Sender: To server: pG, [09:12:42]CommunicateWithHost lk.salyk.kg:30040 [09:12:42]ConnectInit lk.salyk.kg [09:12:42]written 0, free lines is 4095 [09:12:42]Connected sock=10 [09: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 39 33 39 0C 01 00 00 4B 32 04 01 5D BA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 8A 0B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7E CE 01 00 35 04 06 00 67 02 D4 19 E5 2D 3C 54 1F 81 56 61 64 0C [09:12:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BF 59 47 00 47 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 39 33 39 10 04 04 00 7E CE 01 00 F4 03 04 00 1B B9 A5 66 B6 04 01 00 00 2E 95 F1 9A FB C2 BA 51 [09:12:42]CommunicateWithHost err = 0 [09:12:42]CheckOFDResponse [09:12:42]1017 (14) - 77093643461234 [09:12:42]1041 (16) - 0000000000874939 [09:12:42]1040 (4) - 118398 [09:12:42]1012 (4) - 28.07.2024 03:20 [09:12:42]1206 (1) - 0 [09:12:42]OFD Sender: Remove packet 118398 [09:12:42]ProducePacketName [09:12:42]name=ofd_packets/00118398 [09:12:42]NVStorageDeleteData [09:12:42]Write to MH i2c: 01 00 00 D3 0E E1 [09:12:42]Write i2c OK [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: 01 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: 01 07 00 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: 01 07 00 D3 0E 00 00 00 00 00 F0 0C E4 [09:12:42]RasterBufferAndPrint [09:12:42]line [09:12:42]line [09:12:42]line [09:12:42]line [09:12:42]line [09:12:42]written 0, free lines is 3318 [09:12:42]MH_Cut [09:12:42]Write to MH i2c: D1 01 00 DA 0E 01 BA [09:12:42]Write i2c OK [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: D1 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: D1 01 00 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: D1 01 00 DA 0E 00 B9 [09:12:42]Write to MH i2c: 01 00 00 DB 0E E9 [09:12:42]Write i2c OK [09:12:42]MH_I2C_Read... [09:12:43]OFD Sender: No OFD packet to send [09:12:43]*** Cut start [09:12:43]*** Partial cut [09:12:43]*** CUTSNS_PIN = 1 [09:12:43]*** CUTSNS_PIN = 0 [09:12:43]*** Brake cut motor [09:12:44]Read from MH i2c: 01 [09:12:44]MH_I2C_Read... [09:12:44]*** Stop cut motor [09:12:44]*** Cut end [09:12:44]Read from MH i2c: 01 07 00 [09:12:44]MH_I2C_Read... [09:12:44]Read from MH i2c: 01 07 00 DB 0E 00 00 00 00 00 FF 0F FE [09:12:44]process_action close_receipt done [09:12:44]requested_data is exist [09:12:44]produce_requested_data [09:12:44]requested_item fm.sn is exist - process it [09:12:44]wFMCommunicate request_size=4 [09:12:44]MH_SAM_APDU [09:12:44]CAPDU: 80 11 00 00 [09:12:44]Write to MH i2c: E2 08 00 DC 0E 80 11 00 00 00 00 00 00 64 [09:12:44]Write i2c OK [09:12:44]MH_I2C_Read... [09:12:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:44]Read from MH i2c: E2 [09:12:44]MH_I2C_Read... [09:12:44]Read from MH i2c: E2 17 00 [09:12:44]MH_I2C_Read... [09:12:44]Read from MH i2c: E2 17 00 DC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BF [09:12:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:12:44]wFMCommunicate OK [09:12:44]requested_item fd.num is exist - process it [09:12:44]SAM_PROTO_GetFieldsCounters [09:12:44]wFMCommunicate request_size=4 [09:12:44]MH_SAM_APDU [09:12:44]CAPDU: 80 13 00 00 [09:12:44]Write to MH i2c: E2 08 00 DD 0E 80 13 00 00 00 00 00 00 67 [09:12:44]Write i2c OK [09:12:44]MH_I2C_Read... [09:12:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:44]Read from MH i2c: E2 [09:12:44]MH_I2C_Read... [09:12:44]Read from MH i2c: E2 62 00 [09:12:44]MH_I2C_Read... [09:12:44]Read from MH i2c: E2 62 00 DD 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7E CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [09: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7E CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:12:44]wFMCommunicate OK [09:12:44]SAM_PROTO_GetFieldsCounters done [09:12:44]requested_item shift.num is exist - process it [09:12:44]requested_item shift.opened is exist - process it [09:12:44]req_shift_opened [09:12:44]FM_GetShiftState [09:12:44]SAM_PROTO_GetShiftState [09:12:44]wFMCommunicate request_size=4 [09:12:44]MH_SAM_APDU [09:12:44]CAPDU: 80 13 01 00 [09:12:44]Write to MH i2c: E2 08 00 DE 0E 80 13 01 00 00 00 00 00 69 [09:12:44]Write i2c OK [09:12:44]MH_I2C_Read... [09:12:44]Read from MH i2c: E2 [09:12:44]MH_I2C_Read... [09:12:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:44]Read from MH i2c: E2 0E 00 [09:12:44]MH_I2C_Read... [09:12:44]Read from MH i2c: E2 0E 00 DE 0E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 40 [09:12:44]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:12:44]wFMCommunicate OK [09:12:44]SAM_PROTO_GetShiftState done [09:12:44]FM_GetShiftState done [09:12:44]req_shift_opened done [09:12:44]requested_item shift.open_date is exist - process it [09:12:44]req_shift_open_date [09:12:44]req_shift_open_date done [09:12:44]produce_requested_data done [09:12:44]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118398,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [09:12:44]process_action_free close_receipt [09:12:44]json_value_free [09:12:44]json_value_free done [09:12:44]process_json_proto returns [09:12:44]Send response to host [09:12:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118398,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [09:12:44]free response buf [09:12:44]execute_script done [09:12:44]execute_script returns [09:12:44]free content buf [09:12:44]Sock 9.Close socket [09:12:44]Sock 9.Thread stoped [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:08]OFD Sender: No OFD packet to send [09:13:13]OFD Sender: No OFD packet to send [09:13:18]OFD Sender: No OFD packet to send [09:13:23]OFD Sender: No OFD packet to send [09:13:28]OFD Sender: No OFD packet to send [09:13:33]OFD Sender: No OFD packet to send [09:13:38]OFD Sender: No OFD packet to send [09:13:43]OFD Sender: No OFD packet to send [09:13:48]OFD Sender: No OFD packet to send [09:13:53]OFD Sender: No OFD packet to send [09:13:58]OFD Sender: No OFD packet to send [09:14:03]OFD Sender: No OFD packet to send [09:14:08]OFD Sender: No OFD packet to send [09:14:13]OFD Sender: No OFD packet to send [09:14:18]OFD Sender: No OFD packet to send [09:14:23]OFD Sender: No OFD packet to send [09:14:28]OFD Sender: No OFD packet to send [09:14:33]OFD Sender: No OFD packet to send [09:14:34]accept exits with 7 [09:14:34]New connection [09:14:34]New thread 3066924388 created [09:14:34]Thread 3067067748 joined [09:14:34]Waiting for new connection... [09:14:34] Sock 7.Parse request [09:14:34]Sock 7.Check first char [09:14:34]Sock 7.First char is OK [09:14:34]request: POST /json_proto HTTP/1.0 [09:14:34]Method: POST [09:14:34]URL: /json_proto [09:14:34]Method is POST - this is cgi request [09:14:34]url: /json_proto [09:14:34]query_string will be loaded in cgi processing [09:14:34]execute_cgi json_proto POST (null) [09:14:34]execute_cgi path=json_proto method=POST [09:14:34]POST find Content-Length [09:14:34]Host: 172.17.45.7:8080 [09:14:34]Content-Length: 682 [09:14:34]Content-Type: application/json [09:14:34] [09:14:34]POST finish read [09:14:34]Found Content-Length = 682 [09:14:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:34]execute_script... [09:14: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)949271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:34]POST & json_proto [09:14:34]process_json_proto [09:14:34]json parsed OK: [09:14:34]protocol is kg_v1.0 [09:14:34]action value=close_receipt [09:14:34]process_action close_receipt [09:14:34]cmd_close_receipt [09:14:34]MH_GetDate [09:14:34]Write to MH i2c: F0 00 00 DF 0E DC [09:14:34]Write i2c OK [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: F0 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: F0 09 00 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: F0 09 00 DF 0E 00 FC 0B A6 66 90 0F 3E 66 3B [09:14:34]GetLastDocTimeStamp 1722157962 [09:14:34]current date 1722158076 [09:14:34]FM_GetShiftState [09:14:34]SAM_PROTO_GetShiftState [09:14:34]wFMCommunicate request_size=4 [09:14:34]MH_SAM_APDU [09:14:34]CAPDU: 80 13 01 00 [09:14:34]Write to MH i2c: E2 08 00 E0 0E 80 13 01 00 00 00 00 00 6B [09:14:34]Write i2c OK [09:14:34]MH_I2C_Read... [09:14:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:34]Read from MH i2c: E2 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: E2 0E 00 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: E2 0E 00 E0 0E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 42 [09:14:34]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:14:34]wFMCommunicate OK [09:14:34]SAM_PROTO_GetShiftState done [09:14:34]FM_GetShiftState done [09:14:34]opened in 1722125364 [09:14:34]opened+sec_in_day 1722211764 [09:14:34]quantity*price = 100005 [09:14:34]sum+1 = 100006 [09:14:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 68 28.07.2024 09:14 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118399 ФПД: 240077803699286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T091436&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118399&fm=240077803699286&tin=02508201610067®Number=0000000000092660&sum=100000 [09:14:36]StoreToDocumentArchive [09:14:36]shift 433 fd 118399 [09:14:36]save to /storage/0433/doc_00118399 [09:14:36]save last doc name /storage/0433/doc_00118399 to /storage/kkm_last_doc_name [09:14:36]save OK [09:14:36]Clear old archive folders... [09:14:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:14:36]tlvbuf is 0014D590 [09:14:36]SAM_PROTO_ClearQueue [09:14:36]wFMCommunicate request_size=4 [09:14:36]MH_SAM_APDU [09:14:36]CAPDU: 80 09 00 00 [09:14:36]Write to MH i2c: E2 08 00 ED 0E 80 09 00 00 00 00 00 00 6D [09:14:36]Write i2c OK [09:14:36]MH_I2C_Read... [09:14:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:36]Read from MH i2c: E2 [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: E2 03 00 [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: E2 03 00 ED 0E 00 90 00 6F [09:14:36]RAPDU: 90 00 [09:14:36]wFMCommunicate OK [09:14:36]SAM_PROTO_ClearQueue done [09:14:36]KKMCreateOFDPacket [09:14:36]OFDProtocolAddRootSTLVToBuf [09:14:36]FM_MakeSignedData [09:14:36]FM_MakeSignedData [09:14:36]SAM_PROTO_SignData [09:14:36]wFMCommunicate request_size=4 [09:14:36]MH_SAM_APDU [09:14:36]CAPDU: 80 0D 01 02 [09:14:36]Write to MH i2c: E2 08 00 EE 0E 80 0D 01 02 00 00 00 00 75 [09:14:36]Write i2c OK [09:14:36]MH_I2C_Read... [09:14:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:36]Read from MH i2c: E2 [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: E2 03 00 [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: E2 03 00 EE 0E 00 90 00 70 [09:14:36]RAPDU: 90 00 [09:14:36]wFMCommunicate OK [09:14:36]wFMCommunicate request_size=255 [09:14:36]MH_SAM_APDU [09:14: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 FC 0B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7F CE 01 00 35 04 06 00 DA [09:14:36]Write to MH i2c: E2 02 01 EF 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 FC 0B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7F CE 01 00 35 04 06 00 DA 00 00 B9 [09:14:36]Write i2c OK [09:14:36]MH_I2C_Read... [09:14:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:36]Read from MH i2c: E2 [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: E2 03 00 [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: E2 03 00 EF 0E 00 90 00 71 [09:14:36]RAPDU: 90 00 [09:14:36]wFMCommunicate OK [09:14:36]wFMCommunicate request_size=10 [09:14:36]MH_SAM_APDU [09:14:36]CAPDU: 80 0D 02 02 05 59 78 35 3C 56 [09:14:36]Write to MH i2c: E2 0D 00 F0 0E 80 0D 02 02 05 00 59 78 35 3C 56 00 00 1A [09:14:36]Write i2c OK [09:14:36]MH_I2C_Read... [09:14:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:36]Read from MH i2c: E2 [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: E2 03 00 [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: E2 03 00 F0 0E 00 90 00 72 [09:14:36]RAPDU: 90 00 [09:14:36]wFMCommunicate OK [09:14:36]wFMCommunicate request_size=4 [09:14:36]MH_SAM_APDU [09:14:36]CAPDU: 80 0D 03 02 [09:14:36]Write to MH i2c: E2 08 00 F1 0E 80 0D 03 02 00 00 00 00 7A [09:14:36]Write i2c OK [09:14:36]MH_I2C_Read... [09:14:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:36]Read from MH i2c: E2 [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: E2 0B 00 [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: E2 0B 00 F1 0E 00 58 B1 4A E3 85 A3 89 19 90 00 7B [09:14:36]RAPDU: 58 B1 4A E3 85 A3 89 19 90 00 [09:14:36]wFMCommunicate OK [09:14:36]SAM_PROTO_SignData done [09:14:36]FM_MakeSignedData done [09:14:36]CreateOFDProtocolMessage [09:14:36]wFMCommunicate request_size=4 [09:14:36]MH_SAM_APDU [09:14:36]CAPDU: 80 11 00 00 [09:14:36]Write to MH i2c: E2 08 00 F2 0E 80 11 00 00 00 00 00 00 7A [09:14:36]Write i2c OK [09:14:36]MH_I2C_Read... [09:14:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:36]Read from MH i2c: E2 [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: E2 17 00 [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: E2 17 00 F2 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D5 [09:14:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:14:36]wFMCommunicate OK [09:14:36]CreateOFDProtocolMessage done [09:14:36]OFDSenderStorePacket 118399 [09:14:36]StoreOFDPacket docnum=118399 [09:14:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F5 62 07 01 F2 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 FC 0B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7F CE 01 00 35 04 06 00 DA 59 78 35 3C 56 58 B1 4A E3 85 A3 89 19 [09:14:36]CheckFolder [09:14:36]dirname=/storage/ofd_packets [09:14:36]CheckFolder done [09:14:36]ProducePacketName [09:14:36]name=ofd_packets/00118399 [09:14:36]NVStorageSaveData ofd_packets/00118399 [09:14:36]File name is /storage/ofd_packets/00118399 [09:14:36]Write 301 bytes [09:14:36]NVStorageSaveData done [09:14:36]OFDSenderStorePacket done [09:14:36]KKMCreateOFDPacket done [09:14:36]NVStorageSaveData kkm_last_timestamp [09:14:36]File name is /storage/kkm_last_timestamp [09:14:36]Write 4 bytes [09:14:36]NVStorageSaveData done [09:14:36]ExternCall_PrintAddStr [09:14:36]wPrintStart [09:14:36]Write to MH i2c: 01 00 00 F3 0E 01 [09:14:36]Write i2c OK [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: 01 [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: 01 07 00 [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: 01 07 00 F3 0E 00 00 00 00 00 FF 0F 16 [09:14:36]RasterBufferAndPrint [09:14:36]line Счет N : (1)949271 [09:14:36]line ИНН: 02508201610067 [09:14:36]line Контрольно-Кассовый Чек [09:14:36]line ПРОДАЖА [09:14:36]line ТРК (МРК, ГНК) : 41 [09:14:36]line Товар: 2710124130 [09:14:36]line Аи-92-К-4 [09:14:36]line 14.750 * 67.80 [09:14:36]line = 1000.05 [09:14:36]line НДС 12% НСП 1% [09:14:36]line > о реализуемом товаре [09:14:36]line ОКРУГЛЕНИЕ: -0.05 [09:14:36]line ИТОГО: 1000.00 [09:14:36]line Внесено: 1000.00 [09:14:36]line СДАЧА: 0.00 [09:14:36]line НСП 1% : 8.85 [09:14:36]line НДС 12% : 106.20 [09:14:36]line Наличными: 1000.00 [09:14:36]line Безнал.: 0.00 [09:14:36]line Место: АЗС № 134 "Партнер Нефть" [09:14:36]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:14:36]line СНО: Общий режим [09:14:36]line Чек 68 28.07.2024 09:14 [09:14:36]line Смена: 433 ФФД: 1.0 [09:14:36]line ЗНМ: 0300000044 [09:14:36]line РНМ: 0000000000092660 [09:14:36]line Версия ККМ: 001 [09:14:36]line ФМ: 0000000000874939 [09:14:36]line ФД: 118399 [09:14:36]line ФПД: 240077803699286 [09:14:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T091436&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118399&fm=240077803699286&tin=02508201610067®Number=0000000000092660&sum=100000 [09:14:36]OFD Sender: Processing packet 118399 [packets to send 86, broken 85] [09:14:36]ProducePacketName [09:14:36]name=ofd_packets/00118399 [09:14:36]OFD Sender: To server: pG, [09:14:36]CommunicateWithHost lk.salyk.kg:30040 [09:14:36]ConnectInit lk.salyk.kg [09:14:36]written 0, free lines is 4095 [09:14:36]Connected sock=10 [09:14:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F5 62 07 01 F2 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 FC 0B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7F CE 01 00 35 04 06 00 DA 59 78 35 3C 56 58 B1 4A E3 85 A3 89 19 [09:14:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F4 AF 47 00 FE 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 39 33 39 10 04 04 00 7F CE 01 00 F4 03 04 00 8D B9 A5 66 B6 04 01 00 00 3F F1 9E 40 76 79 6D 77 [09:14:37]CommunicateWithHost err = 0 [09:14:37]CheckOFDResponse [09:14:37]1017 (14) - 77093643461234 [09:14:37]1041 (16) - 0000000000874939 [09:14:37]1040 (4) - 118399 [09:14:37]1012 (4) - 28.07.2024 03:22 [09:14:37]1206 (1) - 0 [09:14:37]OFD Sender: Remove packet 118399 [09:14:37]ProducePacketName [09:14:37]name=ofd_packets/00118399 [09:14:37]NVStorageDeleteData [09:14:37]Write to MH i2c: 01 00 00 1D 0F 2C [09:14:37]Write i2c OK [09:14:37]MH_I2C_Read... [09:14:37]Read from MH i2c: 01 [09:14:37]MH_I2C_Read... [09:14:37]Read from MH i2c: 01 07 00 [09:14:37]MH_I2C_Read... [09:14:37]Read from MH i2c: 01 07 00 1D 0F 00 00 00 00 00 EB 0C 2A [09:14:37]RasterBufferAndPrint [09:14:37]line [09:14:37]line [09:14:37]line [09:14:37]line [09:14:37]line [09:14:37]written 0, free lines is 3312 [09:14:37]MH_Cut [09:14:37]Write to MH i2c: D1 01 00 24 0F 01 05 [09:14:37]Write i2c OK [09:14:37]MH_I2C_Read... [09:14:37]Read from MH i2c: D1 [09:14:37]MH_I2C_Read... [09:14:37]Read from MH i2c: D1 01 00 [09:14:37]MH_I2C_Read... [09:14:37]Read from MH i2c: D1 01 00 24 0F 00 04 [09:14:37]Write to MH i2c: 01 00 00 25 0F 34 [09:14:37]Write i2c OK [09:14:37]MH_I2C_Read... [09:14:37]OFD Sender: No OFD packet to send [09:14:38]*** Cut start [09:14:38]*** Partial cut [09:14:38]*** CUTSNS_PIN = 1 [09:14:38]*** CUTSNS_PIN = 0 [09:14:38]*** Brake cut motor [09:14:38]Read from MH i2c: 01 [09:14:38]MH_I2C_Read... [09:14:38]*** Stop cut motor [09:14:38]*** Cut end [09:14:38]Read from MH i2c: 01 07 00 [09:14:38]MH_I2C_Read... [09:14:38]Read from MH i2c: 01 07 00 25 0F 00 00 00 00 00 FF 0F 49 [09:14:38]process_action close_receipt done [09:14:38]requested_data is exist [09:14:38]produce_requested_data [09:14:38]requested_item fm.sn is exist - process it [09:14:38]wFMCommunicate request_size=4 [09:14:38]MH_SAM_APDU [09:14:38]CAPDU: 80 11 00 00 [09:14:38]Write to MH i2c: E2 08 00 26 0F 80 11 00 00 00 00 00 00 AF [09:14:38]Write i2c OK [09:14:38]MH_I2C_Read... [09:14:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:38]Read from MH i2c: E2 [09:14:38]MH_I2C_Read... [09:14:38]Read from MH i2c: E2 17 00 [09:14:38]MH_I2C_Read... [09:14:38]Read from MH i2c: E2 17 00 26 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0A [09:14:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:14:38]wFMCommunicate OK [09:14:38]requested_item fd.num is exist - process it [09:14:38]SAM_PROTO_GetFieldsCounters [09:14:38]wFMCommunicate request_size=4 [09:14:38]MH_SAM_APDU [09:14:38]CAPDU: 80 13 00 00 [09:14:38]Write to MH i2c: E2 08 00 27 0F 80 13 00 00 00 00 00 00 B2 [09:14:38]Write i2c OK [09:14:38]MH_I2C_Read... [09:14:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:38]Read from MH i2c: E2 [09:14:38]MH_I2C_Read... [09:14:38]Read from MH i2c: E2 62 00 [09:14:38]MH_I2C_Read... [09:14:38]Read from MH i2c: E2 62 00 27 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7F CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [09:14:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7F CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:14:38]wFMCommunicate OK [09:14:38]SAM_PROTO_GetFieldsCounters done [09:14:38]requested_item shift.num is exist - process it [09:14:38]requested_item shift.opened is exist - process it [09:14:38]req_shift_opened [09:14:38]FM_GetShiftState [09:14:38]SAM_PROTO_GetShiftState [09:14:38]wFMCommunicate request_size=4 [09:14:38]MH_SAM_APDU [09:14:38]CAPDU: 80 13 01 00 [09:14:38]Write to MH i2c: E2 08 00 28 0F 80 13 01 00 00 00 00 00 B4 [09:14:38]Write i2c OK [09:14:38]MH_I2C_Read... [09:14:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:38]Read from MH i2c: E2 [09:14:38]MH_I2C_Read... [09:14:38]Read from MH i2c: E2 0E 00 [09:14:38]MH_I2C_Read... [09:14:38]Read from MH i2c: E2 0E 00 28 0F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 8B [09:14:38]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:14:38]wFMCommunicate OK [09:14:38]SAM_PROTO_GetShiftState done [09:14:38]FM_GetShiftState done [09:14:38]req_shift_opened done [09:14:38]requested_item shift.open_date is exist - process it [09:14:38]req_shift_open_date [09:14:38]req_shift_open_date done [09:14:38]produce_requested_data done [09:14:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118399,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [09:14:38]process_action_free close_receipt [09:14:38]json_value_free [09:14:38]json_value_free done [09:14:38]process_json_proto returns [09:14:38]Send response to host [09:14:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118399,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [09:14:38]free response buf [09:14:38]execute_script done [09:14:38]execute_script returns [09:14:38]free content buf [09:14:38]Sock 7.Close socket [09:14:38]Sock 7.Thread stoped [09:14:42]OFD Sender: No OFD packet to send [09:14:47]OFD Sender: No OFD packet to send [09:14:52]OFD Sender: No OFD packet to send [09:14:57]OFD Sender: No OFD packet to send [09:15:02]OFD Sender: No OFD packet to send [09:15:07]OFD Sender: No OFD packet to send [09:15:12]OFD Sender: No OFD packet to send [09:15:17]OFD Sender: No OFD packet to send [09:15:22]OFD Sender: No OFD packet to send [09:15:27]OFD Sender: No OFD packet to send [09:15:32]OFD Sender: No OFD packet to send [09:15:37]OFD Sender: No OFD packet to send [09:15:42]OFD Sender: No OFD packet to send [09:15:47]OFD Sender: No OFD packet to send [09:15:52]OFD Sender: No OFD packet to send [09:15:57]OFD Sender: No OFD packet to send [09:16:02]OFD Sender: No OFD packet to send [09:16:04]accept exits with 9 [09:16:04]New connection [09:16:04]New thread 3067067748 created [09:16:04]Thread 3066924388 joined [09:16:04]Waiting for new connection... [09:16:04] Sock 9.Parse request [09:16:04]Sock 9.Check first char [09:16:04]Sock 9.First char is OK [09:16:04]request: POST /json_proto HTTP/1.0 [09:16:04]Method: POST [09:16:04]URL: /json_proto [09:16:04]Method is POST - this is cgi request [09:16:04]url: /json_proto [09:16:04]query_string will be loaded in cgi processing [09:16:04]execute_cgi json_proto POST (null) [09:16:04]execute_cgi path=json_proto method=POST [09:16:04]POST find Content-Length [09:16:04]Host: 172.17.45.7:8080 [09:16:04]Content-Length: 822 [09:16:04]Content-Type: application/json [09:16:04] [09:16:04]POST finish read [09:16:04]Found Content-Length = 822 [09:16:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:04]execute_script... [09:16: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)949272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:04]POST & json_proto [09:16:04]process_json_proto [09:16:04]json parsed OK: [09:16:04]protocol is kg_v1.0 [09:16:04]action value=close_receipt [09:16:04]process_action close_receipt [09:16:04]cmd_close_receipt [09:16:04]MH_GetDate [09:16:04]Write to MH i2c: F0 00 00 29 0F 27 [09:16:04]Write i2c OK [09:16:04]MH_I2C_Read... [09:16:04]Read from MH i2c: F0 [09:16:04]MH_I2C_Read... [09:16:04]Read from MH i2c: F0 09 00 [09:16:04]MH_I2C_Read... [09:16:04]Read from MH i2c: F0 09 00 29 0F 00 56 0C A6 66 90 0F 3E 66 E1 [09:16:04]GetLastDocTimeStamp 1722158076 [09:16:04]current date 1722158166 [09:16:04]FM_GetShiftState [09:16:04]SAM_PROTO_GetShiftState [09:16:04]wFMCommunicate request_size=4 [09:16:04]MH_SAM_APDU [09:16:04]CAPDU: 80 13 01 00 [09:16:04]Write to MH i2c: E2 08 00 2A 0F 80 13 01 00 00 00 00 00 B6 [09:16:04]Write i2c OK [09:16:04]MH_I2C_Read... [09:16:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:05]Read from MH i2c: E2 [09:16:05]MH_I2C_Read... [09:16:05]Read from MH i2c: E2 0E 00 [09:16:05]MH_I2C_Read... [09:16:05]Read from MH i2c: E2 0E 00 2A 0F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 8D [09:16:05]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:16:05]wFMCommunicate OK [09:16:05]SAM_PROTO_GetShiftState done [09:16:05]FM_GetShiftState done [09:16:05]opened in 1722125364 [09:16:05]opened+sec_in_day 1722211764 [09:16:05]quantity*price = 150041 [09:16:05]sum+1 = 150042 [09:16:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 69 28.07.2024 09:16 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118400 ФПД: 183357740147066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T091606&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118400&fm=183357740147066&tin=02508201610067®Number=0000000000092660&sum=150000 [09:16:06]StoreToDocumentArchive [09:16:06]shift 433 fd 118400 [09:16:06]save to /storage/0433/doc_00118400 [09:16:06]save last doc name /storage/0433/doc_00118400 to /storage/kkm_last_doc_name [09:16:06]save OK [09:16:06]Clear old archive folders... [09:16:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:16:06]tlvbuf is 0013FA00 [09:16:06]SAM_PROTO_ClearQueue [09:16:06]wFMCommunicate request_size=4 [09:16:06]MH_SAM_APDU [09:16:06]CAPDU: 80 09 00 00 [09:16:06]Write to MH i2c: E2 08 00 37 0F 80 09 00 00 00 00 00 00 B8 [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:06]Read from MH i2c: E2 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 03 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 03 00 37 0F 00 90 00 BA [09:16:06]RAPDU: 90 00 [09:16:06]wFMCommunicate OK [09:16:06]SAM_PROTO_ClearQueue done [09:16:06]KKMCreateOFDPacket [09:16:06]OFDProtocolAddRootSTLVToBuf [09:16:06]FM_MakeSignedData [09:16:06]FM_MakeSignedData [09:16:06]SAM_PROTO_SignData [09:16:06]wFMCommunicate request_size=4 [09:16:06]MH_SAM_APDU [09:16:06]CAPDU: 80 0D 01 02 [09:16:06]Write to MH i2c: E2 08 00 38 0F 80 0D 01 02 00 00 00 00 C0 [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:06]Read from MH i2c: E2 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 03 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 03 00 38 0F 00 90 00 BB [09:16:06]RAPDU: 90 00 [09:16:06]wFMCommunicate OK [09:16:06]wFMCommunicate request_size=255 [09:16:06]MH_SAM_APDU [09:16:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 56 0C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 80 CE 01 00 35 04 06 00 A6 [09:16:06]Write to MH i2c: E2 02 01 39 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 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 56 0C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 80 CE 01 00 35 04 06 00 A6 00 00 13 [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:06]Read from MH i2c: E2 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 03 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 03 00 39 0F 00 90 00 BC [09:16:06]RAPDU: 90 00 [09:16:06]wFMCommunicate OK [09:16:06]wFMCommunicate request_size=10 [09:16:06]MH_SAM_APDU [09:16:06]CAPDU: 80 0D 02 02 05 C3 4C F7 E1 7A [09:16:06]Write to MH i2c: E2 0D 00 3A 0F 80 0D 02 02 05 00 C3 4C F7 E1 7A 00 00 2E [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:06]Read from MH i2c: E2 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 03 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 03 00 3A 0F 00 90 00 BD [09:16:06]RAPDU: 90 00 [09:16:06]wFMCommunicate OK [09:16:06]wFMCommunicate request_size=4 [09:16:06]MH_SAM_APDU [09:16:06]CAPDU: 80 0D 03 02 [09:16:06]Write to MH i2c: E2 08 00 3B 0F 80 0D 03 02 00 00 00 00 C5 [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:06]Read from MH i2c: E2 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 0B 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 0B 00 3B 0F 00 17 77 98 50 00 FC 31 73 90 00 DC [09:16:06]RAPDU: 17 77 98 50 00 FC 31 73 90 00 [09:16:06]wFMCommunicate OK [09:16:06]SAM_PROTO_SignData done [09:16:06]FM_MakeSignedData done [09:16:06]CreateOFDProtocolMessage [09:16:06]wFMCommunicate request_size=4 [09:16:06]MH_SAM_APDU [09:16:06]CAPDU: 80 11 00 00 [09:16:06]Write to MH i2c: E2 08 00 3C 0F 80 11 00 00 00 00 00 00 C5 [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:06]Read from MH i2c: E2 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 17 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 17 00 3C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 20 [09:16:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:16:06]wFMCommunicate OK [09:16:06]CreateOFDProtocolMessage done [09:16:06]OFDSenderStorePacket 118400 [09:16:06]StoreOFDPacket docnum=118400 [09:16:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 BA 59 07 01 37 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 56 0C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 80 CE 01 00 35 04 06 00 A6 C3 4C F7 E1 7A 17 77 98 50 00 FC 31 73 [09:16:06]CheckFolder [09:16:06]dirname=/storage/ofd_packets [09:16:06]CheckFolder done [09:16:06]ProducePacketName [09:16:06]name=ofd_packets/00118400 [09:16:06]NVStorageSaveData ofd_packets/00118400 [09:16:06]File name is /storage/ofd_packets/00118400 [09:16:06]Write 301 bytes [09:16:06]NVStorageSaveData done [09:16:06]OFDSenderStorePacket done [09:16:06]KKMCreateOFDPacket done [09:16:06]NVStorageSaveData kkm_last_timestamp [09:16:06]File name is /storage/kkm_last_timestamp [09:16:06]Write 4 bytes [09:16:06]NVStorageSaveData done [09:16:06]ExternCall_PrintAddStr [09:16:06]wPrintStart [09:16:06]Write to MH i2c: 01 00 00 3D 0F 4C [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: 01 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: 01 07 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: 01 07 00 3D 0F 00 00 00 00 00 FF 0F 61 [09:16:06]RasterBufferAndPrint [09:16:06]line Счет N : (1)949272 [09:16:06]line ИНН: 02508201610067 [09:16:06]line Контрольно-Кассовый Чек [09:16:06]line ПРОДАЖА [09:16:06]line ТРК (МРК, ГНК) : 61 [09:16:06]line Товар: 2710124130 [09:16:06]line Аи-92-К-4 [09:16:06]line 22.130 * 67.80 [09:16:06]line = 1500.41 [09:16:06]line НДС 12% НСП 1% [09:16:06]line > о реализуемом товаре [09:16:06]line ОКРУГЛЕНИЕ: -0.41 [09:16:06]line ИТОГО: 1500.00 [09:16:06]line НСП 1% : 13.28 [09:16:06]line НДС 12% : 159.34 [09:16:06]line Наличными: 0.00 [09:16:06]line Безнал.: 1500.00 [09:16:06]line Место: АЗС № 134 "Партнер Нефть" [09:16:06]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:16:06]line СНО: Общий режим [09:16:06]line Чек 69 28.07.2024 09:16 [09:16:06]line Смена: 433 ФФД: 1.0 [09:16:06]line ЗНМ: 0300000044 [09:16:06]line РНМ: 0000000000092660 [09:16:06]line Версия ККМ: 001 [09:16:06]line Платежная система: O! деньги [09:16:06]line ФМ: 0000000000874939 [09:16:06]line ФД: 118400 [09:16:06]line ФПД: 183357740147066 [09:16:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T091606&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118400&fm=183357740147066&tin=02508201610067®Number=0000000000092660&sum=150000 [09:16:06]OFD Sender: Processing packet 118400 [packets to send 86, broken 85] [09:16:06]ProducePacketName [09:16:06]name=ofd_packets/00118400 [09:16:06]OFD Sender: To server: pG, [09:16:06]CommunicateWithHost lk.salyk.kg:30040 [09:16:06]ConnectInit lk.salyk.kg [09:16:06]written 0, free lines is 4095 [09:16:07]Connected sock=10 [09:16:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 BA 59 07 01 37 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 56 0C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 80 CE 01 00 35 04 06 00 A6 C3 4C F7 E1 7A 17 77 98 50 00 FC 31 73 [09:16:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 FD EB 47 00 7F 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 80 CE 01 00 F4 03 04 00 E7 B9 A5 66 B6 04 01 00 00 FE A4 E6 6C 0F F2 A2 AA [09:16:07]CommunicateWithHost err = 0 [09:16:07]CheckOFDResponse [09:16:07]1017 (14) - 77093643461234 [09:16:07]1041 (16) - 0000000000874939 [09:16:07]1040 (4) - 118400 [09:16:07]1012 (4) - 28.07.2024 03:24 [09:16:07]1206 (1) - 0 [09:16:07]OFD Sender: Remove packet 118400 [09:16:07]ProducePacketName [09:16:07]name=ofd_packets/00118400 [09:16:07]NVStorageDeleteData [09:16:07]Write to MH i2c: 01 00 00 67 0F 76 [09:16:07]Write i2c OK [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: 01 [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: 01 07 00 [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: 01 07 00 67 0F 00 00 00 00 00 EA 0C 73 [09:16:07]RasterBufferAndPrint [09:16:07]line [09:16:07]line [09:16:07]line [09:16:07]line [09:16:07]line [09:16:07]written 0, free lines is 3312 [09:16:07]MH_Cut [09:16:07]Write to MH i2c: D1 01 00 6E 0F 01 4F [09:16:07]Write i2c OK [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: D1 [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: D1 01 00 [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: D1 01 00 6E 0F 00 4E [09:16:07]Write to MH i2c: 01 00 00 6F 0F 7E [09:16:07]Write i2c OK [09:16:07]MH_I2C_Read... [09:16:07]OFD Sender: No OFD packet to send [09:16:08]*** Cut start [09:16:08]*** Partial cut [09:16:08]*** CUTSNS_PIN = 1 [09:16:08]*** CUTSNS_PIN = 0 [09:16:08]*** Brake cut motor [09:16:08]Read from MH i2c: 01 [09:16:08]MH_I2C_Read... [09:16:08]*** Stop cut motor [09:16:08]*** Cut end [09:16:08]Read from MH i2c: 01 07 00 [09:16:08]MH_I2C_Read... [09:16:08]Read from MH i2c: 01 07 00 6F 0F 00 00 00 00 00 FF 0F 93 [09:16:08]process_action close_receipt done [09:16:08]requested_data is exist [09:16:08]produce_requested_data [09:16:08]requested_item fm.sn is exist - process it [09:16:08]wFMCommunicate request_size=4 [09:16:08]MH_SAM_APDU [09:16:08]CAPDU: 80 11 00 00 [09:16:08]Write to MH i2c: E2 08 00 70 0F 80 11 00 00 00 00 00 00 F9 [09:16:08]Write i2c OK [09:16:08]MH_I2C_Read... [09:16:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:08]Read from MH i2c: E2 [09:16:08]MH_I2C_Read... [09:16:08]Read from MH i2c: E2 17 00 [09:16:08]MH_I2C_Read... [09:16:08]Read from MH i2c: E2 17 00 70 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 54 [09:16:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:16:08]wFMCommunicate OK [09:16:08]requested_item fd.num is exist - process it [09:16:08]SAM_PROTO_GetFieldsCounters [09:16:08]wFMCommunicate request_size=4 [09:16:08]MH_SAM_APDU [09:16:08]CAPDU: 80 13 00 00 [09:16:08]Write to MH i2c: E2 08 00 71 0F 80 13 00 00 00 00 00 00 FC [09:16:08]Write i2c OK [09:16:08]MH_I2C_Read... [09:16:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:08]Read from MH i2c: E2 [09:16:08]MH_I2C_Read... [09:16:08]Read from MH i2c: E2 62 00 [09:16:08]MH_I2C_Read... [09:16:08]Read from MH i2c: E2 62 00 71 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 80 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [09:16:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 80 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:16:08]wFMCommunicate OK [09:16:08]SAM_PROTO_GetFieldsCounters done [09:16:08]requested_item shift.num is exist - process it [09:16:08]requested_item shift.opened is exist - process it [09:16:08]req_shift_opened [09:16:08]FM_GetShiftState [09:16:08]SAM_PROTO_GetShiftState [09:16:08]wFMCommunicate request_size=4 [09:16:08]MH_SAM_APDU [09:16:08]CAPDU: 80 13 01 00 [09:16:08]Write to MH i2c: E2 08 00 72 0F 80 13 01 00 00 00 00 00 FE [09:16:08]Write i2c OK [09:16:08]MH_I2C_Read... [09:16:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:09]Read from MH i2c: E2 [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: E2 0E 00 [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: E2 0E 00 72 0F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 D5 [09:16:09]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:16:09]wFMCommunicate OK [09:16:09]SAM_PROTO_GetShiftState done [09:16:09]FM_GetShiftState done [09:16:09]req_shift_opened done [09:16:09]requested_item shift.open_date is exist - process it [09:16:09]req_shift_open_date [09:16:09]req_shift_open_date done [09:16:09]produce_requested_data done [09:16:09]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118400,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [09:16:09]process_action_free close_receipt [09:16:09]json_value_free [09:16:09]json_value_free done [09:16:09]process_json_proto returns [09:16:09]Send response to host [09:16:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118400,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [09:16:09]free response buf [09:16:09]execute_script done [09:16:09]execute_script returns [09:16:09]free content buf [09:16:09]Sock 9.Close socket [09:16:09]Sock 9.Thread stoped [09:16:12]OFD Sender: No OFD packet to send [09:16:17]OFD Sender: No OFD packet to send [09:16:22]OFD Sender: No OFD packet to send [09:16:27]OFD Sender: No OFD packet to send [09:16:32]OFD Sender: No OFD packet to send [09:16:37]OFD Sender: No OFD packet to send [09:16:42]OFD Sender: No OFD packet to send [09:16:47]OFD Sender: No OFD packet to send [09:16:52]OFD Sender: No OFD packet to send [09:16:57]OFD Sender: No OFD packet to send [09:17:02]OFD Sender: No OFD packet to send [09:17:07]OFD Sender: No OFD packet to send [09:17:12]OFD Sender: No OFD packet to send [09:17:17]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:02]accept exits with 7 [09:18:02]New connection [09:18:02]New thread 3066924388 created [09:18:02]Thread 3067067748 joined [09:18:02]Waiting for new connection... [09:18:02] Sock 7.Parse request [09:18:02]Sock 7.Check first char [09:18:02]Sock 7.First char is OK [09:18:02]request: POST /json_proto HTTP/1.0 [09:18:02]Method: POST [09:18:02]URL: /json_proto [09:18:02]Method is POST - this is cgi request [09:18:02]url: /json_proto [09:18:02]query_string will be loaded in cgi processing [09:18:02]execute_cgi json_proto POST (null) [09:18:02]execute_cgi path=json_proto method=POST [09:18:02]POST find Content-Length [09:18:02]Host: 172.17.45.7:8080 [09:18:02]Content-Length: 682 [09:18:02]Content-Type: application/json [09:18:02] [09:18:02]POST finish read [09:18:02]Found Content-Length = 682 [09:18:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:02]execute_script... [09:18:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:02]POST & json_proto [09:18:02]process_json_proto [09:18:02]json parsed OK: [09:18:02]protocol is kg_v1.0 [09:18:02]action value=close_receipt [09:18:02]process_action close_receipt [09:18:02]cmd_close_receipt [09:18:02]MH_GetDate [09:18:02]Write to MH i2c: F0 00 00 73 0F 71 [09:18:02]Write i2c OK [09:18:02]MH_I2C_Read... [09:18:02]Read from MH i2c: F0 [09:18:02]MH_I2C_Read... [09:18:02]Read from MH i2c: F0 09 00 [09:18:02]MH_I2C_Read... [09:18:02]Read from MH i2c: F0 09 00 73 0F 00 CC 0C A6 66 90 0F 3E 66 A1 [09:18:02]GetLastDocTimeStamp 1722158166 [09:18:02]current date 1722158284 [09:18:02]FM_GetShiftState [09:18:02]SAM_PROTO_GetShiftState [09:18:02]wFMCommunicate request_size=4 [09:18:02]MH_SAM_APDU [09:18:02]CAPDU: 80 13 01 00 [09:18:02]Write to MH i2c: E2 08 00 74 0F 80 13 01 00 00 00 00 00 00 [09:18:02]Write i2c OK [09:18:02]MH_I2C_Read... [09:18:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:03]Read from MH i2c: E2 [09:18:03]MH_I2C_Read... [09:18:03]Read from MH i2c: E2 0E 00 [09:18:03]MH_I2C_Read... [09:18:03]Read from MH i2c: E2 0E 00 74 0F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 D7 [09:18:03]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:18:03]wFMCommunicate OK [09:18:03]SAM_PROTO_GetShiftState done [09:18:03]FM_GetShiftState done [09:18:03]opened in 1722125364 [09:18:03]opened+sec_in_day 1722211764 [09:18:03]quantity*price = 100005 [09:18:03]sum+1 = 100006 [09:18:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 70 28.07.2024 09:18 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118401 ФПД: 65449911367406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T091804&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118401&fm=65449911367406&tin=02508201610067®Number=0000000000092660&sum=100000 [09:18:04]StoreToDocumentArchive [09:18:04]shift 433 fd 118401 [09:18:04]save to /storage/0433/doc_00118401 [09:18:04]save last doc name /storage/0433/doc_00118401 to /storage/kkm_last_doc_name [09:18:04]save OK [09:18:04]Clear old archive folders... [09:18:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:18:04]tlvbuf is 0014D750 [09:18:04]SAM_PROTO_ClearQueue [09:18:04]wFMCommunicate request_size=4 [09:18:04]MH_SAM_APDU [09:18:04]CAPDU: 80 09 00 00 [09:18:04]Write to MH i2c: E2 08 00 81 0F 80 09 00 00 00 00 00 00 02 [09:18:04]Write i2c OK [09:18:04]MH_I2C_Read... [09:18:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:04]Read from MH i2c: E2 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: E2 03 00 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: E2 03 00 81 0F 00 90 00 04 [09:18:04]RAPDU: 90 00 [09:18:04]wFMCommunicate OK [09:18:04]SAM_PROTO_ClearQueue done [09:18:04]KKMCreateOFDPacket [09:18:04]OFDProtocolAddRootSTLVToBuf [09:18:04]FM_MakeSignedData [09:18:04]FM_MakeSignedData [09:18:04]SAM_PROTO_SignData [09:18:04]wFMCommunicate request_size=4 [09:18:04]MH_SAM_APDU [09:18:04]CAPDU: 80 0D 01 02 [09:18:04]Write to MH i2c: E2 08 00 82 0F 80 0D 01 02 00 00 00 00 0A [09:18:04]Write i2c OK [09:18:04]MH_I2C_Read... [09:18:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:04]Read from MH i2c: E2 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: E2 03 00 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: E2 03 00 82 0F 00 90 00 05 [09:18:04]RAPDU: 90 00 [09:18:04]wFMCommunicate OK [09:18:04]wFMCommunicate request_size=255 [09:18:04]MH_SAM_APDU [09:18: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 CC 0C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 81 CE 01 00 35 04 06 00 3B [09:18:04]Write to MH i2c: E2 02 01 83 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 CC 0C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 81 CE 01 00 35 04 06 00 3B 00 00 84 [09:18:04]Write i2c OK [09:18:04]MH_I2C_Read... [09:18:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:04]Read from MH i2c: E2 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: E2 03 00 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: E2 03 00 83 0F 00 90 00 06 [09:18:04]RAPDU: 90 00 [09:18:04]wFMCommunicate OK [09:18:04]wFMCommunicate request_size=10 [09:18:04]MH_SAM_APDU [09:18:04]CAPDU: 80 0D 02 02 05 86 BE B7 B6 EE [09:18:04]Write to MH i2c: E2 0D 00 84 0F 80 0D 02 02 05 00 86 BE B7 B6 EE 00 00 B6 [09:18:04]Write i2c OK [09:18:04]MH_I2C_Read... [09:18:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:04]Read from MH i2c: E2 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: E2 03 00 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: E2 03 00 84 0F 00 90 00 07 [09:18:04]RAPDU: 90 00 [09:18:04]wFMCommunicate OK [09:18:04]wFMCommunicate request_size=4 [09:18:04]MH_SAM_APDU [09:18:04]CAPDU: 80 0D 03 02 [09:18:04]Write to MH i2c: E2 08 00 85 0F 80 0D 03 02 00 00 00 00 0F [09:18:04]Write i2c OK [09:18:04]MH_I2C_Read... [09:18:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:04]Read from MH i2c: E2 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: E2 0B 00 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: E2 0B 00 85 0F 00 80 66 25 EB A3 40 3D C1 90 00 E7 [09:18:04]RAPDU: 80 66 25 EB A3 40 3D C1 90 00 [09:18:04]wFMCommunicate OK [09:18:04]SAM_PROTO_SignData done [09:18:04]FM_MakeSignedData done [09:18:04]CreateOFDProtocolMessage [09:18:04]wFMCommunicate request_size=4 [09:18:04]MH_SAM_APDU [09:18:04]CAPDU: 80 11 00 00 [09:18:04]Write to MH i2c: E2 08 00 86 0F 80 11 00 00 00 00 00 00 0F [09:18:04]Write i2c OK [09:18:04]MH_I2C_Read... [09:18:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:04]Read from MH i2c: E2 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: E2 17 00 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: E2 17 00 86 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6A [09:18:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:18:04]wFMCommunicate OK [09:18:04]CreateOFDProtocolMessage done [09:18:04]OFDSenderStorePacket 118401 [09:18:04]StoreOFDPacket docnum=118401 [09:18:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CD EB 07 01 D4 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 CC 0C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 81 CE 01 00 35 04 06 00 3B 86 BE B7 B6 EE 80 66 25 EB A3 40 3D C1 [09:18:04]CheckFolder [09:18:04]dirname=/storage/ofd_packets [09:18:04]CheckFolder done [09:18:04]ProducePacketName [09:18:04]name=ofd_packets/00118401 [09:18:04]NVStorageSaveData ofd_packets/00118401 [09:18:04]File name is /storage/ofd_packets/00118401 [09:18:04]Write 301 bytes [09:18:04]NVStorageSaveData done [09:18:04]OFDSenderStorePacket done [09:18:04]KKMCreateOFDPacket done [09:18:04]NVStorageSaveData kkm_last_timestamp [09:18:04]File name is /storage/kkm_last_timestamp [09:18:04]Write 4 bytes [09:18:04]NVStorageSaveData done [09:18:04]ExternCall_PrintAddStr [09:18:04]wPrintStart [09:18:04]Write to MH i2c: 01 00 00 87 0F 96 [09:18:04]Write i2c OK [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: 01 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: 01 07 00 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: 01 07 00 87 0F 00 00 00 00 00 FF 0F AB [09:18:04]RasterBufferAndPrint [09:18:04]line Счет N : (1)949273 [09:18:04]line ИНН: 02508201610067 [09:18:04]line Контрольно-Кассовый Чек [09:18:04]line ПРОДАЖА [09:18:04]line ТРК (МРК, ГНК) : 31 [09:18:04]line Товар: 2710124130 [09:18:04]line Аи-92-К-4 [09:18:04]line 14.750 * 67.80 [09:18:04]line = 1000.05 [09:18:04]line НДС 12% НСП 1% [09:18:04]line > о реализуемом товаре [09:18:04]line ОКРУГЛЕНИЕ: -0.05 [09:18:04]line ИТОГО: 1000.00 [09:18:04]line Внесено: 1000.00 [09:18:04]line СДАЧА: 0.00 [09:18:04]line НСП 1% : 8.85 [09:18:04]line НДС 12% : 106.20 [09:18:04]line Наличными: 1000.00 [09:18:04]line Безнал.: 0.00 [09:18:04]line Место: АЗС № 134 "Партнер Нефть" [09:18:04]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:18:04]line СНО: Общий режим [09:18:04]line Чек 70 28.07.2024 09:18 [09:18:04]line Смена: 433 ФФД: 1.0 [09:18:04]line ЗНМ: 0300000044 [09:18:04]line РНМ: 0000000000092660 [09:18:04]line Версия ККМ: 001 [09:18:04]line ФМ: 0000000000874939 [09:18:04]line ФД: 118401 [09:18:04]line ФПД: 65449911367406 [09:18:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T091804&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118401&fm=65449911367406&tin=02508201610067®Number=0000000000092660&sum=100000 [09:18:04]written 0, free lines is 4095 [09:18:04]OFD Sender: Processing packet 118401 [packets to send 86, broken 85] [09:18:04]ProducePacketName [09:18:04]name=ofd_packets/00118401 [09:18:04]OFD Sender: To server: pG, [09:18:04]CommunicateWithHost lk.salyk.kg:30040 [09:18:04]ConnectInit lk.salyk.kg [09:18:04]Connected sock=10 [09:18:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CD EB 07 01 D4 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 CC 0C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 81 CE 01 00 35 04 06 00 3B 86 BE B7 B6 EE 80 66 25 EB A3 40 3D C1 [09:18:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 76 72 47 00 A9 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 39 33 39 10 04 04 00 81 CE 01 00 F4 03 04 00 5D BA A5 66 B6 04 01 00 00 61 26 6C 89 89 DB 60 8C [09:18:05]CommunicateWithHost err = 0 [09:18:05]CheckOFDResponse [09:18:05]1017 (14) - 77093643461234 [09:18:05]1041 (16) - 0000000000874939 [09:18:05]1040 (4) - 118401 [09:18:05]1012 (4) - 28.07.2024 03:26 [09:18:05]1206 (1) - 0 [09:18:05]OFD Sender: Remove packet 118401 [09:18:05]ProducePacketName [09:18:05]name=ofd_packets/00118401 [09:18:05]NVStorageDeleteData [09:18:05]Write to MH i2c: 01 00 00 B1 0F C0 [09:18:05]Write i2c OK [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: 01 [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: 01 07 00 [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: 01 07 00 B1 0F 00 00 00 00 00 F7 0C CA [09:18:05]RasterBufferAndPrint [09:18:05]line [09:18:05]line [09:18:05]line [09:18:05]line [09:18:05]line [09:18:05]written 0, free lines is 3326 [09:18:05]MH_Cut [09:18:05]Write to MH i2c: D1 01 00 B8 0F 01 99 [09:18:05]Write i2c OK [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: D1 [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: D1 01 00 [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: D1 01 00 B8 0F 00 98 [09:18:05]Write to MH i2c: 01 00 00 B9 0F C8 [09:18:05]Write i2c OK [09:18:05]MH_I2C_Read... [09:18:05]OFD Sender: No OFD packet to send [09:18:05]*** Cut start [09:18:05]*** Partial cut [09:18:05]*** CUTSNS_PIN = 1 [09:18:05]*** CUTSNS_PIN = 0 [09:18:06]*** Brake cut motor [09:18:06]Read from MH i2c: 01 [09:18:06]MH_I2C_Read... [09:18:06]*** Stop cut motor [09:18:06]*** Cut end [09:18:06]Read from MH i2c: 01 07 00 [09:18:06]MH_I2C_Read... [09:18:06]Read from MH i2c: 01 07 00 B9 0F 00 00 00 00 00 FF 0F DD [09:18:06]process_action close_receipt done [09:18:06]requested_data is exist [09:18:06]produce_requested_data [09:18:06]requested_item fm.sn is exist - process it [09:18:06]wFMCommunicate request_size=4 [09:18:06]MH_SAM_APDU [09:18:06]CAPDU: 80 11 00 00 [09:18:06]Write to MH i2c: E2 08 00 BA 0F 80 11 00 00 00 00 00 00 43 [09:18:06]Write i2c OK [09:18:06]MH_I2C_Read... [09:18:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:06]Read from MH i2c: E2 [09:18:06]MH_I2C_Read... [09:18:06]Read from MH i2c: E2 17 00 [09:18:06]MH_I2C_Read... [09:18:06]Read from MH i2c: E2 17 00 BA 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9E [09:18:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:18:06]wFMCommunicate OK [09:18:06]requested_item fd.num is exist - process it [09:18:06]SAM_PROTO_GetFieldsCounters [09:18:06]wFMCommunicate request_size=4 [09:18:06]MH_SAM_APDU [09:18:06]CAPDU: 80 13 00 00 [09:18:06]Write to MH i2c: E2 08 00 BB 0F 80 13 00 00 00 00 00 00 46 [09:18:06]Write i2c OK [09:18:06]MH_I2C_Read... [09:18:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:06]Read from MH i2c: E2 [09:18:06]MH_I2C_Read... [09:18:06]Read from MH i2c: E2 62 00 [09:18:06]MH_I2C_Read... [09:18:06]Read from MH i2c: E2 62 00 BB 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 81 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [09:18:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 81 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:18:06]wFMCommunicate OK [09:18:06]SAM_PROTO_GetFieldsCounters done [09:18:06]requested_item shift.num is exist - process it [09:18:06]requested_item shift.opened is exist - process it [09:18:06]req_shift_opened [09:18:06]FM_GetShiftState [09:18:06]SAM_PROTO_GetShiftState [09:18:06]wFMCommunicate request_size=4 [09:18:06]MH_SAM_APDU [09:18:06]CAPDU: 80 13 01 00 [09:18:06]Write to MH i2c: E2 08 00 BC 0F 80 13 01 00 00 00 00 00 48 [09:18:06]Write i2c OK [09:18:06]MH_I2C_Read... [09:18:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:06]Read from MH i2c: E2 [09:18:06]MH_I2C_Read... [09:18:06]Read from MH i2c: E2 0E 00 [09:18:06]MH_I2C_Read... [09:18:06]Read from MH i2c: E2 0E 00 BC 0F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 1F [09:18:06]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:18:06]wFMCommunicate OK [09:18:06]SAM_PROTO_GetShiftState done [09:18:06]FM_GetShiftState done [09:18:06]req_shift_opened done [09:18:06]requested_item shift.open_date is exist - process it [09:18:06]req_shift_open_date [09:18:06]req_shift_open_date done [09:18:06]produce_requested_data done [09:18:06]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118401,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [09:18:06]process_action_free close_receipt [09:18:06]json_value_free [09:18:06]json_value_free done [09:18:06]process_json_proto returns [09:18:06]Send response to host [09:18:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118401,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [09:18:06]free response buf [09:18:06]execute_script done [09:18:06]execute_script returns [09:18:06]free content buf [09:18:06]Sock 7.Close socket [09:18:06]Sock 7.Thread stoped [09:18:10]OFD Sender: No OFD packet to send [09:18:15]OFD Sender: No OFD packet to send [09:18:20]OFD Sender: No OFD packet to send [09:18:25]OFD Sender: No OFD packet to send [09:18:30]OFD Sender: No OFD packet to send [09:18:35]OFD Sender: No OFD packet to send [09:18:40]OFD Sender: No OFD packet to send [09:18:45]OFD Sender: No OFD packet to send [09:18:50]OFD Sender: No OFD packet to send [09:18:55]OFD Sender: No OFD packet to send [09:19:00]OFD Sender: No OFD packet to send [09:19:05]OFD Sender: No OFD packet to send [09:19:10]OFD Sender: No OFD packet to send [09:19:15]OFD Sender: No OFD packet to send [09:19:20]OFD Sender: No OFD packet to send [09:19:25]OFD Sender: No OFD packet to send [09:19:30]OFD Sender: No OFD packet to send [09:19:35]OFD Sender: No OFD packet to send [09:19:40]OFD Sender: No OFD packet to send [09:19:45]OFD Sender: No OFD packet to send [09:19:50]OFD Sender: No OFD packet to send [09:19:55]OFD Sender: No OFD packet to send [09:20:00]OFD Sender: No OFD packet to send [09:20:05]OFD Sender: No OFD packet to send [09:20:10]OFD Sender: No OFD packet to send [09:20:15]OFD Sender: No OFD packet to send [09:20:20]OFD Sender: No OFD packet to send [09:20:25]OFD Sender: No OFD packet to send [09:20:30]OFD Sender: No OFD packet to send [09:20:35]OFD Sender: No OFD packet to send [09:20:40]OFD Sender: No OFD packet to send [09:20:45]OFD Sender: No OFD packet to send [09:20:50]OFD Sender: No OFD packet to send [09:20:55]OFD Sender: No OFD packet to send [09:21:00]OFD Sender: No OFD packet to send [09:21:05]OFD Sender: No OFD packet to send [09:21:10]OFD Sender: No OFD packet to send [09:21:15]OFD Sender: No OFD packet to send [09:21:20]OFD Sender: No OFD packet to send [09:21:25]OFD Sender: No OFD packet to send [09:21:29]accept exits with 9 [09:21:29]New connection [09:21:29]New thread 3067067748 created [09:21:29]Thread 3066924388 joined [09:21:29]Waiting for new connection... [09:21:29] Sock 9.Parse request [09:21:29]Sock 9.Check first char [09:21:29]Sock 9.First char is OK [09:21:29]request: POST /json_proto HTTP/1.0 [09:21:29]Method: POST [09:21:29]URL: /json_proto [09:21:29]Method is POST - this is cgi request [09:21:29]url: /json_proto [09:21:29]query_string will be loaded in cgi processing [09:21:29]execute_cgi json_proto POST (null) [09:21:29]execute_cgi path=json_proto method=POST [09:21:29]POST find Content-Length [09:21:29]Host: 172.17.45.7:8080 [09:21:29]Content-Length: 677 [09:21:29]Content-Type: application/json [09:21:29] [09:21:29]POST finish read [09:21:29]Found Content-Length = 677 [09:21:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.970, "sum" : 540.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:29]execute_script... [09:21: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)949274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.970, "sum" : 540.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:29]POST & json_proto [09:21:29]process_json_proto [09:21:29]json parsed OK: [09:21:29]protocol is kg_v1.0 [09:21:29]action value=close_receipt [09:21:29]process_action close_receipt [09:21:29]cmd_close_receipt [09:21:29]MH_GetDate [09:21:29]Write to MH i2c: F0 00 00 BD 0F BB [09:21:29]Write i2c OK [09:21:29]MH_I2C_Read... [09:21:29]Read from MH i2c: F0 [09:21:29]MH_I2C_Read... [09:21:30]Read from MH i2c: F0 09 00 [09:21:30]MH_I2C_Read... [09:21:30]Read from MH i2c: F0 09 00 BD 0F 00 9B 0D A6 66 90 0F 3E 66 BB [09:21:30]GetLastDocTimeStamp 1722158284 [09:21:30]current date 1722158491 [09:21:30]FM_GetShiftState [09:21:30]SAM_PROTO_GetShiftState [09:21:30]wFMCommunicate request_size=4 [09:21:30]MH_SAM_APDU [09:21:30]CAPDU: 80 13 01 00 [09:21:30]Write to MH i2c: E2 08 00 BE 0F 80 13 01 00 00 00 00 00 4A [09:21:30]Write i2c OK [09:21:30]MH_I2C_Read... [09:21:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:30]Read from MH i2c: E2 [09:21:30]MH_I2C_Read... [09:21:30]Read from MH i2c: E2 0E 00 [09:21:30]MH_I2C_Read... [09:21:30]Read from MH i2c: E2 0E 00 BE 0F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 21 [09:21:30]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:21:30]wFMCommunicate OK [09:21:30]SAM_PROTO_GetShiftState done [09:21:30]FM_GetShiftState done [09:21:30]opened in 1722125364 [09:21:30]opened+sec_in_day 1722211764 [09:21:30]quantity*price = 54036 [09:21:30]sum+1 = 54038 [09:21:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 540.00 Внесено: 540.00 СДАЧА: 0.00 НСП 1% : 4.78 НДС 12% : 57.38 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 71 28.07.2024 09:21 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118402 ФПД: 248883093403766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T092131&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118402&fm=248883093403766&tin=02508201610067®Number=0000000000092660&sum=54000 [09:21:31]StoreToDocumentArchive [09:21:31]shift 433 fd 118402 [09:21:31]save to /storage/0433/doc_00118402 [09:21:31]save last doc name /storage/0433/doc_00118402 to /storage/kkm_last_doc_name [09:21:31]save OK [09:21:31]Clear old archive folders... [09:21:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:21:31]tlvbuf is 0014A270 [09:21:31]SAM_PROTO_ClearQueue [09:21:31]wFMCommunicate request_size=4 [09:21:31]MH_SAM_APDU [09:21:31]CAPDU: 80 09 00 00 [09:21:31]Write to MH i2c: E2 08 00 CB 0F 80 09 00 00 00 00 00 00 4C [09:21:31]Write i2c OK [09:21:31]MH_I2C_Read... [09:21:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:31]Read from MH i2c: E2 [09:21:31]MH_I2C_Read... [09:21:31]Read from MH i2c: E2 03 00 [09:21:31]MH_I2C_Read... [09:21:31]Read from MH i2c: E2 03 00 CB 0F 00 90 00 4E [09:21:31]RAPDU: 90 00 [09:21:31]wFMCommunicate OK [09:21:31]SAM_PROTO_ClearQueue done [09:21:31]KKMCreateOFDPacket [09:21:31]OFDProtocolAddRootSTLVToBuf [09:21:31]FM_MakeSignedData [09:21:31]FM_MakeSignedData [09:21:31]SAM_PROTO_SignData [09:21:31]wFMCommunicate request_size=4 [09:21:31]MH_SAM_APDU [09:21:31]CAPDU: 80 0D 01 02 [09:21:31]Write to MH i2c: E2 08 00 CC 0F 80 0D 01 02 00 00 00 00 54 [09:21:31]Write i2c OK [09:21:31]MH_I2C_Read... [09:21:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:31]Read from MH i2c: E2 [09:21:31]MH_I2C_Read... [09:21:31]Read from MH i2c: E2 03 00 [09:21:31]MH_I2C_Read... [09:21:31]Read from MH i2c: E2 03 00 CC 0F 00 90 00 4F [09:21:31]RAPDU: 90 00 [09:21:31]wFMCommunicate OK [09:21:31]wFMCommunicate request_size=255 [09:21:31]MH_SAM_APDU [09:21: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 34 FF 03 08 00 03 22 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 15 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 9B 0D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 82 CE 01 00 35 04 06 00 E2 [09:21:31]Write to MH i2c: E2 02 01 CD 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 34 FF 03 08 00 03 22 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 15 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 9B 0D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 82 CE 01 00 35 04 06 00 E2 00 00 E5 [09:21:31]Write i2c OK [09:21:31]MH_I2C_Read... [09:21:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:31]Read from MH i2c: E2 [09:21:31]MH_I2C_Read... [09:21:31]Read from MH i2c: E2 03 00 [09:21:31]MH_I2C_Read... [09:21:31]Read from MH i2c: E2 03 00 CD 0F 00 90 00 50 [09:21:31]RAPDU: 90 00 [09:21:31]wFMCommunicate OK [09:21:31]wFMCommunicate request_size=10 [09:21:31]MH_SAM_APDU [09:21:31]CAPDU: 80 0D 02 02 05 5B 9C 5F 78 76 [09:21:31]Write to MH i2c: E2 0D 00 CE 0F 80 0D 02 02 05 00 5B 9C 5F 78 76 00 00 A5 [09:21:31]Write i2c OK [09:21:31]MH_I2C_Read... [09:21:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:31]Read from MH i2c: E2 [09:21:31]MH_I2C_Read... [09:21:31]Read from MH i2c: E2 03 00 [09:21:31]MH_I2C_Read... [09:21:31]Read from MH i2c: E2 03 00 CE 0F 00 90 00 51 [09:21:31]RAPDU: 90 00 [09:21:31]wFMCommunicate OK [09:21:31]wFMCommunicate request_size=4 [09:21:31]MH_SAM_APDU [09:21:31]CAPDU: 80 0D 03 02 [09:21:31]Write to MH i2c: E2 08 00 CF 0F 80 0D 03 02 00 00 00 00 59 [09:21:31]Write i2c OK [09:21:31]MH_I2C_Read... [09:21:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:31]Read from MH i2c: E2 [09:21:31]MH_I2C_Read... [09:21:31]Read from MH i2c: E2 0B 00 [09:21:31]MH_I2C_Read... [09:21:31]Read from MH i2c: E2 0B 00 CF 0F 00 52 9F 5E AC 12 A7 FF 1B 90 00 28 [09:21:31]RAPDU: 52 9F 5E AC 12 A7 FF 1B 90 00 [09:21:31]wFMCommunicate OK [09:21:31]SAM_PROTO_SignData done [09:21:31]FM_MakeSignedData done [09:21:31]CreateOFDProtocolMessage [09:21:31]wFMCommunicate request_size=4 [09:21:31]MH_SAM_APDU [09:21:31]CAPDU: 80 11 00 00 [09:21:31]Write to MH i2c: E2 08 00 D0 0F 80 11 00 00 00 00 00 00 59 [09:21:31]Write i2c OK [09:21:31]MH_I2C_Read... [09:21:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:31]Read from MH i2c: E2 [09:21:31]MH_I2C_Read... [09:21:31]Read from MH i2c: E2 17 00 [09:21:31]MH_I2C_Read... [09:21:31]Read from MH i2c: E2 17 00 D0 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B4 [09:21:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:21:31]wFMCommunicate OK [09:21:31]CreateOFDProtocolMessage done [09:21:31]OFDSenderStorePacket 118402 [09:21:31]StoreOFDPacket docnum=118402 [09:21:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 69 3E 07 01 5F AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 22 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 15 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 9B 0D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 82 CE 01 00 35 04 06 00 E2 5B 9C 5F 78 76 52 9F 5E AC 12 A7 FF 1B [09:21:31]CheckFolder [09:21:31]dirname=/storage/ofd_packets [09:21:31]CheckFolder done [09:21:31]ProducePacketName [09:21:31]name=ofd_packets/00118402 [09:21:31]NVStorageSaveData ofd_packets/00118402 [09:21:31]File name is /storage/ofd_packets/00118402 [09:21:31]Write 301 bytes [09:21:31]NVStorageSaveData done [09:21:31]OFDSenderStorePacket done [09:21:31]KKMCreateOFDPacket done [09:21:31]NVStorageSaveData kkm_last_timestamp [09:21:31]File name is /storage/kkm_last_timestamp [09:21:31]Write 4 bytes [09:21:31]NVStorageSaveData done [09:21:31]ExternCall_PrintAddStr [09:21:31]wPrintStart [09:21:31]Write to MH i2c: 01 00 00 D1 0F E0 [09:21:31]Write i2c OK [09:21:31]MH_I2C_Read... [09:21:31]Read from MH i2c: 01 [09:21:31]MH_I2C_Read... [09:21:31]Read from MH i2c: 01 07 00 [09:21:31]MH_I2C_Read... [09:21:31]Read from MH i2c: 01 07 00 D1 0F 00 00 00 00 00 FF 0F F5 [09:21:31]RasterBufferAndPrint [09:21:31]line Счет N : (1)949274 [09:21:31]line ИНН: 02508201610067 [09:21:31]line Контрольно-Кассовый Чек [09:21:31]line ПРОДАЖА [09:21:31]line ТРК (МРК, ГНК) : 41 [09:21:31]line Товар: 2710124130 [09:21:31]line Аи-92-К-4 [09:21:31]line 7.970 * 67.80 [09:21:31]line = 540.37 [09:21:31]line НДС 12% НСП 1% [09:21:31]line > о реализуемом товаре [09:21:31]line ОКРУГЛЕНИЕ: -0.37 [09:21:31]line ИТОГО: 540.00 [09:21:31]line Внесено: 540.00 [09:21:31]line СДАЧА: 0.00 [09:21:31]line НСП 1% : 4.78 [09:21:31]line НДС 12% : 57.38 [09:21:31]line Наличными: 540.00 [09:21:31]line Безнал.: 0.00 [09:21:31]line Место: АЗС № 134 "Партнер Нефть" [09:21:31]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:21:31]line СНО: Общий режим [09:21:31]line Чек 71 28.07.2024 09:21 [09:21:31]line Смена: 433 ФФД: 1.0 [09:21:31]line ЗНМ: 0300000044 [09:21:31]line РНМ: 0000000000092660 [09:21:31]line Версия ККМ: 001 [09:21:31]line ФМ: 0000000000874939 [09:21:31]line ФД: 118402 [09:21:31]line ФПД: 248883093403766 [09:21:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T092131&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118402&fm=248883093403766&tin=02508201610067®Number=0000000000092660&sum=54000 [09:21:31]OFD Sender: Processing packet 118402 [packets to send 86, broken 85] [09:21:31]ProducePacketName [09:21:31]name=ofd_packets/00118402 [09:21:31]OFD Sender: To server: pG, [09:21:31]CommunicateWithHost lk.salyk.kg:30040 [09:21:31]ConnectInit lk.salyk.kg [09:21:31]written 0, free lines is 4095 [09:21:31]Connected sock=10 [09:21:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 69 3E 07 01 5F AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 22 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 15 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 9B 0D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 82 CE 01 00 35 04 06 00 E2 5B 9C 5F 78 76 52 9F 5E AC 12 A7 FF 1B [09:21:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 11 CD 47 00 BF 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 82 CE 01 00 F4 03 04 00 2C BB A5 66 B6 04 01 00 00 E7 AB A0 BC FF 98 F1 F8 [09:21:32]CommunicateWithHost err = 0 [09:21:32]CheckOFDResponse [09:21:32]1017 (14) - 77093643461234 [09:21:32]1041 (16) - 0000000000874939 [09:21:32]1040 (4) - 118402 [09:21:32]1012 (4) - 28.07.2024 03:29 [09:21:32]1206 (1) - 0 [09:21:32]OFD Sender: Remove packet 118402 [09:21:32]ProducePacketName [09:21:32]name=ofd_packets/00118402 [09:21:32]NVStorageDeleteData [09:21:32]Write to MH i2c: 01 00 00 FB 0F 0A [09:21:32]Write i2c OK [09:21:32]MH_I2C_Read... [09:21:32]Read from MH i2c: 01 [09:21:32]MH_I2C_Read... [09:21:32]Read from MH i2c: 01 07 00 [09:21:32]MH_I2C_Read... [09:21:32]Read from MH i2c: 01 07 00 FB 0F 00 00 00 00 00 F3 0C 10 [09:21:32]RasterBufferAndPrint [09:21:32]line [09:21:32]line [09:21:32]line [09:21:32]line [09:21:32]line [09:21:32]written 0, free lines is 3323 [09:21:32]MH_Cut [09:21:32]Write to MH i2c: D1 01 00 02 10 01 E4 [09:21:32]Write i2c OK [09:21:32]MH_I2C_Read... [09:21:32]Read from MH i2c: D1 [09:21:32]MH_I2C_Read... [09:21:32]Read from MH i2c: D1 01 00 [09:21:32]MH_I2C_Read... [09:21:32]Read from MH i2c: D1 01 00 02 10 00 E3 [09:21:32]Write to MH i2c: 01 00 00 03 10 13 [09:21:32]Write i2c OK [09:21:32]MH_I2C_Read... [09:21:32]OFD Sender: No OFD packet to send [09:21:32]*** Cut start [09:21:32]*** Partial cut [09:21:32]*** CUTSNS_PIN = 1 [09:21:33]*** CUTSNS_PIN = 0 [09:21:33]*** Brake cut motor [09:21:33]Read from MH i2c: 01 [09:21:33]MH_I2C_Read... [09:21:33]*** Stop cut motor [09:21:33]*** Cut end [09:21:33]Read from MH i2c: 01 07 00 [09:21:33]MH_I2C_Read... [09:21:33]Read from MH i2c: 01 07 00 03 10 00 00 00 00 00 FF 0F 28 [09:21:33]process_action close_receipt done [09:21:33]requested_data is exist [09:21:33]produce_requested_data [09:21:33]requested_item fm.sn is exist - process it [09:21:33]wFMCommunicate request_size=4 [09:21:33]MH_SAM_APDU [09:21:33]CAPDU: 80 11 00 00 [09:21:33]Write to MH i2c: E2 08 00 04 10 80 11 00 00 00 00 00 00 8E [09:21:33]Write i2c OK [09:21:33]MH_I2C_Read... [09:21:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:33]Read from MH i2c: E2 [09:21:33]MH_I2C_Read... [09:21:33]Read from MH i2c: E2 17 00 [09:21:33]MH_I2C_Read... [09:21:33]Read from MH i2c: E2 17 00 04 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E9 [09:21:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:21:33]wFMCommunicate OK [09:21:33]requested_item fd.num is exist - process it [09:21:33]SAM_PROTO_GetFieldsCounters [09:21:33]wFMCommunicate request_size=4 [09:21:33]MH_SAM_APDU [09:21:33]CAPDU: 80 13 00 00 [09:21:33]Write to MH i2c: E2 08 00 05 10 80 13 00 00 00 00 00 00 91 [09:21:33]Write i2c OK [09:21:33]MH_I2C_Read... [09:21:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:33]Read from MH i2c: E2 [09:21:33]MH_I2C_Read... [09:21:33]Read from MH i2c: E2 62 00 [09:21:33]MH_I2C_Read... [09:21:33]Read from MH i2c: E2 62 00 05 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 82 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [09:21:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 82 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:21:33]wFMCommunicate OK [09:21:33]SAM_PROTO_GetFieldsCounters done [09:21:33]requested_item shift.num is exist - process it [09:21:33]requested_item shift.opened is exist - process it [09:21:33]req_shift_opened [09:21:33]FM_GetShiftState [09:21:33]SAM_PROTO_GetShiftState [09:21:33]wFMCommunicate request_size=4 [09:21:33]MH_SAM_APDU [09:21:33]CAPDU: 80 13 01 00 [09:21:33]Write to MH i2c: E2 08 00 06 10 80 13 01 00 00 00 00 00 93 [09:21:33]Write i2c OK [09:21:33]MH_I2C_Read... [09:21:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:33]Read from MH i2c: E2 [09:21:33]MH_I2C_Read... [09:21:33]Read from MH i2c: E2 0E 00 [09:21:33]MH_I2C_Read... [09:21:33]Read from MH i2c: E2 0E 00 06 10 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 6A [09:21:33]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:21:33]wFMCommunicate OK [09:21:33]SAM_PROTO_GetShiftState done [09:21:33]FM_GetShiftState done [09:21:33]req_shift_opened done [09:21:33]requested_item shift.open_date is exist - process it [09:21:33]req_shift_open_date [09:21:33]req_shift_open_date done [09:21:33]produce_requested_data done [09:21:33]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118402,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [09:21:33]process_action_free close_receipt [09:21:33]json_value_free [09:21:33]json_value_free done [09:21:33]process_json_proto returns [09:21:33]Send response to host [09:21:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118402,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [09:21:33]free response buf [09:21:33]execute_script done [09:21:33]execute_script returns [09:21:33]free content buf [09:21:33]Sock 9.Close socket [09:21:33]Sock 9.Thread stoped [09:21:37]OFD Sender: No OFD packet to send [09:21:42]OFD Sender: No OFD packet to send [09:21:47]OFD Sender: No OFD packet to send [09:21:52]OFD Sender: No OFD packet to send [09:21:57]OFD Sender: No OFD packet to send [09:22:02]OFD Sender: No OFD packet to send [09:22:07]OFD Sender: No OFD packet to send [09:22:12]OFD Sender: No OFD packet to send [09:22:17]OFD Sender: No OFD packet to send [09:22:22]OFD Sender: No OFD packet to send [09:22:27]OFD Sender: No OFD packet to send [09:22:32]OFD Sender: No OFD packet to send [09:22:37]OFD Sender: No OFD packet to send [09:22:42]OFD Sender: No OFD packet to send [09:22:47]OFD Sender: No OFD packet to send [09:22:52]OFD Sender: No OFD packet to send [09:22:57]OFD Sender: No OFD packet to send [09:23:02]OFD Sender: No OFD packet to send [09:23:07]OFD Sender: No OFD packet to send [09:23:12]OFD Sender: No OFD packet to send [09:23:17]OFD Sender: No OFD packet to send [09:23:22]OFD Sender: No OFD packet to send [09:23:27]OFD Sender: No OFD packet to send [09:23:32]OFD Sender: No OFD packet to send [09:23:37]OFD Sender: No OFD packet to send [09:23:42]OFD Sender: No OFD packet to send [09:23:47]OFD Sender: No OFD packet to send [09:23:52]OFD Sender: No OFD packet to send [09:23:57]OFD Sender: No OFD packet to send [09:24:02]OFD Sender: No OFD packet to send [09:24:07]OFD Sender: No OFD packet to send [09:24:12]OFD Sender: No OFD packet to send [09:24:17]OFD Sender: No OFD packet to send [09:24:22]OFD Sender: No OFD packet to send [09:24:27]OFD Sender: No OFD packet to send [09:24:32]OFD Sender: No OFD packet to send [09:24:37]OFD Sender: No OFD packet to send [09:24:42]OFD Sender: No OFD packet to send [09:24:47]OFD Sender: No OFD packet to send [09:24:52]OFD Sender: No OFD packet to send [09:24:57]OFD Sender: No OFD packet to send [09:25:02]OFD Sender: No OFD packet to send [09:25:07]OFD Sender: No OFD packet to send [09:25:12]OFD Sender: No OFD packet to send [09:25:17]OFD Sender: No OFD packet to send [09:25:22]OFD Sender: No OFD packet to send [09:25:27]OFD Sender: No OFD packet to send [09:25:32]OFD Sender: No OFD packet to send [09:25:37]OFD Sender: No OFD packet to send [09:25:42]OFD Sender: No OFD packet to send [09:25:47]OFD Sender: No OFD packet to send [09:25:52]OFD Sender: No OFD packet to send [09:25:57]OFD Sender: No OFD packet to send [09:26:02]OFD Sender: No OFD packet to send [09:26:07]OFD Sender: No OFD packet to send [09:26:12]OFD Sender: No OFD packet to send [09:26:17]OFD Sender: No OFD packet to send [09:26:22]OFD Sender: No OFD packet to send [09:26:27]OFD Sender: No OFD packet to send [09:26:32]OFD Sender: No OFD packet to send [09:26:37]OFD Sender: No OFD packet to send [09:26:42]OFD Sender: No OFD packet to send [09:26:47]OFD Sender: No OFD packet to send [09:26:52]OFD Sender: No OFD packet to send [09:26:58]OFD Sender: No OFD packet to send [09:27:03]OFD Sender: No OFD packet to send [09:27:08]OFD Sender: No OFD packet to send [09:27:13]OFD Sender: No OFD packet to send [09:27:18]OFD Sender: No OFD packet to send [09:27:23]OFD Sender: No OFD packet to send [09:27:28]OFD Sender: No OFD packet to send [09:27:33]OFD Sender: No OFD packet to send [09:27:33]accept exits with 7 [09:27:33]New connection [09:27:33]New thread 3066924388 created [09:27:33]Thread 3067067748 joined [09:27:33]Waiting for new connection... [09:27:33] Sock 7.Parse request [09:27:33]Sock 7.Check first char [09:27:33]Sock 7.First char is OK [09:27:33]request: POST /json_proto HTTP/1.0 [09:27:33]Method: POST [09:27:33]URL: /json_proto [09:27:33]Method is POST - this is cgi request [09:27:33]url: /json_proto [09:27:33]query_string will be loaded in cgi processing [09:27:33]execute_cgi json_proto POST (null) [09:27:33]execute_cgi path=json_proto method=POST [09:27:33]POST find Content-Length [09:27:33]Host: 172.17.45.7:8080 [09:27:33]Content-Length: 678 [09:27:33]Content-Type: application/json [09:27:33] [09:27:33]POST finish read [09:27:33]Found Content-Length = 678 [09:27:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:33]execute_script... [09:27: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)949275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:33]POST & json_proto [09:27:33]process_json_proto [09:27:33]json parsed OK: [09:27:33]protocol is kg_v1.0 [09:27:33]action value=close_receipt [09:27:33]process_action close_receipt [09:27:33]cmd_close_receipt [09:27:33]MH_GetDate [09:27:33]Write to MH i2c: F0 00 00 07 10 06 [09:27:33]Write i2c OK [09:27:33]MH_I2C_Read... [09:27:33]Read from MH i2c: F0 [09:27:33]MH_I2C_Read... [09:27:33]Read from MH i2c: F0 09 00 [09:27:33]MH_I2C_Read... [09:27:33]Read from MH i2c: F0 09 00 07 10 00 07 0F A6 66 90 0F 3E 66 74 [09:27:33]GetLastDocTimeStamp 1722158491 [09:27:33]current date 1722158855 [09:27:33]FM_GetShiftState [09:27:33]SAM_PROTO_GetShiftState [09:27:33]wFMCommunicate request_size=4 [09:27:33]MH_SAM_APDU [09:27:33]CAPDU: 80 13 01 00 [09:27:33]Write to MH i2c: E2 08 00 08 10 80 13 01 00 00 00 00 00 95 [09:27:33]Write i2c OK [09:27:33]MH_I2C_Read... [09:27:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:33]Read from MH i2c: E2 [09:27:33]MH_I2C_Read... [09:27:33]Read from MH i2c: E2 0E 00 [09:27:33]MH_I2C_Read... [09:27:33]Read from MH i2c: E2 0E 00 08 10 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 6C [09:27:33]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:27:33]wFMCommunicate OK [09:27:33]SAM_PROTO_GetShiftState done [09:27:33]FM_GetShiftState done [09:27:33]opened in 1722125364 [09:27:33]opened+sec_in_day 1722211764 [09:27:33]quantity*price = 70037 [09:27:33]sum+1 = 70038 [09:27:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 72 28.07.2024 09:27 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118403 ФПД: 140857489646708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T092735&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118403&fm=140857489646708&tin=02508201610067®Number=0000000000092660&sum=70000 [09:27:34]StoreToDocumentArchive [09:27:34]shift 433 fd 118403 [09:27:34]save to /storage/0433/doc_00118403 [09:27:34]save last doc name /storage/0433/doc_00118403 to /storage/kkm_last_doc_name [09:27:34]save OK [09:27:34]Clear old archive folders... [09:27:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:27:34]tlvbuf is 0019F410 [09:27:34]SAM_PROTO_ClearQueue [09:27:34]wFMCommunicate request_size=4 [09:27:34]MH_SAM_APDU [09:27:34]CAPDU: 80 09 00 00 [09:27:34]Write to MH i2c: E2 08 00 15 10 80 09 00 00 00 00 00 00 97 [09:27:34]Write i2c OK [09:27:34]MH_I2C_Read... [09:27:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:34]Read from MH i2c: E2 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: E2 03 00 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: E2 03 00 15 10 00 90 00 99 [09:27:34]RAPDU: 90 00 [09:27:34]wFMCommunicate OK [09:27:34]SAM_PROTO_ClearQueue done [09:27:34]KKMCreateOFDPacket [09:27:34]OFDProtocolAddRootSTLVToBuf [09:27:34]FM_MakeSignedData [09:27:34]FM_MakeSignedData [09:27:34]SAM_PROTO_SignData [09:27:34]wFMCommunicate request_size=4 [09:27:34]MH_SAM_APDU [09:27:34]CAPDU: 80 0D 01 02 [09:27:34]Write to MH i2c: E2 08 00 16 10 80 0D 01 02 00 00 00 00 9F [09:27:34]Write i2c OK [09:27:34]MH_I2C_Read... [09:27:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:34]Read from MH i2c: E2 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: E2 03 00 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: E2 03 00 16 10 00 90 00 9A [09:27:34]RAPDU: 90 00 [09:27:34]wFMCommunicate OK [09:27:34]wFMCommunicate request_size=255 [09:27:34]MH_SAM_APDU [09: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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 07 0F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 83 CE 01 00 35 04 06 00 80 [09:27:34]Write to MH i2c: E2 02 01 17 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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 07 0F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 83 CE 01 00 35 04 06 00 80 00 00 F8 [09:27:34]Write i2c OK [09:27:34]MH_I2C_Read... [09:27:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:35]Read from MH i2c: E2 [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: E2 03 00 [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: E2 03 00 17 10 00 90 00 9B [09:27:35]RAPDU: 90 00 [09:27:35]wFMCommunicate OK [09:27:35]wFMCommunicate request_size=10 [09:27:35]MH_SAM_APDU [09:27:35]CAPDU: 80 0D 02 02 05 1B F0 A2 64 74 [09:27:35]Write to MH i2c: E2 0D 00 18 10 80 0D 02 02 05 00 1B F0 A2 64 74 00 00 31 [09:27:35]Write i2c OK [09:27:35]MH_I2C_Read... [09:27:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:35]Read from MH i2c: E2 [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: E2 03 00 [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: E2 03 00 18 10 00 90 00 9C [09:27:35]RAPDU: 90 00 [09:27:35]wFMCommunicate OK [09:27:35]wFMCommunicate request_size=4 [09:27:35]MH_SAM_APDU [09:27:35]CAPDU: 80 0D 03 02 [09:27:35]Write to MH i2c: E2 08 00 19 10 80 0D 03 02 00 00 00 00 A4 [09:27:35]Write i2c OK [09:27:35]MH_I2C_Read... [09:27:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:35]Read from MH i2c: E2 [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: E2 0B 00 [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: E2 0B 00 19 10 00 DA C6 17 42 F6 80 8F AA 90 00 4D [09:27:35]RAPDU: DA C6 17 42 F6 80 8F AA 90 00 [09:27:35]wFMCommunicate OK [09:27:35]SAM_PROTO_SignData done [09:27:35]FM_MakeSignedData done [09:27:35]CreateOFDProtocolMessage [09:27:35]wFMCommunicate request_size=4 [09:27:35]MH_SAM_APDU [09:27:35]CAPDU: 80 11 00 00 [09:27:35]Write to MH i2c: E2 08 00 1A 10 80 11 00 00 00 00 00 00 A4 [09:27:35]Write i2c OK [09:27:35]MH_I2C_Read... [09:27:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:35]Read from MH i2c: E2 [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: E2 17 00 [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: E2 17 00 1A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FF [09:27:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:27:35]wFMCommunicate OK [09:27:35]CreateOFDProtocolMessage done [09:27:35]OFDSenderStorePacket 118403 [09:27:35]StoreOFDPacket docnum=118403 [09:27:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B4 A2 07 01 27 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 07 0F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 83 CE 01 00 35 04 06 00 80 1B F0 A2 64 74 DA C6 17 42 F6 80 8F AA [09:27:35]CheckFolder [09:27:35]dirname=/storage/ofd_packets [09:27:35]CheckFolder done [09:27:35]ProducePacketName [09:27:35]name=ofd_packets/00118403 [09:27:35]NVStorageSaveData ofd_packets/00118403 [09:27:35]File name is /storage/ofd_packets/00118403 [09:27:35]Write 301 bytes [09:27:35]NVStorageSaveData done [09:27:35]OFDSenderStorePacket done [09:27:35]KKMCreateOFDPacket done [09:27:35]NVStorageSaveData kkm_last_timestamp [09:27:35]File name is /storage/kkm_last_timestamp [09:27:35]Write 4 bytes [09:27:35]NVStorageSaveData done [09:27:35]ExternCall_PrintAddStr [09:27:35]wPrintStart [09:27:35]Write to MH i2c: 01 00 00 1B 10 2B [09:27:35]Write i2c OK [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: 01 [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: 01 07 00 [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: 01 07 00 1B 10 00 00 00 00 00 FF 0F 40 [09:27:35]RasterBufferAndPrint [09:27:35]line Счет N : (1)949275 [09:27:35]line ИНН: 02508201610067 [09:27:35]line Контрольно-Кассовый Чек [09:27:35]line ПРОДАЖА [09:27:35]line ТРК (МРК, ГНК) : 41 [09:27:35]line Товар: 2710124130 [09:27:35]line Аи-92-К-4 [09:27:35]line 10.330 * 67.80 [09:27:35]line = 700.37 [09:27:35]line НДС 12% НСП 1% [09:27:35]line > о реализуемом товаре [09:27:35]line ОКРУГЛЕНИЕ: -0.37 [09:27:35]line ИТОГО: 700.00 [09:27:35]line Внесено: 700.00 [09:27:35]line СДАЧА: 0.00 [09:27:35]line НСП 1% : 6.20 [09:27:35]line НДС 12% : 74.38 [09:27:35]line Наличными: 700.00 [09:27:35]line Безнал.: 0.00 [09:27:35]line Место: АЗС № 134 "Партнер Нефть" [09:27:35]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:27:35]line СНО: Общий режим [09:27:35]line Чек 72 28.07.2024 09:27 [09:27:35]line Смена: 433 ФФД: 1.0 [09:27:35]line ЗНМ: 0300000044 [09:27:35]line РНМ: 0000000000092660 [09:27:35]line Версия ККМ: 001 [09:27:35]line ФМ: 0000000000874939 [09:27:35]line ФД: 118403 [09:27:35]line ФПД: 140857489646708 [09:27:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T092735&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118403&fm=140857489646708&tin=02508201610067®Number=0000000000092660&sum=70000 [09:27:35]OFD Sender: Processing packet 118403 [packets to send 86, broken 85] [09:27:35]ProducePacketName [09:27:35]name=ofd_packets/00118403 [09:27:35]OFD Sender: To server: pG, [09:27:35]CommunicateWithHost lk.salyk.kg:30040 [09:27:35]ConnectInit lk.salyk.kg [09:27:35]written 0, free lines is 4095 [09:27:35]Connected sock=10 [09: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 39 33 39 0F 01 00 00 B4 A2 07 01 27 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 07 0F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 83 CE 01 00 35 04 06 00 80 1B F0 A2 64 74 DA C6 17 42 F6 80 8F AA [09: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 39 33 39 4F 00 00 00 62 30 47 00 83 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 83 CE 01 00 F4 03 04 00 98 BC A5 66 B6 04 01 00 00 DD 2A F6 9F B4 76 75 AD [09:27:35]CommunicateWithHost err = 0 [09:27:35]CheckOFDResponse [09:27:35]1017 (14) - 77093643461234 [09:27:35]1041 (16) - 0000000000874939 [09:27:35]1040 (4) - 118403 [09:27:35]1012 (4) - 28.07.2024 03:35 [09:27:35]1206 (1) - 0 [09:27:35]OFD Sender: Remove packet 118403 [09:27:35]ProducePacketName [09:27:35]name=ofd_packets/00118403 [09:27:35]NVStorageDeleteData [09:27:35]Write to MH i2c: 01 00 00 45 10 55 [09:27:35]Write i2c OK [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: 01 [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: 01 07 00 [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: 01 07 00 45 10 00 00 00 00 00 F6 0C 5E [09:27:35]RasterBufferAndPrint [09:27:35]line [09:27:35]line [09:27:35]line [09:27:35]line [09:27:35]line [09:27:35]written 0, free lines is 3325 [09:27:35]MH_Cut [09:27:35]Write to MH i2c: D1 01 00 4C 10 01 2E [09:27:35]Write i2c OK [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: D1 [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: D1 01 00 [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: D1 01 00 4C 10 00 2D [09:27:35]Write to MH i2c: 01 00 00 4D 10 5D [09:27:35]Write i2c OK [09:27:35]MH_I2C_Read... [09:27:36]OFD Sender: No OFD packet to send [09:27:36]*** Cut start [09:27:36]*** Partial cut [09:27:36]*** CUTSNS_PIN = 1 [09:27:36]*** CUTSNS_PIN = 0 [09:27:36]*** Brake cut motor [09:27:37]Read from MH i2c: 01 [09:27:37]MH_I2C_Read... [09:27:37]*** Stop cut motor [09:27:37]*** Cut end [09:27:37]Read from MH i2c: 01 07 00 [09:27:37]MH_I2C_Read... [09:27:37]Read from MH i2c: 01 07 00 4D 10 00 00 00 00 00 FF 0F 72 [09:27:37]process_action close_receipt done [09:27:37]requested_data is exist [09:27:37]produce_requested_data [09:27:37]requested_item fm.sn is exist - process it [09:27:37]wFMCommunicate request_size=4 [09:27:37]MH_SAM_APDU [09:27:37]CAPDU: 80 11 00 00 [09:27:37]Write to MH i2c: E2 08 00 4E 10 80 11 00 00 00 00 00 00 D8 [09:27:37]Write i2c OK [09:27:37]MH_I2C_Read... [09:27:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:37]Read from MH i2c: E2 [09:27:37]MH_I2C_Read... [09:27:37]Read from MH i2c: E2 17 00 [09:27:37]MH_I2C_Read... [09:27:37]Read from MH i2c: E2 17 00 4E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 33 [09:27:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:27:37]wFMCommunicate OK [09:27:37]requested_item fd.num is exist - process it [09:27:37]SAM_PROTO_GetFieldsCounters [09:27:37]wFMCommunicate request_size=4 [09:27:37]MH_SAM_APDU [09:27:37]CAPDU: 80 13 00 00 [09:27:37]Write to MH i2c: E2 08 00 4F 10 80 13 00 00 00 00 00 00 DB [09:27:37]Write i2c OK [09:27:37]MH_I2C_Read... [09:27:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:37]Read from MH i2c: E2 [09:27:37]MH_I2C_Read... [09:27:37]Read from MH i2c: E2 62 00 [09:27:37]MH_I2C_Read... [09:27:37]Read from MH i2c: E2 62 00 4F 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 83 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [09:27:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 83 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:27:37]wFMCommunicate OK [09:27:37]SAM_PROTO_GetFieldsCounters done [09:27:37]requested_item shift.num is exist - process it [09:27:37]requested_item shift.opened is exist - process it [09:27:37]req_shift_opened [09:27:37]FM_GetShiftState [09:27:37]SAM_PROTO_GetShiftState [09:27:37]wFMCommunicate request_size=4 [09:27:37]MH_SAM_APDU [09:27:37]CAPDU: 80 13 01 00 [09:27:37]Write to MH i2c: E2 08 00 50 10 80 13 01 00 00 00 00 00 DD [09:27:37]Write i2c OK [09:27:37]MH_I2C_Read... [09:27:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:37]Read from MH i2c: E2 [09:27:37]MH_I2C_Read... [09:27:37]Read from MH i2c: E2 0E 00 [09:27:37]MH_I2C_Read... [09:27:37]Read from MH i2c: E2 0E 00 50 10 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 B4 [09:27:37]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:27:37]wFMCommunicate OK [09:27:37]SAM_PROTO_GetShiftState done [09:27:37]FM_GetShiftState done [09:27:37]req_shift_opened done [09:27:37]requested_item shift.open_date is exist - process it [09:27:37]req_shift_open_date [09:27:37]req_shift_open_date done [09:27:37]produce_requested_data done [09:27:37]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118403,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [09:27:37]process_action_free close_receipt [09:27:37]json_value_free [09:27:37]json_value_free done [09:27:37]process_json_proto returns [09:27:37]Send response to host [09:27:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118403,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [09:27:37]free response buf [09:27:37]execute_script done [09:27:37]execute_script returns [09:27:37]free content buf [09:27:37]Sock 7.Close socket [09:27:37]Sock 7.Thread stoped [09:27:41]OFD Sender: No OFD packet to send [09:27:46]OFD Sender: No OFD packet to send [09:27:51]OFD Sender: No OFD packet to send [09:27:56]OFD Sender: No OFD packet to send [09:28:01]OFD Sender: No OFD packet to send [09:28:06]OFD Sender: No OFD packet to send [09:28:11]OFD Sender: No OFD packet to send [09:28:16]OFD Sender: No OFD packet to send [09:28:21]OFD Sender: No OFD packet to send [09:28:26]OFD Sender: No OFD packet to send [09:28:31]OFD Sender: No OFD packet to send [09:28:36]OFD Sender: No OFD packet to send [09:28:41]OFD Sender: No OFD packet to send [09:28:46]OFD Sender: No OFD packet to send [09:28:51]OFD Sender: No OFD packet to send [09:28:56]OFD Sender: No OFD packet to send [09:29:01]OFD Sender: No OFD packet to send [09:29:06]OFD Sender: No OFD packet to send [09:29:07]accept exits with 9 [09:29:07]New connection [09:29:07]New thread 3067067748 created [09:29:07]Thread 3066924388 joined [09:29:07]Waiting for new connection... [09:29:07] Sock 9.Parse request [09:29:07]Sock 9.Check first char [09:29:07]Sock 9.First char is OK [09:29:07]request: POST /json_proto HTTP/1.0 [09:29:07]Method: POST [09:29:07]URL: /json_proto [09:29:07]Method is POST - this is cgi request [09:29:07]url: /json_proto [09:29:07]query_string will be loaded in cgi processing [09:29:07]execute_cgi json_proto POST (null) [09:29:07]execute_cgi path=json_proto method=POST [09:29:07]POST find Content-Length [09:29:07]Host: 172.17.45.7:8080 [09:29:07]Content-Length: 679 [09:29:07]Content-Type: application/json [09:29:07] [09:29:07]POST finish read [09:29:07]Found Content-Length = 679 [09:29:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:07]execute_script... [09:29:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:07]POST & json_proto [09:29:07]process_json_proto [09:29:07]json parsed OK: [09:29:07]protocol is kg_v1.0 [09:29:07]action value=close_receipt [09:29:07]process_action close_receipt [09:29:07]cmd_close_receipt [09:29:07]MH_GetDate [09:29:07]Write to MH i2c: F0 00 00 51 10 50 [09:29:07]Write i2c OK [09:29:07]MH_I2C_Read... [09:29:07]Read from MH i2c: F0 [09:29:07]MH_I2C_Read... [09:29:07]Read from MH i2c: F0 09 00 [09:29:07]MH_I2C_Read... [09:29:07]Read from MH i2c: F0 09 00 51 10 00 65 0F A6 66 90 0F 3E 66 1C [09:29:07]GetLastDocTimeStamp 1722158855 [09:29:07]current date 1722158949 [09:29:07]FM_GetShiftState [09:29:07]SAM_PROTO_GetShiftState [09:29:07]wFMCommunicate request_size=4 [09:29:07]MH_SAM_APDU [09:29:07]CAPDU: 80 13 01 00 [09:29:07]Write to MH i2c: E2 08 00 52 10 80 13 01 00 00 00 00 00 DF [09:29:07]Write i2c OK [09:29:07]MH_I2C_Read... [09:29:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:08]Read from MH i2c: E2 [09:29:08]MH_I2C_Read... [09:29:08]Read from MH i2c: E2 0E 00 [09:29:08]MH_I2C_Read... [09:29:08]Read from MH i2c: E2 0E 00 52 10 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 B6 [09:29:08]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:29:08]wFMCommunicate OK [09:29:08]SAM_PROTO_GetShiftState done [09:29:08]FM_GetShiftState done [09:29:08]opened in 1722125364 [09:29:08]opened+sec_in_day 1722211764 [09:29:08]quantity*price = 120015 [09:29:08]sum+1 = 120016 [09:29:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 73 28.07.2024 09:29 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118404 ФПД: 153713775833806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T092909&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118404&fm=153713775833806&tin=02508201610067®Number=0000000000092660&sum=120000 [09:29:09]StoreToDocumentArchive [09:29:09]shift 433 fd 118404 [09:29:09]save to /storage/0433/doc_00118404 [09:29:09]save last doc name /storage/0433/doc_00118404 to /storage/kkm_last_doc_name [09:29:09]save OK [09:29:09]Clear old archive folders... [09:29:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:29:09]tlvbuf is 0013D130 [09:29:09]SAM_PROTO_ClearQueue [09:29:09]wFMCommunicate request_size=4 [09:29:09]MH_SAM_APDU [09:29:09]CAPDU: 80 09 00 00 [09:29:09]Write to MH i2c: E2 08 00 5F 10 80 09 00 00 00 00 00 00 E1 [09:29:09]Write i2c OK [09:29:09]MH_I2C_Read... [09:29:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:09]Read from MH i2c: E2 [09:29:09]MH_I2C_Read... [09:29:09]Read from MH i2c: E2 03 00 [09:29:09]MH_I2C_Read... [09:29:09]Read from MH i2c: E2 03 00 5F 10 00 90 00 E3 [09:29:09]RAPDU: 90 00 [09:29:09]wFMCommunicate OK [09:29:09]SAM_PROTO_ClearQueue done [09:29:09]KKMCreateOFDPacket [09:29:09]OFDProtocolAddRootSTLVToBuf [09:29:09]FM_MakeSignedData [09:29:09]FM_MakeSignedData [09:29:09]SAM_PROTO_SignData [09:29:09]wFMCommunicate request_size=4 [09:29:09]MH_SAM_APDU [09:29:09]CAPDU: 80 0D 01 02 [09:29:09]Write to MH i2c: E2 08 00 60 10 80 0D 01 02 00 00 00 00 E9 [09:29:09]Write i2c OK [09:29:09]MH_I2C_Read... [09:29:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:09]Read from MH i2c: E2 [09:29:09]MH_I2C_Read... [09:29:09]Read from MH i2c: E2 03 00 [09:29:09]MH_I2C_Read... [09:29:09]Read from MH i2c: E2 03 00 60 10 00 90 00 E4 [09:29:09]RAPDU: 90 00 [09:29:09]wFMCommunicate OK [09:29:09]wFMCommunicate request_size=255 [09:29:09]MH_SAM_APDU [09:29:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 65 0F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 84 CE 01 00 35 04 06 00 8B CD 47 01 [09:29:09]Write to MH i2c: E2 02 01 61 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 65 0F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 84 CE 01 00 35 04 06 00 8B CD 47 01 00 00 55 [09:29:09]Write i2c OK [09:29:09]MH_I2C_Read... [09:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:09]Read from MH i2c: E2 [09:29:09]MH_I2C_Read... [09:29:09]Read from MH i2c: E2 03 00 [09:29:09]MH_I2C_Read... [09:29:09]Read from MH i2c: E2 03 00 61 10 00 90 00 E5 [09:29:09]RAPDU: 90 00 [09:29:09]wFMCommunicate OK [09:29:09]wFMCommunicate request_size=7 [09:29:09]MH_SAM_APDU [09:29:09]CAPDU: 80 0D 02 02 02 72 CE [09:29:09]Write to MH i2c: E2 0A 00 62 10 80 0D 02 02 02 00 72 CE 00 00 30 [09:29:09]Write i2c OK [09:29:09]MH_I2C_Read... [09:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:09]Read from MH i2c: E2 [09:29:09]MH_I2C_Read... [09:29:09]Read from MH i2c: E2 03 00 [09:29:09]MH_I2C_Read... [09:29:09]Read from MH i2c: E2 03 00 62 10 00 90 00 E6 [09:29:09]RAPDU: 90 00 [09:29:09]wFMCommunicate OK [09:29:09]wFMCommunicate request_size=4 [09:29:09]MH_SAM_APDU [09:29:09]CAPDU: 80 0D 03 02 [09:29:09]Write to MH i2c: E2 08 00 63 10 80 0D 03 02 00 00 00 00 EE [09:29:09]Write i2c OK [09:29:09]MH_I2C_Read... [09:29:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:09]Read from MH i2c: E2 [09:29:09]MH_I2C_Read... [09:29:09]Read from MH i2c: E2 0B 00 [09:29:09]MH_I2C_Read... [09:29:09]Read from MH i2c: E2 0B 00 63 10 00 2B 65 54 AE 9C 3A 03 7B 90 00 D5 [09:29:09]RAPDU: 2B 65 54 AE 9C 3A 03 7B 90 00 [09:29:09]wFMCommunicate OK [09:29:09]SAM_PROTO_SignData done [09:29:09]FM_MakeSignedData done [09:29:09]CreateOFDProtocolMessage [09:29:09]wFMCommunicate request_size=4 [09:29:09]MH_SAM_APDU [09:29:09]CAPDU: 80 11 00 00 [09:29:09]Write to MH i2c: E2 08 00 64 10 80 11 00 00 00 00 00 00 EE [09:29:09]Write i2c OK [09:29:09]MH_I2C_Read... [09:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:09]Read from MH i2c: E2 [09:29:09]MH_I2C_Read... [09:29:09]Read from MH i2c: E2 17 00 [09:29:09]MH_I2C_Read... [09:29:09]Read from MH i2c: E2 17 00 64 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 49 [09:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:29:09]wFMCommunicate OK [09:29:09]CreateOFDProtocolMessage done [09:29:09]OFDSenderStorePacket 118404 [09:29:09]StoreOFDPacket docnum=118404 [09:29:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E0 41 04 01 F3 B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 65 0F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 84 CE 01 00 35 04 06 00 8B CD 47 01 72 CE 2B 65 54 AE 9C 3A 03 7B [09:29:09]CheckFolder [09:29:09]dirname=/storage/ofd_packets [09:29:09]CheckFolder done [09:29:09]ProducePacketName [09:29:09]name=ofd_packets/00118404 [09:29:09]NVStorageSaveData ofd_packets/00118404 [09:29:09]File name is /storage/ofd_packets/00118404 [09:29:09]Write 298 bytes [09:29:09]NVStorageSaveData done [09:29:09]OFDSenderStorePacket done [09:29:09]KKMCreateOFDPacket done [09:29:09]NVStorageSaveData kkm_last_timestamp [09:29:09]File name is /storage/kkm_last_timestamp [09:29:09]Write 4 bytes [09:29:09]NVStorageSaveData done [09:29:09]ExternCall_PrintAddStr [09:29:09]wPrintStart [09:29:09]Write to MH i2c: 01 00 00 65 10 75 [09:29:09]Write i2c OK [09:29:09]MH_I2C_Read... [09:29:09]Read from MH i2c: 01 [09:29:09]MH_I2C_Read... [09:29:09]Read from MH i2c: 01 07 00 [09:29:09]MH_I2C_Read... [09:29:09]Read from MH i2c: 01 07 00 65 10 00 00 00 00 00 FF 0F 8A [09:29:09]RasterBufferAndPrint [09:29:09]line Счет N : (1)949276 [09:29:09]line ИНН: 02508201610067 [09:29:09]line Контрольно-Кассовый Чек [09:29:09]line ПРОДАЖА [09:29:09]line ТРК (МРК, ГНК) : 21 [09:29:09]line Товар: 2710194800 [09:29:09]line ДТ-К-5 [09:29:09]line 15.750 * 76.20 [09:29:09]line = 1200.15 [09:29:09]line НДС 12% НСП 1% [09:29:09]line > о реализуемом товаре [09:29:09]line ОКРУГЛЕНИЕ: -0.15 [09:29:09]line ИТОГО: 1200.00 [09:29:09]line Внесено: 1200.00 [09:29:09]line СДАЧА: 0.00 [09:29:09]line НСП 1% : 10.62 [09:29:09]line НДС 12% : 127.45 [09:29:09]line Наличными: 1200.00 [09:29:09]line Безнал.: 0.00 [09:29:09]line Место: АЗС № 134 "Партнер Нефть" [09:29:09]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:29:09]line СНО: Общий режим [09:29:09]line Чек 73 28.07.2024 09:29 [09:29:09]line Смена: 433 ФФД: 1.0 [09:29:09]line ЗНМ: 0300000044 [09:29:09]line РНМ: 0000000000092660 [09:29:09]line Версия ККМ: 001 [09:29:09]line ФМ: 0000000000874939 [09:29:09]line ФД: 118404 [09:29:09]line ФПД: 153713775833806 [09:29:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T092909&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118404&fm=153713775833806&tin=02508201610067®Number=0000000000092660&sum=120000 [09:29:09]OFD Sender: Processing packet 118404 [packets to send 86, broken 85] [09:29:09]ProducePacketName [09:29:09]name=ofd_packets/00118404 [09:29:09]OFD Sender: To server: pG, [09:29:09]CommunicateWithHost lk.salyk.kg:30040 [09:29:09]ConnectInit lk.salyk.kg [09:29:09]written 0, free lines is 4095 [09:29:10]Connected sock=10 [09:29:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E0 41 04 01 F3 B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 65 0F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 84 CE 01 00 35 04 06 00 8B CD 47 01 72 CE 2B 65 54 AE 9C 3A 03 7B [09:29:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1F FA 47 00 1D C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 84 CE 01 00 F4 03 04 00 F6 BC A5 66 B6 04 01 00 00 77 03 07 4A EA 08 4D 7B [09:29:10]CommunicateWithHost err = 0 [09:29:10]CheckOFDResponse [09:29:10]1017 (14) - 77093643461234 [09:29:10]1041 (16) - 0000000000874939 [09:29:10]1040 (4) - 118404 [09:29:10]1012 (4) - 28.07.2024 03:37 [09:29:10]1206 (1) - 0 [09:29:10]OFD Sender: Remove packet 118404 [09:29:10]ProducePacketName [09:29:10]name=ofd_packets/00118404 [09:29:10]NVStorageDeleteData [09:29:10]Write to MH i2c: 01 00 00 8F 10 9F [09:29:10]Write i2c OK [09:29:10]MH_I2C_Read... [09:29:10]Read from MH i2c: 01 [09:29:10]MH_I2C_Read... [09:29:10]Read from MH i2c: 01 07 00 [09:29:10]MH_I2C_Read... [09:29:10]Read from MH i2c: 01 07 00 8F 10 00 00 00 00 00 E7 0C 99 [09:29:10]RasterBufferAndPrint [09:29:10]line [09:29:10]line [09:29:10]line [09:29:10]line [09:29:10]line [09:29:10]written 0, free lines is 3310 [09:29:10]MH_Cut [09:29:10]Write to MH i2c: D1 01 00 96 10 01 78 [09:29:10]Write i2c OK [09:29:10]MH_I2C_Read... [09:29:10]Read from MH i2c: D1 [09:29:10]MH_I2C_Read... [09:29:10]Read from MH i2c: D1 01 00 [09:29:10]MH_I2C_Read... [09:29:10]Read from MH i2c: D1 01 00 96 10 00 77 [09:29:10]Write to MH i2c: 01 00 00 97 10 A7 [09:29:10]Write i2c OK [09:29:10]MH_I2C_Read... [09:29:10]OFD Sender: No OFD packet to send [09:29:11]*** Cut start [09:29:11]*** Partial cut [09:29:11]*** CUTSNS_PIN = 1 [09:29:11]*** CUTSNS_PIN = 0 [09:29:11]*** Brake cut motor [09:29:11]Read from MH i2c: 01 [09:29:11]MH_I2C_Read... [09:29:11]*** Stop cut motor [09:29:11]*** Cut end [09:29:11]Read from MH i2c: 01 07 00 [09:29:11]MH_I2C_Read... [09:29:11]Read from MH i2c: 01 07 00 97 10 00 00 00 00 00 FF 0F BC [09:29:11]process_action close_receipt done [09:29:11]requested_data is exist [09:29:11]produce_requested_data [09:29:11]requested_item fm.sn is exist - process it [09:29:11]wFMCommunicate request_size=4 [09:29:11]MH_SAM_APDU [09:29:11]CAPDU: 80 11 00 00 [09:29:11]Write to MH i2c: E2 08 00 98 10 80 11 00 00 00 00 00 00 22 [09:29:11]Write i2c OK [09:29:11]MH_I2C_Read... [09:29:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:11]Read from MH i2c: E2 [09:29:11]MH_I2C_Read... [09:29:11]Read from MH i2c: E2 17 00 [09:29:11]MH_I2C_Read... [09:29:11]Read from MH i2c: E2 17 00 98 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7D [09:29:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:29:11]wFMCommunicate OK [09:29:11]requested_item fd.num is exist - process it [09:29:11]SAM_PROTO_GetFieldsCounters [09:29:11]wFMCommunicate request_size=4 [09:29:11]MH_SAM_APDU [09:29:11]CAPDU: 80 13 00 00 [09:29:11]Write to MH i2c: E2 08 00 99 10 80 13 00 00 00 00 00 00 25 [09:29:11]Write i2c OK [09:29:11]MH_I2C_Read... [09:29:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:11]Read from MH i2c: E2 [09:29:11]MH_I2C_Read... [09:29:11]Read from MH i2c: E2 62 00 [09:29:11]MH_I2C_Read... [09:29:11]Read from MH i2c: E2 62 00 99 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 84 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [09:29:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 84 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:29:11]wFMCommunicate OK [09:29:11]SAM_PROTO_GetFieldsCounters done [09:29:11]requested_item shift.num is exist - process it [09:29:11]requested_item shift.opened is exist - process it [09:29:11]req_shift_opened [09:29:11]FM_GetShiftState [09:29:11]SAM_PROTO_GetShiftState [09:29:11]wFMCommunicate request_size=4 [09:29:11]MH_SAM_APDU [09:29:11]CAPDU: 80 13 01 00 [09:29:11]Write to MH i2c: E2 08 00 9A 10 80 13 01 00 00 00 00 00 27 [09:29:11]Write i2c OK [09:29:11]MH_I2C_Read... [09:29:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:11]Read from MH i2c: E2 [09:29:11]MH_I2C_Read... [09:29:11]Read from MH i2c: E2 0E 00 [09:29:11]MH_I2C_Read... [09:29:11]Read from MH i2c: E2 0E 00 9A 10 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 FE [09:29:12]RAPDU: 09 00 01 34 8C A5 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]req_shift_opened done [09:29:12]requested_item shift.open_date is exist - process it [09:29:12]req_shift_open_date [09:29:12]req_shift_open_date done [09:29:12]produce_requested_data done [09:29:12]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118404,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [09:29:12]process_action_free close_receipt [09:29:12]json_value_free [09:29:12]json_value_free done [09:29:12]process_json_proto returns [09:29:12]Send response to host [09:29:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118404,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [09:29:12]free response buf [09:29:12]execute_script done [09:29:12]execute_script returns [09:29:12]free content buf [09:29:12]Sock 9.Close socket [09:29:12]Sock 9.Thread stoped [09:29:15]OFD Sender: No OFD packet to send [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31: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:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:11]OFD Sender: No OFD packet to send [09:32:16]OFD Sender: No OFD packet to send [09:32:21]OFD Sender: No OFD packet to send [09:32:26]OFD Sender: No OFD packet to send [09:32:31]OFD Sender: No OFD packet to send [09:32:36]OFD Sender: No OFD packet to send [09:32:41]OFD Sender: No OFD packet to send [09:32:46]OFD Sender: No OFD packet to send [09:32:51]OFD Sender: No OFD packet to send [09:32:56]OFD Sender: No OFD packet to send [09:33:01]OFD Sender: No OFD packet to send [09:33:05]accept exits with 7 [09:33:05]New connection [09:33:05]New thread 3066924388 created [09:33:05]Thread 3067067748 joined [09:33:05]Waiting for new connection... [09:33:05] Sock 7.Parse request [09:33:05]Sock 7.Check first char [09:33:05]Sock 7.First char is OK [09:33:05]request: POST /json_proto HTTP/1.0 [09:33:05]Method: POST [09:33:05]URL: /json_proto [09:33:05]Method is POST - this is cgi request [09:33:05]url: /json_proto [09:33:05]query_string will be loaded in cgi processing [09:33:05]execute_cgi json_proto POST (null) [09:33:05]execute_cgi path=json_proto method=POST [09:33:05]POST find Content-Length [09:33:05]Host: 172.17.45.7:8080 [09:33:05]Content-Length: 677 [09:33:05]Content-Type: application/json [09:33:05] [09:33:05]POST finish read [09:33:05]Found Content-Length = 677 [09:33:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:05]execute_script... [09:33:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:05]POST & json_proto [09:33:05]process_json_proto [09:33:05]json parsed OK: [09:33:05]protocol is kg_v1.0 [09:33:05]action value=close_receipt [09:33:05]process_action close_receipt [09:33:05]cmd_close_receipt [09:33:05]MH_GetDate [09:33:05]Write to MH i2c: F0 00 00 9B 10 9A [09:33:05]Write i2c OK [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: F0 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: F0 09 00 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: F0 09 00 9B 10 00 53 10 A6 66 90 0F 3E 66 55 [09:33:05]GetLastDocTimeStamp 1722158949 [09:33:05]current date 1722159187 [09:33:05]FM_GetShiftState [09:33:05]SAM_PROTO_GetShiftState [09:33:05]wFMCommunicate request_size=4 [09:33:05]MH_SAM_APDU [09:33:05]CAPDU: 80 13 01 00 [09:33:05]Write to MH i2c: E2 08 00 9C 10 80 13 01 00 00 00 00 00 29 [09:33:05]Write i2c OK [09:33:05]MH_I2C_Read... [09:33:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:05]Read from MH i2c: E2 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 0E 00 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 0E 00 9C 10 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 00 [09:33:05]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:33:05]wFMCommunicate OK [09:33:05]SAM_PROTO_GetShiftState done [09:33:05]FM_GetShiftState done [09:33:05]opened in 1722125364 [09:33:05]opened+sec_in_day 1722211764 [09:33:05]quantity*price = 25018 [09:33:05]sum+1 = 25019 [09:33:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 74 28.07.2024 09:33 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118405 ФПД: 177385742079467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T093307&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118405&fm=177385742079467&tin=02508201610067®Number=0000000000092660&sum=25000 [09:33:06]StoreToDocumentArchive [09:33:06]shift 433 fd 118405 [09:33:06]save to /storage/0433/doc_00118405 [09:33:06]save last doc name /storage/0433/doc_00118405 to /storage/kkm_last_doc_name [09:33:06]save OK [09:33:06]Clear old archive folders... [09:33:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:33:06]tlvbuf is 0012C5F0 [09:33:06]SAM_PROTO_ClearQueue [09:33:06]wFMCommunicate request_size=4 [09:33:06]MH_SAM_APDU [09:33:06]CAPDU: 80 09 00 00 [09:33:06]Write to MH i2c: E2 08 00 A9 10 80 09 00 00 00 00 00 00 2B [09:33:06]Write i2c OK [09:33:06]MH_I2C_Read... [09:33:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:06]Read from MH i2c: E2 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: E2 03 00 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: E2 03 00 A9 10 00 90 00 2D [09:33:06]RAPDU: 90 00 [09:33:06]wFMCommunicate OK [09:33:06]SAM_PROTO_ClearQueue done [09:33:06]KKMCreateOFDPacket [09:33:06]OFDProtocolAddRootSTLVToBuf [09:33:06]FM_MakeSignedData [09:33:06]FM_MakeSignedData [09:33:06]SAM_PROTO_SignData [09:33:06]wFMCommunicate request_size=4 [09:33:06]MH_SAM_APDU [09:33:06]CAPDU: 80 0D 01 02 [09:33:06]Write to MH i2c: E2 08 00 AA 10 80 0D 01 02 00 00 00 00 33 [09:33:06]Write i2c OK [09:33:06]MH_I2C_Read... [09:33:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:06]Read from MH i2c: E2 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: E2 03 00 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: E2 03 00 AA 10 00 90 00 2E [09:33:06]RAPDU: 90 00 [09:33:06]wFMCommunicate OK [09:33:06]wFMCommunicate request_size=255 [09:33:06]MH_SAM_APDU [09:33:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 53 10 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 85 CE 01 00 35 04 06 00 A1 [09:33:06]Write to MH i2c: E2 02 01 AB 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 34 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 53 10 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 85 CE 01 00 35 04 06 00 A1 00 00 25 [09:33:06]Write i2c OK [09:33:06]MH_I2C_Read... [09:33:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:06]Read from MH i2c: E2 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: E2 03 00 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: E2 03 00 AB 10 00 90 00 2F [09:33:06]RAPDU: 90 00 [09:33:06]wFMCommunicate OK [09:33:06]wFMCommunicate request_size=10 [09:33:06]MH_SAM_APDU [09:33:06]CAPDU: 80 0D 02 02 05 54 D6 25 15 EB [09:33:06]Write to MH i2c: E2 0D 00 AC 10 80 0D 02 02 05 00 54 D6 25 15 EB 00 00 8F [09:33:06]Write i2c OK [09:33:06]MH_I2C_Read... [09:33:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:06]Read from MH i2c: E2 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: E2 03 00 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: E2 03 00 AC 10 00 90 00 30 [09:33:06]RAPDU: 90 00 [09:33:06]wFMCommunicate OK [09:33:06]wFMCommunicate request_size=4 [09:33:06]MH_SAM_APDU [09:33:06]CAPDU: 80 0D 03 02 [09:33:06]Write to MH i2c: E2 08 00 AD 10 80 0D 03 02 00 00 00 00 38 [09:33:06]Write i2c OK [09:33:06]MH_I2C_Read... [09:33:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:06]Read from MH i2c: E2 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: E2 0B 00 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: E2 0B 00 AD 10 00 37 34 FC E0 23 C6 1C 28 90 00 AD [09:33:06]RAPDU: 37 34 FC E0 23 C6 1C 28 90 00 [09:33:06]wFMCommunicate OK [09:33:06]SAM_PROTO_SignData done [09:33:06]FM_MakeSignedData done [09:33:06]CreateOFDProtocolMessage [09:33:06]wFMCommunicate request_size=4 [09:33:06]MH_SAM_APDU [09:33:06]CAPDU: 80 11 00 00 [09:33:06]Write to MH i2c: E2 08 00 AE 10 80 11 00 00 00 00 00 00 38 [09:33:06]Write i2c OK [09:33:06]MH_I2C_Read... [09:33:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:06]Read from MH i2c: E2 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: E2 17 00 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: E2 17 00 AE 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 93 [09:33:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:33:06]wFMCommunicate OK [09:33:06]CreateOFDProtocolMessage done [09:33:06]OFDSenderStorePacket 118405 [09:33:06]StoreOFDPacket docnum=118405 [09:33:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4C E1 07 01 0E 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 34 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 53 10 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 85 CE 01 00 35 04 06 00 A1 54 D6 25 15 EB 37 34 FC E0 23 C6 1C 28 [09:33:06]CheckFolder [09:33:06]dirname=/storage/ofd_packets [09:33:06]CheckFolder done [09:33:06]ProducePacketName [09:33:06]name=ofd_packets/00118405 [09:33:06]NVStorageSaveData ofd_packets/00118405 [09:33:06]File name is /storage/ofd_packets/00118405 [09:33:06]Write 301 bytes [09:33:06]NVStorageSaveData done [09:33:06]OFDSenderStorePacket done [09:33:06]KKMCreateOFDPacket done [09:33:06]NVStorageSaveData kkm_last_timestamp [09:33:06]File name is /storage/kkm_last_timestamp [09:33:06]Write 4 bytes [09:33:06]NVStorageSaveData done [09:33:06]ExternCall_PrintAddStr [09:33:06]wPrintStart [09:33:06]Write to MH i2c: 01 00 00 AF 10 BF [09:33:06]Write i2c OK [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: 01 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: 01 07 00 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: 01 07 00 AF 10 00 00 00 00 00 FF 0F D4 [09:33:06]RasterBufferAndPrint [09:33:06]line Счет N : (1)949277 [09:33:06]line ИНН: 02508201610067 [09:33:06]line Контрольно-Кассовый Чек [09:33:06]line ПРОДАЖА [09:33:06]line ТРК (МРК, ГНК) : 41 [09:33:06]line Товар: 2710124130 [09:33:06]line Аи-92-К-4 [09:33:06]line 3.690 * 67.80 [09:33:06]line = 250.18 [09:33:06]line НДС 12% НСП 1% [09:33:06]line > о реализуемом товаре [09:33:06]line ОКРУГЛЕНИЕ: -0.18 [09:33:06]line ИТОГО: 250.00 [09:33:06]line Внесено: 250.00 [09:33:06]line СДАЧА: 0.00 [09:33:06]line НСП 1% : 2.21 [09:33:06]line НДС 12% : 26.57 [09:33:06]line Наличными: 250.00 [09:33:06]line Безнал.: 0.00 [09:33:06]line Место: АЗС № 134 "Партнер Нефть" [09:33:06]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:33:06]line СНО: Общий режим [09:33:06]line Чек 74 28.07.2024 09:33 [09:33:06]line Смена: 433 ФФД: 1.0 [09:33:06]line ЗНМ: 0300000044 [09:33:06]line РНМ: 0000000000092660 [09:33:06]line Версия ККМ: 001 [09:33:06]line ФМ: 0000000000874939 [09:33:06]line ФД: 118405 [09:33:06]line ФПД: 177385742079467 [09:33:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T093307&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118405&fm=177385742079467&tin=02508201610067®Number=0000000000092660&sum=25000 [09:33:06]written 0, free lines is 4095 [09:33:06]OFD Sender: Processing packet 118405 [packets to send 86, broken 85] [09:33:06]ProducePacketName [09:33:06]name=ofd_packets/00118405 [09:33:06]OFD Sender: To server: pG, [09:33:06]CommunicateWithHost lk.salyk.kg:30040 [09:33:06]ConnectInit lk.salyk.kg [09:33:06]Connected sock=10 [09:33:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4C E1 07 01 0E 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 34 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 53 10 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 85 CE 01 00 35 04 06 00 A1 54 D6 25 15 EB 37 34 FC E0 23 C6 1C 28 [09:33:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D6 96 47 00 D8 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 85 CE 01 00 F4 03 04 00 E3 BD A5 66 B6 04 01 00 00 F3 C8 03 C3 35 E9 2B 5C [09:33:07]CommunicateWithHost err = 0 [09:33:07]CheckOFDResponse [09:33:07]1017 (14) - 77093643461234 [09:33:07]1041 (16) - 0000000000874939 [09:33:07]1040 (4) - 118405 [09:33:07]1012 (4) - 28.07.2024 03:41 [09:33:07]1206 (1) - 0 [09:33:07]OFD Sender: Remove packet 118405 [09:33:07]ProducePacketName [09:33:07]name=ofd_packets/00118405 [09:33:07]NVStorageDeleteData [09:33:07]Write to MH i2c: 01 00 00 D9 10 E9 [09:33:07]Write i2c OK [09:33:07]MH_I2C_Read... [09:33:07]Read from MH i2c: 01 [09:33:07]MH_I2C_Read... [09:33:07]Read from MH i2c: 01 07 00 [09:33:07]MH_I2C_Read... [09:33:07]Read from MH i2c: 01 07 00 D9 10 00 00 00 00 00 EB 0C E7 [09:33:07]RasterBufferAndPrint [09:33:07]line [09:33:07]line [09:33:07]line [09:33:07]line [09:33:07]line [09:33:07]written 0, free lines is 3316 [09:33:07]MH_Cut [09:33:07]Write to MH i2c: D1 01 00 E0 10 01 C2 [09:33:07]Write i2c OK [09:33:07]MH_I2C_Read... [09:33:07]Read from MH i2c: D1 [09:33:07]MH_I2C_Read... [09:33:07]Read from MH i2c: D1 01 00 [09:33:07]MH_I2C_Read... [09:33:07]Read from MH i2c: D1 01 00 E0 10 00 C1 [09:33:07]Write to MH i2c: 01 00 00 E1 10 F1 [09:33:07]Write i2c OK [09:33:07]MH_I2C_Read... [09:33:07]OFD Sender: No OFD packet to send [09:33:07]*** Cut start [09:33:07]*** Partial cut [09:33:07]*** CUTSNS_PIN = 1 [09:33:07]*** CUTSNS_PIN = 0 [09:33:08]*** Brake cut motor [09:33:08]Read from MH i2c: 01 [09:33:08]MH_I2C_Read... [09:33:08]*** Stop cut motor [09:33:08]*** Cut end [09:33:08]Read from MH i2c: 01 07 00 [09:33:08]MH_I2C_Read... [09:33:08]Read from MH i2c: 01 07 00 E1 10 00 00 00 00 00 FF 0F 06 [09:33:08]process_action close_receipt done [09:33:08]requested_data is exist [09:33:08]produce_requested_data [09:33:08]requested_item fm.sn is exist - process it [09:33:08]wFMCommunicate request_size=4 [09:33:08]MH_SAM_APDU [09:33:08]CAPDU: 80 11 00 00 [09:33:08]Write to MH i2c: E2 08 00 E2 10 80 11 00 00 00 00 00 00 6C [09:33:08]Write i2c OK [09:33:08]MH_I2C_Read... [09:33:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:08]Read from MH i2c: E2 [09:33:08]MH_I2C_Read... [09:33:08]Read from MH i2c: E2 17 00 [09:33:08]MH_I2C_Read... [09:33:08]Read from MH i2c: E2 17 00 E2 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C7 [09:33:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:33:08]wFMCommunicate OK [09:33:08]requested_item fd.num is exist - process it [09:33:08]SAM_PROTO_GetFieldsCounters [09:33:08]wFMCommunicate request_size=4 [09:33:08]MH_SAM_APDU [09:33:08]CAPDU: 80 13 00 00 [09:33:08]Write to MH i2c: E2 08 00 E3 10 80 13 00 00 00 00 00 00 6F [09:33:08]Write i2c OK [09:33:08]MH_I2C_Read... [09:33:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:08]Read from MH i2c: E2 [09:33:08]MH_I2C_Read... [09:33:08]Read from MH i2c: E2 62 00 [09:33:08]MH_I2C_Read... [09:33:08]Read from MH i2c: E2 62 00 E3 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 85 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [09:33:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 85 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:08]wFMCommunicate OK [09:33:08]SAM_PROTO_GetFieldsCounters done [09:33:08]requested_item shift.num is exist - process it [09:33:08]requested_item shift.opened is exist - process it [09:33:08]req_shift_opened [09:33:08]FM_GetShiftState [09:33:08]SAM_PROTO_GetShiftState [09:33:08]wFMCommunicate request_size=4 [09:33:08]MH_SAM_APDU [09:33:08]CAPDU: 80 13 01 00 [09:33:08]Write to MH i2c: E2 08 00 E4 10 80 13 01 00 00 00 00 00 71 [09:33:08]Write i2c OK [09:33:08]MH_I2C_Read... [09:33:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:08]Read from MH i2c: E2 [09:33:08]MH_I2C_Read... [09:33:08]Read from MH i2c: E2 0E 00 [09:33:08]MH_I2C_Read... [09:33:08]Read from MH i2c: E2 0E 00 E4 10 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 48 [09:33:08]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:33:08]wFMCommunicate OK [09:33:08]SAM_PROTO_GetShiftState done [09:33:08]FM_GetShiftState done [09:33:08]req_shift_opened done [09:33:08]requested_item shift.open_date is exist - process it [09:33:08]req_shift_open_date [09:33:08]req_shift_open_date done [09:33:08]produce_requested_data done [09:33:08]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118405,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [09:33:08]process_action_free close_receipt [09:33:08]json_value_free [09:33:08]json_value_free done [09:33:08]process_json_proto returns [09:33:08]Send response to host [09:33:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118405,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [09:33:08]free response buf [09:33:08]execute_script done [09:33:08]execute_script returns [09:33:08]free content buf [09:33:08]Sock 7.Close socket [09:33:08]Sock 7.Thread stoped [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:10]accept exits with 9 [09:35:10]New connection [09:35:10]New thread 3067067748 created [09:35:10]Thread 3066924388 joined [09:35:10]Waiting for new connection... [09:35:10] Sock 9.Parse request [09:35:10]Sock 9.Check first char [09:35:10]Sock 9.First char is OK [09:35:10]request: POST /json_proto HTTP/1.0 [09:35:10]Method: POST [09:35:10]URL: /json_proto [09:35:10]Method is POST - this is cgi request [09:35:10]url: /json_proto [09:35:10]query_string will be loaded in cgi processing [09:35:10]execute_cgi json_proto POST (null) [09:35:10]execute_cgi path=json_proto method=POST [09:35:10]POST find Content-Length [09:35:10]Host: 172.17.45.7:8080 [09:35:10]Content-Length: 819 [09:35:10]Content-Type: application/json [09:35:10] [09:35:10]POST finish read [09:35:10]Found Content-Length = 819 [09:35:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:10]execute_script... [09:35: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)949278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:10]POST & json_proto [09:35:10]process_json_proto [09:35:10]json parsed OK: [09:35:10]protocol is kg_v1.0 [09:35:10]action value=close_receipt [09:35:10]process_action close_receipt [09:35:10]cmd_close_receipt [09:35:10]MH_GetDate [09:35:10]Write to MH i2c: F0 00 00 E5 10 E4 [09:35:10]Write i2c OK [09:35:10]MH_I2C_Read... [09:35:10]Read from MH i2c: F0 [09:35:10]MH_I2C_Read... [09:35:10]Read from MH i2c: F0 09 00 [09:35:10]MH_I2C_Read... [09:35:10]Read from MH i2c: F0 09 00 E5 10 00 D0 10 A6 66 90 0F 3E 66 1C [09:35:10]GetLastDocTimeStamp 1722159187 [09:35:10]current date 1722159312 [09:35:10]FM_GetShiftState [09:35:10]SAM_PROTO_GetShiftState [09:35:10]wFMCommunicate request_size=4 [09:35:10]MH_SAM_APDU [09:35:10]CAPDU: 80 13 01 00 [09:35:10]Write to MH i2c: E2 08 00 E6 10 80 13 01 00 00 00 00 00 73 [09:35:10]Write i2c OK [09:35:10]MH_I2C_Read... [09:35:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:10]Read from MH i2c: E2 [09:35:10]MH_I2C_Read... [09:35:10]Read from MH i2c: E2 0E 00 [09:35:10]MH_I2C_Read... [09:35:10]Read from MH i2c: E2 0E 00 E6 10 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 4A [09:35:10]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:35:10]wFMCommunicate OK [09:35:10]SAM_PROTO_GetShiftState done [09:35:10]FM_GetShiftState done [09:35:10]opened in 1722125364 [09:35:10]opened+sec_in_day 1722211764 [09:35:10]quantity*price = 200025 [09:35:10]sum+1 = 200026 [09:35:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 75 28.07.2024 09:35 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118406 ФПД: 165098070616225 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T093512&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118406&fm=165098070616225&tin=02508201610067®Number=0000000000092660&sum=200000 [09:35:11]StoreToDocumentArchive [09:35:11]shift 433 fd 118406 [09:35:11]save to /storage/0433/doc_00118406 [09:35:11]save last doc name /storage/0433/doc_00118406 to /storage/kkm_last_doc_name [09:35:11]save OK [09:35:11]Clear old archive folders... [09:35:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:35:11]tlvbuf is 00168C20 [09:35:11]SAM_PROTO_ClearQueue [09:35:11]wFMCommunicate request_size=4 [09:35:11]MH_SAM_APDU [09:35:11]CAPDU: 80 09 00 00 [09:35:11]Write to MH i2c: E2 08 00 F3 10 80 09 00 00 00 00 00 00 75 [09:35:11]Write i2c OK [09:35:11]MH_I2C_Read... [09:35:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:11]Read from MH i2c: E2 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 03 00 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 03 00 F3 10 00 90 00 77 [09:35:11]RAPDU: 90 00 [09:35:11]wFMCommunicate OK [09:35:11]SAM_PROTO_ClearQueue done [09:35:11]KKMCreateOFDPacket [09:35:11]OFDProtocolAddRootSTLVToBuf [09:35:11]FM_MakeSignedData [09:35:11]FM_MakeSignedData [09:35:11]SAM_PROTO_SignData [09:35:11]wFMCommunicate request_size=4 [09:35:11]MH_SAM_APDU [09:35:11]CAPDU: 80 0D 01 02 [09:35:11]Write to MH i2c: E2 08 00 F4 10 80 0D 01 02 00 00 00 00 7D [09:35:11]Write i2c OK [09:35:11]MH_I2C_Read... [09:35:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:11]Read from MH i2c: E2 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 03 00 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 03 00 F4 10 00 90 00 78 [09:35:11]RAPDU: 90 00 [09:35:11]wFMCommunicate OK [09:35:11]wFMCommunicate request_size=255 [09:35:11]MH_SAM_APDU [09:35:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 D0 10 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 86 CE 01 00 35 04 06 00 96 27 E3 DA [09:35:11]Write to MH i2c: E2 02 01 F5 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 D0 10 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 86 CE 01 00 35 04 06 00 96 27 E3 DA 00 00 B3 [09:35:11]Write i2c OK [09:35:11]MH_I2C_Read... [09:35:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:11]Read from MH i2c: E2 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 03 00 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 03 00 F5 10 00 90 00 79 [09:35:11]RAPDU: 90 00 [09:35:11]wFMCommunicate OK [09:35:11]wFMCommunicate request_size=7 [09:35:11]MH_SAM_APDU [09:35:11]CAPDU: 80 0D 02 02 02 28 A1 [09:35:11]Write to MH i2c: E2 0A 00 F6 10 80 0D 02 02 02 00 28 A1 00 00 4D [09:35:11]Write i2c OK [09:35:11]MH_I2C_Read... [09:35:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:11]Read from MH i2c: E2 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 03 00 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 03 00 F6 10 00 90 00 7A [09:35:11]RAPDU: 90 00 [09:35:11]wFMCommunicate OK [09:35:11]wFMCommunicate request_size=4 [09:35:11]MH_SAM_APDU [09:35:11]CAPDU: 80 0D 03 02 [09:35:11]Write to MH i2c: E2 08 00 F7 10 80 0D 03 02 00 00 00 00 82 [09:35:11]Write i2c OK [09:35:11]MH_I2C_Read... [09:35:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:11]Read from MH i2c: E2 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 0B 00 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 0B 00 F7 10 00 C2 AB C6 C5 CF 62 D6 49 90 00 CB [09:35:11]RAPDU: C2 AB C6 C5 CF 62 D6 49 90 00 [09:35:11]wFMCommunicate OK [09:35:11]SAM_PROTO_SignData done [09:35:11]FM_MakeSignedData done [09:35:11]CreateOFDProtocolMessage [09:35:11]wFMCommunicate request_size=4 [09:35:11]MH_SAM_APDU [09:35:11]CAPDU: 80 11 00 00 [09:35:11]Write to MH i2c: E2 08 00 F8 10 80 11 00 00 00 00 00 00 82 [09:35:11]Write i2c OK [09:35:11]MH_I2C_Read... [09:35:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:11]Read from MH i2c: E2 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 17 00 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 17 00 F8 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DD [09:35:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:35:11]wFMCommunicate OK [09:35:11]CreateOFDProtocolMessage done [09:35:11]OFDSenderStorePacket 118406 [09:35:11]StoreOFDPacket docnum=118406 [09:35:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 EF 71 04 01 39 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 D0 10 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 86 CE 01 00 35 04 06 00 96 27 E3 DA 28 A1 C2 AB C6 C5 CF 62 D6 49 [09:35:11]CheckFolder [09:35:11]dirname=/storage/ofd_packets [09:35:11]CheckFolder done [09:35:11]ProducePacketName [09:35:11]name=ofd_packets/00118406 [09:35:11]NVStorageSaveData ofd_packets/00118406 [09:35:11]File name is /storage/ofd_packets/00118406 [09:35:11]Write 298 bytes [09:35:11]NVStorageSaveData done [09:35:11]OFDSenderStorePacket done [09:35:11]KKMCreateOFDPacket done [09:35:11]NVStorageSaveData kkm_last_timestamp [09:35:11]File name is /storage/kkm_last_timestamp [09:35:11]Write 4 bytes [09:35:11]NVStorageSaveData done [09:35:11]ExternCall_PrintAddStr [09:35:11]wPrintStart [09:35:11]Write to MH i2c: 01 00 00 F9 10 09 [09:35:11]Write i2c OK [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: 01 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: 01 07 00 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: 01 07 00 F9 10 00 00 00 00 00 FF 0F 1E [09:35:11]RasterBufferAndPrint [09:35:11]line Счет N : (1)949278 [09:35:11]line ИНН: 02508201610067 [09:35:11]line Контрольно-Кассовый Чек [09:35:11]line ПРОДАЖА [09:35:11]line ТРК (МРК, ГНК) : 11 [09:35:11]line Товар: 2710194800 [09:35:11]line ДТ-К-5 [09:35:11]line 26.250 * 76.20 [09:35:11]line = 2000.25 [09:35:11]line НДС 12% НСП 1% [09:35:11]line > о реализуемом товаре [09:35:11]line ОКРУГЛЕНИЕ: -0.25 [09:35:11]line ИТОГО: 2000.00 [09:35:11]line НСП 1% : 17.70 [09:35:11]line НДС 12% : 212.42 [09:35:11]line Наличными: 0.00 [09:35:11]line Безнал.: 2000.00 [09:35:11]line Место: АЗС № 134 "Партнер Нефть" [09:35:11]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:35:11]line СНО: Общий режим [09:35:11]line Чек 75 28.07.2024 09:35 [09:35:11]line Смена: 433 ФФД: 1.0 [09:35:11]line ЗНМ: 0300000044 [09:35:11]line РНМ: 0000000000092660 [09:35:11]line Версия ККМ: 001 [09:35:11]line Платежная система: O! деньги [09:35:11]line ФМ: 0000000000874939 [09:35:11]line ФД: 118406 [09:35:11]line ФПД: 165098070616225 [09:35:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T093512&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118406&fm=165098070616225&tin=02508201610067®Number=0000000000092660&sum=200000 [09:35:12]OFD Sender: Processing packet 118406 [packets to send 86, broken 85] [09:35:12]ProducePacketName [09:35:12]name=ofd_packets/00118406 [09:35:12]OFD Sender: To server: pG, [09:35:12]CommunicateWithHost lk.salyk.kg:30040 [09:35:12]ConnectInit lk.salyk.kg [09:35:12]written 0, free lines is 4095 [09:35:12]Connected sock=10 [09:35: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 39 33 39 0C 01 00 00 EF 71 04 01 39 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 D0 10 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 86 CE 01 00 35 04 06 00 96 27 E3 DA 28 A1 C2 AB C6 C5 CF 62 D6 49 [09:35:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 84 49 47 00 A4 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 86 CE 01 00 F4 03 04 00 60 BE A5 66 B6 04 01 00 00 9A 11 60 C7 84 C4 C3 79 [09:35:12]CommunicateWithHost err = 0 [09:35:12]CheckOFDResponse [09:35:12]1017 (14) - 77093643461234 [09:35:12]1041 (16) - 0000000000874939 [09:35:12]1040 (4) - 118406 [09:35:12]1012 (4) - 28.07.2024 03:43 [09:35:12]1206 (1) - 0 [09:35:12]OFD Sender: Remove packet 118406 [09:35:12]ProducePacketName [09:35:12]name=ofd_packets/00118406 [09:35:12]NVStorageDeleteData [09:35:12]Write to MH i2c: 01 00 00 23 11 34 [09:35:12]Write i2c OK [09:35:12]MH_I2C_Read... [09:35:12]Read from MH i2c: 01 [09:35:12]MH_I2C_Read... [09:35:12]Read from MH i2c: 01 07 00 [09:35:12]MH_I2C_Read... [09:35:12]Read from MH i2c: 01 07 00 23 11 00 00 00 00 00 ED 0C 34 [09:35:12]RasterBufferAndPrint [09:35:12]line [09:35:12]line [09:35:12]line [09:35:12]line [09:35:12]line [09:35:12]written 0, free lines is 3315 [09:35:12]MH_Cut [09:35:12]Write to MH i2c: D1 01 00 2A 11 01 0D [09:35:12]Write i2c OK [09:35:12]MH_I2C_Read... [09:35:12]Read from MH i2c: D1 [09:35:12]MH_I2C_Read... [09:35:12]Read from MH i2c: D1 01 00 [09:35:12]MH_I2C_Read... [09:35:12]Read from MH i2c: D1 01 00 2A 11 00 0C [09:35:12]Write to MH i2c: 01 00 00 2B 11 3C [09:35:12]Write i2c OK [09:35:12]MH_I2C_Read... [09:35:12]OFD Sender: No OFD packet to send [09:35:13]*** Cut start [09:35:13]*** Partial cut [09:35:13]*** CUTSNS_PIN = 1 [09:35:13]*** CUTSNS_PIN = 0 [09:35:13]*** Brake cut motor [09:35:13]Read from MH i2c: 01 [09:35:13]MH_I2C_Read... [09:35:13]*** Stop cut motor [09:35:13]*** Cut end [09:35:13]Read from MH i2c: 01 07 00 [09:35:13]MH_I2C_Read... [09:35:13]Read from MH i2c: 01 07 00 2B 11 00 00 00 00 00 FF 0F 51 [09:35:13]process_action close_receipt done [09:35:13]requested_data is exist [09:35:13]produce_requested_data [09:35:13]requested_item fm.sn is exist - process it [09:35:13]wFMCommunicate request_size=4 [09:35:13]MH_SAM_APDU [09:35:13]CAPDU: 80 11 00 00 [09:35:13]Write to MH i2c: E2 08 00 2C 11 80 11 00 00 00 00 00 00 B7 [09:35:13]Write i2c OK [09:35:13]MH_I2C_Read... [09:35:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:13]Read from MH i2c: E2 [09:35:13]MH_I2C_Read... [09:35:13]Read from MH i2c: E2 17 00 [09:35:13]MH_I2C_Read... [09:35:13]Read from MH i2c: E2 17 00 2C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 12 [09:35:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:35:13]wFMCommunicate OK [09:35:13]requested_item fd.num is exist - process it [09:35:13]SAM_PROTO_GetFieldsCounters [09:35:13]wFMCommunicate request_size=4 [09:35:13]MH_SAM_APDU [09:35:13]CAPDU: 80 13 00 00 [09:35:13]Write to MH i2c: E2 08 00 2D 11 80 13 00 00 00 00 00 00 BA [09:35:13]Write i2c OK [09:35:13]MH_I2C_Read... [09:35:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:14]Read from MH i2c: E2 [09:35:14]MH_I2C_Read... [09:35:14]Read from MH i2c: E2 62 00 [09:35:14]MH_I2C_Read... [09:35:14]Read from MH i2c: E2 62 00 2D 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 86 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [09:35:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 86 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:35:14]wFMCommunicate OK [09:35:14]SAM_PROTO_GetFieldsCounters done [09:35:14]requested_item shift.num is exist - process it [09:35:14]requested_item shift.opened is exist - process it [09:35:14]req_shift_opened [09:35:14]FM_GetShiftState [09:35:14]SAM_PROTO_GetShiftState [09:35:14]wFMCommunicate request_size=4 [09:35:14]MH_SAM_APDU [09:35:14]CAPDU: 80 13 01 00 [09:35:14]Write to MH i2c: E2 08 00 2E 11 80 13 01 00 00 00 00 00 BC [09:35:14]Write i2c OK [09:35:14]MH_I2C_Read... [09:35:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:14]Read from MH i2c: E2 [09:35:14]MH_I2C_Read... [09:35:14]Read from MH i2c: E2 0E 00 [09:35:14]MH_I2C_Read... [09:35:14]Read from MH i2c: E2 0E 00 2E 11 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 93 [09:35:14]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:35:14]wFMCommunicate OK [09:35:14]SAM_PROTO_GetShiftState done [09:35:14]FM_GetShiftState done [09:35:14]req_shift_opened done [09:35:14]requested_item shift.open_date is exist - process it [09:35:14]req_shift_open_date [09:35:14]req_shift_open_date done [09:35:14]produce_requested_data done [09:35:14]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118406,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [09:35:14]process_action_free close_receipt [09:35:14]json_value_free [09:35:14]json_value_free done [09:35:14]process_json_proto returns [09:35:14]Send response to host [09:35:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118406,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [09:35:14]free response buf [09:35:14]execute_script done [09:35:14]execute_script returns [09:35:14]free content buf [09:35:14]Sock 9.Close socket [09:35:14]Sock 9.Thread stoped [09:35:18]OFD Sender: No OFD packet to send [09:35:23]OFD Sender: No OFD packet to send [09:35:28]OFD Sender: No OFD packet to send [09:35:33]OFD Sender: No OFD packet to send [09:35:38]OFD Sender: No OFD packet to send [09:35:43]OFD Sender: No OFD packet to send [09:35:48]OFD Sender: No OFD packet to send [09:35:53]OFD Sender: No OFD packet to send [09:35:58]OFD Sender: No OFD packet to send [09:36:03]OFD Sender: No OFD packet to send [09:36:08]OFD Sender: No OFD packet to send [09:36:13]OFD Sender: No OFD packet to send [09:36:18]OFD Sender: No OFD packet to send [09:36:23]OFD Sender: No OFD packet to send [09:36:28]OFD Sender: No OFD packet to send [09:36:33]OFD Sender: No OFD packet to send [09:36:38]OFD Sender: No OFD packet to send [09:36:43]OFD Sender: No OFD packet to send [09:36:48]OFD Sender: No OFD packet to send [09:36:53]OFD Sender: No OFD packet to send [09:36:58]OFD Sender: No OFD packet to send [09:37:03]OFD Sender: No OFD packet to send [09:37:08]OFD Sender: No OFD packet to send [09:37:13]OFD Sender: No OFD packet to send [09:37:18]OFD Sender: No OFD packet to send [09:37:23]OFD Sender: No OFD packet to send [09:37:28]OFD Sender: No OFD packet to send [09:37:33]OFD Sender: No OFD packet to send [09:37:38]OFD Sender: No OFD packet to send [09:37:43]OFD Sender: No OFD packet to send [09:37:48]OFD Sender: No OFD packet to send [09:37:53]OFD Sender: No OFD packet to send [09:37:58]OFD Sender: No OFD packet to send [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:23]OFD Sender: No OFD packet to send [09:38:28]OFD Sender: No OFD packet to send [09:38:33]OFD Sender: No OFD packet to send [09:38:38]OFD Sender: No OFD packet to send [09:38:43]OFD Sender: No OFD packet to send [09:38:48]OFD Sender: No OFD packet to send [09:38:53]OFD Sender: No OFD packet to send [09:38:58]OFD Sender: No OFD packet to send [09:39:03]OFD Sender: No OFD packet to send [09:39:08]OFD Sender: No OFD packet to send [09:39:13]OFD Sender: No OFD packet to send [09:39:18]OFD Sender: No OFD packet to send [09:39:23]OFD Sender: No OFD packet to send [09:39:28]OFD Sender: No OFD packet to send [09:39:33]OFD Sender: No OFD packet to send [09:39:38]OFD Sender: No OFD packet to send [09:39:43]OFD Sender: No OFD packet to send [09:39:48]OFD Sender: No OFD packet to send [09:39:53]OFD Sender: No OFD packet to send [09:39:58]OFD Sender: No OFD packet to send [09:40:03]OFD Sender: No OFD packet to send [09:40:08]OFD Sender: No OFD packet to send [09:40:13]OFD Sender: No OFD packet to send [09:40:18]OFD Sender: No OFD packet to send [09:40:23]OFD Sender: No OFD packet to send [09:40:28]OFD Sender: No OFD packet to send [09:40:33]OFD Sender: No OFD packet to send [09:40:38]OFD Sender: No OFD packet to send [09:40:43]OFD Sender: No OFD packet to send [09:40:48]OFD Sender: No OFD packet to send [09:40:53]OFD Sender: No OFD packet to send [09:40:58]OFD Sender: No OFD packet to send [09:41:03]OFD Sender: No OFD packet to send [09:41:08]OFD Sender: No OFD packet to send [09:41:13]OFD Sender: No OFD packet to send [09:41:18]OFD Sender: No OFD packet to send [09:41:23]OFD Sender: No OFD packet to send [09:41:23]accept exits with 7 [09:41:23]New connection [09:41:23]New thread 3066924388 created [09:41:23]Thread 3067067748 joined [09:41:23]Waiting for new connection... [09:41:23] Sock 7.Parse request [09:41:23]Sock 7.Check first char [09:41:23]Sock 7.First char is OK [09:41:23]request: POST /json_proto HTTP/1.0 [09:41:23]Method: POST [09:41:23]URL: /json_proto [09:41:23]Method is POST - this is cgi request [09:41:23]url: /json_proto [09:41:23]query_string will be loaded in cgi processing [09:41:23]execute_cgi json_proto POST (null) [09:41:23]execute_cgi path=json_proto method=POST [09:41:23]POST find Content-Length [09:41:23]Host: 172.17.45.7:8080 [09:41:23]Content-Length: 679 [09:41:23]Content-Type: application/json [09:41:23] [09:41:23]POST finish read [09:41:23]Found Content-Length = 679 [09:41:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:23]execute_script... [09: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)949280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:23]POST & json_proto [09:41:23]process_json_proto [09:41:23]json parsed OK: [09:41:23]protocol is kg_v1.0 [09:41:23]action value=close_receipt [09:41:23]process_action close_receipt [09:41:23]cmd_close_receipt [09:41:23]MH_GetDate [09:41:23]Write to MH i2c: F0 00 00 2F 11 2F [09:41:23]Write i2c OK [09:41:23]MH_I2C_Read... [09:41:23]Read from MH i2c: F0 [09:41:23]MH_I2C_Read... [09:41:23]Read from MH i2c: F0 09 00 [09:41:23]MH_I2C_Read... [09:41:23]Read from MH i2c: F0 09 00 2F 11 00 45 12 A6 66 90 0F 3E 66 DE [09:41:23]GetLastDocTimeStamp 1722159312 [09:41:23]current date 1722159685 [09:41:23]FM_GetShiftState [09:41:23]SAM_PROTO_GetShiftState [09:41:23]wFMCommunicate request_size=4 [09:41:23]MH_SAM_APDU [09:41:23]CAPDU: 80 13 01 00 [09:41:23]Write to MH i2c: E2 08 00 30 11 80 13 01 00 00 00 00 00 BE [09:41:23]Write i2c OK [09:41:23]MH_I2C_Read... [09:41:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:23]Read from MH i2c: E2 [09:41:23]MH_I2C_Read... [09:41:23]Read from MH i2c: E2 0E 00 [09:41:23]MH_I2C_Read... [09:41:23]Read from MH i2c: E2 0E 00 30 11 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 95 [09:41:23]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:41:23]wFMCommunicate OK [09:41:23]SAM_PROTO_GetShiftState done [09:41:23]FM_GetShiftState done [09:41:23]opened in 1722125364 [09:41:23]opened+sec_in_day 1722211764 [09:41:23]quantity*price = 100050 [09:41:23]sum+1 = 100052 [09:41:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 76 28.07.2024 09:41 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118407 ФПД: 185534982607842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T094125&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118407&fm=185534982607842&tin=02508201610067®Number=0000000000092660&sum=100000 [09:41:24]StoreToDocumentArchive [09:41:24]shift 433 fd 118407 [09:41:24]save to /storage/0433/doc_00118407 [09:41:24]save last doc name /storage/0433/doc_00118407 to /storage/kkm_last_doc_name [09:41:24]save OK [09:41:24]Clear old archive folders... [09:41:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:41:24]tlvbuf is 0010FDF0 [09:41:24]SAM_PROTO_ClearQueue [09:41:24]wFMCommunicate request_size=4 [09:41:24]MH_SAM_APDU [09:41:24]CAPDU: 80 09 00 00 [09:41:24]Write to MH i2c: E2 08 00 3D 11 80 09 00 00 00 00 00 00 C0 [09:41:24]Write i2c OK [09:41:24]MH_I2C_Read... [09:41:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:24]Read from MH i2c: E2 [09:41:24]MH_I2C_Read... [09:41:24]Read from MH i2c: E2 03 00 [09:41:24]MH_I2C_Read... [09:41:24]Read from MH i2c: E2 03 00 3D 11 00 90 00 C2 [09:41:24]RAPDU: 90 00 [09:41:24]wFMCommunicate OK [09:41:24]SAM_PROTO_ClearQueue done [09:41:24]KKMCreateOFDPacket [09:41:24]OFDProtocolAddRootSTLVToBuf [09:41:24]FM_MakeSignedData [09:41:24]FM_MakeSignedData [09:41:24]SAM_PROTO_SignData [09:41:24]wFMCommunicate request_size=4 [09:41:24]MH_SAM_APDU [09:41:24]CAPDU: 80 0D 01 02 [09:41:24]Write to MH i2c: E2 08 00 3E 11 80 0D 01 02 00 00 00 00 C8 [09:41:24]Write i2c OK [09:41:24]MH_I2C_Read... [09:41:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:24]Read from MH i2c: E2 [09:41:24]MH_I2C_Read... [09:41:24]Read from MH i2c: E2 03 00 [09:41:24]MH_I2C_Read... [09:41:24]Read from MH i2c: E2 03 00 3E 11 00 90 00 C3 [09:41:24]RAPDU: 90 00 [09:41:24]wFMCommunicate OK [09:41:24]wFMCommunicate request_size=255 [09:41:24]MH_SAM_APDU [09:41:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 45 12 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 87 CE 01 00 35 04 06 00 A8 BE 3A BB [09:41:24]Write to MH i2c: E2 02 01 3F 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 45 12 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 87 CE 01 00 35 04 06 00 A8 BE 3A BB 00 00 6A [09:41:24]Write i2c OK [09:41:24]MH_I2C_Read... [09:41:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:25]Read from MH i2c: E2 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 03 00 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 03 00 3F 11 00 90 00 C4 [09:41:25]RAPDU: 90 00 [09:41:25]wFMCommunicate OK [09:41:25]wFMCommunicate request_size=7 [09:41:25]MH_SAM_APDU [09:41:25]CAPDU: 80 0D 02 02 02 53 E2 [09:41:25]Write to MH i2c: E2 0A 00 40 11 80 0D 02 02 02 00 53 E2 00 00 04 [09:41:25]Write i2c OK [09:41:25]MH_I2C_Read... [09:41:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:25]Read from MH i2c: E2 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 03 00 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 03 00 40 11 00 90 00 C5 [09:41:25]RAPDU: 90 00 [09:41:25]wFMCommunicate OK [09:41:25]wFMCommunicate request_size=4 [09:41:25]MH_SAM_APDU [09:41:25]CAPDU: 80 0D 03 02 [09:41:25]Write to MH i2c: E2 08 00 41 11 80 0D 03 02 00 00 00 00 CD [09:41:25]Write i2c OK [09:41:25]MH_I2C_Read... [09:41:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:25]Read from MH i2c: E2 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 0B 00 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 0B 00 41 11 00 F7 F3 05 0E DF 90 D8 6B 90 00 7D [09:41:25]RAPDU: F7 F3 05 0E DF 90 D8 6B 90 00 [09:41:25]wFMCommunicate OK [09:41:25]SAM_PROTO_SignData done [09:41:25]FM_MakeSignedData done [09:41:25]CreateOFDProtocolMessage [09:41:25]wFMCommunicate request_size=4 [09:41:25]MH_SAM_APDU [09:41:25]CAPDU: 80 11 00 00 [09:41:25]Write to MH i2c: E2 08 00 42 11 80 11 00 00 00 00 00 00 CD [09:41:25]Write i2c OK [09:41:25]MH_I2C_Read... [09:41:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:25]Read from MH i2c: E2 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 17 00 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 17 00 42 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 28 [09:41:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:41:25]wFMCommunicate OK [09:41:25]CreateOFDProtocolMessage done [09:41:25]OFDSenderStorePacket 118407 [09:41:25]StoreOFDPacket docnum=118407 [09:41:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 D4 C4 04 01 F7 AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 45 12 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 87 CE 01 00 35 04 06 00 A8 BE 3A BB 53 E2 F7 F3 05 0E DF 90 D8 6B [09:41:25]CheckFolder [09:41:25]dirname=/storage/ofd_packets [09:41:25]CheckFolder done [09:41:25]ProducePacketName [09:41:25]name=ofd_packets/00118407 [09:41:25]NVStorageSaveData ofd_packets/00118407 [09:41:25]File name is /storage/ofd_packets/00118407 [09:41:25]Write 298 bytes [09:41:25]NVStorageSaveData done [09:41:25]OFDSenderStorePacket done [09:41:25]KKMCreateOFDPacket done [09:41:25]NVStorageSaveData kkm_last_timestamp [09:41:25]File name is /storage/kkm_last_timestamp [09:41:25]Write 4 bytes [09:41:25]NVStorageSaveData done [09:41:25]ExternCall_PrintAddStr [09:41:25]wPrintStart [09:41:25]Write to MH i2c: 01 00 00 43 11 54 [09:41:25]Write i2c OK [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: 01 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: 01 07 00 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: 01 07 00 43 11 00 00 00 00 00 FF 0F 69 [09:41:25]RasterBufferAndPrint [09:41:25]line Счет N : (1)949280 [09:41:25]line ИНН: 02508201610067 [09:41:25]line Контрольно-Кассовый Чек [09:41:25]line ПРОДАЖА [09:41:25]line ТРК (МРК, ГНК) : 44 [09:41:25]line Товар: 2710194800 [09:41:25]line ДТ-К-5 [09:41:25]line 13.130 * 76.20 [09:41:25]line = 1000.51 [09:41:25]line НДС 12% НСП 1% [09:41:25]line > о реализуемом товаре [09:41:25]line ОКРУГЛЕНИЕ: -0.51 [09:41:25]line ИТОГО: 1000.00 [09:41:25]line Внесено: 1000.00 [09:41:25]line СДАЧА: 0.00 [09:41:25]line НСП 1% : 8.85 [09:41:25]line НДС 12% : 106.25 [09:41:25]line Наличными: 1000.00 [09:41:25]line Безнал.: 0.00 [09:41:25]line Место: АЗС № 134 "Партнер Нефть" [09:41:25]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:41:25]line СНО: Общий режим [09:41:25]line Чек 76 28.07.2024 09:41 [09:41:25]line Смена: 433 ФФД: 1.0 [09:41:25]line ЗНМ: 0300000044 [09:41:25]line РНМ: 0000000000092660 [09:41:25]line Версия ККМ: 001 [09:41:25]line ФМ: 0000000000874939 [09:41:25]line ФД: 118407 [09:41:25]line ФПД: 185534982607842 [09:41:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T094125&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118407&fm=185534982607842&tin=02508201610067®Number=0000000000092660&sum=100000 [09:41:25]OFD Sender: Processing packet 118407 [packets to send 86, broken 85] [09:41:25]ProducePacketName [09:41:25]name=ofd_packets/00118407 [09:41:25]OFD Sender: To server: pG, [09:41:25]CommunicateWithHost lk.salyk.kg:30040 [09:41:25]ConnectInit lk.salyk.kg [09:41:25]written 0, free lines is 4095 [09:41:25]Connected sock=10 [09: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 39 33 39 0C 01 00 00 D4 C4 04 01 F7 AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 45 12 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 87 CE 01 00 35 04 06 00 A8 BE 3A BB 53 E2 F7 F3 05 0E DF 90 D8 6B [09: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 39 33 39 4F 00 00 00 F3 E3 47 00 3B 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 39 33 39 10 04 04 00 87 CE 01 00 F4 03 04 00 D6 BF A5 66 B6 04 01 00 00 FD A2 91 36 51 D1 90 CE [09:41:26]CommunicateWithHost err = 0 [09:41:26]CheckOFDResponse [09:41:26]1017 (14) - 77093643461234 [09:41:26]1041 (16) - 0000000000874939 [09:41:26]1040 (4) - 118407 [09:41:26]1012 (4) - 28.07.2024 03:49 [09:41:26]1206 (1) - 0 [09:41:26]OFD Sender: Remove packet 118407 [09:41:26]ProducePacketName [09:41:26]name=ofd_packets/00118407 [09:41:26]NVStorageDeleteData [09:41:26]Write to MH i2c: 01 00 00 6D 11 7E [09:41:26]Write i2c OK [09:41:26]MH_I2C_Read... [09:41:26]Read from MH i2c: 01 [09:41:26]MH_I2C_Read... [09:41:26]Read from MH i2c: 01 07 00 [09:41:26]MH_I2C_Read... [09:41:26]Read from MH i2c: 01 07 00 6D 11 00 00 00 00 00 F2 0C 83 [09:41:26]RasterBufferAndPrint [09:41:26]line [09:41:26]line [09:41:26]line [09:41:26]line [09:41:26]line [09:41:26]written 0, free lines is 3323 [09:41:26]MH_Cut [09:41:26]Write to MH i2c: D1 01 00 74 11 01 57 [09:41:26]Write i2c OK [09:41:26]MH_I2C_Read... [09:41:26]Read from MH i2c: D1 [09:41:26]MH_I2C_Read... [09:41:26]Read from MH i2c: D1 01 00 [09:41:26]MH_I2C_Read... [09:41:26]Read from MH i2c: D1 01 00 74 11 00 56 [09:41:26]Write to MH i2c: 01 00 00 75 11 86 [09:41:26]Write i2c OK [09:41:26]MH_I2C_Read... [09:41:26]OFD Sender: No OFD packet to send [09:41:26]*** Cut start [09:41:26]*** Partial cut [09:41:26]*** CUTSNS_PIN = 1 [09:41:26]*** CUTSNS_PIN = 0 [09:41:27]*** Brake cut motor [09:41:27]Read from MH i2c: 01 [09:41:27]MH_I2C_Read... [09:41:27]*** Stop cut motor [09:41:27]*** Cut end [09:41:27]Read from MH i2c: 01 07 00 [09:41:27]MH_I2C_Read... [09:41:27]Read from MH i2c: 01 07 00 75 11 00 00 00 00 00 FF 0F 9B [09:41:27]process_action close_receipt done [09:41:27]requested_data is exist [09:41:27]produce_requested_data [09:41:27]requested_item fm.sn is exist - process it [09:41:27]wFMCommunicate request_size=4 [09:41:27]MH_SAM_APDU [09:41:27]CAPDU: 80 11 00 00 [09:41:27]Write to MH i2c: E2 08 00 76 11 80 11 00 00 00 00 00 00 01 [09:41:27]Write i2c OK [09:41:27]MH_I2C_Read... [09:41:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:27]Read from MH i2c: E2 [09:41:27]MH_I2C_Read... [09:41:27]Read from MH i2c: E2 17 00 [09:41:27]MH_I2C_Read... [09:41:27]Read from MH i2c: E2 17 00 76 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5C [09:41:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:41:27]wFMCommunicate OK [09:41:27]requested_item fd.num is exist - process it [09:41:27]SAM_PROTO_GetFieldsCounters [09:41:27]wFMCommunicate request_size=4 [09:41:27]MH_SAM_APDU [09:41:27]CAPDU: 80 13 00 00 [09:41:27]Write to MH i2c: E2 08 00 77 11 80 13 00 00 00 00 00 00 04 [09:41:27]Write i2c OK [09:41:27]MH_I2C_Read... [09:41:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:27]Read from MH i2c: E2 [09:41:27]MH_I2C_Read... [09:41:27]Read from MH i2c: E2 62 00 [09:41:27]MH_I2C_Read... [09:41:27]Read from MH i2c: E2 62 00 77 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 87 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [09:41: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 87 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:41:27]wFMCommunicate OK [09:41:27]SAM_PROTO_GetFieldsCounters done [09:41:27]requested_item shift.num is exist - process it [09:41:27]requested_item shift.opened is exist - process it [09:41:27]req_shift_opened [09:41:27]FM_GetShiftState [09:41:27]SAM_PROTO_GetShiftState [09:41:27]wFMCommunicate request_size=4 [09:41:27]MH_SAM_APDU [09:41:27]CAPDU: 80 13 01 00 [09:41:27]Write to MH i2c: E2 08 00 78 11 80 13 01 00 00 00 00 00 06 [09:41:27]Write i2c OK [09:41:27]MH_I2C_Read... [09:41:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:27]Read from MH i2c: E2 [09:41:27]MH_I2C_Read... [09:41:27]Read from MH i2c: E2 0E 00 [09:41:27]MH_I2C_Read... [09:41:27]Read from MH i2c: E2 0E 00 78 11 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 DD [09:41:27]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:41:27]wFMCommunicate OK [09:41:27]SAM_PROTO_GetShiftState done [09:41:27]FM_GetShiftState done [09:41:27]req_shift_opened done [09:41:27]requested_item shift.open_date is exist - process it [09:41:27]req_shift_open_date [09:41:27]req_shift_open_date done [09:41:27]produce_requested_data done [09:41:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118407,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [09:41:27]process_action_free close_receipt [09:41:27]json_value_free [09:41:27]json_value_free done [09:41:27]process_json_proto returns [09:41:27]Send response to host [09:41:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118407,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [09:41:27]free response buf [09:41:27]execute_script done [09:41:27]execute_script returns [09:41:27]free content buf [09:41:27]Sock 7.Close socket [09:41:27]Sock 7.Thread stoped [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:48]accept exits with 9 [09:41:48]New connection [09:41:48]New thread 3067067748 created [09:41:48]Thread 3066924388 joined [09:41:48]Waiting for new connection... [09:41:48] Sock 9.Parse request [09:41:48]Sock 9.Check first char [09:41:48]Sock 9.First char is OK [09:41:48]request: POST /json_proto HTTP/1.0 [09:41:48]Method: POST [09:41:48]URL: /json_proto [09:41:48]Method is POST - this is cgi request [09:41:48]url: /json_proto [09:41:48]query_string will be loaded in cgi processing [09:41:48]execute_cgi json_proto POST (null) [09:41:48]execute_cgi path=json_proto method=POST [09:41:48]POST find Content-Length [09:41:48]Host: 172.17.45.7:8080 [09:41:48]Content-Length: 819 [09:41:48]Content-Type: application/json [09:41:48] [09:41:48]POST finish read [09:41:48]Found Content-Length = 819 [09:41:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 23.630, "sum" : 1800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1800.00, "payments": [ { "type": 1, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:48]execute_script... [09:41: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)949279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 23.630, "sum" : 1800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1800.00, "payments": [ { "type": 1, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:48]POST & json_proto [09:41:48]process_json_proto [09:41:48]json parsed OK: [09:41:48]protocol is kg_v1.0 [09:41:48]action value=close_receipt [09:41:48]process_action close_receipt [09:41:48]cmd_close_receipt [09:41:48]MH_GetDate [09:41:48]Write to MH i2c: F0 00 00 79 11 79 [09:41:48]Write i2c OK [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: F0 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: F0 09 00 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: F0 09 00 79 11 00 5E 12 A6 66 90 0F 3E 66 41 [09:41:48]GetLastDocTimeStamp 1722159685 [09:41:48]current date 1722159710 [09:41:48]FM_GetShiftState [09:41:48]SAM_PROTO_GetShiftState [09:41:48]wFMCommunicate request_size=4 [09:41:48]MH_SAM_APDU [09:41:48]CAPDU: 80 13 01 00 [09:41:48]Write to MH i2c: E2 08 00 7A 11 80 13 01 00 00 00 00 00 08 [09:41:48]Write i2c OK [09:41:48]MH_I2C_Read... [09:41:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:48]Read from MH i2c: E2 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 0E 00 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 0E 00 7A 11 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 DF [09:41:48]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:41:48]wFMCommunicate OK [09:41:48]SAM_PROTO_GetShiftState done [09:41:48]FM_GetShiftState done [09:41:48]opened in 1722125364 [09:41:48]opened+sec_in_day 1722211764 [09:41:48]quantity*price = 180060 [09:41:48]sum+1 = 180062 [09:41:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1800.00 НСП 1% : 15.93 НДС 12% : 191.21 Наличными: 0.00 Безнал.: 1800.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 77 28.07.2024 09:41 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118408 ФПД: 165597570464701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T094150&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118408&fm=165597570464701&tin=02508201610067®Number=0000000000092660&sum=180000 [09:41:49]StoreToDocumentArchive [09:41:49]shift 433 fd 118408 [09:41:49]save to /storage/0433/doc_00118408 [09:41:49]save last doc name /storage/0433/doc_00118408 to /storage/kkm_last_doc_name [09:41:49]save OK [09:41:49]Clear old archive folders... [09:41:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:41:49]tlvbuf is 001477E0 [09:41:49]SAM_PROTO_ClearQueue [09:41:49]wFMCommunicate request_size=4 [09:41:49]MH_SAM_APDU [09:41:49]CAPDU: 80 09 00 00 [09:41:49]Write to MH i2c: E2 08 00 87 11 80 09 00 00 00 00 00 00 0A [09:41:49]Write i2c OK [09:41:49]MH_I2C_Read... [09:41:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:49]Read from MH i2c: E2 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: E2 03 00 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: E2 03 00 87 11 00 90 00 0C [09:41:49]RAPDU: 90 00 [09:41:49]wFMCommunicate OK [09:41:49]SAM_PROTO_ClearQueue done [09:41:49]KKMCreateOFDPacket [09:41:49]OFDProtocolAddRootSTLVToBuf [09:41:49]FM_MakeSignedData [09:41:49]FM_MakeSignedData [09:41:49]SAM_PROTO_SignData [09:41:49]wFMCommunicate request_size=4 [09:41:49]MH_SAM_APDU [09:41:49]CAPDU: 80 0D 01 02 [09:41:49]Write to MH i2c: E2 08 00 88 11 80 0D 01 02 00 00 00 00 12 [09:41:49]Write i2c OK [09:41:49]MH_I2C_Read... [09:41:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:49]Read from MH i2c: E2 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: E2 03 00 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: E2 03 00 88 11 00 90 00 0D [09:41:49]RAPDU: 90 00 [09:41:49]wFMCommunicate OK [09:41:49]wFMCommunicate request_size=255 [09:41:49]MH_SAM_APDU [09:41:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 5E 12 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 88 CE 01 00 35 04 06 00 96 9C 30 5C [09:41:49]Write to MH i2c: E2 02 01 89 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 5E 12 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 88 CE 01 00 35 04 06 00 96 9C 30 5C 00 00 AF [09:41:49]Write i2c OK [09:41:49]MH_I2C_Read... [09:41:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:49]Read from MH i2c: E2 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: E2 03 00 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: E2 03 00 89 11 00 90 00 0E [09:41:49]RAPDU: 90 00 [09:41:49]wFMCommunicate OK [09:41:49]wFMCommunicate request_size=7 [09:41:49]MH_SAM_APDU [09:41:49]CAPDU: 80 0D 02 02 02 FB BD [09:41:49]Write to MH i2c: E2 0A 00 8A 11 80 0D 02 02 02 00 FB BD 00 00 D1 [09:41:49]Write i2c OK [09:41:49]MH_I2C_Read... [09:41:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:49]Read from MH i2c: E2 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: E2 03 00 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: E2 03 00 8A 11 00 90 00 0F [09:41:49]RAPDU: 90 00 [09:41:49]wFMCommunicate OK [09:41:49]wFMCommunicate request_size=4 [09:41:49]MH_SAM_APDU [09:41:49]CAPDU: 80 0D 03 02 [09:41:49]Write to MH i2c: E2 08 00 8B 11 80 0D 03 02 00 00 00 00 17 [09:41:49]Write i2c OK [09:41:49]MH_I2C_Read... [09:41:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:49]Read from MH i2c: E2 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: E2 0B 00 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: E2 0B 00 8B 11 00 1F 89 F3 EA C3 74 F6 AA 90 00 74 [09:41:49]RAPDU: 1F 89 F3 EA C3 74 F6 AA 90 00 [09:41:49]wFMCommunicate OK [09:41:49]SAM_PROTO_SignData done [09:41:49]FM_MakeSignedData done [09:41:49]CreateOFDProtocolMessage [09:41:49]wFMCommunicate request_size=4 [09:41:49]MH_SAM_APDU [09:41:49]CAPDU: 80 11 00 00 [09:41:49]Write to MH i2c: E2 08 00 8C 11 80 11 00 00 00 00 00 00 17 [09:41:49]Write i2c OK [09:41:49]MH_I2C_Read... [09:41:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:49]Read from MH i2c: E2 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: E2 17 00 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: E2 17 00 8C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 72 [09:41:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:41:49]wFMCommunicate OK [09:41:49]CreateOFDProtocolMessage done [09:41:49]OFDSenderStorePacket 118408 [09:41:49]StoreOFDPacket docnum=118408 [09:41:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 63 20 04 01 70 61 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 5E 12 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 88 CE 01 00 35 04 06 00 96 9C 30 5C FB BD 1F 89 F3 EA C3 74 F6 AA [09:41:49]CheckFolder [09:41:49]dirname=/storage/ofd_packets [09:41:49]CheckFolder done [09:41:49]ProducePacketName [09:41:49]name=ofd_packets/00118408 [09:41:49]NVStorageSaveData ofd_packets/00118408 [09:41:49]File name is /storage/ofd_packets/00118408 [09:41:49]Write 298 bytes [09:41:49]NVStorageSaveData done [09:41:49]OFDSenderStorePacket done [09:41:49]KKMCreateOFDPacket done [09:41:49]NVStorageSaveData kkm_last_timestamp [09:41:49]File name is /storage/kkm_last_timestamp [09:41:49]Write 4 bytes [09:41:49]NVStorageSaveData done [09:41:49]ExternCall_PrintAddStr [09:41:49]wPrintStart [09:41:49]Write to MH i2c: 01 00 00 8D 11 9E [09:41:49]Write i2c OK [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: 01 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: 01 07 00 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: 01 07 00 8D 11 00 00 00 00 00 FF 0F B3 [09:41:49]RasterBufferAndPrint [09:41:49]line Счет N : (1)949279 [09:41:49]line ИНН: 02508201610067 [09:41:49]line Контрольно-Кассовый Чек [09:41:49]line ПРОДАЖА [09:41:49]line ТРК (МРК, ГНК) : 54 [09:41:49]line Товар: 2710194800 [09:41:49]line ДТ-К-5 [09:41:49]line 23.630 * 76.20 [09:41:49]line = 1800.61 [09:41:49]line НДС 12% НСП 1% [09:41:49]line > о реализуемом товаре [09:41:49]line ОКРУГЛЕНИЕ: -0.61 [09:41:49]line ИТОГО: 1800.00 [09:41:49]line НСП 1% : 15.93 [09:41:49]line НДС 12% : 191.21 [09:41:49]line Наличными: 0.00 [09:41:49]line Безнал.: 1800.00 [09:41:49]line Место: АЗС № 134 "Партнер Нефть" [09:41:49]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:41:49]line СНО: Общий режим [09:41:49]line Чек 77 28.07.2024 09:41 [09:41:49]line Смена: 433 ФФД: 1.0 [09:41:49]line ЗНМ: 0300000044 [09:41:49]line РНМ: 0000000000092660 [09:41:50]line Версия ККМ: 001 [09:41:50]line Платежная система: O! деньги [09:41:50]line ФМ: 0000000000874939 [09:41:50]line ФД: 118408 [09:41:50]line ФПД: 165597570464701 [09:41:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T094150&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118408&fm=165597570464701&tin=02508201610067®Number=0000000000092660&sum=180000 [09:41:50]OFD Sender: Processing packet 118408 [packets to send 86, broken 85] [09:41:50]ProducePacketName [09:41:50]name=ofd_packets/00118408 [09:41:50]OFD Sender: To server: pG, [09:41:50]CommunicateWithHost lk.salyk.kg:30040 [09:41:50]ConnectInit lk.salyk.kg [09:41:50]written 0, free lines is 4095 [09:41:50]Connected sock=10 [09:41: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 39 33 39 0C 01 00 00 63 20 04 01 70 61 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 5E 12 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 88 CE 01 00 35 04 06 00 96 9C 30 5C FB BD 1F 89 F3 EA C3 74 F6 AA [09:41:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 12 BA 47 00 1A D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 88 CE 01 00 F4 03 04 00 EF BF A5 66 B6 04 01 00 00 EF 86 BF CA 85 C5 3C 4F [09:41:50]CommunicateWithHost err = 0 [09:41:50]CheckOFDResponse [09:41:50]1017 (14) - 77093643461234 [09:41:50]1041 (16) - 0000000000874939 [09:41:50]1040 (4) - 118408 [09:41:50]1012 (4) - 28.07.2024 03:50 [09:41:50]1206 (1) - 0 [09:41:50]OFD Sender: Remove packet 118408 [09:41:50]ProducePacketName [09:41:50]name=ofd_packets/00118408 [09:41:50]NVStorageDeleteData [09:41:50]Write to MH i2c: 01 00 00 B7 11 C8 [09:41:50]Write i2c OK [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: 01 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: 01 07 00 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: 01 07 00 B7 11 00 00 00 00 00 FD 0C D8 [09:41:50]RasterBufferAndPrint [09:41:50]line [09:41:50]line [09:41:50]line [09:41:50]line [09:41:50]line [09:41:50]written 0, free lines is 3331 [09:41:50]MH_Cut [09:41:50]Write to MH i2c: D1 01 00 BE 11 01 A1 [09:41:50]Write i2c OK [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: D1 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: D1 01 00 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: D1 01 00 BE 11 00 A0 [09:41:50]Write to MH i2c: 01 00 00 BF 11 D0 [09:41:50]Write i2c OK [09:41:50]MH_I2C_Read... [09:41:51]OFD Sender: No OFD packet to send [09:41:51]*** Cut start [09:41:51]*** Partial cut [09:41:51]*** CUTSNS_PIN = 1 [09:41:51]*** CUTSNS_PIN = 0 [09:41:51]*** Brake cut motor [09:41:52]Read from MH i2c: 01 [09:41:52]MH_I2C_Read... [09:41:52]*** Stop cut motor [09:41:52]*** Cut end [09:41:52]Read from MH i2c: 01 07 00 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: 01 07 00 BF 11 00 00 00 00 00 FF 0F E5 [09:41:52]process_action close_receipt done [09:41:52]requested_data is exist [09:41:52]produce_requested_data [09:41:52]requested_item fm.sn is exist - process it [09:41:52]wFMCommunicate request_size=4 [09:41:52]MH_SAM_APDU [09:41:52]CAPDU: 80 11 00 00 [09:41:52]Write to MH i2c: E2 08 00 C0 11 80 11 00 00 00 00 00 00 4B [09:41:52]Write i2c OK [09:41:52]MH_I2C_Read... [09:41:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:52]Read from MH i2c: E2 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: E2 17 00 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: E2 17 00 C0 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A6 [09:41:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:41:52]wFMCommunicate OK [09:41:52]requested_item fd.num is exist - process it [09:41:52]SAM_PROTO_GetFieldsCounters [09:41:52]wFMCommunicate request_size=4 [09:41:52]MH_SAM_APDU [09:41:52]CAPDU: 80 13 00 00 [09:41:52]Write to MH i2c: E2 08 00 C1 11 80 13 00 00 00 00 00 00 4E [09:41:52]Write i2c OK [09:41:52]MH_I2C_Read... [09:41:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:52]Read from MH i2c: E2 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: E2 62 00 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: E2 62 00 C1 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 88 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [09:41:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 88 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:41:52]wFMCommunicate OK [09:41:52]SAM_PROTO_GetFieldsCounters done [09:41:52]requested_item shift.num is exist - process it [09:41:52]requested_item shift.opened is exist - process it [09:41:52]req_shift_opened [09:41:52]FM_GetShiftState [09:41:52]SAM_PROTO_GetShiftState [09:41:52]wFMCommunicate request_size=4 [09:41:52]MH_SAM_APDU [09:41:52]CAPDU: 80 13 01 00 [09:41:52]Write to MH i2c: E2 08 00 C2 11 80 13 01 00 00 00 00 00 50 [09:41:52]Write i2c OK [09:41:52]MH_I2C_Read... [09:41:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:52]Read from MH i2c: E2 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: E2 0E 00 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: E2 0E 00 C2 11 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 27 [09:41:52]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:41:52]wFMCommunicate OK [09:41:52]SAM_PROTO_GetShiftState done [09:41:52]FM_GetShiftState done [09:41:52]req_shift_opened done [09:41:52]requested_item shift.open_date is exist - process it [09:41:52]req_shift_open_date [09:41:52]req_shift_open_date done [09:41:52]produce_requested_data done [09:41:52]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118408,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [09:41:52]process_action_free close_receipt [09:41:52]json_value_free [09:41:52]json_value_free done [09:41:52]process_json_proto returns [09:41:52]Send response to host [09:41:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118408,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [09:41:52]free response buf [09:41:52]execute_script done [09:41:52]execute_script returns [09:41:52]free content buf [09:41:52]Sock 9.Close socket [09:41:52]Sock 9.Thread stoped [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:36]OFD Sender: No OFD packet to send [09:42:41]OFD Sender: No OFD packet to send [09:42:46]OFD Sender: No OFD packet to send [09:42:51]OFD Sender: No OFD packet to send [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:14]accept exits with 7 [09:43:14]New connection [09:43:14]New thread 3066924388 created [09:43:14]Thread 3067067748 joined [09:43:14]Waiting for new connection... [09:43:14] Sock 7.Parse request [09:43:14]Sock 7.Check first char [09:43:14]Sock 7.First char is OK [09:43:14]request: POST /json_proto HTTP/1.0 [09:43:14]Method: POST [09:43:14]URL: /json_proto [09:43:14]Method is POST - this is cgi request [09:43:14]url: /json_proto [09:43:14]query_string will be loaded in cgi processing [09:43:14]execute_cgi json_proto POST (null) [09:43:14]execute_cgi path=json_proto method=POST [09:43:14]POST find Content-Length [09:43:14]Host: 172.17.45.7:8080 [09:43:14]Content-Length: 677 [09:43:14]Content-Type: application/json [09:43:14] [09:43:14]POST finish read [09:43:14]Found Content-Length = 677 [09:43:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:15]execute_script... [09:43: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)949281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:15]POST & json_proto [09:43:15]process_json_proto [09:43:15]json parsed OK: [09:43:15]protocol is kg_v1.0 [09:43:15]action value=close_receipt [09:43:15]process_action close_receipt [09:43:15]cmd_close_receipt [09:43:15]MH_GetDate [09:43:15]Write to MH i2c: F0 00 00 C3 11 C3 [09:43:15]Write i2c OK [09:43:15]MH_I2C_Read... [09:43:15]Read from MH i2c: F0 [09:43:15]MH_I2C_Read... [09:43:15]Read from MH i2c: F0 09 00 [09:43:15]MH_I2C_Read... [09:43:15]Read from MH i2c: F0 09 00 C3 11 00 B5 12 A6 66 90 0F 3E 66 E2 [09:43:15]GetLastDocTimeStamp 1722159710 [09:43:15]current date 1722159797 [09:43:15]FM_GetShiftState [09:43:15]SAM_PROTO_GetShiftState [09:43:15]wFMCommunicate request_size=4 [09:43:15]MH_SAM_APDU [09:43:15]CAPDU: 80 13 01 00 [09:43:15]Write to MH i2c: E2 08 00 C4 11 80 13 01 00 00 00 00 00 52 [09:43:15]Write i2c OK [09:43:15]MH_I2C_Read... [09:43:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:15]Read from MH i2c: E2 [09:43:15]MH_I2C_Read... [09:43:15]Read from MH i2c: E2 0E 00 [09:43:15]MH_I2C_Read... [09:43:15]Read from MH i2c: E2 0E 00 C4 11 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 29 [09:43:15]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:43:15]wFMCommunicate OK [09:43:15]SAM_PROTO_GetShiftState done [09:43:15]FM_GetShiftState done [09:43:15]opened in 1722125364 [09:43:15]opened+sec_in_day 1722211764 [09:43:15]quantity*price = 60003 [09:43:15]sum+1 = 60004 [09:43:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 78 28.07.2024 09:43 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118409 ФПД: 76073496928455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T094317&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118409&fm=76073496928455&tin=02508201610067®Number=0000000000092660&sum=60000 [09:43:16]StoreToDocumentArchive [09:43:16]shift 433 fd 118409 [09:43:16]save to /storage/0433/doc_00118409 [09:43:16]save last doc name /storage/0433/doc_00118409 to /storage/kkm_last_doc_name [09:43:16]save OK [09:43:16]Clear old archive folders... [09:43:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:16]tlvbuf is 0013D320 [09:43:16]SAM_PROTO_ClearQueue [09:43:16]wFMCommunicate request_size=4 [09:43:16]MH_SAM_APDU [09:43:16]CAPDU: 80 09 00 00 [09:43:16]Write to MH i2c: E2 08 00 D1 11 80 09 00 00 00 00 00 00 54 [09:43:16]Write i2c OK [09:43:16]MH_I2C_Read... [09:43:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:16]Read from MH i2c: E2 [09:43:16]MH_I2C_Read... [09:43:16]Read from MH i2c: E2 03 00 [09:43:16]MH_I2C_Read... [09:43:16]Read from MH i2c: E2 03 00 D1 11 00 90 00 56 [09:43:16]RAPDU: 90 00 [09:43:16]wFMCommunicate OK [09:43:16]SAM_PROTO_ClearQueue done [09:43:16]KKMCreateOFDPacket [09:43:16]OFDProtocolAddRootSTLVToBuf [09:43:16]FM_MakeSignedData [09:43:16]FM_MakeSignedData [09:43:16]SAM_PROTO_SignData [09:43:16]wFMCommunicate request_size=4 [09:43:16]MH_SAM_APDU [09:43:16]CAPDU: 80 0D 01 02 [09:43:16]Write to MH i2c: E2 08 00 D2 11 80 0D 01 02 00 00 00 00 5C [09:43:16]Write i2c OK [09:43:16]MH_I2C_Read... [09:43:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:16]Read from MH i2c: E2 [09:43:16]MH_I2C_Read... [09:43:16]Read from MH i2c: E2 03 00 [09:43:16]MH_I2C_Read... [09:43:16]Read from MH i2c: E2 03 00 D2 11 00 90 00 57 [09:43:16]RAPDU: 90 00 [09:43:16]wFMCommunicate OK [09:43:16]wFMCommunicate request_size=255 [09:43:16]MH_SAM_APDU [09:43: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 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 00 00 00 F4 03 04 00 B5 12 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 89 CE 01 00 35 04 06 00 45 [09:43:16]Write to MH i2c: E2 02 01 D3 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 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 00 00 00 F4 03 04 00 B5 12 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 89 CE 01 00 35 04 06 00 45 00 00 17 [09:43:16]Write i2c OK [09:43:16]MH_I2C_Read... [09:43:16]OFD Sender: No OFD packet to send [09:43:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:16]Read from MH i2c: E2 [09:43:16]MH_I2C_Read... [09:43:16]Read from MH i2c: E2 03 00 [09:43:16]MH_I2C_Read... [09:43:16]Read from MH i2c: E2 03 00 D3 11 00 90 00 58 [09:43:16]RAPDU: 90 00 [09:43:16]wFMCommunicate OK [09:43:16]wFMCommunicate request_size=10 [09:43:16]MH_SAM_APDU [09:43:16]CAPDU: 80 0D 02 02 05 30 3D C2 E0 C7 [09:43:16]Write to MH i2c: E2 0D 00 D4 11 80 0D 02 02 05 00 30 3D C2 E0 C7 00 00 3F [09:43:16]Write i2c OK [09:43:16]MH_I2C_Read... [09:43:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:16]Read from MH i2c: E2 [09:43:16]MH_I2C_Read... [09:43:16]Read from MH i2c: E2 03 00 [09:43:16]MH_I2C_Read... [09:43:16]Read from MH i2c: E2 03 00 D4 11 00 90 00 59 [09:43:16]RAPDU: 90 00 [09:43:16]wFMCommunicate OK [09:43:16]wFMCommunicate request_size=4 [09:43:16]MH_SAM_APDU [09:43:16]CAPDU: 80 0D 03 02 [09:43:16]Write to MH i2c: E2 08 00 D5 11 80 0D 03 02 00 00 00 00 61 [09:43:16]Write i2c OK [09:43:16]MH_I2C_Read... [09:43:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:16]Read from MH i2c: E2 [09:43:16]MH_I2C_Read... [09:43:16]Read from MH i2c: E2 0B 00 [09:43:16]MH_I2C_Read... [09:43:16]Read from MH i2c: E2 0B 00 D5 11 00 D0 18 D5 E4 BC 4E 45 3D 90 00 8F [09:43:16]RAPDU: D0 18 D5 E4 BC 4E 45 3D 90 00 [09:43:16]wFMCommunicate OK [09:43:16]SAM_PROTO_SignData done [09:43:16]FM_MakeSignedData done [09:43:16]CreateOFDProtocolMessage [09:43:16]wFMCommunicate request_size=4 [09:43:16]MH_SAM_APDU [09:43:16]CAPDU: 80 11 00 00 [09:43:16]Write to MH i2c: E2 08 00 D6 11 80 11 00 00 00 00 00 00 61 [09:43:16]Write i2c OK [09:43:16]MH_I2C_Read... [09:43:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:16]Read from MH i2c: E2 [09:43:16]MH_I2C_Read... [09:43:16]Read from MH i2c: E2 17 00 [09:43:16]MH_I2C_Read... [09:43:16]Read from MH i2c: E2 17 00 D6 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BC [09:43:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:43:16]wFMCommunicate OK [09:43:16]CreateOFDProtocolMessage done [09:43:16]OFDSenderStorePacket 118409 [09:43:16]StoreOFDPacket docnum=118409 [09:43:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4F 39 07 01 68 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 00 00 00 F4 03 04 00 B5 12 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 89 CE 01 00 35 04 06 00 45 30 3D C2 E0 C7 D0 18 D5 E4 BC 4E 45 3D [09:43:16]CheckFolder [09:43:16]dirname=/storage/ofd_packets [09:43:16]CheckFolder done [09:43:16]ProducePacketName [09:43:16]name=ofd_packets/00118409 [09:43:16]NVStorageSaveData ofd_packets/00118409 [09:43:16]File name is /storage/ofd_packets/00118409 [09:43:16]Write 301 bytes [09:43:16]NVStorageSaveData done [09:43:16]OFDSenderStorePacket done [09:43:16]KKMCreateOFDPacket done [09:43:16]NVStorageSaveData kkm_last_timestamp [09:43:16]File name is /storage/kkm_last_timestamp [09:43:16]Write 4 bytes [09:43:16]NVStorageSaveData done [09:43:16]ExternCall_PrintAddStr [09:43:16]wPrintStart [09:43:16]Write to MH i2c: 01 00 00 D7 11 E8 [09:43:16]Write i2c OK [09:43:16]MH_I2C_Read... [09:43:16]Read from MH i2c: 01 [09:43:16]MH_I2C_Read... [09:43:16]Read from MH i2c: 01 07 00 [09:43:16]MH_I2C_Read... [09:43:16]Read from MH i2c: 01 07 00 D7 11 00 00 00 00 00 FF 0F FD [09:43:16]RasterBufferAndPrint [09:43:16]line Счет N : (1)949281 [09:43:16]line ИНН: 02508201610067 [09:43:16]line Контрольно-Кассовый Чек [09:43:16]line ПРОДАЖА [09:43:16]line ТРК (МРК, ГНК) : 31 [09:43:16]line Товар: 2710124130 [09:43:16]line Аи-92-К-4 [09:43:16]line 8.850 * 67.80 [09:43:16]line = 600.03 [09:43:16]line НДС 12% НСП 1% [09:43:16]line > о реализуемом товаре [09:43:16]line ОКРУГЛЕНИЕ: -0.03 [09:43:16]line ИТОГО: 600.00 [09:43:16]line Внесено: 600.00 [09:43:16]line СДАЧА: 0.00 [09:43:16]line НСП 1% : 5.31 [09:43:16]line НДС 12% : 63.72 [09:43:16]line Наличными: 600.00 [09:43:16]line Безнал.: 0.00 [09:43:16]line Место: АЗС № 134 "Партнер Нефть" [09:43:16]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:43:16]line СНО: Общий режим [09:43:16]line Чек 78 28.07.2024 09:43 [09:43:16]line Смена: 433 ФФД: 1.0 [09:43:16]line ЗНМ: 0300000044 [09:43:16]line РНМ: 0000000000092660 [09:43:16]line Версия ККМ: 001 [09:43:16]line ФМ: 0000000000874939 [09:43:16]line ФД: 118409 [09:43:16]line ФПД: 76073496928455 [09:43:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T094317&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118409&fm=76073496928455&tin=02508201610067®Number=0000000000092660&sum=60000 [09:43:17]OFD Sender: Processing packet 118409 [packets to send 86, broken 85] [09:43:17]ProducePacketName [09:43:17]name=ofd_packets/00118409 [09:43:17]OFD Sender: To server: pG, [09:43:17]CommunicateWithHost lk.salyk.kg:30040 [09:43:17]ConnectInit lk.salyk.kg [09:43:17]written 0, free lines is 4095 [09:43:17]Connected sock=10 [09:43:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4F 39 07 01 68 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 00 00 00 F4 03 04 00 B5 12 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 89 CE 01 00 35 04 06 00 45 30 3D C2 E0 C7 D0 18 D5 E4 BC 4E 45 3D [09:43:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 2C D8 47 00 08 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 39 33 39 10 04 04 00 89 CE 01 00 F4 03 04 00 45 C0 A5 66 B6 04 01 00 00 2E F5 7C 35 59 31 77 73 [09:43:17]CommunicateWithHost err = 0 [09:43:17]CheckOFDResponse [09:43:17]1017 (14) - 77093643461234 [09:43:17]1041 (16) - 0000000000874939 [09:43:17]1040 (4) - 118409 [09:43:17]1012 (4) - 28.07.2024 03:51 [09:43:17]1206 (1) - 0 [09:43:17]OFD Sender: Remove packet 118409 [09:43:17]ProducePacketName [09:43:17]name=ofd_packets/00118409 [09:43:17]NVStorageDeleteData [09:43:17]Write to MH i2c: 01 00 00 01 12 13 [09:43:17]Write i2c OK [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: 01 [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: 01 07 00 [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: 01 07 00 01 12 00 00 00 00 00 F4 0C 1A [09:43:17]RasterBufferAndPrint [09:43:17]line [09:43:17]line [09:43:17]line [09:43:17]line [09:43:17]line [09:43:17]written 0, free lines is 3324 [09:43:17]MH_Cut [09:43:17]Write to MH i2c: D1 01 00 08 12 01 EC [09:43:17]Write i2c OK [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: D1 [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: D1 01 00 [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: D1 01 00 08 12 00 EB [09:43:17]Write to MH i2c: 01 00 00 09 12 1B [09:43:17]Write i2c OK [09:43:17]MH_I2C_Read... [09:43:17]OFD Sender: No OFD packet to send [09:43:18]*** Cut start [09:43:18]*** Partial cut [09:43:18]*** CUTSNS_PIN = 1 [09:43:18]*** CUTSNS_PIN = 0 [09:43:18]*** Brake cut motor [09:43:18]Read from MH i2c: 01 [09:43:18]MH_I2C_Read... [09:43:18]*** Stop cut motor [09:43:18]*** Cut end [09:43:18]Read from MH i2c: 01 07 00 [09:43:18]MH_I2C_Read... [09:43:18]Read from MH i2c: 01 07 00 09 12 00 00 00 00 00 FF 0F 30 [09:43:18]process_action close_receipt done [09:43:18]requested_data is exist [09:43:18]produce_requested_data [09:43:18]requested_item fm.sn is exist - process it [09:43:18]wFMCommunicate request_size=4 [09:43:18]MH_SAM_APDU [09:43:18]CAPDU: 80 11 00 00 [09:43:18]Write to MH i2c: E2 08 00 0A 12 80 11 00 00 00 00 00 00 96 [09:43:18]Write i2c OK [09:43:18]MH_I2C_Read... [09:43:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:18]Read from MH i2c: E2 [09:43:18]MH_I2C_Read... [09:43:18]Read from MH i2c: E2 17 00 [09:43:18]MH_I2C_Read... [09:43:18]Read from MH i2c: E2 17 00 0A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F1 [09:43:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:43:18]wFMCommunicate OK [09:43:18]requested_item fd.num is exist - process it [09:43:18]SAM_PROTO_GetFieldsCounters [09:43:18]wFMCommunicate request_size=4 [09:43:18]MH_SAM_APDU [09:43:18]CAPDU: 80 13 00 00 [09:43:18]Write to MH i2c: E2 08 00 0B 12 80 13 00 00 00 00 00 00 99 [09:43:18]Write i2c OK [09:43:18]MH_I2C_Read... [09:43:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:18]Read from MH i2c: E2 [09:43:18]MH_I2C_Read... [09:43:18]Read from MH i2c: E2 62 00 [09:43:18]MH_I2C_Read... [09:43:18]Read from MH i2c: E2 62 00 0B 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 89 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [09:43:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 89 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:18]wFMCommunicate OK [09:43:18]SAM_PROTO_GetFieldsCounters done [09:43:18]requested_item shift.num is exist - process it [09:43:18]requested_item shift.opened is exist - process it [09:43:18]req_shift_opened [09:43:18]FM_GetShiftState [09:43:18]SAM_PROTO_GetShiftState [09:43:18]wFMCommunicate request_size=4 [09:43:18]MH_SAM_APDU [09:43:18]CAPDU: 80 13 01 00 [09:43:18]Write to MH i2c: E2 08 00 0C 12 80 13 01 00 00 00 00 00 9B [09:43:18]Write i2c OK [09:43:18]MH_I2C_Read... [09:43:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:19]Read from MH i2c: E2 [09:43:19]MH_I2C_Read... [09:43:19]Read from MH i2c: E2 0E 00 [09:43:19]MH_I2C_Read... [09:43:19]Read from MH i2c: E2 0E 00 0C 12 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 72 [09:43:19]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:43:19]wFMCommunicate OK [09:43:19]SAM_PROTO_GetShiftState done [09:43:19]FM_GetShiftState done [09:43:19]req_shift_opened done [09:43:19]requested_item shift.open_date is exist - process it [09:43:19]req_shift_open_date [09:43:19]req_shift_open_date done [09:43:19]produce_requested_data done [09:43:19]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118409,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [09:43:19]process_action_free close_receipt [09:43:19]json_value_free [09:43:19]json_value_free done [09:43:19]process_json_proto returns [09:43:19]Send response to host [09:43:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118409,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [09:43:19]free response buf [09:43:19]execute_script done [09:43:19]execute_script returns [09:43:19]free content buf [09:43:19]Sock 7.Close socket [09:43:19]Sock 7.Thread stoped [09:43:21]accept exits with 9 [09:43:21]New connection [09:43:21]New thread 3067067748 created [09:43:21]Thread 3066924388 joined [09:43:21]Waiting for new connection... [09:43:21] Sock 9.Parse request [09:43:21]Sock 9.Check first char [09:43:21]Sock 9.First char is OK [09:43:21]request: POST /json_proto HTTP/1.0 [09:43:21]Method: POST [09:43:21]URL: /json_proto [09:43:21]Method is POST - this is cgi request [09:43:21]url: /json_proto [09:43:21]query_string will be loaded in cgi processing [09:43:21]execute_cgi json_proto POST (null) [09:43:21]execute_cgi path=json_proto method=POST [09:43:21]POST find Content-Length [09:43:21]Host: 172.17.45.7:8080 [09:43:21]Content-Length: 679 [09:43:21]Content-Type: application/json [09:43:21] [09:43:21]POST finish read [09:43:21]Found Content-Length = 679 [09:43:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:21]execute_script... [09:43:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:21]POST & json_proto [09:43:21]process_json_proto [09:43:21]json parsed OK: [09:43:21]protocol is kg_v1.0 [09:43:21]action value=close_receipt [09:43:21]process_action close_receipt [09:43:21]cmd_close_receipt [09:43:21]MH_GetDate [09:43:21]Write to MH i2c: F0 00 00 0D 12 0E [09:43:21]Write i2c OK [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: F0 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: F0 09 00 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: F0 09 00 0D 12 00 BB 12 A6 66 90 0F 3E 66 33 [09:43:21]GetLastDocTimeStamp 1722159797 [09:43:21]current date 1722159803 [09:43:21]FM_GetShiftState [09:43:21]SAM_PROTO_GetShiftState [09:43:21]wFMCommunicate request_size=4 [09:43:21]MH_SAM_APDU [09:43:21]CAPDU: 80 13 01 00 [09:43:21]Write to MH i2c: E2 08 00 0E 12 80 13 01 00 00 00 00 00 9D [09:43:21]Write i2c OK [09:43:21]MH_I2C_Read... [09:43:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:21]Read from MH i2c: E2 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: E2 0E 00 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: E2 0E 00 0E 12 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 74 [09:43:21]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:43:21]wFMCommunicate OK [09:43:21]SAM_PROTO_GetShiftState done [09:43:21]FM_GetShiftState done [09:43:21]opened in 1722125364 [09:43:21]opened+sec_in_day 1722211764 [09:43:21]quantity*price = 100050 [09:43:21]sum+1 = 100052 [09:43:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 79 28.07.2024 09:43 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118410 ФПД: 188292271834029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T094323&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118410&fm=188292271834029&tin=02508201610067®Number=0000000000092660&sum=100000 [09:43:22]StoreToDocumentArchive [09:43:22]shift 433 fd 118410 [09:43:22]save to /storage/0433/doc_00118410 [09:43:22]save last doc name /storage/0433/doc_00118410 to /storage/kkm_last_doc_name [09:43:22]save OK [09:43:22]Clear old archive folders... [09:43:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:43:22]tlvbuf is 0012C690 [09:43:22]SAM_PROTO_ClearQueue [09:43:22]wFMCommunicate request_size=4 [09:43:22]MH_SAM_APDU [09:43:22]CAPDU: 80 09 00 00 [09:43:22]Write to MH i2c: E2 08 00 1B 12 80 09 00 00 00 00 00 00 9F [09:43:22]Write i2c OK [09:43:22]MH_I2C_Read... [09:43:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:23]Read from MH i2c: E2 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: E2 03 00 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: E2 03 00 1B 12 00 90 00 A1 [09:43:23]RAPDU: 90 00 [09:43:23]wFMCommunicate OK [09:43:23]SAM_PROTO_ClearQueue done [09:43:23]KKMCreateOFDPacket [09:43:23]OFDProtocolAddRootSTLVToBuf [09:43:23]FM_MakeSignedData [09:43:23]FM_MakeSignedData [09:43:23]SAM_PROTO_SignData [09:43:23]wFMCommunicate request_size=4 [09:43:23]MH_SAM_APDU [09:43:23]CAPDU: 80 0D 01 02 [09:43:23]Write to MH i2c: E2 08 00 1C 12 80 0D 01 02 00 00 00 00 A7 [09:43:23]Write i2c OK [09:43:23]MH_I2C_Read... [09:43:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:23]Read from MH i2c: E2 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: E2 03 00 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: E2 03 00 1C 12 00 90 00 A2 [09:43:23]RAPDU: 90 00 [09:43:23]wFMCommunicate OK [09:43:23]wFMCommunicate request_size=255 [09:43:23]MH_SAM_APDU [09:43:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 BB 12 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8A CE 01 00 35 04 06 00 AB 40 35 FA [09:43:23]Write to MH i2c: E2 02 01 1D 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 BB 12 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8A CE 01 00 35 04 06 00 AB 40 35 FA 00 00 84 [09:43:23]Write i2c OK [09:43:23]MH_I2C_Read... [09:43:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:23]Read from MH i2c: E2 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: E2 03 00 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: E2 03 00 1D 12 00 90 00 A3 [09:43:23]RAPDU: 90 00 [09:43:23]wFMCommunicate OK [09:43:23]wFMCommunicate request_size=7 [09:43:23]MH_SAM_APDU [09:43:23]CAPDU: 80 0D 02 02 02 03 AD [09:43:23]Write to MH i2c: E2 0A 00 1E 12 80 0D 02 02 02 00 03 AD 00 00 5E [09:43:23]Write i2c OK [09:43:23]MH_I2C_Read... [09:43:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:23]Read from MH i2c: E2 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: E2 03 00 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: E2 03 00 1E 12 00 90 00 A4 [09:43:23]RAPDU: 90 00 [09:43:23]wFMCommunicate OK [09:43:23]wFMCommunicate request_size=4 [09:43:23]MH_SAM_APDU [09:43:23]CAPDU: 80 0D 03 02 [09:43:23]Write to MH i2c: E2 08 00 1F 12 80 0D 03 02 00 00 00 00 AC [09:43:23]Write i2c OK [09:43:23]MH_I2C_Read... [09:43:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:23]Read from MH i2c: E2 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: E2 0B 00 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: E2 0B 00 1F 12 00 4D FA 9C BC 23 8C 23 9F 90 00 BD [09:43:23]RAPDU: 4D FA 9C BC 23 8C 23 9F 90 00 [09:43:23]wFMCommunicate OK [09:43:23]SAM_PROTO_SignData done [09:43:23]FM_MakeSignedData done [09:43:23]CreateOFDProtocolMessage [09:43:23]wFMCommunicate request_size=4 [09:43:23]MH_SAM_APDU [09:43:23]CAPDU: 80 11 00 00 [09:43:23]Write to MH i2c: E2 08 00 20 12 80 11 00 00 00 00 00 00 AC [09:43:23]Write i2c OK [09:43:23]MH_I2C_Read... [09:43:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:23]Read from MH i2c: E2 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: E2 17 00 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: E2 17 00 20 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 07 [09:43:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:43:23]wFMCommunicate OK [09:43:23]CreateOFDProtocolMessage done [09:43:23]OFDSenderStorePacket 118410 [09:43:23]StoreOFDPacket docnum=118410 [09:43:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F9 B0 04 01 61 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 BB 12 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8A CE 01 00 35 04 06 00 AB 40 35 FA 03 AD 4D FA 9C BC 23 8C 23 9F [09:43:23]CheckFolder [09:43:23]dirname=/storage/ofd_packets [09:43:23]CheckFolder done [09:43:23]ProducePacketName [09:43:23]name=ofd_packets/00118410 [09:43:23]NVStorageSaveData ofd_packets/00118410 [09:43:23]File name is /storage/ofd_packets/00118410 [09:43:23]Write 298 bytes [09:43:23]NVStorageSaveData done [09:43:23]OFDSenderStorePacket done [09:43:23]KKMCreateOFDPacket done [09:43:23]NVStorageSaveData kkm_last_timestamp [09:43:23]File name is /storage/kkm_last_timestamp [09:43:23]Write 4 bytes [09:43:23]NVStorageSaveData done [09:43:23]ExternCall_PrintAddStr [09:43:23]wPrintStart [09:43:23]Write to MH i2c: 01 00 00 21 12 33 [09:43:23]Write i2c OK [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: 01 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: 01 07 00 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: 01 07 00 21 12 00 00 00 00 00 FF 0F 48 [09:43:23]RasterBufferAndPrint [09:43:23]line Счет N : (1)949282 [09:43:23]line ИНН: 02508201610067 [09:43:23]line Контрольно-Кассовый Чек [09:43:23]line ПРОДАЖА [09:43:23]line ТРК (МРК, ГНК) : 44 [09:43:23]line Товар: 2710194800 [09:43:23]line ДТ-К-5 [09:43:23]line 13.130 * 76.20 [09:43:23]line = 1000.51 [09:43:23]line НДС 12% НСП 1% [09:43:23]line > о реализуемом товаре [09:43:23]line ОКРУГЛЕНИЕ: -0.51 [09:43:23]line ИТОГО: 1000.00 [09:43:23]line Внесено: 1000.00 [09:43:23]line СДАЧА: 0.00 [09:43:23]line НСП 1% : 8.85 [09:43:23]line НДС 12% : 106.25 [09:43:23]line Наличными: 1000.00 [09:43:23]line Безнал.: 0.00 [09:43:23]line Место: АЗС № 134 "Партнер Нефть" [09:43:23]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:43:23]line СНО: Общий режим [09:43:23]line Чек 79 28.07.2024 09:43 [09:43:23]line Смена: 433 ФФД: 1.0 [09:43:23]line ЗНМ: 0300000044 [09:43:23]line РНМ: 0000000000092660 [09:43:23]line Версия ККМ: 001 [09:43:23]line ФМ: 0000000000874939 [09:43:23]line ФД: 118410 [09:43:23]line ФПД: 188292271834029 [09:43:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T094323&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118410&fm=188292271834029&tin=02508201610067®Number=0000000000092660&sum=100000 [09:43:23]written 0, free lines is 4095 [09:43:23]OFD Sender: Processing packet 118410 [packets to send 86, broken 85] [09:43:23]ProducePacketName [09:43:23]name=ofd_packets/00118410 [09:43:23]OFD Sender: To server: pG, [09:43:23]CommunicateWithHost lk.salyk.kg:30040 [09:43:23]ConnectInit lk.salyk.kg [09:43:23]Connected sock=10 [09: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 39 33 39 0C 01 00 00 F9 B0 04 01 61 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 BB 12 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8A CE 01 00 35 04 06 00 AB 40 35 FA 03 AD 4D FA 9C BC 23 8C 23 9F [09:43:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1E F8 47 00 9F 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 39 33 39 10 04 04 00 8A CE 01 00 F4 03 04 00 4C C0 A5 66 B6 04 01 00 00 2F 75 81 32 56 E9 0B CF [09:43:23]CommunicateWithHost err = 0 [09:43:23]CheckOFDResponse [09:43:23]1017 (14) - 77093643461234 [09:43:23]1041 (16) - 0000000000874939 [09:43:23]1040 (4) - 118410 [09:43:23]1012 (4) - 28.07.2024 03:51 [09:43:23]1206 (1) - 0 [09:43:23]OFD Sender: Remove packet 118410 [09:43:23]ProducePacketName [09:43:23]name=ofd_packets/00118410 [09:43:23]NVStorageDeleteData [09:43:24]Write to MH i2c: 01 00 00 4B 12 5D [09:43:24]Write i2c OK [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: 01 [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: 01 07 00 [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: 01 07 00 4B 12 00 00 00 00 00 EE 0C 5E [09:43:24]RasterBufferAndPrint [09:43:24]line [09:43:24]line [09:43:24]line [09:43:24]line [09:43:24]line [09:43:24]written 0, free lines is 3320 [09:43:24]MH_Cut [09:43:24]Write to MH i2c: D1 01 00 52 12 01 36 [09:43:24]Write i2c OK [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: D1 [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: D1 01 00 [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: D1 01 00 52 12 00 35 [09:43:24]Write to MH i2c: 01 00 00 53 12 65 [09:43:24]Write i2c OK [09:43:24]MH_I2C_Read... [09:43:24]OFD Sender: No OFD packet to send [09:43:24]*** Cut start [09:43:24]*** Partial cut [09:43:24]*** CUTSNS_PIN = 1 [09:43:24]*** CUTSNS_PIN = 0 [09:43:24]*** Brake cut motor [09:43:25]Read from MH i2c: 01 [09:43:25]MH_I2C_Read... [09:43:25]*** Stop cut motor [09:43:25]*** Cut end [09:43:25]Read from MH i2c: 01 07 00 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: 01 07 00 53 12 00 00 00 00 00 FF 0F 7A [09:43:25]process_action close_receipt done [09:43:25]requested_data is exist [09:43:25]produce_requested_data [09:43:25]requested_item fm.sn is exist - process it [09:43:25]wFMCommunicate request_size=4 [09:43:25]MH_SAM_APDU [09:43:25]CAPDU: 80 11 00 00 [09:43:25]Write to MH i2c: E2 08 00 54 12 80 11 00 00 00 00 00 00 E0 [09:43:25]Write i2c OK [09:43:25]MH_I2C_Read... [09:43:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:25]Read from MH i2c: E2 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: E2 17 00 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: E2 17 00 54 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3B [09:43:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:43:25]wFMCommunicate OK [09:43:25]requested_item fd.num is exist - process it [09:43:25]SAM_PROTO_GetFieldsCounters [09:43:25]wFMCommunicate request_size=4 [09:43:25]MH_SAM_APDU [09:43:25]CAPDU: 80 13 00 00 [09:43:25]Write to MH i2c: E2 08 00 55 12 80 13 00 00 00 00 00 00 E3 [09:43:25]Write i2c OK [09:43:25]MH_I2C_Read... [09:43:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:25]Read from MH i2c: E2 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: E2 62 00 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: E2 62 00 55 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8A CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [09:43:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8A CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:25]wFMCommunicate OK [09:43:25]SAM_PROTO_GetFieldsCounters done [09:43:25]requested_item shift.num is exist - process it [09:43:25]requested_item shift.opened is exist - process it [09:43:25]req_shift_opened [09:43:25]FM_GetShiftState [09:43:25]SAM_PROTO_GetShiftState [09:43:25]wFMCommunicate request_size=4 [09:43:25]MH_SAM_APDU [09:43:25]CAPDU: 80 13 01 00 [09:43:25]Write to MH i2c: E2 08 00 56 12 80 13 01 00 00 00 00 00 E5 [09:43:25]Write i2c OK [09:43:25]MH_I2C_Read... [09:43:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:25]Read from MH i2c: E2 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: E2 0E 00 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: E2 0E 00 56 12 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 BC [09:43:25]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:43:25]wFMCommunicate OK [09:43:25]SAM_PROTO_GetShiftState done [09:43:25]FM_GetShiftState done [09:43:25]req_shift_opened done [09:43:25]requested_item shift.open_date is exist - process it [09:43:25]req_shift_open_date [09:43:25]req_shift_open_date done [09:43:25]produce_requested_data done [09:43:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118410,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [09:43:25]process_action_free close_receipt [09:43:25]json_value_free [09:43:25]json_value_free done [09:43:25]process_json_proto returns [09:43:25]Send response to host [09:43:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118410,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [09:43:25]free response buf [09:43:25]execute_script done [09:43:25]execute_script returns [09:43:25]free content buf [09:43:25]Sock 9.Close socket [09:43:25]Sock 9.Thread stoped [09:43:29]OFD Sender: No OFD packet to send [09:43:34]OFD Sender: No OFD packet to send [09:43:39]OFD Sender: No OFD packet to send [09:43:44]OFD Sender: No OFD packet to send [09:43:49]OFD Sender: No OFD packet to send [09:43:54]OFD Sender: No OFD packet to send [09:43:59]OFD Sender: No OFD packet to send [09:44:04]OFD Sender: No OFD packet to send [09:44:09]OFD Sender: No OFD packet to send [09:44:14]OFD Sender: No OFD packet to send [09:44:19]OFD Sender: No OFD packet to send [09:44:24]OFD Sender: No OFD packet to send [09:44:29]OFD Sender: No OFD packet to send [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:44:59]accept exits with 7 [09:44:59]New connection [09:44:59]New thread 3066924388 created [09:44:59]Thread 3067067748 joined [09:44:59]Waiting for new connection... [09:44:59] Sock 7.Parse request [09:44:59]Sock 7.Check first char [09:44:59]Sock 7.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.45.7:8080 [09:44:59]Content-Length: 1150 [09:44:59]Content-Type: application/json [09:44:59] [09:44:59]POST finish read [09:44:59]Found Content-Length = 1150 [09:44: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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949283\u000A28.07.2024 09:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 10.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 678.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30159216\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "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" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949283\u000A28.07.2024 09:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 10.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 678.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30159216\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "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=print_text [09:44:59]process_action print_text [09:44:59]cmd_print_text [09:44:59]ExternCall_PrintAddStr [09:44:59]wPrintStart [09:44:59]Write to MH i2c: 01 00 00 57 12 69 [09:44:59]Write i2c OK [09:44:59]MH_I2C_Read... [09:44:59]Read from MH i2c: 01 [09:44:59]MH_I2C_Read... [09:44:59]Read from MH i2c: 01 07 00 [09:44:59]MH_I2C_Read... [09:44:59]Read from MH i2c: 01 07 00 57 12 00 00 00 00 00 FF 0F 7E [09:44:59]RasterBufferAndPrint [09:44:59]line *****ТОВАРНЫЙ ЧЕК***** [09:44:59]line АЗС-134 [09:44:59]line Партнер нефть [09:44:59]line 02508201610067 [09:44:59]line Кассир : Хошимов З. [09:44:59]line Счет N : (1)949283 [09:44:59]line 28.07.2024 09:43 [09:44:59]line ПРОДАЖА [09:44:59]line ТРК (МРК, ГНК): 61 [09:44:59]line Вид ГСМ : 2710124130 [09:44:59]line Аи-92-К-4 [09:44:59]line 10.000 x 67.80 [09:44:59]line ИТОГ: 678.00 [09:44:59]line Тип оплаты: Талоны: ТК ГПНА Online [09:44:59]line 30159216 [09:44:59]line ______________________ [09:44:59]line (подпись) [09:44:59]written 0, free lines is 4095 [09:45:00]Write to MH i2c: 01 00 00 6B 12 7D [09:45:00]Write i2c OK [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: 01 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: 01 07 00 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: 01 07 00 6B 12 00 00 00 00 00 10 0E A2 [09:45:00]RasterBufferAndPrint [09:45:00]line [09:45:00]line [09:45:00]line [09:45:00]line [09:45:00]line [09:45:00]written 0, free lines is 3601 [09:45:00]MH_Cut [09:45:00]Write to MH i2c: D1 01 00 72 12 01 56 [09:45:00]Write i2c OK [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: D1 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: D1 01 00 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: D1 01 00 72 12 00 55 [09:45:00]Write to MH i2c: 01 00 00 73 12 85 [09:45:00]Write i2c OK [09:45:00]MH_I2C_Read... [09:45:00]*** Cut start [09:45:00]*** Partial cut [09:45:00]*** CUTSNS_PIN = 1 [09:45:00]*** CUTSNS_PIN = 0 [09:45:00]*** Brake cut motor [09:45:01]Read from MH i2c: 01 [09:45:01]MH_I2C_Read... [09:45:01]*** Stop cut motor [09:45:01]*** Cut end [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 73 12 00 00 00 00 00 FF 0F 9A [09:45:01]process_action print_text done [09:45:01]requested_data is exist [09:45:01]produce_requested_data [09:45:01]requested_item fm.sn is exist - process it [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 74 12 80 11 00 00 00 00 00 00 00 [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 74 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5B [09:45:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:45:01]wFMCommunicate OK [09:45:01]requested_item fd.num is exist - process it [09:45:01]SAM_PROTO_GetFieldsCounters [09:45:01]wFMCommunicate request_size=4 [09:45:01]MH_SAM_APDU [09:45:01]CAPDU: 80 13 00 00 [09:45:01]Write to MH i2c: E2 08 00 75 12 80 13 00 00 00 00 00 00 03 [09:45:01]Write i2c OK [09:45:01]MH_I2C_Read... [09:45:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:01]Read from MH i2c: E2 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: E2 62 00 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: E2 62 00 75 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8A CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [09:45:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8A CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:01]wFMCommunicate OK [09:45:01]SAM_PROTO_GetFieldsCounters done [09:45:01]requested_item shift.num is exist - process it [09:45:01]requested_item shift.opened is exist - process it [09:45:01]req_shift_opened [09:45:01]FM_GetShiftState [09:45:01]SAM_PROTO_GetShiftState [09:45:01]wFMCommunicate request_size=4 [09:45:01]MH_SAM_APDU [09:45:01]CAPDU: 80 13 01 00 [09:45:01]Write to MH i2c: E2 08 00 76 12 80 13 01 00 00 00 00 00 05 [09:45:01]Write i2c OK [09:45:01]MH_I2C_Read... [09:45:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:01]Read from MH i2c: E2 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: E2 0E 00 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: E2 0E 00 76 12 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 DC [09:45:01]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:45:01]wFMCommunicate OK [09:45:01]SAM_PROTO_GetShiftState done [09:45:01]FM_GetShiftState done [09:45:01]req_shift_opened done [09:45:01]requested_item shift.open_date is exist - process it [09:45:01]req_shift_open_date [09:45:01]req_shift_open_date done [09:45:01]produce_requested_data done [09:45:01]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118410,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [09:45:01]process_action_free print_text [09:45:01]json_value_free [09:45:01]json_value_free done [09:45:01]process_json_proto returns [09:45:01]Send response to host [09:45:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118410,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [09:45:01]free response buf [09:45:01]execute_script done [09:45:01]execute_script returns [09:45:01]free content buf [09:45:01]Sock 7.Close socket [09:45:01]Sock 7.Thread stoped [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:14]OFD Sender: No OFD packet to send [09:45:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:29]OFD Sender: No OFD packet to send [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:47]accept exits with 9 [09:45:47]New connection [09:45:47]New thread 3067067748 created [09:45:47]Thread 3066924388 joined [09:45:47]Waiting for new connection... [09:45:47] Sock 9.Parse request [09:45:47]Sock 9.Check first char [09:45:47]Sock 9.First char is OK [09:45:47]request: POST /json_proto HTTP/1.0 [09:45:47]Method: POST [09:45:47]URL: /json_proto [09:45:47]Method is POST - this is cgi request [09:45:47]url: /json_proto [09:45:47]query_string will be loaded in cgi processing [09:45:47]execute_cgi json_proto POST (null) [09:45:47]execute_cgi path=json_proto method=POST [09:45:47]POST find Content-Length [09:45:47]Host: 172.17.45.7:8080 [09:45:47]Content-Length: 677 [09:45:47]Content-Type: application/json [09:45:47] [09:45:47]POST finish read [09:45:47]Found Content-Length = 677 [09:45:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:47]execute_script... [09:45: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)949286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:47]POST & json_proto [09:45:47]process_json_proto [09:45:47]json parsed OK: [09:45:47]protocol is kg_v1.0 [09:45:47]action value=close_receipt [09:45:47]process_action close_receipt [09:45:47]cmd_close_receipt [09:45:47]MH_GetDate [09:45:47]Write to MH i2c: F0 00 00 77 12 78 [09:45:47]Write i2c OK [09:45:47]MH_I2C_Read... [09:45:47]Read from MH i2c: F0 [09:45:47]MH_I2C_Read... [09:45:47]Read from MH i2c: F0 09 00 [09:45:47]MH_I2C_Read... [09:45:47]Read from MH i2c: F0 09 00 77 12 00 4D 13 A6 66 90 0F 3E 66 30 [09:45:47]GetLastDocTimeStamp 1722159803 [09:45:47]current date 1722159949 [09:45:47]FM_GetShiftState [09:45:47]SAM_PROTO_GetShiftState [09:45:47]wFMCommunicate request_size=4 [09:45:47]MH_SAM_APDU [09:45:47]CAPDU: 80 13 01 00 [09:45:47]Write to MH i2c: E2 08 00 78 12 80 13 01 00 00 00 00 00 07 [09:45:47]Write i2c OK [09:45:47]MH_I2C_Read... [09:45:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:47]Read from MH i2c: E2 [09:45:47]MH_I2C_Read... [09:45:47]Read from MH i2c: E2 0E 00 [09:45:47]MH_I2C_Read... [09:45:47]Read from MH i2c: E2 0E 00 78 12 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 DE [09:45:47]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:45:47]wFMCommunicate OK [09:45:47]SAM_PROTO_GetShiftState done [09:45:47]FM_GetShiftState done [09:45:47]opened in 1722125364 [09:45:47]opened+sec_in_day 1722211764 [09:45:47]quantity*price = 20001 [09:45:47]sum+1 = 20002 [09:45:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 80 28.07.2024 09:45 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118411 ФПД: 106192761547025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T094549&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118411&fm=106192761547025&tin=02508201610067®Number=0000000000092660&sum=20000 [09:45:48]StoreToDocumentArchive [09:45:48]shift 433 fd 118411 [09:45:48]save to /storage/0433/doc_00118411 [09:45:48]save last doc name /storage/0433/doc_00118411 to /storage/kkm_last_doc_name [09:45:48]save OK [09:45:48]Clear old archive folders... [09:45:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:45:48]tlvbuf is 0019FA00 [09:45:48]SAM_PROTO_ClearQueue [09:45:48]wFMCommunicate request_size=4 [09:45:48]MH_SAM_APDU [09:45:48]CAPDU: 80 09 00 00 [09:45:48]Write to MH i2c: E2 08 00 85 12 80 09 00 00 00 00 00 00 09 [09:45:48]Write i2c OK [09:45:48]MH_I2C_Read... [09:45:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:48]Read from MH i2c: E2 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: E2 03 00 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: E2 03 00 85 12 00 90 00 0B [09:45:48]RAPDU: 90 00 [09:45:48]wFMCommunicate OK [09:45:48]SAM_PROTO_ClearQueue done [09:45:48]KKMCreateOFDPacket [09:45:48]OFDProtocolAddRootSTLVToBuf [09:45:48]FM_MakeSignedData [09:45:48]FM_MakeSignedData [09:45:48]SAM_PROTO_SignData [09:45:48]wFMCommunicate request_size=4 [09:45:48]MH_SAM_APDU [09:45:48]CAPDU: 80 0D 01 02 [09:45:48]Write to MH i2c: E2 08 00 86 12 80 0D 01 02 00 00 00 00 11 [09:45:48]Write i2c OK [09:45:48]MH_I2C_Read... [09:45:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:48]Read from MH i2c: E2 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: E2 03 00 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: E2 03 00 86 12 00 90 00 0C [09:45:48]RAPDU: 90 00 [09:45:48]wFMCommunicate OK [09:45:48]wFMCommunicate request_size=255 [09:45:48]MH_SAM_APDU [09:45:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 4D 13 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8B CE 01 00 35 04 06 00 60 [09:45:48]Write to MH i2c: E2 02 01 87 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 4D 13 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8B CE 01 00 35 04 06 00 60 00 00 BF [09:45:48]Write i2c OK [09:45:48]MH_I2C_Read... [09:45:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:48]Read from MH i2c: E2 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: E2 03 00 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: E2 03 00 87 12 00 90 00 0D [09:45:48]RAPDU: 90 00 [09:45:48]wFMCommunicate OK [09:45:48]wFMCommunicate request_size=10 [09:45:48]MH_SAM_APDU [09:45:48]CAPDU: 80 0D 02 02 05 94 ED D4 69 11 [09:45:48]Write to MH i2c: E2 0D 00 88 12 80 0D 02 02 05 00 94 ED D4 69 11 00 00 ED [09:45:48]Write i2c OK [09:45:48]MH_I2C_Read... [09:45:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:48]Read from MH i2c: E2 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: E2 03 00 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: E2 03 00 88 12 00 90 00 0E [09:45:48]RAPDU: 90 00 [09:45:48]wFMCommunicate OK [09:45:48]wFMCommunicate request_size=4 [09:45:48]MH_SAM_APDU [09:45:48]CAPDU: 80 0D 03 02 [09:45:48]Write to MH i2c: E2 08 00 89 12 80 0D 03 02 00 00 00 00 16 [09:45:48]Write i2c OK [09:45:48]MH_I2C_Read... [09:45:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:48]Read from MH i2c: E2 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: E2 0B 00 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: E2 0B 00 89 12 00 5E 24 75 FE 50 20 E1 5C 90 00 B9 [09:45:48]RAPDU: 5E 24 75 FE 50 20 E1 5C 90 00 [09:45:48]wFMCommunicate OK [09:45:48]SAM_PROTO_SignData done [09:45:48]FM_MakeSignedData done [09:45:48]CreateOFDProtocolMessage [09:45:48]wFMCommunicate request_size=4 [09:45:48]MH_SAM_APDU [09:45:48]CAPDU: 80 11 00 00 [09:45:48]Write to MH i2c: E2 08 00 8A 12 80 11 00 00 00 00 00 00 16 [09:45:48]Write i2c OK [09:45:48]MH_I2C_Read... [09:45:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:48]Read from MH i2c: E2 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: E2 17 00 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: E2 17 00 8A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 71 [09:45:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:45:48]wFMCommunicate OK [09:45:48]CreateOFDProtocolMessage done [09:45:48]OFDSenderStorePacket 118411 [09:45:48]StoreOFDPacket docnum=118411 [09:45:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 3B C9 07 01 8D 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 4D 13 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8B CE 01 00 35 04 06 00 60 94 ED D4 69 11 5E 24 75 FE 50 20 E1 5C [09:45:48]CheckFolder [09:45:48]dirname=/storage/ofd_packets [09:45:48]CheckFolder done [09:45:48]ProducePacketName [09:45:48]name=ofd_packets/00118411 [09:45:48]NVStorageSaveData ofd_packets/00118411 [09:45:48]File name is /storage/ofd_packets/00118411 [09:45:48]Write 301 bytes [09:45:48]NVStorageSaveData done [09:45:48]OFDSenderStorePacket done [09:45:48]KKMCreateOFDPacket done [09:45:48]NVStorageSaveData kkm_last_timestamp [09:45:48]File name is /storage/kkm_last_timestamp [09:45:48]Write 4 bytes [09:45:48]NVStorageSaveData done [09:45:48]ExternCall_PrintAddStr [09:45:48]wPrintStart [09:45:48]Write to MH i2c: 01 00 00 8B 12 9D [09:45:48]Write i2c OK [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: 01 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: 01 07 00 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: 01 07 00 8B 12 00 00 00 00 00 FF 0F B2 [09:45:48]RasterBufferAndPrint [09:45:48]line Счет N : (1)949286 [09:45:48]line ИНН: 02508201610067 [09:45:48]line Контрольно-Кассовый Чек [09:45:48]line ПРОДАЖА [09:45:48]line ТРК (МРК, ГНК) : 31 [09:45:48]line Товар: 2710124130 [09:45:48]line Аи-92-К-4 [09:45:48]line 2.950 * 67.80 [09:45:48]line = 200.01 [09:45:48]line НДС 12% НСП 1% [09:45:48]line > о реализуемом товаре [09:45:48]line ОКРУГЛЕНИЕ: -0.01 [09:45:48]line ИТОГО: 200.00 [09:45:48]line Внесено: 200.00 [09:45:48]line СДАЧА: 0.00 [09:45:48]line НСП 1% : 1.77 [09:45:48]line НДС 12% : 21.24 [09:45:48]line Наличными: 200.00 [09:45:48]line Безнал.: 0.00 [09:45:48]line Место: АЗС № 134 "Партнер Нефть" [09:45:48]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:45:48]line СНО: Общий режим [09:45:48]line Чек 80 28.07.2024 09:45 [09:45:48]line Смена: 433 ФФД: 1.0 [09:45:48]line ЗНМ: 0300000044 [09:45:48]line РНМ: 0000000000092660 [09:45:48]line Версия ККМ: 001 [09:45:48]line ФМ: 0000000000874939 [09:45:48]line ФД: 118411 [09:45:48]line ФПД: 106192761547025 [09:45:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T094549&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118411&fm=106192761547025&tin=02508201610067®Number=0000000000092660&sum=20000 [09:45:49]OFD Sender: Processing packet 118411 [packets to send 86, broken 85] [09:45:49]ProducePacketName [09:45:49]name=ofd_packets/00118411 [09:45:49]OFD Sender: To server: pG, [09:45:49]CommunicateWithHost lk.salyk.kg:30040 [09:45:49]ConnectInit lk.salyk.kg [09:45:49]written 0, free lines is 4095 [09:45:49]Connected sock=10 [09:45: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 39 33 39 0F 01 00 00 3B C9 07 01 8D 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 4D 13 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8B CE 01 00 35 04 06 00 60 94 ED D4 69 11 5E 24 75 FE 50 20 E1 5C [09:45:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 09 1F 47 00 46 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8B CE 01 00 F4 03 04 00 DE C0 A5 66 B6 04 01 00 00 90 A3 F2 AF 5D B1 B1 49 [09:45:49]CommunicateWithHost err = 0 [09:45:49]CheckOFDResponse [09:45:49]1017 (14) - 77093643461234 [09:45:49]1041 (16) - 0000000000874939 [09:45:49]1040 (4) - 118411 [09:45:49]1012 (4) - 28.07.2024 03:54 [09:45:49]1206 (1) - 0 [09:45:49]OFD Sender: Remove packet 118411 [09:45:49]ProducePacketName [09:45:49]name=ofd_packets/00118411 [09:45:49]NVStorageDeleteData [09:45:49]Write to MH i2c: 01 00 00 B5 12 C7 [09:45:49]Write i2c OK [09:45:49]MH_I2C_Read... [09:45:49]Read from MH i2c: 01 [09:45:49]MH_I2C_Read... [09:45:49]Read from MH i2c: 01 07 00 [09:45:49]MH_I2C_Read... [09:45:49]Read from MH i2c: 01 07 00 B5 12 00 00 00 00 00 ED 0C C7 [09:45:49]RasterBufferAndPrint [09:45:49]line [09:45:49]line [09:45:49]line [09:45:49]line [09:45:49]line [09:45:49]written 0, free lines is 3315 [09:45:49]MH_Cut [09:45:49]Write to MH i2c: D1 01 00 BC 12 01 A0 [09:45:49]Write i2c OK [09:45:49]MH_I2C_Read... [09:45:49]Read from MH i2c: D1 [09:45:49]MH_I2C_Read... [09:45:49]Read from MH i2c: D1 01 00 [09:45:49]MH_I2C_Read... [09:45:49]Read from MH i2c: D1 01 00 BC 12 00 9F [09:45:49]Write to MH i2c: 01 00 00 BD 12 CF [09:45:49]Write i2c OK [09:45:49]MH_I2C_Read... [09:45:50]OFD Sender: No OFD packet to send [09:45:50]*** Cut start [09:45:50]*** Partial cut [09:45:50]*** CUTSNS_PIN = 1 [09:45:50]*** CUTSNS_PIN = 0 [09:45:50]*** Brake cut motor [09:45:51]Read from MH i2c: 01 [09:45:51]MH_I2C_Read... [09:45:51]*** Stop cut motor [09:45:51]*** Cut end [09:45:51]Read from MH i2c: 01 07 00 [09:45:51]MH_I2C_Read... [09:45:51]Read from MH i2c: 01 07 00 BD 12 00 00 00 00 00 FF 0F E4 [09:45:51]process_action close_receipt done [09:45:51]requested_data is exist [09:45:51]produce_requested_data [09:45:51]requested_item fm.sn is exist - process it [09:45:51]wFMCommunicate request_size=4 [09:45:51]MH_SAM_APDU [09:45:51]CAPDU: 80 11 00 00 [09:45:51]Write to MH i2c: E2 08 00 BE 12 80 11 00 00 00 00 00 00 4A [09:45:51]Write i2c OK [09:45:51]MH_I2C_Read... [09:45:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:51]Read from MH i2c: E2 [09:45:51]MH_I2C_Read... [09:45:51]Read from MH i2c: E2 17 00 [09:45:51]MH_I2C_Read... [09:45:51]Read from MH i2c: E2 17 00 BE 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A5 [09:45:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:45:51]wFMCommunicate OK [09:45:51]requested_item fd.num is exist - process it [09:45:51]SAM_PROTO_GetFieldsCounters [09:45:51]wFMCommunicate request_size=4 [09:45:51]MH_SAM_APDU [09:45:51]CAPDU: 80 13 00 00 [09:45:51]Write to MH i2c: E2 08 00 BF 12 80 13 00 00 00 00 00 00 4D [09:45:51]Write i2c OK [09:45:51]MH_I2C_Read... [09:45:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:51]Read from MH i2c: E2 [09:45:51]MH_I2C_Read... [09:45:51]Read from MH i2c: E2 62 00 [09:45:51]MH_I2C_Read... [09:45:51]Read from MH i2c: E2 62 00 BF 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8B CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [09:45:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8B CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:51]wFMCommunicate OK [09:45:51]SAM_PROTO_GetFieldsCounters done [09:45:51]requested_item shift.num is exist - process it [09:45:51]requested_item shift.opened is exist - process it [09:45:51]req_shift_opened [09:45:51]FM_GetShiftState [09:45:51]SAM_PROTO_GetShiftState [09:45:51]wFMCommunicate request_size=4 [09:45:51]MH_SAM_APDU [09:45:51]CAPDU: 80 13 01 00 [09:45:51]Write to MH i2c: E2 08 00 C0 12 80 13 01 00 00 00 00 00 4F [09:45:51]Write i2c OK [09:45:51]MH_I2C_Read... [09:45:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:51]Read from MH i2c: E2 [09:45:51]MH_I2C_Read... [09:45:51]Read from MH i2c: E2 0E 00 [09:45:51]MH_I2C_Read... [09:45:51]Read from MH i2c: E2 0E 00 C0 12 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 26 [09:45:51]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:45:51]wFMCommunicate OK [09:45:51]SAM_PROTO_GetShiftState done [09:45:51]FM_GetShiftState done [09:45:51]req_shift_opened done [09:45:51]requested_item shift.open_date is exist - process it [09:45:51]req_shift_open_date [09:45:51]req_shift_open_date done [09:45:51]produce_requested_data done [09:45:51]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118411,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [09:45:51]process_action_free close_receipt [09:45:51]json_value_free [09:45:51]json_value_free done [09:45:51]process_json_proto returns [09:45:51]Send response to host [09:45:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118411,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [09:45:51]free response buf [09:45:51]execute_script done [09:45:51]execute_script returns [09:45:51]free content buf [09:45:51]Sock 9.Close socket [09:45:51]Sock 9.Thread stoped [09:45:55]OFD Sender: No OFD packet to send [09:46:00]OFD Sender: No OFD packet to send [09:46:05]OFD Sender: No OFD packet to send [09:46:10]OFD Sender: No OFD packet to send [09:46:15]OFD Sender: No OFD packet to send [09:46:20]OFD Sender: No OFD packet to send [09:46:25]OFD Sender: No OFD packet to send [09:46:30]OFD Sender: No OFD packet to send [09:46:35]OFD Sender: No OFD packet to send [09:46:37]accept exits with 7 [09:46:37]New connection [09:46:37]New thread 3066924388 created [09:46:37]Thread 3067067748 joined [09:46:37]Waiting for new connection... [09:46:37] Sock 7.Parse request [09:46:37]Sock 7.Check first char [09:46:37]Sock 7.First char is OK [09:46:37]request: POST /json_proto HTTP/1.0 [09:46:37]Method: POST [09:46:37]URL: /json_proto [09:46:37]Method is POST - this is cgi request [09:46:37]url: /json_proto [09:46:37]query_string will be loaded in cgi processing [09:46:37]execute_cgi json_proto POST (null) [09:46:37]execute_cgi path=json_proto method=POST [09:46:37]POST find Content-Length [09:46:37]Host: 172.17.45.7:8080 [09:46:37]Content-Length: 677 [09:46:37]Content-Type: application/json [09:46:37] [09:46:37]POST finish read [09:46:37]Found Content-Length = 677 [09:46:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:46:37]execute_script... [09:46: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)949287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:46:37]POST & json_proto [09:46:37]process_json_proto [09:46:37]json parsed OK: [09:46:37]protocol is kg_v1.0 [09:46:37]action value=close_receipt [09:46:37]process_action close_receipt [09:46:37]cmd_close_receipt [09:46:37]MH_GetDate [09:46:37]Write to MH i2c: F0 00 00 C1 12 C2 [09:46:37]Write i2c OK [09:46:37]MH_I2C_Read... [09:46:37]Read from MH i2c: F0 [09:46:37]MH_I2C_Read... [09:46:37]Read from MH i2c: F0 09 00 [09:46:37]MH_I2C_Read... [09:46:37]Read from MH i2c: F0 09 00 C1 12 00 7F 13 A6 66 90 0F 3E 66 AC [09:46:37]GetLastDocTimeStamp 1722159949 [09:46:37]current date 1722159999 [09:46:37]FM_GetShiftState [09:46:37]SAM_PROTO_GetShiftState [09:46:37]wFMCommunicate request_size=4 [09:46:37]MH_SAM_APDU [09:46:37]CAPDU: 80 13 01 00 [09:46:37]Write to MH i2c: E2 08 00 C2 12 80 13 01 00 00 00 00 00 51 [09:46:37]Write i2c OK [09:46:37]MH_I2C_Read... [09:46:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:37]Read from MH i2c: E2 [09:46:37]MH_I2C_Read... [09:46:37]Read from MH i2c: E2 0E 00 [09:46:37]MH_I2C_Read... [09:46:37]Read from MH i2c: E2 0E 00 C2 12 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 28 [09:46:37]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:46:37]wFMCommunicate OK [09:46:37]SAM_PROTO_GetShiftState done [09:46:37]FM_GetShiftState done [09:46:37]opened in 1722125364 [09:46:37]opened+sec_in_day 1722211764 [09:46:37]quantity*price = 40002 [09:46:37]sum+1 = 40003 [09:46:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 81 28.07.2024 09:46 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118412 ФПД: 269796237752361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T094639&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118412&fm=269796237752361&tin=02508201610067®Number=0000000000092660&sum=40000 [09:46:38]StoreToDocumentArchive [09:46:38]shift 433 fd 118412 [09:46:38]save to /storage/0433/doc_00118412 [09:46:38]save last doc name /storage/0433/doc_00118412 to /storage/kkm_last_doc_name [09:46:38]save OK [09:46:38]Clear old archive folders... [09:46:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:46:38]tlvbuf is B6EC4A10 [09:46:38]SAM_PROTO_ClearQueue [09:46:38]wFMCommunicate request_size=4 [09:46:38]MH_SAM_APDU [09:46:38]CAPDU: 80 09 00 00 [09:46:38]Write to MH i2c: E2 08 00 CF 12 80 09 00 00 00 00 00 00 53 [09:46:38]Write i2c OK [09:46:38]MH_I2C_Read... [09:46:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:38]Read from MH i2c: E2 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: E2 03 00 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: E2 03 00 CF 12 00 90 00 55 [09:46:38]RAPDU: 90 00 [09:46:38]wFMCommunicate OK [09:46:38]SAM_PROTO_ClearQueue done [09:46:38]KKMCreateOFDPacket [09:46:38]OFDProtocolAddRootSTLVToBuf [09:46:38]FM_MakeSignedData [09:46:38]FM_MakeSignedData [09:46:38]SAM_PROTO_SignData [09:46:38]wFMCommunicate request_size=4 [09:46:38]MH_SAM_APDU [09:46:38]CAPDU: 80 0D 01 02 [09:46:38]Write to MH i2c: E2 08 00 D0 12 80 0D 01 02 00 00 00 00 5B [09:46:38]Write i2c OK [09:46:38]MH_I2C_Read... [09:46:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:38]Read from MH i2c: E2 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: E2 03 00 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: E2 03 00 D0 12 00 90 00 56 [09:46:38]RAPDU: 90 00 [09:46:38]wFMCommunicate OK [09:46:38]wFMCommunicate request_size=255 [09:46:38]MH_SAM_APDU [09: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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 51 00 00 00 F4 03 04 00 7F 13 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8C CE 01 00 35 04 06 00 F5 [09:46:38]Write to MH i2c: E2 02 01 D1 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 51 00 00 00 F4 03 04 00 7F 13 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8C CE 01 00 35 04 06 00 F5 00 00 B5 [09:46:38]Write i2c OK [09:46:38]MH_I2C_Read... [09:46:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:38]Read from MH i2c: E2 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: E2 03 00 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: E2 03 00 D1 12 00 90 00 57 [09:46:38]RAPDU: 90 00 [09:46:38]wFMCommunicate OK [09:46:38]wFMCommunicate request_size=10 [09:46:38]MH_SAM_APDU [09:46:38]CAPDU: 80 0D 02 02 05 60 D4 E9 B8 29 [09:46:38]Write to MH i2c: E2 0D 00 D2 12 80 0D 02 02 05 00 60 D4 E9 B8 29 00 00 66 [09:46:38]Write i2c OK [09:46:38]MH_I2C_Read... [09:46:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:38]Read from MH i2c: E2 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: E2 03 00 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: E2 03 00 D2 12 00 90 00 58 [09:46:38]RAPDU: 90 00 [09:46:38]wFMCommunicate OK [09:46:38]wFMCommunicate request_size=4 [09:46:38]MH_SAM_APDU [09:46:38]CAPDU: 80 0D 03 02 [09:46:38]Write to MH i2c: E2 08 00 D3 12 80 0D 03 02 00 00 00 00 60 [09:46:38]Write i2c OK [09:46:38]MH_I2C_Read... [09:46:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:38]Read from MH i2c: E2 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: E2 0B 00 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: E2 0B 00 D3 12 00 69 D8 D4 0C 79 C6 57 18 90 00 30 [09:46:38]RAPDU: 69 D8 D4 0C 79 C6 57 18 90 00 [09:46:38]wFMCommunicate OK [09:46:38]SAM_PROTO_SignData done [09:46:38]FM_MakeSignedData done [09:46:38]CreateOFDProtocolMessage [09:46:38]wFMCommunicate request_size=4 [09:46:38]MH_SAM_APDU [09:46:38]CAPDU: 80 11 00 00 [09:46:38]Write to MH i2c: E2 08 00 D4 12 80 11 00 00 00 00 00 00 60 [09:46:38]Write i2c OK [09:46:38]MH_I2C_Read... [09:46:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:38]Read from MH i2c: E2 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: E2 17 00 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: E2 17 00 D4 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BB [09:46:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:46:38]wFMCommunicate OK [09:46:38]CreateOFDProtocolMessage done [09:46:38]OFDSenderStorePacket 118412 [09:46:38]StoreOFDPacket docnum=118412 [09:46:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 BF BB 07 01 34 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 51 00 00 00 F4 03 04 00 7F 13 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8C CE 01 00 35 04 06 00 F5 60 D4 E9 B8 29 69 D8 D4 0C 79 C6 57 18 [09:46:38]CheckFolder [09:46:38]dirname=/storage/ofd_packets [09:46:38]CheckFolder done [09:46:38]ProducePacketName [09:46:38]name=ofd_packets/00118412 [09:46:38]NVStorageSaveData ofd_packets/00118412 [09:46:38]File name is /storage/ofd_packets/00118412 [09:46:38]Write 301 bytes [09:46:38]NVStorageSaveData done [09:46:38]OFDSenderStorePacket done [09:46:38]KKMCreateOFDPacket done [09:46:38]NVStorageSaveData kkm_last_timestamp [09:46:38]File name is /storage/kkm_last_timestamp [09:46:38]Write 4 bytes [09:46:38]NVStorageSaveData done [09:46:38]ExternCall_PrintAddStr [09:46:38]wPrintStart [09:46:38]Write to MH i2c: 01 00 00 D5 12 E7 [09:46:38]Write i2c OK [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: 01 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: 01 07 00 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: 01 07 00 D5 12 00 00 00 00 00 FF 0F FC [09:46:38]RasterBufferAndPrint [09:46:38]line Счет N : (1)949287 [09:46:38]line ИНН: 02508201610067 [09:46:38]line Контрольно-Кассовый Чек [09:46:38]line ПРОДАЖА [09:46:38]line ТРК (МРК, ГНК) : 61 [09:46:38]line Товар: 2710124130 [09:46:38]line Аи-92-К-4 [09:46:38]line 5.900 * 67.80 [09:46:38]line = 400.02 [09:46:38]line НДС 12% НСП 1% [09:46:38]line > о реализуемом товаре [09:46:38]line ОКРУГЛЕНИЕ: -0.02 [09:46:38]line ИТОГО: 400.00 [09:46:38]line Внесено: 400.00 [09:46:38]line СДАЧА: 0.00 [09:46:38]line НСП 1% : 3.54 [09:46:38]line НДС 12% : 42.48 [09:46:38]line Наличными: 400.00 [09:46:38]line Безнал.: 0.00 [09:46:38]line Место: АЗС № 134 "Партнер Нефть" [09:46:38]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:46:38]line СНО: Общий режим [09:46:38]line Чек 81 28.07.2024 09:46 [09:46:38]line Смена: 433 ФФД: 1.0 [09:46:38]line ЗНМ: 0300000044 [09:46:38]line РНМ: 0000000000092660 [09:46:38]line Версия ККМ: 001 [09:46:38]line ФМ: 0000000000874939 [09:46:38]line ФД: 118412 [09:46:38]line ФПД: 269796237752361 [09:46:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T094639&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118412&fm=269796237752361&tin=02508201610067®Number=0000000000092660&sum=40000 [09:46:39]OFD Sender: Processing packet 118412 [packets to send 86, broken 85] [09:46:39]ProducePacketName [09:46:39]name=ofd_packets/00118412 [09:46:39]OFD Sender: To server: pG, [09:46:39]CommunicateWithHost lk.salyk.kg:30040 [09:46:39]ConnectInit lk.salyk.kg [09:46:39]written 0, free lines is 4095 [09:46:39]Connected sock=11 [09:46: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 39 33 39 0F 01 00 00 BF BB 07 01 34 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 51 00 00 00 F4 03 04 00 7F 13 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8C CE 01 00 35 04 06 00 F5 60 D4 E9 B8 29 69 D8 D4 0C 79 C6 57 18 [09: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 39 33 39 4F 00 00 00 C7 99 47 00 A3 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 39 33 39 10 04 04 00 8C CE 01 00 F4 03 04 00 0F C1 A5 66 B6 04 01 00 00 E5 96 35 DD 07 01 AA 62 [09:46:39]CommunicateWithHost err = 0 [09:46:39]CheckOFDResponse [09:46:39]1017 (14) - 77093643461234 [09:46:39]1041 (16) - 0000000000874939 [09:46:39]1040 (4) - 118412 [09:46:39]1012 (4) - 28.07.2024 03:54 [09:46:39]1206 (1) - 0 [09:46:39]OFD Sender: Remove packet 118412 [09:46:39]ProducePacketName [09:46:39]name=ofd_packets/00118412 [09:46:39]NVStorageDeleteData [09:46:39]Write to MH i2c: 01 00 00 FF 12 11 [09:46:39]Write i2c OK [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: 01 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: 01 07 00 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: 01 07 00 FF 12 00 00 00 00 00 EB 0C 0F [09:46:39]RasterBufferAndPrint [09:46:39]line [09:46:39]line [09:46:39]line [09:46:39]line [09:46:39]line [09:46:39]written 0, free lines is 3315 [09:46:39]MH_Cut [09:46:39]Write to MH i2c: D1 01 00 06 13 01 EB [09:46:39]Write i2c OK [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: D1 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: D1 01 00 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: D1 01 00 06 13 00 EA [09:46:39]Write to MH i2c: 01 00 00 07 13 1A [09:46:39]Write i2c OK [09:46:39]MH_I2C_Read... [09:46:40]OFD Sender: No OFD packet to send [09:46:40]*** Cut start [09:46:40]*** Partial cut [09:46:40]*** CUTSNS_PIN = 1 [09:46:40]*** CUTSNS_PIN = 0 [09:46:40]*** Brake cut motor [09:46:40]Read from MH i2c: 01 [09:46:40]MH_I2C_Read... [09:46:40]*** Stop cut motor [09:46:40]Read from MH i2c: 01 07 00 [09:46:40]MH_I2C_Read... [09:46:40]*** Cut end [09:46:40]Read from MH i2c: 01 07 00 07 13 00 00 00 00 00 FF 0F 2F [09:46:40]process_action close_receipt done [09:46:40]requested_data is exist [09:46:40]produce_requested_data [09:46:40]requested_item fm.sn is exist - process it [09:46:40]wFMCommunicate request_size=4 [09:46:41]MH_SAM_APDU [09:46:41]CAPDU: 80 11 00 00 [09:46:41]Write to MH i2c: E2 08 00 08 13 80 11 00 00 00 00 00 00 95 [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:41]Read from MH i2c: E2 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 17 00 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 17 00 08 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F0 [09:46:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:46:41]wFMCommunicate OK [09:46:41]requested_item fd.num is exist - process it [09:46:41]SAM_PROTO_GetFieldsCounters [09:46:41]wFMCommunicate request_size=4 [09:46:41]MH_SAM_APDU [09:46:41]CAPDU: 80 13 00 00 [09:46:41]Write to MH i2c: E2 08 00 09 13 80 13 00 00 00 00 00 00 98 [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:41]Read from MH i2c: E2 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 62 00 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 62 00 09 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8C CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [09:46:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8C CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:41]wFMCommunicate OK [09:46:41]SAM_PROTO_GetFieldsCounters done [09:46:41]requested_item shift.num is exist - process it [09:46:41]requested_item shift.opened is exist - process it [09:46:41]req_shift_opened [09:46:41]FM_GetShiftState [09:46:41]SAM_PROTO_GetShiftState [09:46:41]wFMCommunicate request_size=4 [09:46:41]MH_SAM_APDU [09:46:41]CAPDU: 80 13 01 00 [09:46:41]Write to MH i2c: E2 08 00 0A 13 80 13 01 00 00 00 00 00 9A [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:41]Read from MH i2c: E2 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 0E 00 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 0E 00 0A 13 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 71 [09:46:41]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:46:41]wFMCommunicate OK [09:46:41]SAM_PROTO_GetShiftState done [09:46:41]FM_GetShiftState done [09:46:41]req_shift_opened done [09:46:41]requested_item shift.open_date is exist - process it [09:46:41]req_shift_open_date [09:46:41]req_shift_open_date done [09:46:41]produce_requested_data done [09:46:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118412,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [09:46:41]process_action_free close_receipt [09:46:41]json_value_free [09:46:41]json_value_free done [09:46:41]process_json_proto returns [09:46:41]Send response to host [09:46:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118412,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [09:46:41]free response buf [09:46:41]execute_script done [09:46:41]execute_script returns [09:46:41]free content buf [09:46:41]Sock 7.Close socket [09:46:41]Sock 7.Thread stoped [09:46:45]OFD Sender: No OFD packet to send [09:46:50]OFD Sender: No OFD packet to send [09:46:55]OFD Sender: No OFD packet to send [09:46:55]accept exits with 9 [09:46:55]New connection [09:46:55]New thread 3067067748 created [09:46:55]Thread 3066924388 joined [09:46:55]Waiting for new connection... [09:46:55] Sock 9.Parse request [09:46:55]Sock 9.Check first char [09:46:55]Sock 9.First char is OK [09:46:55]request: POST /json_proto HTTP/1.0 [09:46:55]Method: POST [09:46:55]URL: /json_proto [09:46:55]Method is POST - this is cgi request [09:46:55]url: /json_proto [09:46:55]query_string will be loaded in cgi processing [09:46:55]execute_cgi json_proto POST (null) [09:46:55]execute_cgi path=json_proto method=POST [09:46:55]POST find Content-Length [09:46:55]Host: 172.17.45.7:8080 [09:46:55]Content-Length: 822 [09:46:55]Content-Type: application/json [09:46:55] [09:46:55]POST finish read [09:46:55]Found Content-Length = 822 [09:46:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:55]execute_script... [09:46:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:55]POST & json_proto [09:46:55]process_json_proto [09:46:55]json parsed OK: [09:46:55]protocol is kg_v1.0 [09:46:55]action value=close_receipt [09:46:55]process_action close_receipt [09:46:55]cmd_close_receipt [09:46:55]MH_GetDate [09:46:55]Write to MH i2c: F0 00 00 0B 13 0D [09:46:55]Write i2c OK [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: F0 [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: F0 09 00 [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: F0 09 00 0B 13 00 91 13 A6 66 90 0F 3E 66 09 [09:46:55]GetLastDocTimeStamp 1722159999 [09:46:55]current date 1722160017 [09:46:55]FM_GetShiftState [09:46:55]SAM_PROTO_GetShiftState [09:46:55]wFMCommunicate request_size=4 [09:46:55]MH_SAM_APDU [09:46:55]CAPDU: 80 13 01 00 [09:46:55]Write to MH i2c: E2 08 00 0C 13 80 13 01 00 00 00 00 00 9C [09:46:55]Write i2c OK [09:46:55]MH_I2C_Read... [09:46:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:55]Read from MH i2c: E2 [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: E2 0E 00 [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: E2 0E 00 0C 13 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 73 [09:46:55]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:46:55]wFMCommunicate OK [09:46:55]SAM_PROTO_GetShiftState done [09:46:55]FM_GetShiftState done [09:46:55]opened in 1722125364 [09:46:55]opened+sec_in_day 1722211764 [09:46:55]quantity*price = 200043 [09:46:55]sum+1 = 200044 [09:46:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 82 28.07.2024 09:46 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118413 ФПД: 241592973362419 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T094657&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118413&fm=241592973362419&tin=02508201610067®Number=0000000000092660&sum=200000 [09:46:56]StoreToDocumentArchive [09:46:56]shift 433 fd 118413 [09:46:56]save to /storage/0433/doc_00118413 [09:46:56]save last doc name /storage/0433/doc_00118413 to /storage/kkm_last_doc_name [09:46:56]save OK [09:46:56]Clear old archive folders... [09:46:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:46:56]tlvbuf is 0013D330 [09:46:56]SAM_PROTO_ClearQueue [09:46:56]wFMCommunicate request_size=4 [09:46:56]MH_SAM_APDU [09:46:56]CAPDU: 80 09 00 00 [09:46:56]Write to MH i2c: E2 08 00 19 13 80 09 00 00 00 00 00 00 9E [09:46:56]Write i2c OK [09:46:56]MH_I2C_Read... [09:46:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:56]Read from MH i2c: E2 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: E2 03 00 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: E2 03 00 19 13 00 90 00 A0 [09:46:56]RAPDU: 90 00 [09:46:56]wFMCommunicate OK [09:46:56]SAM_PROTO_ClearQueue done [09:46:56]KKMCreateOFDPacket [09:46:56]OFDProtocolAddRootSTLVToBuf [09:46:56]FM_MakeSignedData [09:46:56]FM_MakeSignedData [09:46:56]SAM_PROTO_SignData [09:46:56]wFMCommunicate request_size=4 [09:46:56]MH_SAM_APDU [09:46:56]CAPDU: 80 0D 01 02 [09:46:56]Write to MH i2c: E2 08 00 1A 13 80 0D 01 02 00 00 00 00 A6 [09:46:56]Write i2c OK [09:46:56]MH_I2C_Read... [09:46:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:56]Read from MH i2c: E2 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: E2 03 00 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: E2 03 00 1A 13 00 90 00 A1 [09:46:56]RAPDU: 90 00 [09:46:56]wFMCommunicate OK [09:46:56]wFMCommunicate request_size=255 [09:46:56]MH_SAM_APDU [09:46: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 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 91 13 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8D CE 01 00 35 04 06 00 DB [09:46:56]Write to MH i2c: E2 02 01 1B 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 91 13 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8D CE 01 00 35 04 06 00 DB 00 00 CC [09:46:56]Write i2c OK [09:46:56]MH_I2C_Read... [09:46:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:57]Read from MH i2c: E2 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 1B 13 00 90 00 A2 [09:46:57]RAPDU: 90 00 [09:46:57]wFMCommunicate OK [09:46:57]wFMCommunicate request_size=10 [09:46:57]MH_SAM_APDU [09:46:57]CAPDU: 80 0D 02 02 05 BA 3F 5B 84 F3 [09:46:57]Write to MH i2c: E2 0D 00 1C 13 80 0D 02 02 05 00 BA 3F 5B 84 F3 00 00 7E [09:46:57]Write i2c OK [09:46:57]MH_I2C_Read... [09:46:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:57]Read from MH i2c: E2 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 1C 13 00 90 00 A3 [09:46:57]RAPDU: 90 00 [09:46:57]wFMCommunicate OK [09:46:57]wFMCommunicate request_size=4 [09:46:57]MH_SAM_APDU [09:46:57]CAPDU: 80 0D 03 02 [09:46:57]Write to MH i2c: E2 08 00 1D 13 80 0D 03 02 00 00 00 00 AB [09:46:57]Write i2c OK [09:46:57]MH_I2C_Read... [09:46:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:57]Read from MH i2c: E2 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 0B 00 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 0B 00 1D 13 00 60 BE A6 07 49 93 55 EA 90 00 92 [09:46:57]RAPDU: 60 BE A6 07 49 93 55 EA 90 00 [09:46:57]wFMCommunicate OK [09:46:57]SAM_PROTO_SignData done [09:46:57]FM_MakeSignedData done [09:46:57]CreateOFDProtocolMessage [09:46:57]wFMCommunicate request_size=4 [09:46:57]MH_SAM_APDU [09:46:57]CAPDU: 80 11 00 00 [09:46:57]Write to MH i2c: E2 08 00 1E 13 80 11 00 00 00 00 00 00 AB [09:46:57]Write i2c OK [09:46:57]MH_I2C_Read... [09:46:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:57]Read from MH i2c: E2 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 17 00 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 17 00 1E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 06 [09:46:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:46:57]wFMCommunicate OK [09:46:57]CreateOFDProtocolMessage done [09:46:57]OFDSenderStorePacket 118413 [09:46:57]StoreOFDPacket docnum=118413 [09:46:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DD DF 07 01 B1 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 91 13 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8D CE 01 00 35 04 06 00 DB BA 3F 5B 84 F3 60 BE A6 07 49 93 55 EA [09:46:57]CheckFolder [09:46:57]dirname=/storage/ofd_packets [09:46:57]CheckFolder done [09:46:57]ProducePacketName [09:46:57]name=ofd_packets/00118413 [09:46:57]NVStorageSaveData ofd_packets/00118413 [09:46:57]File name is /storage/ofd_packets/00118413 [09:46:57]Write 301 bytes [09:46:57]NVStorageSaveData done [09:46:57]OFDSenderStorePacket done [09:46:57]KKMCreateOFDPacket done [09:46:57]NVStorageSaveData kkm_last_timestamp [09:46:57]File name is /storage/kkm_last_timestamp [09:46:57]Write 4 bytes [09:46:57]NVStorageSaveData done [09:46:57]ExternCall_PrintAddStr [09:46:57]wPrintStart [09:46:57]Write to MH i2c: 01 00 00 1F 13 32 [09:46:57]Write i2c OK [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: 01 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: 01 07 00 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: 01 07 00 1F 13 00 00 00 00 00 FF 0F 47 [09:46:57]RasterBufferAndPrint [09:46:57]line Счет N : (1)949285 [09:46:57]line ИНН: 02508201610067 [09:46:57]line Контрольно-Кассовый Чек [09:46:57]line ПРОДАЖА [09:46:57]line ТРК (МРК, ГНК) : 43 [09:46:57]line Товар: 2710124500 [09:46:57]line Аи-95-К-3 [09:46:57]line 26.960 * 74.20 [09:46:57]line = 2000.43 [09:46:57]line НДС 12% НСП 1% [09:46:57]line > о реализуемом товаре [09:46:57]line ОКРУГЛЕНИЕ: -0.43 [09:46:57]line ИТОГО: 2000.00 [09:46:57]line НСП 1% : 17.70 [09:46:57]line НДС 12% : 212.43 [09:46:57]line Наличными: 0.00 [09:46:57]line Безнал.: 2000.00 [09:46:57]line Место: АЗС № 134 "Партнер Нефть" [09:46:57]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:46:57]line СНО: Общий режим [09:46:57]line Чек 82 28.07.2024 09:46 [09:46:57]line Смена: 433 ФФД: 1.0 [09:46:57]line ЗНМ: 0300000044 [09:46:57]line РНМ: 0000000000092660 [09:46:57]line Версия ККМ: 001 [09:46:57]line Платежная система: O! деньги [09:46:57]line ФМ: 0000000000874939 [09:46:57]line ФД: 118413 [09:46:57]line ФПД: 241592973362419 [09:46:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T094657&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118413&fm=241592973362419&tin=02508201610067®Number=0000000000092660&sum=200000 [09:46:57]written 0, free lines is 4095 [09:46:57]OFD Sender: Processing packet 118413 [packets to send 86, broken 85] [09:46:57]ProducePacketName [09:46:57]name=ofd_packets/00118413 [09:46:57]OFD Sender: To server: pG, [09:46:57]CommunicateWithHost lk.salyk.kg:30040 [09:46:57]ConnectInit lk.salyk.kg [09:46:57]Connected sock=10 [09:46:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DD DF 07 01 B1 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 91 13 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8D CE 01 00 35 04 06 00 DB BA 3F 5B 84 F3 60 BE A6 07 49 93 55 EA [09:46:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 19 0A 47 00 CF 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 39 33 39 10 04 04 00 8D CE 01 00 F4 03 04 00 22 C1 A5 66 B6 04 01 00 00 52 5F 0C 0B 2A 4C 79 BA [09:46:58]CommunicateWithHost err = 0 [09:46:58]CheckOFDResponse [09:46:58]1017 (14) - 77093643461234 [09:46:58]1041 (16) - 0000000000874939 [09:46:58]1040 (4) - 118413 [09:46:58]1012 (4) - 28.07.2024 03:55 [09:46:58]1206 (1) - 0 [09:46:58]OFD Sender: Remove packet 118413 [09:46:58]ProducePacketName [09:46:58]name=ofd_packets/00118413 [09:46:58]NVStorageDeleteData [09:46:58]Write to MH i2c: 01 00 00 49 13 5C [09:46:58]Write i2c OK [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: 01 [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: 01 07 00 [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: 01 07 00 49 13 00 00 00 00 00 F0 0C 5F [09:46:58]RasterBufferAndPrint [09:46:58]line [09:46:58]line [09:46:58]line [09:46:58]line [09:46:58]line [09:46:58]written 0, free lines is 3318 [09:46:58]MH_Cut [09:46:58]Write to MH i2c: D1 01 00 50 13 01 35 [09:46:58]Write i2c OK [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: D1 [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: D1 01 00 [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: D1 01 00 50 13 00 34 [09:46:58]Write to MH i2c: 01 00 00 51 13 64 [09:46:58]Write i2c OK [09:46:58]MH_I2C_Read... [09:46:58]OFD Sender: No OFD packet to send [09:46:58]*** Cut start [09:46:58]*** Partial cut [09:46:58]*** CUTSNS_PIN = 1 [09:46:58]*** CUTSNS_PIN = 0 [09:46:59]*** Brake cut motor [09:46:59]Read from MH i2c: 01 [09:46:59]MH_I2C_Read... [09:46:59]*** Stop cut motor [09:46:59]*** Cut end [09:46:59]Read from MH i2c: 01 07 00 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: 01 07 00 51 13 00 00 00 00 00 FF 0F 79 [09:46:59]process_action close_receipt done [09:46:59]requested_data is exist [09:46:59]produce_requested_data [09:46:59]requested_item fm.sn is exist - process it [09:46:59]wFMCommunicate request_size=4 [09:46:59]MH_SAM_APDU [09:46:59]CAPDU: 80 11 00 00 [09:46:59]Write to MH i2c: E2 08 00 52 13 80 11 00 00 00 00 00 00 DF [09:46:59]Write i2c OK [09:46:59]MH_I2C_Read... [09:46:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:59]Read from MH i2c: E2 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 17 00 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 17 00 52 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3A [09:46:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:46:59]wFMCommunicate OK [09:46:59]requested_item fd.num is exist - process it [09:46:59]SAM_PROTO_GetFieldsCounters [09:46:59]wFMCommunicate request_size=4 [09:46:59]MH_SAM_APDU [09:46:59]CAPDU: 80 13 00 00 [09:46:59]Write to MH i2c: E2 08 00 53 13 80 13 00 00 00 00 00 00 E2 [09:46:59]Write i2c OK [09:46:59]MH_I2C_Read... [09:46:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:59]Read from MH i2c: E2 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 62 00 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 62 00 53 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8D CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [09: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8D CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:59]wFMCommunicate OK [09:46:59]SAM_PROTO_GetFieldsCounters done [09:46:59]requested_item shift.num is exist - process it [09:46:59]requested_item shift.opened is exist - process it [09:46:59]req_shift_opened [09:46:59]FM_GetShiftState [09:46:59]SAM_PROTO_GetShiftState [09:46:59]wFMCommunicate request_size=4 [09:46:59]MH_SAM_APDU [09:46:59]CAPDU: 80 13 01 00 [09:46:59]Write to MH i2c: E2 08 00 54 13 80 13 01 00 00 00 00 00 E4 [09:46:59]Write i2c OK [09:46:59]MH_I2C_Read... [09:46:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:59]Read from MH i2c: E2 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 0E 00 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 0E 00 54 13 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 BB [09:46:59]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:46:59]wFMCommunicate OK [09:46:59]SAM_PROTO_GetShiftState done [09:46:59]FM_GetShiftState done [09:46:59]req_shift_opened done [09:46:59]requested_item shift.open_date is exist - process it [09:46:59]req_shift_open_date [09:46:59]req_shift_open_date done [09:46:59]produce_requested_data done [09:46:59]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118413,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [09:46:59]process_action_free close_receipt [09:46:59]json_value_free [09:46:59]json_value_free done [09:46:59]process_json_proto returns [09:46:59]Send response to host [09:46:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118413,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [09:46:59]free response buf [09:46:59]execute_script done [09:46:59]execute_script returns [09:46:59]free content buf [09:46:59]Sock 9.Close socket [09:46:59]Sock 9.Thread stoped [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:33]OFD Sender: No OFD packet to send [09:47:38]OFD Sender: No OFD packet to send [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:53]OFD Sender: No OFD packet to send [09:47:58]OFD Sender: No OFD packet to send [09:48:02]accept exits with 7 [09:48:02]New connection [09:48:02]New thread 3066924388 created [09:48:02]Thread 3067067748 joined [09:48:02]Waiting for new connection... [09:48:02] Sock 7.Parse request [09:48:02]Sock 7.Check first char [09:48:02]Sock 7.First char is OK [09:48:02]request: POST /json_proto HTTP/1.0 [09:48:02]Method: POST [09:48:02]URL: /json_proto [09:48:02]Method is POST - this is cgi request [09:48:02]url: /json_proto [09:48:02]query_string will be loaded in cgi processing [09:48:02]execute_cgi json_proto POST (null) [09:48:02]execute_cgi path=json_proto method=POST [09:48:02]POST find Content-Length [09:48:02]Host: 172.17.45.7:8080 [09:48:02]Content-Length: 819 [09:48:02]Content-Type: application/json [09:48:02] [09:48:02]POST finish read [09:48:02]Found Content-Length = 819 [09:48:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.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", "total" : 3500.00, "payments": [ { "type": 1, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:02]execute_script... [09:48:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.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", "total" : 3500.00, "payments": [ { "type": 1, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:02]POST & json_proto [09:48:02]process_json_proto [09:48:02]json parsed OK: [09:48:02]protocol is kg_v1.0 [09:48:02]action value=close_receipt [09:48:02]process_action close_receipt [09:48:02]cmd_close_receipt [09:48:02]MH_GetDate [09:48:02]Write to MH i2c: F0 00 00 55 13 57 [09:48:02]Write i2c OK [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: F0 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: F0 09 00 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: F0 09 00 55 13 00 D4 13 A6 66 90 0F 3E 66 96 [09:48:02]GetLastDocTimeStamp 1722160017 [09:48:02]current date 1722160084 [09:48:02]FM_GetShiftState [09:48:02]SAM_PROTO_GetShiftState [09:48:02]wFMCommunicate request_size=4 [09:48:02]MH_SAM_APDU [09:48:02]CAPDU: 80 13 01 00 [09:48:02]Write to MH i2c: E2 08 00 56 13 80 13 01 00 00 00 00 00 E6 [09:48:02]Write i2c OK [09:48:02]MH_I2C_Read... [09:48:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:02]Read from MH i2c: E2 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: E2 0E 00 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: E2 0E 00 56 13 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 BD [09:48:02]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:48:02]wFMCommunicate OK [09:48:02]SAM_PROTO_GetShiftState done [09:48:02]FM_GetShiftState done [09:48:02]opened in 1722125364 [09:48:02]opened+sec_in_day 1722211764 [09:48:02]quantity*price = 350062 [09:48:02]sum+1 = 350064 [09:48:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 3500.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 0.00 Безнал.: 3500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 83 28.07.2024 09:48 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118414 ФПД: 185015798207227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T094804&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118414&fm=185015798207227&tin=02508201610067®Number=0000000000092660&sum=350000 [09:48:03]StoreToDocumentArchive [09:48:03]shift 433 fd 118414 [09:48:03]save to /storage/0433/doc_00118414 [09:48:03]save last doc name /storage/0433/doc_00118414 to /storage/kkm_last_doc_name [09:48:03]save OK [09:48:03]Clear old archive folders... [09:48:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:48:03]tlvbuf is 0010CAE0 [09:48:03]SAM_PROTO_ClearQueue [09:48:03]wFMCommunicate request_size=4 [09:48:03]MH_SAM_APDU [09:48:03]CAPDU: 80 09 00 00 [09:48:03]Write to MH i2c: E2 08 00 63 13 80 09 00 00 00 00 00 00 E8 [09:48:03]Write i2c OK [09:48:03]MH_I2C_Read... [09:48:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:03]Read from MH i2c: E2 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 03 00 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 03 00 63 13 00 90 00 EA [09:48:03]RAPDU: 90 00 [09:48:03]wFMCommunicate OK [09:48:03]SAM_PROTO_ClearQueue done [09:48:03]KKMCreateOFDPacket [09:48:03]OFDProtocolAddRootSTLVToBuf [09:48:03]FM_MakeSignedData [09:48:03]FM_MakeSignedData [09:48:03]SAM_PROTO_SignData [09:48:03]wFMCommunicate request_size=4 [09:48:03]MH_SAM_APDU [09:48:03]CAPDU: 80 0D 01 02 [09:48:03]Write to MH i2c: E2 08 00 64 13 80 0D 01 02 00 00 00 00 F0 [09:48:03]Write i2c OK [09:48:03]MH_I2C_Read... [09:48:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:03]Read from MH i2c: E2 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 03 00 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 03 00 64 13 00 90 00 EB [09:48:03]RAPDU: 90 00 [09:48:03]wFMCommunicate OK [09:48:03]wFMCommunicate request_size=255 [09:48:03]MH_SAM_APDU [09:48:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 D4 13 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8E CE 01 00 35 04 06 00 A8 45 58 EE [09:48:03]Write to MH i2c: E2 02 01 65 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 D4 13 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8E CE 01 00 35 04 06 00 A8 45 58 EE 00 00 B9 [09:48:03]Write i2c OK [09:48:03]MH_I2C_Read... [09:48:03]OFD Sender: No OFD packet to send [09:48:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:03]Read from MH i2c: E2 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 03 00 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 03 00 65 13 00 90 00 EC [09:48:03]RAPDU: 90 00 [09:48:03]wFMCommunicate OK [09:48:03]wFMCommunicate request_size=7 [09:48:03]MH_SAM_APDU [09:48:03]CAPDU: 80 0D 02 02 02 12 FB [09:48:03]Write to MH i2c: E2 0A 00 66 13 80 0D 02 02 02 00 12 FB 00 00 04 [09:48:03]Write i2c OK [09:48:03]MH_I2C_Read... [09:48:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:03]Read from MH i2c: E2 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 03 00 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 03 00 66 13 00 90 00 ED [09:48:03]RAPDU: 90 00 [09:48:03]wFMCommunicate OK [09:48:03]wFMCommunicate request_size=4 [09:48:03]MH_SAM_APDU [09:48:03]CAPDU: 80 0D 03 02 [09:48:03]Write to MH i2c: E2 08 00 67 13 80 0D 03 02 00 00 00 00 F5 [09:48:03]Write i2c OK [09:48:03]MH_I2C_Read... [09:48:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:03]Read from MH i2c: E2 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 0B 00 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 0B 00 67 13 00 A0 34 39 AF C3 B8 40 3C 90 00 A9 [09:48:03]RAPDU: A0 34 39 AF C3 B8 40 3C 90 00 [09:48:03]wFMCommunicate OK [09:48:03]SAM_PROTO_SignData done [09:48:03]FM_MakeSignedData done [09:48:03]CreateOFDProtocolMessage [09:48:03]wFMCommunicate request_size=4 [09:48:03]MH_SAM_APDU [09:48:03]CAPDU: 80 11 00 00 [09:48:03]Write to MH i2c: E2 08 00 68 13 80 11 00 00 00 00 00 00 F5 [09:48:03]Write i2c OK [09:48:03]MH_I2C_Read... [09:48:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:03]Read from MH i2c: E2 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 17 00 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 17 00 68 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 50 [09:48:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:48:03]wFMCommunicate OK [09:48:03]CreateOFDProtocolMessage done [09:48:03]OFDSenderStorePacket 118414 [09:48:03]StoreOFDPacket docnum=118414 [09:48:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 6D A9 04 01 C8 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 D4 13 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8E CE 01 00 35 04 06 00 A8 45 58 EE 12 FB A0 34 39 AF C3 B8 40 3C [09:48:03]CheckFolder [09:48:03]dirname=/storage/ofd_packets [09:48:03]CheckFolder done [09:48:03]ProducePacketName [09:48:03]name=ofd_packets/00118414 [09:48:03]NVStorageSaveData ofd_packets/00118414 [09:48:03]File name is /storage/ofd_packets/00118414 [09:48:03]Write 298 bytes [09:48:03]NVStorageSaveData done [09:48:03]OFDSenderStorePacket done [09:48:03]KKMCreateOFDPacket done [09:48:03]NVStorageSaveData kkm_last_timestamp [09:48:03]File name is /storage/kkm_last_timestamp [09:48:03]Write 4 bytes [09:48:03]NVStorageSaveData done [09:48:03]ExternCall_PrintAddStr [09:48:03]wPrintStart [09:48:03]Write to MH i2c: 01 00 00 69 13 7C [09:48:03]Write i2c OK [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: 01 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: 01 07 00 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: 01 07 00 69 13 00 00 00 00 00 FF 0F 91 [09:48:03]RasterBufferAndPrint [09:48:03]line Счет N : (1)949284 [09:48:03]line ИНН: 02508201610067 [09:48:03]line Контрольно-Кассовый Чек [09:48:03]line ПРОДАЖА [09:48:03]line ТРК (МРК, ГНК) : 54 [09:48:03]line Товар: 2710194800 [09:48:03]line ДТ-К-5 [09:48:03]line 45.940 * 76.20 [09:48:03]line = 3500.63 [09:48:03]line НДС 12% НСП 1% [09:48:03]line > о реализуемом товаре [09:48:03]line ОКРУГЛЕНИЕ: -0.63 [09:48:03]line ИТОГО: 3500.00 [09:48:03]line НСП 1% : 30.98 [09:48:03]line НДС 12% : 371.75 [09:48:03]line Наличными: 0.00 [09:48:03]line Безнал.: 3500.00 [09:48:03]line Место: АЗС № 134 "Партнер Нефть" [09:48:03]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:48:03]line СНО: Общий режим [09:48:03]line Чек 83 28.07.2024 09:48 [09:48:03]line Смена: 433 ФФД: 1.0 [09:48:03]line ЗНМ: 0300000044 [09:48:03]line РНМ: 0000000000092660 [09:48:03]line Версия ККМ: 001 [09:48:03]line Платежная система: O! деньги [09:48:03]line ФМ: 0000000000874939 [09:48:03]line ФД: 118414 [09:48:03]line ФПД: 185015798207227 [09:48:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T094804&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118414&fm=185015798207227&tin=02508201610067®Number=0000000000092660&sum=350000 [09:48:04]OFD Sender: Processing packet 118414 [packets to send 86, broken 85] [09:48:04]ProducePacketName [09:48:04]name=ofd_packets/00118414 [09:48:04]OFD Sender: To server: pG, [09:48:04]CommunicateWithHost lk.salyk.kg:30040 [09:48:04]ConnectInit lk.salyk.kg [09:48:04]written 0, free lines is 4095 [09:48:04]Connected sock=10 [09:48:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 6D A9 04 01 C8 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 D4 13 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8E CE 01 00 35 04 06 00 A8 45 58 EE 12 FB A0 34 39 AF C3 B8 40 3C [09:48:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E1 98 47 00 11 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8E CE 01 00 F4 03 04 00 64 C1 A5 66 B6 04 01 00 00 AB 8D 91 E5 66 E0 DB 1F [09:48:04]CommunicateWithHost err = 0 [09:48:04]CheckOFDResponse [09:48:04]1017 (14) - 77093643461234 [09:48:04]1041 (16) - 0000000000874939 [09:48:04]1040 (4) - 118414 [09:48:04]1012 (4) - 28.07.2024 03:56 [09:48:04]1206 (1) - 0 [09:48:04]OFD Sender: Remove packet 118414 [09:48:04]ProducePacketName [09:48:04]name=ofd_packets/00118414 [09:48:04]NVStorageDeleteData [09:48:04]Write to MH i2c: 01 00 00 93 13 A6 [09:48:04]Write i2c OK [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: 01 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: 01 07 00 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: 01 07 00 93 13 00 00 00 00 00 EC 0C A5 [09:48:04]RasterBufferAndPrint [09:48:04]line [09:48:04]line [09:48:04]line [09:48:04]line [09:48:04]line [09:48:04]written 0, free lines is 3315 [09:48:04]MH_Cut [09:48:04]Write to MH i2c: D1 01 00 9A 13 01 7F [09:48:04]Write i2c OK [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: D1 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: D1 01 00 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: D1 01 00 9A 13 00 7E [09:48:04]Write to MH i2c: 01 00 00 9B 13 AE [09:48:04]Write i2c OK [09:48:04]MH_I2C_Read... [09:48:05]OFD Sender: No OFD packet to send [09:48:05]*** Cut start [09:48:05]*** Partial cut [09:48:05]*** CUTSNS_PIN = 1 [09:48:05]*** CUTSNS_PIN = 0 [09:48:05]*** Brake cut motor [09:48:06]Read from MH i2c: 01 [09:48:06]MH_I2C_Read... [09:48:06]*** Stop cut motor [09:48:06]*** Cut end [09:48:06]Read from MH i2c: 01 07 00 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: 01 07 00 9B 13 00 00 00 00 00 FF 0F C3 [09:48:06]process_action close_receipt done [09:48:06]requested_data is exist [09:48:06]produce_requested_data [09:48:06]requested_item fm.sn is exist - process it [09:48:06]wFMCommunicate request_size=4 [09:48:06]MH_SAM_APDU [09:48:06]CAPDU: 80 11 00 00 [09:48:06]Write to MH i2c: E2 08 00 9C 13 80 11 00 00 00 00 00 00 29 [09:48:06]Write i2c OK [09:48:06]MH_I2C_Read... [09:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:06]Read from MH i2c: E2 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: E2 17 00 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: E2 17 00 9C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 84 [09:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:48:06]wFMCommunicate OK [09:48:06]requested_item fd.num is exist - process it [09:48:06]SAM_PROTO_GetFieldsCounters [09:48:06]wFMCommunicate request_size=4 [09:48:06]MH_SAM_APDU [09:48:06]CAPDU: 80 13 00 00 [09:48:06]Write to MH i2c: E2 08 00 9D 13 80 13 00 00 00 00 00 00 2C [09:48:06]Write i2c OK [09:48:06]MH_I2C_Read... [09:48:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:06]Read from MH i2c: E2 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: E2 62 00 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: E2 62 00 9D 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8E CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [09:48:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8E CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:06]wFMCommunicate OK [09:48:06]SAM_PROTO_GetFieldsCounters done [09:48:06]requested_item shift.num is exist - process it [09:48:06]requested_item shift.opened is exist - process it [09:48:06]req_shift_opened [09:48:06]FM_GetShiftState [09:48:06]SAM_PROTO_GetShiftState [09:48:06]wFMCommunicate request_size=4 [09:48:06]MH_SAM_APDU [09:48:06]CAPDU: 80 13 01 00 [09:48:06]Write to MH i2c: E2 08 00 9E 13 80 13 01 00 00 00 00 00 2E [09:48:06]Write i2c OK [09:48:06]MH_I2C_Read... [09:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:06]Read from MH i2c: E2 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: E2 0E 00 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: E2 0E 00 9E 13 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 05 [09:48:06]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:48:06]wFMCommunicate OK [09:48:06]SAM_PROTO_GetShiftState done [09:48:06]FM_GetShiftState done [09:48:06]req_shift_opened done [09:48:06]requested_item shift.open_date is exist - process it [09:48:06]req_shift_open_date [09:48:06]req_shift_open_date done [09:48:06]produce_requested_data done [09:48:06]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118414,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [09:48:06]process_action_free close_receipt [09:48:06]json_value_free [09:48:06]json_value_free done [09:48:06]process_json_proto returns [09:48:06]Send response to host [09:48:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118414,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [09:48:06]free response buf [09:48:06]execute_script done [09:48:06]execute_script returns [09:48:06]free content buf [09:48:06]Sock 7.Close socket [09:48:06]Sock 7.Thread stoped [09:48:10]OFD Sender: No OFD packet to send [09:48:15]OFD Sender: No OFD packet to send [09:48:20]OFD Sender: No OFD packet to send [09:48:25]OFD Sender: No OFD packet to send [09:48:30]OFD Sender: No OFD packet to send [09:48:35]OFD Sender: No OFD packet to send [09:48:40]OFD Sender: No OFD packet to send [09:48:45]OFD Sender: No OFD packet to send [09:48:50]OFD Sender: No OFD packet to send [09:48:55]OFD Sender: No OFD packet to send [09:49:00]OFD Sender: No OFD packet to send [09:49:05]OFD Sender: No OFD packet to send [09:49:10]OFD Sender: No OFD packet to send [09:49:15]OFD Sender: No OFD packet to send [09:49:20]OFD Sender: No OFD packet to send [09:49:25]OFD Sender: No OFD packet to send [09:49:30]OFD Sender: No OFD packet to send [09:49:35]OFD Sender: No OFD packet to send [09:49:40]OFD Sender: No OFD packet to send [09:49:45]OFD Sender: No OFD packet to send [09:49:48]accept exits with 9 [09:49:48]New connection [09:49:48]New thread 3067067748 created [09:49:48]Thread 3066924388 joined [09:49:48]Waiting for new connection... [09:49:48] Sock 9.Parse request [09:49:48]Sock 9.Check first char [09:49:48]Sock 9.First char is OK [09:49:48]request: POST /json_proto HTTP/1.0 [09:49:48]Method: POST [09:49:48]URL: /json_proto [09:49:48]Method is POST - this is cgi request [09:49:48]url: /json_proto [09:49:48]query_string will be loaded in cgi processing [09:49:48]execute_cgi json_proto POST (null) [09:49:48]execute_cgi path=json_proto method=POST [09:49:48]POST find Content-Length [09:49:48]Host: 172.17.45.7:8080 [09:49:48]Content-Length: 677 [09:49:48]Content-Type: application/json [09:49:48] [09:49:48]POST finish read [09:49:48]Found Content-Length = 677 [09:49:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:49:48]execute_script... [09:49: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)949288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:49:48]POST & json_proto [09:49:48]process_json_proto [09:49:48]json parsed OK: [09:49:48]protocol is kg_v1.0 [09:49:48]action value=close_receipt [09:49:48]process_action close_receipt [09:49:48]cmd_close_receipt [09:49:48]MH_GetDate [09:49:48]Write to MH i2c: F0 00 00 9F 13 A1 [09:49:48]Write i2c OK [09:49:48]MH_I2C_Read... [09:49:48]Read from MH i2c: F0 [09:49:48]MH_I2C_Read... [09:49:48]Read from MH i2c: F0 09 00 [09:49:48]MH_I2C_Read... [09:49:48]Read from MH i2c: F0 09 00 9F 13 00 3E 14 A6 66 90 0F 3E 66 4B [09:49:48]GetLastDocTimeStamp 1722160084 [09:49:48]current date 1722160190 [09:49:48]FM_GetShiftState [09:49:48]SAM_PROTO_GetShiftState [09:49:48]wFMCommunicate request_size=4 [09:49:48]MH_SAM_APDU [09:49:48]CAPDU: 80 13 01 00 [09:49:48]Write to MH i2c: E2 08 00 A0 13 80 13 01 00 00 00 00 00 30 [09:49:48]Write i2c OK [09:49:48]MH_I2C_Read... [09:49:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:48]Read from MH i2c: E2 [09:49:48]MH_I2C_Read... [09:49:48]Read from MH i2c: E2 0E 00 [09:49:48]MH_I2C_Read... [09:49:48]Read from MH i2c: E2 0E 00 A0 13 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 07 [09:49:48]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:49:48]wFMCommunicate OK [09:49:48]SAM_PROTO_GetShiftState done [09:49:48]FM_GetShiftState done [09:49:48]opened in 1722125364 [09:49:48]opened+sec_in_day 1722211764 [09:49:48]quantity*price = 40002 [09:49:48]sum+1 = 40003 [09:49:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 84 28.07.2024 09:49 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118415 ФПД: 276911533693108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T094950&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118415&fm=276911533693108&tin=02508201610067®Number=0000000000092660&sum=40000 [09:49:49]StoreToDocumentArchive [09:49:49]shift 433 fd 118415 [09:49:49]save to /storage/0433/doc_00118415 [09:49:49]save last doc name /storage/0433/doc_00118415 to /storage/kkm_last_doc_name [09:49:49]save OK [09:49:49]Clear old archive folders... [09:49:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:49:49]tlvbuf is 00143210 [09:49:49]SAM_PROTO_ClearQueue [09:49:49]wFMCommunicate request_size=4 [09:49:49]MH_SAM_APDU [09:49:49]CAPDU: 80 09 00 00 [09:49:49]Write to MH i2c: E2 08 00 AD 13 80 09 00 00 00 00 00 00 32 [09:49:49]Write i2c OK [09:49:49]MH_I2C_Read... [09:49:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:49]Read from MH i2c: E2 [09:49:49]MH_I2C_Read... [09:49:49]Read from MH i2c: E2 03 00 [09:49:49]MH_I2C_Read... [09:49:49]Read from MH i2c: E2 03 00 AD 13 00 90 00 34 [09:49:49]RAPDU: 90 00 [09:49:49]wFMCommunicate OK [09:49:49]SAM_PROTO_ClearQueue done [09:49:49]KKMCreateOFDPacket [09:49:49]OFDProtocolAddRootSTLVToBuf [09:49:49]FM_MakeSignedData [09:49:49]FM_MakeSignedData [09:49:49]SAM_PROTO_SignData [09:49:49]wFMCommunicate request_size=4 [09:49:49]MH_SAM_APDU [09:49:49]CAPDU: 80 0D 01 02 [09:49:49]Write to MH i2c: E2 08 00 AE 13 80 0D 01 02 00 00 00 00 3A [09:49:49]Write i2c OK [09:49:49]MH_I2C_Read... [09:49:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:49]Read from MH i2c: E2 [09:49:49]MH_I2C_Read... [09:49:49]Read from MH i2c: E2 03 00 [09:49:49]MH_I2C_Read... [09:49:49]Read from MH i2c: E2 03 00 AE 13 00 90 00 35 [09:49:49]RAPDU: 90 00 [09:49:49]wFMCommunicate OK [09:49:49]wFMCommunicate request_size=255 [09:49:49]MH_SAM_APDU [09:49: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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 54 00 00 00 F4 03 04 00 3E 14 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8F CE 01 00 35 04 06 00 FB [09:49:49]Write to MH i2c: E2 02 01 AF 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 54 00 00 00 F4 03 04 00 3E 14 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8F CE 01 00 35 04 06 00 FB 00 00 60 [09:49:49]Write i2c OK [09:49:49]MH_I2C_Read... [09:49:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:50]Read from MH i2c: E2 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 03 00 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 03 00 AF 13 00 90 00 36 [09:49:50]RAPDU: 90 00 [09:49:50]wFMCommunicate OK [09:49:50]wFMCommunicate request_size=10 [09:49:50]MH_SAM_APDU [09:49:50]CAPDU: 80 0D 02 02 05 D9 7D 99 98 B4 [09:49:50]Write to MH i2c: E2 0D 00 B0 13 80 0D 02 02 05 00 D9 7D 99 98 B4 00 00 82 [09:49:50]Write i2c OK [09:49:50]MH_I2C_Read... [09:49:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:50]Read from MH i2c: E2 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 03 00 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 03 00 B0 13 00 90 00 37 [09:49:50]RAPDU: 90 00 [09:49:50]wFMCommunicate OK [09:49:50]wFMCommunicate request_size=4 [09:49:50]MH_SAM_APDU [09:49:50]CAPDU: 80 0D 03 02 [09:49:50]Write to MH i2c: E2 08 00 B1 13 80 0D 03 02 00 00 00 00 3F [09:49:50]Write i2c OK [09:49:50]MH_I2C_Read... [09:49:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:50]Read from MH i2c: E2 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 0B 00 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 0B 00 B1 13 00 9C 95 46 6D C0 17 E7 0F 90 00 F1 [09:49:50]RAPDU: 9C 95 46 6D C0 17 E7 0F 90 00 [09:49:50]wFMCommunicate OK [09:49:50]SAM_PROTO_SignData done [09:49:50]FM_MakeSignedData done [09:49:50]CreateOFDProtocolMessage [09:49:50]wFMCommunicate request_size=4 [09:49:50]MH_SAM_APDU [09:49:50]CAPDU: 80 11 00 00 [09:49:50]Write to MH i2c: E2 08 00 B2 13 80 11 00 00 00 00 00 00 3F [09:49:50]Write i2c OK [09:49:50]MH_I2C_Read... [09:49:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:50]Read from MH i2c: E2 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 17 00 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 17 00 B2 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9A [09:49:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:49:50]wFMCommunicate OK [09:49:50]CreateOFDProtocolMessage done [09:49:50]OFDSenderStorePacket 118415 [09:49:50]StoreOFDPacket docnum=118415 [09:49:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B0 BB 07 01 31 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 54 00 00 00 F4 03 04 00 3E 14 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8F CE 01 00 35 04 06 00 FB D9 7D 99 98 B4 9C 95 46 6D C0 17 E7 0F [09:49:50]CheckFolder [09:49:50]dirname=/storage/ofd_packets [09:49:50]CheckFolder done [09:49:50]ProducePacketName [09:49:50]name=ofd_packets/00118415 [09:49:50]NVStorageSaveData ofd_packets/00118415 [09:49:50]File name is /storage/ofd_packets/00118415 [09:49:50]Write 301 bytes [09:49:50]NVStorageSaveData done [09:49:50]OFDSenderStorePacket done [09:49:50]KKMCreateOFDPacket done [09:49:50]NVStorageSaveData kkm_last_timestamp [09:49:50]File name is /storage/kkm_last_timestamp [09:49:50]Write 4 bytes [09:49:50]NVStorageSaveData done [09:49:50]ExternCall_PrintAddStr [09:49:50]wPrintStart [09:49:50]Write to MH i2c: 01 00 00 B3 13 C6 [09:49:50]Write i2c OK [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: 01 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: 01 07 00 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: 01 07 00 B3 13 00 00 00 00 00 FF 0F DB [09:49:50]RasterBufferAndPrint [09:49:50]line Счет N : (1)949288 [09:49:50]line ИНН: 02508201610067 [09:49:50]line Контрольно-Кассовый Чек [09:49:50]line ПРОДАЖА [09:49:50]line ТРК (МРК, ГНК) : 41 [09:49:50]line Товар: 2710124130 [09:49:50]line Аи-92-К-4 [09:49:50]line 5.900 * 67.80 [09:49:50]line = 400.02 [09:49:50]line НДС 12% НСП 1% [09:49:50]line > о реализуемом товаре [09:49:50]line ОКРУГЛЕНИЕ: -0.02 [09:49:50]line ИТОГО: 400.00 [09:49:50]line Внесено: 400.00 [09:49:50]line СДАЧА: 0.00 [09:49:50]line НСП 1% : 3.54 [09:49:50]line НДС 12% : 42.48 [09:49:50]line Наличными: 400.00 [09:49:50]line Безнал.: 0.00 [09:49:50]line Место: АЗС № 134 "Партнер Нефть" [09:49:50]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:49:50]line СНО: Общий режим [09:49:50]line Чек 84 28.07.2024 09:49 [09:49:50]line Смена: 433 ФФД: 1.0 [09:49:50]line ЗНМ: 0300000044 [09:49:50]line РНМ: 0000000000092660 [09:49:50]line Версия ККМ: 001 [09:49:50]line ФМ: 0000000000874939 [09:49:50]line ФД: 118415 [09:49:50]line ФПД: 276911533693108 [09:49:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T094950&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118415&fm=276911533693108&tin=02508201610067®Number=0000000000092660&sum=40000 [09:49:50]OFD Sender: Processing packet 118415 [packets to send 86, broken 85] [09:49:50]ProducePacketName [09:49:50]name=ofd_packets/00118415 [09:49:50]OFD Sender: To server: pG, [09:49:50]CommunicateWithHost lk.salyk.kg:30040 [09:49:50]ConnectInit lk.salyk.kg [09:49:50]written 0, free lines is 4095 [09:49:50]Connected sock=10 [09:49: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 39 33 39 0F 01 00 00 B0 BB 07 01 31 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 54 00 00 00 F4 03 04 00 3E 14 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8F CE 01 00 35 04 06 00 FB D9 7D 99 98 B4 9C 95 46 6D C0 17 E7 0F [09:49:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 05 F4 47 00 C9 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 39 33 39 10 04 04 00 8F CE 01 00 F4 03 04 00 CF C1 A5 66 B6 04 01 00 00 32 9B 00 9C 68 04 8C BA [09:49:50]CommunicateWithHost err = 0 [09:49:50]CheckOFDResponse [09:49:50]1017 (14) - 77093643461234 [09:49:50]1041 (16) - 0000000000874939 [09:49:50]1040 (4) - 118415 [09:49:50]1012 (4) - 28.07.2024 03:58 [09:49:50]1206 (1) - 0 [09:49:50]OFD Sender: Remove packet 118415 [09:49:50]ProducePacketName [09:49:50]name=ofd_packets/00118415 [09:49:50]NVStorageDeleteData [09:49:50]Write to MH i2c: 01 00 00 DD 13 F0 [09:49:50]Write i2c OK [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: 01 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: 01 07 00 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: 01 07 00 DD 13 00 00 00 00 00 E4 0C E7 [09:49:50]RasterBufferAndPrint [09:49:50]line [09:49:50]line [09:49:50]line [09:49:50]line [09:49:50]line [09:49:50]written 0, free lines is 3306 [09:49:50]MH_Cut [09:49:50]Write to MH i2c: D1 01 00 E4 13 01 C9 [09:49:50]Write i2c OK [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: D1 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: D1 01 00 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: D1 01 00 E4 13 00 C8 [09:49:50]Write to MH i2c: 01 00 00 E5 13 F8 [09:49:50]Write i2c OK [09:49:50]MH_I2C_Read... [09:49:51]OFD Sender: No OFD packet to send [09:49:51]*** Cut start [09:49:51]*** Partial cut [09:49:51]*** CUTSNS_PIN = 1 [09:49:51]*** CUTSNS_PIN = 0 [09:49:51]*** Brake cut motor [09:49:52]Read from MH i2c: 01 [09:49:52]MH_I2C_Read... [09:49:52]*** Stop cut motor [09:49:52]*** Cut end [09:49:52]Read from MH i2c: 01 07 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: 01 07 00 E5 13 00 00 00 00 00 FF 0F 0D [09:49:52]process_action close_receipt done [09:49:52]requested_data is exist [09:49:52]produce_requested_data [09:49:52]requested_item fm.sn is exist - process it [09:49:52]wFMCommunicate request_size=4 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 11 00 00 [09:49:52]Write to MH i2c: E2 08 00 E6 13 80 11 00 00 00 00 00 00 73 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:52]Read from MH i2c: E2 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 17 00 [09:49:52]MH_I2C_Read... [09:49:52]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 39 33 39 90 00 CE [09:49:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:49:52]wFMCommunicate OK [09:49:52]requested_item fd.num is exist - process it [09:49:52]SAM_PROTO_GetFieldsCounters [09:49:52]wFMCommunicate request_size=4 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 13 00 00 [09:49:52]Write to MH i2c: E2 08 00 E7 13 80 13 00 00 00 00 00 00 76 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:52]Read from MH i2c: E2 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 62 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 62 00 E7 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8F CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [09:49:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8F CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:49:52]wFMCommunicate OK [09:49:52]SAM_PROTO_GetFieldsCounters done [09:49:52]requested_item shift.num is exist - process it [09:49:52]requested_item shift.opened is exist - process it [09:49:52]req_shift_opened [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 E8 13 80 13 01 00 00 00 00 00 78 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [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 E8 13 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 4F [09:49:52]RAPDU: 09 00 01 34 8C A5 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]req_shift_opened done [09:49:52]requested_item shift.open_date is exist - process it [09:49:52]req_shift_open_date [09:49:52]req_shift_open_date done [09:49:52]produce_requested_data done [09:49:52]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118415,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [09:49:52]process_action_free close_receipt [09:49:52]json_value_free [09:49:52]json_value_free done [09:49:52]process_json_proto returns [09:49:52]Send response to host [09:49:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118415,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [09:49:52]free response buf [09:49:52]execute_script done [09:49:52]execute_script returns [09:49:52]free content buf [09:49:52]Sock 9.Close socket [09:49:52]Sock 9.Thread stoped [09:49:56]OFD Sender: No OFD packet to send [09:50:01]OFD Sender: No OFD packet to send [09:50:06]OFD Sender: No OFD packet to send [09:50:11]OFD Sender: No OFD packet to send [09:50:16]OFD Sender: No OFD packet to send [09:50:21]OFD Sender: No OFD packet to send [09:50:26]OFD Sender: No OFD packet to send [09:50:31]OFD Sender: No OFD packet to send [09:50:36]OFD Sender: No OFD packet to send [09:50:41]OFD Sender: No OFD packet to send [09:50:46]OFD Sender: No OFD packet to send [09:50:51]OFD Sender: No OFD packet to send [09:50:56]OFD Sender: No OFD packet to send [09:51:01]OFD Sender: No OFD packet to send [09:51:06]OFD Sender: No OFD packet to send [09:51:11]OFD Sender: No OFD packet to send [09:51:16]OFD Sender: No OFD packet to send [09:51:21]OFD Sender: No OFD packet to send [09:51:26]OFD Sender: No OFD packet to send [09:51:31]OFD Sender: No OFD packet to send [09:51:36]OFD Sender: No OFD packet to send [09:51:41]OFD Sender: No OFD packet to send [09:51:46]OFD Sender: No OFD packet to send [09:51:51]OFD Sender: No OFD packet to send [09:51:56]OFD Sender: No OFD packet to send [09:52:01]OFD Sender: No OFD packet to send [09:52:06]OFD Sender: No OFD packet to send [09:52:11]OFD Sender: No OFD packet to send [09:52:16]OFD Sender: No OFD packet to send [09:52:21]OFD Sender: No OFD packet to send [09:52:26]OFD Sender: No OFD packet to send [09:52:31]OFD Sender: No OFD packet to send [09:52:36]OFD Sender: No OFD packet to send [09:52:41]OFD Sender: No OFD packet to send [09:52:46]OFD Sender: No OFD packet to send [09:52:51]OFD Sender: No OFD packet to send [09:52:56]OFD Sender: No OFD packet to send [09:53:01]OFD Sender: No OFD packet to send [09:53:06]OFD Sender: No OFD packet to send [09:53:11]OFD Sender: No OFD packet to send [09:53:16]OFD Sender: No OFD packet to send [09:53:21]OFD Sender: No OFD packet to send [09:53:26]OFD Sender: No OFD packet to send [09:53:31]OFD Sender: No OFD packet to send [09:53:36]OFD Sender: No OFD packet to send [09:53:41]OFD Sender: No OFD packet to send [09:53:46]OFD Sender: No OFD packet to send [09:53:51]OFD Sender: No OFD packet to send [09:53:56]OFD Sender: No OFD packet to send [09:54:01]OFD Sender: No OFD packet to send [09:54:06]OFD Sender: No OFD packet to send [09:54:11]OFD Sender: No OFD packet to send [09:54:16]OFD Sender: No OFD packet to send [09:54:21]OFD Sender: No OFD packet to send [09:54:26]OFD Sender: No OFD packet to send [09:54:28]accept exits with 7 [09:54:28]New connection [09:54:28]New thread 3066924388 created [09:54:28]Thread 3067067748 joined [09:54:28]Waiting for new connection... [09:54:28] Sock 7.Parse request [09:54:28]Sock 7.Check first char [09:54:28]Sock 7.First char is OK [09:54:28]request: POST /json_proto HTTP/1.0 [09:54:28]Method: POST [09:54:28]URL: /json_proto [09:54:28]Method is POST - this is cgi request [09:54:28]url: /json_proto [09:54:28]query_string will be loaded in cgi processing [09:54:28]execute_cgi json_proto POST (null) [09:54:28]execute_cgi path=json_proto method=POST [09:54:28]POST find Content-Length [09:54:28]Host: 172.17.45.7:8080 [09:54:28]Content-Length: 677 [09:54:28]Content-Type: application/json [09:54:28] [09:54:28]POST finish read [09:54:28]Found Content-Length = 677 [09:54:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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:54:28]execute_script... [09:54: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)949290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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:54:28]POST & json_proto [09:54:28]process_json_proto [09:54:28]json parsed OK: [09:54:28]protocol is kg_v1.0 [09:54:28]action value=close_receipt [09:54:28]process_action close_receipt [09:54:28]cmd_close_receipt [09:54:28]MH_GetDate [09:54:28]Write to MH i2c: F0 00 00 E9 13 EB [09:54:28]Write i2c OK [09:54:28]MH_I2C_Read... [09:54:28]Read from MH i2c: F0 [09:54:28]MH_I2C_Read... [09:54:28]Read from MH i2c: F0 09 00 [09:54:28]MH_I2C_Read... [09:54:28]Read from MH i2c: F0 09 00 E9 13 00 56 15 A6 66 90 0F 3E 66 AE [09:54:28]GetLastDocTimeStamp 1722160190 [09:54:28]current date 1722160470 [09:54:28]FM_GetShiftState [09:54:28]SAM_PROTO_GetShiftState [09:54:28]wFMCommunicate request_size=4 [09:54:28]MH_SAM_APDU [09:54:28]CAPDU: 80 13 01 00 [09:54:28]Write to MH i2c: E2 08 00 EA 13 80 13 01 00 00 00 00 00 7A [09:54:28]Write i2c OK [09:54:28]MH_I2C_Read... [09:54:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:28]Read from MH i2c: E2 [09:54:28]MH_I2C_Read... [09:54:28]Read from MH i2c: E2 0E 00 [09:54:28]MH_I2C_Read... [09:54:28]Read from MH i2c: E2 0E 00 EA 13 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 51 [09:54:28]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:54:28]wFMCommunicate OK [09:54:28]SAM_PROTO_GetShiftState done [09:54:28]FM_GetShiftState done [09:54:28]opened in 1722125364 [09:54:28]opened+sec_in_day 1722211764 [09:54:28]quantity*price = 30035 [09:54:28]sum+1 = 30036 [09:54:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 85 28.07.2024 09:54 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118416 ФПД: 246804998937838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T095430&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118416&fm=246804998937838&tin=02508201610067®Number=0000000000092660&sum=30000 [09:54:29]StoreToDocumentArchive [09:54:29]shift 433 fd 118416 [09:54:29]save to /storage/0433/doc_00118416 [09:54:29]save last doc name /storage/0433/doc_00118416 to /storage/kkm_last_doc_name [09:54:29]save OK [09:54:29]Clear old archive folders... [09:54:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:29]tlvbuf is 0013F5F0 [09:54:29]SAM_PROTO_ClearQueue [09:54:29]wFMCommunicate request_size=4 [09:54:29]MH_SAM_APDU [09:54:29]CAPDU: 80 09 00 00 [09:54:29]Write to MH i2c: E2 08 00 F7 13 80 09 00 00 00 00 00 00 7C [09:54:29]Write i2c OK [09:54:29]MH_I2C_Read... [09:54:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:29]Read from MH i2c: E2 [09:54:29]MH_I2C_Read... [09:54:29]Read from MH i2c: E2 03 00 [09:54:29]MH_I2C_Read... [09:54:29]Read from MH i2c: E2 03 00 F7 13 00 90 00 7E [09:54:29]RAPDU: 90 00 [09:54:29]wFMCommunicate OK [09:54:29]SAM_PROTO_ClearQueue done [09:54:29]KKMCreateOFDPacket [09:54:29]OFDProtocolAddRootSTLVToBuf [09:54:29]FM_MakeSignedData [09:54:29]FM_MakeSignedData [09:54:29]SAM_PROTO_SignData [09:54:29]wFMCommunicate request_size=4 [09:54:29]MH_SAM_APDU [09:54:29]CAPDU: 80 0D 01 02 [09:54:29]Write to MH i2c: E2 08 00 F8 13 80 0D 01 02 00 00 00 00 84 [09:54:29]Write i2c OK [09:54:29]MH_I2C_Read... [09:54:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:29]Read from MH i2c: E2 [09:54:29]MH_I2C_Read... [09:54:29]Read from MH i2c: E2 03 00 [09:54:29]MH_I2C_Read... [09:54:29]Read from MH i2c: E2 03 00 F8 13 00 90 00 7F [09:54:29]RAPDU: 90 00 [09:54:29]wFMCommunicate OK [09:54:29]wFMCommunicate request_size=255 [09:54:29]MH_SAM_APDU [09:54: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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 56 15 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 90 CE 01 00 35 04 06 00 E0 [09:54:29]Write to MH i2c: E2 02 01 F9 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 56 15 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 90 CE 01 00 35 04 06 00 E0 00 00 E4 [09:54:29]Write i2c OK [09:54:29]MH_I2C_Read... [09:54:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:29]Read from MH i2c: E2 [09:54:29]MH_I2C_Read... [09:54:29]Read from MH i2c: E2 03 00 [09:54:29]MH_I2C_Read... [09:54:29]Read from MH i2c: E2 03 00 F9 13 00 90 00 80 [09:54:29]RAPDU: 90 00 [09:54:29]wFMCommunicate OK [09:54:29]wFMCommunicate request_size=10 [09:54:29]MH_SAM_APDU [09:54:29]CAPDU: 80 0D 02 02 05 77 C4 4A 5C EE [09:54:29]Write to MH i2c: E2 0D 00 FA 13 80 0D 02 02 05 00 77 C4 4A 5C EE 00 00 60 [09:54:29]Write i2c OK [09:54:29]MH_I2C_Read... [09:54:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:29]Read from MH i2c: E2 [09:54:29]MH_I2C_Read... [09:54:29]Read from MH i2c: E2 03 00 [09:54:29]MH_I2C_Read... [09:54:29]Read from MH i2c: E2 03 00 FA 13 00 90 00 81 [09:54:29]RAPDU: 90 00 [09:54:29]wFMCommunicate OK [09:54:29]wFMCommunicate request_size=4 [09:54:29]MH_SAM_APDU [09:54:29]CAPDU: 80 0D 03 02 [09:54:29]Write to MH i2c: E2 08 00 FB 13 80 0D 03 02 00 00 00 00 89 [09:54:29]Write i2c OK [09:54:29]MH_I2C_Read... [09:54:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:30]Read from MH i2c: E2 [09:54:30]MH_I2C_Read... [09:54:30]Read from MH i2c: E2 0B 00 [09:54:30]MH_I2C_Read... [09:54:30]Read from MH i2c: E2 0B 00 FB 13 00 DD B0 D6 C5 E9 78 D7 B2 90 00 9C [09:54:30]RAPDU: DD B0 D6 C5 E9 78 D7 B2 90 00 [09:54:30]wFMCommunicate OK [09:54:30]SAM_PROTO_SignData done [09:54:30]FM_MakeSignedData done [09:54:30]CreateOFDProtocolMessage [09:54:30]wFMCommunicate request_size=4 [09:54:30]MH_SAM_APDU [09:54:30]CAPDU: 80 11 00 00 [09:54:30]Write to MH i2c: E2 08 00 FC 13 80 11 00 00 00 00 00 00 89 [09:54:30]Write i2c OK [09:54:30]MH_I2C_Read... [09:54:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:30]Read from MH i2c: E2 [09:54:30]MH_I2C_Read... [09:54:30]Read from MH i2c: E2 17 00 [09:54:30]MH_I2C_Read... [09:54:30]Read from MH i2c: E2 17 00 FC 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E4 [09:54:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:54:30]wFMCommunicate OK [09:54:30]CreateOFDProtocolMessage done [09:54:30]OFDSenderStorePacket 118416 [09:54:30]StoreOFDPacket docnum=118416 [09:54:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 76 FC 07 01 C3 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 56 15 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 90 CE 01 00 35 04 06 00 E0 77 C4 4A 5C EE DD B0 D6 C5 E9 78 D7 B2 [09:54:30]CheckFolder [09:54:30]dirname=/storage/ofd_packets [09:54:30]CheckFolder done [09:54:30]ProducePacketName [09:54:30]name=ofd_packets/00118416 [09:54:30]NVStorageSaveData ofd_packets/00118416 [09:54:30]File name is /storage/ofd_packets/00118416 [09:54:30]Write 301 bytes [09:54:30]NVStorageSaveData done [09:54:30]OFDSenderStorePacket done [09:54:30]KKMCreateOFDPacket done [09:54:30]NVStorageSaveData kkm_last_timestamp [09:54:30]File name is /storage/kkm_last_timestamp [09:54:30]Write 4 bytes [09:54:30]NVStorageSaveData done [09:54:30]ExternCall_PrintAddStr [09:54:30]wPrintStart [09:54:30]Write to MH i2c: 01 00 00 FD 13 10 [09:54:30]Write i2c OK [09:54:30]MH_I2C_Read... [09:54:30]Read from MH i2c: 01 [09:54:30]MH_I2C_Read... [09:54:30]Read from MH i2c: 01 07 00 [09:54:30]MH_I2C_Read... [09:54:30]Read from MH i2c: 01 07 00 FD 13 00 00 00 00 00 FF 0F 25 [09:54:30]RasterBufferAndPrint [09:54:30]line Счет N : (1)949290 [09:54:30]line ИНН: 02508201610067 [09:54:30]line Контрольно-Кассовый Чек [09:54:30]line ПРОДАЖА [09:54:30]line ТРК (МРК, ГНК) : 51 [09:54:30]line Товар: 2710124130 [09:54:30]line Аи-92-К-4 [09:54:30]line 4.430 * 67.80 [09:54:30]line = 300.35 [09:54:30]line НДС 12% НСП 1% [09:54:30]line > о реализуемом товаре [09:54:30]line ОКРУГЛЕНИЕ: -0.35 [09:54:30]line ИТОГО: 300.00 [09:54:30]line Внесено: 300.00 [09:54:30]line СДАЧА: 0.00 [09:54:30]line НСП 1% : 2.66 [09:54:30]line НДС 12% : 31.90 [09:54:30]line Наличными: 300.00 [09:54:30]line Безнал.: 0.00 [09:54:30]line Место: АЗС № 134 "Партнер Нефть" [09:54:30]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:54:30]line СНО: Общий режим [09:54:30]line Чек 85 28.07.2024 09:54 [09:54:30]line Смена: 433 ФФД: 1.0 [09:54:30]line ЗНМ: 0300000044 [09:54:30]line РНМ: 0000000000092660 [09:54:30]line Версия ККМ: 001 [09:54:30]line ФМ: 0000000000874939 [09:54:30]line ФД: 118416 [09:54:30]line ФПД: 246804998937838 [09:54:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T095430&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118416&fm=246804998937838&tin=02508201610067®Number=0000000000092660&sum=30000 [09:54:30]OFD Sender: Processing packet 118416 [packets to send 86, broken 85] [09:54:30]ProducePacketName [09:54:30]name=ofd_packets/00118416 [09:54:30]OFD Sender: To server: pG, [09:54:30]CommunicateWithHost lk.salyk.kg:30040 [09:54:30]ConnectInit lk.salyk.kg [09:54:30]written 0, free lines is 4095 [09:54:30]Connected sock=10 [09:54:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 76 FC 07 01 C3 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 56 15 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 90 CE 01 00 35 04 06 00 E0 77 C4 4A 5C EE DD B0 D6 C5 E9 78 D7 B2 [09:54:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9E 96 47 00 D2 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 39 33 39 10 04 04 00 90 CE 01 00 F4 03 04 00 E7 C2 A5 66 B6 04 01 00 00 76 93 3E 49 13 8C 12 01 [09:54:30]CommunicateWithHost err = 0 [09:54:30]CheckOFDResponse [09:54:30]1017 (14) - 77093643461234 [09:54:30]1041 (16) - 0000000000874939 [09:54:30]1040 (4) - 118416 [09:54:30]1012 (4) - 28.07.2024 04:02 [09:54:30]1206 (1) - 0 [09:54:30]OFD Sender: Remove packet 118416 [09:54:30]ProducePacketName [09:54:30]name=ofd_packets/00118416 [09:54:30]NVStorageDeleteData [09:54:30]Write to MH i2c: 01 00 00 27 14 3B [09:54:30]Write i2c OK [09:54:30]MH_I2C_Read... [09:54:30]Read from MH i2c: 01 [09:54:30]MH_I2C_Read... [09:54:30]Read from MH i2c: 01 07 00 [09:54:30]MH_I2C_Read... [09:54:30]Read from MH i2c: 01 07 00 27 14 00 00 00 00 00 E4 0C 32 [09:54:30]RasterBufferAndPrint [09:54:30]line [09:54:30]line [09:54:30]line [09:54:30]line [09:54:30]line [09:54:30]written 0, free lines is 3306 [09:54:30]MH_Cut [09:54:30]Write to MH i2c: D1 01 00 2E 14 01 14 [09:54:30]Write i2c OK [09:54:30]MH_I2C_Read... [09:54:30]Read from MH i2c: D1 [09:54:30]MH_I2C_Read... [09:54:30]Read from MH i2c: D1 01 00 [09:54:30]MH_I2C_Read... [09:54:30]Read from MH i2c: D1 01 00 2E 14 00 13 [09:54:30]Write to MH i2c: 01 00 00 2F 14 43 [09:54:30]Write i2c OK [09:54:30]MH_I2C_Read... [09:54:31]OFD Sender: No OFD packet to send [09:54:31]*** Cut start [09:54:31]*** Partial cut [09:54:31]*** CUTSNS_PIN = 1 [09:54:31]*** CUTSNS_PIN = 0 [09:54:31]*** Brake cut motor [09:54:32]Read from MH i2c: 01 [09:54:32]MH_I2C_Read... [09:54:32]*** Stop cut motor [09:54:32]*** Cut end [09:54:32]Read from MH i2c: 01 07 00 [09:54:32]MH_I2C_Read... [09:54:32]Read from MH i2c: 01 07 00 2F 14 00 00 00 00 00 FF 0F 58 [09:54:32]process_action close_receipt done [09:54:32]requested_data is exist [09:54:32]produce_requested_data [09:54:32]requested_item fm.sn is exist - process it [09:54:32]wFMCommunicate request_size=4 [09:54:32]MH_SAM_APDU [09:54:32]CAPDU: 80 11 00 00 [09:54:32]Write to MH i2c: E2 08 00 30 14 80 11 00 00 00 00 00 00 BE [09:54:32]Write i2c OK [09:54:32]MH_I2C_Read... [09:54:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:32]Read from MH i2c: E2 [09:54:32]MH_I2C_Read... [09:54:32]Read from MH i2c: E2 17 00 [09:54:32]MH_I2C_Read... [09:54:32]Read from MH i2c: E2 17 00 30 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 19 [09:54:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:54:32]wFMCommunicate OK [09:54:32]requested_item fd.num is exist - process it [09:54:32]SAM_PROTO_GetFieldsCounters [09:54:32]wFMCommunicate request_size=4 [09:54:32]MH_SAM_APDU [09:54:32]CAPDU: 80 13 00 00 [09:54:32]Write to MH i2c: E2 08 00 31 14 80 13 00 00 00 00 00 00 C1 [09:54:32]Write i2c OK [09:54:32]MH_I2C_Read... [09:54:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:32]Read from MH i2c: E2 [09:54:32]MH_I2C_Read... [09:54:32]Read from MH i2c: E2 62 00 [09:54:32]MH_I2C_Read... [09:54:32]Read from MH i2c: E2 62 00 31 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 90 CE 01 00 0E 04 04 00 B1 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 F8 [09: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 90 CE 01 00 0E 04 04 00 B1 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 [09:54:32]wFMCommunicate OK [09:54:32]SAM_PROTO_GetFieldsCounters done [09:54:32]requested_item shift.num is exist - process it [09:54:32]requested_item shift.opened is exist - process it [09:54:32]req_shift_opened [09:54:32]FM_GetShiftState [09:54:32]SAM_PROTO_GetShiftState [09:54:32]wFMCommunicate request_size=4 [09:54:32]MH_SAM_APDU [09:54:32]CAPDU: 80 13 01 00 [09:54:32]Write to MH i2c: E2 08 00 32 14 80 13 01 00 00 00 00 00 C3 [09:54:32]Write i2c OK [09:54:32]MH_I2C_Read... [09:54:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:32]Read from MH i2c: E2 [09:54:32]MH_I2C_Read... [09:54:32]Read from MH i2c: E2 0E 00 [09:54:32]MH_I2C_Read... [09:54:32]Read from MH i2c: E2 0E 00 32 14 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 9A [09:54:32]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:54:32]wFMCommunicate OK [09:54:32]SAM_PROTO_GetShiftState done [09:54:32]FM_GetShiftState done [09:54:32]req_shift_opened done [09:54:32]requested_item shift.open_date is exist - process it [09:54:32]req_shift_open_date [09:54:32]req_shift_open_date done [09:54:32]produce_requested_data done [09:54:32]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118416,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [09:54:32]process_action_free close_receipt [09:54:32]json_value_free [09:54:32]json_value_free done [09:54:32]process_json_proto returns [09:54:32]Send response to host [09:54:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118416,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [09:54:32]free response buf [09:54:32]execute_script done [09:54:32]execute_script returns [09:54:32]free content buf [09:54:32]Sock 7.Close socket [09:54:32]Sock 7.Thread stoped [09:54:36]OFD Sender: No OFD packet to send [09:54:41]OFD Sender: No OFD packet to send [09:54:46]OFD Sender: No OFD packet to send [09:54:51]OFD Sender: No OFD packet to send [09:54:56]OFD Sender: No OFD packet to send [09:55:01]OFD Sender: No OFD packet to send [09:55:06]OFD Sender: No OFD packet to send [09:55:11]OFD Sender: No OFD packet to send [09:55:16]OFD Sender: No OFD packet to send [09:55:21]OFD Sender: No OFD packet to send [09:55:21]accept exits with 9 [09:55:21]New connection [09:55:21]New thread 3067067748 created [09:55:21]Thread 3066924388 joined [09:55:21]Waiting for new connection... [09:55:21] Sock 9.Parse request [09:55:21]Sock 9.Check first char [09:55:21]Sock 9.First char is OK [09:55:21]request: POST /json_proto HTTP/1.0 [09:55:21]Method: POST [09:55:21]URL: /json_proto [09:55:21]Method is POST - this is cgi request [09:55:21]url: /json_proto [09:55:21]query_string will be loaded in cgi processing [09:55:21]execute_cgi json_proto POST (null) [09:55:21]execute_cgi path=json_proto method=POST [09:55:21]POST find Content-Length [09:55:21]Host: 172.17.45.7:8080 [09:55:21]Content-Length: 831 [09:55:21]Content-Type: application/json [09:55:21] [09:55:21]POST finish read [09:55:21]Found Content-Length = 831 [09:55:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 6.620, "sum" : 500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:21]execute_script... [09:55: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)949289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 6.620, "sum" : 500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:21]POST & json_proto [09:55:21]process_json_proto [09:55:21]json parsed OK: [09:55:21]protocol is kg_v1.0 [09:55:21]action value=close_receipt [09:55:21]process_action close_receipt [09:55:21]cmd_close_receipt [09:55:21]MH_GetDate [09:55:21]Write to MH i2c: F0 00 00 33 14 36 [09:55:21]Write i2c OK [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: F0 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: F0 09 00 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: F0 09 00 33 14 00 8C 15 A6 66 90 0F 3E 66 2F [09:55:21]GetLastDocTimeStamp 1722160470 [09:55:21]current date 1722160524 [09:55:21]FM_GetShiftState [09:55:21]SAM_PROTO_GetShiftState [09:55:21]wFMCommunicate request_size=4 [09:55:21]MH_SAM_APDU [09:55:21]CAPDU: 80 13 01 00 [09:55:21]Write to MH i2c: E2 08 00 34 14 80 13 01 00 00 00 00 00 C5 [09:55:21]Write i2c OK [09:55:21]MH_I2C_Read... [09:55:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:21]Read from MH i2c: E2 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: E2 0E 00 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: E2 0E 00 34 14 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 9C [09:55:21]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:55:21]wFMCommunicate OK [09:55:21]SAM_PROTO_GetShiftState done [09:55:21]FM_GetShiftState done [09:55:21]opened in 1722125364 [09:55:21]opened+sec_in_day 1722211764 [09:55:21]quantity*price = 50000 [09:55:21]sum+1 = 50002 [09:55:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 86 28.07.2024 09:55 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 118417 ФПД: 18634462149392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T095524&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118417&fm=18634462149392&tin=02508201610067®Number=0000000000092660&sum=50000 [09:55:23]StoreToDocumentArchive [09:55:23]shift 433 fd 118417 [09:55:23]save to /storage/0433/doc_00118417 [09:55:23]save last doc name /storage/0433/doc_00118417 to /storage/kkm_last_doc_name [09:55:23]save OK [09:55:23]Clear old archive folders... [09:55:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:55:23]tlvbuf is 00131E10 [09:55:23]SAM_PROTO_ClearQueue [09:55:23]wFMCommunicate request_size=4 [09:55:23]MH_SAM_APDU [09:55:23]CAPDU: 80 09 00 00 [09:55:23]Write to MH i2c: E2 08 00 41 14 80 09 00 00 00 00 00 00 C7 [09:55:23]Write i2c OK [09:55:23]MH_I2C_Read... [09:55:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:23]Read from MH i2c: E2 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 03 00 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 03 00 41 14 00 90 00 C9 [09:55:23]RAPDU: 90 00 [09:55:23]wFMCommunicate OK [09:55:23]SAM_PROTO_ClearQueue done [09:55:23]KKMCreateOFDPacket [09:55:23]OFDProtocolAddRootSTLVToBuf [09:55:23]FM_MakeSignedData [09:55:23]FM_MakeSignedData [09:55:23]SAM_PROTO_SignData [09:55:23]wFMCommunicate request_size=4 [09:55:23]MH_SAM_APDU [09:55:23]CAPDU: 80 0D 01 02 [09:55:23]Write to MH i2c: E2 08 00 42 14 80 0D 01 02 00 00 00 00 CF [09:55:23]Write i2c OK [09:55:23]MH_I2C_Read... [09:55:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:23]Read from MH i2c: E2 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 03 00 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 03 00 42 14 00 90 00 CA [09:55:23]RAPDU: 90 00 [09:55:23]wFMCommunicate OK [09:55:23]wFMCommunicate request_size=255 [09:55:23]MH_SAM_APDU [09:55:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 19 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 51 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 8C 15 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 91 CE 01 00 35 04 06 00 10 F2 AC 7F [09:55:23]Write to MH i2c: E2 02 01 43 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 19 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 51 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 8C 15 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 91 CE 01 00 35 04 06 00 10 F2 AC 7F 00 00 D3 [09:55:23]Write i2c OK [09:55:23]MH_I2C_Read... [09:55:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:23]Read from MH i2c: E2 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 03 00 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 03 00 43 14 00 90 00 CB [09:55:23]RAPDU: 90 00 [09:55:23]wFMCommunicate OK [09:55:23]wFMCommunicate request_size=7 [09:55:23]MH_SAM_APDU [09:55:23]CAPDU: 80 0D 02 02 02 3B 10 [09:55:23]Write to MH i2c: E2 0A 00 44 14 80 0D 02 02 02 00 3B 10 00 00 21 [09:55:23]Write i2c OK [09:55:23]MH_I2C_Read... [09:55:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:23]Read from MH i2c: E2 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 03 00 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 03 00 44 14 00 90 00 CC [09:55:23]RAPDU: 90 00 [09:55:23]wFMCommunicate OK [09:55:23]wFMCommunicate request_size=4 [09:55:23]MH_SAM_APDU [09:55:23]CAPDU: 80 0D 03 02 [09:55:23]Write to MH i2c: E2 08 00 45 14 80 0D 03 02 00 00 00 00 D4 [09:55:23]Write i2c OK [09:55:23]MH_I2C_Read... [09:55:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:23]Read from MH i2c: E2 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 0B 00 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 0B 00 45 14 00 30 F2 8F A2 BD DC A1 25 90 00 87 [09:55:23]RAPDU: 30 F2 8F A2 BD DC A1 25 90 00 [09:55:23]wFMCommunicate OK [09:55:23]SAM_PROTO_SignData done [09:55:23]FM_MakeSignedData done [09:55:23]CreateOFDProtocolMessage [09:55:23]wFMCommunicate request_size=4 [09:55:23]MH_SAM_APDU [09:55:23]CAPDU: 80 11 00 00 [09:55:23]Write to MH i2c: E2 08 00 46 14 80 11 00 00 00 00 00 00 D4 [09:55:23]Write i2c OK [09:55:23]MH_I2C_Read... [09:55:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:23]Read from MH i2c: E2 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 17 00 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 17 00 46 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2F [09:55:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:55:23]wFMCommunicate OK [09:55:23]CreateOFDProtocolMessage done [09:55:23]OFDSenderStorePacket 118417 [09:55:23]StoreOFDPacket docnum=118417 [09:55:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 9E 12 04 01 25 66 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 19 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 51 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 8C 15 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 91 CE 01 00 35 04 06 00 10 F2 AC 7F 3B 10 30 F2 8F A2 BD DC A1 25 [09:55:23]CheckFolder [09:55:23]dirname=/storage/ofd_packets [09:55:23]CheckFolder done [09:55:23]ProducePacketName [09:55:23]name=ofd_packets/00118417 [09:55:23]NVStorageSaveData ofd_packets/00118417 [09:55:23]File name is /storage/ofd_packets/00118417 [09:55:23]Write 298 bytes [09:55:23]NVStorageSaveData done [09:55:23]OFDSenderStorePacket done [09:55:23]KKMCreateOFDPacket done [09:55:23]NVStorageSaveData kkm_last_timestamp [09:55:23]File name is /storage/kkm_last_timestamp [09:55:23]Write 4 bytes [09:55:23]NVStorageSaveData done [09:55:23]ExternCall_PrintAddStr [09:55:23]wPrintStart [09:55:23]Write to MH i2c: 01 00 00 47 14 5B [09:55:23]Write i2c OK [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: 01 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: 01 07 00 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: 01 07 00 47 14 00 00 00 00 00 FF 0F 70 [09:55:23]RasterBufferAndPrint [09:55:23]line Счет N : (1)949289 [09:55:23]line ИНН: 02508201610067 [09:55:23]line Контрольно-Кассовый Чек [09:55:23]line ПРОДАЖА [09:55:23]line ТРК (МРК, ГНК) : 34 [09:55:23]line Товар: 2710194800 [09:55:23]line ДТ-К-5 [09:55:23]line 6.620 * 75.53 [09:55:23]line = 500.01 [09:55:23]line НДС 12% НСП 1% [09:55:23]line > о реализуемом товаре [09:55:23]line ОКРУГЛЕНИЕ: -0.01 [09:55:23]line ИТОГО: 500.00 [09:55:23]line НСП 1% : 4.42 [09:55:23]line НДС 12% : 53.10 [09:55:23]line Наличными: 0.00 [09:55:23]line Безнал.: 500.00 [09:55:23]line Место: АЗС № 134 "Партнер Нефть" [09:55:23]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:55:23]line СНО: Общий режим [09:55:23]line Чек 86 28.07.2024 09:55 [09:55:23]line Смена: 433 ФФД: 1.0 [09:55:23]line ЗНМ: 0300000044 [09:55:23]line РНМ: 0000000000092660 [09:55:23]line Версия ККМ: 001 [09:55:23]line Платежная система: Бакай Банк [09:55:23]line ФМ: 0000000000874939 [09:55:23]line ФД: 118417 [09:55:23]line ФПД: 18634462149392 [09:55:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T095524&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118417&fm=18634462149392&tin=02508201610067®Number=0000000000092660&sum=50000 [09:55:23]OFD Sender: Processing packet 118417 [packets to send 86, broken 85] [09:55:23]ProducePacketName [09:55:23]name=ofd_packets/00118417 [09:55:23]OFD Sender: To server: pG, [09:55:23]CommunicateWithHost lk.salyk.kg:30040 [09:55:23]ConnectInit lk.salyk.kg [09:55:23]written 0, free lines is 4095 [09:55:24]Connected sock=10 [09:55:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 9E 12 04 01 25 66 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 19 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 51 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 8C 15 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 91 CE 01 00 35 04 06 00 10 F2 AC 7F 3B 10 30 F2 8F A2 BD DC A1 25 [09:55:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EE D9 47 00 C4 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 39 33 39 10 04 04 00 91 CE 01 00 F4 03 04 00 1C C3 A5 66 B6 04 01 00 00 F2 79 6B D1 60 D8 8D 78 [09:55:24]CommunicateWithHost err = 0 [09:55:24]CheckOFDResponse [09:55:24]1017 (14) - 77093643461234 [09:55:24]1041 (16) - 0000000000874939 [09:55:24]1040 (4) - 118417 [09:55:24]1012 (4) - 28.07.2024 04:03 [09:55:24]1206 (1) - 0 [09:55:24]OFD Sender: Remove packet 118417 [09:55:24]ProducePacketName [09:55:24]name=ofd_packets/00118417 [09:55:24]NVStorageDeleteData [09:55:24]Write to MH i2c: 01 00 00 71 14 85 [09:55:24]Write i2c OK [09:55:24]MH_I2C_Read... [09:55:24]Read from MH i2c: 01 [09:55:24]MH_I2C_Read... [09:55:24]Read from MH i2c: 01 07 00 [09:55:24]MH_I2C_Read... [09:55:24]Read from MH i2c: 01 07 00 71 14 00 00 00 00 00 E1 0C 79 [09:55:24]RasterBufferAndPrint [09:55:24]line [09:55:24]line [09:55:24]line [09:55:24]line [09:55:24]line [09:55:24]written 0, free lines is 3303 [09:55:24]MH_Cut [09:55:24]Write to MH i2c: D1 01 00 78 14 01 5E [09:55:24]Write i2c OK [09:55:24]MH_I2C_Read... [09:55:24]Read from MH i2c: D1 [09:55:24]MH_I2C_Read... [09:55:24]Read from MH i2c: D1 01 00 [09:55:24]MH_I2C_Read... [09:55:24]Read from MH i2c: D1 01 00 78 14 00 5D [09:55:24]Write to MH i2c: 01 00 00 79 14 8D [09:55:24]Write i2c OK [09:55:24]MH_I2C_Read... [09:55:24]OFD Sender: No OFD packet to send [09:55:25]*** Cut start [09:55:25]*** Partial cut [09:55:25]*** CUTSNS_PIN = 1 [09:55:25]*** CUTSNS_PIN = 0 [09:55:25]*** Brake cut motor [09:55:25]Read from MH i2c: 01 [09:55:25]MH_I2C_Read... [09:55:25]*** Stop cut motor [09:55:25]*** Cut end [09:55:25]Read from MH i2c: 01 07 00 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: 01 07 00 79 14 00 00 00 00 00 FF 0F A2 [09:55:25]process_action close_receipt done [09:55:25]requested_data is exist [09:55:25]produce_requested_data [09:55:25]requested_item fm.sn is exist - process it [09:55:25]wFMCommunicate request_size=4 [09:55:25]MH_SAM_APDU [09:55:25]CAPDU: 80 11 00 00 [09:55:25]Write to MH i2c: E2 08 00 7A 14 80 11 00 00 00 00 00 00 08 [09:55:25]Write i2c OK [09:55:25]MH_I2C_Read... [09:55:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:25]Read from MH i2c: E2 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: E2 17 00 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: E2 17 00 7A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 63 [09:55:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:55:25]wFMCommunicate OK [09:55:25]requested_item fd.num is exist - process it [09:55:25]SAM_PROTO_GetFieldsCounters [09:55:25]wFMCommunicate request_size=4 [09:55:25]MH_SAM_APDU [09:55:25]CAPDU: 80 13 00 00 [09:55:25]Write to MH i2c: E2 08 00 7B 14 80 13 00 00 00 00 00 00 0B [09:55:25]Write i2c OK [09:55:25]MH_I2C_Read... [09:55:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:25]Read from MH i2c: E2 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: E2 62 00 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: E2 62 00 7B 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 91 CE 01 00 0E 04 04 00 B1 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 46 [09:55:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 91 CE 01 00 0E 04 04 00 B1 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 [09:55:25]wFMCommunicate OK [09:55:25]SAM_PROTO_GetFieldsCounters done [09:55:25]requested_item shift.num is exist - process it [09:55:25]requested_item shift.opened is exist - process it [09:55:25]req_shift_opened [09:55:25]FM_GetShiftState [09:55:25]SAM_PROTO_GetShiftState [09:55:25]wFMCommunicate request_size=4 [09:55:25]MH_SAM_APDU [09:55:25]CAPDU: 80 13 01 00 [09:55:25]Write to MH i2c: E2 08 00 7C 14 80 13 01 00 00 00 00 00 0D [09:55:25]Write i2c OK [09:55:25]MH_I2C_Read... [09:55:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:25]Read from MH i2c: E2 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: E2 0E 00 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: E2 0E 00 7C 14 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 E4 [09:55:25]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:55:25]wFMCommunicate OK [09:55:25]SAM_PROTO_GetShiftState done [09:55:25]FM_GetShiftState done [09:55:25]req_shift_opened done [09:55:25]requested_item shift.open_date is exist - process it [09:55:25]req_shift_open_date [09:55:25]req_shift_open_date done [09:55:25]produce_requested_data done [09:55:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118417,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [09:55:25]process_action_free close_receipt [09:55:25]json_value_free [09:55:25]json_value_free done [09:55:25]process_json_proto returns [09:55:25]Send response to host [09:55:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118417,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [09:55:25]free response buf [09:55:25]execute_script done [09:55:25]execute_script returns [09:55:25]free content buf [09:55:25]Sock 9.Close socket [09:55:25]Sock 9.Thread stoped [09:55:29]OFD Sender: No OFD packet to send [09:55:34]OFD Sender: No OFD packet to send [09:55:39]OFD Sender: No OFD packet to send [09:55:44]OFD Sender: No OFD packet to send [09:55:49]OFD Sender: No OFD packet to send [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:03]accept exits with 7 [09:56:03]New connection [09:56:03]New thread 3066924388 created [09:56:03]Thread 3067067748 joined [09:56:03]Waiting for new connection... [09:56:03] Sock 7.Parse request [09:56:03]Sock 7.Check first char [09:56:03]Sock 7.First char is OK [09:56:03]request: POST /json_proto HTTP/1.0 [09:56:03]Method: POST [09:56:03]URL: /json_proto [09:56:03]Method is POST - this is cgi request [09:56:03]url: /json_proto [09:56:03]query_string will be loaded in cgi processing [09:56:03]execute_cgi json_proto POST (null) [09:56:03]execute_cgi path=json_proto method=POST [09:56:03]POST find Content-Length [09:56:03]Host: 172.17.45.7:8080 [09:56:03]Content-Length: 822 [09:56:03]Content-Type: application/json [09:56:03] [09:56:03]POST finish read [09:56:03]Found Content-Length = 822 [09:56:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:03]execute_script... [09: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)949291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:03]POST & json_proto [09:56:03]process_json_proto [09:56:03]json parsed OK: [09:56:03]protocol is kg_v1.0 [09:56:03]action value=close_receipt [09:56:03]process_action close_receipt [09:56:03]cmd_close_receipt [09:56:03]MH_GetDate [09:56:03]Write to MH i2c: F0 00 00 7D 14 80 [09:56:03]Write i2c OK [09:56:03]MH_I2C_Read... [09:56:03]Read from MH i2c: F0 [09:56:03]MH_I2C_Read... [09:56:03]Read from MH i2c: F0 09 00 [09:56:03]MH_I2C_Read... [09:56:03]Read from MH i2c: F0 09 00 7D 14 00 B5 15 A6 66 90 0F 3E 66 A2 [09:56:03]GetLastDocTimeStamp 1722160524 [09:56:03]current date 1722160565 [09:56:03]FM_GetShiftState [09:56:03]SAM_PROTO_GetShiftState [09:56:03]wFMCommunicate request_size=4 [09:56:03]MH_SAM_APDU [09:56:03]CAPDU: 80 13 01 00 [09:56:03]Write to MH i2c: E2 08 00 7E 14 80 13 01 00 00 00 00 00 0F [09:56:03]Write i2c OK [09:56:03]MH_I2C_Read... [09:56:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:03]Read from MH i2c: E2 [09:56:03]MH_I2C_Read... [09:56:03]Read from MH i2c: E2 0E 00 [09:56:03]MH_I2C_Read... [09:56:03]Read from MH i2c: E2 0E 00 7E 14 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 E6 [09:56:03]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:56:03]wFMCommunicate OK [09:56:03]SAM_PROTO_GetShiftState done [09:56:03]FM_GetShiftState done [09:56:03]opened in 1722125364 [09:56:03]opened+sec_in_day 1722211764 [09:56:03]quantity*price = 100021 [09:56:03]sum+1 = 100023 [09:56:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 87 28.07.2024 09:56 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118418 ФПД: 26943764653999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T095606&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118418&fm=26943764653999&tin=02508201610067®Number=0000000000092660&sum=100000 [09:56:05]StoreToDocumentArchive [09:56:05]shift 433 fd 118418 [09:56:05]save to /storage/0433/doc_00118418 [09:56:05]save last doc name /storage/0433/doc_00118418 to /storage/kkm_last_doc_name [09:56:05]save OK [09:56:05]Clear old archive folders... [09:56:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:56:05]tlvbuf is B6EDD570 [09:56:05]SAM_PROTO_ClearQueue [09:56:05]wFMCommunicate request_size=4 [09:56:05]MH_SAM_APDU [09:56:05]CAPDU: 80 09 00 00 [09:56:05]Write to MH i2c: E2 08 00 8B 14 80 09 00 00 00 00 00 00 11 [09:56:05]Write i2c OK [09:56:05]MH_I2C_Read... [09:56:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:05]Read from MH i2c: E2 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: E2 03 00 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: E2 03 00 8B 14 00 90 00 13 [09:56:05]RAPDU: 90 00 [09:56:05]wFMCommunicate OK [09:56:05]SAM_PROTO_ClearQueue done [09:56:05]KKMCreateOFDPacket [09:56:05]OFDProtocolAddRootSTLVToBuf [09:56:05]FM_MakeSignedData [09:56:05]FM_MakeSignedData [09:56:05]SAM_PROTO_SignData [09:56:05]wFMCommunicate request_size=4 [09:56:05]MH_SAM_APDU [09:56:05]CAPDU: 80 0D 01 02 [09:56:05]Write to MH i2c: E2 08 00 8C 14 80 0D 01 02 00 00 00 00 19 [09:56:05]Write i2c OK [09:56:05]MH_I2C_Read... [09:56:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:05]Read from MH i2c: E2 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: E2 03 00 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: E2 03 00 8C 14 00 90 00 14 [09:56:05]RAPDU: 90 00 [09:56:05]wFMCommunicate OK [09:56:05]wFMCommunicate request_size=255 [09:56:05]MH_SAM_APDU [09:56:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 B6 15 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 92 CE 01 00 35 04 06 00 18 [09:56:05]Write to MH i2c: E2 02 01 8D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 B6 15 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 92 CE 01 00 35 04 06 00 18 00 00 22 [09:56:05]Write i2c OK [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: E2 [09:56:05]MH_I2C_Read... [09:56:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:05]Read from MH i2c: E2 03 00 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: E2 03 00 8D 14 00 90 00 15 [09:56:05]RAPDU: 90 00 [09:56:05]wFMCommunicate OK [09:56:05]wFMCommunicate request_size=10 [09:56:05]MH_SAM_APDU [09:56:05]CAPDU: 80 0D 02 02 05 81 55 85 67 AF [09:56:05]Write to MH i2c: E2 0D 00 8E 14 80 0D 02 02 05 00 81 55 85 67 AF 00 00 97 [09:56:05]Write i2c OK [09:56:05]MH_I2C_Read... [09:56:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:05]Read from MH i2c: E2 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: E2 03 00 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: E2 03 00 8E 14 00 90 00 16 [09:56:05]RAPDU: 90 00 [09:56:05]wFMCommunicate OK [09:56:05]wFMCommunicate request_size=4 [09:56:05]MH_SAM_APDU [09:56:05]CAPDU: 80 0D 03 02 [09:56:05]Write to MH i2c: E2 08 00 8F 14 80 0D 03 02 00 00 00 00 1E [09:56:05]Write i2c OK [09:56:05]MH_I2C_Read... [09:56:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:05]Read from MH i2c: E2 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: E2 0B 00 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: E2 0B 00 8F 14 00 CA 60 75 6C 52 9A 32 9B 90 00 E3 [09:56:05]RAPDU: CA 60 75 6C 52 9A 32 9B 90 00 [09:56:05]wFMCommunicate OK [09:56:05]SAM_PROTO_SignData done [09:56:05]FM_MakeSignedData done [09:56:05]CreateOFDProtocolMessage [09:56:05]wFMCommunicate request_size=4 [09:56:05]MH_SAM_APDU [09:56:05]CAPDU: 80 11 00 00 [09:56:05]Write to MH i2c: E2 08 00 90 14 80 11 00 00 00 00 00 00 1E [09:56:05]Write i2c OK [09:56:05]MH_I2C_Read... [09:56:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:05]Read from MH i2c: E2 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: E2 17 00 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: E2 17 00 90 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 79 [09:56:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:56:05]wFMCommunicate OK [09:56:05]CreateOFDProtocolMessage done [09:56:05]OFDSenderStorePacket 118418 [09:56:05]StoreOFDPacket docnum=118418 [09:56:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 1A 3C 07 01 A6 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 B6 15 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 92 CE 01 00 35 04 06 00 18 81 55 85 67 AF CA 60 75 6C 52 9A 32 9B [09:56:05]CheckFolder [09:56:05]dirname=/storage/ofd_packets [09:56:05]CheckFolder done [09:56:05]ProducePacketName [09:56:05]name=ofd_packets/00118418 [09:56:05]NVStorageSaveData ofd_packets/00118418 [09:56:05]File name is /storage/ofd_packets/00118418 [09:56:05]Write 301 bytes [09:56:05]NVStorageSaveData done [09:56:05]OFDSenderStorePacket done [09:56:05]KKMCreateOFDPacket done [09:56:05]NVStorageSaveData kkm_last_timestamp [09:56:05]File name is /storage/kkm_last_timestamp [09:56:05]Write 4 bytes [09:56:05]NVStorageSaveData done [09:56:05]ExternCall_PrintAddStr [09:56:05]wPrintStart [09:56:05]Write to MH i2c: 01 00 00 91 14 A5 [09:56:05]Write i2c OK [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: 01 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: 01 07 00 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: 01 07 00 91 14 00 00 00 00 00 FF 0F BA [09:56:05]RasterBufferAndPrint [09:56:05]line Счет N : (1)949291 [09:56:05]line ИНН: 02508201610067 [09:56:05]line Контрольно-Кассовый Чек [09:56:05]line ПРОДАЖА [09:56:05]line ТРК (МРК, ГНК) : 43 [09:56:05]line Товар: 2710124500 [09:56:05]line Аи-95-К-3 [09:56:05]line 13.480 * 74.20 [09:56:05]line = 1000.22 [09:56:05]line НДС 12% НСП 1% [09:56:05]line > о реализуемом товаре [09:56:05]line ОКРУГЛЕНИЕ: -0.22 [09:56:05]line ИТОГО: 1000.00 [09:56:05]line НСП 1% : 8.85 [09:56:05]line НДС 12% : 106.22 [09:56:05]line Наличными: 0.00 [09:56:05]line Безнал.: 1000.00 [09:56:05]line Место: АЗС № 134 "Партнер Нефть" [09:56:05]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:56:05]line СНО: Общий режим [09:56:05]line Чек 87 28.07.2024 09:56 [09:56:05]line Смена: 433 ФФД: 1.0 [09:56:05]line ЗНМ: 0300000044 [09:56:05]line РНМ: 0000000000092660 [09:56:05]line Версия ККМ: 001 [09:56:05]line Платежная система: O! деньги [09:56:05]line ФМ: 0000000000874939 [09:56:05]line ФД: 118418 [09:56:05]line ФПД: 26943764653999 [09:56:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T095606&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118418&fm=26943764653999&tin=02508201610067®Number=0000000000092660&sum=100000 [09:56:05]OFD Sender: Processing packet 118418 [packets to send 86, broken 85] [09:56:05]ProducePacketName [09:56:05]name=ofd_packets/00118418 [09:56:05]OFD Sender: To server: pG, [09:56:05]CommunicateWithHost lk.salyk.kg:30040 [09:56:05]ConnectInit lk.salyk.kg [09:56:05]written 0, free lines is 4095 [09:56:06]Connected sock=10 [09:56:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 1A 3C 07 01 A6 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 B6 15 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 92 CE 01 00 35 04 06 00 18 81 55 85 67 AF CA 60 75 6C 52 9A 32 9B [09:56:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E9 82 47 00 BD A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 92 CE 01 00 F4 03 04 00 46 C3 A5 66 B6 04 01 00 00 1C 73 0A 3D 77 F5 BE E7 [09:56:06]CommunicateWithHost err = 0 [09:56:06]CheckOFDResponse [09:56:06]1017 (14) - 77093643461234 [09:56:06]1041 (16) - 0000000000874939 [09:56:06]1040 (4) - 118418 [09:56:06]1012 (4) - 28.07.2024 04:04 [09:56:06]1206 (1) - 0 [09:56:06]OFD Sender: Remove packet 118418 [09:56:06]ProducePacketName [09:56:06]name=ofd_packets/00118418 [09:56:06]NVStorageDeleteData [09:56:06]Write to MH i2c: 01 00 00 BB 14 CF [09:56:06]Write i2c OK [09:56:06]MH_I2C_Read... [09:56:06]Read from MH i2c: 01 [09:56:06]MH_I2C_Read... [09:56:06]Read from MH i2c: 01 07 00 [09:56:06]MH_I2C_Read... [09:56:06]Read from MH i2c: 01 07 00 BB 14 00 00 00 00 00 ED 0C CF [09:56:06]RasterBufferAndPrint [09:56:06]line [09:56:06]line [09:56:06]line [09:56:06]line [09:56:06]line [09:56:06]written 0, free lines is 3315 [09:56:06]MH_Cut [09:56:06]Write to MH i2c: D1 01 00 C2 14 01 A8 [09:56:06]Write i2c OK [09:56:06]MH_I2C_Read... [09:56:06]Read from MH i2c: D1 [09:56:06]MH_I2C_Read... [09:56:06]Read from MH i2c: D1 01 00 [09:56:06]MH_I2C_Read... [09:56:06]Read from MH i2c: D1 01 00 C2 14 00 A7 [09:56:06]Write to MH i2c: 01 00 00 C3 14 D7 [09:56:06]Write i2c OK [09:56:06]MH_I2C_Read... [09:56:06]OFD Sender: No OFD packet to send [09:56:07]*** Cut start [09:56:07]*** Partial cut [09:56:07]*** CUTSNS_PIN = 1 [09:56:07]*** CUTSNS_PIN = 0 [09:56:07]*** Brake cut motor [09:56:07]Read from MH i2c: 01 [09:56:07]MH_I2C_Read... [09:56:07]*** Stop cut motor [09:56:07]*** Cut end [09:56:07]Read from MH i2c: 01 07 00 [09:56:07]MH_I2C_Read... [09:56:07]Read from MH i2c: 01 07 00 C3 14 00 00 00 00 00 FF 0F EC [09:56:07]process_action close_receipt done [09:56:07]requested_data is exist [09:56:07]produce_requested_data [09:56:07]requested_item fm.sn is exist - process it [09:56:07]wFMCommunicate request_size=4 [09:56:07]MH_SAM_APDU [09:56:07]CAPDU: 80 11 00 00 [09:56:07]Write to MH i2c: E2 08 00 C4 14 80 11 00 00 00 00 00 00 52 [09:56:07]Write i2c OK [09:56:07]MH_I2C_Read... [09:56:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:07]Read from MH i2c: E2 [09:56:07]MH_I2C_Read... [09:56:07]Read from MH i2c: E2 17 00 [09:56:07]MH_I2C_Read... [09:56:07]Read from MH i2c: E2 17 00 C4 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AD [09:56:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:56:07]wFMCommunicate OK [09:56:07]requested_item fd.num is exist - process it [09:56:07]SAM_PROTO_GetFieldsCounters [09:56:07]wFMCommunicate request_size=4 [09:56:07]MH_SAM_APDU [09:56:07]CAPDU: 80 13 00 00 [09:56:07]Write to MH i2c: E2 08 00 C5 14 80 13 00 00 00 00 00 00 55 [09:56:07]Write i2c OK [09:56:07]MH_I2C_Read... [09:56:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:07]Read from MH i2c: E2 [09:56:07]MH_I2C_Read... [09:56:07]Read from MH i2c: E2 62 00 [09:56:07]MH_I2C_Read... [09:56:07]Read from MH i2c: E2 62 00 C5 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 92 CE 01 00 0E 04 04 00 B1 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 94 [09:56:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 92 CE 01 00 0E 04 04 00 B1 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 [09:56:07]wFMCommunicate OK [09:56:07]SAM_PROTO_GetFieldsCounters done [09:56:07]requested_item shift.num is exist - process it [09:56:07]requested_item shift.opened is exist - process it [09:56:07]req_shift_opened [09:56:07]FM_GetShiftState [09:56:07]SAM_PROTO_GetShiftState [09:56:07]wFMCommunicate request_size=4 [09:56:07]MH_SAM_APDU [09:56:07]CAPDU: 80 13 01 00 [09:56:07]Write to MH i2c: E2 08 00 C6 14 80 13 01 00 00 00 00 00 57 [09:56:07]Write i2c OK [09:56:07]MH_I2C_Read... [09:56:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:07]Read from MH i2c: E2 [09:56:07]MH_I2C_Read... [09:56:07]Read from MH i2c: E2 0E 00 [09:56:07]MH_I2C_Read... [09:56:07]Read from MH i2c: E2 0E 00 C6 14 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 2E [09:56:07]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:56:07]wFMCommunicate OK [09:56:07]SAM_PROTO_GetShiftState done [09:56:07]FM_GetShiftState done [09:56:07]req_shift_opened done [09:56:07]requested_item shift.open_date is exist - process it [09:56:07]req_shift_open_date [09:56:07]req_shift_open_date done [09:56:07]produce_requested_data done [09:56:07]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118418,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [09:56:07]process_action_free close_receipt [09:56:07]json_value_free [09:56:07]json_value_free done [09:56:07]process_json_proto returns [09:56:07]Send response to host [09:56:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118418,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [09:56:07]free response buf [09:56:07]execute_script done [09:56:07]execute_script returns [09:56:07]free content buf [09:56:07]Sock 7.Close socket [09:56:07]Sock 7.Thread stoped [09:56:11]OFD Sender: No OFD packet to send [09:56:16]OFD Sender: No OFD packet to send [09:56:21]OFD Sender: No OFD packet to send [09:56:26]OFD Sender: No OFD packet to send [09:56:31]OFD Sender: No OFD packet to send [09:56:36]OFD Sender: No OFD packet to send [09:56:39]accept exits with 9 [09:56:39]New connection [09:56:39]New thread 3067067748 created [09:56:39]Thread 3066924388 joined [09:56:39]Waiting for new connection... [09:56:39] Sock 9.Parse request [09:56:39]Sock 9.Check first char [09:56:39]Sock 9.First char is OK [09:56:39]request: POST /json_proto HTTP/1.0 [09:56:39]Method: POST [09:56:39]URL: /json_proto [09:56:39]Method is POST - this is cgi request [09:56:39]url: /json_proto [09:56:39]query_string will be loaded in cgi processing [09:56:39]execute_cgi json_proto POST (null) [09:56:39]execute_cgi path=json_proto method=POST [09:56:39]POST find Content-Length [09:56:39]Host: 172.17.45.7:8080 [09:56:39]Content-Length: 679 [09:56:39]Content-Type: application/json [09:56:39] [09:56:39]POST finish read [09:56:39]Found Content-Length = 679 [09:56:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:39]execute_script... [09:56: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)949292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:39]POST & json_proto [09:56:39]process_json_proto [09:56:39]json parsed OK: [09:56:39]protocol is kg_v1.0 [09:56:39]action value=close_receipt [09:56:39]process_action close_receipt [09:56:39]cmd_close_receipt [09:56:39]MH_GetDate [09:56:39]Write to MH i2c: F0 00 00 C7 14 CA [09:56:39]Write i2c OK [09:56:39]MH_I2C_Read... [09:56:39]Read from MH i2c: F0 [09:56:39]MH_I2C_Read... [09:56:39]Read from MH i2c: F0 09 00 [09:56:39]MH_I2C_Read... [09:56:39]Read from MH i2c: F0 09 00 C7 14 00 D9 15 A6 66 90 0F 3E 66 10 [09:56:39]GetLastDocTimeStamp 1722160566 [09:56:39]current date 1722160601 [09:56:39]FM_GetShiftState [09:56:39]SAM_PROTO_GetShiftState [09:56:39]wFMCommunicate request_size=4 [09:56:39]MH_SAM_APDU [09:56:39]CAPDU: 80 13 01 00 [09:56:39]Write to MH i2c: E2 08 00 C8 14 80 13 01 00 00 00 00 00 59 [09:56:39]Write i2c OK [09:56:39]MH_I2C_Read... [09:56:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:39]Read from MH i2c: E2 [09:56:39]MH_I2C_Read... [09:56:39]Read from MH i2c: E2 0E 00 [09:56:39]MH_I2C_Read... [09:56:39]Read from MH i2c: E2 0E 00 C8 14 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 30 [09:56:39]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:56:39]wFMCommunicate OK [09:56:39]SAM_PROTO_GetShiftState done [09:56:39]FM_GetShiftState done [09:56:39]opened in 1722125364 [09:56:39]opened+sec_in_day 1722211764 [09:56:39]quantity*price = 100050 [09:56:39]sum+1 = 100052 [09:56:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 88 28.07.2024 09:56 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118419 ФПД: 35196029595456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T095641&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118419&fm=35196029595456&tin=02508201610067®Number=0000000000092660&sum=100000 [09:56:40]StoreToDocumentArchive [09:56:40]shift 433 fd 118419 [09:56:40]save to /storage/0433/doc_00118419 [09:56:40]save last doc name /storage/0433/doc_00118419 to /storage/kkm_last_doc_name [09:56:40]save OK [09:56:40]Clear old archive folders... [09:56:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:56:40]tlvbuf is 0013D100 [09:56:40]SAM_PROTO_ClearQueue [09:56:40]wFMCommunicate request_size=4 [09:56:40]MH_SAM_APDU [09:56:40]CAPDU: 80 09 00 00 [09:56:40]Write to MH i2c: E2 08 00 D5 14 80 09 00 00 00 00 00 00 5B [09:56:40]Write i2c OK [09:56:40]MH_I2C_Read... [09:56:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:40]Read from MH i2c: E2 [09:56:40]MH_I2C_Read... [09:56:40]Read from MH i2c: E2 03 00 [09:56:40]MH_I2C_Read... [09:56:40]Read from MH i2c: E2 03 00 D5 14 00 90 00 5D [09:56:40]RAPDU: 90 00 [09:56:40]wFMCommunicate OK [09:56:40]SAM_PROTO_ClearQueue done [09:56:40]KKMCreateOFDPacket [09:56:40]OFDProtocolAddRootSTLVToBuf [09:56:40]FM_MakeSignedData [09:56:40]FM_MakeSignedData [09:56:40]SAM_PROTO_SignData [09:56:40]wFMCommunicate request_size=4 [09:56:40]MH_SAM_APDU [09:56:40]CAPDU: 80 0D 01 02 [09:56:40]Write to MH i2c: E2 08 00 D6 14 80 0D 01 02 00 00 00 00 63 [09:56:40]Write i2c OK [09:56:40]MH_I2C_Read... [09:56:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:40]Read from MH i2c: E2 [09:56:40]MH_I2C_Read... [09:56:40]Read from MH i2c: E2 03 00 [09:56:40]MH_I2C_Read... [09:56:40]Read from MH i2c: E2 03 00 D6 14 00 90 00 5E [09:56:40]RAPDU: 90 00 [09:56:40]wFMCommunicate OK [09:56:40]wFMCommunicate request_size=255 [09:56:40]MH_SAM_APDU [09:56:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 D9 15 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 93 CE 01 00 35 04 06 00 20 02 B6 D7 [09:56:40]Write to MH i2c: E2 02 01 D7 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 D9 15 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 93 CE 01 00 35 04 06 00 20 02 B6 D7 00 00 08 [09:56:40]Write i2c OK [09:56:40]MH_I2C_Read... [09:56:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:40]Read from MH i2c: E2 [09:56:40]MH_I2C_Read... [09:56:40]Read from MH i2c: E2 03 00 [09:56:40]MH_I2C_Read... [09:56:40]Read from MH i2c: E2 03 00 D7 14 00 90 00 5F [09:56:40]RAPDU: 90 00 [09:56:40]wFMCommunicate OK [09:56:40]wFMCommunicate request_size=7 [09:56:40]MH_SAM_APDU [09:56:40]CAPDU: 80 0D 02 02 02 6F 40 [09:56:40]Write to MH i2c: E2 0A 00 D8 14 80 0D 02 02 02 00 6F 40 00 00 19 [09:56:40]Write i2c OK [09:56:40]MH_I2C_Read... [09:56:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:40]Read from MH i2c: E2 [09:56:40]MH_I2C_Read... [09:56:40]Read from MH i2c: E2 03 00 [09:56:40]MH_I2C_Read... [09:56:40]Read from MH i2c: E2 03 00 D8 14 00 90 00 60 [09:56:40]RAPDU: 90 00 [09:56:40]wFMCommunicate OK [09:56:40]wFMCommunicate request_size=4 [09:56:40]MH_SAM_APDU [09:56:40]CAPDU: 80 0D 03 02 [09:56:40]Write to MH i2c: E2 08 00 D9 14 80 0D 03 02 00 00 00 00 68 [09:56:40]Write i2c OK [09:56:40]MH_I2C_Read... [09:56:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:40]Read from MH i2c: E2 [09:56:40]MH_I2C_Read... [09:56:40]Read from MH i2c: E2 0B 00 [09:56:40]MH_I2C_Read... [09:56:40]Read from MH i2c: E2 0B 00 D9 14 00 C1 91 23 97 86 A5 FD 73 90 00 10 [09:56:40]RAPDU: C1 91 23 97 86 A5 FD 73 90 00 [09:56:40]wFMCommunicate OK [09:56:40]SAM_PROTO_SignData done [09:56:40]FM_MakeSignedData done [09:56:40]CreateOFDProtocolMessage [09:56:40]wFMCommunicate request_size=4 [09:56:40]MH_SAM_APDU [09:56:40]CAPDU: 80 11 00 00 [09:56:40]Write to MH i2c: E2 08 00 DA 14 80 11 00 00 00 00 00 00 68 [09:56:40]Write i2c OK [09:56:40]MH_I2C_Read... [09:56:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:40]Read from MH i2c: E2 [09:56:40]MH_I2C_Read... [09:56:40]Read from MH i2c: E2 17 00 [09:56:40]MH_I2C_Read... [09:56:40]Read from MH i2c: E2 17 00 DA 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C3 [09:56:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:56:40]wFMCommunicate OK [09:56:40]CreateOFDProtocolMessage done [09:56:40]OFDSenderStorePacket 118419 [09:56:40]StoreOFDPacket docnum=118419 [09:56:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 DB 32 04 01 0D 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 D9 15 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 93 CE 01 00 35 04 06 00 20 02 B6 D7 6F 40 C1 91 23 97 86 A5 FD 73 [09:56:40]CheckFolder [09:56:40]dirname=/storage/ofd_packets [09:56:40]CheckFolder done [09:56:40]ProducePacketName [09:56:40]name=ofd_packets/00118419 [09:56:40]NVStorageSaveData ofd_packets/00118419 [09:56:40]File name is /storage/ofd_packets/00118419 [09:56:40]Write 298 bytes [09:56:40]NVStorageSaveData done [09:56:40]OFDSenderStorePacket done [09:56:40]KKMCreateOFDPacket done [09:56:40]NVStorageSaveData kkm_last_timestamp [09:56:40]File name is /storage/kkm_last_timestamp [09:56:40]Write 4 bytes [09:56:40]NVStorageSaveData done [09:56:40]ExternCall_PrintAddStr [09:56:40]wPrintStart [09:56:40]Write to MH i2c: 01 00 00 DB 14 EF [09:56:40]Write i2c OK [09:56:40]MH_I2C_Read... [09:56:40]Read from MH i2c: 01 [09:56:40]MH_I2C_Read... [09:56:40]Read from MH i2c: 01 07 00 [09:56:40]MH_I2C_Read... [09:56:40]Read from MH i2c: 01 07 00 DB 14 00 00 00 00 00 FF 0F 04 [09:56:40]RasterBufferAndPrint [09:56:40]line Счет N : (1)949292 [09:56:40]line ИНН: 02508201610067 [09:56:40]line Контрольно-Кассовый Чек [09:56:40]line ПРОДАЖА [09:56:40]line ТРК (МРК, ГНК) : 54 [09:56:40]line Товар: 2710194800 [09:56:40]line ДТ-К-5 [09:56:40]line 13.130 * 76.20 [09:56:40]line = 1000.51 [09:56:40]line НДС 12% НСП 1% [09:56:40]line > о реализуемом товаре [09:56:40]line ОКРУГЛЕНИЕ: -0.51 [09:56:40]line ИТОГО: 1000.00 [09:56:40]line Внесено: 1000.00 [09:56:40]line СДАЧА: 0.00 [09:56:40]line НСП 1% : 8.85 [09:56:40]line НДС 12% : 106.25 [09:56:40]line Наличными: 1000.00 [09:56:40]line Безнал.: 0.00 [09:56:40]line Место: АЗС № 134 "Партнер Нефть" [09:56:40]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:56:40]line СНО: Общий режим [09:56:40]line Чек 88 28.07.2024 09:56 [09:56:40]line Смена: 433 ФФД: 1.0 [09:56:40]line ЗНМ: 0300000044 [09:56:40]line РНМ: 0000000000092660 [09:56:40]line Версия ККМ: 001 [09:56:40]line ФМ: 0000000000874939 [09:56:40]line ФД: 118419 [09:56:40]line ФПД: 35196029595456 [09:56:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T095641&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118419&fm=35196029595456&tin=02508201610067®Number=0000000000092660&sum=100000 [09:56:41]OFD Sender: Processing packet 118419 [packets to send 86, broken 85] [09:56:41]ProducePacketName [09:56:41]name=ofd_packets/00118419 [09:56:41]OFD Sender: To server: pG, [09:56:41]CommunicateWithHost lk.salyk.kg:30040 [09:56:41]ConnectInit lk.salyk.kg [09:56:41]written 0, free lines is 4095 [09:56:41]Connected sock=10 [09:56: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 39 33 39 0C 01 00 00 DB 32 04 01 0D 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 D9 15 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 93 CE 01 00 35 04 06 00 20 02 B6 D7 6F 40 C1 91 23 97 86 A5 FD 73 [09:56:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 45 4B 47 00 1B AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 93 CE 01 00 F4 03 04 00 69 C3 A5 66 B6 04 01 00 00 7C 32 78 C5 B0 6F D3 B9 [09:56:41]CommunicateWithHost err = 0 [09:56:41]CheckOFDResponse [09:56:41]1017 (14) - 77093643461234 [09:56:41]1041 (16) - 0000000000874939 [09:56:41]1040 (4) - 118419 [09:56:41]1012 (4) - 28.07.2024 04:04 [09:56:41]1206 (1) - 0 [09:56:41]OFD Sender: Remove packet 118419 [09:56:41]ProducePacketName [09:56:41]name=ofd_packets/00118419 [09:56:41]NVStorageDeleteData [09:56:41]Write to MH i2c: 01 00 00 05 15 1A [09:56:41]Write i2c OK [09:56:41]MH_I2C_Read... [09:56:41]Read from MH i2c: 01 [09:56:41]MH_I2C_Read... [09:56:41]Read from MH i2c: 01 07 00 [09:56:41]MH_I2C_Read... [09:56:41]Read from MH i2c: 01 07 00 05 15 00 00 00 00 00 DC 0C 09 [09:56:41]RasterBufferAndPrint [09:56:41]line [09:56:41]line [09:56:41]line [09:56:41]line [09:56:41]line [09:56:41]written 0, free lines is 3298 [09:56:41]MH_Cut [09:56:41]Write to MH i2c: D1 01 00 0C 15 01 F3 [09:56:41]Write i2c OK [09:56:41]MH_I2C_Read... [09:56:41]Read from MH i2c: D1 [09:56:41]MH_I2C_Read... [09:56:41]Read from MH i2c: D1 01 00 [09:56:41]MH_I2C_Read... [09:56:41]Read from MH i2c: D1 01 00 0C 15 00 F2 [09:56:41]Write to MH i2c: 01 00 00 0D 15 22 [09:56:41]Write i2c OK [09:56:41]MH_I2C_Read... [09:56:41]OFD Sender: No OFD packet to send [09:56:42]*** Cut start [09:56:42]*** Partial cut [09:56:42]*** CUTSNS_PIN = 1 [09:56:42]*** CUTSNS_PIN = 0 [09:56:42]*** Brake cut motor [09:56:42]Read from MH i2c: 01 [09:56:42]MH_I2C_Read... [09:56:42]*** Stop cut motor [09:56:42]*** Cut end [09:56:42]Read from MH i2c: 01 07 00 [09:56:42]MH_I2C_Read... [09:56:42]Read from MH i2c: 01 07 00 0D 15 00 00 00 00 00 FF 0F 37 [09:56:42]process_action close_receipt done [09:56:42]requested_data is exist [09:56:42]produce_requested_data [09:56:42]requested_item fm.sn is exist - process it [09:56:42]wFMCommunicate request_size=4 [09:56:42]MH_SAM_APDU [09:56:42]CAPDU: 80 11 00 00 [09:56:42]Write to MH i2c: E2 08 00 0E 15 80 11 00 00 00 00 00 00 9D [09:56:42]Write i2c OK [09:56:42]MH_I2C_Read... [09:56:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:42]Read from MH i2c: E2 [09:56:42]MH_I2C_Read... [09:56:42]Read from MH i2c: E2 17 00 [09:56:42]MH_I2C_Read... [09:56:42]Read from MH i2c: E2 17 00 0E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F8 [09:56:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:56:42]wFMCommunicate OK [09:56:42]requested_item fd.num is exist - process it [09:56:42]SAM_PROTO_GetFieldsCounters [09:56:42]wFMCommunicate request_size=4 [09:56:42]MH_SAM_APDU [09:56:42]CAPDU: 80 13 00 00 [09:56:42]Write to MH i2c: E2 08 00 0F 15 80 13 00 00 00 00 00 00 A0 [09:56:42]Write i2c OK [09:56:42]MH_I2C_Read... [09:56:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:43]Read from MH i2c: E2 [09:56:43]MH_I2C_Read... [09:56:43]Read from MH i2c: E2 62 00 [09:56:43]MH_I2C_Read... [09:56:43]Read from MH i2c: E2 62 00 0F 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 93 CE 01 00 0E 04 04 00 B1 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 E3 [09:56: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 93 CE 01 00 0E 04 04 00 B1 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 [09:56:43]wFMCommunicate OK [09:56:43]SAM_PROTO_GetFieldsCounters done [09:56:43]requested_item shift.num is exist - process it [09:56:43]requested_item shift.opened is exist - process it [09:56:43]req_shift_opened [09:56:43]FM_GetShiftState [09:56:43]SAM_PROTO_GetShiftState [09:56:43]wFMCommunicate request_size=4 [09:56:43]MH_SAM_APDU [09:56:43]CAPDU: 80 13 01 00 [09:56:43]Write to MH i2c: E2 08 00 10 15 80 13 01 00 00 00 00 00 A2 [09:56:43]Write i2c OK [09:56:43]MH_I2C_Read... [09:56:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:43]Read from MH i2c: E2 [09:56:43]MH_I2C_Read... [09:56:43]Read from MH i2c: E2 0E 00 [09:56:43]MH_I2C_Read... [09:56:43]Read from MH i2c: E2 0E 00 10 15 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 79 [09:56:43]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:56:43]wFMCommunicate OK [09:56:43]SAM_PROTO_GetShiftState done [09:56:43]FM_GetShiftState done [09:56:43]req_shift_opened done [09:56:43]requested_item shift.open_date is exist - process it [09:56:43]req_shift_open_date [09:56:43]req_shift_open_date done [09:56:43]produce_requested_data done [09:56:43]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118419,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [09:56:43]process_action_free close_receipt [09:56:43]json_value_free [09:56:43]json_value_free done [09:56:43]process_json_proto returns [09:56:43]Send response to host [09:56:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118419,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [09:56:43]free response buf [09:56:43]execute_script done [09:56:43]execute_script returns [09:56:43]free content buf [09:56:43]Sock 9.Close socket [09:56:43]Sock 9.Thread stoped [09:56:46]OFD Sender: No OFD packet to send [09:56:51]OFD Sender: No OFD packet to send [09:56:56]OFD Sender: No OFD packet to send [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [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:08]accept exits with 7 [09:58:08]New connection [09:58:08]New thread 3066924388 created [09:58:08]Thread 3067067748 joined [09:58:08]Waiting for new connection... [09:58:08] Sock 7.Parse request [09:58:08]Sock 7.Check first char [09:58:08]Sock 7.First char is OK [09:58:08]request: POST /json_proto HTTP/1.0 [09:58:08]Method: POST [09:58:08]URL: /json_proto [09:58:08]Method is POST - this is cgi request [09:58:08]url: /json_proto [09:58:08]query_string will be loaded in cgi processing [09:58:08]execute_cgi json_proto POST (null) [09:58:08]execute_cgi path=json_proto method=POST [09:58:08]POST find Content-Length [09:58:08]Host: 172.17.45.7:8080 [09:58:08]Content-Length: 677 [09:58:08]Content-Type: application/json [09:58:08] [09:58:08]POST finish read [09:58:08]Found Content-Length = 677 [09:58:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:08]execute_script... [09:58: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)949293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:08]POST & json_proto [09:58:08]process_json_proto [09:58:08]json parsed OK: [09:58:08]protocol is kg_v1.0 [09:58:08]action value=close_receipt [09:58:08]process_action close_receipt [09:58:08]cmd_close_receipt [09:58:08]MH_GetDate [09:58:08]Write to MH i2c: F0 00 00 11 15 15 [09:58:08]Write i2c OK [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: F0 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: F0 09 00 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: F0 09 00 11 15 00 32 16 A6 66 90 0F 3E 66 B5 [09:58:08]GetLastDocTimeStamp 1722160601 [09:58:08]current date 1722160690 [09:58:08]FM_GetShiftState [09:58:08]SAM_PROTO_GetShiftState [09:58:08]wFMCommunicate request_size=4 [09:58:08]MH_SAM_APDU [09:58:08]CAPDU: 80 13 01 00 [09:58:08]Write to MH i2c: E2 08 00 12 15 80 13 01 00 00 00 00 00 A4 [09:58:08]Write i2c OK [09:58:08]MH_I2C_Read... [09:58:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:08]Read from MH i2c: E2 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 0E 00 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 0E 00 12 15 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 7B [09:58:08]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:58:08]wFMCommunicate OK [09:58:08]SAM_PROTO_GetShiftState done [09:58:08]FM_GetShiftState done [09:58:08]opened in 1722125364 [09:58:08]opened+sec_in_day 1722211764 [09:58:08]quantity*price = 60027 [09:58:08]sum+1 = 60029 [09:58:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 89 28.07.2024 09:58 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118420 ФПД: 250295449677058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T095810&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118420&fm=250295449677058&tin=02508201610067®Number=0000000000092660&sum=60000 [09:58:09]StoreToDocumentArchive [09:58:09]shift 433 fd 118420 [09:58:09]save to /storage/0433/doc_00118420 [09:58:09]save last doc name /storage/0433/doc_00118420 to /storage/kkm_last_doc_name [09:58:09]save OK [09:58:09]Clear old archive folders... [09:58:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:58:09]tlvbuf is 001C90D0 [09:58:09]SAM_PROTO_ClearQueue [09:58:09]wFMCommunicate request_size=4 [09:58:09]MH_SAM_APDU [09:58:09]CAPDU: 80 09 00 00 [09:58:09]Write to MH i2c: E2 08 00 1F 15 80 09 00 00 00 00 00 00 A6 [09:58:09]Write i2c OK [09:58:09]MH_I2C_Read... [09:58:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:09]Read from MH i2c: E2 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 03 00 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 03 00 1F 15 00 90 00 A8 [09:58:09]RAPDU: 90 00 [09:58:09]wFMCommunicate OK [09:58:09]SAM_PROTO_ClearQueue done [09:58:09]KKMCreateOFDPacket [09:58:09]OFDProtocolAddRootSTLVToBuf [09:58:09]FM_MakeSignedData [09:58:09]FM_MakeSignedData [09:58:09]SAM_PROTO_SignData [09:58:09]wFMCommunicate request_size=4 [09:58:09]MH_SAM_APDU [09:58:09]CAPDU: 80 0D 01 02 [09:58:09]Write to MH i2c: E2 08 00 20 15 80 0D 01 02 00 00 00 00 AE [09:58:09]Write i2c OK [09:58:09]MH_I2C_Read... [09:58:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:09]Read from MH i2c: E2 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 03 00 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 03 00 20 15 00 90 00 A9 [09:58:09]RAPDU: 90 00 [09:58:09]wFMCommunicate OK [09:58:09]wFMCommunicate request_size=255 [09:58:09]MH_SAM_APDU [09:58:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 32 16 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 94 CE 01 00 35 04 06 00 E3 [09:58:09]Write to MH i2c: E2 02 01 21 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 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 32 16 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 94 CE 01 00 35 04 06 00 E3 00 00 44 [09:58:09]Write i2c OK [09:58:09]MH_I2C_Read... [09:58:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:09]Read from MH i2c: E2 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 03 00 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 03 00 21 15 00 90 00 AA [09:58:09]RAPDU: 90 00 [09:58:09]wFMCommunicate OK [09:58:09]wFMCommunicate request_size=10 [09:58:09]MH_SAM_APDU [09:58:09]CAPDU: 80 0D 02 02 05 A4 73 5D ED 02 [09:58:09]Write to MH i2c: E2 0D 00 22 15 80 0D 02 02 05 00 A4 73 5D ED 02 00 00 1E [09:58:09]Write i2c OK [09:58:09]MH_I2C_Read... [09:58:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:09]Read from MH i2c: E2 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 03 00 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 03 00 22 15 00 90 00 AB [09:58:09]RAPDU: 90 00 [09:58:09]wFMCommunicate OK [09:58:09]wFMCommunicate request_size=4 [09:58:09]MH_SAM_APDU [09:58:09]CAPDU: 80 0D 03 02 [09:58:09]Write to MH i2c: E2 08 00 23 15 80 0D 03 02 00 00 00 00 B3 [09:58:09]Write i2c OK [09:58:09]MH_I2C_Read... [09:58:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:09]Read from MH i2c: E2 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 0B 00 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 0B 00 23 15 00 04 4D F4 59 74 C5 04 25 90 00 B4 [09:58:09]RAPDU: 04 4D F4 59 74 C5 04 25 90 00 [09:58:09]wFMCommunicate OK [09:58:09]SAM_PROTO_SignData done [09:58:09]FM_MakeSignedData done [09:58:09]CreateOFDProtocolMessage [09:58:09]wFMCommunicate request_size=4 [09:58:09]MH_SAM_APDU [09:58:09]CAPDU: 80 11 00 00 [09:58:09]Write to MH i2c: E2 08 00 24 15 80 11 00 00 00 00 00 00 B3 [09:58:09]Write i2c OK [09:58:09]MH_I2C_Read... [09:58:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:09]Read from MH i2c: E2 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 17 00 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 17 00 24 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0E [09:58:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:58:09]wFMCommunicate OK [09:58:09]CreateOFDProtocolMessage done [09:58:09]OFDSenderStorePacket 118420 [09:58:09]StoreOFDPacket docnum=118420 [09:58:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F2 00 07 01 E6 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 32 16 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 94 CE 01 00 35 04 06 00 E3 A4 73 5D ED 02 04 4D F4 59 74 C5 04 25 [09:58:09]CheckFolder [09:58:09]dirname=/storage/ofd_packets [09:58:09]CheckFolder done [09:58:09]ProducePacketName [09:58:09]name=ofd_packets/00118420 [09:58:09]NVStorageSaveData ofd_packets/00118420 [09:58:09]File name is /storage/ofd_packets/00118420 [09:58:09]Write 301 bytes [09:58:09]NVStorageSaveData done [09:58:09]OFDSenderStorePacket done [09:58:09]KKMCreateOFDPacket done [09:58:09]NVStorageSaveData kkm_last_timestamp [09:58:09]File name is /storage/kkm_last_timestamp [09:58:09]Write 4 bytes [09:58:09]NVStorageSaveData done [09:58:09]ExternCall_PrintAddStr [09:58:09]wPrintStart [09:58:09]Write to MH i2c: 01 00 00 25 15 3A [09:58:09]Write i2c OK [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: 01 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: 01 07 00 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: 01 07 00 25 15 00 00 00 00 00 FF 0F 4F [09:58:09]RasterBufferAndPrint [09:58:09]line Счет N : (1)949293 [09:58:09]line ИНН: 02508201610067 [09:58:09]line Контрольно-Кассовый Чек [09:58:09]line ПРОДАЖА [09:58:09]line ТРК (МРК, ГНК) : 33 [09:58:09]line Товар: 2710124500 [09:58:09]line Аи-95-К-3 [09:58:09]line 8.090 * 74.20 [09:58:09]line = 600.28 [09:58:09]line НДС 12% НСП 1% [09:58:09]line > о реализуемом товаре [09:58:09]line ОКРУГЛЕНИЕ: -0.28 [09:58:09]line ИТОГО: 600.00 [09:58:09]line Внесено: 600.00 [09:58:09]line СДАЧА: 0.00 [09:58:09]line НСП 1% : 5.31 [09:58:09]line НДС 12% : 63.75 [09:58:09]line Наличными: 600.00 [09:58:09]line Безнал.: 0.00 [09:58:09]line Место: АЗС № 134 "Партнер Нефть" [09:58:09]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:58:09]line СНО: Общий режим [09:58:09]line Чек 89 28.07.2024 09:58 [09:58:09]line Смена: 433 ФФД: 1.0 [09:58:09]line ЗНМ: 0300000044 [09:58:09]line РНМ: 0000000000092660 [09:58:09]line Версия ККМ: 001 [09:58:09]line ФМ: 0000000000874939 [09:58:09]line ФД: 118420 [09:58:09]line ФПД: 250295449677058 [09:58:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T095810&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118420&fm=250295449677058&tin=02508201610067®Number=0000000000092660&sum=60000 [09:58:10]OFD Sender: Processing packet 118420 [packets to send 86, broken 85] [09:58:10]ProducePacketName [09:58:10]name=ofd_packets/00118420 [09:58:10]OFD Sender: To server: pG, [09:58:10]CommunicateWithHost lk.salyk.kg:30040 [09:58:10]ConnectInit lk.salyk.kg [09:58:10]written 0, free lines is 4095 [09:58:10]Connected sock=10 [09:58:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F2 00 07 01 E6 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 32 16 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 94 CE 01 00 35 04 06 00 E3 A4 73 5D ED 02 04 4D F4 59 74 C5 04 25 [09:58:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5C 75 47 00 62 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 94 CE 01 00 F4 03 04 00 C2 C3 A5 66 B6 04 01 00 00 C0 E7 19 82 45 CC C4 3E [09:58:10]CommunicateWithHost err = 0 [09:58:10]CheckOFDResponse [09:58:10]1017 (14) - 77093643461234 [09:58:10]1041 (16) - 0000000000874939 [09:58:10]1040 (4) - 118420 [09:58:10]1012 (4) - 28.07.2024 04:06 [09:58:10]1206 (1) - 0 [09:58:10]OFD Sender: Remove packet 118420 [09:58:10]ProducePacketName [09:58:10]name=ofd_packets/00118420 [09:58:10]NVStorageDeleteData [09:58:10]Write to MH i2c: 01 00 00 4F 15 64 [09:58:10]Write i2c OK [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: 01 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: 01 07 00 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: 01 07 00 4F 15 00 00 00 00 00 EB 0C 62 [09:58:10]RasterBufferAndPrint [09:58:10]line [09:58:10]line [09:58:10]line [09:58:10]line [09:58:10]line [09:58:10]written 0, free lines is 3313 [09:58:10]MH_Cut [09:58:10]Write to MH i2c: D1 01 00 56 15 01 3D [09:58:10]Write i2c OK [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: D1 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: D1 01 00 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: D1 01 00 56 15 00 3C [09:58:10]Write to MH i2c: 01 00 00 57 15 6C [09:58:10]Write i2c OK [09:58:10]MH_I2C_Read... [09:58:10]OFD Sender: No OFD packet to send [09:58:11]*** Cut start [09:58:11]*** Partial cut [09:58:11]*** CUTSNS_PIN = 1 [09:58:11]*** CUTSNS_PIN = 0 [09:58:11]*** Brake cut motor [09:58:11]Read from MH i2c: 01 [09:58:11]MH_I2C_Read... [09:58:11]*** Stop cut motor [09:58:11]*** Cut end [09:58:11]Read from MH i2c: 01 07 00 [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: 01 07 00 57 15 00 00 00 00 00 FF 0F 81 [09:58:11]process_action close_receipt done [09:58:11]requested_data is exist [09:58:11]produce_requested_data [09:58:11]requested_item fm.sn is exist - process it [09:58:11]wFMCommunicate request_size=4 [09:58:11]MH_SAM_APDU [09:58:11]CAPDU: 80 11 00 00 [09:58:11]Write to MH i2c: E2 08 00 58 15 80 11 00 00 00 00 00 00 E7 [09:58:11]Write i2c OK [09:58:11]MH_I2C_Read... [09:58:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:11]Read from MH i2c: E2 [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: E2 17 00 [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: E2 17 00 58 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 42 [09:58:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:58:11]wFMCommunicate OK [09:58:11]requested_item fd.num is exist - process it [09:58:11]SAM_PROTO_GetFieldsCounters [09:58:11]wFMCommunicate request_size=4 [09:58:11]MH_SAM_APDU [09:58:11]CAPDU: 80 13 00 00 [09:58:11]Write to MH i2c: E2 08 00 59 15 80 13 00 00 00 00 00 00 EA [09:58:11]Write i2c OK [09:58:11]MH_I2C_Read... [09:58:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:12]Read from MH i2c: E2 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 62 00 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 62 00 59 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 94 CE 01 00 0E 04 04 00 B1 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 31 [09:58:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 94 CE 01 00 0E 04 04 00 B1 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 [09:58:12]wFMCommunicate OK [09:58:12]SAM_PROTO_GetFieldsCounters done [09:58:12]requested_item shift.num is exist - process it [09:58:12]requested_item shift.opened is exist - process it [09:58:12]req_shift_opened [09:58:12]FM_GetShiftState [09:58:12]SAM_PROTO_GetShiftState [09:58:12]wFMCommunicate request_size=4 [09:58:12]MH_SAM_APDU [09:58:12]CAPDU: 80 13 01 00 [09:58:12]Write to MH i2c: E2 08 00 5A 15 80 13 01 00 00 00 00 00 EC [09:58:12]Write i2c OK [09:58:12]MH_I2C_Read... [09:58:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:12]Read from MH i2c: E2 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 0E 00 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 0E 00 5A 15 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 C3 [09:58:12]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [09:58:12]wFMCommunicate OK [09:58:12]SAM_PROTO_GetShiftState done [09:58:12]FM_GetShiftState done [09:58:12]req_shift_opened done [09:58:12]requested_item shift.open_date is exist - process it [09:58:12]req_shift_open_date [09:58:12]req_shift_open_date done [09:58:12]produce_requested_data done [09:58:12]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118420,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [09:58:12]process_action_free close_receipt [09:58:12]json_value_free [09:58:12]json_value_free done [09:58:12]process_json_proto returns [09:58:12]Send response to host [09:58:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118420,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [09:58:12]free response buf [09:58:12]execute_script done [09:58:12]execute_script returns [09:58:12]free content buf [09:58:12]Sock 7.Close socket [09:58:12]Sock 7.Thread stoped [09:58:15]OFD Sender: No OFD packet to send [09:58:20]OFD Sender: No OFD packet to send [09:58:25]OFD Sender: No OFD packet to send [09:58:30]OFD Sender: No OFD packet to send [09:58:35]OFD Sender: No OFD packet to send [09:58:40]OFD Sender: No OFD packet to send [09:58:45]OFD Sender: No OFD packet to send [09:58:50]OFD Sender: No OFD packet to send [09:58:55]OFD Sender: No OFD packet to send [09:59:00]OFD Sender: No OFD packet to send [09:59:05]OFD Sender: No OFD packet to send [09:59:11]OFD Sender: No OFD packet to send [09:59:16]OFD Sender: No OFD packet to send [09:59:21]OFD Sender: No OFD packet to send [09:59:26]OFD Sender: No OFD packet to send [09:59:31]OFD Sender: No OFD packet to send [09:59:36]OFD Sender: No OFD packet to send [09:59:41]OFD Sender: No OFD packet to send [09:59:46]OFD Sender: No OFD packet to send [09:59:51]OFD Sender: No OFD packet to send [09:59:56]OFD Sender: No OFD packet to send [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:26]OFD Sender: No OFD packet to send [10:00:31]OFD Sender: No OFD packet to send [10:00:36]OFD Sender: No OFD packet to send [10:00:41]OFD Sender: No OFD packet to send [10:00:46]OFD Sender: No OFD packet to send [10:00:51]OFD Sender: No OFD packet to send [10:00:56]OFD Sender: No OFD packet to send [10:01:01]OFD Sender: No OFD packet to send [10:01:06]OFD Sender: No OFD packet to send [10:01:11]OFD Sender: No OFD packet to send [10:01:16]OFD Sender: No OFD packet to send [10:01:21]OFD Sender: No OFD packet to send [10:01:26]OFD Sender: No OFD packet to send [10:01:31]OFD Sender: No OFD packet to send [10:01:36]OFD Sender: No OFD packet to send [10:01:41]OFD Sender: No OFD packet to send [10:01:41]accept exits with 9 [10:01:41]New connection [10:01:41]New thread 3067067748 created [10:01:41]Thread 3066924388 joined [10:01:41]Waiting for new connection... [10:01:41] Sock 9.Parse request [10:01:41]Sock 9.Check first char [10:01:41]Sock 9.First char is OK [10:01:41]request: POST /json_proto HTTP/1.0 [10:01:41]Method: POST [10:01:41]URL: /json_proto [10:01:41]Method is POST - this is cgi request [10:01:41]url: /json_proto [10:01:41]query_string will be loaded in cgi processing [10:01:41]execute_cgi json_proto POST (null) [10:01:41]execute_cgi path=json_proto method=POST [10:01:41]POST find Content-Length [10:01:41]Host: 172.17.45.7:8080 [10:01:41]Content-Length: 819 [10:01:41]Content-Type: application/json [10:01:41] [10:01:41]POST finish read [10:01:41]Found Content-Length = 819 [10:01:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:41]execute_script... [10:01: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)949294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:41]POST & json_proto [10:01:41]process_json_proto [10:01:41]json parsed OK: [10:01:41]protocol is kg_v1.0 [10:01:41]action value=close_receipt [10:01:41]process_action close_receipt [10:01:41]cmd_close_receipt [10:01:41]MH_GetDate [10:01:41]Write to MH i2c: F0 00 00 5B 15 5F [10:01:41]Write i2c OK [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: F0 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: F0 09 00 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: F0 09 00 5B 15 00 07 17 A6 66 90 0F 3E 66 D5 [10:01:41]GetLastDocTimeStamp 1722160690 [10:01:41]current date 1722160903 [10:01:41]FM_GetShiftState [10:01:41]SAM_PROTO_GetShiftState [10:01:41]wFMCommunicate request_size=4 [10:01:41]MH_SAM_APDU [10:01:41]CAPDU: 80 13 01 00 [10:01:41]Write to MH i2c: E2 08 00 5C 15 80 13 01 00 00 00 00 00 EE [10:01:41]Write i2c OK [10:01:41]MH_I2C_Read... [10:01:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:41]Read from MH i2c: E2 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 0E 00 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 0E 00 5C 15 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 C5 [10:01:41]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:01:41]wFMCommunicate OK [10:01:41]SAM_PROTO_GetShiftState done [10:01:41]FM_GetShiftState done [10:01:41]opened in 1722125364 [10:01:41]opened+sec_in_day 1722211764 [10:01:41]quantity*price = 300075 [10:01:41]sum+1 = 300077 [10:01:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 90 28.07.2024 10:01 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118421 ФПД: 264412656101536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T100143&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118421&fm=264412656101536&tin=02508201610067®Number=0000000000092660&sum=300000 [10:01:42]StoreToDocumentArchive [10:01:42]shift 433 fd 118421 [10:01:42]save to /storage/0433/doc_00118421 [10:01:42]save last doc name /storage/0433/doc_00118421 to /storage/kkm_last_doc_name [10:01:42]save OK [10:01:42]Clear old archive folders... [10:01:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:01:42]tlvbuf is 001AA680 [10:01:42]SAM_PROTO_ClearQueue [10:01:42]wFMCommunicate request_size=4 [10:01:42]MH_SAM_APDU [10:01:42]CAPDU: 80 09 00 00 [10:01:42]Write to MH i2c: E2 08 00 69 15 80 09 00 00 00 00 00 00 F0 [10:01:42]Write i2c OK [10:01:42]MH_I2C_Read... [10:01:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:42]Read from MH i2c: E2 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: E2 03 00 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: E2 03 00 69 15 00 90 00 F2 [10:01:42]RAPDU: 90 00 [10:01:42]wFMCommunicate OK [10:01:42]SAM_PROTO_ClearQueue done [10:01:42]KKMCreateOFDPacket [10:01:42]OFDProtocolAddRootSTLVToBuf [10:01:42]FM_MakeSignedData [10:01:42]FM_MakeSignedData [10:01:42]SAM_PROTO_SignData [10:01:42]wFMCommunicate request_size=4 [10:01:42]MH_SAM_APDU [10:01:42]CAPDU: 80 0D 01 02 [10:01:42]Write to MH i2c: E2 08 00 6A 15 80 0D 01 02 00 00 00 00 F8 [10:01:42]Write i2c OK [10:01:42]MH_I2C_Read... [10:01:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:42]Read from MH i2c: E2 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: E2 03 00 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: E2 03 00 6A 15 00 90 00 F3 [10:01:42]RAPDU: 90 00 [10:01:42]wFMCommunicate OK [10:01:42]wFMCommunicate request_size=255 [10:01:42]MH_SAM_APDU [10:01:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 07 17 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 95 CE 01 00 35 04 06 00 F0 7B 5E 70 [10:01:42]Write to MH i2c: E2 02 01 6B 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 07 17 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 95 CE 01 00 35 04 06 00 F0 7B 5E 70 00 00 92 [10:01:42]Write i2c OK [10:01:42]MH_I2C_Read... [10:01:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:42]Read from MH i2c: E2 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: E2 03 00 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: E2 03 00 6B 15 00 90 00 F4 [10:01:42]RAPDU: 90 00 [10:01:42]wFMCommunicate OK [10:01:42]wFMCommunicate request_size=7 [10:01:42]MH_SAM_APDU [10:01:42]CAPDU: 80 0D 02 02 02 E8 A0 [10:01:42]Write to MH i2c: E2 0A 00 6C 15 80 0D 02 02 02 00 E8 A0 00 00 87 [10:01:42]Write i2c OK [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: E2 [10:01:42]MH_I2C_Read... [10:01:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:42]Read from MH i2c: E2 03 00 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: E2 03 00 6C 15 00 90 00 F5 [10:01:42]RAPDU: 90 00 [10:01:42]wFMCommunicate OK [10:01:42]wFMCommunicate request_size=4 [10:01:42]MH_SAM_APDU [10:01:42]CAPDU: 80 0D 03 02 [10:01:42]Write to MH i2c: E2 08 00 6D 15 80 0D 03 02 00 00 00 00 FD [10:01:42]Write i2c OK [10:01:42]MH_I2C_Read... [10:01:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:42]Read from MH i2c: E2 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: E2 0B 00 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: E2 0B 00 6D 15 00 BB E2 58 54 86 08 8C 76 90 00 D7 [10:01:42]RAPDU: BB E2 58 54 86 08 8C 76 90 00 [10:01:42]wFMCommunicate OK [10:01:42]SAM_PROTO_SignData done [10:01:42]FM_MakeSignedData done [10:01:42]CreateOFDProtocolMessage [10:01:42]wFMCommunicate request_size=4 [10:01:42]MH_SAM_APDU [10:01:42]CAPDU: 80 11 00 00 [10:01:42]Write to MH i2c: E2 08 00 6E 15 80 11 00 00 00 00 00 00 FD [10:01:42]Write i2c OK [10:01:42]MH_I2C_Read... [10:01:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:42]Read from MH i2c: E2 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: E2 17 00 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: E2 17 00 6E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 58 [10:01:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:01:42]wFMCommunicate OK [10:01:42]CreateOFDProtocolMessage done [10:01:42]OFDSenderStorePacket 118421 [10:01:42]StoreOFDPacket docnum=118421 [10:01:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 37 05 04 01 C1 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 07 17 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 95 CE 01 00 35 04 06 00 F0 7B 5E 70 E8 A0 BB E2 58 54 86 08 8C 76 [10:01:42]CheckFolder [10:01:42]dirname=/storage/ofd_packets [10:01:42]CheckFolder done [10:01:42]ProducePacketName [10:01:42]name=ofd_packets/00118421 [10:01:42]NVStorageSaveData ofd_packets/00118421 [10:01:42]File name is /storage/ofd_packets/00118421 [10:01:42]Write 298 bytes [10:01:42]NVStorageSaveData done [10:01:42]OFDSenderStorePacket done [10:01:42]KKMCreateOFDPacket done [10:01:42]NVStorageSaveData kkm_last_timestamp [10:01:42]File name is /storage/kkm_last_timestamp [10:01:42]Write 4 bytes [10:01:42]NVStorageSaveData done [10:01:42]ExternCall_PrintAddStr [10:01:42]wPrintStart [10:01:42]Write to MH i2c: 01 00 00 6F 15 84 [10:01:42]Write i2c OK [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: 01 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: 01 07 00 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: 01 07 00 6F 15 00 00 00 00 00 FF 0F 99 [10:01:42]RasterBufferAndPrint [10:01:42]line Счет N : (1)949294 [10:01:42]line ИНН: 02508201610067 [10:01:42]line Контрольно-Кассовый Чек [10:01:42]line ПРОДАЖА [10:01:42]line ТРК (МРК, ГНК) : 54 [10:01:42]line Товар: 2710194800 [10:01:42]line ДТ-К-5 [10:01:42]line 39.380 * 76.20 [10:01:42]line = 3000.76 [10:01:42]line НДС 12% НСП 1% [10:01:42]line > о реализуемом товаре [10:01:42]line ОКРУГЛЕНИЕ: -0.76 [10:01:42]line ИТОГО: 3000.00 [10:01:42]line НСП 1% : 26.55 [10:01:42]line НДС 12% : 318.66 [10:01:42]line Наличными: 0.00 [10:01:42]line Безнал.: 3000.00 [10:01:42]line Место: АЗС № 134 "Партнер Нефть" [10:01:42]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:01:42]line СНО: Общий режим [10:01:42]line Чек 90 28.07.2024 10:01 [10:01:42]line Смена: 433 ФФД: 1.0 [10:01:42]line ЗНМ: 0300000044 [10:01:42]line РНМ: 0000000000092660 [10:01:42]line Версия ККМ: 001 [10:01:42]line Платежная система: O! деньги [10:01:42]line ФМ: 0000000000874939 [10:01:42]line ФД: 118421 [10:01:42]line ФПД: 264412656101536 [10:01:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T100143&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118421&fm=264412656101536&tin=02508201610067®Number=0000000000092660&sum=300000 [10:01:42]written 0, free lines is 4095 [10:01:42]OFD Sender: Processing packet 118421 [packets to send 86, broken 85] [10:01:42]ProducePacketName [10:01:42]name=ofd_packets/00118421 [10:01:42]OFD Sender: To server: pG, [10:01:42]CommunicateWithHost lk.salyk.kg:30040 [10:01:42]ConnectInit lk.salyk.kg [10:01:43]Connected sock=11 [10:01:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 37 05 04 01 C1 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 07 17 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 95 CE 01 00 35 04 06 00 F0 7B 5E 70 E8 A0 BB E2 58 54 86 08 8C 76 [10:01:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 87 C7 47 00 BF 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 95 CE 01 00 F4 03 04 00 97 C4 A5 66 B6 04 01 00 00 3E CD 86 CC DF 84 31 29 [10:01:43]CommunicateWithHost err = 0 [10:01:43]CheckOFDResponse [10:01:43]1017 (14) - 77093643461234 [10:01:43]1041 (16) - 0000000000874939 [10:01:43]1040 (4) - 118421 [10:01:43]1012 (4) - 28.07.2024 04:09 [10:01:43]1206 (1) - 0 [10:01:43]OFD Sender: Remove packet 118421 [10:01:43]ProducePacketName [10:01:43]name=ofd_packets/00118421 [10:01:43]NVStorageDeleteData [10:01:43]Write to MH i2c: 01 00 00 99 15 AE [10:01:43]Write i2c OK [10:01:43]MH_I2C_Read... [10:01:43]Read from MH i2c: 01 [10:01:43]MH_I2C_Read... [10:01:43]Read from MH i2c: 01 07 00 [10:01:43]MH_I2C_Read... [10:01:43]Read from MH i2c: 01 07 00 99 15 00 00 00 00 00 DD 0C 9E [10:01:43]RasterBufferAndPrint [10:01:43]line [10:01:43]line [10:01:43]line [10:01:43]line [10:01:43]line [10:01:43]written 0, free lines is 3297 [10:01:43]MH_Cut [10:01:43]Write to MH i2c: D1 01 00 A0 15 01 87 [10:01:43]Write i2c OK [10:01:43]MH_I2C_Read... [10:01:43]Read from MH i2c: D1 [10:01:43]MH_I2C_Read... [10:01:43]Read from MH i2c: D1 01 00 [10:01:43]MH_I2C_Read... [10:01:43]Read from MH i2c: D1 01 00 A0 15 00 86 [10:01:43]Write to MH i2c: 01 00 00 A1 15 B6 [10:01:43]Write i2c OK [10:01:43]MH_I2C_Read... [10:01:43]OFD Sender: No OFD packet to send [10:01:44]*** Cut start [10:01:44]*** Partial cut [10:01:44]*** CUTSNS_PIN = 1 [10:01:44]*** CUTSNS_PIN = 0 [10:01:44]*** Brake cut motor [10:01:44]Read from MH i2c: 01 [10:01:44]MH_I2C_Read... [10:01:44]*** Stop cut motor [10:01:44]*** Cut end [10:01:44]Read from MH i2c: 01 07 00 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: 01 07 00 A1 15 00 00 00 00 00 FF 0F CB [10:01:44]process_action close_receipt done [10:01:44]requested_data is exist [10:01:44]produce_requested_data [10:01:44]requested_item fm.sn is exist - process it [10:01:44]wFMCommunicate request_size=4 [10:01:44]MH_SAM_APDU [10:01:44]CAPDU: 80 11 00 00 [10:01:44]Write to MH i2c: E2 08 00 A2 15 80 11 00 00 00 00 00 00 31 [10:01:44]Write i2c OK [10:01:44]MH_I2C_Read... [10:01:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:44]Read from MH i2c: E2 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 17 00 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 17 00 A2 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8C [10:01:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:01:44]wFMCommunicate OK [10:01:44]requested_item fd.num is exist - process it [10:01:44]SAM_PROTO_GetFieldsCounters [10:01:44]wFMCommunicate request_size=4 [10:01:44]MH_SAM_APDU [10:01:44]CAPDU: 80 13 00 00 [10:01:44]Write to MH i2c: E2 08 00 A3 15 80 13 00 00 00 00 00 00 34 [10:01:44]Write i2c OK [10:01:44]MH_I2C_Read... [10:01:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:44]Read from MH i2c: E2 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 62 00 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 62 00 A3 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 95 CE 01 00 0E 04 04 00 B1 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 7F [10: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 95 CE 01 00 0E 04 04 00 B1 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 [10:01:44]wFMCommunicate OK [10:01:44]SAM_PROTO_GetFieldsCounters done [10:01:44]requested_item shift.num is exist - process it [10:01:44]requested_item shift.opened is exist - process it [10:01:44]req_shift_opened [10:01:44]FM_GetShiftState [10:01:44]SAM_PROTO_GetShiftState [10:01:44]wFMCommunicate request_size=4 [10:01:44]MH_SAM_APDU [10:01:44]CAPDU: 80 13 01 00 [10:01:44]Write to MH i2c: E2 08 00 A4 15 80 13 01 00 00 00 00 00 36 [10:01:44]Write i2c OK [10:01:44]MH_I2C_Read... [10:01:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:44]Read from MH i2c: E2 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 0E 00 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 0E 00 A4 15 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 0D [10:01:44]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:01:44]wFMCommunicate OK [10:01:44]SAM_PROTO_GetShiftState done [10:01:44]FM_GetShiftState done [10:01:44]req_shift_opened done [10:01:44]requested_item shift.open_date is exist - process it [10:01:44]req_shift_open_date [10:01:44]req_shift_open_date done [10:01:44]produce_requested_data done [10:01:44]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118421,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [10:01:44]process_action_free close_receipt [10:01:44]json_value_free [10:01:44]json_value_free done [10:01:44]process_json_proto returns [10:01:44]Send response to host [10:01:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118421,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [10:01:44]free response buf [10:01:44]execute_script done [10:01:44]execute_script returns [10:01:44]free content buf [10:01:44]Sock 9.Close socket [10:01:44]Sock 9.Thread stoped [10:01:48]OFD Sender: No OFD packet to send [10:01:53]OFD Sender: No OFD packet to send [10:01:58]OFD Sender: No OFD packet to send [10:02:03]OFD Sender: No OFD packet to send [10:02:08]OFD Sender: No OFD packet to send [10:02:13]OFD Sender: No OFD packet to send [10:02:18]OFD Sender: No OFD packet to send [10:02:23]OFD Sender: No OFD packet to send [10:02:28]OFD Sender: No OFD packet to send [10:02:33]OFD Sender: No OFD packet to send [10:02:38]OFD Sender: No OFD packet to send [10:02:43]OFD Sender: No OFD packet to send [10:02:48]OFD Sender: No OFD packet to send [10:02:53]OFD Sender: No OFD packet to send [10:02:58]OFD Sender: No OFD packet to send [10:03:03]OFD Sender: No OFD packet to send [10:03:08]OFD Sender: No OFD packet to send [10:03:13]OFD Sender: No OFD packet to send [10:03:18]OFD Sender: No OFD packet to send [10:03:23]OFD Sender: No OFD packet to send [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:19]accept exits with 7 [10:06:19]New connection [10:06:19]New thread 3066924388 created [10:06:19]Thread 3067067748 joined [10:06:19]Waiting for new connection... [10:06:19] Sock 7.Parse request [10:06:19]Sock 7.Check first char [10:06:19]Sock 7.First char is OK [10:06:19]request: POST /json_proto HTTP/1.0 [10:06:19]Method: POST [10:06:19]URL: /json_proto [10:06:19]Method is POST - this is cgi request [10:06:19]url: /json_proto [10:06:19]query_string will be loaded in cgi processing [10:06:19]execute_cgi json_proto POST (null) [10:06:19]execute_cgi path=json_proto method=POST [10:06:19]POST find Content-Length [10:06:19]Host: 172.17.45.7:8080 [10:06:19]Content-Length: 682 [10:06:19]Content-Type: application/json [10:06:19] [10:06:19]POST finish read [10:06:19]Found Content-Length = 682 [10:06:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "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" ] } } [10:06:19]execute_script... [10:06: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)949295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "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" ] } } [10:06:19]POST & json_proto [10:06:19]process_json_proto [10:06:19]json parsed OK: [10:06:19]protocol is kg_v1.0 [10:06:19]action value=close_receipt [10:06:19]process_action close_receipt [10:06:19]cmd_close_receipt [10:06:19]MH_GetDate [10:06:19]Write to MH i2c: F0 00 00 A5 15 A9 [10:06:19]Write i2c OK [10:06:19]MH_I2C_Read... [10:06:19]Read from MH i2c: F0 [10:06:19]MH_I2C_Read... [10:06:19]Read from MH i2c: F0 09 00 [10:06:19]MH_I2C_Read... [10:06:19]Read from MH i2c: F0 09 00 A5 15 00 1D 18 A6 66 90 0F 3E 66 36 [10:06:19]GetLastDocTimeStamp 1722160903 [10:06:19]current date 1722161181 [10:06:19]FM_GetShiftState [10:06:19]SAM_PROTO_GetShiftState [10:06:19]wFMCommunicate request_size=4 [10:06:19]MH_SAM_APDU [10:06:19]CAPDU: 80 13 01 00 [10:06:19]Write to MH i2c: E2 08 00 A6 15 80 13 01 00 00 00 00 00 38 [10:06:19]Write i2c OK [10:06:19]MH_I2C_Read... [10:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:19]Read from MH i2c: E2 [10:06:19]MH_I2C_Read... [10:06:19]Read from MH i2c: E2 0E 00 [10:06:19]MH_I2C_Read... [10:06:19]Read from MH i2c: E2 0E 00 A6 15 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 0F [10:06:19]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:06:19]wFMCommunicate OK [10:06:19]SAM_PROTO_GetShiftState done [10:06:19]FM_GetShiftState done [10:06:19]opened in 1722125364 [10:06:19]opened+sec_in_day 1722211764 [10:06:19]quantity*price = 120006 [10:06:19]sum+1 = 120007 [10:06:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 91 28.07.2024 10:06 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118422 ФПД: 136348121038628 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T100621&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118422&fm=136348121038628&tin=02508201610067®Number=0000000000092660&sum=120000 [10:06:20]StoreToDocumentArchive [10:06:20]shift 433 fd 118422 [10:06:20]save to /storage/0433/doc_00118422 [10:06:20]save last doc name /storage/0433/doc_00118422 to /storage/kkm_last_doc_name [10:06:20]save OK [10:06:20]Clear old archive folders... [10:06:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:06:20]tlvbuf is 000E7320 [10:06:20]SAM_PROTO_ClearQueue [10:06:20]wFMCommunicate request_size=4 [10:06:20]MH_SAM_APDU [10:06:20]CAPDU: 80 09 00 00 [10:06:20]Write to MH i2c: E2 08 00 B3 15 80 09 00 00 00 00 00 00 3A [10:06:20]Write i2c OK [10:06:20]MH_I2C_Read... [10:06:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:20]Read from MH i2c: E2 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 03 00 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 03 00 B3 15 00 90 00 3C [10:06:20]RAPDU: 90 00 [10:06:20]wFMCommunicate OK [10:06:20]SAM_PROTO_ClearQueue done [10:06:20]KKMCreateOFDPacket [10:06:20]OFDProtocolAddRootSTLVToBuf [10:06:20]FM_MakeSignedData [10:06:20]FM_MakeSignedData [10:06:20]SAM_PROTO_SignData [10:06:20]wFMCommunicate request_size=4 [10:06:20]MH_SAM_APDU [10:06:20]CAPDU: 80 0D 01 02 [10:06:20]Write to MH i2c: E2 08 00 B4 15 80 0D 01 02 00 00 00 00 42 [10:06:20]Write i2c OK [10:06:20]MH_I2C_Read... [10:06:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:20]Read from MH i2c: E2 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 03 00 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 03 00 B4 15 00 90 00 3D [10:06:20]RAPDU: 90 00 [10:06:20]wFMCommunicate OK [10:06:20]wFMCommunicate request_size=255 [10:06:20]MH_SAM_APDU [10:06: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 34 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 5B 00 00 00 F4 03 04 00 1D 18 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 96 CE 01 00 35 04 06 00 7C [10:06:20]Write to MH i2c: E2 02 01 B5 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 34 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 5B 00 00 00 F4 03 04 00 1D 18 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 96 CE 01 00 35 04 06 00 7C 00 00 67 [10:06:20]Write i2c OK [10:06:20]MH_I2C_Read... [10:06:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:20]Read from MH i2c: E2 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 03 00 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 03 00 B5 15 00 90 00 3E [10:06:20]RAPDU: 90 00 [10:06:20]wFMCommunicate OK [10:06:20]wFMCommunicate request_size=10 [10:06:20]MH_SAM_APDU [10:06:20]CAPDU: 80 0D 02 02 05 02 05 51 FF 24 [10:06:20]Write to MH i2c: E2 0D 00 B6 15 80 0D 02 02 05 00 02 05 51 FF 24 00 00 CA [10:06:20]Write i2c OK [10:06:20]MH_I2C_Read... [10:06:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:20]Read from MH i2c: E2 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 03 00 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 03 00 B6 15 00 90 00 3F [10:06:20]RAPDU: 90 00 [10:06:20]wFMCommunicate OK [10:06:20]wFMCommunicate request_size=4 [10:06:20]MH_SAM_APDU [10:06:20]CAPDU: 80 0D 03 02 [10:06:20]Write to MH i2c: E2 08 00 B7 15 80 0D 03 02 00 00 00 00 47 [10:06:20]Write i2c OK [10:06:20]MH_I2C_Read... [10:06:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:20]Read from MH i2c: E2 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 0B 00 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 0B 00 B7 15 00 AE EE D7 76 47 AF B4 7A 90 00 55 [10:06:20]RAPDU: AE EE D7 76 47 AF B4 7A 90 00 [10:06:20]wFMCommunicate OK [10:06:20]SAM_PROTO_SignData done [10:06:20]FM_MakeSignedData done [10:06:20]CreateOFDProtocolMessage [10:06:20]wFMCommunicate request_size=4 [10:06:20]MH_SAM_APDU [10:06:20]CAPDU: 80 11 00 00 [10:06:20]Write to MH i2c: E2 08 00 B8 15 80 11 00 00 00 00 00 00 47 [10:06:20]Write i2c OK [10:06:20]MH_I2C_Read... [10:06:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:20]Read from MH i2c: E2 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 17 00 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 17 00 B8 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A2 [10:06:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:06:20]wFMCommunicate OK [10:06:20]CreateOFDProtocolMessage done [10:06:20]OFDSenderStorePacket 118422 [10:06:20]StoreOFDPacket docnum=118422 [10:06:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 89 39 07 01 C2 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 34 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 5B 00 00 00 F4 03 04 00 1D 18 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 96 CE 01 00 35 04 06 00 7C 02 05 51 FF 24 AE EE D7 76 47 AF B4 7A [10:06:20]CheckFolder [10:06:20]dirname=/storage/ofd_packets [10:06:20]CheckFolder done [10:06:20]ProducePacketName [10:06:20]name=ofd_packets/00118422 [10:06:20]NVStorageSaveData ofd_packets/00118422 [10:06:20]File name is /storage/ofd_packets/00118422 [10:06:20]Write 301 bytes [10:06:20]NVStorageSaveData done [10:06:20]OFDSenderStorePacket done [10:06:20]KKMCreateOFDPacket done [10:06:20]NVStorageSaveData kkm_last_timestamp [10:06:20]File name is /storage/kkm_last_timestamp [10:06:20]Write 4 bytes [10:06:20]NVStorageSaveData done [10:06:20]ExternCall_PrintAddStr [10:06:20]wPrintStart [10:06:20]Write to MH i2c: 01 00 00 B9 15 CE [10:06:20]Write i2c OK [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: 01 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: 01 07 00 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: 01 07 00 B9 15 00 00 00 00 00 FF 0F E3 [10:06:20]RasterBufferAndPrint [10:06:20]line Счет N : (1)949295 [10:06:20]line ИНН: 02508201610067 [10:06:20]line Контрольно-Кассовый Чек [10:06:20]line ПРОДАЖА [10:06:20]line ТРК (МРК, ГНК) : 31 [10:06:20]line Товар: 2710124130 [10:06:20]line Аи-92-К-4 [10:06:20]line 17.700 * 67.80 [10:06:20]line = 1200.06 [10:06:20]line НДС 12% НСП 1% [10:06:20]line > о реализуемом товаре [10:06:20]line ОКРУГЛЕНИЕ: -0.06 [10:06:20]line ИТОГО: 1200.00 [10:06:20]line Внесено: 1200.00 [10:06:20]line СДАЧА: 0.00 [10:06:20]line НСП 1% : 10.62 [10:06:20]line НДС 12% : 127.44 [10:06:20]line Наличными: 1200.00 [10:06:20]line Безнал.: 0.00 [10:06:20]line Место: АЗС № 134 "Партнер Нефть" [10:06:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:06:20]line СНО: Общий режим [10:06:20]line Чек 91 28.07.2024 10:06 [10:06:20]line Смена: 433 ФФД: 1.0 [10:06:20]line ЗНМ: 0300000044 [10:06:20]line РНМ: 0000000000092660 [10:06:20]line Версия ККМ: 001 [10:06:20]line ФМ: 0000000000874939 [10:06:20]line ФД: 118422 [10:06:20]line ФПД: 136348121038628 [10:06:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T100621&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118422&fm=136348121038628&tin=02508201610067®Number=0000000000092660&sum=120000 [10:06:21]OFD Sender: Processing packet 118422 [packets to send 86, broken 85] [10:06:21]ProducePacketName [10:06:21]name=ofd_packets/00118422 [10:06:21]OFD Sender: To server: pG, [10:06:21]CommunicateWithHost lk.salyk.kg:30040 [10:06:21]ConnectInit lk.salyk.kg [10:06:21]written 0, free lines is 4095 [10:06:21]Connected sock=10 [10:06: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 39 33 39 0F 01 00 00 89 39 07 01 C2 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 34 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 5B 00 00 00 F4 03 04 00 1D 18 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 96 CE 01 00 35 04 06 00 7C 02 05 51 FF 24 AE EE D7 76 47 AF B4 7A [10:06:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 FD FF 47 00 71 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 39 33 39 10 04 04 00 96 CE 01 00 F4 03 04 00 AD C5 A5 66 B6 04 01 00 00 CE 6A 96 1F 97 46 AB 33 [10:06:21]CommunicateWithHost err = 0 [10:06:21]CheckOFDResponse [10:06:21]1017 (14) - 77093643461234 [10:06:21]1041 (16) - 0000000000874939 [10:06:21]1040 (4) - 118422 [10:06:21]1012 (4) - 28.07.2024 04:14 [10:06:21]1206 (1) - 0 [10:06:21]OFD Sender: Remove packet 118422 [10:06:21]ProducePacketName [10:06:21]name=ofd_packets/00118422 [10:06:21]NVStorageDeleteData [10:06:21]Write to MH i2c: 01 00 00 E3 15 F8 [10:06:21]Write i2c OK [10:06:21]MH_I2C_Read... [10:06:21]Read from MH i2c: 01 [10:06:21]MH_I2C_Read... [10:06:21]Read from MH i2c: 01 07 00 [10:06:21]MH_I2C_Read... [10:06:21]Read from MH i2c: 01 07 00 E3 15 00 00 00 00 00 E4 0C EF [10:06:21]RasterBufferAndPrint [10:06:21]line [10:06:21]line [10:06:21]line [10:06:21]line [10:06:21]line [10:06:21]written 0, free lines is 3305 [10:06:21]MH_Cut [10:06:21]Write to MH i2c: D1 01 00 EA 15 01 D1 [10:06:21]Write i2c OK [10:06:21]MH_I2C_Read... [10:06:21]Read from MH i2c: D1 [10:06:21]MH_I2C_Read... [10:06:21]Read from MH i2c: D1 01 00 [10:06:21]MH_I2C_Read... [10:06:21]Read from MH i2c: D1 01 00 EA 15 00 D0 [10:06:21]Write to MH i2c: 01 00 00 EB 15 00 [10:06:21]Write i2c OK [10:06:21]MH_I2C_Read... [10:06:22]OFD Sender: No OFD packet to send [10:06:22]*** Cut start [10:06:22]*** Partial cut [10:06:22]*** CUTSNS_PIN = 1 [10:06:22]*** CUTSNS_PIN = 0 [10:06:22]*** Brake cut motor [10:06:22]Read from MH i2c: 01 [10:06:22]MH_I2C_Read... [10:06:22]*** Stop cut motor [10:06:22]*** Cut end [10:06:22]Read from MH i2c: 01 07 00 [10:06:22]MH_I2C_Read... [10:06:22]Read from MH i2c: 01 07 00 EB 15 00 00 00 00 00 FF 0F 15 [10:06:22]process_action close_receipt done [10:06:22]requested_data is exist [10:06:22]produce_requested_data [10:06:22]requested_item fm.sn is exist - process it [10:06:22]wFMCommunicate request_size=4 [10:06:22]MH_SAM_APDU [10:06:22]CAPDU: 80 11 00 00 [10:06:22]Write to MH i2c: E2 08 00 EC 15 80 11 00 00 00 00 00 00 7B [10:06:22]Write i2c OK [10:06:22]MH_I2C_Read... [10:06:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:23]Read from MH i2c: E2 [10:06:23]MH_I2C_Read... [10:06:23]Read from MH i2c: E2 17 00 [10:06:23]MH_I2C_Read... [10:06:23]Read from MH i2c: E2 17 00 EC 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D6 [10:06:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:06:23]wFMCommunicate OK [10:06:23]requested_item fd.num is exist - process it [10:06:23]SAM_PROTO_GetFieldsCounters [10:06:23]wFMCommunicate request_size=4 [10:06:23]MH_SAM_APDU [10:06:23]CAPDU: 80 13 00 00 [10:06:23]Write to MH i2c: E2 08 00 ED 15 80 13 00 00 00 00 00 00 7E [10:06:23]Write i2c OK [10:06:23]MH_I2C_Read... [10:06:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:23]Read from MH i2c: E2 [10:06:23]MH_I2C_Read... [10:06:23]Read from MH i2c: E2 62 00 [10:06:23]MH_I2C_Read... [10:06:23]Read from MH i2c: E2 62 00 ED 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 96 CE 01 00 0E 04 04 00 B1 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 CD [10:06:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 96 CE 01 00 0E 04 04 00 B1 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 [10:06:23]wFMCommunicate OK [10:06:23]SAM_PROTO_GetFieldsCounters done [10:06:23]requested_item shift.num is exist - process it [10:06:23]requested_item shift.opened is exist - process it [10:06:23]req_shift_opened [10:06:23]FM_GetShiftState [10:06:23]SAM_PROTO_GetShiftState [10:06:23]wFMCommunicate request_size=4 [10:06:23]MH_SAM_APDU [10:06:23]CAPDU: 80 13 01 00 [10:06:23]Write to MH i2c: E2 08 00 EE 15 80 13 01 00 00 00 00 00 80 [10:06:23]Write i2c OK [10:06:23]MH_I2C_Read... [10:06:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:23]Read from MH i2c: E2 [10:06:23]MH_I2C_Read... [10:06:23]Read from MH i2c: E2 0E 00 [10:06:23]MH_I2C_Read... [10:06:23]Read from MH i2c: E2 0E 00 EE 15 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 57 [10:06:23]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:06:23]wFMCommunicate OK [10:06:23]SAM_PROTO_GetShiftState done [10:06:23]FM_GetShiftState done [10:06:23]req_shift_opened done [10:06:23]requested_item shift.open_date is exist - process it [10:06:23]req_shift_open_date [10:06:23]req_shift_open_date done [10:06:23]produce_requested_data done [10:06:23]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118422,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [10:06:23]process_action_free close_receipt [10:06:23]json_value_free [10:06:23]json_value_free done [10:06:23]process_json_proto returns [10:06:23]Send response to host [10:06:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118422,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [10:06:23]free response buf [10:06:23]execute_script done [10:06:23]execute_script returns [10:06:23]free content buf [10:06:23]Sock 7.Close socket [10:06:23]Sock 7.Thread stoped [10:06:27]OFD Sender: No OFD packet to send [10:06:32]OFD Sender: No OFD packet to send [10:06:37]OFD Sender: No OFD packet to send [10:06:42]OFD Sender: No OFD packet to send [10:06:47]OFD Sender: No OFD packet to send [10:06:52]OFD Sender: No OFD packet to send [10:06:57]OFD Sender: No OFD packet to send [10:07:02]OFD Sender: No OFD packet to send [10:07:07]OFD Sender: No OFD packet to send [10:07:12]OFD Sender: No OFD packet to send [10:07:17]OFD Sender: No OFD packet to send [10:07:22]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:42]OFD Sender: No OFD packet to send [10:07:47]OFD Sender: No OFD packet to send [10:07:52]OFD Sender: No OFD packet to send [10:07:57]OFD Sender: No OFD packet to send [10:08:02]OFD Sender: No OFD packet to send [10:08:07]OFD Sender: No OFD packet to send [10:08:12]OFD Sender: No OFD packet to send [10:08:17]OFD Sender: No OFD packet to send [10:08:19]accept exits with 9 [10:08:19]New connection [10:08:19]New thread 3067067748 created [10:08:19]Thread 3066924388 joined [10:08:19]Waiting for new connection... [10:08:19] Sock 9.Parse request [10:08:19]Sock 9.Check first char [10:08:19]Sock 9.First char is OK [10:08:19]request: POST /json_proto HTTP/1.0 [10:08:19]Method: POST [10:08:19]URL: /json_proto [10:08:19]Method is POST - this is cgi request [10:08:19]url: /json_proto [10:08:19]query_string will be loaded in cgi processing [10:08:19]execute_cgi json_proto POST (null) [10:08:19]execute_cgi path=json_proto method=POST [10:08:19]POST find Content-Length [10:08:19]Host: 172.17.45.7:8080 [10:08:19]Content-Length: 800 [10:08:19]Content-Type: application/json [10:08:19] [10:08:19]POST finish read [10:08:19]Found Content-Length = 800 [10:08:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 20.000, "sum" : 1524.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" : 1524.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:19]execute_script... [10:08: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)949296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 20.000, "sum" : 1524.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" : 1524.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:19]POST & json_proto [10:08:19]process_json_proto [10:08:19]json parsed OK: [10:08:19]protocol is kg_v1.0 [10:08:19]action value=close_receipt [10:08:19]process_action close_receipt [10:08:19]cmd_close_receipt [10:08:19]MH_GetDate [10:08:19]Write to MH i2c: F0 00 00 EF 15 F3 [10:08:19]Write i2c OK [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: F0 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: F0 09 00 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: F0 09 00 EF 15 00 95 18 A6 66 90 0F 3E 66 F8 [10:08:19]GetLastDocTimeStamp 1722161181 [10:08:19]current date 1722161301 [10:08:19]FM_GetShiftState [10:08:19]SAM_PROTO_GetShiftState [10:08:19]wFMCommunicate request_size=4 [10:08:19]MH_SAM_APDU [10:08:19]CAPDU: 80 13 01 00 [10:08:19]Write to MH i2c: E2 08 00 F0 15 80 13 01 00 00 00 00 00 82 [10:08:19]Write i2c OK [10:08:19]MH_I2C_Read... [10:08:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:19]Read from MH i2c: E2 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: E2 0E 00 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: E2 0E 00 F0 15 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 59 [10:08:19]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:08:19]wFMCommunicate OK [10:08:19]SAM_PROTO_GetShiftState done [10:08:19]FM_GetShiftState done [10:08:19]opened in 1722125364 [10:08:19]opened+sec_in_day 1722211764 [10:08:19]quantity*price = 152400 [10:08:19]sum+1 = 152401 [10:08:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1524.00 НСП 1% : 13.49 НДС 12% : 161.84 Наличными: 0.00 Безнал.: 1524.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 92 28.07.2024 10:08 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118423 ФПД: 209785572829467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T100821&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118423&fm=209785572829467&tin=02508201610067®Number=0000000000092660&sum=152400 [10:08:20]StoreToDocumentArchive [10:08:20]shift 433 fd 118423 [10:08:20]save to /storage/0433/doc_00118423 [10:08:20]save last doc name /storage/0433/doc_00118423 to /storage/kkm_last_doc_name [10:08:20]save OK [10:08:20]Clear old archive folders... [10:08:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:08:20]tlvbuf is 001C9000 [10:08:20]SAM_PROTO_ClearQueue [10:08:20]wFMCommunicate request_size=4 [10:08:20]MH_SAM_APDU [10:08:20]CAPDU: 80 09 00 00 [10:08:20]Write to MH i2c: E2 08 00 FD 15 80 09 00 00 00 00 00 00 84 [10:08:20]Write i2c OK [10:08:20]MH_I2C_Read... [10:08:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:20]Read from MH i2c: E2 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 03 00 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 03 00 FD 15 00 90 00 86 [10:08:20]RAPDU: 90 00 [10:08:20]wFMCommunicate OK [10:08:20]SAM_PROTO_ClearQueue done [10:08:20]KKMCreateOFDPacket [10:08:20]OFDProtocolAddRootSTLVToBuf [10:08:20]FM_MakeSignedData [10:08:20]FM_MakeSignedData [10:08:20]SAM_PROTO_SignData [10:08:20]wFMCommunicate request_size=4 [10:08:20]MH_SAM_APDU [10:08:20]CAPDU: 80 0D 01 02 [10:08:20]Write to MH i2c: E2 08 00 FE 15 80 0D 01 02 00 00 00 00 8C [10:08:20]Write i2c OK [10:08:20]MH_I2C_Read... [10:08:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:20]Read from MH i2c: E2 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 03 00 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 03 00 FE 15 00 90 00 87 [10:08:20]RAPDU: 90 00 [10:08:20]wFMCommunicate OK [10:08:20]wFMCommunicate request_size=255 [10:08:20]MH_SAM_APDU [10:08:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 53 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 53 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 53 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 95 18 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 97 CE 01 00 35 04 06 00 BE CC 82 8C [10:08:20]Write to MH i2c: E2 02 01 FF 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 53 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 53 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 53 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 95 18 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 97 CE 01 00 35 04 06 00 BE CC 82 8C 00 00 B8 [10:08:20]Write i2c OK [10:08:20]MH_I2C_Read... [10:08:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:20]Read from MH i2c: E2 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 03 00 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 03 00 FF 15 00 90 00 88 [10:08:20]RAPDU: 90 00 [10:08:20]wFMCommunicate OK [10:08:20]wFMCommunicate request_size=7 [10:08:20]MH_SAM_APDU [10:08:20]CAPDU: 80 0D 02 02 02 29 1B [10:08:20]Write to MH i2c: E2 0A 00 00 16 80 0D 02 02 02 00 29 1B 00 00 D8 [10:08:20]Write i2c OK [10:08:20]MH_I2C_Read... [10:08:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:20]Read from MH i2c: E2 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 03 00 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 03 00 00 16 00 90 00 8A [10:08:20]RAPDU: 90 00 [10:08:20]wFMCommunicate OK [10:08:20]wFMCommunicate request_size=4 [10:08:20]MH_SAM_APDU [10:08:20]CAPDU: 80 0D 03 02 [10:08:20]Write to MH i2c: E2 08 00 01 16 80 0D 03 02 00 00 00 00 92 [10:08:20]Write i2c OK [10:08:20]MH_I2C_Read... [10:08:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:20]Read from MH i2c: E2 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 0B 00 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 0B 00 01 16 00 29 5C 26 C2 4F D5 F7 AD 90 00 C8 [10:08:20]RAPDU: 29 5C 26 C2 4F D5 F7 AD 90 00 [10:08:20]wFMCommunicate OK [10:08:20]SAM_PROTO_SignData done [10:08:20]FM_MakeSignedData done [10:08:20]CreateOFDProtocolMessage [10:08:20]wFMCommunicate request_size=4 [10:08:20]MH_SAM_APDU [10:08:20]CAPDU: 80 11 00 00 [10:08:20]Write to MH i2c: E2 08 00 02 16 80 11 00 00 00 00 00 00 92 [10:08:20]Write i2c OK [10:08:20]MH_I2C_Read... [10:08:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:20]Read from MH i2c: E2 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 17 00 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 17 00 02 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 ED [10:08:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:08:20]wFMCommunicate OK [10:08:20]CreateOFDProtocolMessage done [10:08:20]OFDSenderStorePacket 118423 [10:08:20]StoreOFDPacket docnum=118423 [10:08:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E6 2B 04 01 D8 89 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 53 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 53 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 53 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 95 18 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 97 CE 01 00 35 04 06 00 BE CC 82 8C 29 1B 29 5C 26 C2 4F D5 F7 AD [10:08:20]CheckFolder [10:08:20]dirname=/storage/ofd_packets [10:08:20]CheckFolder done [10:08:20]ProducePacketName [10:08:20]name=ofd_packets/00118423 [10:08:20]NVStorageSaveData ofd_packets/00118423 [10:08:20]File name is /storage/ofd_packets/00118423 [10:08:20]Write 298 bytes [10:08:20]NVStorageSaveData done [10:08:20]OFDSenderStorePacket done [10:08:20]KKMCreateOFDPacket done [10:08:20]NVStorageSaveData kkm_last_timestamp [10:08:20]File name is /storage/kkm_last_timestamp [10:08:20]Write 4 bytes [10:08:20]NVStorageSaveData done [10:08:20]ExternCall_PrintAddStr [10:08:20]wPrintStart [10:08:20]Write to MH i2c: 01 00 00 03 16 19 [10:08:20]Write i2c OK [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: 01 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: 01 07 00 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: 01 07 00 03 16 00 00 00 00 00 FF 0F 2E [10:08:20]RasterBufferAndPrint [10:08:20]line Счет N : (1)949296 [10:08:20]line ИНН: 02508201610067 [10:08:20]line Контрольно-Кассовый Чек [10:08:20]line ПРОДАЖА [10:08:20]line ТРК (МРК, ГНК) : 44 [10:08:20]line Товар: 2710194800 [10:08:20]line ДТ-К-5 [10:08:20]line 20.000 * 76.20 [10:08:20]line = 1524.00 [10:08:20]line НДС 12% НСП 1% [10:08:20]line > о реализуемом товаре [10:08:20]line ИТОГО: 1524.00 [10:08:20]line НСП 1% : 13.49 [10:08:20]line НДС 12% : 161.84 [10:08:20]line Наличными: 0.00 [10:08:20]line Безнал.: 1524.00 [10:08:20]line Место: АЗС № 134 "Партнер Нефть" [10:08:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:08:20]line СНО: Общий режим [10:08:20]line Чек 92 28.07.2024 10:08 [10:08:20]line Смена: 433 ФФД: 1.0 [10:08:20]line ЗНМ: 0300000044 [10:08:20]line РНМ: 0000000000092660 [10:08:20]line Версия ККМ: 001 [10:08:20]line Платежная система: O! деньги [10:08:20]line ФМ: 0000000000874939 [10:08:20]line ФД: 118423 [10:08:20]line ФПД: 209785572829467 [10:08:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T100821&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118423&fm=209785572829467&tin=02508201610067®Number=0000000000092660&sum=152400 [10:08:21]OFD Sender: Processing packet 118423 [packets to send 86, broken 85] [10:08:21]ProducePacketName [10:08:21]name=ofd_packets/00118423 [10:08:21]OFD Sender: To server: pG, [10:08:21]CommunicateWithHost lk.salyk.kg:30040 [10:08:21]ConnectInit lk.salyk.kg [10:08:21]written 0, free lines is 4095 [10:08:21]Connected sock=10 [10:08: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 39 33 39 0C 01 00 00 E6 2B 04 01 D8 89 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 53 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 53 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 53 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 95 18 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 97 CE 01 00 35 04 06 00 BE CC 82 8C 29 1B 29 5C 26 C2 4F D5 F7 AD [10:08:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 95 BF 47 00 04 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 39 33 39 10 04 04 00 97 CE 01 00 F4 03 04 00 25 C6 A5 66 B6 04 01 00 00 C0 3C B8 88 B9 0F F6 18 [10:08:21]CommunicateWithHost err = 0 [10:08:21]CheckOFDResponse [10:08:21]1017 (14) - 77093643461234 [10:08:21]1041 (16) - 0000000000874939 [10:08:21]1040 (4) - 118423 [10:08:21]1012 (4) - 28.07.2024 04:16 [10:08:21]1206 (1) - 0 [10:08:21]OFD Sender: Remove packet 118423 [10:08:21]ProducePacketName [10:08:21]name=ofd_packets/00118423 [10:08:21]NVStorageDeleteData [10:08:21]Write to MH i2c: 01 00 00 2C 16 42 [10:08:21]Write i2c OK [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: 01 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: 01 07 00 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: 01 07 00 2C 16 00 00 00 00 00 ED 0C 42 [10:08:21]RasterBufferAndPrint [10:08:21]line [10:08:21]line [10:08:21]line [10:08:21]line [10:08:21]line [10:08:21]written 0, free lines is 3315 [10:08:21]MH_Cut [10:08:21]Write to MH i2c: D1 01 00 33 16 01 1B [10:08:21]Write i2c OK [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: D1 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: D1 01 00 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: D1 01 00 33 16 00 1A [10:08:21]Write to MH i2c: 01 00 00 34 16 4A [10:08:21]Write i2c OK [10:08:21]MH_I2C_Read... [10:08:21]OFD Sender: No OFD packet to send [10:08:22]*** Cut start [10:08:22]*** Partial cut [10:08:22]*** CUTSNS_PIN = 1 [10:08:22]*** CUTSNS_PIN = 0 [10:08:22]*** Brake cut motor [10:08:22]Read from MH i2c: 01 [10:08:22]MH_I2C_Read... [10:08:22]*** Stop cut motor [10:08:22]*** Cut end [10:08:22]Read from MH i2c: 01 07 00 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: 01 07 00 34 16 00 00 00 00 00 FF 0F 5F [10:08:22]process_action close_receipt done [10:08:22]requested_data is exist [10:08:22]produce_requested_data [10:08:22]requested_item fm.sn is exist - process it [10:08:22]wFMCommunicate request_size=4 [10:08:22]MH_SAM_APDU [10:08:22]CAPDU: 80 11 00 00 [10:08:22]Write to MH i2c: E2 08 00 35 16 80 11 00 00 00 00 00 00 C5 [10:08:22]Write i2c OK [10:08:22]MH_I2C_Read... [10:08:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:22]Read from MH i2c: E2 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: E2 17 00 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: E2 17 00 35 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 20 [10:08:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:08:22]wFMCommunicate OK [10:08:22]requested_item fd.num is exist - process it [10:08:22]SAM_PROTO_GetFieldsCounters [10:08:22]wFMCommunicate request_size=4 [10:08:22]MH_SAM_APDU [10:08:22]CAPDU: 80 13 00 00 [10:08:22]Write to MH i2c: E2 08 00 36 16 80 13 00 00 00 00 00 00 C8 [10:08:22]Write i2c OK [10:08:22]MH_I2C_Read... [10:08:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:23]Read from MH i2c: E2 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 62 00 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 62 00 36 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 97 CE 01 00 0E 04 04 00 B1 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 1B [10:08:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 97 CE 01 00 0E 04 04 00 B1 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 [10:08:23]wFMCommunicate OK [10:08:23]SAM_PROTO_GetFieldsCounters done [10:08:23]requested_item shift.num is exist - process it [10:08:23]requested_item shift.opened is exist - process it [10:08:23]req_shift_opened [10:08:23]FM_GetShiftState [10:08:23]SAM_PROTO_GetShiftState [10:08:23]wFMCommunicate request_size=4 [10:08:23]MH_SAM_APDU [10:08:23]CAPDU: 80 13 01 00 [10:08:23]Write to MH i2c: E2 08 00 37 16 80 13 01 00 00 00 00 00 CA [10:08:23]Write i2c OK [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 [10:08:23]MH_I2C_Read... [10:08:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:23]Read from MH i2c: E2 0E 00 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 0E 00 37 16 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A1 [10:08:23]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:08:23]wFMCommunicate OK [10:08:23]SAM_PROTO_GetShiftState done [10:08:23]FM_GetShiftState done [10:08:23]req_shift_opened done [10:08:23]requested_item shift.open_date is exist - process it [10:08:23]req_shift_open_date [10:08:23]req_shift_open_date done [10:08:23]produce_requested_data done [10:08:23]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118423,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [10:08:23]process_action_free close_receipt [10:08:23]json_value_free [10:08:23]json_value_free done [10:08:23]process_json_proto returns [10:08:23]Send response to host [10:08:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118423,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [10:08:23]free response buf [10:08:23]execute_script done [10:08:23]execute_script returns [10:08:23]free content buf [10:08:23]Sock 9.Close socket [10:08:23]Sock 9.Thread stoped [10:08:26]OFD Sender: No OFD packet to send [10:08:31]OFD Sender: No OFD packet to send [10:08:36]OFD Sender: No OFD packet to send [10:08:41]OFD Sender: No OFD packet to send [10:08:46]OFD Sender: No OFD packet to send [10:08:51]OFD Sender: No OFD packet to send [10:08:56]OFD Sender: No OFD packet to send [10:09:01]OFD Sender: No OFD packet to send [10:09:06]OFD Sender: No OFD packet to send [10:09:11]OFD Sender: No OFD packet to send [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:36]accept exits with 7 [10:09:36]New connection [10:09:36]New thread 3066924388 created [10:09:36]Thread 3067067748 joined [10:09:36]Waiting for new connection... [10:09:36] Sock 7.Parse request [10:09:36]Sock 7.Check first char [10:09:36]Sock 7.First char is OK [10:09:36]request: POST /json_proto HTTP/1.0 [10:09:36]Method: POST [10:09:36]URL: /json_proto [10:09:36]Method is POST - this is cgi request [10:09:36]url: /json_proto [10:09:36]query_string will be loaded in cgi processing [10:09:36]execute_cgi json_proto POST (null) [10:09:36]execute_cgi path=json_proto method=POST [10:09:36]POST find Content-Length [10:09:36]Host: 172.17.45.7:8080 [10:09:36]Content-Length: 819 [10:09:36]Content-Type: application/json [10:09:36] [10:09:36]POST finish read [10:09:36]Found Content-Length = 819 [10:09:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2500.00, "payments": [ { "type": 1, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:36]execute_script... [10:09: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)949297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2500.00, "payments": [ { "type": 1, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:36]POST & json_proto [10:09:36]process_json_proto [10:09:36]json parsed OK: [10:09:36]protocol is kg_v1.0 [10:09:36]action value=close_receipt [10:09:36]process_action close_receipt [10:09:36]cmd_close_receipt [10:09:36]MH_GetDate [10:09:36]Write to MH i2c: F0 00 00 38 16 3D [10:09:36]Write i2c OK [10:09:36]MH_I2C_Read... [10:09:36]Read from MH i2c: F0 [10:09:36]MH_I2C_Read... [10:09:36]Read from MH i2c: F0 09 00 [10:09:36]MH_I2C_Read... [10:09:36]Read from MH i2c: F0 09 00 38 16 00 E2 18 A6 66 90 0F 3E 66 8F [10:09:36]GetLastDocTimeStamp 1722161301 [10:09:36]current date 1722161378 [10:09:36]FM_GetShiftState [10:09:36]SAM_PROTO_GetShiftState [10:09:36]wFMCommunicate request_size=4 [10:09:36]MH_SAM_APDU [10:09:36]CAPDU: 80 13 01 00 [10:09:36]Write to MH i2c: E2 08 00 39 16 80 13 01 00 00 00 00 00 CC [10:09:36]Write i2c OK [10:09:36]MH_I2C_Read... [10:09:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:36]Read from MH i2c: E2 [10:09:36]MH_I2C_Read... [10:09:36]Read from MH i2c: E2 0E 00 [10:09:36]MH_I2C_Read... [10:09:36]Read from MH i2c: E2 0E 00 39 16 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A3 [10:09:36]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:09:36]wFMCommunicate OK [10:09:36]SAM_PROTO_GetShiftState done [10:09:36]FM_GetShiftState done [10:09:36]opened in 1722125364 [10:09:36]opened+sec_in_day 1722211764 [10:09:36]quantity*price = 250012 [10:09:36]sum+1 = 250013 [10:09:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 0.00 Безнал.: 2500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 93 28.07.2024 10:09 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118424 ФПД: 137091993420206 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T100938&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118424&fm=137091993420206&tin=02508201610067®Number=0000000000092660&sum=250000 [10:09:37]StoreToDocumentArchive [10:09:37]shift 433 fd 118424 [10:09:37]save to /storage/0433/doc_00118424 [10:09:37]save last doc name /storage/0433/doc_00118424 to /storage/kkm_last_doc_name [10:09:37]save OK [10:09:37]Clear old archive folders... [10:09:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:09:37]tlvbuf is B6EDDC60 [10:09:37]SAM_PROTO_ClearQueue [10:09:37]wFMCommunicate request_size=4 [10:09:37]MH_SAM_APDU [10:09:37]CAPDU: 80 09 00 00 [10:09:37]Write to MH i2c: E2 08 00 46 16 80 09 00 00 00 00 00 00 CE [10:09:37]Write i2c OK [10:09:37]MH_I2C_Read... [10:09:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:37]Read from MH i2c: E2 [10:09:37]MH_I2C_Read... [10:09:37]Read from MH i2c: E2 03 00 [10:09:37]MH_I2C_Read... [10:09:37]Read from MH i2c: E2 03 00 46 16 00 90 00 D0 [10:09:37]RAPDU: 90 00 [10:09:37]wFMCommunicate OK [10:09:37]SAM_PROTO_ClearQueue done [10:09:37]KKMCreateOFDPacket [10:09:37]OFDProtocolAddRootSTLVToBuf [10:09:37]FM_MakeSignedData [10:09:37]FM_MakeSignedData [10:09:37]SAM_PROTO_SignData [10:09:37]wFMCommunicate request_size=4 [10:09:37]MH_SAM_APDU [10:09:37]CAPDU: 80 0D 01 02 [10:09:37]Write to MH i2c: E2 08 00 47 16 80 0D 01 02 00 00 00 00 D6 [10:09:37]Write i2c OK [10:09:37]MH_I2C_Read... [10:09:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:37]Read from MH i2c: E2 [10:09:37]MH_I2C_Read... [10:09:37]Read from MH i2c: E2 03 00 [10:09:37]MH_I2C_Read... [10:09:37]Read from MH i2c: E2 03 00 47 16 00 90 00 D1 [10:09:37]RAPDU: 90 00 [10:09:37]wFMCommunicate OK [10:09:37]wFMCommunicate request_size=255 [10:09:37]MH_SAM_APDU [10:09:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 E2 18 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 98 CE 01 00 35 04 06 00 7C AF 37 91 [10:09:37]Write to MH i2c: E2 02 01 48 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 E2 18 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 98 CE 01 00 35 04 06 00 7C AF 37 91 00 00 36 [10:09:37]Write i2c OK [10:09:37]MH_I2C_Read... [10:09:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:38]Read from MH i2c: E2 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: E2 03 00 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: E2 03 00 48 16 00 90 00 D2 [10:09:38]RAPDU: 90 00 [10:09:38]wFMCommunicate OK [10:09:38]wFMCommunicate request_size=7 [10:09:38]MH_SAM_APDU [10:09:38]CAPDU: 80 0D 02 02 02 C1 AE [10:09:38]Write to MH i2c: E2 0A 00 49 16 80 0D 02 02 02 00 C1 AE 00 00 4C [10:09:38]Write i2c OK [10:09:38]MH_I2C_Read... [10:09:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:38]Read from MH i2c: E2 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: E2 03 00 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: E2 03 00 49 16 00 90 00 D3 [10:09:38]RAPDU: 90 00 [10:09:38]wFMCommunicate OK [10:09:38]wFMCommunicate request_size=4 [10:09:38]MH_SAM_APDU [10:09:38]CAPDU: 80 0D 03 02 [10:09:38]Write to MH i2c: E2 08 00 4A 16 80 0D 03 02 00 00 00 00 DB [10:09:38]Write i2c OK [10:09:38]MH_I2C_Read... [10:09:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:38]Read from MH i2c: E2 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: E2 0B 00 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: E2 0B 00 4A 16 00 EC F5 1E F6 72 DB 34 84 90 00 D6 [10:09:38]RAPDU: EC F5 1E F6 72 DB 34 84 90 00 [10:09:38]wFMCommunicate OK [10:09:38]SAM_PROTO_SignData done [10:09:38]FM_MakeSignedData done [10:09:38]CreateOFDProtocolMessage [10:09:38]wFMCommunicate request_size=4 [10:09:38]MH_SAM_APDU [10:09:38]CAPDU: 80 11 00 00 [10:09:38]Write to MH i2c: E2 08 00 4B 16 80 11 00 00 00 00 00 00 DB [10:09:38]Write i2c OK [10:09:38]MH_I2C_Read... [10:09:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:38]Read from MH i2c: E2 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: E2 17 00 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: E2 17 00 4B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 36 [10:09:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:09:38]wFMCommunicate OK [10:09:38]CreateOFDProtocolMessage done [10:09:38]OFDSenderStorePacket 118424 [10:09:38]StoreOFDPacket docnum=118424 [10:09:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C1 1E 04 01 62 FA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 E2 18 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 98 CE 01 00 35 04 06 00 7C AF 37 91 C1 AE EC F5 1E F6 72 DB 34 84 [10:09:38]CheckFolder [10:09:38]dirname=/storage/ofd_packets [10:09:38]CheckFolder done [10:09:38]ProducePacketName [10:09:38]name=ofd_packets/00118424 [10:09:38]NVStorageSaveData ofd_packets/00118424 [10:09:38]File name is /storage/ofd_packets/00118424 [10:09:38]Write 298 bytes [10:09:38]NVStorageSaveData done [10:09:38]OFDSenderStorePacket done [10:09:38]KKMCreateOFDPacket done [10:09:38]NVStorageSaveData kkm_last_timestamp [10:09:38]File name is /storage/kkm_last_timestamp [10:09:38]Write 4 bytes [10:09:38]NVStorageSaveData done [10:09:38]ExternCall_PrintAddStr [10:09:38]wPrintStart [10:09:38]Write to MH i2c: 01 00 00 4C 16 62 [10:09:38]Write i2c OK [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: 01 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: 01 07 00 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: 01 07 00 4C 16 00 00 00 00 00 FF 0F 77 [10:09:38]RasterBufferAndPrint [10:09:38]line Счет N : (1)949297 [10:09:38]line ИНН: 02508201610067 [10:09:38]line Контрольно-Кассовый Чек [10:09:38]line ПРОДАЖА [10:09:38]line ТРК (МРК, ГНК) : 21 [10:09:38]line Товар: 2710194800 [10:09:38]line ДТ-К-5 [10:09:38]line 32.810 * 76.20 [10:09:38]line = 2500.12 [10:09:38]line НДС 12% НСП 1% [10:09:38]line > о реализуемом товаре [10:09:38]line ОКРУГЛЕНИЕ: -0.12 [10:09:38]line ИТОГО: 2500.00 [10:09:38]line НСП 1% : 22.12 [10:09:38]line НДС 12% : 265.50 [10:09:38]line Наличными: 0.00 [10:09:38]line Безнал.: 2500.00 [10:09:38]line Место: АЗС № 134 "Партнер Нефть" [10:09:38]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:09:38]line СНО: Общий режим [10:09:38]line Чек 93 28.07.2024 10:09 [10:09:38]line Смена: 433 ФФД: 1.0 [10:09:38]line ЗНМ: 0300000044 [10:09:38]line РНМ: 0000000000092660 [10:09:38]line Версия ККМ: 001 [10:09:38]line Платежная система: O! деньги [10:09:38]line ФМ: 0000000000874939 [10:09:38]line ФД: 118424 [10:09:38]line ФПД: 137091993420206 [10:09:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T100938&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118424&fm=137091993420206&tin=02508201610067®Number=0000000000092660&sum=250000 [10:09:38]OFD Sender: Processing packet 118424 [packets to send 86, broken 85] [10:09:38]ProducePacketName [10:09:38]name=ofd_packets/00118424 [10:09:38]OFD Sender: To server: pG, [10:09:38]CommunicateWithHost lk.salyk.kg:30040 [10:09:38]ConnectInit lk.salyk.kg [10:09:38]written 0, free lines is 4095 [10:09:38]Connected sock=10 [10:09: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 39 33 39 0C 01 00 00 C1 1E 04 01 62 FA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 E2 18 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 98 CE 01 00 35 04 06 00 7C AF 37 91 C1 AE EC F5 1E F6 72 DB 34 84 [10:09:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 67 F3 47 00 2B 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 39 33 39 10 04 04 00 98 CE 01 00 F4 03 04 00 73 C6 A5 66 B6 04 01 00 00 0B 41 7A E0 10 92 99 D4 [10:09:38]CommunicateWithHost err = 0 [10:09:38]CheckOFDResponse [10:09:38]1017 (14) - 77093643461234 [10:09:38]1041 (16) - 0000000000874939 [10:09:38]1040 (4) - 118424 [10:09:38]1012 (4) - 28.07.2024 04:17 [10:09:38]1206 (1) - 0 [10:09:38]OFD Sender: Remove packet 118424 [10:09:38]ProducePacketName [10:09:38]name=ofd_packets/00118424 [10:09:38]NVStorageDeleteData [10:09:39]Write to MH i2c: 01 00 00 76 16 8C [10:09:39]Write i2c OK [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: 01 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: 01 07 00 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: 01 07 00 76 16 00 00 00 00 00 D8 0C 77 [10:09:39]RasterBufferAndPrint [10:09:39]line [10:09:39]line [10:09:39]line [10:09:39]line [10:09:39]line [10:09:39]written 0, free lines is 3295 [10:09:39]MH_Cut [10:09:39]Write to MH i2c: D1 01 00 7D 16 01 65 [10:09:39]Write i2c OK [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: D1 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: D1 01 00 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: D1 01 00 7D 16 00 64 [10:09:39]Write to MH i2c: 01 00 00 7E 16 94 [10:09:39]Write i2c OK [10:09:39]MH_I2C_Read... [10:09:39]OFD Sender: No OFD packet to send [10:09:39]*** Cut start [10:09:39]*** Partial cut [10:09:39]*** CUTSNS_PIN = 1 [10:09:39]*** CUTSNS_PIN = 0 [10:09:40]*** Brake cut motor [10:09:40]Read from MH i2c: 01 [10:09:40]MH_I2C_Read... [10:09:40]*** Stop cut motor [10:09:40]*** Cut end [10:09:40]Read from MH i2c: 01 07 00 [10:09:40]MH_I2C_Read... [10:09:40]Read from MH i2c: 01 07 00 7E 16 00 00 00 00 00 FF 0F A9 [10:09:40]process_action close_receipt done [10:09:40]requested_data is exist [10:09:40]produce_requested_data [10:09:40]requested_item fm.sn is exist - process it [10:09:40]wFMCommunicate request_size=4 [10:09:40]MH_SAM_APDU [10:09:40]CAPDU: 80 11 00 00 [10:09:40]Write to MH i2c: E2 08 00 7F 16 80 11 00 00 00 00 00 00 0F [10:09:40]Write i2c OK [10:09:40]MH_I2C_Read... [10:09:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:40]Read from MH i2c: E2 [10:09:40]MH_I2C_Read... [10:09:40]Read from MH i2c: E2 17 00 [10:09:40]MH_I2C_Read... [10:09:40]Read from MH i2c: E2 17 00 7F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6A [10:09:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:09:40]wFMCommunicate OK [10:09:40]requested_item fd.num is exist - process it [10:09:40]SAM_PROTO_GetFieldsCounters [10:09:40]wFMCommunicate request_size=4 [10:09:40]MH_SAM_APDU [10:09:40]CAPDU: 80 13 00 00 [10:09:40]Write to MH i2c: E2 08 00 80 16 80 13 00 00 00 00 00 00 12 [10:09:40]Write i2c OK [10:09:40]MH_I2C_Read... [10:09:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:40]Read from MH i2c: E2 [10:09:40]MH_I2C_Read... [10:09:40]Read from MH i2c: E2 62 00 [10:09:40]MH_I2C_Read... [10:09:40]Read from MH i2c: E2 62 00 80 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 98 CE 01 00 0E 04 04 00 B1 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 69 [10: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 98 CE 01 00 0E 04 04 00 B1 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 [10:09:40]wFMCommunicate OK [10:09:40]SAM_PROTO_GetFieldsCounters done [10:09:40]requested_item shift.num is exist - process it [10:09:40]requested_item shift.opened is exist - process it [10:09:40]req_shift_opened [10:09:40]FM_GetShiftState [10:09:40]SAM_PROTO_GetShiftState [10:09:40]wFMCommunicate request_size=4 [10:09:40]MH_SAM_APDU [10:09:40]CAPDU: 80 13 01 00 [10:09:40]Write to MH i2c: E2 08 00 81 16 80 13 01 00 00 00 00 00 14 [10:09:40]Write i2c OK [10:09:40]MH_I2C_Read... [10:09:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:40]Read from MH i2c: E2 [10:09:40]MH_I2C_Read... [10:09:40]Read from MH i2c: E2 0E 00 [10:09:40]MH_I2C_Read... [10:09:40]Read from MH i2c: E2 0E 00 81 16 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 EB [10:09:40]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:09:40]wFMCommunicate OK [10:09:40]SAM_PROTO_GetShiftState done [10:09:40]FM_GetShiftState done [10:09:40]req_shift_opened done [10:09:40]requested_item shift.open_date is exist - process it [10:09:40]req_shift_open_date [10:09:40]req_shift_open_date done [10:09:40]produce_requested_data done [10:09:40]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118424,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [10:09:40]process_action_free close_receipt [10:09:40]json_value_free [10:09:40]json_value_free done [10:09:40]process_json_proto returns [10:09:40]Send response to host [10:09:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118424,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [10:09:40]free response buf [10:09:40]execute_script done [10:09:40]execute_script returns [10:09:40]free content buf [10:09:40]Sock 7.Close socket [10:09:40]Sock 7.Thread stoped [10:09:44]OFD Sender: No OFD packet to send [10:09:49]OFD Sender: No OFD packet to send [10:09:54]OFD Sender: No OFD packet to send [10:09:59]OFD Sender: No OFD packet to send [10:10:04]OFD Sender: No OFD packet to send [10:10:09]OFD Sender: No OFD packet to send [10:10:14]OFD Sender: No OFD packet to send [10:10:19]OFD Sender: No OFD packet to send [10:10:24]OFD Sender: No OFD packet to send [10:10:29]OFD Sender: No OFD packet to send [10:10:34]OFD Sender: No OFD packet to send [10:10:39]OFD Sender: No OFD packet to send [10:10:44]OFD Sender: No OFD packet to send [10:10:49]OFD Sender: No OFD packet to send [10:10:54]OFD Sender: No OFD packet to send [10:10:59]OFD Sender: No OFD packet to send [10:11:04]OFD Sender: No OFD packet to send [10:11:09]OFD Sender: No OFD packet to send [10:11:14]OFD Sender: No OFD packet to send [10:11:19]OFD Sender: No OFD packet to send [10:11:24]OFD Sender: No OFD packet to send [10:11:29]OFD Sender: No OFD packet to send [10:11:34]OFD Sender: No OFD packet to send [10:11:39]OFD Sender: No OFD packet to send [10:11:44]OFD Sender: No OFD packet to send [10:11:49]OFD Sender: No OFD packet to send [10:11:54]OFD Sender: No OFD packet to send [10:11:57]accept exits with 9 [10:11:57]New connection [10:11:57]New thread 3067067748 created [10:11:57]Thread 3066924388 joined [10:11:57]Waiting for new connection... [10:11:57] Sock 9.Parse request [10:11:57]Sock 9.Check first char [10:11:57]Sock 9.First char is OK [10:11:57]request: POST /json_proto HTTP/1.0 [10:11:57]Method: POST [10:11:57]URL: /json_proto [10:11:57]Method is POST - this is cgi request [10:11:57]url: /json_proto [10:11:57]query_string will be loaded in cgi processing [10:11:57]execute_cgi json_proto POST (null) [10:11:57]execute_cgi path=json_proto method=POST [10:11:57]POST find Content-Length [10:11:57]Host: 172.17.45.7:8080 [10:11:57]Content-Length: 675 [10:11:57]Content-Type: application/json [10:11:57] [10:11:57]POST finish read [10:11:57]Found Content-Length = 675 [10:11:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:57]execute_script... [10:11:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:57]POST & json_proto [10:11:57]process_json_proto [10:11:57]json parsed OK: [10:11:57]protocol is kg_v1.0 [10:11:57]action value=close_receipt [10:11:57]process_action close_receipt [10:11:57]cmd_close_receipt [10:11:57]MH_GetDate [10:11:57]Write to MH i2c: F0 00 00 82 16 87 [10:11:57]Write i2c OK [10:11:57]MH_I2C_Read... [10:11:57]Read from MH i2c: F0 [10:11:57]MH_I2C_Read... [10:11:57]Read from MH i2c: F0 09 00 [10:11:57]MH_I2C_Read... [10:11:57]Read from MH i2c: F0 09 00 82 16 00 6F 19 A6 66 90 0F 3E 66 67 [10:11:57]GetLastDocTimeStamp 1722161378 [10:11:57]current date 1722161519 [10:11:57]FM_GetShiftState [10:11:57]SAM_PROTO_GetShiftState [10:11:57]wFMCommunicate request_size=4 [10:11:57]MH_SAM_APDU [10:11:57]CAPDU: 80 13 01 00 [10:11:57]Write to MH i2c: E2 08 00 83 16 80 13 01 00 00 00 00 00 16 [10:11:57]Write i2c OK [10:11:57]MH_I2C_Read... [10:11:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:57]Read from MH i2c: E2 [10:11:57]MH_I2C_Read... [10:11:57]Read from MH i2c: E2 0E 00 [10:11:57]MH_I2C_Read... [10:11:57]Read from MH i2c: E2 0E 00 83 16 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 ED [10:11:57]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:11:57]wFMCommunicate OK [10:11:57]SAM_PROTO_GetShiftState done [10:11:57]FM_GetShiftState done [10:11:57]opened in 1722125364 [10:11:57]opened+sec_in_day 1722211764 [10:11:57]quantity*price = 80010 [10:11:57]sum+1 = 80011 [10:11:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 94 28.07.2024 10:12 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118425 ФПД: 269222480952136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T101200&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118425&fm=269222480952136&tin=02508201610067®Number=0000000000092660&sum=80000 [10:11:59]StoreToDocumentArchive [10:11:59]shift 433 fd 118425 [10:11:59]save to /storage/0433/doc_00118425 [10:11:59]save last doc name /storage/0433/doc_00118425 to /storage/kkm_last_doc_name [10:11:59]save OK [10:11:59]Clear old archive folders... [10:11:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:11:59]tlvbuf is 001C9500 [10:11:59]SAM_PROTO_ClearQueue [10:11:59]wFMCommunicate request_size=4 [10:11:59]MH_SAM_APDU [10:11:59]CAPDU: 80 09 00 00 [10:11:59]Write to MH i2c: E2 08 00 90 16 80 09 00 00 00 00 00 00 18 [10:11:59]Write i2c OK [10:11:59]MH_I2C_Read... [10:11:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:59]Read from MH i2c: E2 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 03 00 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 03 00 90 16 00 90 00 1A [10:11:59]RAPDU: 90 00 [10:11:59]wFMCommunicate OK [10:11:59]SAM_PROTO_ClearQueue done [10:11:59]KKMCreateOFDPacket [10:11:59]OFDProtocolAddRootSTLVToBuf [10:11:59]FM_MakeSignedData [10:11:59]FM_MakeSignedData [10:11:59]SAM_PROTO_SignData [10:11:59]wFMCommunicate request_size=4 [10:11:59]MH_SAM_APDU [10:11:59]CAPDU: 80 0D 01 02 [10:11:59]Write to MH i2c: E2 08 00 91 16 80 0D 01 02 00 00 00 00 20 [10:11:59]Write i2c OK [10:11:59]MH_I2C_Read... [10:11:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:59]Read from MH i2c: E2 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 03 00 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 03 00 91 16 00 90 00 1B [10:11:59]RAPDU: 90 00 [10:11:59]wFMCommunicate OK [10:11:59]wFMCommunicate request_size=255 [10:11:59]MH_SAM_APDU [10:11:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 70 19 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 99 CE 01 00 35 04 06 00 F4 DB 3E 57 [10:11:59]Write to MH i2c: E2 02 01 92 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 70 19 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 99 CE 01 00 35 04 06 00 F4 DB 3E 57 00 00 54 [10:11:59]Write i2c OK [10:11:59]MH_I2C_Read... [10:11:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:59]Read from MH i2c: E2 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 03 00 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 03 00 92 16 00 90 00 1C [10:11:59]RAPDU: 90 00 [10:11:59]wFMCommunicate OK [10:11:59]wFMCommunicate request_size=7 [10:11:59]MH_SAM_APDU [10:11:59]CAPDU: 80 0D 02 02 02 BB 48 [10:11:59]Write to MH i2c: E2 0A 00 93 16 80 0D 02 02 02 00 BB 48 00 00 2A [10:11:59]Write i2c OK [10:11:59]MH_I2C_Read... [10:11:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:59]Read from MH i2c: E2 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 03 00 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 03 00 93 16 00 90 00 1D [10:11:59]RAPDU: 90 00 [10:11:59]wFMCommunicate OK [10:11:59]wFMCommunicate request_size=4 [10:11:59]MH_SAM_APDU [10:11:59]CAPDU: 80 0D 03 02 [10:11:59]Write to MH i2c: E2 08 00 94 16 80 0D 03 02 00 00 00 00 25 [10:11:59]Write i2c OK [10:11:59]MH_I2C_Read... [10:11:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:59]Read from MH i2c: E2 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 0B 00 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 0B 00 94 16 00 1C D1 1A AD 1A 3A A5 BA 90 00 8D [10:11:59]RAPDU: 1C D1 1A AD 1A 3A A5 BA 90 00 [10:11:59]wFMCommunicate OK [10:11:59]SAM_PROTO_SignData done [10:11:59]FM_MakeSignedData done [10:11:59]CreateOFDProtocolMessage [10:11:59]wFMCommunicate request_size=4 [10:11:59]MH_SAM_APDU [10:11:59]CAPDU: 80 11 00 00 [10:11:59]Write to MH i2c: E2 08 00 95 16 80 11 00 00 00 00 00 00 25 [10:11:59]Write i2c OK [10:11:59]MH_I2C_Read... [10:11:59]OFD Sender: No OFD packet to send [10:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:59]Read from MH i2c: E2 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 17 00 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 17 00 95 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 80 [10:11:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:11:59]wFMCommunicate OK [10:11:59]CreateOFDProtocolMessage done [10:11:59]OFDSenderStorePacket 118425 [10:11:59]StoreOFDPacket docnum=118425 [10:11:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 75 18 04 01 03 17 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 70 19 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 99 CE 01 00 35 04 06 00 F4 DB 3E 57 BB 48 1C D1 1A AD 1A 3A A5 BA [10:11:59]CheckFolder [10:11:59]dirname=/storage/ofd_packets [10:11:59]CheckFolder done [10:11:59]ProducePacketName [10:11:59]name=ofd_packets/00118425 [10:11:59]NVStorageSaveData ofd_packets/00118425 [10:11:59]File name is /storage/ofd_packets/00118425 [10:11:59]Write 298 bytes [10:11:59]NVStorageSaveData done [10:11:59]OFDSenderStorePacket done [10:11:59]KKMCreateOFDPacket done [10:11:59]NVStorageSaveData kkm_last_timestamp [10:11:59]File name is /storage/kkm_last_timestamp [10:11:59]Write 4 bytes [10:11:59]NVStorageSaveData done [10:11:59]ExternCall_PrintAddStr [10:11:59]wPrintStart [10:11:59]Write to MH i2c: 01 00 00 96 16 AC [10:11:59]Write i2c OK [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: 01 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: 01 07 00 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: 01 07 00 96 16 00 00 00 00 00 FF 0F C1 [10:11:59]RasterBufferAndPrint [10:11:59]line Счет N : (1)949298 [10:11:59]line ИНН: 02508201610067 [10:11:59]line Контрольно-Кассовый Чек [10:11:59]line ПРОДАЖА [10:11:59]line ТРК (МРК, ГНК) : 44 [10:11:59]line Товар: 2710194800 [10:11:59]line ДТ-К-5 [10:11:59]line 10.500 * 76.20 [10:11:59]line = 800.10 [10:11:59]line НДС 12% НСП 1% [10:11:59]line > о реализуемом товаре [10:11:59]line ОКРУГЛЕНИЕ: -0.10 [10:11:59]line ИТОГО: 800.00 [10:11:59]line Внесено: 800.00 [10:11:59]line СДАЧА: 0.00 [10:11:59]line НСП 1% : 7.08 [10:11:59]line НДС 12% : 84.97 [10:11:59]line Наличными: 800.00 [10:11:59]line Безнал.: 0.00 [10:11:59]line Место: АЗС № 134 "Партнер Нефть" [10:11:59]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:11:59]line СНО: Общий режим [10:11:59]line Чек 94 28.07.2024 10:12 [10:11:59]line Смена: 433 ФФД: 1.0 [10:11:59]line ЗНМ: 0300000044 [10:11:59]line РНМ: 0000000000092660 [10:11:59]line Версия ККМ: 001 [10:11:59]line ФМ: 0000000000874939 [10:11:59]line ФД: 118425 [10:11:59]line ФПД: 269222480952136 [10:11:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T101200&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118425&fm=269222480952136&tin=02508201610067®Number=0000000000092660&sum=80000 [10:11:59]OFD Sender: Processing packet 118425 [packets to send 86, broken 85] [10:11:59]ProducePacketName [10:11:59]name=ofd_packets/00118425 [10:11:59]OFD Sender: To server: pG, [10:11:59]CommunicateWithHost lk.salyk.kg:30040 [10:11:59]ConnectInit lk.salyk.kg [10:11:59]written 0, free lines is 4095 [10:12:00]Connected sock=10 [10:12:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 75 18 04 01 03 17 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 70 19 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 99 CE 01 00 35 04 06 00 F4 DB 3E 57 BB 48 1C D1 1A AD 1A 3A A5 BA [10:12:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 55 6E 47 00 B8 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 39 33 39 10 04 04 00 99 CE 01 00 F4 03 04 00 00 C7 A5 66 B6 04 01 00 00 5E CB 79 53 45 A7 85 69 [10:12:00]CommunicateWithHost err = 0 [10:12:00]CheckOFDResponse [10:12:00]1017 (14) - 77093643461234 [10:12:00]1041 (16) - 0000000000874939 [10:12:00]1040 (4) - 118425 [10:12:00]1012 (4) - 28.07.2024 04:20 [10:12:00]1206 (1) - 0 [10:12:00]OFD Sender: Remove packet 118425 [10:12:00]ProducePacketName [10:12:00]name=ofd_packets/00118425 [10:12:00]NVStorageDeleteData [10:12:00]Write to MH i2c: 01 00 00 C0 16 D6 [10:12:00]Write i2c OK [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: 01 [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: 01 07 00 [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: 01 07 00 C0 16 00 00 00 00 00 ED 0C D6 [10:12:00]RasterBufferAndPrint [10:12:00]line [10:12:00]line [10:12:00]line [10:12:00]line [10:12:00]line [10:12:00]written 0, free lines is 3315 [10:12:00]MH_Cut [10:12:00]Write to MH i2c: D1 01 00 C7 16 01 AF [10:12:00]Write i2c OK [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: D1 [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: D1 01 00 [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: D1 01 00 C7 16 00 AE [10:12:00]Write to MH i2c: 01 00 00 C8 16 DE [10:12:00]Write i2c OK [10:12:00]MH_I2C_Read... [10:12:00]OFD Sender: No OFD packet to send [10:12:01]*** Cut start [10:12:01]*** Partial cut [10:12:01]*** CUTSNS_PIN = 1 [10:12:01]*** CUTSNS_PIN = 0 [10:12:01]*** Brake cut motor [10:12:01]Read from MH i2c: 01 [10:12:01]MH_I2C_Read... [10:12:01]*** Stop cut motor [10:12:01]*** Cut end [10:12:01]Read from MH i2c: 01 07 00 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: 01 07 00 C8 16 00 00 00 00 00 FF 0F F3 [10:12:01]process_action close_receipt done [10:12:01]requested_data is exist [10:12:01]produce_requested_data [10:12:01]requested_item fm.sn is exist - process it [10:12:01]wFMCommunicate request_size=4 [10:12:01]MH_SAM_APDU [10:12:01]CAPDU: 80 11 00 00 [10:12:01]Write to MH i2c: E2 08 00 C9 16 80 11 00 00 00 00 00 00 59 [10:12:01]Write i2c OK [10:12:01]MH_I2C_Read... [10:12:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:01]Read from MH i2c: E2 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 17 00 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 17 00 C9 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B4 [10:12:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:12:01]wFMCommunicate OK [10:12:01]requested_item fd.num is exist - process it [10:12:01]SAM_PROTO_GetFieldsCounters [10:12:01]wFMCommunicate request_size=4 [10:12:01]MH_SAM_APDU [10:12:01]CAPDU: 80 13 00 00 [10:12:01]Write to MH i2c: E2 08 00 CA 16 80 13 00 00 00 00 00 00 5C [10:12:01]Write i2c OK [10:12:01]MH_I2C_Read... [10:12:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:01]Read from MH i2c: E2 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 62 00 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 62 00 CA 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 99 CE 01 00 0E 04 04 00 B1 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 B7 [10:12:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 99 CE 01 00 0E 04 04 00 B1 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 [10:12:01]wFMCommunicate OK [10:12:01]SAM_PROTO_GetFieldsCounters done [10:12:01]requested_item shift.num is exist - process it [10:12:01]requested_item shift.opened is exist - process it [10:12:01]req_shift_opened [10:12:01]FM_GetShiftState [10:12:01]SAM_PROTO_GetShiftState [10:12:01]wFMCommunicate request_size=4 [10:12:01]MH_SAM_APDU [10:12:01]CAPDU: 80 13 01 00 [10:12:01]Write to MH i2c: E2 08 00 CB 16 80 13 01 00 00 00 00 00 5E [10:12:01]Write i2c OK [10:12:01]MH_I2C_Read... [10:12:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:02]Read from MH i2c: E2 [10:12:02]MH_I2C_Read... [10:12:02]Read from MH i2c: E2 0E 00 [10:12:02]MH_I2C_Read... [10:12:02]Read from MH i2c: E2 0E 00 CB 16 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 35 [10:12:02]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:12:02]wFMCommunicate OK [10:12:02]SAM_PROTO_GetShiftState done [10:12:02]FM_GetShiftState done [10:12:02]req_shift_opened done [10:12:02]requested_item shift.open_date is exist - process it [10:12:02]req_shift_open_date [10:12:02]req_shift_open_date done [10:12:02]produce_requested_data done [10:12:02]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118425,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [10:12:02]process_action_free close_receipt [10:12:02]json_value_free [10:12:02]json_value_free done [10:12:02]process_json_proto returns [10:12:02]Send response to host [10:12:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118425,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [10:12:02]free response buf [10:12:02]execute_script done [10:12:02]execute_script returns [10:12:02]free content buf [10:12:02]Sock 9.Close socket [10:12:02]Sock 9.Thread stoped [10:12:05]OFD Sender: No OFD packet to send [10:12:10]OFD Sender: No OFD packet to send [10:12:15]OFD Sender: No OFD packet to send [10:12:20]OFD Sender: No OFD packet to send [10:12:25]OFD Sender: No OFD packet to send [10:12:30]OFD Sender: No OFD packet to send [10:12:35]OFD Sender: No OFD packet to send [10:12:40]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:50]OFD Sender: No OFD packet to send [10:12:55]OFD Sender: No OFD packet to send [10:13:00]OFD Sender: No OFD packet to send [10:13:05]OFD Sender: No OFD packet to send [10:13:10]OFD Sender: No OFD packet to send [10:13:15]OFD Sender: No OFD packet to send [10:13:20]OFD Sender: No OFD packet to send [10:13:25]OFD Sender: No OFD packet to send [10:13:30]OFD Sender: No OFD packet to send [10:13:35]OFD Sender: No OFD packet to send [10:13:40]OFD Sender: No OFD packet to send [10:13:45]OFD Sender: No OFD packet to send [10:13:50]OFD Sender: No OFD packet to send [10:13:55]OFD Sender: No OFD packet to send [10:14:00]OFD Sender: No OFD packet to send [10:14:05]OFD Sender: No OFD packet to send [10:14:10]OFD Sender: No OFD packet to send [10:14:15]OFD Sender: No OFD packet to send [10:14:20]OFD Sender: No OFD packet to send [10:14:25]OFD Sender: No OFD packet to send [10:14:30]OFD Sender: No OFD packet to send [10:14:35]OFD Sender: No OFD packet to send [10:14:40]OFD Sender: No OFD packet to send [10:14:45]OFD Sender: No OFD packet to send [10:14:50]OFD Sender: No OFD packet to send [10:14:55]OFD Sender: No OFD packet to send [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:06]OFD Sender: No OFD packet to send [10:16:11]OFD Sender: No OFD packet to send [10:16:16]OFD Sender: No OFD packet to send [10:16:21]OFD Sender: No OFD packet to send [10:16:26]OFD Sender: No OFD packet to send [10:16:31]OFD Sender: No OFD packet to send [10:16:36]OFD Sender: No OFD packet to send [10:16:41]OFD Sender: No OFD packet to send [10:16:46]OFD Sender: No OFD packet to send [10:16:51]OFD Sender: No OFD packet to send [10:16:56]OFD Sender: No OFD packet to send [10:17:01]OFD Sender: No OFD packet to send [10:17:06]OFD Sender: No OFD packet to send [10:17:11]OFD Sender: No OFD packet to send [10:17:16]OFD Sender: No OFD packet to send [10:17:21]OFD Sender: No OFD packet to send [10:17:26]OFD Sender: No OFD packet to send [10:17:31]OFD Sender: No OFD packet to send [10:17:36]OFD Sender: No OFD packet to send [10:17:41]OFD Sender: No OFD packet to send [10:17:46]OFD Sender: No OFD packet to send [10:17:51]OFD Sender: No OFD packet to send [10:17:56]OFD Sender: No OFD packet to send [10:18:01]OFD Sender: No OFD packet to send [10:18:06]OFD Sender: No OFD packet to send [10:18:11]OFD Sender: No OFD packet to send [10:18:16]OFD Sender: No OFD packet to send [10:18:21]OFD Sender: No OFD packet to send [10:18:26]OFD Sender: No OFD packet to send [10:18:31]OFD Sender: No OFD packet to send [10:18:36]OFD Sender: No OFD packet to send [10:18:40]accept exits with 7 [10:18:40]New connection [10:18:40]New thread 3066924388 created [10:18:40]Thread 3067067748 joined [10:18:40]Waiting for new connection... [10:18:40] Sock 7.Parse request [10:18:40]Sock 7.Check first char [10:18:40]Sock 7.First char is OK [10:18:40]request: POST /json_proto HTTP/1.0 [10:18:40]Method: POST [10:18:40]URL: /json_proto [10:18:40]Method is POST - this is cgi request [10:18:40]url: /json_proto [10:18:40]query_string will be loaded in cgi processing [10:18:40]execute_cgi json_proto POST (null) [10:18:40]execute_cgi path=json_proto method=POST [10:18:40]POST find Content-Length [10:18:40]Host: 172.17.45.7:8080 [10:18:40]Content-Length: 674 [10:18:40]Content-Type: application/json [10:18:40] [10:18:40]POST finish read [10:18:40]Found Content-Length = 674 [10:18:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:40]execute_script... [10:18: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)949300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:40]POST & json_proto [10:18:40]process_json_proto [10:18:40]json parsed OK: [10:18:40]protocol is kg_v1.0 [10:18:40]action value=close_receipt [10:18:40]process_action close_receipt [10:18:40]cmd_close_receipt [10:18:40]MH_GetDate [10:18:40]Write to MH i2c: F0 00 00 CC 16 D1 [10:18:40]Write i2c OK [10:18:40]MH_I2C_Read... [10:18:40]Read from MH i2c: F0 [10:18:40]MH_I2C_Read... [10:18:40]Read from MH i2c: F0 09 00 [10:18:40]MH_I2C_Read... [10:18:40]Read from MH i2c: F0 09 00 CC 16 00 02 1B A6 66 90 0F 3E 66 46 [10:18:40]GetLastDocTimeStamp 1722161520 [10:18:40]current date 1722161922 [10:18:40]FM_GetShiftState [10:18:40]SAM_PROTO_GetShiftState [10:18:40]wFMCommunicate request_size=4 [10:18:40]MH_SAM_APDU [10:18:40]CAPDU: 80 13 01 00 [10:18:40]Write to MH i2c: E2 08 00 CD 16 80 13 01 00 00 00 00 00 60 [10:18:40]Write i2c OK [10:18:40]MH_I2C_Read... [10:18:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:40]Read from MH i2c: E2 [10:18:40]MH_I2C_Read... [10:18:40]Read from MH i2c: E2 0E 00 [10:18:40]MH_I2C_Read... [10:18:40]Read from MH i2c: E2 0E 00 CD 16 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 37 [10:18:40]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:18:40]wFMCommunicate OK [10:18:40]SAM_PROTO_GetShiftState done [10:18:40]FM_GetShiftState done [10:18:40]opened in 1722125364 [10:18:40]opened+sec_in_day 1722211764 [10:18:40]quantity*price = 50063 [10:18:40]sum+1 = 50064 [10:18:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 95 28.07.2024 10:18 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118426 ФПД: 232182996357107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T101842&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118426&fm=232182996357107&tin=02508201610067®Number=0000000000092660&sum=50000 [10:18:41]StoreToDocumentArchive [10:18:41]shift 433 fd 118426 [10:18:41]save to /storage/0433/doc_00118426 [10:18:41]save last doc name /storage/0433/doc_00118426 to /storage/kkm_last_doc_name [10:18:41]save OK [10:18:41]Clear old archive folders... [10:18:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:18:41]tlvbuf is 00115DD0 [10:18:41]SAM_PROTO_ClearQueue [10:18:41]wFMCommunicate request_size=4 [10:18:41]MH_SAM_APDU [10:18:41]CAPDU: 80 09 00 00 [10:18:41]Write to MH i2c: E2 08 00 DA 16 80 09 00 00 00 00 00 00 62 [10:18:41]Write i2c OK [10:18:41]MH_I2C_Read... [10:18:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:42]Read from MH i2c: E2 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 03 00 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 03 00 DA 16 00 90 00 64 [10:18:42]RAPDU: 90 00 [10:18:42]wFMCommunicate OK [10:18:42]SAM_PROTO_ClearQueue done [10:18:42]KKMCreateOFDPacket [10:18:42]OFDProtocolAddRootSTLVToBuf [10:18:42]FM_MakeSignedData [10:18:42]FM_MakeSignedData [10:18:42]SAM_PROTO_SignData [10:18:42]wFMCommunicate request_size=4 [10:18:42]MH_SAM_APDU [10:18:42]CAPDU: 80 0D 01 02 [10:18:42]Write to MH i2c: E2 08 00 DB 16 80 0D 01 02 00 00 00 00 6A [10:18:42]Write i2c OK [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 [10:18:42]MH_I2C_Read... [10:18:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:42]Read from MH i2c: E2 03 00 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 03 00 DB 16 00 90 00 65 [10:18:42]RAPDU: 90 00 [10:18:42]wFMCommunicate OK [10:18:42]wFMCommunicate request_size=255 [10:18:42]MH_SAM_APDU [10:18:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 02 1B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9A CE 01 00 35 04 06 00 D3 2B 51 05 [10:18:42]Write to MH i2c: E2 02 01 DC 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 02 1B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9A CE 01 00 35 04 06 00 D3 2B 51 05 00 00 79 [10:18:42]Write i2c OK [10:18:42]MH_I2C_Read... [10:18:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:42]Read from MH i2c: E2 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 03 00 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 03 00 DC 16 00 90 00 66 [10:18:42]RAPDU: 90 00 [10:18:42]wFMCommunicate OK [10:18:42]wFMCommunicate request_size=7 [10:18:42]MH_SAM_APDU [10:18:42]CAPDU: 80 0D 02 02 02 4F F3 [10:18:42]Write to MH i2c: E2 0A 00 DD 16 80 0D 02 02 02 00 4F F3 00 00 B3 [10:18:42]Write i2c OK [10:18:42]MH_I2C_Read... [10:18:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:42]Read from MH i2c: E2 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 03 00 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 03 00 DD 16 00 90 00 67 [10:18:42]RAPDU: 90 00 [10:18:42]wFMCommunicate OK [10:18:42]wFMCommunicate request_size=4 [10:18:42]MH_SAM_APDU [10:18:42]CAPDU: 80 0D 03 02 [10:18:42]Write to MH i2c: E2 08 00 DE 16 80 0D 03 02 00 00 00 00 6F [10:18:42]Write i2c OK [10:18:42]MH_I2C_Read... [10:18:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:42]Read from MH i2c: E2 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 0B 00 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 0B 00 DE 16 00 81 AE 1B F4 F0 26 88 85 90 00 D1 [10:18:42]RAPDU: 81 AE 1B F4 F0 26 88 85 90 00 [10:18:42]wFMCommunicate OK [10:18:42]SAM_PROTO_SignData done [10:18:42]FM_MakeSignedData done [10:18:42]CreateOFDProtocolMessage [10:18:42]wFMCommunicate request_size=4 [10:18:42]MH_SAM_APDU [10:18:42]CAPDU: 80 11 00 00 [10:18:42]Write to MH i2c: E2 08 00 DF 16 80 11 00 00 00 00 00 00 6F [10:18:42]Write i2c OK [10:18:42]MH_I2C_Read... [10:18:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:42]Read from MH i2c: E2 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 17 00 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 17 00 DF 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CA [10:18:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:18:42]wFMCommunicate OK [10:18:42]CreateOFDProtocolMessage done [10:18:42]OFDSenderStorePacket 118426 [10:18:42]StoreOFDPacket docnum=118426 [10:18:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 FC 40 04 01 E0 D4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 02 1B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9A CE 01 00 35 04 06 00 D3 2B 51 05 4F F3 81 AE 1B F4 F0 26 88 85 [10:18:42]CheckFolder [10:18:42]dirname=/storage/ofd_packets [10:18:42]CheckFolder done [10:18:42]ProducePacketName [10:18:42]name=ofd_packets/00118426 [10:18:42]NVStorageSaveData ofd_packets/00118426 [10:18:42]File name is /storage/ofd_packets/00118426 [10:18:42]Write 298 bytes [10:18:42]NVStorageSaveData done [10:18:42]OFDSenderStorePacket done [10:18:42]KKMCreateOFDPacket done [10:18:42]NVStorageSaveData kkm_last_timestamp [10:18:42]File name is /storage/kkm_last_timestamp [10:18:42]Write 4 bytes [10:18:42]NVStorageSaveData done [10:18:42]ExternCall_PrintAddStr [10:18:42]wPrintStart [10:18:42]Write to MH i2c: 01 00 00 E0 16 F6 [10:18:42]Write i2c OK [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: 01 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: 01 07 00 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: 01 07 00 E0 16 00 00 00 00 00 FF 0F 0B [10:18:42]RasterBufferAndPrint [10:18:42]line Счет N : (1)949300 [10:18:42]line ИНН: 02508201610067 [10:18:42]line Контрольно-Кассовый Чек [10:18:42]line ПРОДАЖА [10:18:42]line ТРК (МРК, ГНК) : 34 [10:18:42]line Товар: 2710194800 [10:18:42]line ДТ-К-5 [10:18:42]line 6.570 * 76.20 [10:18:42]line = 500.63 [10:18:42]line НДС 12% НСП 1% [10:18:42]line > о реализуемом товаре [10:18:42]line ОКРУГЛЕНИЕ: -0.63 [10:18:42]line ИТОГО: 500.00 [10:18:42]line Внесено: 500.00 [10:18:42]line СДАЧА: 0.00 [10:18:42]line НСП 1% : 4.43 [10:18:42]line НДС 12% : 53.16 [10:18:42]line Наличными: 500.00 [10:18:42]line Безнал.: 0.00 [10:18:42]line Место: АЗС № 134 "Партнер Нефть" [10:18:42]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:18:42]line СНО: Общий режим [10:18:42]line Чек 95 28.07.2024 10:18 [10:18:42]line Смена: 433 ФФД: 1.0 [10:18:42]line ЗНМ: 0300000044 [10:18:42]line РНМ: 0000000000092660 [10:18:42]line Версия ККМ: 001 [10:18:42]line ФМ: 0000000000874939 [10:18:42]line ФД: 118426 [10:18:42]line ФПД: 232182996357107 [10:18:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T101842&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118426&fm=232182996357107&tin=02508201610067®Number=0000000000092660&sum=50000 [10:18:42]OFD Sender: Processing packet 118426 [packets to send 86, broken 85] [10:18:42]ProducePacketName [10:18:42]name=ofd_packets/00118426 [10:18:42]OFD Sender: To server: pG, [10:18:42]CommunicateWithHost lk.salyk.kg:30040 [10:18:42]ConnectInit lk.salyk.kg [10:18:42]written 0, free lines is 4095 [10:18:42]Connected sock=10 [10:18: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 39 33 39 0C 01 00 00 FC 40 04 01 E0 D4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 02 1B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9A CE 01 00 35 04 06 00 D3 2B 51 05 4F F3 81 AE 1B F4 F0 26 88 85 [10:18:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 34 1D 47 00 0B 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 39 33 39 10 04 04 00 9A CE 01 00 F4 03 04 00 93 C8 A5 66 B6 04 01 00 00 E3 4F 1B 6E 46 A7 38 DF [10:18:43]CommunicateWithHost err = 0 [10:18:43]CheckOFDResponse [10:18:43]1017 (14) - 77093643461234 [10:18:43]1041 (16) - 0000000000874939 [10:18:43]1040 (4) - 118426 [10:18:43]1012 (4) - 28.07.2024 04:26 [10:18:43]1206 (1) - 0 [10:18:43]OFD Sender: Remove packet 118426 [10:18:43]ProducePacketName [10:18:43]name=ofd_packets/00118426 [10:18:43]NVStorageDeleteData [10:18:43]Write to MH i2c: 01 00 00 0A 17 21 [10:18:43]Write i2c OK [10:18:43]MH_I2C_Read... [10:18:43]Read from MH i2c: 01 [10:18:43]MH_I2C_Read... [10:18:43]Read from MH i2c: 01 07 00 [10:18:43]MH_I2C_Read... [10:18:43]Read from MH i2c: 01 07 00 0A 17 00 00 00 00 00 E3 0C 17 [10:18:43]RasterBufferAndPrint [10:18:43]line [10:18:43]line [10:18:43]line [10:18:43]line [10:18:43]line [10:18:43]written 0, free lines is 3305 [10:18:43]MH_Cut [10:18:43]Write to MH i2c: D1 01 00 11 17 01 FA [10:18:43]Write i2c OK [10:18:43]MH_I2C_Read... [10:18:43]Read from MH i2c: D1 [10:18:43]MH_I2C_Read... [10:18:43]Read from MH i2c: D1 01 00 [10:18:43]MH_I2C_Read... [10:18:43]Read from MH i2c: D1 01 00 11 17 00 F9 [10:18:43]Write to MH i2c: 01 00 00 12 17 29 [10:18:43]Write i2c OK [10:18:43]MH_I2C_Read... [10:18:43]OFD Sender: No OFD packet to send [10:18:43]*** Cut start [10:18:43]*** Partial cut [10:18:43]*** CUTSNS_PIN = 1 [10:18:44]*** CUTSNS_PIN = 0 [10:18:44]*** Brake cut motor [10:18:44]Read from MH i2c: 01 [10:18:44]MH_I2C_Read... [10:18:44]*** Stop cut motor [10:18:44]*** Cut end [10:18:44]Read from MH i2c: 01 07 00 [10:18:44]MH_I2C_Read... [10:18:44]Read from MH i2c: 01 07 00 12 17 00 00 00 00 00 FF 0F 3E [10:18:44]process_action close_receipt done [10:18:44]requested_data is exist [10:18:44]produce_requested_data [10:18:44]requested_item fm.sn is exist - process it [10:18:44]wFMCommunicate request_size=4 [10:18:44]MH_SAM_APDU [10:18:44]CAPDU: 80 11 00 00 [10:18:44]Write to MH i2c: E2 08 00 13 17 80 11 00 00 00 00 00 00 A4 [10:18:44]Write i2c OK [10:18:44]MH_I2C_Read... [10:18:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:44]Read from MH i2c: E2 [10:18:44]MH_I2C_Read... [10:18:44]Read from MH i2c: E2 17 00 [10:18:44]MH_I2C_Read... [10:18:44]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 39 33 39 90 00 FF [10:18:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:18:44]wFMCommunicate OK [10:18:44]requested_item fd.num is exist - process it [10:18:44]SAM_PROTO_GetFieldsCounters [10:18:44]wFMCommunicate request_size=4 [10:18:44]MH_SAM_APDU [10:18:44]CAPDU: 80 13 00 00 [10:18:44]Write to MH i2c: E2 08 00 14 17 80 13 00 00 00 00 00 00 A7 [10:18:44]Write i2c OK [10:18:44]MH_I2C_Read... [10:18:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:44]Read from MH i2c: E2 [10:18:44]MH_I2C_Read... [10:18:44]Read from MH i2c: E2 62 00 [10:18:44]MH_I2C_Read... [10:18:44]Read from MH i2c: E2 62 00 14 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9A CE 01 00 0E 04 04 00 B1 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 06 [10:18: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9A CE 01 00 0E 04 04 00 B1 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 [10:18:44]wFMCommunicate OK [10:18:44]SAM_PROTO_GetFieldsCounters done [10:18:44]requested_item shift.num is exist - process it [10:18:44]requested_item shift.opened is exist - process it [10:18:44]req_shift_opened [10:18:44]FM_GetShiftState [10:18:44]SAM_PROTO_GetShiftState [10:18:44]wFMCommunicate request_size=4 [10:18:44]MH_SAM_APDU [10:18:44]CAPDU: 80 13 01 00 [10:18:44]Write to MH i2c: E2 08 00 15 17 80 13 01 00 00 00 00 00 A9 [10:18:44]Write i2c OK [10:18:44]MH_I2C_Read... [10:18:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:44]Read from MH i2c: E2 [10:18:44]MH_I2C_Read... [10:18:44]Read from MH i2c: E2 0E 00 [10:18:44]MH_I2C_Read... [10:18:44]Read from MH i2c: E2 0E 00 15 17 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 80 [10:18:44]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:18:44]wFMCommunicate OK [10:18:44]SAM_PROTO_GetShiftState done [10:18:44]FM_GetShiftState done [10:18:44]req_shift_opened done [10:18:44]requested_item shift.open_date is exist - process it [10:18:44]req_shift_open_date [10:18:44]req_shift_open_date done [10:18:44]produce_requested_data done [10:18:44]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118426,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [10:18:44]process_action_free close_receipt [10:18:44]json_value_free [10:18:44]json_value_free done [10:18:44]process_json_proto returns [10:18:44]Send response to host [10:18:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118426,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [10:18:44]free response buf [10:18:44]execute_script done [10:18:44]execute_script returns [10:18:44]free content buf [10:18:44]Sock 7.Close socket [10:18:44]Sock 7.Thread stoped [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]accept exits with 9 [10:19:18]New connection [10:19:18]New thread 3067067748 created [10:19:18]Thread 3066924388 joined [10:19:18]Waiting for new connection... [10:19:18] Sock 9.Parse request [10:19:18]Sock 9.Check first char [10:19:18]Sock 9.First char is OK [10:19:18]request: POST /json_proto HTTP/1.0 [10:19:18]Method: POST [10:19:18]URL: /json_proto [10:19:18]Method is POST - this is cgi request [10:19:18]url: /json_proto [10:19:18]query_string will be loaded in cgi processing [10:19:18]execute_cgi json_proto POST (null) [10:19:18]execute_cgi path=json_proto method=POST [10:19:18]POST find Content-Length [10:19:18]Host: 172.17.45.7:8080 [10:19:18]Content-Length: 819 [10:19:18]Content-Type: application/json [10:19:18] [10:19:18]POST finish read [10:19:18]Found Content-Length = 819 [10:19:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:18]execute_script... [10:19:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:18]POST & json_proto [10:19:18]process_json_proto [10:19:18]json parsed OK: [10:19:18]protocol is kg_v1.0 [10:19:18]action value=close_receipt [10:19:18]process_action close_receipt [10:19:18]cmd_close_receipt [10:19:18]MH_GetDate [10:19:18]Write to MH i2c: F0 00 00 16 17 1C [10:19:18]Write i2c OK [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: F0 [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: F0 09 00 [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: F0 09 00 16 17 00 28 1B A6 66 90 0F 3E 66 B7 [10:19:18]GetLastDocTimeStamp 1722161922 [10:19:18]current date 1722161960 [10:19:18]FM_GetShiftState [10:19:18]SAM_PROTO_GetShiftState [10:19:18]wFMCommunicate request_size=4 [10:19:18]MH_SAM_APDU [10:19:18]CAPDU: 80 13 01 00 [10:19:18]Write to MH i2c: E2 08 00 17 17 80 13 01 00 00 00 00 00 AB [10:19:18]Write i2c OK [10:19:18]MH_I2C_Read... [10:19:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:18]Read from MH i2c: E2 [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: E2 0E 00 [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: E2 0E 00 17 17 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 82 [10:19:18]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:19:18]wFMCommunicate OK [10:19:18]SAM_PROTO_GetShiftState done [10:19:18]FM_GetShiftState done [10:19:18]opened in 1722125364 [10:19:18]opened+sec_in_day 1722211764 [10:19:18]quantity*price = 200025 [10:19:18]sum+1 = 200026 [10:19:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 96 28.07.2024 10:19 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118427 ФПД: 261323134263179 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T101920&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118427&fm=261323134263179&tin=02508201610067®Number=0000000000092660&sum=200000 [10:19:19]StoreToDocumentArchive [10:19:19]shift 433 fd 118427 [10:19:19]save to /storage/0433/doc_00118427 [10:19:19]save last doc name /storage/0433/doc_00118427 to /storage/kkm_last_doc_name [10:19:19]save OK [10:19:19]Clear old archive folders... [10:19:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:19:19]tlvbuf is 001ACE40 [10:19:19]SAM_PROTO_ClearQueue [10:19:19]wFMCommunicate request_size=4 [10:19:19]MH_SAM_APDU [10:19:19]CAPDU: 80 09 00 00 [10:19:19]Write to MH i2c: E2 08 00 24 17 80 09 00 00 00 00 00 00 AD [10:19:19]Write i2c OK [10:19:19]MH_I2C_Read... [10:19:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:19]Read from MH i2c: E2 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: E2 03 00 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: E2 03 00 24 17 00 90 00 AF [10:19:19]RAPDU: 90 00 [10:19:19]wFMCommunicate OK [10:19:19]SAM_PROTO_ClearQueue done [10:19:19]KKMCreateOFDPacket [10:19:19]OFDProtocolAddRootSTLVToBuf [10:19:19]FM_MakeSignedData [10:19:19]FM_MakeSignedData [10:19:19]SAM_PROTO_SignData [10:19:19]wFMCommunicate request_size=4 [10:19:19]MH_SAM_APDU [10:19:19]CAPDU: 80 0D 01 02 [10:19:19]Write to MH i2c: E2 08 00 25 17 80 0D 01 02 00 00 00 00 B5 [10:19:19]Write i2c OK [10:19:19]MH_I2C_Read... [10:19:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:19]Read from MH i2c: E2 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: E2 03 00 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: E2 03 00 25 17 00 90 00 B0 [10:19:19]RAPDU: 90 00 [10:19:19]wFMCommunicate OK [10:19:19]wFMCommunicate request_size=255 [10:19:19]MH_SAM_APDU [10:19:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 28 1B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9B CE 01 00 35 04 06 00 ED AC 08 96 [10:19:19]Write to MH i2c: E2 02 01 26 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 28 1B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9B CE 01 00 35 04 06 00 ED AC 08 96 00 00 35 [10:19:19]Write i2c OK [10:19:19]MH_I2C_Read... [10:19:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:19]Read from MH i2c: E2 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: E2 03 00 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: E2 03 00 26 17 00 90 00 B1 [10:19:19]RAPDU: 90 00 [10:19:19]wFMCommunicate OK [10:19:19]wFMCommunicate request_size=7 [10:19:19]MH_SAM_APDU [10:19:19]CAPDU: 80 0D 02 02 02 DF 8B [10:19:19]Write to MH i2c: E2 0A 00 27 17 80 0D 02 02 02 00 DF 8B 00 00 26 [10:19:19]Write i2c OK [10:19:19]MH_I2C_Read... [10:19:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:19]Read from MH i2c: E2 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: E2 03 00 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: E2 03 00 27 17 00 90 00 B2 [10:19:19]RAPDU: 90 00 [10:19:19]wFMCommunicate OK [10:19:19]wFMCommunicate request_size=4 [10:19:19]MH_SAM_APDU [10:19:19]CAPDU: 80 0D 03 02 [10:19:19]Write to MH i2c: E2 08 00 28 17 80 0D 03 02 00 00 00 00 BA [10:19:19]Write i2c OK [10:19:19]MH_I2C_Read... [10:19:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:20]Read from MH i2c: E2 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: E2 0B 00 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: E2 0B 00 28 17 00 6B D4 42 96 C8 4D 78 F3 90 00 52 [10:19:20]RAPDU: 6B D4 42 96 C8 4D 78 F3 90 00 [10:19:20]wFMCommunicate OK [10:19:20]SAM_PROTO_SignData done [10:19:20]FM_MakeSignedData done [10:19:20]CreateOFDProtocolMessage [10:19:20]wFMCommunicate request_size=4 [10:19:20]MH_SAM_APDU [10:19:20]CAPDU: 80 11 00 00 [10:19:20]Write to MH i2c: E2 08 00 29 17 80 11 00 00 00 00 00 00 BA [10:19:20]Write i2c OK [10:19:20]MH_I2C_Read... [10:19:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:20]Read from MH i2c: E2 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: E2 17 00 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: E2 17 00 29 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 15 [10:19:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:19:20]wFMCommunicate OK [10:19:20]CreateOFDProtocolMessage done [10:19:20]OFDSenderStorePacket 118427 [10:19:20]StoreOFDPacket docnum=118427 [10:19:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 AF 32 04 01 ED DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 28 1B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9B CE 01 00 35 04 06 00 ED AC 08 96 DF 8B 6B D4 42 96 C8 4D 78 F3 [10:19:20]CheckFolder [10:19:20]dirname=/storage/ofd_packets [10:19:20]CheckFolder done [10:19:20]ProducePacketName [10:19:20]name=ofd_packets/00118427 [10:19:20]NVStorageSaveData ofd_packets/00118427 [10:19:20]File name is /storage/ofd_packets/00118427 [10:19:20]Write 298 bytes [10:19:20]NVStorageSaveData done [10:19:20]OFDSenderStorePacket done [10:19:20]KKMCreateOFDPacket done [10:19:20]NVStorageSaveData kkm_last_timestamp [10:19:20]File name is /storage/kkm_last_timestamp [10:19:20]Write 4 bytes [10:19:20]NVStorageSaveData done [10:19:20]ExternCall_PrintAddStr [10:19:20]wPrintStart [10:19:20]Write to MH i2c: 01 00 00 2A 17 41 [10:19:20]Write i2c OK [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: 01 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: 01 07 00 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: 01 07 00 2A 17 00 00 00 00 00 FF 0F 56 [10:19:20]RasterBufferAndPrint [10:19:20]line Счет N : (1)949299 [10:19:20]line ИНН: 02508201610067 [10:19:20]line Контрольно-Кассовый Чек [10:19:20]line ПРОДАЖА [10:19:20]line ТРК (МРК, ГНК) : 44 [10:19:20]line Товар: 2710194800 [10:19:20]line ДТ-К-5 [10:19:20]line 26.250 * 76.20 [10:19:20]line = 2000.25 [10:19:20]line НДС 12% НСП 1% [10:19:20]line > о реализуемом товаре [10:19:20]line ОКРУГЛЕНИЕ: -0.25 [10:19:20]line ИТОГО: 2000.00 [10:19:20]line НСП 1% : 17.70 [10:19:20]line НДС 12% : 212.42 [10:19:20]line Наличными: 0.00 [10:19:20]line Безнал.: 2000.00 [10:19:20]line Место: АЗС № 134 "Партнер Нефть" [10:19:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:19:20]line СНО: Общий режим [10:19:20]line Чек 96 28.07.2024 10:19 [10:19:20]line Смена: 433 ФФД: 1.0 [10:19:20]line ЗНМ: 0300000044 [10:19:20]line РНМ: 0000000000092660 [10:19:20]line Версия ККМ: 001 [10:19:20]line Платежная система: O! деньги [10:19:20]line ФМ: 0000000000874939 [10:19:20]line ФД: 118427 [10:19:20]line ФПД: 261323134263179 [10:19:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T101920&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118427&fm=261323134263179&tin=02508201610067®Number=0000000000092660&sum=200000 [10:19:20]OFD Sender: Processing packet 118427 [packets to send 86, broken 85] [10:19:20]ProducePacketName [10:19:20]name=ofd_packets/00118427 [10:19:20]OFD Sender: To server: pG, [10:19:20]CommunicateWithHost lk.salyk.kg:30040 [10:19:20]ConnectInit lk.salyk.kg [10:19:20]written 0, free lines is 4095 [10:19:20]Connected sock=10 [10:19:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 AF 32 04 01 ED DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 28 1B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9B CE 01 00 35 04 06 00 ED AC 08 96 DF 8B 6B D4 42 96 C8 4D 78 F3 [10:19:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 91 39 47 00 05 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 39 33 39 10 04 04 00 9B CE 01 00 F4 03 04 00 B9 C8 A5 66 B6 04 01 00 00 35 6B DB 57 1F FA 87 EC [10:19:20]CommunicateWithHost err = 0 [10:19:20]CheckOFDResponse [10:19:20]1017 (14) - 77093643461234 [10:19:20]1041 (16) - 0000000000874939 [10:19:20]1040 (4) - 118427 [10:19:20]1012 (4) - 28.07.2024 04:27 [10:19:20]1206 (1) - 0 [10:19:20]OFD Sender: Remove packet 118427 [10:19:20]ProducePacketName [10:19:20]name=ofd_packets/00118427 [10:19:20]NVStorageDeleteData [10:19:20]Write to MH i2c: 01 00 00 54 17 6B [10:19:20]Write i2c OK [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: 01 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: 01 07 00 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: 01 07 00 54 17 00 00 00 00 00 F2 0C 70 [10:19:20]RasterBufferAndPrint [10:19:20]line [10:19:20]line [10:19:20]line [10:19:20]line [10:19:20]line [10:19:20]written 0, free lines is 3320 [10:19:20]MH_Cut [10:19:20]Write to MH i2c: D1 01 00 5B 17 01 44 [10:19:20]Write i2c OK [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: D1 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: D1 01 00 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: D1 01 00 5B 17 00 43 [10:19:20]Write to MH i2c: 01 00 00 5C 17 73 [10:19:20]Write i2c OK [10:19:20]MH_I2C_Read... [10:19:21]OFD Sender: No OFD packet to send [10:19:21]*** Cut start [10:19:21]*** Partial cut [10:19:21]*** CUTSNS_PIN = 1 [10:19:21]*** CUTSNS_PIN = 0 [10:19:21]*** Brake cut motor [10:19:22]Read from MH i2c: 01 [10:19:22]MH_I2C_Read... [10:19:22]*** Stop cut motor [10:19:22]*** Cut end [10:19:22]Read from MH i2c: 01 07 00 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: 01 07 00 5C 17 00 00 00 00 00 FF 0F 88 [10:19:22]process_action close_receipt done [10:19:22]requested_data is exist [10:19:22]produce_requested_data [10:19:22]requested_item fm.sn is exist - process it [10:19:22]wFMCommunicate request_size=4 [10:19:22]MH_SAM_APDU [10:19:22]CAPDU: 80 11 00 00 [10:19:22]Write to MH i2c: E2 08 00 5D 17 80 11 00 00 00 00 00 00 EE [10:19:22]Write i2c OK [10:19:22]MH_I2C_Read... [10:19:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:22]Read from MH i2c: E2 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: E2 17 00 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: E2 17 00 5D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 49 [10:19:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:19:22]wFMCommunicate OK [10:19:22]requested_item fd.num is exist - process it [10:19:22]SAM_PROTO_GetFieldsCounters [10:19:22]wFMCommunicate request_size=4 [10:19:22]MH_SAM_APDU [10:19:22]CAPDU: 80 13 00 00 [10:19:22]Write to MH i2c: E2 08 00 5E 17 80 13 00 00 00 00 00 00 F1 [10:19:22]Write i2c OK [10:19:22]MH_I2C_Read... [10:19:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:22]Read from MH i2c: E2 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: E2 62 00 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: E2 62 00 5E 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9B CE 01 00 0E 04 04 00 B1 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 54 [10:19:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9B CE 01 00 0E 04 04 00 B1 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 [10:19:22]wFMCommunicate OK [10:19:22]SAM_PROTO_GetFieldsCounters done [10:19:22]requested_item shift.num is exist - process it [10:19:22]requested_item shift.opened is exist - process it [10:19:22]req_shift_opened [10:19:22]FM_GetShiftState [10:19:22]SAM_PROTO_GetShiftState [10:19:22]wFMCommunicate request_size=4 [10:19:22]MH_SAM_APDU [10:19:22]CAPDU: 80 13 01 00 [10:19:22]Write to MH i2c: E2 08 00 5F 17 80 13 01 00 00 00 00 00 F3 [10:19:22]Write i2c OK [10:19:22]MH_I2C_Read... [10:19:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:22]Read from MH i2c: E2 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: E2 0E 00 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: E2 0E 00 5F 17 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 CA [10:19:22]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:19:22]wFMCommunicate OK [10:19:22]SAM_PROTO_GetShiftState done [10:19:22]FM_GetShiftState done [10:19:22]req_shift_opened done [10:19:22]requested_item shift.open_date is exist - process it [10:19:22]req_shift_open_date [10:19:22]req_shift_open_date done [10:19:22]produce_requested_data done [10:19:22]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118427,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [10:19:22]process_action_free close_receipt [10:19:22]json_value_free [10:19:22]json_value_free done [10:19:22]process_json_proto returns [10:19:22]Send response to host [10:19:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118427,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [10:19:22]free response buf [10:19:22]execute_script done [10:19:22]execute_script returns [10:19:22]free content buf [10:19:22]Sock 9.Close socket [10:19:22]Sock 9.Thread stoped [10:19:26]OFD Sender: No OFD packet to send [10:19:31]OFD Sender: No OFD packet to send [10:19:36]OFD Sender: No OFD packet to send [10:19:41]OFD Sender: No OFD packet to send [10:19:46]OFD Sender: No OFD packet to send [10:19:51]OFD Sender: No OFD packet to send [10:19:56]OFD Sender: No OFD packet to send [10:20:01]OFD Sender: No OFD packet to send [10:20:06]OFD Sender: No OFD packet to send [10:20:11]OFD Sender: No OFD packet to send [10:20:16]OFD Sender: No OFD packet to send [10:20:16]accept exits with 7 [10:20:16]New connection [10:20:16]New thread 3066924388 created [10:20:16]Thread 3067067748 joined [10:20:16]Waiting for new connection... [10:20:16] Sock 7.Parse request [10:20:16]Sock 7.Check first char [10:20:16]Sock 7.First char is OK [10:20:16]request: POST /json_proto HTTP/1.0 [10:20:16]Method: POST [10:20:16]URL: /json_proto [10:20:16]Method is POST - this is cgi request [10:20:16]url: /json_proto [10:20:16]query_string will be loaded in cgi processing [10:20:16]execute_cgi json_proto POST (null) [10:20:16]execute_cgi path=json_proto method=POST [10:20:16]POST find Content-Length [10:20:16]Host: 172.17.45.7:8080 [10:20:16]Content-Length: 677 [10:20:16]Content-Type: application/json [10:20:16] [10:20:16]POST finish read [10:20:16]Found Content-Length = 677 [10:20:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:20:16]execute_script... [10:20:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:20:16]POST & json_proto [10:20:16]process_json_proto [10:20:16]json parsed OK: [10:20:16]protocol is kg_v1.0 [10:20:16]action value=close_receipt [10:20:16]process_action close_receipt [10:20:16]cmd_close_receipt [10:20:16]MH_GetDate [10:20:16]Write to MH i2c: F0 00 00 60 17 66 [10:20:16]Write i2c OK [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: F0 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: F0 09 00 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: F0 09 00 60 17 00 62 1B A6 66 90 0F 3E 66 3B [10:20:16]GetLastDocTimeStamp 1722161960 [10:20:16]current date 1722162018 [10:20:16]FM_GetShiftState [10:20:16]SAM_PROTO_GetShiftState [10:20:16]wFMCommunicate request_size=4 [10:20:16]MH_SAM_APDU [10:20:16]CAPDU: 80 13 01 00 [10:20:16]Write to MH i2c: E2 08 00 61 17 80 13 01 00 00 00 00 00 F5 [10:20:16]Write i2c OK [10:20:16]MH_I2C_Read... [10:20:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:16]Read from MH i2c: E2 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: E2 0E 00 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: E2 0E 00 61 17 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 CC [10:20:16]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:20:16]wFMCommunicate OK [10:20:16]SAM_PROTO_GetShiftState done [10:20:16]FM_GetShiftState done [10:20:16]opened in 1722125364 [10:20:16]opened+sec_in_day 1722211764 [10:20:16]quantity*price = 40002 [10:20:16]sum+1 = 40003 [10:20:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 97 28.07.2024 10:20 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118428 ФПД: 209130618734144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T102018&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118428&fm=209130618734144&tin=02508201610067®Number=0000000000092660&sum=40000 [10:20:17]StoreToDocumentArchive [10:20:17]shift 433 fd 118428 [10:20:17]save to /storage/0433/doc_00118428 [10:20:17]save last doc name /storage/0433/doc_00118428 to /storage/kkm_last_doc_name [10:20:17]save OK [10:20:17]Clear old archive folders... [10:20:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:20:17]tlvbuf is 00110020 [10:20:17]SAM_PROTO_ClearQueue [10:20:17]wFMCommunicate request_size=4 [10:20:17]MH_SAM_APDU [10:20:17]CAPDU: 80 09 00 00 [10:20:17]Write to MH i2c: E2 08 00 6E 17 80 09 00 00 00 00 00 00 F7 [10:20:17]Write i2c OK [10:20:17]MH_I2C_Read... [10:20:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:17]Read from MH i2c: E2 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: E2 03 00 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: E2 03 00 6E 17 00 90 00 F9 [10:20:17]RAPDU: 90 00 [10:20:17]wFMCommunicate OK [10:20:17]SAM_PROTO_ClearQueue done [10:20:17]KKMCreateOFDPacket [10:20:17]OFDProtocolAddRootSTLVToBuf [10:20:17]FM_MakeSignedData [10:20:17]FM_MakeSignedData [10:20:17]SAM_PROTO_SignData [10:20:17]wFMCommunicate request_size=4 [10:20:17]MH_SAM_APDU [10:20:17]CAPDU: 80 0D 01 02 [10:20:17]Write to MH i2c: E2 08 00 6F 17 80 0D 01 02 00 00 00 00 FF [10:20:17]Write i2c OK [10:20:17]MH_I2C_Read... [10:20:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:17]Read from MH i2c: E2 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: E2 03 00 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: E2 03 00 6F 17 00 90 00 FA [10:20:17]RAPDU: 90 00 [10:20:17]wFMCommunicate OK [10:20:17]wFMCommunicate request_size=255 [10:20:17]MH_SAM_APDU [10:20: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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 61 00 00 00 F4 03 04 00 62 1B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9C CE 01 00 35 04 06 00 BE [10:20:17]Write to MH i2c: E2 02 01 70 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 61 00 00 00 F4 03 04 00 62 1B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9C CE 01 00 35 04 06 00 BE 00 00 2D [10:20:17]Write i2c OK [10:20:17]MH_I2C_Read... [10:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:17]Read from MH i2c: E2 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: E2 03 00 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: E2 03 00 70 17 00 90 00 FB [10:20:17]RAPDU: 90 00 [10:20:17]wFMCommunicate OK [10:20:17]wFMCommunicate request_size=10 [10:20:17]MH_SAM_APDU [10:20:17]CAPDU: 80 0D 02 02 05 34 04 3D C6 40 [10:20:17]Write to MH i2c: E2 0D 00 71 17 80 0D 02 02 05 00 34 04 3D C6 40 00 00 87 [10:20:17]Write i2c OK [10:20:17]MH_I2C_Read... [10:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:17]Read from MH i2c: E2 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: E2 03 00 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: E2 03 00 71 17 00 90 00 FC [10:20:17]RAPDU: 90 00 [10:20:17]wFMCommunicate OK [10:20:17]wFMCommunicate request_size=4 [10:20:17]MH_SAM_APDU [10:20:17]CAPDU: 80 0D 03 02 [10:20:17]Write to MH i2c: E2 08 00 72 17 80 0D 03 02 00 00 00 00 04 [10:20:17]Write i2c OK [10:20:17]MH_I2C_Read... [10:20:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:17]Read from MH i2c: E2 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: E2 0B 00 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: E2 0B 00 72 17 00 7B 87 7E 19 94 6D 68 1A 90 00 21 [10:20:17]RAPDU: 7B 87 7E 19 94 6D 68 1A 90 00 [10:20:17]wFMCommunicate OK [10:20:17]SAM_PROTO_SignData done [10:20:17]FM_MakeSignedData done [10:20:17]CreateOFDProtocolMessage [10:20:17]wFMCommunicate request_size=4 [10:20:17]MH_SAM_APDU [10:20:17]CAPDU: 80 11 00 00 [10:20:17]Write to MH i2c: E2 08 00 73 17 80 11 00 00 00 00 00 00 04 [10:20:17]Write i2c OK [10:20:17]MH_I2C_Read... [10:20:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:18]Read from MH i2c: E2 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: E2 17 00 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: E2 17 00 73 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5F [10:20:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:20:18]wFMCommunicate OK [10:20:18]CreateOFDProtocolMessage done [10:20:18]OFDSenderStorePacket 118428 [10:20:18]StoreOFDPacket docnum=118428 [10:20:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 78 4F 07 01 C1 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 61 00 00 00 F4 03 04 00 62 1B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9C CE 01 00 35 04 06 00 BE 34 04 3D C6 40 7B 87 7E 19 94 6D 68 1A [10:20:18]CheckFolder [10:20:18]dirname=/storage/ofd_packets [10:20:18]CheckFolder done [10:20:18]ProducePacketName [10:20:18]name=ofd_packets/00118428 [10:20:18]NVStorageSaveData ofd_packets/00118428 [10:20:18]File name is /storage/ofd_packets/00118428 [10:20:18]Write 301 bytes [10:20:18]NVStorageSaveData done [10:20:18]OFDSenderStorePacket done [10:20:18]KKMCreateOFDPacket done [10:20:18]NVStorageSaveData kkm_last_timestamp [10:20:18]File name is /storage/kkm_last_timestamp [10:20:18]Write 4 bytes [10:20:18]NVStorageSaveData done [10:20:18]ExternCall_PrintAddStr [10:20:18]wPrintStart [10:20:18]Write to MH i2c: 01 00 00 74 17 8B [10:20:18]Write i2c OK [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: 01 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: 01 07 00 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: 01 07 00 74 17 00 00 00 00 00 FF 0F A0 [10:20:18]RasterBufferAndPrint [10:20:18]line Счет N : (1)949301 [10:20:18]line ИНН: 02508201610067 [10:20:18]line Контрольно-Кассовый Чек [10:20:18]line ПРОДАЖА [10:20:18]line ТРК (МРК, ГНК) : 61 [10:20:18]line Товар: 2710124130 [10:20:18]line Аи-92-К-4 [10:20:18]line 5.900 * 67.80 [10:20:18]line = 400.02 [10:20:18]line НДС 12% НСП 1% [10:20:18]line > о реализуемом товаре [10:20:18]line ОКРУГЛЕНИЕ: -0.02 [10:20:18]line ИТОГО: 400.00 [10:20:18]line Внесено: 400.00 [10:20:18]line СДАЧА: 0.00 [10:20:18]line НСП 1% : 3.54 [10:20:18]line НДС 12% : 42.48 [10:20:18]line Наличными: 400.00 [10:20:18]line Безнал.: 0.00 [10:20:18]line Место: АЗС № 134 "Партнер Нефть" [10:20:18]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:20:18]line СНО: Общий режим [10:20:18]line Чек 97 28.07.2024 10:20 [10:20:18]line Смена: 433 ФФД: 1.0 [10:20:18]line ЗНМ: 0300000044 [10:20:18]line РНМ: 0000000000092660 [10:20:18]line Версия ККМ: 001 [10:20:18]line ФМ: 0000000000874939 [10:20:18]line ФД: 118428 [10:20:18]line ФПД: 209130618734144 [10:20:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T102018&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118428&fm=209130618734144&tin=02508201610067®Number=0000000000092660&sum=40000 [10:20:18]OFD Sender: Processing packet 118428 [packets to send 86, broken 85] [10:20:18]ProducePacketName [10:20:18]name=ofd_packets/00118428 [10:20:18]OFD Sender: To server: pG, [10:20:18]CommunicateWithHost lk.salyk.kg:30040 [10:20:18]ConnectInit lk.salyk.kg [10:20:18]written 0, free lines is 4095 [10:20:18]Connected sock=10 [10:20:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 78 4F 07 01 C1 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 61 00 00 00 F4 03 04 00 62 1B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9C CE 01 00 35 04 06 00 BE 34 04 3D C6 40 7B 87 7E 19 94 6D 68 1A [10:20:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 8D 79 47 00 96 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 39 33 39 10 04 04 00 9C CE 01 00 F4 03 04 00 F3 C8 A5 66 B6 04 01 00 00 12 3D 3D D1 E3 0E 80 F7 [10:20:18]CommunicateWithHost err = 0 [10:20:18]CheckOFDResponse [10:20:18]1017 (14) - 77093643461234 [10:20:18]1041 (16) - 0000000000874939 [10:20:18]1040 (4) - 118428 [10:20:18]1012 (4) - 28.07.2024 04:28 [10:20:18]1206 (1) - 0 [10:20:18]OFD Sender: Remove packet 118428 [10:20:18]ProducePacketName [10:20:18]name=ofd_packets/00118428 [10:20:18]NVStorageDeleteData [10:20:18]Write to MH i2c: 01 00 00 9E 17 B5 [10:20:18]Write i2c OK [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: 01 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: 01 07 00 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: 01 07 00 9E 17 00 00 00 00 00 E4 0C AC [10:20:18]RasterBufferAndPrint [10:20:18]line [10:20:18]line [10:20:18]line [10:20:18]line [10:20:18]line [10:20:18]written 0, free lines is 3306 [10:20:18]MH_Cut [10:20:18]Write to MH i2c: D1 01 00 A5 17 01 8E [10:20:18]Write i2c OK [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: D1 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: D1 01 00 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: D1 01 00 A5 17 00 8D [10:20:18]Write to MH i2c: 01 00 00 A6 17 BD [10:20:18]Write i2c OK [10:20:18]MH_I2C_Read... [10:20:19]OFD Sender: No OFD packet to send [10:20:19]*** Cut start [10:20:19]*** Partial cut [10:20:19]*** CUTSNS_PIN = 1 [10:20:19]*** CUTSNS_PIN = 0 [10:20:19]*** Brake cut motor [10:20:20]Read from MH i2c: 01 [10:20:20]MH_I2C_Read... [10:20:20]*** Stop cut motor [10:20:20]*** Cut end [10:20:20]Read from MH i2c: 01 07 00 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: 01 07 00 A6 17 00 00 00 00 00 FF 0F D2 [10:20:20]process_action close_receipt done [10:20:20]requested_data is exist [10:20:20]produce_requested_data [10:20:20]requested_item fm.sn is exist - process it [10:20:20]wFMCommunicate request_size=4 [10:20:20]MH_SAM_APDU [10:20:20]CAPDU: 80 11 00 00 [10:20:20]Write to MH i2c: E2 08 00 A7 17 80 11 00 00 00 00 00 00 38 [10:20:20]Write i2c OK [10:20:20]MH_I2C_Read... [10:20:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:20]Read from MH i2c: E2 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 17 00 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 17 00 A7 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 93 [10:20:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:20:20]wFMCommunicate OK [10:20:20]requested_item fd.num is exist - process it [10:20:20]SAM_PROTO_GetFieldsCounters [10:20:20]wFMCommunicate request_size=4 [10:20:20]MH_SAM_APDU [10:20:20]CAPDU: 80 13 00 00 [10:20:20]Write to MH i2c: E2 08 00 A8 17 80 13 00 00 00 00 00 00 3B [10:20:20]Write i2c OK [10:20:20]MH_I2C_Read... [10:20:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:20]Read from MH i2c: E2 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 62 00 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 62 00 A8 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9C CE 01 00 0E 04 04 00 B1 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 A2 [10:20:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9C CE 01 00 0E 04 04 00 B1 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 [10:20:20]wFMCommunicate OK [10:20:20]SAM_PROTO_GetFieldsCounters done [10:20:20]requested_item shift.num is exist - process it [10:20:20]requested_item shift.opened is exist - process it [10:20:20]req_shift_opened [10:20:20]FM_GetShiftState [10:20:20]SAM_PROTO_GetShiftState [10:20:20]wFMCommunicate request_size=4 [10:20:20]MH_SAM_APDU [10:20:20]CAPDU: 80 13 01 00 [10:20:20]Write to MH i2c: E2 08 00 A9 17 80 13 01 00 00 00 00 00 3D [10:20:20]Write i2c OK [10:20:20]MH_I2C_Read... [10:20:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:20]Read from MH i2c: E2 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 0E 00 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 0E 00 A9 17 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 14 [10:20:20]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:20:20]wFMCommunicate OK [10:20:20]SAM_PROTO_GetShiftState done [10:20:20]FM_GetShiftState done [10:20:20]req_shift_opened done [10:20:20]requested_item shift.open_date is exist - process it [10:20:20]req_shift_open_date [10:20:20]req_shift_open_date done [10:20:20]produce_requested_data done [10:20:20]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118428,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [10:20:20]process_action_free close_receipt [10:20:20]json_value_free [10:20:20]json_value_free done [10:20:20]process_json_proto returns [10:20:20]Send response to host [10:20:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118428,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [10:20:20]free response buf [10:20:20]execute_script done [10:20:20]execute_script returns [10:20:20]free content buf [10:20:20]Sock 7.Close socket [10:20:20]Sock 7.Thread stoped [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:14]OFD Sender: No OFD packet to send [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:34]OFD Sender: No OFD packet to send [10:23:39]OFD Sender: No OFD packet to send [10:23:44]OFD Sender: No OFD packet to send [10:23:49]OFD Sender: No OFD packet to send [10:23:54]OFD Sender: No OFD packet to send [10:23:59]OFD Sender: No OFD packet to send [10:24:04]OFD Sender: No OFD packet to send [10:24:09]OFD Sender: No OFD packet to send [10:24:14]OFD Sender: No OFD packet to send [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:22]accept exits with 9 [10:27:22]New connection [10:27:22]New thread 3067067748 created [10:27:22] Sock 9.Parse request [10:27:22]Thread 3066924388 joined [10:27:22]Sock 9.Check first char [10:27:22]Waiting for new connection... [10:27:22]Sock 9.First char is OK [10:27:22]request: POST /json_proto HTTP/1.0 [10:27:22]Method: POST [10:27:22]URL: /json_proto [10:27:22]Method is POST - this is cgi request [10:27:22]url: /json_proto [10:27:22]query_string will be loaded in cgi processing [10:27:22]execute_cgi json_proto POST (null) [10:27:22]execute_cgi path=json_proto method=POST [10:27:22]POST find Content-Length [10:27:22]Host: 172.17.45.7:8080 [10:27:22]Content-Length: 677 [10:27:22]Content-Type: application/json [10:27:22] [10:27:22]POST finish read [10:27:22]Found Content-Length = 677 [10:27:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:22]execute_script... [10: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)949303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:22]POST & json_proto [10:27:22]process_json_proto [10:27:22]json parsed OK: [10:27:22]protocol is kg_v1.0 [10:27:22]action value=close_receipt [10:27:22]process_action close_receipt [10:27:22]cmd_close_receipt [10:27:22]MH_GetDate [10:27:22]Write to MH i2c: F0 00 00 AA 17 B0 [10:27:22]Write i2c OK [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: F0 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: F0 09 00 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: F0 09 00 AA 17 00 0C 1D A6 66 90 0F 3E 66 31 [10:27:22]GetLastDocTimeStamp 1722162018 [10:27:22]current date 1722162444 [10:27:22]FM_GetShiftState [10:27:22]SAM_PROTO_GetShiftState [10:27:22]wFMCommunicate request_size=4 [10:27:22]MH_SAM_APDU [10:27:22]CAPDU: 80 13 01 00 [10:27:22]Write to MH i2c: E2 08 00 AB 17 80 13 01 00 00 00 00 00 3F [10:27:22]Write i2c OK [10:27:22]MH_I2C_Read... [10:27:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:22]Read from MH i2c: E2 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: E2 0E 00 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: E2 0E 00 AB 17 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 16 [10:27:22]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:27:22]wFMCommunicate OK [10:27:22]SAM_PROTO_GetShiftState done [10:27:22]FM_GetShiftState done [10:27:22]opened in 1722125364 [10:27:22]opened+sec_in_day 1722211764 [10:27:22]quantity*price = 50036 [10:27:22]sum+1 = 50037 [10:27:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 98 28.07.2024 10:27 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118429 ФПД: 193676103191717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T102724&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118429&fm=193676103191717&tin=02508201610067®Number=0000000000092660&sum=50000 [10:27:23]StoreToDocumentArchive [10:27:23]shift 433 fd 118429 [10:27:23]save to /storage/0433/doc_00118429 [10:27:23]save last doc name /storage/0433/doc_00118429 to /storage/kkm_last_doc_name [10:27:23]save OK [10:27:23]Clear old archive folders... [10:27:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:23]tlvbuf is 00153A70 [10:27:23]SAM_PROTO_ClearQueue [10:27:23]wFMCommunicate request_size=4 [10:27:23]MH_SAM_APDU [10:27:23]CAPDU: 80 09 00 00 [10:27:23]Write to MH i2c: E2 08 00 B8 17 80 09 00 00 00 00 00 00 41 [10:27:23]Write i2c OK [10:27:23]MH_I2C_Read... [10:27:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:23]Read from MH i2c: E2 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 03 00 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 03 00 B8 17 00 90 00 43 [10:27:23]RAPDU: 90 00 [10:27:23]wFMCommunicate OK [10:27:23]SAM_PROTO_ClearQueue done [10:27:23]KKMCreateOFDPacket [10:27:23]OFDProtocolAddRootSTLVToBuf [10:27:23]FM_MakeSignedData [10:27:23]FM_MakeSignedData [10:27:23]SAM_PROTO_SignData [10:27:23]wFMCommunicate request_size=4 [10:27:23]MH_SAM_APDU [10:27:23]CAPDU: 80 0D 01 02 [10:27:23]Write to MH i2c: E2 08 00 B9 17 80 0D 01 02 00 00 00 00 49 [10:27:23]Write i2c OK [10:27:23]MH_I2C_Read... [10:27:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:23]Read from MH i2c: E2 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 03 00 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 03 00 B9 17 00 90 00 44 [10:27:23]RAPDU: 90 00 [10:27:23]wFMCommunicate OK [10:27:23]wFMCommunicate request_size=255 [10:27:23]MH_SAM_APDU [10:27:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 0C 1D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9D CE 01 00 35 04 06 00 B0 [10:27:23]Write to MH i2c: E2 02 01 BA 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 0C 1D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9D CE 01 00 35 04 06 00 B0 00 00 32 [10:27:23]Write i2c OK [10:27:23]MH_I2C_Read... [10:27:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:23]Read from MH i2c: E2 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 03 00 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 03 00 BA 17 00 90 00 45 [10:27:23]RAPDU: 90 00 [10:27:23]wFMCommunicate OK [10:27:23]wFMCommunicate request_size=10 [10:27:23]MH_SAM_APDU [10:27:23]CAPDU: 80 0D 02 02 05 25 BB 55 0C A5 [10:27:23]Write to MH i2c: E2 0D 00 BB 17 80 0D 02 02 05 00 25 BB 55 0C A5 00 00 3C [10:27:23]Write i2c OK [10:27:23]MH_I2C_Read... [10:27:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:23]Read from MH i2c: E2 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 03 00 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 03 00 BB 17 00 90 00 46 [10:27:23]RAPDU: 90 00 [10:27:23]wFMCommunicate OK [10:27:23]wFMCommunicate request_size=4 [10:27:23]MH_SAM_APDU [10:27:23]CAPDU: 80 0D 03 02 [10:27:23]Write to MH i2c: E2 08 00 BC 17 80 0D 03 02 00 00 00 00 4E [10:27:23]Write i2c OK [10:27:23]MH_I2C_Read... [10:27:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:23]Read from MH i2c: E2 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 0B 00 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 0B 00 BC 17 00 D0 A9 49 1D F4 BA 3D 9A 90 00 B3 [10:27:23]RAPDU: D0 A9 49 1D F4 BA 3D 9A 90 00 [10:27:23]wFMCommunicate OK [10:27:23]SAM_PROTO_SignData done [10:27:23]FM_MakeSignedData done [10:27:23]CreateOFDProtocolMessage [10:27:23]wFMCommunicate request_size=4 [10:27:23]MH_SAM_APDU [10:27:23]CAPDU: 80 11 00 00 [10:27:23]Write to MH i2c: E2 08 00 BD 17 80 11 00 00 00 00 00 00 4E [10:27:23]Write i2c OK [10:27:23]MH_I2C_Read... [10:27:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:23]Read from MH i2c: E2 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 17 00 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 17 00 BD 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A9 [10:27:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:27:23]wFMCommunicate OK [10:27:23]CreateOFDProtocolMessage done [10:27:23]OFDSenderStorePacket 118429 [10:27:23]StoreOFDPacket docnum=118429 [10:27:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 23 A0 07 01 C1 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 0C 1D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9D CE 01 00 35 04 06 00 B0 25 BB 55 0C A5 D0 A9 49 1D F4 BA 3D 9A [10:27:23]CheckFolder [10:27:23]dirname=/storage/ofd_packets [10:27:23]CheckFolder done [10:27:23]ProducePacketName [10:27:23]name=ofd_packets/00118429 [10:27:23]NVStorageSaveData ofd_packets/00118429 [10:27:23]File name is /storage/ofd_packets/00118429 [10:27:23]Write 301 bytes [10:27:23]NVStorageSaveData done [10:27:23]OFDSenderStorePacket done [10:27:23]KKMCreateOFDPacket done [10:27:23]NVStorageSaveData kkm_last_timestamp [10:27:23]File name is /storage/kkm_last_timestamp [10:27:23]Write 4 bytes [10:27:23]NVStorageSaveData done [10:27:23]ExternCall_PrintAddStr [10:27:23]wPrintStart [10:27:23]Write to MH i2c: 01 00 00 BE 17 D5 [10:27:23]Write i2c OK [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: 01 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: 01 07 00 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: 01 07 00 BE 17 00 00 00 00 00 FF 0F EA [10:27:23]RasterBufferAndPrint [10:27:23]line Счет N : (1)949303 [10:27:23]line ИНН: 02508201610067 [10:27:23]line Контрольно-Кассовый Чек [10:27:23]line ПРОДАЖА [10:27:23]line ТРК (МРК, ГНК) : 61 [10:27:23]line Товар: 2710124130 [10:27:23]line Аи-92-К-4 [10:27:23]line 7.380 * 67.80 [10:27:23]line = 500.36 [10:27:23]line НДС 12% НСП 1% [10:27:23]line > о реализуемом товаре [10:27:23]line ОКРУГЛЕНИЕ: -0.36 [10:27:23]line ИТОГО: 500.00 [10:27:23]line Внесено: 500.00 [10:27:23]line СДАЧА: 0.00 [10:27:23]line НСП 1% : 4.43 [10:27:23]line НДС 12% : 53.14 [10:27:23]line Наличными: 500.00 [10:27:23]line Безнал.: 0.00 [10:27:23]line Место: АЗС № 134 "Партнер Нефть" [10:27:23]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:27:23]line СНО: Общий режим [10:27:23]line Чек 98 28.07.2024 10:27 [10:27:23]line Смена: 433 ФФД: 1.0 [10:27:23]line ЗНМ: 0300000044 [10:27:23]line РНМ: 0000000000092660 [10:27:23]line Версия ККМ: 001 [10:27:23]line ФМ: 0000000000874939 [10:27:23]line ФД: 118429 [10:27:23]line ФПД: 193676103191717 [10:27:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T102724&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118429&fm=193676103191717&tin=02508201610067®Number=0000000000092660&sum=50000 [10:27:24]OFD Sender: Processing packet 118429 [packets to send 86, broken 85] [10:27:24]ProducePacketName [10:27:24]name=ofd_packets/00118429 [10:27:24]OFD Sender: To server: pG, [10:27:24]CommunicateWithHost lk.salyk.kg:30040 [10:27:24]ConnectInit lk.salyk.kg [10:27:24]written 0, free lines is 4095 [10:27:24]Connected sock=10 [10: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 39 33 39 0F 01 00 00 23 A0 07 01 C1 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 0C 1D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9D CE 01 00 35 04 06 00 B0 25 BB 55 0C A5 D0 A9 49 1D F4 BA 3D 9A [10: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 39 33 39 4F 00 00 00 B1 31 47 00 9D 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9D CE 01 00 F4 03 04 00 9C CA A5 66 B6 04 01 00 00 78 FC E8 17 4A 02 BA 99 [10:27:24]CommunicateWithHost err = 0 [10:27:24]CheckOFDResponse [10:27:24]1017 (14) - 77093643461234 [10:27:24]1041 (16) - 0000000000874939 [10:27:24]1040 (4) - 118429 [10:27:24]1012 (4) - 28.07.2024 04:35 [10:27:24]1206 (1) - 0 [10:27:24]OFD Sender: Remove packet 118429 [10:27:24]ProducePacketName [10:27:24]name=ofd_packets/00118429 [10:27:24]NVStorageDeleteData [10:27:24]Write to MH i2c: 01 00 00 E8 17 FF [10:27:24]Write i2c OK [10:27:24]MH_I2C_Read... [10:27:24]Read from MH i2c: 01 [10:27:24]MH_I2C_Read... [10:27:24]Read from MH i2c: 01 07 00 [10:27:24]MH_I2C_Read... [10:27:24]Read from MH i2c: 01 07 00 E8 17 00 00 00 00 00 D6 0C E8 [10:27:24]RasterBufferAndPrint [10:27:24]line [10:27:24]line [10:27:24]line [10:27:24]line [10:27:24]line [10:27:24]written 0, free lines is 3293 [10:27:24]MH_Cut [10:27:24]Write to MH i2c: D1 01 00 EF 17 01 D8 [10:27:24]Write i2c OK [10:27:24]MH_I2C_Read... [10:27:24]Read from MH i2c: D1 [10:27:24]MH_I2C_Read... [10:27:24]Read from MH i2c: D1 01 00 [10:27:24]MH_I2C_Read... [10:27:24]Read from MH i2c: D1 01 00 EF 17 00 D7 [10:27:24]Write to MH i2c: 01 00 00 F0 17 07 [10:27:24]Write i2c OK [10:27:24]MH_I2C_Read... [10:27:25]OFD Sender: No OFD packet to send [10:27:25]*** Cut start [10:27:25]*** Partial cut [10:27:25]*** CUTSNS_PIN = 1 [10:27:25]*** CUTSNS_PIN = 0 [10:27:25]*** Brake cut motor [10:27:25]Read from MH i2c: 01 [10:27:25]MH_I2C_Read... [10:27:25]*** Stop cut motor [10:27:25]*** Cut end [10:27:25]Read from MH i2c: 01 07 00 [10:27:25]MH_I2C_Read... [10:27:25]Read from MH i2c: 01 07 00 F0 17 00 00 00 00 00 FF 0F 1C [10:27:25]process_action close_receipt done [10:27:25]requested_data is exist [10:27:25]produce_requested_data [10:27:25]requested_item fm.sn is exist - process it [10:27:25]wFMCommunicate request_size=4 [10:27:25]MH_SAM_APDU [10:27:25]CAPDU: 80 11 00 00 [10:27:25]Write to MH i2c: E2 08 00 F1 17 80 11 00 00 00 00 00 00 82 [10:27:25]Write i2c OK [10:27:25]MH_I2C_Read... [10:27:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:26]Read from MH i2c: E2 [10:27:26]MH_I2C_Read... [10:27:26]Read from MH i2c: E2 17 00 [10:27:26]MH_I2C_Read... [10:27:26]Read from MH i2c: E2 17 00 F1 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DD [10:27:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:27:26]wFMCommunicate OK [10:27:26]requested_item fd.num is exist - process it [10:27:26]SAM_PROTO_GetFieldsCounters [10:27:26]wFMCommunicate request_size=4 [10:27:26]MH_SAM_APDU [10:27:26]CAPDU: 80 13 00 00 [10:27:26]Write to MH i2c: E2 08 00 F2 17 80 13 00 00 00 00 00 00 85 [10:27:26]Write i2c OK [10:27:26]MH_I2C_Read... [10:27:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:26]Read from MH i2c: E2 [10:27:26]MH_I2C_Read... [10:27:26]Read from MH i2c: E2 62 00 [10:27:26]MH_I2C_Read... [10:27:26]Read from MH i2c: E2 62 00 F2 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9D CE 01 00 0E 04 04 00 B1 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 F0 [10:27:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9D CE 01 00 0E 04 04 00 B1 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 [10:27:26]wFMCommunicate OK [10:27:26]SAM_PROTO_GetFieldsCounters done [10:27:26]requested_item shift.num is exist - process it [10:27:26]requested_item shift.opened is exist - process it [10:27:26]req_shift_opened [10:27:26]FM_GetShiftState [10:27:26]SAM_PROTO_GetShiftState [10:27:26]wFMCommunicate request_size=4 [10:27:26]MH_SAM_APDU [10:27:26]CAPDU: 80 13 01 00 [10:27:26]Write to MH i2c: E2 08 00 F3 17 80 13 01 00 00 00 00 00 87 [10:27:26]Write i2c OK [10:27:26]MH_I2C_Read... [10:27:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:26]Read from MH i2c: E2 [10:27:26]MH_I2C_Read... [10:27:26]Read from MH i2c: E2 0E 00 [10:27:26]MH_I2C_Read... [10:27:26]Read from MH i2c: E2 0E 00 F3 17 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 5E [10:27:26]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:27:26]wFMCommunicate OK [10:27:26]SAM_PROTO_GetShiftState done [10:27:26]FM_GetShiftState done [10:27:26]req_shift_opened done [10:27:26]requested_item shift.open_date is exist - process it [10:27:26]req_shift_open_date [10:27:26]req_shift_open_date done [10:27:26]produce_requested_data done [10:27:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118429,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [10:27:26]process_action_free close_receipt [10:27:26]json_value_free [10:27:26]json_value_free done [10:27:26]process_json_proto returns [10:27:26]Send response to host [10:27:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118429,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [10:27:26]free response buf [10:27:26]execute_script done [10:27:26]execute_script returns [10:27:26]free content buf [10:27:26]Sock 9.Close socket [10:27:26]Sock 9.Thread stoped [10:27:30]OFD Sender: No OFD packet to send [10:27:35]OFD Sender: No OFD packet to send [10:27:38]accept exits with 7 [10:27:38]New connection [10:27:38]New thread 3066924388 created [10:27:38]Thread 3067067748 joined [10:27:38]Waiting for new connection... [10:27:38] Sock 7.Parse request [10:27:38]Sock 7.Check first char [10:27:38]Sock 7.First char is OK [10:27:38]request: POST /json_proto HTTP/1.0 [10:27:38]Method: POST [10:27:38]URL: /json_proto [10:27:38]Method is POST - this is cgi request [10:27:38]url: /json_proto [10:27:38]query_string will be loaded in cgi processing [10:27:38]execute_cgi json_proto POST (null) [10:27:38]execute_cgi path=json_proto method=POST [10:27:38]POST find Content-Length [10:27:38]Host: 172.17.45.7:8080 [10:27:38]Content-Length: 822 [10:27:38]Content-Type: application/json [10:27:38] [10:27:38]POST finish read [10:27:38]Found Content-Length = 822 [10:27:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:38]execute_script... [10:27: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)949302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:38]POST & json_proto [10:27:38]process_json_proto [10:27:38]json parsed OK: [10:27:38]protocol is kg_v1.0 [10:27:38]action value=close_receipt [10:27:38]process_action close_receipt [10:27:38]cmd_close_receipt [10:27:38]MH_GetDate [10:27:38]Write to MH i2c: F0 00 00 F4 17 FA [10:27:38]Write i2c OK [10:27:38]MH_I2C_Read... [10:27:38]Read from MH i2c: F0 [10:27:38]MH_I2C_Read... [10:27:38]Read from MH i2c: F0 09 00 [10:27:38]MH_I2C_Read... [10:27:38]Read from MH i2c: F0 09 00 F4 17 00 1C 1D A6 66 90 0F 3E 66 8B [10:27:38]GetLastDocTimeStamp 1722162444 [10:27:38]current date 1722162460 [10:27:38]FM_GetShiftState [10:27:38]SAM_PROTO_GetShiftState [10:27:38]wFMCommunicate request_size=4 [10:27:38]MH_SAM_APDU [10:27:38]CAPDU: 80 13 01 00 [10:27:38]Write to MH i2c: E2 08 00 F5 17 80 13 01 00 00 00 00 00 89 [10:27:38]Write i2c OK [10:27:38]MH_I2C_Read... [10:27:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:38]Read from MH i2c: E2 [10:27:38]MH_I2C_Read... [10:27:38]Read from MH i2c: E2 0E 00 [10:27:38]MH_I2C_Read... [10:27:38]Read from MH i2c: E2 0E 00 F5 17 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 60 [10:27:38]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:27:38]wFMCommunicate OK [10:27:38]SAM_PROTO_GetShiftState done [10:27:38]FM_GetShiftState done [10:27:38]opened in 1722125364 [10:27:38]opened+sec_in_day 1722211764 [10:27:38]quantity*price = 150032 [10:27:38]sum+1 = 150033 [10:27:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 99 28.07.2024 10:27 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118430 ФПД: 233810293944794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T102740&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118430&fm=233810293944794&tin=02508201610067®Number=0000000000092660&sum=150000 [10:27:39]StoreToDocumentArchive [10:27:39]shift 433 fd 118430 [10:27:39]save to /storage/0433/doc_00118430 [10:27:39]save last doc name /storage/0433/doc_00118430 to /storage/kkm_last_doc_name [10:27:39]save OK [10:27:39]Clear old archive folders... [10:27:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:39]tlvbuf is 0013D260 [10:27:39]SAM_PROTO_ClearQueue [10:27:39]wFMCommunicate request_size=4 [10:27:39]MH_SAM_APDU [10:27:39]CAPDU: 80 09 00 00 [10:27:39]Write to MH i2c: E2 08 00 02 18 80 09 00 00 00 00 00 00 8C [10:27:39]Write i2c OK [10:27:39]MH_I2C_Read... [10:27:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:39]Read from MH i2c: E2 [10:27:39]MH_I2C_Read... [10:27:39]Read from MH i2c: E2 03 00 [10:27:39]MH_I2C_Read... [10:27:39]Read from MH i2c: E2 03 00 02 18 00 90 00 8E [10:27:39]RAPDU: 90 00 [10:27:39]wFMCommunicate OK [10:27:39]SAM_PROTO_ClearQueue done [10:27:39]KKMCreateOFDPacket [10:27:39]OFDProtocolAddRootSTLVToBuf [10:27:39]FM_MakeSignedData [10:27:39]FM_MakeSignedData [10:27:39]SAM_PROTO_SignData [10:27:39]wFMCommunicate request_size=4 [10:27:39]MH_SAM_APDU [10:27:39]CAPDU: 80 0D 01 02 [10:27:39]Write to MH i2c: E2 08 00 03 18 80 0D 01 02 00 00 00 00 94 [10:27:39]Write i2c OK [10:27:39]MH_I2C_Read... [10:27:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:39]Read from MH i2c: E2 [10:27:39]MH_I2C_Read... [10:27:39]Read from MH i2c: E2 03 00 [10:27:39]MH_I2C_Read... [10:27:39]Read from MH i2c: E2 03 00 03 18 00 90 00 8F [10:27:39]RAPDU: 90 00 [10:27:39]wFMCommunicate OK [10:27:39]wFMCommunicate request_size=255 [10:27:39]MH_SAM_APDU [10:27:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 1C 1D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9E CE 01 00 35 04 06 00 D4 [10:27:39]Write to MH i2c: E2 02 01 04 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 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 1C 1D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9E CE 01 00 35 04 06 00 D4 00 00 25 [10:27:39]Write i2c OK [10:27:39]MH_I2C_Read... [10:27:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:39]Read from MH i2c: E2 [10:27:39]MH_I2C_Read... [10:27:39]Read from MH i2c: E2 03 00 [10:27:39]MH_I2C_Read... [10:27:39]Read from MH i2c: E2 03 00 04 18 00 90 00 90 [10:27:39]RAPDU: 90 00 [10:27:39]wFMCommunicate OK [10:27:39]wFMCommunicate request_size=10 [10:27:39]MH_SAM_APDU [10:27:39]CAPDU: 80 0D 02 02 05 A6 33 83 F1 DA [10:27:39]Write to MH i2c: E2 0D 00 05 18 80 0D 02 02 05 00 A6 33 83 F1 DA 00 00 C8 [10:27:39]Write i2c OK [10:27:39]MH_I2C_Read... [10:27:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:39]Read from MH i2c: E2 [10:27:39]MH_I2C_Read... [10:27:39]Read from MH i2c: E2 03 00 [10:27:39]MH_I2C_Read... [10:27:39]Read from MH i2c: E2 03 00 05 18 00 90 00 91 [10:27:39]RAPDU: 90 00 [10:27:39]wFMCommunicate OK [10:27:39]wFMCommunicate request_size=4 [10:27:39]MH_SAM_APDU [10:27:39]CAPDU: 80 0D 03 02 [10:27:39]Write to MH i2c: E2 08 00 06 18 80 0D 03 02 00 00 00 00 99 [10:27:39]Write i2c OK [10:27:39]MH_I2C_Read... [10:27:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:40]Read from MH i2c: E2 [10:27:40]MH_I2C_Read... [10:27:40]Read from MH i2c: E2 0B 00 [10:27:40]MH_I2C_Read... [10:27:40]Read from MH i2c: E2 0B 00 06 18 00 D4 B1 9E 0C 53 A3 EA 5C 90 00 05 [10:27:40]RAPDU: D4 B1 9E 0C 53 A3 EA 5C 90 00 [10:27:40]wFMCommunicate OK [10:27:40]SAM_PROTO_SignData done [10:27:40]FM_MakeSignedData done [10:27:40]CreateOFDProtocolMessage [10:27:40]wFMCommunicate request_size=4 [10:27:40]MH_SAM_APDU [10:27:40]CAPDU: 80 11 00 00 [10:27:40]Write to MH i2c: E2 08 00 07 18 80 11 00 00 00 00 00 00 99 [10:27:40]Write i2c OK [10:27:40]MH_I2C_Read... [10:27:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:40]Read from MH i2c: E2 [10:27:40]MH_I2C_Read... [10:27:40]Read from MH i2c: E2 17 00 [10:27:40]MH_I2C_Read... [10:27:40]Read from MH i2c: E2 17 00 07 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F4 [10:27:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:27:40]wFMCommunicate OK [10:27:40]CreateOFDProtocolMessage done [10:27:40]OFDSenderStorePacket 118430 [10:27:40]StoreOFDPacket docnum=118430 [10:27:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 EB 9D 07 01 72 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 1C 1D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9E CE 01 00 35 04 06 00 D4 A6 33 83 F1 DA D4 B1 9E 0C 53 A3 EA 5C [10:27:40]CheckFolder [10:27:40]dirname=/storage/ofd_packets [10:27:40]CheckFolder done [10:27:40]ProducePacketName [10:27:40]name=ofd_packets/00118430 [10:27:40]NVStorageSaveData ofd_packets/00118430 [10:27:40]File name is /storage/ofd_packets/00118430 [10:27:40]Write 301 bytes [10:27:40]NVStorageSaveData done [10:27:40]OFDSenderStorePacket done [10:27:40]KKMCreateOFDPacket done [10:27:40]NVStorageSaveData kkm_last_timestamp [10:27:40]File name is /storage/kkm_last_timestamp [10:27:40]Write 4 bytes [10:27:40]NVStorageSaveData done [10:27:40]ExternCall_PrintAddStr [10:27:40]wPrintStart [10:27:40]Write to MH i2c: 01 00 00 08 18 20 [10:27:40]Write i2c OK [10:27:40]MH_I2C_Read... [10:27:40]Read from MH i2c: 01 [10:27:40]MH_I2C_Read... [10:27:40]Read from MH i2c: 01 07 00 [10:27:40]MH_I2C_Read... [10:27:40]Read from MH i2c: 01 07 00 08 18 00 00 00 00 00 FF 0F 35 [10:27:40]RasterBufferAndPrint [10:27:40]line Счет N : (1)949302 [10:27:40]line ИНН: 02508201610067 [10:27:40]line Контрольно-Кассовый Чек [10:27:40]line ПРОДАЖА [10:27:40]line ТРК (МРК, ГНК) : 43 [10:27:40]line Товар: 2710124500 [10:27:40]line Аи-95-К-3 [10:27:40]line 20.220 * 74.20 [10:27:40]line = 1500.32 [10:27:40]line НДС 12% НСП 1% [10:27:40]line > о реализуемом товаре [10:27:40]line ОКРУГЛЕНИЕ: -0.32 [10:27:40]line ИТОГО: 1500.00 [10:27:40]line НСП 1% : 13.28 [10:27:40]line НДС 12% : 159.33 [10:27:40]line Наличными: 0.00 [10:27:40]line Безнал.: 1500.00 [10:27:40]line Место: АЗС № 134 "Партнер Нефть" [10:27:40]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:27:40]line СНО: Общий режим [10:27:40]line Чек 99 28.07.2024 10:27 [10:27:40]line Смена: 433 ФФД: 1.0 [10:27:40]line ЗНМ: 0300000044 [10:27:40]line РНМ: 0000000000092660 [10:27:40]line Версия ККМ: 001 [10:27:40]line Платежная система: O! деньги [10:27:40]line ФМ: 0000000000874939 [10:27:40]line ФД: 118430 [10:27:40]line ФПД: 233810293944794 [10:27:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T102740&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118430&fm=233810293944794&tin=02508201610067®Number=0000000000092660&sum=150000 [10:27:40]OFD Sender: Processing packet 118430 [packets to send 86, broken 85] [10:27:40]ProducePacketName [10:27:40]name=ofd_packets/00118430 [10:27:40]OFD Sender: To server: pG, [10:27:40]CommunicateWithHost lk.salyk.kg:30040 [10:27:40]ConnectInit lk.salyk.kg [10:27:40]written 0, free lines is 4095 [10:27:40]Connected sock=10 [10:27: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 39 33 39 0F 01 00 00 EB 9D 07 01 72 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 1C 1D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9E CE 01 00 35 04 06 00 D4 A6 33 83 F1 DA D4 B1 9E 0C 53 A3 EA 5C [10:27:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 76 4E 47 00 BB 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9E CE 01 00 F4 03 04 00 AC CA A5 66 B6 04 01 00 00 A9 8A 76 5C CD 8B 3C 0B [10:27:40]CommunicateWithHost err = 0 [10:27:40]CheckOFDResponse [10:27:40]1017 (14) - 77093643461234 [10:27:40]1041 (16) - 0000000000874939 [10:27:40]1040 (4) - 118430 [10:27:40]1012 (4) - 28.07.2024 04:35 [10:27:40]1206 (1) - 0 [10:27:40]OFD Sender: Remove packet 118430 [10:27:40]ProducePacketName [10:27:40]name=ofd_packets/00118430 [10:27:40]NVStorageDeleteData [10:27:40]Write to MH i2c: 01 00 00 32 18 4A [10:27:40]Write i2c OK [10:27:40]MH_I2C_Read... [10:27:40]Read from MH i2c: 01 [10:27:40]MH_I2C_Read... [10:27:40]Read from MH i2c: 01 07 00 [10:27:40]MH_I2C_Read... [10:27:40]Read from MH i2c: 01 07 00 32 18 00 00 00 00 00 ED 0C 4A [10:27:40]RasterBufferAndPrint [10:27:40]line [10:27:40]line [10:27:40]line [10:27:40]line [10:27:40]line [10:27:40]written 0, free lines is 3315 [10:27:40]MH_Cut [10:27:40]Write to MH i2c: D1 01 00 39 18 01 23 [10:27:40]Write i2c OK [10:27:40]MH_I2C_Read... [10:27:40]Read from MH i2c: D1 [10:27:40]MH_I2C_Read... [10:27:40]Read from MH i2c: D1 01 00 [10:27:40]MH_I2C_Read... [10:27:40]Read from MH i2c: D1 01 00 39 18 00 22 [10:27:40]Write to MH i2c: 01 00 00 3A 18 52 [10:27:40]Write i2c OK [10:27:40]MH_I2C_Read... [10:27:40]OFD Sender: No OFD packet to send [10:27:41]*** Cut start [10:27:41]*** Partial cut [10:27:41]*** CUTSNS_PIN = 1 [10:27:41]*** CUTSNS_PIN = 0 [10:27:41]*** Brake cut motor [10:27:41]Read from MH i2c: 01 [10:27:41]MH_I2C_Read... [10:27:41]*** Stop cut motor [10:27:41]*** Cut end [10:27:41]Read from MH i2c: 01 07 00 [10:27:41]MH_I2C_Read... [10:27:41]Read from MH i2c: 01 07 00 3A 18 00 00 00 00 00 FF 0F 67 [10:27:41]process_action close_receipt done [10:27:41]requested_data is exist [10:27:41]produce_requested_data [10:27:41]requested_item fm.sn is exist - process it [10:27:41]wFMCommunicate request_size=4 [10:27:41]MH_SAM_APDU [10:27:41]CAPDU: 80 11 00 00 [10:27:41]Write to MH i2c: E2 08 00 3B 18 80 11 00 00 00 00 00 00 CD [10:27:41]Write i2c OK [10:27:41]MH_I2C_Read... [10:27:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:41]Read from MH i2c: E2 [10:27:41]MH_I2C_Read... [10:27:41]Read from MH i2c: E2 17 00 [10:27:41]MH_I2C_Read... [10:27:41]Read from MH i2c: E2 17 00 3B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 28 [10:27:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:27:41]wFMCommunicate OK [10:27:41]requested_item fd.num is exist - process it [10:27:41]SAM_PROTO_GetFieldsCounters [10:27:41]wFMCommunicate request_size=4 [10:27:41]MH_SAM_APDU [10:27:41]CAPDU: 80 13 00 00 [10:27:41]Write to MH i2c: E2 08 00 3C 18 80 13 00 00 00 00 00 00 D0 [10:27:41]Write i2c OK [10:27:41]MH_I2C_Read... [10:27:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:42]Read from MH i2c: E2 [10:27:42]MH_I2C_Read... [10:27:42]Read from MH i2c: E2 62 00 [10:27:42]MH_I2C_Read... [10:27:42]Read from MH i2c: E2 62 00 3C 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9E CE 01 00 0E 04 04 00 B1 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 3F [10:27: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9E CE 01 00 0E 04 04 00 B1 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 [10:27:42]wFMCommunicate OK [10:27:42]SAM_PROTO_GetFieldsCounters done [10:27:42]requested_item shift.num is exist - process it [10:27:42]requested_item shift.opened is exist - process it [10:27:42]req_shift_opened [10:27:42]FM_GetShiftState [10:27:42]SAM_PROTO_GetShiftState [10:27:42]wFMCommunicate request_size=4 [10:27:42]MH_SAM_APDU [10:27:42]CAPDU: 80 13 01 00 [10:27:42]Write to MH i2c: E2 08 00 3D 18 80 13 01 00 00 00 00 00 D2 [10:27:42]Write i2c OK [10:27:42]MH_I2C_Read... [10:27:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:42]Read from MH i2c: E2 [10:27:42]MH_I2C_Read... [10:27:42]Read from MH i2c: E2 0E 00 [10:27:42]MH_I2C_Read... [10:27:42]Read from MH i2c: E2 0E 00 3D 18 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A9 [10:27:42]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:27:42]wFMCommunicate OK [10:27:42]SAM_PROTO_GetShiftState done [10:27:42]FM_GetShiftState done [10:27:42]req_shift_opened done [10:27:42]requested_item shift.open_date is exist - process it [10:27:42]req_shift_open_date [10:27:42]req_shift_open_date done [10:27:42]produce_requested_data done [10:27:42]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118430,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [10:27:42]process_action_free close_receipt [10:27:42]json_value_free [10:27:42]json_value_free done [10:27:42]process_json_proto returns [10:27:42]Send response to host [10:27:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118430,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [10:27:42]free response buf [10:27:42]execute_script done [10:27:42]execute_script returns [10:27:42]free content buf [10:27:42]Sock 7.Close socket [10:27:42]Sock 7.Thread stoped [10:27:45]OFD Sender: No OFD packet to send [10:27:50]OFD Sender: No OFD packet to send [10:27:55]OFD Sender: No OFD packet to send [10:28:00]OFD Sender: No OFD packet to send [10:28:05]OFD Sender: No OFD packet to send [10:28:10]OFD Sender: No OFD packet to send [10:28:15]OFD Sender: No OFD packet to send [10:28:20]OFD Sender: No OFD packet to send [10:28:25]OFD Sender: No OFD packet to send [10:28:30]OFD Sender: No OFD packet to send [10:28:35]OFD Sender: No OFD packet to send [10:28:40]OFD Sender: No OFD packet to send [10:28:45]OFD Sender: No OFD packet to send [10:28:50]OFD Sender: No OFD packet to send [10:28:55]OFD Sender: No OFD packet to send [10:29:00]OFD Sender: No OFD packet to send [10:29:06]OFD Sender: No OFD packet to send [10:29:11]OFD Sender: No OFD packet to send [10:29:16]OFD Sender: No OFD packet to send [10:29:21]OFD Sender: No OFD packet to send [10:29:26]OFD Sender: No OFD packet to send [10:29:31]OFD Sender: No OFD packet to send [10:29:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]accept exits with 9 [10:31:56]New connection [10:31:56]OFD Sender: No OFD packet to send [10:31:56]New thread 3067067748 created [10:31:56]Thread 3066924388 joined [10:31:56] Sock 9.Parse request [10:31:56]Waiting for new connection... [10:31:56]Sock 9.Check first char [10:31:56]Sock 9.First char is OK [10:31:56]request: POST /json_proto HTTP/1.0 [10:31:56]Method: POST [10:31:56]URL: /json_proto [10:31:56]Method is POST - this is cgi request [10:31:56]url: /json_proto [10:31:56]query_string will be loaded in cgi processing [10:31:56]execute_cgi json_proto POST (null) [10:31:56]execute_cgi path=json_proto method=POST [10:31:56]POST find Content-Length [10:31:56]Host: 172.17.45.7:8080 [10:31:56]Content-Length: 678 [10:31:56]Content-Type: application/json [10:31:56] [10:31:56]POST finish read [10:31:56]Found Content-Length = 678 [10:31:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:56]execute_script... [10:31: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)949304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:56]POST & json_proto [10:31:56]process_json_proto [10:31:56]json parsed OK: [10:31:56]protocol is kg_v1.0 [10:31:56]action value=close_receipt [10:31:56]process_action close_receipt [10:31:56]cmd_close_receipt [10:31:56]MH_GetDate [10:31:56]Write to MH i2c: F0 00 00 3E 18 45 [10:31:56]Write i2c OK [10:31:56]MH_I2C_Read... [10:31:56]Read from MH i2c: F0 [10:31:56]MH_I2C_Read... [10:31:56]Read from MH i2c: F0 09 00 [10:31:56]MH_I2C_Read... [10:31:56]Read from MH i2c: F0 09 00 3E 18 00 1E 1E A6 66 90 0F 3E 66 D9 [10:31:56]GetLastDocTimeStamp 1722162460 [10:31:56]current date 1722162718 [10:31:56]FM_GetShiftState [10:31:56]SAM_PROTO_GetShiftState [10:31:56]wFMCommunicate request_size=4 [10:31:56]MH_SAM_APDU [10:31:56]CAPDU: 80 13 01 00 [10:31:56]Write to MH i2c: E2 08 00 3F 18 80 13 01 00 00 00 00 00 D4 [10:31:56]Write i2c OK [10:31:56]MH_I2C_Read... [10:31:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:56]Read from MH i2c: E2 [10:31:56]MH_I2C_Read... [10:31:56]Read from MH i2c: E2 0E 00 [10:31:56]MH_I2C_Read... [10:31:56]Read from MH i2c: E2 0E 00 3F 18 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 AB [10:31:56]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:31:56]wFMCommunicate OK [10:31:56]SAM_PROTO_GetShiftState done [10:31:56]FM_GetShiftState done [10:31:56]opened in 1722125364 [10:31:56]opened+sec_in_day 1722211764 [10:31:56]quantity*price = 80004 [10:31:56]sum+1 = 80005 [10:31:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 100 28.07.2024 10:31 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118431 ФПД: 110755192805947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T103158&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118431&fm=110755192805947&tin=02508201610067®Number=0000000000092660&sum=80000 [10:31:57]StoreToDocumentArchive [10:31:57]shift 433 fd 118431 [10:31:57]save to /storage/0433/doc_00118431 [10:31:57]save last doc name /storage/0433/doc_00118431 to /storage/kkm_last_doc_name [10:31:57]save OK [10:31:57]Clear old archive folders... [10:31:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:31:57]tlvbuf is 001A9EE0 [10:31:57]SAM_PROTO_ClearQueue [10:31:57]wFMCommunicate request_size=4 [10:31:57]MH_SAM_APDU [10:31:57]CAPDU: 80 09 00 00 [10:31:57]Write to MH i2c: E2 08 00 4C 18 80 09 00 00 00 00 00 00 D6 [10:31:57]Write i2c OK [10:31:57]MH_I2C_Read... [10:31:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:57]Read from MH i2c: E2 [10:31:57]MH_I2C_Read... [10:31:57]Read from MH i2c: E2 03 00 [10:31:57]MH_I2C_Read... [10:31:57]Read from MH i2c: E2 03 00 4C 18 00 90 00 D8 [10:31:57]RAPDU: 90 00 [10:31:57]wFMCommunicate OK [10:31:57]SAM_PROTO_ClearQueue done [10:31:57]KKMCreateOFDPacket [10:31:57]OFDProtocolAddRootSTLVToBuf [10:31:57]FM_MakeSignedData [10:31:57]FM_MakeSignedData [10:31:57]SAM_PROTO_SignData [10:31:57]wFMCommunicate request_size=4 [10:31:57]MH_SAM_APDU [10:31:57]CAPDU: 80 0D 01 02 [10:31:57]Write to MH i2c: E2 08 00 4D 18 80 0D 01 02 00 00 00 00 DE [10:31:57]Write i2c OK [10:31:57]MH_I2C_Read... [10:31:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:57]Read from MH i2c: E2 [10:31:57]MH_I2C_Read... [10:31:57]Read from MH i2c: E2 03 00 [10:31:57]MH_I2C_Read... [10:31:57]Read from MH i2c: E2 03 00 4D 18 00 90 00 D9 [10:31:57]RAPDU: 90 00 [10:31:57]wFMCommunicate OK [10:31:57]wFMCommunicate request_size=255 [10:31:57]MH_SAM_APDU [10:31: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 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 64 00 00 00 F4 03 04 00 1E 1E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9F CE 01 00 35 04 06 00 64 [10:31:57]Write to MH i2c: E2 02 01 4E 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 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 64 00 00 00 F4 03 04 00 1E 1E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9F CE 01 00 35 04 06 00 64 00 00 3F [10:31:57]Write i2c OK [10:31:57]MH_I2C_Read... [10:31:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:57]Read from MH i2c: E2 [10:31:57]MH_I2C_Read... [10:31:57]Read from MH i2c: E2 03 00 [10:31:57]MH_I2C_Read... [10:31:57]Read from MH i2c: E2 03 00 4E 18 00 90 00 DA [10:31:57]RAPDU: 90 00 [10:31:57]wFMCommunicate OK [10:31:57]wFMCommunicate request_size=10 [10:31:57]MH_SAM_APDU [10:31:57]CAPDU: 80 0D 02 02 05 BB 33 EC 9A 3B [10:31:57]Write to MH i2c: E2 0D 00 4F 18 80 0D 02 02 05 00 BB 33 EC 9A 3B 00 00 9A [10:31:57]Write i2c OK [10:31:57]MH_I2C_Read... [10:31:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:57]Read from MH i2c: E2 [10:31:57]MH_I2C_Read... [10:31:57]Read from MH i2c: E2 03 00 [10:31:57]MH_I2C_Read... [10:31:57]Read from MH i2c: E2 03 00 4F 18 00 90 00 DB [10:31:57]RAPDU: 90 00 [10:31:57]wFMCommunicate OK [10:31:57]wFMCommunicate request_size=4 [10:31:57]MH_SAM_APDU [10:31:57]CAPDU: 80 0D 03 02 [10:31:57]Write to MH i2c: E2 08 00 50 18 80 0D 03 02 00 00 00 00 E3 [10:31:57]Write i2c OK [10:31:57]MH_I2C_Read... [10:31:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:57]Read from MH i2c: E2 [10:31:57]MH_I2C_Read... [10:31:57]Read from MH i2c: E2 0B 00 [10:31:57]MH_I2C_Read... [10:31:57]Read from MH i2c: E2 0B 00 50 18 00 F1 D7 AF AC 10 60 34 34 90 00 DF [10:31:57]RAPDU: F1 D7 AF AC 10 60 34 34 90 00 [10:31:57]wFMCommunicate OK [10:31:57]SAM_PROTO_SignData done [10:31:57]FM_MakeSignedData done [10:31:57]CreateOFDProtocolMessage [10:31:57]wFMCommunicate request_size=4 [10:31:57]MH_SAM_APDU [10:31:57]CAPDU: 80 11 00 00 [10:31:57]Write to MH i2c: E2 08 00 51 18 80 11 00 00 00 00 00 00 E3 [10:31:57]Write i2c OK [10:31:57]MH_I2C_Read... [10:31:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:57]Read from MH i2c: E2 [10:31:57]MH_I2C_Read... [10:31:57]Read from MH i2c: E2 17 00 [10:31:57]MH_I2C_Read... [10:31:57]Read from MH i2c: E2 17 00 51 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3E [10:31:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:31:57]wFMCommunicate OK [10:31:57]CreateOFDProtocolMessage done [10:31:57]OFDSenderStorePacket 118431 [10:31:57]StoreOFDPacket docnum=118431 [10:31:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DD D0 07 01 7C 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 64 00 00 00 F4 03 04 00 1E 1E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9F CE 01 00 35 04 06 00 64 BB 33 EC 9A 3B F1 D7 AF AC 10 60 34 34 [10:31:57]CheckFolder [10:31:57]dirname=/storage/ofd_packets [10:31:57]CheckFolder done [10:31:57]ProducePacketName [10:31:57]name=ofd_packets/00118431 [10:31:57]NVStorageSaveData ofd_packets/00118431 [10:31:57]File name is /storage/ofd_packets/00118431 [10:31:57]Write 301 bytes [10:31:57]NVStorageSaveData done [10:31:57]OFDSenderStorePacket done [10:31:57]KKMCreateOFDPacket done [10:31:57]NVStorageSaveData kkm_last_timestamp [10:31:57]File name is /storage/kkm_last_timestamp [10:31:57]Write 4 bytes [10:31:57]NVStorageSaveData done [10:31:57]ExternCall_PrintAddStr [10:31:57]wPrintStart [10:31:57]Write to MH i2c: 01 00 00 52 18 6A [10:31:57]Write i2c OK [10:31:57]MH_I2C_Read... [10:31:57]Read from MH i2c: 01 [10:31:57]MH_I2C_Read... [10:31:57]Read from MH i2c: 01 07 00 [10:31:57]MH_I2C_Read... [10:31:57]Read from MH i2c: 01 07 00 52 18 00 00 00 00 00 FF 0F 7F [10:31:57]RasterBufferAndPrint [10:31:57]line Счет N : (1)949304 [10:31:57]line ИНН: 02508201610067 [10:31:57]line Контрольно-Кассовый Чек [10:31:57]line ПРОДАЖА [10:31:57]line ТРК (МРК, ГНК) : 41 [10:31:57]line Товар: 2710124130 [10:31:57]line Аи-92-К-4 [10:31:57]line 11.800 * 67.80 [10:31:57]line = 800.04 [10:31:57]line НДС 12% НСП 1% [10:31:57]line > о реализуемом товаре [10:31:57]line ОКРУГЛЕНИЕ: -0.04 [10:31:57]line ИТОГО: 800.00 [10:31:57]line Внесено: 800.00 [10:31:57]line СДАЧА: 0.00 [10:31:57]line НСП 1% : 7.08 [10:31:57]line НДС 12% : 84.96 [10:31:57]line Наличными: 800.00 [10:31:57]line Безнал.: 0.00 [10:31:57]line Место: АЗС № 134 "Партнер Нефть" [10:31:57]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:31:57]line СНО: Общий режим [10:31:57]line Чек 100 28.07.2024 10:31 [10:31:57]line Смена: 433 ФФД: 1.0 [10:31:57]line ЗНМ: 0300000044 [10:31:57]line РНМ: 0000000000092660 [10:31:57]line Версия ККМ: 001 [10:31:57]line ФМ: 0000000000874939 [10:31:57]line ФД: 118431 [10:31:57]line ФПД: 110755192805947 [10:31:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T103158&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118431&fm=110755192805947&tin=02508201610067®Number=0000000000092660&sum=80000 [10:31:58]OFD Sender: Processing packet 118431 [packets to send 86, broken 85] [10:31:58]ProducePacketName [10:31:58]name=ofd_packets/00118431 [10:31:58]OFD Sender: To server: pG, [10:31:58]CommunicateWithHost lk.salyk.kg:30040 [10:31:58]ConnectInit lk.salyk.kg [10:31:58]written 0, free lines is 4095 [10:31:58]Connected sock=10 [10:31:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DD D0 07 01 7C 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 64 00 00 00 F4 03 04 00 1E 1E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9F CE 01 00 35 04 06 00 64 BB 33 EC 9A 3B F1 D7 AF AC 10 60 34 34 [10:31:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 8E B0 47 00 A6 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9F CE 01 00 F4 03 04 00 AE CB A5 66 B6 04 01 00 00 ED 61 3D AC FD F5 C9 03 [10:31:58]CommunicateWithHost err = 0 [10:31:58]CheckOFDResponse [10:31:58]1017 (14) - 77093643461234 [10:31:58]1041 (16) - 0000000000874939 [10:31:58]1040 (4) - 118431 [10:31:58]1012 (4) - 28.07.2024 04:40 [10:31:58]1206 (1) - 0 [10:31:58]OFD Sender: Remove packet 118431 [10:31:58]ProducePacketName [10:31:58]name=ofd_packets/00118431 [10:31:58]NVStorageDeleteData [10:31:58]Write to MH i2c: 01 00 00 7C 18 94 [10:31:58]Write i2c OK [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: 01 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: 01 07 00 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: 01 07 00 7C 18 00 00 00 00 00 DE 0C 85 [10:31:58]RasterBufferAndPrint [10:31:58]line [10:31:58]line [10:31:58]line [10:31:58]line [10:31:58]line [10:31:58]written 0, free lines is 3303 [10:31:58]MH_Cut [10:31:58]Write to MH i2c: D1 01 00 83 18 01 6D [10:31:58]Write i2c OK [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: D1 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: D1 01 00 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: D1 01 00 83 18 00 6C [10:31:58]Write to MH i2c: 01 00 00 84 18 9C [10:31:58]Write i2c OK [10:31:58]MH_I2C_Read... [10:31:59]OFD Sender: No OFD packet to send [10:31:59]*** Cut start [10:31:59]*** Partial cut [10:31:59]*** CUTSNS_PIN = 1 [10:31:59]*** CUTSNS_PIN = 0 [10:31:59]*** Brake cut motor [10:32:00]Read from MH i2c: 01 [10:32:00]MH_I2C_Read... [10:32:00]*** Stop cut motor [10:32:00]*** Cut end [10:32:00]Read from MH i2c: 01 07 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: 01 07 00 84 18 00 00 00 00 00 FF 0F B1 [10:32:00]process_action close_receipt done [10:32:00]requested_data is exist [10:32:00]produce_requested_data [10:32:00]requested_item fm.sn is exist - process it [10:32:00]wFMCommunicate request_size=4 [10:32:00]MH_SAM_APDU [10:32:00]CAPDU: 80 11 00 00 [10:32:00]Write to MH i2c: E2 08 00 85 18 80 11 00 00 00 00 00 00 17 [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:00]Read from MH i2c: E2 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 17 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 17 00 85 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 72 [10:32:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:32:00]wFMCommunicate OK [10:32:00]requested_item fd.num is exist - process it [10:32:00]SAM_PROTO_GetFieldsCounters [10:32:00]wFMCommunicate request_size=4 [10:32:00]MH_SAM_APDU [10:32:00]CAPDU: 80 13 00 00 [10:32:00]Write to MH i2c: E2 08 00 86 18 80 13 00 00 00 00 00 00 1A [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:00]Read from MH i2c: E2 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 62 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 62 00 86 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9F CE 01 00 0E 04 04 00 B1 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 8D [10:32:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9F CE 01 00 0E 04 04 00 B1 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 [10:32:00]wFMCommunicate OK [10:32:00]SAM_PROTO_GetFieldsCounters done [10:32:00]requested_item shift.num is exist - process it [10:32:00]requested_item shift.opened is exist - process it [10:32:00]req_shift_opened [10:32:00]FM_GetShiftState [10:32:00]SAM_PROTO_GetShiftState [10:32:00]wFMCommunicate request_size=4 [10:32:00]MH_SAM_APDU [10:32:00]CAPDU: 80 13 01 00 [10:32:00]Write to MH i2c: E2 08 00 87 18 80 13 01 00 00 00 00 00 1C [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:00]Read from MH i2c: E2 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 0E 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 0E 00 87 18 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 F3 [10:32:00]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:32:00]wFMCommunicate OK [10:32:00]SAM_PROTO_GetShiftState done [10:32:00]FM_GetShiftState done [10:32:00]req_shift_opened done [10:32:00]requested_item shift.open_date is exist - process it [10:32:00]req_shift_open_date [10:32:00]req_shift_open_date done [10:32:00]produce_requested_data done [10:32:00]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118431,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [10:32:00]process_action_free close_receipt [10:32:00]json_value_free [10:32:00]json_value_free done [10:32:00]process_json_proto returns [10:32:00]Send response to host [10:32:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118431,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [10:32:00]free response buf [10:32:00]execute_script done [10:32:00]execute_script returns [10:32:00]free content buf [10:32:00]Sock 9.Close socket [10:32:00]Sock 9.Thread stoped [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:04]OFD Sender: No OFD packet to send [10:36:09]OFD Sender: No OFD packet to send [10:36:14]OFD Sender: No OFD packet to send [10:36:19]OFD Sender: No OFD packet to send [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36:34]OFD Sender: No OFD packet to send [10:36:39]OFD Sender: No OFD packet to send [10:36:44]OFD Sender: No OFD packet to send [10:36:49]OFD Sender: No OFD packet to send [10:36:54]OFD Sender: No OFD packet to send [10:36:59]OFD Sender: No OFD packet to send [10:37:04]OFD Sender: No OFD packet to send [10:37:09]OFD Sender: No OFD packet to send [10:37:14]OFD Sender: No OFD packet to send [10:37:19]OFD Sender: No OFD packet to send [10:37:24]OFD Sender: No OFD packet to send [10:37:29]OFD Sender: No OFD packet to send [10:37:34]OFD Sender: No OFD packet to send [10:37:35]accept exits with 7 [10:37:35]New connection [10:37:35]New thread 3066924388 created [10:37:35]Thread 3067067748 joined [10:37:35]Waiting for new connection... [10:37:35] Sock 7.Parse request [10:37:35]Sock 7.Check first char [10:37:35]Sock 7.First char is OK [10:37:35]request: POST /json_proto HTTP/1.0 [10:37:35]Method: POST [10:37:35]URL: /json_proto [10:37:35]Method is POST - this is cgi request [10:37:35]url: /json_proto [10:37:35]query_string will be loaded in cgi processing [10:37:35]execute_cgi json_proto POST (null) [10:37:35]execute_cgi path=json_proto method=POST [10:37:35]POST find Content-Length [10:37:35]Host: 172.17.45.7:8080 [10:37:35]Content-Length: 678 [10:37:35]Content-Type: application/json [10:37:35] [10:37:35]POST finish read [10:37:35]Found Content-Length = 678 [10:37:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:35]execute_script... [10:37:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:35]POST & json_proto [10:37:35]process_json_proto [10:37:35]json parsed OK: [10:37:35]protocol is kg_v1.0 [10:37:35]action value=close_receipt [10:37:35]process_action close_receipt [10:37:35]cmd_close_receipt [10:37:35]MH_GetDate [10:37:35]Write to MH i2c: F0 00 00 88 18 8F [10:37:35]Write i2c OK [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: F0 [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: F0 09 00 [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: F0 09 00 88 18 00 71 1F A6 66 90 0F 3E 66 77 [10:37:35]GetLastDocTimeStamp 1722162718 [10:37:35]current date 1722163057 [10:37:35]FM_GetShiftState [10:37:35]SAM_PROTO_GetShiftState [10:37:35]wFMCommunicate request_size=4 [10:37:35]MH_SAM_APDU [10:37:35]CAPDU: 80 13 01 00 [10:37:35]Write to MH i2c: E2 08 00 89 18 80 13 01 00 00 00 00 00 1E [10:37:35]Write i2c OK [10:37:35]MH_I2C_Read... [10:37:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:35]Read from MH i2c: E2 [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: E2 0E 00 [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: E2 0E 00 89 18 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 F5 [10:37:35]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:37:35]wFMCommunicate OK [10:37:35]SAM_PROTO_GetShiftState done [10:37:35]FM_GetShiftState done [10:37:35]opened in 1722125364 [10:37:35]opened+sec_in_day 1722211764 [10:37:35]quantity*price = 70037 [10:37:35]sum+1 = 70038 [10:37:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 101 28.07.2024 10:37 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118432 ФПД: 17886721467370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T103737&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118432&fm=17886721467370&tin=02508201610067®Number=0000000000092660&sum=70000 [10:37:36]StoreToDocumentArchive [10:37:36]shift 433 fd 118432 [10:37:36]save to /storage/0433/doc_00118432 [10:37:36]save last doc name /storage/0433/doc_00118432 to /storage/kkm_last_doc_name [10:37:36]save OK [10:37:36]Clear old archive folders... [10:37:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:37:36]tlvbuf is 0012C1C0 [10:37:36]SAM_PROTO_ClearQueue [10:37:36]wFMCommunicate request_size=4 [10:37:36]MH_SAM_APDU [10:37:36]CAPDU: 80 09 00 00 [10:37:36]Write to MH i2c: E2 08 00 96 18 80 09 00 00 00 00 00 00 20 [10:37:36]Write i2c OK [10:37:36]MH_I2C_Read... [10:37:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:36]Read from MH i2c: E2 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 03 00 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 03 00 96 18 00 90 00 22 [10:37:36]RAPDU: 90 00 [10:37:36]wFMCommunicate OK [10:37:36]SAM_PROTO_ClearQueue done [10:37:36]KKMCreateOFDPacket [10:37:36]OFDProtocolAddRootSTLVToBuf [10:37:36]FM_MakeSignedData [10:37:36]FM_MakeSignedData [10:37:36]SAM_PROTO_SignData [10:37:36]wFMCommunicate request_size=4 [10:37:36]MH_SAM_APDU [10:37:36]CAPDU: 80 0D 01 02 [10:37:36]Write to MH i2c: E2 08 00 97 18 80 0D 01 02 00 00 00 00 28 [10:37:36]Write i2c OK [10:37:36]MH_I2C_Read... [10:37:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:36]Read from MH i2c: E2 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 03 00 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 03 00 97 18 00 90 00 23 [10:37:36]RAPDU: 90 00 [10:37:36]wFMCommunicate OK [10:37:36]wFMCommunicate request_size=255 [10:37:36]MH_SAM_APDU [10:37:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 71 1F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A0 CE 01 00 35 04 06 00 10 [10:37:36]Write to MH i2c: E2 02 01 98 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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 71 1F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A0 CE 01 00 35 04 06 00 10 00 00 C5 [10:37:36]Write i2c OK [10:37:36]MH_I2C_Read... [10:37:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:37]Read from MH i2c: E2 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: E2 03 00 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: E2 03 00 98 18 00 90 00 24 [10:37:37]RAPDU: 90 00 [10:37:37]wFMCommunicate OK [10:37:37]wFMCommunicate request_size=10 [10:37:37]MH_SAM_APDU [10:37:37]CAPDU: 80 0D 02 02 05 44 93 AD E3 EA [10:37:37]Write to MH i2c: E2 0D 00 99 18 80 0D 02 02 05 00 44 93 AD E3 EA 00 00 86 [10:37:37]Write i2c OK [10:37:37]MH_I2C_Read... [10:37:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:37]Read from MH i2c: E2 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: E2 03 00 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: E2 03 00 99 18 00 90 00 25 [10:37:37]RAPDU: 90 00 [10:37:37]wFMCommunicate OK [10:37:37]wFMCommunicate request_size=4 [10:37:37]MH_SAM_APDU [10:37:37]CAPDU: 80 0D 03 02 [10:37:37]Write to MH i2c: E2 08 00 9A 18 80 0D 03 02 00 00 00 00 2D [10:37:37]Write i2c OK [10:37:37]MH_I2C_Read... [10:37:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:37]Read from MH i2c: E2 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: E2 0B 00 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: E2 0B 00 9A 18 00 0B F2 1D 8A 16 24 21 64 90 00 91 [10:37:37]RAPDU: 0B F2 1D 8A 16 24 21 64 90 00 [10:37:37]wFMCommunicate OK [10:37:37]SAM_PROTO_SignData done [10:37:37]FM_MakeSignedData done [10:37:37]CreateOFDProtocolMessage [10:37:37]wFMCommunicate request_size=4 [10:37:37]MH_SAM_APDU [10:37:37]CAPDU: 80 11 00 00 [10:37:37]Write to MH i2c: E2 08 00 9B 18 80 11 00 00 00 00 00 00 2D [10:37:37]Write i2c OK [10:37:37]MH_I2C_Read... [10:37:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:37]Read from MH i2c: E2 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: E2 17 00 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: E2 17 00 9B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 88 [10:37:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:37:37]wFMCommunicate OK [10:37:37]CreateOFDProtocolMessage done [10:37:37]OFDSenderStorePacket 118432 [10:37:37]StoreOFDPacket docnum=118432 [10:37:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D1 E3 07 01 EE 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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 71 1F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A0 CE 01 00 35 04 06 00 10 44 93 AD E3 EA 0B F2 1D 8A 16 24 21 64 [10:37:37]CheckFolder [10:37:37]dirname=/storage/ofd_packets [10:37:37]CheckFolder done [10:37:37]ProducePacketName [10:37:37]name=ofd_packets/00118432 [10:37:37]NVStorageSaveData ofd_packets/00118432 [10:37:37]File name is /storage/ofd_packets/00118432 [10:37:37]Write 301 bytes [10:37:37]NVStorageSaveData done [10:37:37]OFDSenderStorePacket done [10:37:37]KKMCreateOFDPacket done [10:37:37]NVStorageSaveData kkm_last_timestamp [10:37:37]File name is /storage/kkm_last_timestamp [10:37:37]Write 4 bytes [10:37:37]NVStorageSaveData done [10:37:37]ExternCall_PrintAddStr [10:37:37]wPrintStart [10:37:37]Write to MH i2c: 01 00 00 9C 18 B4 [10:37:37]Write i2c OK [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: 01 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: 01 07 00 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: 01 07 00 9C 18 00 00 00 00 00 FF 0F C9 [10:37:37]RasterBufferAndPrint [10:37:37]line Счет N : (1)949305 [10:37:37]line ИНН: 02508201610067 [10:37:37]line Контрольно-Кассовый Чек [10:37:37]line ПРОДАЖА [10:37:37]line ТРК (МРК, ГНК) : 51 [10:37:37]line Товар: 2710124130 [10:37:37]line Аи-92-К-4 [10:37:37]line 10.330 * 67.80 [10:37:37]line = 700.37 [10:37:37]line НДС 12% НСП 1% [10:37:37]line > о реализуемом товаре [10:37:37]line ОКРУГЛЕНИЕ: -0.37 [10:37:37]line ИТОГО: 700.00 [10:37:37]line Внесено: 700.00 [10:37:37]line СДАЧА: 0.00 [10:37:37]line НСП 1% : 6.20 [10:37:37]line НДС 12% : 74.38 [10:37:37]line Наличными: 700.00 [10:37:37]line Безнал.: 0.00 [10:37:37]line Место: АЗС № 134 "Партнер Нефть" [10:37:37]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:37:37]line СНО: Общий режим [10:37:37]line Чек 101 28.07.2024 10:37 [10:37:37]line Смена: 433 ФФД: 1.0 [10:37:37]line ЗНМ: 0300000044 [10:37:37]line РНМ: 0000000000092660 [10:37:37]line Версия ККМ: 001 [10:37:37]line ФМ: 0000000000874939 [10:37:37]line ФД: 118432 [10:37:37]line ФПД: 17886721467370 [10:37:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T103737&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118432&fm=17886721467370&tin=02508201610067®Number=0000000000092660&sum=70000 [10:37:37]OFD Sender: Processing packet 118432 [packets to send 86, broken 85] [10:37:37]ProducePacketName [10:37:37]name=ofd_packets/00118432 [10:37:37]OFD Sender: To server: pG, [10:37:37]CommunicateWithHost lk.salyk.kg:30040 [10:37:37]ConnectInit lk.salyk.kg [10:37:37]written 0, free lines is 4095 [10:37:37]Connected sock=10 [10:37:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D1 E3 07 01 EE 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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 71 1F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A0 CE 01 00 35 04 06 00 10 44 93 AD E3 EA 0B F2 1D 8A 16 24 21 64 [10:37:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A8 A9 47 00 22 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A0 CE 01 00 F4 03 04 00 02 CD A5 66 B6 04 01 00 00 97 78 EB 60 58 4F 47 17 [10:37:37]CommunicateWithHost err = 0 [10:37:37]CheckOFDResponse [10:37:37]1017 (14) - 77093643461234 [10:37:37]1041 (16) - 0000000000874939 [10:37:37]1040 (4) - 118432 [10:37:37]1012 (4) - 28.07.2024 04:45 [10:37:37]1206 (1) - 0 [10:37:37]OFD Sender: Remove packet 118432 [10:37:37]ProducePacketName [10:37:37]name=ofd_packets/00118432 [10:37:37]NVStorageDeleteData [10:37:37]Write to MH i2c: 01 00 00 C6 18 DE [10:37:37]Write i2c OK [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: 01 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: 01 07 00 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: 01 07 00 C6 18 00 00 00 00 00 DF 0C D0 [10:37:37]RasterBufferAndPrint [10:37:37]line [10:37:37]line [10:37:37]line [10:37:37]line [10:37:37]line [10:37:37]written 0, free lines is 3301 [10:37:38]MH_Cut [10:37:38]Write to MH i2c: D1 01 00 CD 18 01 B7 [10:37:38]Write i2c OK [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: D1 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: D1 01 00 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: D1 01 00 CD 18 00 B6 [10:37:38]Write to MH i2c: 01 00 00 CE 18 E6 [10:37:38]Write i2c OK [10:37:38]MH_I2C_Read... [10:37:38]OFD Sender: No OFD packet to send [10:37:38]*** Cut start [10:37:38]*** Partial cut [10:37:38]*** CUTSNS_PIN = 1 [10:37:38]*** CUTSNS_PIN = 0 [10:37:38]*** Brake cut motor [10:37:39]Read from MH i2c: 01 [10:37:39]MH_I2C_Read... [10:37:39]*** Stop cut motor [10:37:39]*** Cut end [10:37:39]Read from MH i2c: 01 07 00 [10:37:39]MH_I2C_Read... [10:37:39]Read from MH i2c: 01 07 00 CE 18 00 00 00 00 00 FF 0F FB [10:37:39]process_action close_receipt done [10:37:39]requested_data is exist [10:37:39]produce_requested_data [10:37:39]requested_item fm.sn is exist - process it [10:37:39]wFMCommunicate request_size=4 [10:37:39]MH_SAM_APDU [10:37:39]CAPDU: 80 11 00 00 [10:37:39]Write to MH i2c: E2 08 00 CF 18 80 11 00 00 00 00 00 00 61 [10:37:39]Write i2c OK [10:37:39]MH_I2C_Read... [10:37:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:39]Read from MH i2c: E2 [10:37:39]MH_I2C_Read... [10:37:39]Read from MH i2c: E2 17 00 [10:37:39]MH_I2C_Read... [10:37:39]Read from MH i2c: E2 17 00 CF 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BC [10:37:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:37:39]wFMCommunicate OK [10:37:39]requested_item fd.num is exist - process it [10:37:39]SAM_PROTO_GetFieldsCounters [10:37:39]wFMCommunicate request_size=4 [10:37:39]MH_SAM_APDU [10:37:39]CAPDU: 80 13 00 00 [10:37:39]Write to MH i2c: E2 08 00 D0 18 80 13 00 00 00 00 00 00 64 [10:37:39]Write i2c OK [10:37:39]MH_I2C_Read... [10:37:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:39]Read from MH i2c: E2 [10:37:39]MH_I2C_Read... [10:37:39]Read from MH i2c: E2 62 00 [10:37:39]MH_I2C_Read... [10:37:39]Read from MH i2c: E2 62 00 D0 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A0 CE 01 00 0E 04 04 00 B1 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 DB [10:37:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A0 CE 01 00 0E 04 04 00 B1 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 [10:37:39]wFMCommunicate OK [10:37:39]SAM_PROTO_GetFieldsCounters done [10:37:39]requested_item shift.num is exist - process it [10:37:39]requested_item shift.opened is exist - process it [10:37:39]req_shift_opened [10:37:39]FM_GetShiftState [10:37:39]SAM_PROTO_GetShiftState [10:37:39]wFMCommunicate request_size=4 [10:37:39]MH_SAM_APDU [10:37:39]CAPDU: 80 13 01 00 [10:37:39]Write to MH i2c: E2 08 00 D1 18 80 13 01 00 00 00 00 00 66 [10:37:39]Write i2c OK [10:37:39]MH_I2C_Read... [10:37:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:39]Read from MH i2c: E2 [10:37:39]MH_I2C_Read... [10:37:39]Read from MH i2c: E2 0E 00 [10:37:39]MH_I2C_Read... [10:37:39]Read from MH i2c: E2 0E 00 D1 18 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 3D [10:37:39]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:37:39]wFMCommunicate OK [10:37:39]SAM_PROTO_GetShiftState done [10:37:39]FM_GetShiftState done [10:37:39]req_shift_opened done [10:37:39]requested_item shift.open_date is exist - process it [10:37:39]req_shift_open_date [10:37:39]req_shift_open_date done [10:37:39]produce_requested_data done [10:37:39]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118432,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [10:37:39]process_action_free close_receipt [10:37:39]json_value_free [10:37:39]json_value_free done [10:37:39]process_json_proto returns [10:37:39]Send response to host [10:37:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118432,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [10:37:39]free response buf [10:37:39]execute_script done [10:37:39]execute_script returns [10:37:39]free content buf [10:37:39]Sock 7.Close socket [10:37:39]Sock 7.Thread stoped [10:37:43]OFD Sender: No OFD packet to send [10:37:48]OFD Sender: No OFD packet to send [10:37:53]OFD Sender: No OFD packet to send [10:37:58]OFD Sender: No OFD packet to send [10:38:03]OFD Sender: No OFD packet to send [10:38:08]OFD Sender: No OFD packet to send [10:38:13]OFD Sender: No OFD packet to send [10:38:18]OFD Sender: No OFD packet to send [10:38:23]OFD Sender: No OFD packet to send [10:38:28]OFD Sender: No OFD packet to send [10:38:33]OFD Sender: No OFD packet to send [10:38:38]OFD Sender: No OFD packet to send [10:38:43]OFD Sender: No OFD packet to send [10:38:48]OFD Sender: No OFD packet to send [10:38:53]OFD Sender: No OFD packet to send [10:38:58]OFD Sender: No OFD packet to send [10:39:03]OFD Sender: No OFD packet to send [10:39:08]OFD Sender: No OFD packet to send [10:39:13]OFD Sender: No OFD packet to send [10:39:18]OFD Sender: No OFD packet to send [10:39:23]OFD Sender: No OFD packet to send [10:39:28]OFD Sender: No OFD packet to send [10:39:33]OFD Sender: No OFD packet to send [10:39:33]accept exits with 9 [10:39:33]New connection [10:39:33]New thread 3067067748 created [10:39:33]Thread 3066924388 joined [10:39:33]Waiting for new connection... [10:39:33] Sock 9.Parse request [10:39:33]Sock 9.Check first char [10:39:33]Sock 9.First char is OK [10:39:33]request: POST /json_proto HTTP/1.0 [10:39:33]Method: POST [10:39:33]URL: /json_proto [10:39:33]Method is POST - this is cgi request [10:39:33]url: /json_proto [10:39:33]query_string will be loaded in cgi processing [10:39:33]execute_cgi json_proto POST (null) [10:39:33]execute_cgi path=json_proto method=POST [10:39:33]POST find Content-Length [10:39:33]Host: 172.17.45.7:8080 [10:39:33]Content-Length: 677 [10:39:33]Content-Type: application/json [10:39:33] [10:39:33]POST finish read [10:39:33]Found Content-Length = 677 [10:39:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:33]execute_script... [10:39: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)949306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:33]POST & json_proto [10:39:33]process_json_proto [10:39:33]json parsed OK: [10:39:33]protocol is kg_v1.0 [10:39:33]action value=close_receipt [10:39:33]process_action close_receipt [10:39:33]cmd_close_receipt [10:39:33]MH_GetDate [10:39:33]Write to MH i2c: F0 00 00 D2 18 D9 [10:39:33]Write i2c OK [10:39:33]MH_I2C_Read... [10:39:33]Read from MH i2c: F0 [10:39:33]MH_I2C_Read... [10:39:33]Read from MH i2c: F0 09 00 [10:39:33]MH_I2C_Read... [10:39:33]Read from MH i2c: F0 09 00 D2 18 00 E8 1F A6 66 90 0F 3E 66 38 [10:39:33]GetLastDocTimeStamp 1722163057 [10:39:33]current date 1722163176 [10:39:33]FM_GetShiftState [10:39:33]SAM_PROTO_GetShiftState [10:39:33]wFMCommunicate request_size=4 [10:39:33]MH_SAM_APDU [10:39:33]CAPDU: 80 13 01 00 [10:39:33]Write to MH i2c: E2 08 00 D3 18 80 13 01 00 00 00 00 00 68 [10:39:33]Write i2c OK [10:39:33]MH_I2C_Read... [10:39:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:33]Read from MH i2c: E2 [10:39:33]MH_I2C_Read... [10:39:33]Read from MH i2c: E2 0E 00 [10:39:33]MH_I2C_Read... [10:39:33]Read from MH i2c: E2 0E 00 D3 18 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 3F [10:39:33]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:39:33]wFMCommunicate OK [10:39:33]SAM_PROTO_GetShiftState done [10:39:33]FM_GetShiftState done [10:39:33]opened in 1722125364 [10:39:33]opened+sec_in_day 1722211764 [10:39:33]quantity*price = 30035 [10:39:33]sum+1 = 30036 [10:39:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 102 28.07.2024 10:39 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118433 ФПД: 28559104958089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T103936&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118433&fm=28559104958089&tin=02508201610067®Number=0000000000092660&sum=30000 [10:39:35]StoreToDocumentArchive [10:39:35]shift 433 fd 118433 [10:39:35]save to /storage/0433/doc_00118433 [10:39:35]save last doc name /storage/0433/doc_00118433 to /storage/kkm_last_doc_name [10:39:35]save OK [10:39:35]Clear old archive folders... [10:39:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:39:35]tlvbuf is 0013D090 [10:39:35]SAM_PROTO_ClearQueue [10:39:35]wFMCommunicate request_size=4 [10:39:35]MH_SAM_APDU [10:39:35]CAPDU: 80 09 00 00 [10:39:35]Write to MH i2c: E2 08 00 E0 18 80 09 00 00 00 00 00 00 6A [10:39:35]Write i2c OK [10:39:35]MH_I2C_Read... [10:39:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:35]Read from MH i2c: E2 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 03 00 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 03 00 E0 18 00 90 00 6C [10:39:35]RAPDU: 90 00 [10:39:35]wFMCommunicate OK [10:39:35]SAM_PROTO_ClearQueue done [10:39:35]KKMCreateOFDPacket [10:39:35]OFDProtocolAddRootSTLVToBuf [10:39:35]FM_MakeSignedData [10:39:35]FM_MakeSignedData [10:39:35]SAM_PROTO_SignData [10:39:35]wFMCommunicate request_size=4 [10:39:35]MH_SAM_APDU [10:39:35]CAPDU: 80 0D 01 02 [10:39:35]Write to MH i2c: E2 08 00 E1 18 80 0D 01 02 00 00 00 00 72 [10:39:35]Write i2c OK [10:39:35]MH_I2C_Read... [10:39:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:35]Read from MH i2c: E2 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 03 00 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 03 00 E1 18 00 90 00 6D [10:39:35]RAPDU: 90 00 [10:39:35]wFMCommunicate OK [10:39:35]wFMCommunicate request_size=255 [10:39:35]MH_SAM_APDU [10:39: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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E8 1F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A1 CE 01 00 35 04 06 00 19 [10:39:35]Write to MH i2c: E2 02 01 E2 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E8 1F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A1 CE 01 00 35 04 06 00 19 00 00 C9 [10:39:35]Write i2c OK [10:39:35]MH_I2C_Read... [10:39:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:35]Read from MH i2c: E2 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 03 00 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 03 00 E2 18 00 90 00 6E [10:39:35]RAPDU: 90 00 [10:39:35]wFMCommunicate OK [10:39:35]wFMCommunicate request_size=10 [10:39:35]MH_SAM_APDU [10:39:35]CAPDU: 80 0D 02 02 05 F9 6F 4E 5E 89 [10:39:35]Write to MH i2c: E2 0D 00 E3 18 80 0D 02 02 05 00 F9 6F 4E 5E 89 00 00 1C [10:39:35]Write i2c OK [10:39:35]MH_I2C_Read... [10:39:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:35]Read from MH i2c: E2 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 03 00 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 03 00 E3 18 00 90 00 6F [10:39:35]RAPDU: 90 00 [10:39:35]wFMCommunicate OK [10:39:35]wFMCommunicate request_size=4 [10:39:35]MH_SAM_APDU [10:39:35]CAPDU: 80 0D 03 02 [10:39:35]Write to MH i2c: E2 08 00 E4 18 80 0D 03 02 00 00 00 00 77 [10:39:35]Write i2c OK [10:39:35]MH_I2C_Read... [10:39:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:35]Read from MH i2c: E2 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 0B 00 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 0B 00 E4 18 00 E7 83 6B 84 23 20 E8 03 90 00 FF [10:39:35]RAPDU: E7 83 6B 84 23 20 E8 03 90 00 [10:39:35]wFMCommunicate OK [10:39:35]SAM_PROTO_SignData done [10:39:35]FM_MakeSignedData done [10:39:35]CreateOFDProtocolMessage [10:39:35]wFMCommunicate request_size=4 [10:39:35]MH_SAM_APDU [10:39:35]CAPDU: 80 11 00 00 [10:39:35]Write to MH i2c: E2 08 00 E5 18 80 11 00 00 00 00 00 00 77 [10:39:35]Write i2c OK [10:39:35]MH_I2C_Read... [10:39:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:35]Read from MH i2c: E2 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 17 00 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 17 00 E5 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D2 [10:39:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:39:35]wFMCommunicate OK [10:39:35]CreateOFDProtocolMessage done [10:39:35]OFDSenderStorePacket 118433 [10:39:35]StoreOFDPacket docnum=118433 [10:39:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 14 61 07 01 77 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E8 1F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A1 CE 01 00 35 04 06 00 19 F9 6F 4E 5E 89 E7 83 6B 84 23 20 E8 03 [10:39:35]CheckFolder [10:39:35]dirname=/storage/ofd_packets [10:39:35]CheckFolder done [10:39:35]ProducePacketName [10:39:35]name=ofd_packets/00118433 [10:39:35]NVStorageSaveData ofd_packets/00118433 [10:39:35]File name is /storage/ofd_packets/00118433 [10:39:35]Write 301 bytes [10:39:35]NVStorageSaveData done [10:39:35]OFDSenderStorePacket done [10:39:35]KKMCreateOFDPacket done [10:39:35]NVStorageSaveData kkm_last_timestamp [10:39:35]File name is /storage/kkm_last_timestamp [10:39:35]Write 4 bytes [10:39:35]NVStorageSaveData done [10:39:35]ExternCall_PrintAddStr [10:39:35]wPrintStart [10:39:35]Write to MH i2c: 01 00 00 E6 18 FE [10:39:35]Write i2c OK [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: 01 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: 01 07 00 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: 01 07 00 E6 18 00 00 00 00 00 FF 0F 13 [10:39:35]RasterBufferAndPrint [10:39:35]line Счет N : (1)949306 [10:39:35]line ИНН: 02508201610067 [10:39:35]line Контрольно-Кассовый Чек [10:39:35]line ПРОДАЖА [10:39:35]line ТРК (МРК, ГНК) : 61 [10:39:35]line Товар: 2710124130 [10:39:35]line Аи-92-К-4 [10:39:35]line 4.430 * 67.80 [10:39:35]line = 300.35 [10:39:35]line НДС 12% НСП 1% [10:39:35]line > о реализуемом товаре [10:39:35]line ОКРУГЛЕНИЕ: -0.35 [10:39:35]line ИТОГО: 300.00 [10:39:35]line Внесено: 300.00 [10:39:35]line СДАЧА: 0.00 [10:39:35]line НСП 1% : 2.66 [10:39:35]line НДС 12% : 31.90 [10:39:35]line Наличными: 300.00 [10:39:35]line Безнал.: 0.00 [10:39:35]line Место: АЗС № 134 "Партнер Нефть" [10:39:35]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:39:35]line СНО: Общий режим [10:39:35]line Чек 102 28.07.2024 10:39 [10:39:35]line Смена: 433 ФФД: 1.0 [10:39:35]line ЗНМ: 0300000044 [10:39:35]line РНМ: 0000000000092660 [10:39:35]line Версия ККМ: 001 [10:39:35]line ФМ: 0000000000874939 [10:39:35]line ФД: 118433 [10:39:35]line ФПД: 28559104958089 [10:39:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T103936&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118433&fm=28559104958089&tin=02508201610067®Number=0000000000092660&sum=30000 [10:39:35]OFD Sender: Processing packet 118433 [packets to send 86, broken 85] [10:39:35]ProducePacketName [10:39:35]name=ofd_packets/00118433 [10:39:35]OFD Sender: To server: pG, [10:39:35]CommunicateWithHost lk.salyk.kg:30040 [10:39:35]ConnectInit lk.salyk.kg [10:39:35]written 0, free lines is 4095 [10:39:36]Connected sock=10 [10:39:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 14 61 07 01 77 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E8 1F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A1 CE 01 00 35 04 06 00 19 F9 6F 4E 5E 89 E7 83 6B 84 23 20 E8 03 [10:39:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 73 60 47 00 C6 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 39 33 39 10 04 04 00 A1 CE 01 00 F4 03 04 00 78 CD A5 66 B6 04 01 00 00 C7 B8 C6 C4 55 5E 01 FD [10:39:36]CommunicateWithHost err = 0 [10:39:36]CheckOFDResponse [10:39:36]1017 (14) - 77093643461234 [10:39:36]1041 (16) - 0000000000874939 [10:39:36]1040 (4) - 118433 [10:39:36]1012 (4) - 28.07.2024 04:47 [10:39:36]1206 (1) - 0 [10:39:36]OFD Sender: Remove packet 118433 [10:39:36]ProducePacketName [10:39:36]name=ofd_packets/00118433 [10:39:36]NVStorageDeleteData [10:39:36]Write to MH i2c: 01 00 00 10 19 29 [10:39:36]Write i2c OK [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: 01 [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: 01 07 00 [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: 01 07 00 10 19 00 00 00 00 00 E3 0C 1F [10:39:36]RasterBufferAndPrint [10:39:36]line [10:39:36]line [10:39:36]line [10:39:36]line [10:39:36]line [10:39:36]written 0, free lines is 3305 [10:39:36]MH_Cut [10:39:36]Write to MH i2c: D1 01 00 17 19 01 02 [10:39:36]Write i2c OK [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: D1 [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: D1 01 00 [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: D1 01 00 17 19 00 01 [10:39:36]Write to MH i2c: 01 00 00 18 19 31 [10:39:36]Write i2c OK [10:39:36]MH_I2C_Read... [10:39:36]OFD Sender: No OFD packet to send [10:39:37]*** Cut start [10:39:37]*** Partial cut [10:39:37]*** CUTSNS_PIN = 1 [10:39:37]*** CUTSNS_PIN = 0 [10:39:37]*** Brake cut motor [10:39:37]Read from MH i2c: 01 [10:39:37]MH_I2C_Read... [10:39:37]*** Stop cut motor [10:39:37]*** Cut end [10:39:37]Read from MH i2c: 01 07 00 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: 01 07 00 18 19 00 00 00 00 00 FF 0F 46 [10:39:37]process_action close_receipt done [10:39:37]requested_data is exist [10:39:37]produce_requested_data [10:39:37]requested_item fm.sn is exist - process it [10:39:37]wFMCommunicate request_size=4 [10:39:37]MH_SAM_APDU [10:39:37]CAPDU: 80 11 00 00 [10:39:37]Write to MH i2c: E2 08 00 19 19 80 11 00 00 00 00 00 00 AC [10:39:37]Write i2c OK [10:39:37]MH_I2C_Read... [10:39:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:37]Read from MH i2c: E2 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: E2 17 00 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: E2 17 00 19 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 07 [10:39:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:39:37]wFMCommunicate OK [10:39:37]requested_item fd.num is exist - process it [10:39:37]SAM_PROTO_GetFieldsCounters [10:39:37]wFMCommunicate request_size=4 [10:39:37]MH_SAM_APDU [10:39:37]CAPDU: 80 13 00 00 [10:39:37]Write to MH i2c: E2 08 00 1A 19 80 13 00 00 00 00 00 00 AF [10:39:37]Write i2c OK [10:39:37]MH_I2C_Read... [10:39:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:37]Read from MH i2c: E2 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: E2 62 00 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: E2 62 00 1A 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A1 CE 01 00 0E 04 04 00 B1 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 2A [10:39:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A1 CE 01 00 0E 04 04 00 B1 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 [10:39:37]wFMCommunicate OK [10:39:37]SAM_PROTO_GetFieldsCounters done [10:39:37]requested_item shift.num is exist - process it [10:39:37]requested_item shift.opened is exist - process it [10:39:37]req_shift_opened [10:39:37]FM_GetShiftState [10:39:37]SAM_PROTO_GetShiftState [10:39:37]wFMCommunicate request_size=4 [10:39:37]MH_SAM_APDU [10:39:37]CAPDU: 80 13 01 00 [10:39:37]Write to MH i2c: E2 08 00 1B 19 80 13 01 00 00 00 00 00 B1 [10:39:37]Write i2c OK [10:39:37]MH_I2C_Read... [10:39:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:38]Read from MH i2c: E2 [10:39:38]MH_I2C_Read... [10:39:38]Read from MH i2c: E2 0E 00 [10:39:38]MH_I2C_Read... [10:39:38]Read from MH i2c: E2 0E 00 1B 19 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 88 [10:39:38]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:39:38]wFMCommunicate OK [10:39:38]SAM_PROTO_GetShiftState done [10:39:38]FM_GetShiftState done [10:39:38]req_shift_opened done [10:39:38]requested_item shift.open_date is exist - process it [10:39:38]req_shift_open_date [10:39:38]req_shift_open_date done [10:39:38]produce_requested_data done [10:39:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118433,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [10:39:38]process_action_free close_receipt [10:39:38]json_value_free [10:39:38]json_value_free done [10:39:38]process_json_proto returns [10:39:38]Send response to host [10:39:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118433,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [10:39:38]free response buf [10:39:38]execute_script done [10:39:38]execute_script returns [10:39:38]free content buf [10:39:38]Sock 9.Close socket [10:39:38]Sock 9.Thread stoped [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:51]OFD Sender: No OFD packet to send [10:39:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:06]OFD Sender: No OFD packet to send [10:40:11]OFD Sender: No OFD packet to send [10:40:16]OFD Sender: No OFD packet to send [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:41]OFD Sender: No OFD packet to send [10:40:46]OFD Sender: No OFD packet to send [10:40:51]OFD Sender: No OFD packet to send [10:40:53]accept exits with 7 [10:40:53]New connection [10:40:53]New thread 3066924388 created [10:40:53]Thread 3067067748 joined [10:40:53]Waiting for new connection... [10:40:53] Sock 7.Parse request [10:40:53]Sock 7.Check first char [10:40:53]Sock 7.First char is OK [10:40:53]request: POST /json_proto HTTP/1.0 [10:40:53]Method: POST [10:40:53]URL: /json_proto [10:40:53]Method is POST - this is cgi request [10:40:53]url: /json_proto [10:40:53]query_string will be loaded in cgi processing [10:40:53]execute_cgi json_proto POST (null) [10:40:53]execute_cgi path=json_proto method=POST [10:40:53]POST find Content-Length [10:40:53]Host: 172.17.45.7:8080 [10:40:53]Content-Length: 1196 [10:40:53]Content-Type: application/json [10:40:53] [10:40:53]POST finish read [10:40:53]Found Content-Length = 1196 [10:40: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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949307\u000A28.07.2024 10:39\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 : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 10.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 678.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3839222\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:53]execute_script... [10:40: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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949307\u000A28.07.2024 10:39\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 : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 10.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 678.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3839222\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:53]POST & json_proto [10:40:53]process_json_proto [10:40:53]json parsed OK: [10:40:53]protocol is kg_v1.0 [10:40:53]action value=print_text [10:40:53]process_action print_text [10:40:53]cmd_print_text [10:40:53]ExternCall_PrintAddStr [10:40:53]wPrintStart [10:40:53]Write to MH i2c: 01 00 00 1C 19 35 [10:40:53]Write i2c OK [10:40:53]MH_I2C_Read... [10:40:53]Read from MH i2c: 01 [10:40:53]MH_I2C_Read... [10:40:53]Read from MH i2c: 01 07 00 [10:40:53]MH_I2C_Read... [10:40:53]Read from MH i2c: 01 07 00 1C 19 00 00 00 00 00 FF 0F 4A [10:40:53]RasterBufferAndPrint [10:40:53]line *****ТОВАРНЫЙ ЧЕК***** [10:40:53]line АЗС-134 [10:40:53]line Партнер нефть [10:40:53]line 02508201610067 [10:40:53]line Кассир : Хошимов З. [10:40:53]line Счет N : (1)949307 [10:40:53]line 28.07.2024 10:39 [10:40:53]line ПРОДАЖА [10:40:53]line ТРК (МРК, ГНК): 41 [10:40:53]line Вид ГСМ : 2710124130 [10:40:53]line Аи-92-К-4 [10:40:53]line 10.000 x 67.80 [10:40:53]line ИТОГ: 678.00 [10:40:53]line Тип оплаты: Талоны: Топливные Талоны [10:40:53]line 3839222 [10:40:53]line ______________________ [10:40:53]line (подпись) [10:40:53]written 0, free lines is 4095 [10:40:53]Write to MH i2c: 01 00 00 30 19 49 [10:40:53]Write i2c OK [10:40:53]MH_I2C_Read... [10:40:53]Read from MH i2c: 01 [10:40:53]MH_I2C_Read... [10:40:53]Read from MH i2c: 01 07 00 [10:40:53]MH_I2C_Read... [10:40:53]Read from MH i2c: 01 07 00 30 19 00 00 00 00 00 10 0E 6E [10:40:53]RasterBufferAndPrint [10:40:53]line [10:40:53]line [10:40:53]line [10:40:53]line [10:40:53]line [10:40:53]written 0, free lines is 3601 [10:40:53]MH_Cut [10:40:53]Write to MH i2c: D1 01 00 37 19 01 22 [10:40:53]Write i2c OK [10:40:53]MH_I2C_Read... [10:40:53]Read from MH i2c: D1 [10:40:53]MH_I2C_Read... [10:40:53]Read from MH i2c: D1 01 00 [10:40:53]MH_I2C_Read... [10:40:53]Read from MH i2c: D1 01 00 37 19 00 21 [10:40:53]Write to MH i2c: 01 00 00 38 19 51 [10:40:53]Write i2c OK [10:40:53]MH_I2C_Read... [10:40:54]*** Cut start [10:40:54]*** Partial cut [10:40:54]*** CUTSNS_PIN = 1 [10:40:54]*** CUTSNS_PIN = 0 [10:40:54]*** Brake cut motor [10:40:55]Read from MH i2c: 01 [10:40:55]MH_I2C_Read... [10:40:55]*** Stop cut motor [10:40:55]*** Cut end [10:40:55]Read from MH i2c: 01 07 00 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: 01 07 00 38 19 00 00 00 00 00 FF 0F 66 [10:40:55]process_action print_text done [10:40:55]requested_data is exist [10:40:55]produce_requested_data [10:40:55]requested_item fm.sn is exist - process it [10:40:55]wFMCommunicate request_size=4 [10:40:55]MH_SAM_APDU [10:40:55]CAPDU: 80 11 00 00 [10:40:55]Write to MH i2c: E2 08 00 39 19 80 11 00 00 00 00 00 00 CC [10:40:55]Write i2c OK [10:40:55]MH_I2C_Read... [10:40:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:55]Read from MH i2c: E2 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: E2 17 00 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: E2 17 00 39 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 27 [10:40:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:40:55]wFMCommunicate OK [10:40:55]requested_item fd.num is exist - process it [10:40:55]SAM_PROTO_GetFieldsCounters [10:40:55]wFMCommunicate request_size=4 [10:40:55]MH_SAM_APDU [10:40:55]CAPDU: 80 13 00 00 [10:40:55]Write to MH i2c: E2 08 00 3A 19 80 13 00 00 00 00 00 00 CF [10:40:55]Write i2c OK [10:40:55]MH_I2C_Read... [10:40:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:55]Read from MH i2c: E2 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: E2 62 00 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: E2 62 00 3A 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A1 CE 01 00 0E 04 04 00 B1 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 4A [10:40: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A1 CE 01 00 0E 04 04 00 B1 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 [10:40:55]wFMCommunicate OK [10:40:55]SAM_PROTO_GetFieldsCounters done [10:40:55]requested_item shift.num is exist - process it [10:40:55]requested_item shift.opened is exist - process it [10:40:55]req_shift_opened [10:40:55]FM_GetShiftState [10:40:55]SAM_PROTO_GetShiftState [10:40:55]wFMCommunicate request_size=4 [10:40:55]MH_SAM_APDU [10:40:55]CAPDU: 80 13 01 00 [10:40:55]Write to MH i2c: E2 08 00 3B 19 80 13 01 00 00 00 00 00 D1 [10:40:55]Write i2c OK [10:40:55]MH_I2C_Read... [10:40:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:55]Read from MH i2c: E2 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: E2 0E 00 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: E2 0E 00 3B 19 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A8 [10:40:55]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:40:55]wFMCommunicate OK [10:40:55]SAM_PROTO_GetShiftState done [10:40:55]FM_GetShiftState done [10:40:55]req_shift_opened done [10:40:55]requested_item shift.open_date is exist - process it [10:40:55]req_shift_open_date [10:40:55]req_shift_open_date done [10:40:55]produce_requested_data done [10:40:55]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118433,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [10:40:55]process_action_free print_text [10:40:55]json_value_free [10:40:55]json_value_free done [10:40:55]process_json_proto returns [10:40:55]Send response to host [10:40:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118433,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [10:40:55]free response buf [10:40:55]execute_script done [10:40:55]execute_script returns [10:40:55]free content buf [10:40:55]Sock 7.Close socket [10:40:55]Sock 7.Thread stoped [10:40:56]OFD Sender: No OFD packet to send [10:41:01]OFD Sender: No OFD packet to send [10:41:06]OFD Sender: No OFD packet to send [10:41:11]OFD Sender: No OFD packet to send [10:41:16]OFD Sender: No OFD packet to send [10:41:21]OFD Sender: No OFD packet to send [10:41:22]accept exits with 9 [10:41:22]New connection [10:41:22]New thread 3067067748 created [10:41:22]Thread 3066924388 joined [10:41:22]Waiting for new connection... [10:41:22] Sock 9.Parse request [10:41:22]Sock 9.Check first char [10:41:22]Sock 9.First char is OK [10:41:22]request: POST /json_proto HTTP/1.0 [10:41:22]Method: POST [10:41:22]URL: /json_proto [10:41:22]Method is POST - this is cgi request [10:41:22]url: /json_proto [10:41:22]query_string will be loaded in cgi processing [10:41:22]execute_cgi json_proto POST (null) [10:41:22]execute_cgi path=json_proto method=POST [10:41:22]POST find Content-Length [10:41:22]Host: 172.17.45.7:8080 [10:41:22]Content-Length: 677 [10:41:22]Content-Type: application/json [10:41:22] [10:41:22]POST finish read [10:41:22]Found Content-Length = 677 [10:41:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:22]execute_script... [10:41: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)949308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:22]POST & json_proto [10:41:22]process_json_proto [10:41:22]json parsed OK: [10:41:22]protocol is kg_v1.0 [10:41:22]action value=close_receipt [10:41:22]process_action close_receipt [10:41:22]cmd_close_receipt [10:41:22]MH_GetDate [10:41:22]Write to MH i2c: F0 00 00 3C 19 44 [10:41:22]Write i2c OK [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: F0 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: F0 09 00 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: F0 09 00 3C 19 00 54 20 A6 66 90 0F 3E 66 10 [10:41:22]GetLastDocTimeStamp 1722163176 [10:41:22]current date 1722163284 [10:41:22]FM_GetShiftState [10:41:22]SAM_PROTO_GetShiftState [10:41:22]wFMCommunicate request_size=4 [10:41:22]MH_SAM_APDU [10:41:22]CAPDU: 80 13 01 00 [10:41:22]Write to MH i2c: E2 08 00 3D 19 80 13 01 00 00 00 00 00 D3 [10:41:22]Write i2c OK [10:41:22]MH_I2C_Read... [10:41:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:22]Read from MH i2c: E2 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: E2 0E 00 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: E2 0E 00 3D 19 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 AA [10:41:22]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:41:22]wFMCommunicate OK [10:41:22]SAM_PROTO_GetShiftState done [10:41:22]FM_GetShiftState done [10:41:22]opened in 1722125364 [10:41:22]opened+sec_in_day 1722211764 [10:41:22]quantity*price = 70044 [10:41:22]sum+1 = 70046 [10:41:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 103 28.07.2024 10:41 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118434 ФПД: 205806883285879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T104124&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118434&fm=205806883285879&tin=02508201610067®Number=0000000000092660&sum=70000 [10:41:23]StoreToDocumentArchive [10:41:23]shift 433 fd 118434 [10:41:23]save to /storage/0433/doc_00118434 [10:41:23]save last doc name /storage/0433/doc_00118434 to /storage/kkm_last_doc_name [10:41:23]save OK [10:41:23]Clear old archive folders... [10:41:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:41:23]tlvbuf is 0015C920 [10:41:23]SAM_PROTO_ClearQueue [10:41:23]wFMCommunicate request_size=4 [10:41:23]MH_SAM_APDU [10:41:23]CAPDU: 80 09 00 00 [10:41:23]Write to MH i2c: E2 08 00 4A 19 80 09 00 00 00 00 00 00 D5 [10:41:23]Write i2c OK [10:41:23]MH_I2C_Read... [10:41:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:23]Read from MH i2c: E2 [10:41:23]MH_I2C_Read... [10:41:23]Read from MH i2c: E2 03 00 [10:41:23]MH_I2C_Read... [10:41:23]Read from MH i2c: E2 03 00 4A 19 00 90 00 D7 [10:41:23]RAPDU: 90 00 [10:41:23]wFMCommunicate OK [10:41:23]SAM_PROTO_ClearQueue done [10:41:23]KKMCreateOFDPacket [10:41:23]OFDProtocolAddRootSTLVToBuf [10:41:23]FM_MakeSignedData [10:41:23]FM_MakeSignedData [10:41:23]SAM_PROTO_SignData [10:41:23]wFMCommunicate request_size=4 [10:41:23]MH_SAM_APDU [10:41:23]CAPDU: 80 0D 01 02 [10:41:23]Write to MH i2c: E2 08 00 4B 19 80 0D 01 02 00 00 00 00 DD [10:41:23]Write i2c OK [10:41:23]MH_I2C_Read... [10:41:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:23]Read from MH i2c: E2 [10:41:23]MH_I2C_Read... [10:41:23]Read from MH i2c: E2 03 00 [10:41:23]MH_I2C_Read... [10:41:23]Read from MH i2c: E2 03 00 4B 19 00 90 00 D8 [10:41:23]RAPDU: 90 00 [10:41:23]wFMCommunicate OK [10:41:23]wFMCommunicate request_size=255 [10:41:23]MH_SAM_APDU [10:41:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 54 20 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A2 CE 01 00 35 04 06 00 BB [10:41:23]Write to MH i2c: E2 02 01 4C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 54 20 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A2 CE 01 00 35 04 06 00 BB 00 00 1C [10:41:23]Write i2c OK [10:41:23]MH_I2C_Read... [10:41:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:24]Read from MH i2c: E2 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 03 00 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 03 00 4C 19 00 90 00 D9 [10:41:24]RAPDU: 90 00 [10:41:24]wFMCommunicate OK [10:41:24]wFMCommunicate request_size=10 [10:41:24]MH_SAM_APDU [10:41:24]CAPDU: 80 0D 02 02 05 2E 26 2B AB 77 [10:41:24]Write to MH i2c: E2 0D 00 4D 19 80 0D 02 02 05 00 2E 26 2B AB 77 00 00 8B [10:41:24]Write i2c OK [10:41:24]MH_I2C_Read... [10:41:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:24]Read from MH i2c: E2 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 03 00 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 03 00 4D 19 00 90 00 DA [10:41:24]RAPDU: 90 00 [10:41:24]wFMCommunicate OK [10:41:24]wFMCommunicate request_size=4 [10:41:24]MH_SAM_APDU [10:41:24]CAPDU: 80 0D 03 02 [10:41:24]Write to MH i2c: E2 08 00 4E 19 80 0D 03 02 00 00 00 00 E2 [10:41:24]Write i2c OK [10:41:24]MH_I2C_Read... [10:41:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:24]Read from MH i2c: E2 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 0B 00 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 0B 00 4E 19 00 50 F4 5C 73 74 13 D9 19 90 00 6F [10:41:24]RAPDU: 50 F4 5C 73 74 13 D9 19 90 00 [10:41:24]wFMCommunicate OK [10:41:24]SAM_PROTO_SignData done [10:41:24]FM_MakeSignedData done [10:41:24]CreateOFDProtocolMessage [10:41:24]wFMCommunicate request_size=4 [10:41:24]MH_SAM_APDU [10:41:24]CAPDU: 80 11 00 00 [10:41:24]Write to MH i2c: E2 08 00 4F 19 80 11 00 00 00 00 00 00 E2 [10:41:24]Write i2c OK [10:41:24]MH_I2C_Read... [10:41:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:24]Read from MH i2c: E2 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 17 00 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 17 00 4F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3D [10:41:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:41:24]wFMCommunicate OK [10:41:24]CreateOFDProtocolMessage done [10:41:24]OFDSenderStorePacket 118434 [10:41:24]StoreOFDPacket docnum=118434 [10:41:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 38 90 07 01 3D 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 54 20 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A2 CE 01 00 35 04 06 00 BB 2E 26 2B AB 77 50 F4 5C 73 74 13 D9 19 [10:41:24]CheckFolder [10:41:24]dirname=/storage/ofd_packets [10:41:24]CheckFolder done [10:41:24]ProducePacketName [10:41:24]name=ofd_packets/00118434 [10:41:24]NVStorageSaveData ofd_packets/00118434 [10:41:24]File name is /storage/ofd_packets/00118434 [10:41:24]Write 301 bytes [10:41:24]NVStorageSaveData done [10:41:24]OFDSenderStorePacket done [10:41:24]KKMCreateOFDPacket done [10:41:24]NVStorageSaveData kkm_last_timestamp [10:41:24]File name is /storage/kkm_last_timestamp [10:41:24]Write 4 bytes [10:41:24]NVStorageSaveData done [10:41:24]ExternCall_PrintAddStr [10:41:24]wPrintStart [10:41:24]Write to MH i2c: 01 00 00 50 19 69 [10:41:24]Write i2c OK [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: 01 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: 01 07 00 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: 01 07 00 50 19 00 00 00 00 00 FF 0F 7E [10:41:24]RasterBufferAndPrint [10:41:24]line Счет N : (1)949308 [10:41:24]line ИНН: 02508201610067 [10:41:24]line Контрольно-Кассовый Чек [10:41:24]line ПРОДАЖА [10:41:24]line ТРК (МРК, ГНК) : 53 [10:41:24]line Товар: 2710124500 [10:41:24]line Аи-95-К-3 [10:41:24]line 9.440 * 74.20 [10:41:24]line = 700.45 [10:41:24]line НДС 12% НСП 1% [10:41:24]line > о реализуемом товаре [10:41:24]line ОКРУГЛЕНИЕ: -0.45 [10:41:24]line ИТОГО: 700.00 [10:41:24]line Внесено: 700.00 [10:41:24]line СДАЧА: 0.00 [10:41:24]line НСП 1% : 6.20 [10:41:24]line НДС 12% : 74.38 [10:41:24]line Наличными: 700.00 [10:41:24]line Безнал.: 0.00 [10:41:24]line Место: АЗС № 134 "Партнер Нефть" [10:41:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:41:24]line СНО: Общий режим [10:41:24]line Чек 103 28.07.2024 10:41 [10:41:24]line Смена: 433 ФФД: 1.0 [10:41:24]line ЗНМ: 0300000044 [10:41:24]line РНМ: 0000000000092660 [10:41:24]line Версия ККМ: 001 [10:41:24]line ФМ: 0000000000874939 [10:41:24]line ФД: 118434 [10:41:24]line ФПД: 205806883285879 [10:41:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T104124&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118434&fm=205806883285879&tin=02508201610067®Number=0000000000092660&sum=70000 [10:41:24]OFD Sender: Processing packet 118434 [packets to send 86, broken 85] [10:41:24]ProducePacketName [10:41:24]name=ofd_packets/00118434 [10:41:24]OFD Sender: To server: pG, [10:41:24]CommunicateWithHost lk.salyk.kg:30040 [10:41:24]ConnectInit lk.salyk.kg [10:41:24]written 0, free lines is 4095 [10:41:24]Connected sock=10 [10:41:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 38 90 07 01 3D 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 54 20 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A2 CE 01 00 35 04 06 00 BB 2E 26 2B AB 77 50 F4 5C 73 74 13 D9 19 [10:41:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 DD 52 47 00 BE 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 39 33 39 10 04 04 00 A2 CE 01 00 F4 03 04 00 E5 CD A5 66 B6 04 01 00 00 13 03 6E 06 E1 AF AC 61 [10:41:24]CommunicateWithHost err = 0 [10:41:24]CheckOFDResponse [10:41:24]1017 (14) - 77093643461234 [10:41:24]1041 (16) - 0000000000874939 [10:41:24]1040 (4) - 118434 [10:41:24]1012 (4) - 28.07.2024 04:49 [10:41:24]1206 (1) - 0 [10:41:24]OFD Sender: Remove packet 118434 [10:41:24]ProducePacketName [10:41:24]name=ofd_packets/00118434 [10:41:24]NVStorageDeleteData [10:41:24]Write to MH i2c: 01 00 00 7A 19 93 [10:41:24]Write i2c OK [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: 01 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: 01 07 00 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: 01 07 00 7A 19 00 00 00 00 00 DC 0C 82 [10:41:24]RasterBufferAndPrint [10:41:24]line [10:41:24]line [10:41:24]line [10:41:24]line [10:41:24]line [10:41:24]written 0, free lines is 3298 [10:41:24]MH_Cut [10:41:24]Write to MH i2c: D1 01 00 81 19 01 6C [10:41:24]Write i2c OK [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: D1 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: D1 01 00 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: D1 01 00 81 19 00 6B [10:41:24]Write to MH i2c: 01 00 00 82 19 9B [10:41:24]Write i2c OK [10:41:24]MH_I2C_Read... [10:41:25]OFD Sender: No OFD packet to send [10:41:25]*** Cut start [10:41:25]*** Partial cut [10:41:25]*** CUTSNS_PIN = 1 [10:41:25]*** CUTSNS_PIN = 0 [10:41:25]*** Brake cut motor [10:41:26]Read from MH i2c: 01 [10:41:26]MH_I2C_Read... [10:41:26]*** Stop cut motor [10:41:26]*** Cut end [10:41:26]Read from MH i2c: 01 07 00 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: 01 07 00 82 19 00 00 00 00 00 FF 0F B0 [10:41:26]process_action close_receipt done [10:41:26]requested_data is exist [10:41:26]produce_requested_data [10:41:26]requested_item fm.sn is exist - process it [10:41:26]wFMCommunicate request_size=4 [10:41:26]MH_SAM_APDU [10:41:26]CAPDU: 80 11 00 00 [10:41:26]Write to MH i2c: E2 08 00 83 19 80 11 00 00 00 00 00 00 16 [10:41:26]Write i2c OK [10:41:26]MH_I2C_Read... [10:41:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:26]Read from MH i2c: E2 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 17 00 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 17 00 83 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 71 [10:41:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:41:26]wFMCommunicate OK [10:41:26]requested_item fd.num is exist - process it [10:41:26]SAM_PROTO_GetFieldsCounters [10:41:26]wFMCommunicate request_size=4 [10:41:26]MH_SAM_APDU [10:41:26]CAPDU: 80 13 00 00 [10:41:26]Write to MH i2c: E2 08 00 84 19 80 13 00 00 00 00 00 00 19 [10:41:26]Write i2c OK [10:41:26]MH_I2C_Read... [10:41:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:26]Read from MH i2c: E2 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 62 00 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 62 00 84 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A2 CE 01 00 0E 04 04 00 B1 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 98 [10:41:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A2 CE 01 00 0E 04 04 00 B1 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 [10:41:26]wFMCommunicate OK [10:41:26]SAM_PROTO_GetFieldsCounters done [10:41:26]requested_item shift.num is exist - process it [10:41:26]requested_item shift.opened is exist - process it [10:41:26]req_shift_opened [10:41:26]FM_GetShiftState [10:41:26]SAM_PROTO_GetShiftState [10:41:26]wFMCommunicate request_size=4 [10:41:26]MH_SAM_APDU [10:41:26]CAPDU: 80 13 01 00 [10:41:26]Write to MH i2c: E2 08 00 85 19 80 13 01 00 00 00 00 00 1B [10:41:26]Write i2c OK [10:41:26]MH_I2C_Read... [10:41:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:26]Read from MH i2c: E2 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 0E 00 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 0E 00 85 19 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 F2 [10:41:26]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:41:26]wFMCommunicate OK [10:41:26]SAM_PROTO_GetShiftState done [10:41:26]FM_GetShiftState done [10:41:26]req_shift_opened done [10:41:26]requested_item shift.open_date is exist - process it [10:41:26]req_shift_open_date [10:41:26]req_shift_open_date done [10:41:26]produce_requested_data done [10:41:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118434,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [10:41:26]process_action_free close_receipt [10:41:26]json_value_free [10:41:26]json_value_free done [10:41:26]process_json_proto returns [10:41:26]Send response to host [10:41:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118434,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [10:41:26]free response buf [10:41:26]execute_script done [10:41:26]execute_script returns [10:41:26]free content buf [10:41:26]Sock 9.Close socket [10:41:26]Sock 9.Thread stoped [10:41:30]OFD Sender: No OFD packet to send [10:41:35]OFD Sender: No OFD packet to send [10:41:40]OFD Sender: No OFD packet to send [10:41:45]OFD Sender: No OFD packet to send [10:41:50]OFD Sender: No OFD packet to send [10:41:55]OFD Sender: No OFD packet to send [10:42:00]OFD Sender: No OFD packet to send [10:42:05]OFD Sender: No OFD packet to send [10:42:10]OFD Sender: No OFD packet to send [10:42:10]accept exits with 7 [10:42:10]New connection [10:42:10]New thread 3066924388 created [10:42:10]Thread 3067067748 joined [10:42:10]Waiting for new connection... [10:42:10] Sock 7.Parse request [10:42:10]Sock 7.Check first char [10:42:10]Sock 7.First char is OK [10:42:10]request: POST /json_proto HTTP/1.0 [10:42:10]Method: POST [10:42:10]URL: /json_proto [10:42:10]Method is POST - this is cgi request [10:42:10]url: /json_proto [10:42:10]query_string will be loaded in cgi processing [10:42:10]execute_cgi json_proto POST (null) [10:42:10]execute_cgi path=json_proto method=POST [10:42:10]POST find Content-Length [10:42:10]Host: 172.17.45.7:8080 [10:42:10]Content-Length: 682 [10:42:10]Content-Type: application/json [10:42:10] [10:42:10]POST finish read [10:42:10]Found Content-Length = 682 [10:42:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:10]execute_script... [10:42: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)949309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:10]POST & json_proto [10:42:10]process_json_proto [10:42:10]json parsed OK: [10:42:10]protocol is kg_v1.0 [10:42:10]action value=close_receipt [10:42:10]process_action close_receipt [10:42:10]cmd_close_receipt [10:42:10]MH_GetDate [10:42:10]Write to MH i2c: F0 00 00 86 19 8E [10:42:10]Write i2c OK [10:42:10]MH_I2C_Read... [10:42:10]Read from MH i2c: F0 [10:42:10]MH_I2C_Read... [10:42:10]Read from MH i2c: F0 09 00 [10:42:10]MH_I2C_Read... [10:42:10]Read from MH i2c: F0 09 00 86 19 00 85 20 A6 66 90 0F 3E 66 8B [10:42:10]GetLastDocTimeStamp 1722163284 [10:42:10]current date 1722163333 [10:42:10]FM_GetShiftState [10:42:10]SAM_PROTO_GetShiftState [10:42:10]wFMCommunicate request_size=4 [10:42:10]MH_SAM_APDU [10:42:10]CAPDU: 80 13 01 00 [10:42:10]Write to MH i2c: E2 08 00 87 19 80 13 01 00 00 00 00 00 1D [10:42:10]Write i2c OK [10:42:10]MH_I2C_Read... [10:42:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:10]Read from MH i2c: E2 [10:42:10]MH_I2C_Read... [10:42:10]Read from MH i2c: E2 0E 00 [10:42:10]MH_I2C_Read... [10:42:10]Read from MH i2c: E2 0E 00 87 19 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 F4 [10:42:10]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:42:10]wFMCommunicate OK [10:42:10]SAM_PROTO_GetShiftState done [10:42:10]FM_GetShiftState done [10:42:10]opened in 1722125364 [10:42:10]opened+sec_in_day 1722211764 [10:42:10]quantity*price = 100005 [10:42:10]sum+1 = 100006 [10:42:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 104 28.07.2024 10:42 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118435 ФПД: 43617450976323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T104213&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118435&fm=43617450976323&tin=02508201610067®Number=0000000000092660&sum=100000 [10:42:11]StoreToDocumentArchive [10:42:11]shift 433 fd 118435 [10:42:11]save to /storage/0433/doc_00118435 [10:42:11]save last doc name /storage/0433/doc_00118435 to /storage/kkm_last_doc_name [10:42:11]save OK [10:42:11]Clear old archive folders... [10:42:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:11]tlvbuf is 0013D2A0 [10:42:11]SAM_PROTO_ClearQueue [10:42:11]wFMCommunicate request_size=4 [10:42:11]MH_SAM_APDU [10:42:11]CAPDU: 80 09 00 00 [10:42:11]Write to MH i2c: E2 08 00 94 19 80 09 00 00 00 00 00 00 1F [10:42:11]Write i2c OK [10:42:11]MH_I2C_Read... [10:42:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:11]Read from MH i2c: E2 [10:42:11]MH_I2C_Read... [10:42:11]Read from MH i2c: E2 03 00 [10:42:11]MH_I2C_Read... [10:42:11]Read from MH i2c: E2 03 00 94 19 00 90 00 21 [10:42:11]RAPDU: 90 00 [10:42:11]wFMCommunicate OK [10:42:11]SAM_PROTO_ClearQueue done [10:42:11]KKMCreateOFDPacket [10:42:11]OFDProtocolAddRootSTLVToBuf [10:42:11]FM_MakeSignedData [10:42:11]FM_MakeSignedData [10:42:11]SAM_PROTO_SignData [10:42:11]wFMCommunicate request_size=4 [10:42:11]MH_SAM_APDU [10:42:11]CAPDU: 80 0D 01 02 [10:42:11]Write to MH i2c: E2 08 00 95 19 80 0D 01 02 00 00 00 00 27 [10:42:11]Write i2c OK [10:42:11]MH_I2C_Read... [10:42:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:12]Read from MH i2c: E2 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: E2 03 00 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: E2 03 00 95 19 00 90 00 22 [10:42:12]RAPDU: 90 00 [10:42:12]wFMCommunicate OK [10:42:12]wFMCommunicate request_size=255 [10:42:12]MH_SAM_APDU [10:42:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 85 20 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A3 CE 01 00 35 04 06 00 27 [10:42:12]Write to MH i2c: E2 02 01 96 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 85 20 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A3 CE 01 00 35 04 06 00 27 00 00 9E [10:42:12]Write i2c OK [10:42:12]MH_I2C_Read... [10:42:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:12]Read from MH i2c: E2 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: E2 03 00 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: E2 03 00 96 19 00 90 00 23 [10:42:12]RAPDU: 90 00 [10:42:12]wFMCommunicate OK [10:42:12]wFMCommunicate request_size=10 [10:42:12]MH_SAM_APDU [10:42:12]CAPDU: 80 0D 02 02 05 AB 7A AB E4 43 [10:42:12]Write to MH i2c: E2 0D 00 97 19 80 0D 02 02 05 00 AB 7A AB E4 43 00 00 2B [10:42:12]Write i2c OK [10:42:12]MH_I2C_Read... [10:42:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:12]Read from MH i2c: E2 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: E2 03 00 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: E2 03 00 97 19 00 90 00 24 [10:42:12]RAPDU: 90 00 [10:42:12]wFMCommunicate OK [10:42:12]wFMCommunicate request_size=4 [10:42:12]MH_SAM_APDU [10:42:12]CAPDU: 80 0D 03 02 [10:42:12]Write to MH i2c: E2 08 00 98 19 80 0D 03 02 00 00 00 00 2C [10:42:12]Write i2c OK [10:42:12]MH_I2C_Read... [10:42:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:12]Read from MH i2c: E2 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: E2 0B 00 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: E2 0B 00 98 19 00 2E EB 01 42 81 11 03 3A 90 00 58 [10:42:12]RAPDU: 2E EB 01 42 81 11 03 3A 90 00 [10:42:12]wFMCommunicate OK [10:42:12]SAM_PROTO_SignData done [10:42:12]FM_MakeSignedData done [10:42:12]CreateOFDProtocolMessage [10:42:12]wFMCommunicate request_size=4 [10:42:12]MH_SAM_APDU [10:42:12]CAPDU: 80 11 00 00 [10:42:12]Write to MH i2c: E2 08 00 99 19 80 11 00 00 00 00 00 00 2C [10:42:12]Write i2c OK [10:42:12]MH_I2C_Read... [10:42:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:12]Read from MH i2c: E2 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: E2 17 00 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: E2 17 00 99 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 87 [10:42:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:42:12]wFMCommunicate OK [10:42:12]CreateOFDProtocolMessage done [10:42:12]OFDSenderStorePacket 118435 [10:42:12]StoreOFDPacket docnum=118435 [10:42:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 1E B9 07 01 EC 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 85 20 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A3 CE 01 00 35 04 06 00 27 AB 7A AB E4 43 2E EB 01 42 81 11 03 3A [10:42:12]CheckFolder [10:42:12]dirname=/storage/ofd_packets [10:42:12]CheckFolder done [10:42:12]ProducePacketName [10:42:12]name=ofd_packets/00118435 [10:42:12]NVStorageSaveData ofd_packets/00118435 [10:42:12]File name is /storage/ofd_packets/00118435 [10:42:12]Write 301 bytes [10:42:12]NVStorageSaveData done [10:42:12]OFDSenderStorePacket done [10:42:12]KKMCreateOFDPacket done [10:42:12]NVStorageSaveData kkm_last_timestamp [10:42:12]File name is /storage/kkm_last_timestamp [10:42:12]Write 4 bytes [10:42:12]NVStorageSaveData done [10:42:12]ExternCall_PrintAddStr [10:42:12]wPrintStart [10:42:12]Write to MH i2c: 01 00 00 9A 19 B3 [10:42:12]Write i2c OK [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: 01 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: 01 07 00 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: 01 07 00 9A 19 00 00 00 00 00 FF 0F C8 [10:42:12]RasterBufferAndPrint [10:42:12]line Счет N : (1)949309 [10:42:12]line ИНН: 02508201610067 [10:42:12]line Контрольно-Кассовый Чек [10:42:12]line ПРОДАЖА [10:42:12]line ТРК (МРК, ГНК) : 61 [10:42:12]line Товар: 2710124130 [10:42:12]line Аи-92-К-4 [10:42:12]line 14.750 * 67.80 [10:42:12]line = 1000.05 [10:42:12]line НДС 12% НСП 1% [10:42:12]line > о реализуемом товаре [10:42:12]line ОКРУГЛЕНИЕ: -0.05 [10:42:12]line ИТОГО: 1000.00 [10:42:12]line Внесено: 1000.00 [10:42:12]line СДАЧА: 0.00 [10:42:12]line НСП 1% : 8.85 [10:42:12]line НДС 12% : 106.20 [10:42:12]line Наличными: 1000.00 [10:42:12]line Безнал.: 0.00 [10:42:12]line Место: АЗС № 134 "Партнер Нефть" [10:42:12]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:42:12]line СНО: Общий режим [10:42:12]line Чек 104 28.07.2024 10:42 [10:42:12]line Смена: 433 ФФД: 1.0 [10:42:12]line ЗНМ: 0300000044 [10:42:12]line РНМ: 0000000000092660 [10:42:12]line Версия ККМ: 001 [10:42:12]line ФМ: 0000000000874939 [10:42:12]line ФД: 118435 [10:42:12]line ФПД: 43617450976323 [10:42:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T104213&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118435&fm=43617450976323&tin=02508201610067®Number=0000000000092660&sum=100000 [10:42:12]OFD Sender: Processing packet 118435 [packets to send 86, broken 85] [10:42:12]ProducePacketName [10:42:12]name=ofd_packets/00118435 [10:42:12]OFD Sender: To server: pG, [10:42:12]CommunicateWithHost lk.salyk.kg:30040 [10:42:12]ConnectInit lk.salyk.kg [10:42:12]written 0, free lines is 4095 [10:42:12]Connected sock=10 [10:42: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 39 33 39 0F 01 00 00 1E B9 07 01 EC 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 85 20 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A3 CE 01 00 35 04 06 00 27 AB 7A AB E4 43 2E EB 01 42 81 11 03 3A [10:42:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 16 CA 47 00 2F 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 39 33 39 10 04 04 00 A3 CE 01 00 F4 03 04 00 15 CE A5 66 B6 04 01 00 00 EB 18 6C F2 2A FD 3A C7 [10:42:13]CommunicateWithHost err = 0 [10:42:13]CheckOFDResponse [10:42:13]1017 (14) - 77093643461234 [10:42:13]1041 (16) - 0000000000874939 [10:42:13]1040 (4) - 118435 [10:42:13]1012 (4) - 28.07.2024 04:50 [10:42:13]1206 (1) - 0 [10:42:13]OFD Sender: Remove packet 118435 [10:42:13]ProducePacketName [10:42:13]name=ofd_packets/00118435 [10:42:13]NVStorageDeleteData [10:42:13]Write to MH i2c: 01 00 00 C4 19 DD [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: 01 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: 01 07 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: 01 07 00 C4 19 00 00 00 00 00 E1 0C D1 [10:42:13]RasterBufferAndPrint [10:42:13]line [10:42:13]line [10:42:13]line [10:42:13]line [10:42:13]line [10:42:13]written 0, free lines is 3302 [10:42:13]MH_Cut [10:42:13]Write to MH i2c: D1 01 00 CB 19 01 B6 [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: D1 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: D1 01 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: D1 01 00 CB 19 00 B5 [10:42:13]Write to MH i2c: 01 00 00 CC 19 E5 [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]OFD Sender: No OFD packet to send [10:42:13]*** Cut start [10:42:13]*** Partial cut [10:42:13]*** CUTSNS_PIN = 1 [10:42:14]*** CUTSNS_PIN = 0 [10:42:14]*** Brake cut motor [10:42:14]Read from MH i2c: 01 [10:42:14]MH_I2C_Read... [10:42:14]*** Stop cut motor [10:42:14]*** Cut end [10:42:14]Read from MH i2c: 01 07 00 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: 01 07 00 CC 19 00 00 00 00 00 FF 0F FA [10:42:14]process_action close_receipt done [10:42:14]requested_data is exist [10:42:14]produce_requested_data [10:42:14]requested_item fm.sn is exist - process it [10:42:14]wFMCommunicate request_size=4 [10:42:14]MH_SAM_APDU [10:42:14]CAPDU: 80 11 00 00 [10:42:14]Write to MH i2c: E2 08 00 CD 19 80 11 00 00 00 00 00 00 60 [10:42:14]Write i2c OK [10:42:14]MH_I2C_Read... [10:42:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:14]Read from MH i2c: E2 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: E2 17 00 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: E2 17 00 CD 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BB [10:42:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:42:14]wFMCommunicate OK [10:42:14]requested_item fd.num is exist - process it [10:42:14]SAM_PROTO_GetFieldsCounters [10:42:14]wFMCommunicate request_size=4 [10:42:14]MH_SAM_APDU [10:42:14]CAPDU: 80 13 00 00 [10:42:14]Write to MH i2c: E2 08 00 CE 19 80 13 00 00 00 00 00 00 63 [10:42:14]Write i2c OK [10:42:14]MH_I2C_Read... [10:42:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:14]Read from MH i2c: E2 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: E2 62 00 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: E2 62 00 CE 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A3 CE 01 00 0E 04 04 00 B1 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 E6 [10:42:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A3 CE 01 00 0E 04 04 00 B1 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 [10:42:14]wFMCommunicate OK [10:42:14]SAM_PROTO_GetFieldsCounters done [10:42:14]requested_item shift.num is exist - process it [10:42:14]requested_item shift.opened is exist - process it [10:42:14]req_shift_opened [10:42:14]FM_GetShiftState [10:42:14]SAM_PROTO_GetShiftState [10:42:14]wFMCommunicate request_size=4 [10:42:14]MH_SAM_APDU [10:42:14]CAPDU: 80 13 01 00 [10:42:14]Write to MH i2c: E2 08 00 CF 19 80 13 01 00 00 00 00 00 65 [10:42:14]Write i2c OK [10:42:14]MH_I2C_Read... [10:42:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:14]Read from MH i2c: E2 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: E2 0E 00 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: E2 0E 00 CF 19 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 3C [10:42:14]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:42:14]wFMCommunicate OK [10:42:14]SAM_PROTO_GetShiftState done [10:42:14]FM_GetShiftState done [10:42:14]req_shift_opened done [10:42:14]requested_item shift.open_date is exist - process it [10:42:14]req_shift_open_date [10:42:14]req_shift_open_date done [10:42:14]produce_requested_data done [10:42:14]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118435,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [10:42:14]process_action_free close_receipt [10:42:14]json_value_free [10:42:14]json_value_free done [10:42:14]process_json_proto returns [10:42:14]Send response to host [10:42:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118435,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [10:42:14]free response buf [10:42:14]execute_script done [10:42:14]execute_script returns [10:42:14]free content buf [10:42:14]Sock 7.Close socket [10:42:14]Sock 7.Thread stoped [10:42:18]OFD Sender: No OFD packet to send [10:42:23]OFD Sender: No OFD packet to send [10:42:28]OFD Sender: No OFD packet to send [10:42:33]OFD Sender: No OFD packet to send [10:42:38]OFD Sender: No OFD packet to send [10:42:43]OFD Sender: No OFD packet to send [10:42:48]OFD Sender: No OFD packet to send [10:42:53]OFD Sender: No OFD packet to send [10:42:58]OFD Sender: No OFD packet to send [10:43:03]OFD Sender: No OFD packet to send [10:43:08]OFD Sender: No OFD packet to send [10:43:13]OFD Sender: No OFD packet to send [10:43:18]OFD Sender: No OFD packet to send [10:43:23]OFD Sender: No OFD packet to send [10:43:28]OFD Sender: No OFD packet to send [10:43:33]OFD Sender: No OFD packet to send [10:43:38]OFD Sender: No OFD packet to send [10:43:43]OFD Sender: No OFD packet to send [10:43:48]OFD Sender: No OFD packet to send [10:43:53]OFD Sender: No OFD packet to send [10:43:58]OFD Sender: No OFD packet to send [10:44:03]OFD Sender: No OFD packet to send [10:44:08]OFD Sender: No OFD packet to send [10:44:13]OFD Sender: No OFD packet to send [10:44:18]OFD Sender: No OFD packet to send [10:44:23]OFD Sender: No OFD packet to send [10:44:28]OFD Sender: No OFD packet to send [10:44:29]accept exits with 9 [10:44:29]New connection [10:44:29]New thread 3067067748 created [10:44:29]Thread 3066924388 joined [10:44:29]Waiting for new connection... [10:44:29] Sock 9.Parse request [10:44:29]Sock 9.Check first char [10:44:29]Sock 9.First char is OK [10:44:29]request: POST /json_proto HTTP/1.0 [10:44:29]Method: POST [10:44:29]URL: /json_proto [10:44:29]Method is POST - this is cgi request [10:44:29]url: /json_proto [10:44:29]query_string will be loaded in cgi processing [10:44:29]execute_cgi json_proto POST (null) [10:44:29]execute_cgi path=json_proto method=POST [10:44:29]POST find Content-Length [10:44:29]Host: 172.17.45.7:8080 [10:44:29]Content-Length: 677 [10:44:29]Content-Type: application/json [10:44:29] [10:44:29]POST finish read [10:44:29]Found Content-Length = 677 [10:44:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:29]execute_script... [10:44:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:29]POST & json_proto [10:44:29]process_json_proto [10:44:29]json parsed OK: [10:44:29]protocol is kg_v1.0 [10:44:29]action value=close_receipt [10:44:29]process_action close_receipt [10:44:29]cmd_close_receipt [10:44:29]MH_GetDate [10:44:29]Write to MH i2c: F0 00 00 D0 19 D8 [10:44:29]Write i2c OK [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: F0 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: F0 09 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: F0 09 00 D0 19 00 0F 21 A6 66 90 0F 3E 66 60 [10:44:29]GetLastDocTimeStamp 1722163333 [10:44:29]current date 1722163471 [10:44:29]FM_GetShiftState [10:44:29]SAM_PROTO_GetShiftState [10:44:29]wFMCommunicate request_size=4 [10:44:29]MH_SAM_APDU [10:44:29]CAPDU: 80 13 01 00 [10:44:29]Write to MH i2c: E2 08 00 D1 19 80 13 01 00 00 00 00 00 67 [10:44:29]Write i2c OK [10:44:29]MH_I2C_Read... [10:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:29]Read from MH i2c: E2 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 0E 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 0E 00 D1 19 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 3E [10:44:29]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:44:29]wFMCommunicate OK [10:44:29]SAM_PROTO_GetShiftState done [10:44:29]FM_GetShiftState done [10:44:29]opened in 1722125364 [10:44:29]opened+sec_in_day 1722211764 [10:44:29]quantity*price = 50010 [10:44:29]sum+1 = 50012 [10:44:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 105 28.07.2024 10:44 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118436 ФПД: 197744728186651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T104431&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118436&fm=197744728186651&tin=02508201610067®Number=0000000000092660&sum=50000 [10:44:30]StoreToDocumentArchive [10:44:30]shift 433 fd 118436 [10:44:30]save to /storage/0433/doc_00118436 [10:44:30]save last doc name /storage/0433/doc_00118436 to /storage/kkm_last_doc_name [10:44:30]save OK [10:44:30]Clear old archive folders... [10:44:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:44:30]tlvbuf is 001BB410 [10:44:30]SAM_PROTO_ClearQueue [10:44:30]wFMCommunicate request_size=4 [10:44:30]MH_SAM_APDU [10:44:30]CAPDU: 80 09 00 00 [10:44:30]Write to MH i2c: E2 08 00 DE 19 80 09 00 00 00 00 00 00 69 [10:44:30]Write i2c OK [10:44:30]MH_I2C_Read... [10:44:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:30]Read from MH i2c: E2 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: E2 03 00 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: E2 03 00 DE 19 00 90 00 6B [10:44:30]RAPDU: 90 00 [10:44:30]wFMCommunicate OK [10:44:30]SAM_PROTO_ClearQueue done [10:44:30]KKMCreateOFDPacket [10:44:30]OFDProtocolAddRootSTLVToBuf [10:44:30]FM_MakeSignedData [10:44:30]FM_MakeSignedData [10:44:30]SAM_PROTO_SignData [10:44:30]wFMCommunicate request_size=4 [10:44:30]MH_SAM_APDU [10:44:30]CAPDU: 80 0D 01 02 [10:44:30]Write to MH i2c: E2 08 00 DF 19 80 0D 01 02 00 00 00 00 71 [10:44:30]Write i2c OK [10:44:30]MH_I2C_Read... [10:44:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:30]Read from MH i2c: E2 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: E2 03 00 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: E2 03 00 DF 19 00 90 00 6C [10:44:30]RAPDU: 90 00 [10:44:30]wFMCommunicate OK [10:44:30]wFMCommunicate request_size=255 [10:44:30]MH_SAM_APDU [10:44:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 0F 21 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A4 CE 01 00 35 04 06 00 B3 [10:44:30]Write to MH i2c: E2 02 01 E0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 0F 21 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A4 CE 01 00 35 04 06 00 B3 00 00 59 [10:44:30]Write i2c OK [10:44:30]MH_I2C_Read... [10:44:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:31]Read from MH i2c: E2 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 03 00 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 03 00 E0 19 00 90 00 6D [10:44:31]RAPDU: 90 00 [10:44:31]wFMCommunicate OK [10:44:31]wFMCommunicate request_size=10 [10:44:31]MH_SAM_APDU [10:44:31]CAPDU: 80 0D 02 02 05 D9 08 47 9F 1B [10:44:31]Write to MH i2c: E2 0D 00 E1 19 80 0D 02 02 05 00 D9 08 47 9F 1B 00 00 60 [10:44:31]Write i2c OK [10:44:31]MH_I2C_Read... [10:44:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:31]Read from MH i2c: E2 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 03 00 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 03 00 E1 19 00 90 00 6E [10:44:31]RAPDU: 90 00 [10:44:31]wFMCommunicate OK [10:44:31]wFMCommunicate request_size=4 [10:44:31]MH_SAM_APDU [10:44:31]CAPDU: 80 0D 03 02 [10:44:31]Write to MH i2c: E2 08 00 E2 19 80 0D 03 02 00 00 00 00 76 [10:44:31]Write i2c OK [10:44:31]MH_I2C_Read... [10:44:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:31]Read from MH i2c: E2 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 0B 00 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 0B 00 E2 19 00 80 B9 EA 5E A6 12 42 59 90 00 4B [10:44:31]RAPDU: 80 B9 EA 5E A6 12 42 59 90 00 [10:44:31]wFMCommunicate OK [10:44:31]SAM_PROTO_SignData done [10:44:31]FM_MakeSignedData done [10:44:31]CreateOFDProtocolMessage [10:44:31]wFMCommunicate request_size=4 [10:44:31]MH_SAM_APDU [10:44:31]CAPDU: 80 11 00 00 [10:44:31]Write to MH i2c: E2 08 00 E3 19 80 11 00 00 00 00 00 00 76 [10:44:31]Write i2c OK [10:44:31]MH_I2C_Read... [10:44:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:31]Read from MH i2c: E2 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 17 00 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 17 00 E3 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D1 [10:44:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:44:31]wFMCommunicate OK [10:44:31]CreateOFDProtocolMessage done [10:44:31]OFDSenderStorePacket 118436 [10:44:31]StoreOFDPacket docnum=118436 [10:44:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AD A3 07 01 68 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 0F 21 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A4 CE 01 00 35 04 06 00 B3 D9 08 47 9F 1B 80 B9 EA 5E A6 12 42 59 [10:44:31]CheckFolder [10:44:31]dirname=/storage/ofd_packets [10:44:31]CheckFolder done [10:44:31]ProducePacketName [10:44:31]name=ofd_packets/00118436 [10:44:31]NVStorageSaveData ofd_packets/00118436 [10:44:31]File name is /storage/ofd_packets/00118436 [10:44:31]Write 301 bytes [10:44:31]NVStorageSaveData done [10:44:31]OFDSenderStorePacket done [10:44:31]KKMCreateOFDPacket done [10:44:31]NVStorageSaveData kkm_last_timestamp [10:44:31]File name is /storage/kkm_last_timestamp [10:44:31]Write 4 bytes [10:44:31]NVStorageSaveData done [10:44:31]ExternCall_PrintAddStr [10:44:31]wPrintStart [10:44:31]Write to MH i2c: 01 00 00 E4 19 FD [10:44:31]Write i2c OK [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: 01 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: 01 07 00 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: 01 07 00 E4 19 00 00 00 00 00 FF 0F 12 [10:44:31]RasterBufferAndPrint [10:44:31]line Счет N : (1)949310 [10:44:31]line ИНН: 02508201610067 [10:44:31]line Контрольно-Кассовый Чек [10:44:31]line ПРОДАЖА [10:44:31]line ТРК (МРК, ГНК) : 53 [10:44:31]line Товар: 2710124500 [10:44:31]line Аи-95-К-3 [10:44:31]line 6.740 * 74.20 [10:44:31]line = 500.11 [10:44:31]line НДС 12% НСП 1% [10:44:31]line > о реализуемом товаре [10:44:31]line ОКРУГЛЕНИЕ: -0.11 [10:44:31]line ИТОГО: 500.00 [10:44:31]line Внесено: 500.00 [10:44:31]line СДАЧА: 0.00 [10:44:31]line НСП 1% : 4.43 [10:44:31]line НДС 12% : 53.11 [10:44:31]line Наличными: 500.00 [10:44:31]line Безнал.: 0.00 [10:44:31]line Место: АЗС № 134 "Партнер Нефть" [10:44:31]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:44:31]line СНО: Общий режим [10:44:31]line Чек 105 28.07.2024 10:44 [10:44:31]line Смена: 433 ФФД: 1.0 [10:44:31]line ЗНМ: 0300000044 [10:44:31]line РНМ: 0000000000092660 [10:44:31]line Версия ККМ: 001 [10:44:31]line ФМ: 0000000000874939 [10:44:31]line ФД: 118436 [10:44:31]line ФПД: 197744728186651 [10:44:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T104431&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118436&fm=197744728186651&tin=02508201610067®Number=0000000000092660&sum=50000 [10:44:31]OFD Sender: Processing packet 118436 [packets to send 86, broken 85] [10:44:31]ProducePacketName [10:44:31]name=ofd_packets/00118436 [10:44:31]OFD Sender: To server: pG, [10:44:31]CommunicateWithHost lk.salyk.kg:30040 [10:44:31]ConnectInit lk.salyk.kg [10:44:31]written 0, free lines is 4095 [10:44:31]Connected sock=10 [10:44:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AD A3 07 01 68 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 0F 21 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A4 CE 01 00 35 04 06 00 B3 D9 08 47 9F 1B 80 B9 EA 5E A6 12 42 59 [10:44:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1B B5 47 00 AB A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A4 CE 01 00 F4 03 04 00 A0 CE A5 66 B6 04 01 00 00 DA 4C F9 A3 BE EA 90 B8 [10:44:31]CommunicateWithHost err = 0 [10:44:31]CheckOFDResponse [10:44:31]1017 (14) - 77093643461234 [10:44:31]1041 (16) - 0000000000874939 [10:44:31]1040 (4) - 118436 [10:44:31]1012 (4) - 28.07.2024 04:52 [10:44:31]1206 (1) - 0 [10:44:31]OFD Sender: Remove packet 118436 [10:44:31]ProducePacketName [10:44:31]name=ofd_packets/00118436 [10:44:31]NVStorageDeleteData [10:44:32]Write to MH i2c: 01 00 00 0E 1A 28 [10:44:32]Write i2c OK [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: 01 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: 01 07 00 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: 01 07 00 0E 1A 00 00 00 00 00 DC 0C 17 [10:44:32]RasterBufferAndPrint [10:44:32]line [10:44:32]line [10:44:32]line [10:44:32]line [10:44:32]line [10:44:32]written 0, free lines is 3299 [10:44:32]MH_Cut [10:44:32]Write to MH i2c: D1 01 00 15 1A 01 01 [10:44:32]Write i2c OK [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: D1 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: D1 01 00 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: D1 01 00 15 1A 00 00 [10:44:32]Write to MH i2c: 01 00 00 16 1A 30 [10:44:32]Write i2c OK [10:44:32]MH_I2C_Read... [10:44:32]OFD Sender: No OFD packet to send [10:44:32]*** Cut start [10:44:32]*** Partial cut [10:44:32]*** CUTSNS_PIN = 1 [10:44:32]*** CUTSNS_PIN = 0 [10:44:33]*** Brake cut motor [10:44:33]Read from MH i2c: 01 [10:44:33]MH_I2C_Read... [10:44:33]*** Stop cut motor [10:44:33]*** Cut end [10:44:33]Read from MH i2c: 01 07 00 [10:44:33]MH_I2C_Read... [10:44:33]Read from MH i2c: 01 07 00 16 1A 00 00 00 00 00 FF 0F 45 [10:44:33]process_action close_receipt done [10:44:33]requested_data is exist [10:44:33]produce_requested_data [10:44:33]requested_item fm.sn is exist - process it [10:44:33]wFMCommunicate request_size=4 [10:44:33]MH_SAM_APDU [10:44:33]CAPDU: 80 11 00 00 [10:44:33]Write to MH i2c: E2 08 00 17 1A 80 11 00 00 00 00 00 00 AB [10:44:33]Write i2c OK [10:44:33]MH_I2C_Read... [10:44:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:33]Read from MH i2c: E2 [10:44:33]MH_I2C_Read... [10:44:33]Read from MH i2c: E2 17 00 [10:44:33]MH_I2C_Read... [10:44:33]Read from MH i2c: E2 17 00 17 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 06 [10:44:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:44:33]wFMCommunicate OK [10:44:33]requested_item fd.num is exist - process it [10:44:33]SAM_PROTO_GetFieldsCounters [10:44:33]wFMCommunicate request_size=4 [10:44:33]MH_SAM_APDU [10:44:33]CAPDU: 80 13 00 00 [10:44:33]Write to MH i2c: E2 08 00 18 1A 80 13 00 00 00 00 00 00 AE [10:44:33]Write i2c OK [10:44:33]MH_I2C_Read... [10:44:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:33]Read from MH i2c: E2 [10:44:33]MH_I2C_Read... [10:44:33]Read from MH i2c: E2 62 00 [10:44:33]MH_I2C_Read... [10:44:33]Read from MH i2c: E2 62 00 18 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A4 CE 01 00 0E 04 04 00 B1 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 35 [10:44:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A4 CE 01 00 0E 04 04 00 B1 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 [10:44:33]wFMCommunicate OK [10:44:33]SAM_PROTO_GetFieldsCounters done [10:44:33]requested_item shift.num is exist - process it [10:44:33]requested_item shift.opened is exist - process it [10:44:33]req_shift_opened [10:44:33]FM_GetShiftState [10:44:33]SAM_PROTO_GetShiftState [10:44:33]wFMCommunicate request_size=4 [10:44:33]MH_SAM_APDU [10:44:33]CAPDU: 80 13 01 00 [10:44:33]Write to MH i2c: E2 08 00 19 1A 80 13 01 00 00 00 00 00 B0 [10:44:33]Write i2c OK [10:44:33]MH_I2C_Read... [10:44:33]Read from MH i2c: E2 [10:44:33]MH_I2C_Read... [10:44:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:33]Read from MH i2c: E2 0E 00 [10:44:33]MH_I2C_Read... [10:44:33]Read from MH i2c: E2 0E 00 19 1A 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 87 [10:44:33]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:44:33]wFMCommunicate OK [10:44:33]SAM_PROTO_GetShiftState done [10:44:33]FM_GetShiftState done [10:44:33]req_shift_opened done [10:44:33]requested_item shift.open_date is exist - process it [10:44:33]req_shift_open_date [10:44:33]req_shift_open_date done [10:44:33]produce_requested_data done [10:44:33]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118436,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [10:44:33]process_action_free close_receipt [10:44:33]json_value_free [10:44:33]json_value_free done [10:44:33]process_json_proto returns [10:44:33]Send response to host [10:44:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118436,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [10:44:33]free response buf [10:44:33]execute_script done [10:44:33]execute_script returns [10:44:33]free content buf [10:44:33]Sock 9.Close socket [10:44:33]Sock 9.Thread stoped [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:47]OFD Sender: No OFD packet to send [10:45:52]OFD Sender: No OFD packet to send [10:45:57]OFD Sender: No OFD packet to send [10:46:02]OFD Sender: No OFD packet to send [10:46:07]OFD Sender: No OFD packet to send [10:46:12]OFD Sender: No OFD packet to send [10:46:17]OFD Sender: No OFD packet to send [10:46:22]OFD Sender: No OFD packet to send [10:46:27]OFD Sender: No OFD packet to send [10:46:32]OFD Sender: No OFD packet to send [10:46:37]OFD Sender: No OFD packet to send [10:46:42]OFD Sender: No OFD packet to send [10:46:47]OFD Sender: No OFD packet to send [10:46:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:12]OFD Sender: No OFD packet to send [10:49:17]OFD Sender: No OFD packet to send [10:49:22]OFD Sender: No OFD packet to send [10:49:27]OFD Sender: No OFD packet to send [10:49:32]OFD Sender: No OFD packet to send [10:49:37]OFD Sender: No OFD packet to send [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:02]OFD Sender: No OFD packet to send [10:50:07]OFD Sender: No OFD packet to send [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:27]OFD Sender: No OFD packet to send [10:50:32]OFD Sender: No OFD packet to send [10:50:37]OFD Sender: No OFD packet to send [10:50:42]OFD Sender: No OFD packet to send [10:50:47]OFD Sender: No OFD packet to send [10:50:52]OFD Sender: No OFD packet to send [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:47]OFD Sender: No OFD packet to send [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:52:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:17]OFD Sender: No OFD packet to send [10:52:22]OFD Sender: No OFD packet to send [10:52:27]OFD Sender: No OFD packet to send [10:52:32]OFD Sender: No OFD packet to send [10:52:37]OFD Sender: No OFD packet to send [10:52:42]OFD Sender: No OFD packet to send [10:52:47]OFD Sender: No OFD packet to send [10:52:52]OFD Sender: No OFD packet to send [10:52:57]OFD Sender: No OFD packet to send [10:53:02]OFD Sender: No OFD packet to send [10:53:07]OFD Sender: No OFD packet to send [10:53:12]OFD Sender: No OFD packet to send [10:53:17]OFD Sender: No OFD packet to send [10:53:22]OFD Sender: No OFD packet to send [10:53:27]OFD Sender: No OFD packet to send [10:53:32]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:22]accept exits with 7 [10:54:22]New connection [10:54:22]New thread 3066924388 created [10:54:22]Thread 3067067748 joined [10:54:22]Waiting for new connection... [10:54:22] Sock 7.Parse request [10:54:22]Sock 7.Check first char [10:54:22]Sock 7.First char is OK [10:54:22]request: POST /json_proto HTTP/1.0 [10:54:22]Method: POST [10:54:22]URL: /json_proto [10:54:22]Method is POST - this is cgi request [10:54:22]url: /json_proto [10:54:22]query_string will be loaded in cgi processing [10:54:22]execute_cgi json_proto POST (null) [10:54:22]execute_cgi path=json_proto method=POST [10:54:22]POST find Content-Length [10:54:22]Host: 172.17.45.7:8080 [10:54:22]Content-Length: 682 [10:54:22]Content-Type: application/json [10:54:22] [10:54:22]POST finish read [10:54:22]Found Content-Length = 682 [10:54:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:22]execute_script... [10:54: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)949311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:22]POST & json_proto [10:54:22]process_json_proto [10:54:22]json parsed OK: [10:54:22]protocol is kg_v1.0 [10:54:22]action value=close_receipt [10:54:22]process_action close_receipt [10:54:22]cmd_close_receipt [10:54:22]MH_GetDate [10:54:22]Write to MH i2c: F0 00 00 1A 1A 23 [10:54:22]Write i2c OK [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: F0 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: F0 09 00 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: F0 09 00 1A 1A 00 61 23 A6 66 90 0F 3E 66 FF [10:54:22]GetLastDocTimeStamp 1722163471 [10:54:22]current date 1722164065 [10:54:22]FM_GetShiftState [10:54:22]SAM_PROTO_GetShiftState [10:54:22]wFMCommunicate request_size=4 [10:54:22]MH_SAM_APDU [10:54:22]CAPDU: 80 13 01 00 [10:54:22]Write to MH i2c: E2 08 00 1B 1A 80 13 01 00 00 00 00 00 B2 [10:54:22]Write i2c OK [10:54:22]MH_I2C_Read... [10:54:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:22]Read from MH i2c: E2 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: E2 0E 00 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: E2 0E 00 1B 1A 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 89 [10:54:22]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:54:22]wFMCommunicate OK [10:54:22]SAM_PROTO_GetShiftState done [10:54:22]FM_GetShiftState done [10:54:22]opened in 1722125364 [10:54:22]opened+sec_in_day 1722211764 [10:54:22]quantity*price = 100021 [10:54:22]sum+1 = 100023 [10:54:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 106 28.07.2024 10:54 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118437 ФПД: 105096161791516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T105425&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118437&fm=105096161791516&tin=02508201610067®Number=0000000000092660&sum=100000 [10:54:23]StoreToDocumentArchive [10:54:23]shift 433 fd 118437 [10:54:23]save to /storage/0433/doc_00118437 [10:54:23]save last doc name /storage/0433/doc_00118437 to /storage/kkm_last_doc_name [10:54:23]save OK [10:54:23]Clear old archive folders... [10:54:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:23]tlvbuf is B6EC4870 [10:54:23]SAM_PROTO_ClearQueue [10:54:23]wFMCommunicate request_size=4 [10:54:23]MH_SAM_APDU [10:54:23]CAPDU: 80 09 00 00 [10:54:23]Write to MH i2c: E2 08 00 28 1A 80 09 00 00 00 00 00 00 B4 [10:54:23]Write i2c OK [10:54:23]MH_I2C_Read... [10:54:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:23]Read from MH i2c: E2 [10:54:23]MH_I2C_Read... [10:54:23]Read from MH i2c: E2 03 00 [10:54:23]MH_I2C_Read... [10:54:23]Read from MH i2c: E2 03 00 28 1A 00 90 00 B6 [10:54:23]RAPDU: 90 00 [10:54:23]wFMCommunicate OK [10:54:23]SAM_PROTO_ClearQueue done [10:54:23]KKMCreateOFDPacket [10:54:23]OFDProtocolAddRootSTLVToBuf [10:54:23]FM_MakeSignedData [10:54:23]FM_MakeSignedData [10:54:23]SAM_PROTO_SignData [10:54:23]wFMCommunicate request_size=4 [10:54:23]MH_SAM_APDU [10:54:23]CAPDU: 80 0D 01 02 [10:54:23]Write to MH i2c: E2 08 00 29 1A 80 0D 01 02 00 00 00 00 BC [10:54:23]Write i2c OK [10:54:23]MH_I2C_Read... [10:54:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:24]Read from MH i2c: E2 [10:54:24]MH_I2C_Read... [10:54:24]Read from MH i2c: E2 03 00 [10:54:24]MH_I2C_Read... [10:54:24]Read from MH i2c: E2 03 00 29 1A 00 90 00 B7 [10:54:24]RAPDU: 90 00 [10:54:24]wFMCommunicate OK [10:54:24]wFMCommunicate request_size=255 [10:54:24]MH_SAM_APDU [10:54:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 61 23 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A5 CE 01 00 35 04 06 00 5F [10:54:24]Write to MH i2c: E2 02 01 2A 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 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 61 23 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A5 CE 01 00 35 04 06 00 5F 00 00 EB [10:54:24]Write i2c OK [10:54:24]MH_I2C_Read... [10:54:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:24]Read from MH i2c: E2 [10:54:24]MH_I2C_Read... [10:54:24]Read from MH i2c: E2 03 00 [10:54:24]MH_I2C_Read... [10:54:24]Read from MH i2c: E2 03 00 2A 1A 00 90 00 B8 [10:54:24]RAPDU: 90 00 [10:54:24]wFMCommunicate OK [10:54:24]wFMCommunicate request_size=10 [10:54:24]MH_SAM_APDU [10:54:24]CAPDU: 80 0D 02 02 05 95 9B 64 0E 1C [10:54:24]Write to MH i2c: E2 0D 00 2B 1A 80 0D 02 02 05 00 95 9B 64 0E 1C 00 00 87 [10:54:24]Write i2c OK [10:54:24]MH_I2C_Read... [10:54:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:24]Read from MH i2c: E2 [10:54:24]MH_I2C_Read... [10:54:24]Read from MH i2c: E2 03 00 [10:54:24]MH_I2C_Read... [10:54:24]Read from MH i2c: E2 03 00 2B 1A 00 90 00 B9 [10:54:24]RAPDU: 90 00 [10:54:24]wFMCommunicate OK [10:54:24]wFMCommunicate request_size=4 [10:54:24]MH_SAM_APDU [10:54:24]CAPDU: 80 0D 03 02 [10:54:24]Write to MH i2c: E2 08 00 2C 1A 80 0D 03 02 00 00 00 00 C1 [10:54:24]Write i2c OK [10:54:24]MH_I2C_Read... [10:54:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:24]Read from MH i2c: E2 [10:54:24]MH_I2C_Read... [10:54:24]Read from MH i2c: E2 0B 00 [10:54:24]MH_I2C_Read... [10:54:24]Read from MH i2c: E2 0B 00 2C 1A 00 3D 47 C1 36 1D 14 E3 39 90 00 8A [10:54:24]RAPDU: 3D 47 C1 36 1D 14 E3 39 90 00 [10:54:24]wFMCommunicate OK [10:54:24]SAM_PROTO_SignData done [10:54:24]FM_MakeSignedData done [10:54:24]CreateOFDProtocolMessage [10:54:24]wFMCommunicate request_size=4 [10:54:24]MH_SAM_APDU [10:54:24]CAPDU: 80 11 00 00 [10:54:24]Write to MH i2c: E2 08 00 2D 1A 80 11 00 00 00 00 00 00 C1 [10:54:24]Write i2c OK [10:54:24]MH_I2C_Read... [10:54:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:24]Read from MH i2c: E2 [10:54:24]MH_I2C_Read... [10:54:24]Read from MH i2c: E2 17 00 [10:54:24]MH_I2C_Read... [10:54:24]Read from MH i2c: E2 17 00 2D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1C [10:54:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:54:24]wFMCommunicate OK [10:54:24]CreateOFDProtocolMessage done [10:54:24]OFDSenderStorePacket 118437 [10:54:24]StoreOFDPacket docnum=118437 [10:54:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CF 49 07 01 F6 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 61 23 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A5 CE 01 00 35 04 06 00 5F 95 9B 64 0E 1C 3D 47 C1 36 1D 14 E3 39 [10:54:24]CheckFolder [10:54:24]dirname=/storage/ofd_packets [10:54:24]CheckFolder done [10:54:24]ProducePacketName [10:54:24]name=ofd_packets/00118437 [10:54:24]NVStorageSaveData ofd_packets/00118437 [10:54:24]File name is /storage/ofd_packets/00118437 [10:54:24]Write 301 bytes [10:54:24]NVStorageSaveData done [10:54:24]OFDSenderStorePacket done [10:54:24]KKMCreateOFDPacket done [10:54:24]NVStorageSaveData kkm_last_timestamp [10:54:24]File name is /storage/kkm_last_timestamp [10:54:24]Write 4 bytes [10:54:24]NVStorageSaveData done [10:54:24]ExternCall_PrintAddStr [10:54:24]wPrintStart [10:54:24]Write to MH i2c: 01 00 00 2E 1A 48 [10:54:24]Write i2c OK [10:54:24]MH_I2C_Read... [10:54:24]Read from MH i2c: 01 [10:54:24]MH_I2C_Read... [10:54:24]Read from MH i2c: 01 07 00 [10:54:24]MH_I2C_Read... [10:54:24]Read from MH i2c: 01 07 00 2E 1A 00 00 00 00 00 FF 0F 5D [10:54:24]RasterBufferAndPrint [10:54:24]line Счет N : (1)949311 [10:54:24]line ИНН: 02508201610067 [10:54:24]line Контрольно-Кассовый Чек [10:54:24]line ПРОДАЖА [10:54:24]line ТРК (МРК, ГНК) : 43 [10:54:24]line Товар: 2710124500 [10:54:24]line Аи-95-К-3 [10:54:24]line 13.480 * 74.20 [10:54:24]line = 1000.22 [10:54:24]line НДС 12% НСП 1% [10:54:24]line > о реализуемом товаре [10:54:24]line ОКРУГЛЕНИЕ: -0.22 [10:54:24]line ИТОГО: 1000.00 [10:54:24]line Внесено: 1000.00 [10:54:24]line СДАЧА: 0.00 [10:54:24]line НСП 1% : 8.85 [10:54:24]line НДС 12% : 106.22 [10:54:24]line Наличными: 1000.00 [10:54:24]line Безнал.: 0.00 [10:54:24]line Место: АЗС № 134 "Партнер Нефть" [10:54:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:54:24]line СНО: Общий режим [10:54:24]line Чек 106 28.07.2024 10:54 [10:54:24]line Смена: 433 ФФД: 1.0 [10:54:24]line ЗНМ: 0300000044 [10:54:24]line РНМ: 0000000000092660 [10:54:24]line Версия ККМ: 001 [10:54:24]line ФМ: 0000000000874939 [10:54:24]line ФД: 118437 [10:54:24]line ФПД: 105096161791516 [10:54:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T105425&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118437&fm=105096161791516&tin=02508201610067®Number=0000000000092660&sum=100000 [10:54:24]OFD Sender: Processing packet 118437 [packets to send 86, broken 85] [10:54:24]ProducePacketName [10:54:24]name=ofd_packets/00118437 [10:54:24]OFD Sender: To server: pG, [10:54:24]CommunicateWithHost lk.salyk.kg:30040 [10:54:24]ConnectInit lk.salyk.kg [10:54:24]written 0, free lines is 4095 [10:54:24]Connected sock=10 [10:54:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CF 49 07 01 F6 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 61 23 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A5 CE 01 00 35 04 06 00 5F 95 9B 64 0E 1C 3D 47 C1 36 1D 14 E3 39 [10:54:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9B 66 47 00 C1 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 39 33 39 10 04 04 00 A5 CE 01 00 F4 03 04 00 F1 D0 A5 66 B6 04 01 00 00 02 43 7C DD 31 F5 D9 34 [10:54:25]CommunicateWithHost err = 0 [10:54:25]CheckOFDResponse [10:54:25]1017 (14) - 77093643461234 [10:54:25]1041 (16) - 0000000000874939 [10:54:25]1040 (4) - 118437 [10:54:25]1012 (4) - 28.07.2024 05:02 [10:54:25]1206 (1) - 0 [10:54:25]OFD Sender: Remove packet 118437 [10:54:25]ProducePacketName [10:54:25]name=ofd_packets/00118437 [10:54:25]NVStorageDeleteData [10:54:25]Write to MH i2c: 01 00 00 58 1A 72 [10:54:25]Write i2c OK [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: 01 [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: 01 07 00 [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: 01 07 00 58 1A 00 00 00 00 00 EE 0C 73 [10:54:25]RasterBufferAndPrint [10:54:25]line [10:54:25]line [10:54:25]line [10:54:25]line [10:54:25]line [10:54:25]written 0, free lines is 3316 [10:54:25]MH_Cut [10:54:25]Write to MH i2c: D1 01 00 5F 1A 01 4B [10:54:25]Write i2c OK [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: D1 [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: D1 01 00 [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: D1 01 00 5F 1A 00 4A [10:54:25]Write to MH i2c: 01 00 00 60 1A 7A [10:54:25]Write i2c OK [10:54:25]MH_I2C_Read... [10:54:25]OFD Sender: No OFD packet to send [10:54:25]*** Cut start [10:54:25]*** Partial cut [10:54:25]*** CUTSNS_PIN = 1 [10:54:26]*** CUTSNS_PIN = 0 [10:54:26]*** Brake cut motor [10:54:26]Read from MH i2c: 01 [10:54:26]MH_I2C_Read... [10:54:26]*** Stop cut motor [10:54:26]*** Cut end [10:54:26]Read from MH i2c: 01 07 00 [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: 01 07 00 60 1A 00 00 00 00 00 FF 0F 8F [10:54:26]process_action close_receipt done [10:54:26]requested_data is exist [10:54:26]produce_requested_data [10:54:26]requested_item fm.sn is exist - process it [10:54:26]wFMCommunicate request_size=4 [10:54:26]MH_SAM_APDU [10:54:26]CAPDU: 80 11 00 00 [10:54:26]Write to MH i2c: E2 08 00 61 1A 80 11 00 00 00 00 00 00 F5 [10:54:26]Write i2c OK [10:54:26]MH_I2C_Read... [10:54:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:26]Read from MH i2c: E2 [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: E2 17 00 [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: E2 17 00 61 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 50 [10:54:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:54:26]wFMCommunicate OK [10:54:26]requested_item fd.num is exist - process it [10:54:26]SAM_PROTO_GetFieldsCounters [10:54:26]wFMCommunicate request_size=4 [10:54:26]MH_SAM_APDU [10:54:26]CAPDU: 80 13 00 00 [10:54:26]Write to MH i2c: E2 08 00 62 1A 80 13 00 00 00 00 00 00 F8 [10:54:26]Write i2c OK [10:54:26]MH_I2C_Read... [10:54:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:26]Read from MH i2c: E2 [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: E2 62 00 [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: E2 62 00 62 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A5 CE 01 00 0E 04 04 00 B1 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 83 [10:54:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A5 CE 01 00 0E 04 04 00 B1 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 [10:54:26]wFMCommunicate OK [10:54:26]SAM_PROTO_GetFieldsCounters done [10:54:26]requested_item shift.num is exist - process it [10:54:26]requested_item shift.opened is exist - process it [10:54:26]req_shift_opened [10:54:26]FM_GetShiftState [10:54:26]SAM_PROTO_GetShiftState [10:54:26]wFMCommunicate request_size=4 [10:54:26]MH_SAM_APDU [10:54:26]CAPDU: 80 13 01 00 [10:54:26]Write to MH i2c: E2 08 00 63 1A 80 13 01 00 00 00 00 00 FA [10:54:26]Write i2c OK [10:54:26]MH_I2C_Read... [10:54:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:26]Read from MH i2c: E2 [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: E2 0E 00 [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: E2 0E 00 63 1A 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 D1 [10:54:26]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:54:26]wFMCommunicate OK [10:54:26]SAM_PROTO_GetShiftState done [10:54:26]FM_GetShiftState done [10:54:26]req_shift_opened done [10:54:26]requested_item shift.open_date is exist - process it [10:54:26]req_shift_open_date [10:54:26]req_shift_open_date done [10:54:26]produce_requested_data done [10:54:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118437,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [10:54:26]process_action_free close_receipt [10:54:26]json_value_free [10:54:26]json_value_free done [10:54:26]process_json_proto returns [10:54:26]Send response to host [10:54:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118437,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [10:54:26]free response buf [10:54:26]execute_script done [10:54:26]execute_script returns [10:54:26]free content buf [10:54:26]Sock 7.Close socket [10:54:26]Sock 7.Thread stoped [10:54:30]OFD Sender: No OFD packet to send [10:54:35]OFD Sender: No OFD packet to send [10:54:40]OFD Sender: No OFD packet to send [10:54:45]OFD Sender: No OFD packet to send [10:54:50]OFD Sender: No OFD packet to send [10:54:55]OFD Sender: No OFD packet to send [10:55:00]OFD Sender: No OFD packet to send [10:55:05]OFD Sender: No OFD packet to send [10:55:10]OFD Sender: No OFD packet to send [10:55:15]OFD Sender: No OFD packet to send [10:55:20]OFD Sender: No OFD packet to send [10:55:25]OFD Sender: No OFD packet to send [10:55:30]OFD Sender: No OFD packet to send [10:55:35]OFD Sender: No OFD packet to send [10:55:40]OFD Sender: No OFD packet to send [10:55:45]OFD Sender: No OFD packet to send [10:55:50]OFD Sender: No OFD packet to send [10:55:55]OFD Sender: No OFD packet to send [10:56:00]OFD Sender: No OFD packet to send [10:56:05]OFD Sender: No OFD packet to send [10:56:10]OFD Sender: No OFD packet to send [10:56:15]OFD Sender: No OFD packet to send [10:56:20]OFD Sender: No OFD packet to send [10:56:25]OFD Sender: No OFD packet to send [10:56:30]OFD Sender: No OFD packet to send [10:56:35]OFD Sender: No OFD packet to send [10:56:40]OFD Sender: No OFD packet to send [10:56:45]accept exits with 9 [10:56:45]New connection [10:56:45]New thread 3067067748 created [10:56:45]Thread 3066924388 joined [10:56:45]Waiting for new connection... [10:56:45] Sock 9.Parse request [10:56:45]Sock 9.Check first char [10:56:45]Sock 9.First char is OK [10:56:45]request: POST /json_proto HTTP/1.0 [10:56:45]Method: POST [10:56:45]URL: /json_proto [10:56:45]Method is POST - this is cgi request [10:56:45]url: /json_proto [10:56:45]query_string will be loaded in cgi processing [10:56:45]execute_cgi json_proto POST (null) [10:56:45]execute_cgi path=json_proto method=POST [10:56:45]POST find Content-Length [10:56:45]Host: 172.17.45.7:8080 [10:56:45]Content-Length: 677 [10:56:45]Content-Type: application/json [10:56:45] [10:56:45]POST finish read [10:56:45]Found Content-Length = 677 [10:56:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:56:45]execute_script... [10:56:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:56:45]POST & json_proto [10:56:45]process_json_proto [10:56:45]json parsed OK: [10:56:45]protocol is kg_v1.0 [10:56:45]action value=close_receipt [10:56:45]process_action close_receipt [10:56:45]cmd_close_receipt [10:56:45]MH_GetDate [10:56:45]Write to MH i2c: F0 00 00 64 1A 6D [10:56:45]Write i2c OK [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: F0 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: F0 09 00 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: F0 09 00 64 1A 00 EF 23 A6 66 90 0F 3E 66 D7 [10:56:45]GetLastDocTimeStamp 1722164065 [10:56:45]current date 1722164207 [10:56:45]FM_GetShiftState [10:56:45]SAM_PROTO_GetShiftState [10:56:45]wFMCommunicate request_size=4 [10:56:45]MH_SAM_APDU [10:56:45]CAPDU: 80 13 01 00 [10:56:45]Write to MH i2c: E2 08 00 65 1A 80 13 01 00 00 00 00 00 FC [10:56:45]Write i2c OK [10:56:45]MH_I2C_Read... [10:56:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:45]Read from MH i2c: E2 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 0E 00 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 0E 00 65 1A 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 D3 [10:56:45]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:56:45]wFMCommunicate OK [10:56:45]SAM_PROTO_GetShiftState done [10:56:45]FM_GetShiftState done [10:56:45]opened in 1722125364 [10:56:45]opened+sec_in_day 1722211764 [10:56:45]quantity*price = 40002 [10:56:45]sum+1 = 40003 [10:56:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 107 28.07.2024 10:56 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118438 ФПД: 19420198334375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T105647&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118438&fm=19420198334375&tin=02508201610067®Number=0000000000092660&sum=40000 [10:56:46]StoreToDocumentArchive [10:56:46]shift 433 fd 118438 [10:56:46]save to /storage/0433/doc_00118438 [10:56:46]save last doc name /storage/0433/doc_00118438 to /storage/kkm_last_doc_name [10:56:46]save OK [10:56:46]Clear old archive folders... [10:56:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:56:46]tlvbuf is 001BB0D0 [10:56:46]SAM_PROTO_ClearQueue [10:56:46]wFMCommunicate request_size=4 [10:56:46]MH_SAM_APDU [10:56:46]CAPDU: 80 09 00 00 [10:56:46]Write to MH i2c: E2 08 00 72 1A 80 09 00 00 00 00 00 00 FE [10:56:46]Write i2c OK [10:56:46]MH_I2C_Read... [10:56:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:46]Read from MH i2c: E2 [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: E2 03 00 [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: E2 03 00 72 1A 00 90 00 00 [10:56:46]RAPDU: 90 00 [10:56:46]wFMCommunicate OK [10:56:46]SAM_PROTO_ClearQueue done [10:56:46]KKMCreateOFDPacket [10:56:46]OFDProtocolAddRootSTLVToBuf [10:56:46]FM_MakeSignedData [10:56:46]FM_MakeSignedData [10:56:46]SAM_PROTO_SignData [10:56:46]wFMCommunicate request_size=4 [10:56:46]MH_SAM_APDU [10:56:46]CAPDU: 80 0D 01 02 [10:56:46]Write to MH i2c: E2 08 00 73 1A 80 0D 01 02 00 00 00 00 06 [10:56:46]Write i2c OK [10:56:46]MH_I2C_Read... [10:56:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:46]Read from MH i2c: E2 [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: E2 03 00 [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: E2 03 00 73 1A 00 90 00 01 [10:56:46]RAPDU: 90 00 [10:56:46]wFMCommunicate OK [10:56:46]wFMCommunicate request_size=255 [10:56:46]MH_SAM_APDU [10:56: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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 6B 00 00 00 F4 03 04 00 EF 23 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A6 CE 01 00 35 04 06 00 11 [10:56:46]Write to MH i2c: E2 02 01 74 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 6B 00 00 00 F4 03 04 00 EF 23 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A6 CE 01 00 35 04 06 00 11 00 00 30 [10:56:46]Write i2c OK [10:56:46]MH_I2C_Read... [10:56:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:46]Read from MH i2c: E2 [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: E2 03 00 [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: E2 03 00 74 1A 00 90 00 02 [10:56:46]RAPDU: 90 00 [10:56:46]wFMCommunicate OK [10:56:46]wFMCommunicate request_size=10 [10:56:46]MH_SAM_APDU [10:56:46]CAPDU: 80 0D 02 02 05 A9 9E 05 EF A7 [10:56:46]Write to MH i2c: E2 0D 00 75 1A 80 0D 02 02 05 00 A9 9E 05 EF A7 00 00 F5 [10:56:46]Write i2c OK [10:56:46]MH_I2C_Read... [10:56:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:46]Read from MH i2c: E2 [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: E2 03 00 [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: E2 03 00 75 1A 00 90 00 03 [10:56:46]RAPDU: 90 00 [10:56:46]wFMCommunicate OK [10:56:46]wFMCommunicate request_size=4 [10:56:46]MH_SAM_APDU [10:56:46]CAPDU: 80 0D 03 02 [10:56:46]Write to MH i2c: E2 08 00 76 1A 80 0D 03 02 00 00 00 00 0B [10:56:46]Write i2c OK [10:56:46]MH_I2C_Read... [10:56:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:46]Read from MH i2c: E2 [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: E2 0B 00 [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: E2 0B 00 76 1A 00 97 A2 93 12 1E 3D DB E3 90 00 03 [10:56:46]RAPDU: 97 A2 93 12 1E 3D DB E3 90 00 [10:56:46]wFMCommunicate OK [10:56:46]SAM_PROTO_SignData done [10:56:46]FM_MakeSignedData done [10:56:46]CreateOFDProtocolMessage [10:56:46]wFMCommunicate request_size=4 [10:56:46]MH_SAM_APDU [10:56:46]CAPDU: 80 11 00 00 [10:56:46]Write to MH i2c: E2 08 00 77 1A 80 11 00 00 00 00 00 00 0B [10:56:46]Write i2c OK [10:56:46]MH_I2C_Read... [10:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:47]Read from MH i2c: E2 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: E2 17 00 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: E2 17 00 77 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 66 [10:56:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:56:47]wFMCommunicate OK [10:56:47]CreateOFDProtocolMessage done [10:56:47]OFDSenderStorePacket 118438 [10:56:47]StoreOFDPacket docnum=118438 [10:56:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B6 90 07 01 8A 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 6B 00 00 00 F4 03 04 00 EF 23 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A6 CE 01 00 35 04 06 00 11 A9 9E 05 EF A7 97 A2 93 12 1E 3D DB E3 [10:56:47]CheckFolder [10:56:47]dirname=/storage/ofd_packets [10:56:47]CheckFolder done [10:56:47]ProducePacketName [10:56:47]name=ofd_packets/00118438 [10:56:47]NVStorageSaveData ofd_packets/00118438 [10:56:47]File name is /storage/ofd_packets/00118438 [10:56:47]Write 301 bytes [10:56:47]NVStorageSaveData done [10:56:47]OFDSenderStorePacket done [10:56:47]KKMCreateOFDPacket done [10:56:47]NVStorageSaveData kkm_last_timestamp [10:56:47]File name is /storage/kkm_last_timestamp [10:56:47]Write 4 bytes [10:56:47]NVStorageSaveData done [10:56:47]ExternCall_PrintAddStr [10:56:47]wPrintStart [10:56:47]Write to MH i2c: 01 00 00 78 1A 92 [10:56:47]Write i2c OK [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: 01 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: 01 07 00 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: 01 07 00 78 1A 00 00 00 00 00 FF 0F A7 [10:56:47]RasterBufferAndPrint [10:56:47]line Счет N : (1)949312 [10:56:47]line ИНН: 02508201610067 [10:56:47]line Контрольно-Кассовый Чек [10:56:47]line ПРОДАЖА [10:56:47]line ТРК (МРК, ГНК) : 31 [10:56:47]line Товар: 2710124130 [10:56:47]line Аи-92-К-4 [10:56:47]line 5.900 * 67.80 [10:56:47]line = 400.02 [10:56:47]line НДС 12% НСП 1% [10:56:47]line > о реализуемом товаре [10:56:47]line ОКРУГЛЕНИЕ: -0.02 [10:56:47]line ИТОГО: 400.00 [10:56:47]line Внесено: 400.00 [10:56:47]line СДАЧА: 0.00 [10:56:47]line НСП 1% : 3.54 [10:56:47]line НДС 12% : 42.48 [10:56:47]line Наличными: 400.00 [10:56:47]line Безнал.: 0.00 [10:56:47]line Место: АЗС № 134 "Партнер Нефть" [10:56:47]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:56:47]line СНО: Общий режим [10:56:47]line Чек 107 28.07.2024 10:56 [10:56:47]line Смена: 433 ФФД: 1.0 [10:56:47]line ЗНМ: 0300000044 [10:56:47]line РНМ: 0000000000092660 [10:56:47]line Версия ККМ: 001 [10:56:47]line ФМ: 0000000000874939 [10:56:47]line ФД: 118438 [10:56:47]line ФПД: 19420198334375 [10:56:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T105647&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118438&fm=19420198334375&tin=02508201610067®Number=0000000000092660&sum=40000 [10:56:47]OFD Sender: Processing packet 118438 [packets to send 86, broken 85] [10:56:47]ProducePacketName [10:56:47]name=ofd_packets/00118438 [10:56:47]OFD Sender: To server: pG, [10:56:47]CommunicateWithHost lk.salyk.kg:30040 [10:56:47]ConnectInit lk.salyk.kg [10:56:47]written 0, free lines is 4095 [10:56:47]Connected sock=10 [10:56:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B6 90 07 01 8A 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 6B 00 00 00 F4 03 04 00 EF 23 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A6 CE 01 00 35 04 06 00 11 A9 9E 05 EF A7 97 A2 93 12 1E 3D DB E3 [10:56:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EA FA 47 00 92 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 39 33 39 10 04 04 00 A6 CE 01 00 F4 03 04 00 80 D1 A5 66 B6 04 01 00 00 2D 81 4C A2 A4 DB A3 90 [10:56:47]CommunicateWithHost err = 0 [10:56:47]CheckOFDResponse [10:56:47]1017 (14) - 77093643461234 [10:56:47]1041 (16) - 0000000000874939 [10:56:47]1040 (4) - 118438 [10:56:47]1012 (4) - 28.07.2024 05:05 [10:56:47]1206 (1) - 0 [10:56:47]OFD Sender: Remove packet 118438 [10:56:47]ProducePacketName [10:56:47]name=ofd_packets/00118438 [10:56:47]NVStorageDeleteData [10:56:47]Write to MH i2c: 01 00 00 A2 1A BC [10:56:47]Write i2c OK [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: 01 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: 01 07 00 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: 01 07 00 A2 1A 00 00 00 00 00 E2 0C B1 [10:56:47]RasterBufferAndPrint [10:56:47]line [10:56:47]line [10:56:47]line [10:56:47]line [10:56:47]line [10:56:47]written 0, free lines is 3304 [10:56:47]MH_Cut [10:56:47]Write to MH i2c: D1 01 00 A9 1A 01 95 [10:56:47]Write i2c OK [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: D1 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: D1 01 00 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: D1 01 00 A9 1A 00 94 [10:56:47]Write to MH i2c: 01 00 00 AA 1A C4 [10:56:47]Write i2c OK [10:56:47]MH_I2C_Read... [10:56:48]OFD Sender: No OFD packet to send [10:56:48]*** Cut start [10:56:48]*** Partial cut [10:56:48]*** CUTSNS_PIN = 1 [10:56:48]*** CUTSNS_PIN = 0 [10:56:48]*** Brake cut motor [10:56:49]Read from MH i2c: 01 [10:56:49]MH_I2C_Read... [10:56:49]*** Stop cut motor [10:56:49]*** Cut end [10:56:49]Read from MH i2c: 01 07 00 [10:56:49]MH_I2C_Read... [10:56:49]Read from MH i2c: 01 07 00 AA 1A 00 00 00 00 00 FF 0F D9 [10:56:49]process_action close_receipt done [10:56:49]requested_data is exist [10:56:49]produce_requested_data [10:56:49]requested_item fm.sn is exist - process it [10:56:49]wFMCommunicate request_size=4 [10:56:49]MH_SAM_APDU [10:56:49]CAPDU: 80 11 00 00 [10:56:49]Write to MH i2c: E2 08 00 AB 1A 80 11 00 00 00 00 00 00 3F [10:56:49]Write i2c OK [10:56:49]MH_I2C_Read... [10:56:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:49]Read from MH i2c: E2 [10:56:49]MH_I2C_Read... [10:56:49]Read from MH i2c: E2 17 00 [10:56:49]MH_I2C_Read... [10:56:49]Read from MH i2c: E2 17 00 AB 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9A [10:56:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:56:49]wFMCommunicate OK [10:56:49]requested_item fd.num is exist - process it [10:56:49]SAM_PROTO_GetFieldsCounters [10:56:49]wFMCommunicate request_size=4 [10:56:49]MH_SAM_APDU [10:56:49]CAPDU: 80 13 00 00 [10:56:49]Write to MH i2c: E2 08 00 AC 1A 80 13 00 00 00 00 00 00 42 [10:56:49]Write i2c OK [10:56:49]MH_I2C_Read... [10:56:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:49]Read from MH i2c: E2 [10:56:49]MH_I2C_Read... [10:56:49]Read from MH i2c: E2 62 00 [10:56:49]MH_I2C_Read... [10:56:49]Read from MH i2c: E2 62 00 AC 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A6 CE 01 00 0E 04 04 00 B1 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 D1 [10:56:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A6 CE 01 00 0E 04 04 00 B1 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 [10:56:49]wFMCommunicate OK [10:56:49]SAM_PROTO_GetFieldsCounters done [10:56:49]requested_item shift.num is exist - process it [10:56:49]requested_item shift.opened is exist - process it [10:56:49]req_shift_opened [10:56:49]FM_GetShiftState [10:56:49]SAM_PROTO_GetShiftState [10:56:49]wFMCommunicate request_size=4 [10:56:49]MH_SAM_APDU [10:56:49]CAPDU: 80 13 01 00 [10:56:49]Write to MH i2c: E2 08 00 AD 1A 80 13 01 00 00 00 00 00 44 [10:56:49]Write i2c OK [10:56:49]MH_I2C_Read... [10:56:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:49]Read from MH i2c: E2 [10:56:49]MH_I2C_Read... [10:56:49]Read from MH i2c: E2 0E 00 [10:56:49]MH_I2C_Read... [10:56:49]Read from MH i2c: E2 0E 00 AD 1A 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 1B [10:56:49]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:56:49]wFMCommunicate OK [10:56:49]SAM_PROTO_GetShiftState done [10:56:49]FM_GetShiftState done [10:56:49]req_shift_opened done [10:56:49]requested_item shift.open_date is exist - process it [10:56:49]req_shift_open_date [10:56:49]req_shift_open_date done [10:56:49]produce_requested_data done [10:56:49]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118438,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [10:56:49]process_action_free close_receipt [10:56:49]json_value_free [10:56:49]json_value_free done [10:56:49]process_json_proto returns [10:56:49]Send response to host [10:56:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118438,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [10:56:49]free response buf [10:56:49]execute_script done [10:56:49]execute_script returns [10:56:49]free content buf [10:56:49]Sock 9.Close socket [10:56:49]Sock 9.Thread stoped [10:56:53]OFD Sender: No OFD packet to send [10:56:58]OFD Sender: No OFD packet to send [10:57:03]OFD Sender: No OFD packet to send [10:57:08]OFD Sender: No OFD packet to send [10:57:13]OFD Sender: No OFD packet to send [10:57:18]OFD Sender: No OFD packet to send [10:57:23]OFD Sender: No OFD packet to send [10:57:28]OFD Sender: No OFD packet to send [10:57:33]OFD Sender: No OFD packet to send [10:57:38]OFD Sender: No OFD packet to send [10:57:43]OFD Sender: No OFD packet to send [10:57:48]OFD Sender: No OFD packet to send [10:57:53]OFD Sender: No OFD packet to send [10:57:58]OFD Sender: No OFD packet to send [10:58:03]OFD Sender: No OFD packet to send [10:58:08]OFD Sender: No OFD packet to send [10:58:13]OFD Sender: No OFD packet to send [10:58:18]OFD Sender: No OFD packet to send [10:58:23]OFD Sender: No OFD packet to send [10:58:28]OFD Sender: No OFD packet to send [10:58:33]OFD Sender: No OFD packet to send [10:58:38]OFD Sender: No OFD packet to send [10:58:40]accept exits with 7 [10:58:40]New connection [10:58:40]New thread 3066924388 created [10:58:40]Thread 3067067748 joined [10:58:40]Waiting for new connection... [10:58:40] Sock 7.Parse request [10:58:40]Sock 7.Check first char [10:58:40]Sock 7.First char is OK [10:58:40]request: POST /json_proto HTTP/1.0 [10:58:40]Method: POST [10:58:40]URL: /json_proto [10:58:40]Method is POST - this is cgi request [10:58:40]url: /json_proto [10:58:40]query_string will be loaded in cgi processing [10:58:40]execute_cgi json_proto POST (null) [10:58:40]execute_cgi path=json_proto method=POST [10:58:40]POST find Content-Length [10:58:40]Host: 172.17.45.7:8080 [10:58:40]Content-Length: 677 [10:58:40]Content-Type: application/json [10:58:40] [10:58:40]POST finish read [10:58:40]Found Content-Length = 677 [10:58:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 1.480, "sum" : 100.34, "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" ] } } [10:58:40]execute_script... [10:58: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)949313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 1.480, "sum" : 100.34, "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" ] } } [10:58:40]POST & json_proto [10:58:40]process_json_proto [10:58:40]json parsed OK: [10:58:40]protocol is kg_v1.0 [10:58:40]action value=close_receipt [10:58:40]process_action close_receipt [10:58:40]cmd_close_receipt [10:58:40]MH_GetDate [10:58:40]Write to MH i2c: F0 00 00 AE 1A B7 [10:58:40]Write i2c OK [10:58:40]MH_I2C_Read... [10:58:40]Read from MH i2c: F0 [10:58:40]MH_I2C_Read... [10:58:40]Read from MH i2c: F0 09 00 [10:58:40]MH_I2C_Read... [10:58:40]Read from MH i2c: F0 09 00 AE 1A 00 62 24 A6 66 90 0F 3E 66 95 [10:58:40]GetLastDocTimeStamp 1722164207 [10:58:40]current date 1722164322 [10:58:40]FM_GetShiftState [10:58:40]SAM_PROTO_GetShiftState [10:58:40]wFMCommunicate request_size=4 [10:58:40]MH_SAM_APDU [10:58:40]CAPDU: 80 13 01 00 [10:58:40]Write to MH i2c: E2 08 00 AF 1A 80 13 01 00 00 00 00 00 46 [10:58:40]Write i2c OK [10:58:40]MH_I2C_Read... [10:58:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:40]Read from MH i2c: E2 [10:58:40]MH_I2C_Read... [10:58:40]Read from MH i2c: E2 0E 00 [10:58:40]MH_I2C_Read... [10:58:40]Read from MH i2c: E2 0E 00 AF 1A 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 1D [10:58:40]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:58:40]wFMCommunicate OK [10:58:40]SAM_PROTO_GetShiftState done [10:58:40]FM_GetShiftState done [10:58:40]opened in 1722125364 [10:58:40]opened+sec_in_day 1722211764 [10:58:40]quantity*price = 10034 [10:58:40]sum+1 = 10035 [10:58:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 108 28.07.2024 10:58 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118439 ФПД: 90247734466749 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T105842&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118439&fm=90247734466749&tin=02508201610067®Number=0000000000092660&sum=10000 [10:58:41]StoreToDocumentArchive [10:58:41]shift 433 fd 118439 [10:58:41]save to /storage/0433/doc_00118439 [10:58:41]save last doc name /storage/0433/doc_00118439 to /storage/kkm_last_doc_name [10:58:41]save OK [10:58:41]Clear old archive folders... [10:58:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:58:41]tlvbuf is B6EC47A0 [10:58:41]SAM_PROTO_ClearQueue [10:58:41]wFMCommunicate request_size=4 [10:58:41]MH_SAM_APDU [10:58:41]CAPDU: 80 09 00 00 [10:58:41]Write to MH i2c: E2 08 00 BC 1A 80 09 00 00 00 00 00 00 48 [10:58:41]Write i2c OK [10:58:41]MH_I2C_Read... [10:58:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:41]Read from MH i2c: E2 [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: E2 03 00 [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: E2 03 00 BC 1A 00 90 00 4A [10:58:41]RAPDU: 90 00 [10:58:41]wFMCommunicate OK [10:58:41]SAM_PROTO_ClearQueue done [10:58:41]KKMCreateOFDPacket [10:58:41]OFDProtocolAddRootSTLVToBuf [10:58:41]FM_MakeSignedData [10:58:41]FM_MakeSignedData [10:58:41]SAM_PROTO_SignData [10:58:41]wFMCommunicate request_size=4 [10:58:41]MH_SAM_APDU [10:58:41]CAPDU: 80 0D 01 02 [10:58:41]Write to MH i2c: E2 08 00 BD 1A 80 0D 01 02 00 00 00 00 50 [10:58:41]Write i2c OK [10:58:41]MH_I2C_Read... [10:58:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:41]Read from MH i2c: E2 [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: E2 03 00 [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: E2 03 00 BD 1A 00 90 00 4B [10:58:41]RAPDU: 90 00 [10:58:41]wFMCommunicate OK [10:58:41]wFMCommunicate request_size=255 [10:58:41]MH_SAM_APDU [10:58: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 34 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 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 2A 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 6C 00 00 00 F4 03 04 00 62 24 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A7 CE 01 00 35 04 06 00 52 [10:58:41]Write to MH i2c: E2 02 01 BE 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 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 2A 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 6C 00 00 00 F4 03 04 00 62 24 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A7 CE 01 00 35 04 06 00 52 00 00 88 [10:58:41]Write i2c OK [10:58:41]MH_I2C_Read... [10:58:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:41]Read from MH i2c: E2 [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: E2 03 00 [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: E2 03 00 BE 1A 00 90 00 4C [10:58:41]RAPDU: 90 00 [10:58:41]wFMCommunicate OK [10:58:41]wFMCommunicate request_size=10 [10:58:41]MH_SAM_APDU [10:58:41]CAPDU: 80 0D 02 02 05 14 70 27 98 BD [10:58:41]Write to MH i2c: E2 0D 00 BF 1A 80 0D 02 02 05 00 14 70 27 98 BD 00 00 5D [10:58:41]Write i2c OK [10:58:41]MH_I2C_Read... [10:58:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:41]Read from MH i2c: E2 [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: E2 03 00 [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: E2 03 00 BF 1A 00 90 00 4D [10:58:41]RAPDU: 90 00 [10:58:41]wFMCommunicate OK [10:58:41]wFMCommunicate request_size=4 [10:58:41]MH_SAM_APDU [10:58:41]CAPDU: 80 0D 03 02 [10:58:41]Write to MH i2c: E2 08 00 C0 1A 80 0D 03 02 00 00 00 00 55 [10:58:41]Write i2c OK [10:58:41]MH_I2C_Read... [10:58:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:42]Read from MH i2c: E2 [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: E2 0B 00 [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: E2 0B 00 C0 1A 00 3D F1 52 16 46 EF B1 08 90 00 DA [10:58:42]RAPDU: 3D F1 52 16 46 EF B1 08 90 00 [10:58:42]wFMCommunicate OK [10:58:42]SAM_PROTO_SignData done [10:58:42]FM_MakeSignedData done [10:58:42]CreateOFDProtocolMessage [10:58:42]wFMCommunicate request_size=4 [10:58:42]MH_SAM_APDU [10:58:42]CAPDU: 80 11 00 00 [10:58:42]Write to MH i2c: E2 08 00 C1 1A 80 11 00 00 00 00 00 00 55 [10:58:42]Write i2c OK [10:58:42]MH_I2C_Read... [10:58:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:42]Read from MH i2c: E2 [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: E2 17 00 [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: E2 17 00 C1 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B0 [10:58:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:58:42]wFMCommunicate OK [10:58:42]CreateOFDProtocolMessage done [10:58:42]OFDSenderStorePacket 118439 [10:58:42]StoreOFDPacket docnum=118439 [10:58:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 35 2F 07 01 90 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 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 2A 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 6C 00 00 00 F4 03 04 00 62 24 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A7 CE 01 00 35 04 06 00 52 14 70 27 98 BD 3D F1 52 16 46 EF B1 08 [10:58:42]CheckFolder [10:58:42]dirname=/storage/ofd_packets [10:58:42]CheckFolder done [10:58:42]ProducePacketName [10:58:42]name=ofd_packets/00118439 [10:58:42]NVStorageSaveData ofd_packets/00118439 [10:58:42]File name is /storage/ofd_packets/00118439 [10:58:42]Write 301 bytes [10:58:42]NVStorageSaveData done [10:58:42]OFDSenderStorePacket done [10:58:42]KKMCreateOFDPacket done [10:58:42]NVStorageSaveData kkm_last_timestamp [10:58:42]File name is /storage/kkm_last_timestamp [10:58:42]Write 4 bytes [10:58:42]NVStorageSaveData done [10:58:42]ExternCall_PrintAddStr [10:58:42]wPrintStart [10:58:42]Write to MH i2c: 01 00 00 C2 1A DC [10:58:42]Write i2c OK [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: 01 [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: 01 07 00 [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: 01 07 00 C2 1A 00 00 00 00 00 FF 0F F1 [10:58:42]RasterBufferAndPrint [10:58:42]line Счет N : (1)949313 [10:58:42]line ИНН: 02508201610067 [10:58:42]line Контрольно-Кассовый Чек [10:58:42]line ПРОДАЖА [10:58:42]line ТРК (МРК, ГНК) : 51 [10:58:42]line Товар: 2710124130 [10:58:42]line Аи-92-К-4 [10:58:42]line 1.480 * 67.80 [10:58:42]line = 100.34 [10:58:42]line НДС 12% НСП 1% [10:58:42]line > о реализуемом товаре [10:58:42]line ОКРУГЛЕНИЕ: -0.34 [10:58:42]line ИТОГО: 100.00 [10:58:42]line Внесено: 100.00 [10:58:42]line СДАЧА: 0.00 [10:58:42]line НСП 1% : 0.89 [10:58:42]line НДС 12% : 10.66 [10:58:42]line Наличными: 100.00 [10:58:42]line Безнал.: 0.00 [10:58:42]line Место: АЗС № 134 "Партнер Нефть" [10:58:42]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:58:42]line СНО: Общий режим [10:58:42]line Чек 108 28.07.2024 10:58 [10:58:42]line Смена: 433 ФФД: 1.0 [10:58:42]line ЗНМ: 0300000044 [10:58:42]line РНМ: 0000000000092660 [10:58:42]line Версия ККМ: 001 [10:58:42]line ФМ: 0000000000874939 [10:58:42]line ФД: 118439 [10:58:42]line ФПД: 90247734466749 [10:58:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T105842&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118439&fm=90247734466749&tin=02508201610067®Number=0000000000092660&sum=10000 [10:58:42]OFD Sender: Processing packet 118439 [packets to send 86, broken 85] [10:58:42]ProducePacketName [10:58:42]name=ofd_packets/00118439 [10:58:42]OFD Sender: To server: pG, [10:58:42]CommunicateWithHost lk.salyk.kg:30040 [10:58:42]ConnectInit lk.salyk.kg [10:58:42]written 0, free lines is 4095 [10:58:42]Connected sock=10 [10:58: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 39 33 39 0F 01 00 00 35 2F 07 01 90 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 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 2A 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 6C 00 00 00 F4 03 04 00 62 24 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A7 CE 01 00 35 04 06 00 52 14 70 27 98 BD 3D F1 52 16 46 EF B1 08 [10:58:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6C 70 47 00 03 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A7 CE 01 00 F4 03 04 00 F3 D1 A5 66 B6 04 01 00 00 3B B4 81 4D CA 97 C4 70 [10:58:42]CommunicateWithHost err = 0 [10:58:42]CheckOFDResponse [10:58:42]1017 (14) - 77093643461234 [10:58:42]1041 (16) - 0000000000874939 [10:58:42]1040 (4) - 118439 [10:58:42]1012 (4) - 28.07.2024 05:06 [10:58:42]1206 (1) - 0 [10:58:42]OFD Sender: Remove packet 118439 [10:58:42]ProducePacketName [10:58:42]name=ofd_packets/00118439 [10:58:42]NVStorageDeleteData [10:58:42]Write to MH i2c: 01 00 00 EC 1A 06 [10:58:42]Write i2c OK [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: 01 [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: 01 07 00 [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: 01 07 00 EC 1A 00 00 00 00 00 E5 0C FE [10:58:42]RasterBufferAndPrint [10:58:42]line [10:58:42]line [10:58:42]line [10:58:42]line [10:58:42]line [10:58:42]written 0, free lines is 3307 [10:58:42]MH_Cut [10:58:42]Write to MH i2c: D1 01 00 F3 1A 01 DF [10:58:42]Write i2c OK [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: D1 [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: D1 01 00 [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: D1 01 00 F3 1A 00 DE [10:58:42]Write to MH i2c: 01 00 00 F4 1A 0E [10:58:42]Write i2c OK [10:58:42]MH_I2C_Read... [10:58:43]OFD Sender: No OFD packet to send [10:58:43]*** Cut start [10:58:43]*** Partial cut [10:58:43]*** CUTSNS_PIN = 1 [10:58:43]*** CUTSNS_PIN = 0 [10:58:43]*** Brake cut motor [10:58:44]Read from MH i2c: 01 [10:58:44]MH_I2C_Read... [10:58:44]*** Stop cut motor [10:58:44]*** Cut end [10:58:44]Read from MH i2c: 01 07 00 [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: 01 07 00 F4 1A 00 00 00 00 00 FF 0F 23 [10:58:44]process_action close_receipt done [10:58:44]requested_data is exist [10:58:44]produce_requested_data [10:58:44]requested_item fm.sn is exist - process it [10:58:44]wFMCommunicate request_size=4 [10:58:44]MH_SAM_APDU [10:58:44]CAPDU: 80 11 00 00 [10:58:44]Write to MH i2c: E2 08 00 F5 1A 80 11 00 00 00 00 00 00 89 [10:58:44]Write i2c OK [10:58:44]MH_I2C_Read... [10:58:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:44]Read from MH i2c: E2 [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: E2 17 00 [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: E2 17 00 F5 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E4 [10:58:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:58:44]wFMCommunicate OK [10:58:44]requested_item fd.num is exist - process it [10:58:44]SAM_PROTO_GetFieldsCounters [10:58:44]wFMCommunicate request_size=4 [10:58:44]MH_SAM_APDU [10:58:44]CAPDU: 80 13 00 00 [10:58:44]Write to MH i2c: E2 08 00 F6 1A 80 13 00 00 00 00 00 00 8C [10:58:44]Write i2c OK [10:58:44]MH_I2C_Read... [10:58:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:44]Read from MH i2c: E2 [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: E2 62 00 [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: E2 62 00 F6 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A7 CE 01 00 0E 04 04 00 B1 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 1F [10: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A7 CE 01 00 0E 04 04 00 B1 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 [10:58:44]wFMCommunicate OK [10:58:44]SAM_PROTO_GetFieldsCounters done [10:58:44]requested_item shift.num is exist - process it [10:58:44]requested_item shift.opened is exist - process it [10:58:44]req_shift_opened [10:58:44]FM_GetShiftState [10:58:44]SAM_PROTO_GetShiftState [10:58:44]wFMCommunicate request_size=4 [10:58:44]MH_SAM_APDU [10:58:44]CAPDU: 80 13 01 00 [10:58:44]Write to MH i2c: E2 08 00 F7 1A 80 13 01 00 00 00 00 00 8E [10:58:44]Write i2c OK [10:58:44]MH_I2C_Read... [10:58:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:44]Read from MH i2c: E2 [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: E2 0E 00 [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: E2 0E 00 F7 1A 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 65 [10:58:44]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:58:44]wFMCommunicate OK [10:58:44]SAM_PROTO_GetShiftState done [10:58:44]FM_GetShiftState done [10:58:44]req_shift_opened done [10:58:44]requested_item shift.open_date is exist - process it [10:58:44]req_shift_open_date [10:58:44]req_shift_open_date done [10:58:44]produce_requested_data done [10:58:44]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118439,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [10:58:44]process_action_free close_receipt [10:58:44]json_value_free [10:58:44]json_value_free done [10:58:44]process_json_proto returns [10:58:44]Send response to host [10:58:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118439,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [10:58:44]free response buf [10:58:44]execute_script done [10:58:44]execute_script returns [10:58:44]free content buf [10:58:44]Sock 7.Close socket [10:58:44]Sock 7.Thread stoped [10:58:48]OFD Sender: No OFD packet to send [10:58:53]OFD Sender: No OFD packet to send [10:58:58]OFD Sender: No OFD packet to send [10:59:03]OFD Sender: No OFD packet to send [10:59:08]OFD Sender: No OFD packet to send [10:59:13]OFD Sender: No OFD packet to send [10:59:18]OFD Sender: No OFD packet to send [10:59:23]OFD Sender: No OFD packet to send [10:59:28]OFD Sender: No OFD packet to send [10:59:33]OFD Sender: No OFD packet to send [10:59:38]OFD Sender: No OFD packet to send [10:59:43]OFD Sender: No OFD packet to send [10:59:48]OFD Sender: No OFD packet to send [10:59:53]OFD Sender: No OFD packet to send [10:59:58]OFD Sender: No OFD packet to send [10:59:59]accept exits with 9 [10:59:59]New connection [10:59:59]New thread 3067067748 created [10:59:59]Thread 3066924388 joined [10:59:59]Waiting for new connection... [10:59:59] Sock 9.Parse request [10:59:59]Sock 9.Check first char [10:59:59]Sock 9.First char is OK [10:59:59]request: POST /json_proto HTTP/1.0 [10:59:59]Method: POST [10:59:59]URL: /json_proto [10:59:59]Method is POST - this is cgi request [10:59:59]url: /json_proto [10:59:59]query_string will be loaded in cgi processing [10:59:59]execute_cgi json_proto POST (null) [10:59:59]execute_cgi path=json_proto method=POST [10:59:59]POST find Content-Length [10:59:59]Host: 172.17.45.7:8080 [10:59:59]Content-Length: 674 [10:59:59]Content-Type: application/json [10:59:59] [10:59:59]POST finish read [10:59:59]Found Content-Length = 674 [10:59:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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:59:59]execute_script... [10:59: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)949314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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:59:59]POST & json_proto [10:59:59]process_json_proto [10:59:59]json parsed OK: [10:59:59]protocol is kg_v1.0 [10:59:59]action value=close_receipt [10:59:59]process_action close_receipt [10:59:59]cmd_close_receipt [10:59:59]MH_GetDate [10:59:59]Write to MH i2c: F0 00 00 F8 1A 01 [10:59:59]Write i2c OK [10:59:59]MH_I2C_Read... [10:59:59]Read from MH i2c: F0 [10:59:59]MH_I2C_Read... [10:59:59]Read from MH i2c: F0 09 00 [10:59:59]MH_I2C_Read... [10:59:59]Read from MH i2c: F0 09 00 F8 1A 00 B1 24 A6 66 90 0F 3E 66 2E [10:59:59]GetLastDocTimeStamp 1722164322 [10:59:59]current date 1722164401 [10:59:59]FM_GetShiftState [10:59:59]SAM_PROTO_GetShiftState [10:59:59]wFMCommunicate request_size=4 [10:59:59]MH_SAM_APDU [10:59:59]CAPDU: 80 13 01 00 [10:59:59]Write to MH i2c: E2 08 00 F9 1A 80 13 01 00 00 00 00 00 90 [10:59:59]Write i2c OK [10:59:59]MH_I2C_Read... [10:59:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:59]Read from MH i2c: E2 [10:59:59]MH_I2C_Read... [10:59:59]Read from MH i2c: E2 0E 00 [10:59:59]MH_I2C_Read... [10:59:59]Read from MH i2c: E2 0E 00 F9 1A 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 67 [10:59:59]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [10:59:59]wFMCommunicate OK [10:59:59]SAM_PROTO_GetShiftState done [10:59:59]FM_GetShiftState done [10:59:59]opened in 1722125364 [10:59:59]opened+sec_in_day 1722211764 [10:59:59]quantity*price = 40005 [10:59:59]sum+1 = 40006 [10:59:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 109 28.07.2024 11:00 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118440 ФПД: 253033459529465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T110001&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118440&fm=253033459529465&tin=02508201610067®Number=0000000000092660&sum=40000 [11:00:00]StoreToDocumentArchive [11:00:00]shift 433 fd 118440 [11:00:00]save to /storage/0433/doc_00118440 [11:00:00]save last doc name /storage/0433/doc_00118440 to /storage/kkm_last_doc_name [11:00:00]save OK [11:00:00]Clear old archive folders... [11:00:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:00:00]tlvbuf is B6DC4500 [11:00:00]SAM_PROTO_ClearQueue [11:00:00]wFMCommunicate request_size=4 [11:00:00]MH_SAM_APDU [11:00:00]CAPDU: 80 09 00 00 [11:00:00]Write to MH i2c: E2 08 00 06 1B 80 09 00 00 00 00 00 00 93 [11:00:00]Write i2c OK [11:00:00]MH_I2C_Read... [11:00:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:00]Read from MH i2c: E2 [11:00:00]MH_I2C_Read... [11:00:00]Read from MH i2c: E2 03 00 [11:00:00]MH_I2C_Read... [11:00:00]Read from MH i2c: E2 03 00 06 1B 00 90 00 95 [11:00:00]RAPDU: 90 00 [11:00:00]wFMCommunicate OK [11:00:00]SAM_PROTO_ClearQueue done [11:00:00]KKMCreateOFDPacket [11:00:00]OFDProtocolAddRootSTLVToBuf [11:00:00]FM_MakeSignedData [11:00:00]FM_MakeSignedData [11:00:00]SAM_PROTO_SignData [11:00:00]wFMCommunicate request_size=4 [11:00:00]MH_SAM_APDU [11:00:00]CAPDU: 80 0D 01 02 [11:00:00]Write to MH i2c: E2 08 00 07 1B 80 0D 01 02 00 00 00 00 9B [11:00:00]Write i2c OK [11:00:00]MH_I2C_Read... [11:00:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:00]Read from MH i2c: E2 [11:00:00]MH_I2C_Read... [11:00:00]Read from MH i2c: E2 03 00 [11:00:00]MH_I2C_Read... [11:00:00]Read from MH i2c: E2 03 00 07 1B 00 90 00 96 [11:00:00]RAPDU: 90 00 [11:00:00]wFMCommunicate OK [11:00:00]wFMCommunicate request_size=255 [11:00:00]MH_SAM_APDU [11:00:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 6D 00 00 00 F4 03 04 00 B1 24 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A8 CE 01 00 35 04 06 00 E6 21 F1 78 [11:00:00]Write to MH i2c: E2 02 01 08 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 6D 00 00 00 F4 03 04 00 B1 24 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A8 CE 01 00 35 04 06 00 E6 21 F1 78 00 00 05 [11:00:00]Write i2c OK [11:00:00]MH_I2C_Read... [11:00:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:00]Read from MH i2c: E2 [11:00:00]MH_I2C_Read... [11:00:00]Read from MH i2c: E2 03 00 [11:00:00]MH_I2C_Read... [11:00:00]Read from MH i2c: E2 03 00 08 1B 00 90 00 97 [11:00:00]RAPDU: 90 00 [11:00:00]wFMCommunicate OK [11:00:00]wFMCommunicate request_size=7 [11:00:00]MH_SAM_APDU [11:00:00]CAPDU: 80 0D 02 02 02 B6 F9 [11:00:00]Write to MH i2c: E2 0A 00 09 1B 80 0D 02 02 02 00 B6 F9 00 00 51 [11:00:00]Write i2c OK [11:00:00]MH_I2C_Read... [11:00:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:00]Read from MH i2c: E2 [11:00:00]MH_I2C_Read... [11:00:00]Read from MH i2c: E2 03 00 [11:00:00]MH_I2C_Read... [11:00:00]Read from MH i2c: E2 03 00 09 1B 00 90 00 98 [11:00:00]RAPDU: 90 00 [11:00:00]wFMCommunicate OK [11:00:00]wFMCommunicate request_size=4 [11:00:00]MH_SAM_APDU [11:00:00]CAPDU: 80 0D 03 02 [11:00:00]Write to MH i2c: E2 08 00 0A 1B 80 0D 03 02 00 00 00 00 A0 [11:00:00]Write i2c OK [11:00:00]MH_I2C_Read... [11:00:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:00]Read from MH i2c: E2 [11:00:00]MH_I2C_Read... [11:00:00]Read from MH i2c: E2 0B 00 [11:00:00]MH_I2C_Read... [11:00:00]Read from MH i2c: E2 0B 00 0A 1B 00 EE D7 AC BD 20 84 B7 E8 90 00 12 [11:00:00]RAPDU: EE D7 AC BD 20 84 B7 E8 90 00 [11:00:00]wFMCommunicate OK [11:00:00]SAM_PROTO_SignData done [11:00:00]FM_MakeSignedData done [11:00:00]CreateOFDProtocolMessage [11:00:00]wFMCommunicate request_size=4 [11:00:00]MH_SAM_APDU [11:00:00]CAPDU: 80 11 00 00 [11:00:00]Write to MH i2c: E2 08 00 0B 1B 80 11 00 00 00 00 00 00 A0 [11:00:00]Write i2c OK [11:00:00]MH_I2C_Read... [11:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:00]Read from MH i2c: E2 [11:00:00]MH_I2C_Read... [11:00:00]Read from MH i2c: E2 17 00 [11:00:00]MH_I2C_Read... [11:00:00]Read from MH i2c: E2 17 00 0B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FB [11:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:00:00]wFMCommunicate OK [11:00:00]CreateOFDProtocolMessage done [11:00:00]OFDSenderStorePacket 118440 [11:00:00]StoreOFDPacket docnum=118440 [11:00:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 40 0A 04 01 0A 12 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 6D 00 00 00 F4 03 04 00 B1 24 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A8 CE 01 00 35 04 06 00 E6 21 F1 78 B6 F9 EE D7 AC BD 20 84 B7 E8 [11:00:00]CheckFolder [11:00:00]dirname=/storage/ofd_packets [11:00:00]CheckFolder done [11:00:00]ProducePacketName [11:00:00]name=ofd_packets/00118440 [11:00:00]NVStorageSaveData ofd_packets/00118440 [11:00:00]File name is /storage/ofd_packets/00118440 [11:00:00]Write 298 bytes [11:00:00]NVStorageSaveData done [11:00:00]OFDSenderStorePacket done [11:00:00]KKMCreateOFDPacket done [11:00:00]NVStorageSaveData kkm_last_timestamp [11:00:00]File name is /storage/kkm_last_timestamp [11:00:00]Write 4 bytes [11:00:00]NVStorageSaveData done [11:00:00]ExternCall_PrintAddStr [11:00:00]wPrintStart [11:00:00]Write to MH i2c: 01 00 00 0C 1B 27 [11:00:00]Write i2c OK [11:00:00]MH_I2C_Read... [11:00:00]Read from MH i2c: 01 [11:00:00]MH_I2C_Read... [11:00:00]Read from MH i2c: 01 07 00 [11:00:00]MH_I2C_Read... [11:00:00]Read from MH i2c: 01 07 00 0C 1B 00 00 00 00 00 FF 0F 3C [11:00:00]RasterBufferAndPrint [11:00:00]line Счет N : (1)949314 [11:00:00]line ИНН: 02508201610067 [11:00:00]line Контрольно-Кассовый Чек [11:00:00]line ПРОДАЖА [11:00:00]line ТРК (МРК, ГНК) : 54 [11:00:00]line Товар: 2710194800 [11:00:00]line ДТ-К-5 [11:00:00]line 5.250 * 76.20 [11:00:00]line = 400.05 [11:00:00]line НДС 12% НСП 1% [11:00:00]line > о реализуемом товаре [11:00:00]line ОКРУГЛЕНИЕ: -0.05 [11:00:00]line ИТОГО: 400.00 [11:00:00]line Внесено: 400.00 [11:00:00]line СДАЧА: 0.00 [11:00:00]line НСП 1% : 3.54 [11:00:00]line НДС 12% : 42.48 [11:00:00]line Наличными: 400.00 [11:00:00]line Безнал.: 0.00 [11:00:00]line Место: АЗС № 134 "Партнер Нефть" [11:00:00]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:00:00]line СНО: Общий режим [11:00:00]line Чек 109 28.07.2024 11:00 [11:00:00]line Смена: 433 ФФД: 1.0 [11:00:00]line ЗНМ: 0300000044 [11:00:00]line РНМ: 0000000000092660 [11:00:00]line Версия ККМ: 001 [11:00:00]line ФМ: 0000000000874939 [11:00:00]line ФД: 118440 [11:00:00]line ФПД: 253033459529465 [11:00:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T110001&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118440&fm=253033459529465&tin=02508201610067®Number=0000000000092660&sum=40000 [11:00:01]OFD Sender: Processing packet 118440 [packets to send 86, broken 85] [11:00:01]ProducePacketName [11:00:01]name=ofd_packets/00118440 [11:00:01]OFD Sender: To server: pG, [11:00:01]CommunicateWithHost lk.salyk.kg:30040 [11:00:01]ConnectInit lk.salyk.kg [11:00:01]written 0, free lines is 4095 [11:00:01]Connected sock=10 [11:00:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 40 0A 04 01 0A 12 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 6D 00 00 00 F4 03 04 00 B1 24 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A8 CE 01 00 35 04 06 00 E6 21 F1 78 B6 F9 EE D7 AC BD 20 84 B7 E8 [11:00:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 8A F3 47 00 28 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 39 33 39 10 04 04 00 A8 CE 01 00 F4 03 04 00 41 D2 A5 66 B6 04 01 00 00 25 A4 68 9A 26 A1 78 B5 [11:00:01]CommunicateWithHost err = 0 [11:00:01]CheckOFDResponse [11:00:01]1017 (14) - 77093643461234 [11:00:01]1041 (16) - 0000000000874939 [11:00:01]1040 (4) - 118440 [11:00:01]1012 (4) - 28.07.2024 05:08 [11:00:01]1206 (1) - 0 [11:00:01]OFD Sender: Remove packet 118440 [11:00:01]ProducePacketName [11:00:01]name=ofd_packets/00118440 [11:00:01]NVStorageDeleteData [11:00:01]Write to MH i2c: 01 00 00 36 1B 51 [11:00:01]Write i2c OK [11:00:01]MH_I2C_Read... [11:00:01]Read from MH i2c: 01 [11:00:01]MH_I2C_Read... [11:00:01]Read from MH i2c: 01 07 00 [11:00:01]MH_I2C_Read... [11:00:01]Read from MH i2c: 01 07 00 36 1B 00 00 00 00 00 D5 0C 39 [11:00:01]RasterBufferAndPrint [11:00:01]line [11:00:01]line [11:00:01]line [11:00:01]line [11:00:01]line [11:00:01]written 0, free lines is 3292 [11:00:01]MH_Cut [11:00:01]Write to MH i2c: D1 01 00 3D 1B 01 2A [11:00:01]Write i2c OK [11:00:01]MH_I2C_Read... [11:00:01]Read from MH i2c: D1 [11:00:01]MH_I2C_Read... [11:00:01]Read from MH i2c: D1 01 00 [11:00:01]MH_I2C_Read... [11:00:01]Read from MH i2c: D1 01 00 3D 1B 00 29 [11:00:01]Write to MH i2c: 01 00 00 3E 1B 59 [11:00:01]Write i2c OK [11:00:01]MH_I2C_Read... [11:00:01]OFD Sender: No OFD packet to send [11:00:02]*** Cut start [11:00:02]*** Partial cut [11:00:02]*** CUTSNS_PIN = 1 [11:00:02]*** CUTSNS_PIN = 0 [11:00:02]*** Brake cut motor [11:00:02]Read from MH i2c: 01 [11:00:02]MH_I2C_Read... [11:00:02]*** Stop cut motor [11:00:02]*** Cut end [11:00:02]Read from MH i2c: 01 07 00 [11:00:02]MH_I2C_Read... [11:00:02]Read from MH i2c: 01 07 00 3E 1B 00 00 00 00 00 FF 0F 6E [11:00:02]process_action close_receipt done [11:00:02]requested_data is exist [11:00:02]produce_requested_data [11:00:02]requested_item fm.sn is exist - process it [11:00:02]wFMCommunicate request_size=4 [11:00:02]MH_SAM_APDU [11:00:02]CAPDU: 80 11 00 00 [11:00:02]Write to MH i2c: E2 08 00 3F 1B 80 11 00 00 00 00 00 00 D4 [11:00:02]Write i2c OK [11:00:02]MH_I2C_Read... [11:00:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:03]Read from MH i2c: E2 [11:00:03]MH_I2C_Read... [11:00:03]Read from MH i2c: E2 17 00 [11:00:03]MH_I2C_Read... [11:00:03]Read from MH i2c: E2 17 00 3F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2F [11:00:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:00:03]wFMCommunicate OK [11:00:03]requested_item fd.num is exist - process it [11:00:03]SAM_PROTO_GetFieldsCounters [11:00:03]wFMCommunicate request_size=4 [11:00:03]MH_SAM_APDU [11:00:03]CAPDU: 80 13 00 00 [11:00:03]Write to MH i2c: E2 08 00 40 1B 80 13 00 00 00 00 00 00 D7 [11:00:03]Write i2c OK [11:00:03]MH_I2C_Read... [11:00:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:03]Read from MH i2c: E2 [11:00:03]MH_I2C_Read... [11:00:03]Read from MH i2c: E2 62 00 [11:00:03]MH_I2C_Read... [11:00:03]Read from MH i2c: E2 62 00 40 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A8 CE 01 00 0E 04 04 00 B1 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 6E [11:00:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A8 CE 01 00 0E 04 04 00 B1 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 [11:00:03]wFMCommunicate OK [11:00:03]SAM_PROTO_GetFieldsCounters done [11:00:03]requested_item shift.num is exist - process it [11:00:03]requested_item shift.opened is exist - process it [11:00:03]req_shift_opened [11:00:03]FM_GetShiftState [11:00:03]SAM_PROTO_GetShiftState [11:00:03]wFMCommunicate request_size=4 [11:00:03]MH_SAM_APDU [11:00:03]CAPDU: 80 13 01 00 [11:00:03]Write to MH i2c: E2 08 00 41 1B 80 13 01 00 00 00 00 00 D9 [11:00:03]Write i2c OK [11:00:03]MH_I2C_Read... [11:00:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:03]Read from MH i2c: E2 [11:00:03]MH_I2C_Read... [11:00:03]Read from MH i2c: E2 0E 00 [11:00:03]MH_I2C_Read... [11:00:03]Read from MH i2c: E2 0E 00 41 1B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 B0 [11:00:03]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:00:03]wFMCommunicate OK [11:00:03]SAM_PROTO_GetShiftState done [11:00:03]FM_GetShiftState done [11:00:03]req_shift_opened done [11:00:03]requested_item shift.open_date is exist - process it [11:00:03]req_shift_open_date [11:00:03]req_shift_open_date done [11:00:03]produce_requested_data done [11:00:03]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118440,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:00:03]process_action_free close_receipt [11:00:03]json_value_free [11:00:03]json_value_free done [11:00:03]process_json_proto returns [11:00:03]Send response to host [11:00:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118440,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:00:03]free response buf [11:00:03]execute_script done [11:00:03]execute_script returns [11:00:03]free content buf [11:00:03]Sock 9.Close socket [11:00:03]Sock 9.Thread stoped [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:32]OFD Sender: No OFD packet to send [11:00:37]OFD Sender: No OFD packet to send [11:00:42]OFD Sender: No OFD packet to send [11:00:47]OFD Sender: No OFD packet to send [11:00:52]OFD Sender: No OFD packet to send [11:00:57]OFD Sender: No OFD packet to send [11:01:02]OFD Sender: No OFD packet to send [11:01:07]OFD Sender: No OFD packet to send [11:01:12]OFD Sender: No OFD packet to send [11:01:17]OFD Sender: No OFD packet to send [11:01:22]OFD Sender: No OFD packet to send [11:01:27]OFD Sender: No OFD packet to send [11:01:32]OFD Sender: No OFD packet to send [11:01:37]OFD Sender: No OFD packet to send [11:01:42]OFD Sender: No OFD packet to send [11:01:47]OFD Sender: No OFD packet to send [11:01:52]OFD Sender: No OFD packet to send [11:01:57]OFD Sender: No OFD packet to send [11:02:02]OFD Sender: No OFD packet to send [11:02:07]OFD Sender: No OFD packet to send [11:02:12]OFD Sender: No OFD packet to send [11:02:17]OFD Sender: No OFD packet to send [11:02:22]OFD Sender: No OFD packet to send [11:02:27]OFD Sender: No OFD packet to send [11:02:32]OFD Sender: No OFD packet to send [11:02:37]OFD Sender: No OFD packet to send [11:02:42]OFD Sender: No OFD packet to send [11:02:47]OFD Sender: No OFD packet to send [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11:03:02]OFD Sender: No OFD packet to send [11:03:07]OFD Sender: No OFD packet to send [11:03:12]OFD Sender: No OFD packet to send [11:03:17]OFD Sender: No OFD packet to send [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03:32]OFD Sender: No OFD packet to send [11:03:37]OFD Sender: No OFD packet to send [11:03:42]OFD Sender: No OFD packet to send [11:03:47]OFD Sender: No OFD packet to send [11:03:52]OFD Sender: No OFD packet to send [11:03:57]OFD Sender: No OFD packet to send [11:04:02]OFD Sender: No OFD packet to send [11:04:07]OFD Sender: No OFD packet to send [11:04:12]OFD Sender: No OFD packet to send [11:04:17]OFD Sender: No OFD packet to send [11:04:22]OFD Sender: No OFD packet to send [11:04:27]OFD Sender: No OFD packet to send [11:04:32]OFD Sender: No OFD packet to send [11:04:37]OFD Sender: No OFD packet to send [11:04:42]OFD Sender: No OFD packet to send [11:04:47]OFD Sender: No OFD packet to send [11:04:52]OFD Sender: No OFD packet to send [11:04:57]OFD Sender: No OFD packet to send [11:05:02]OFD Sender: No OFD packet to send [11:05:07]OFD Sender: No OFD packet to send [11:05:12]OFD Sender: No OFD packet to send [11:05:17]OFD Sender: No OFD packet to send [11:05:22]OFD Sender: No OFD packet to send [11:05:27]OFD Sender: No OFD packet to send [11:05: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: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:16]accept exits with 7 [11:07:16]New connection [11:07:16]New thread 3066924388 created [11:07:16]Thread 3067067748 joined [11:07:16]Waiting for new connection... [11:07:16] Sock 7.Parse request [11:07:16]Sock 7.Check first char [11:07:16]Sock 7.First char is OK [11:07:16]request: POST /json_proto HTTP/1.0 [11:07:16]Method: POST [11:07:16]URL: /json_proto [11:07:16]Method is POST - this is cgi request [11:07:16]url: /json_proto [11:07:16]query_string will be loaded in cgi processing [11:07:16]execute_cgi json_proto POST (null) [11:07:16]execute_cgi path=json_proto method=POST [11:07:16]POST find Content-Length [11:07:16]Host: 172.17.45.7:8080 [11:07:16]Content-Length: 677 [11:07:16]Content-Type: application/json [11:07:16] [11:07:16]POST finish read [11:07:16]Found Content-Length = 677 [11:07:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 9.590, "sum" : 650.20, "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" ] } } [11:07:16]execute_script... [11:07: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)949315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 9.590, "sum" : 650.20, "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" ] } } [11:07:16]POST & json_proto [11:07:16]process_json_proto [11:07:16]json parsed OK: [11:07:16]protocol is kg_v1.0 [11:07:16]action value=close_receipt [11:07:16]process_action close_receipt [11:07:16]cmd_close_receipt [11:07:16]MH_GetDate [11:07:16]Write to MH i2c: F0 00 00 42 1B 4C [11:07:16]Write i2c OK [11:07:16]MH_I2C_Read... [11:07:16]Read from MH i2c: F0 [11:07:16]MH_I2C_Read... [11:07:16]Read from MH i2c: F0 09 00 [11:07:16]MH_I2C_Read... [11:07:16]Read from MH i2c: F0 09 00 42 1B 00 66 26 A6 66 90 0F 3E 66 30 [11:07:16]GetLastDocTimeStamp 1722164401 [11:07:16]current date 1722164838 [11:07:16]FM_GetShiftState [11:07:16]SAM_PROTO_GetShiftState [11:07:16]wFMCommunicate request_size=4 [11:07:16]MH_SAM_APDU [11:07:16]CAPDU: 80 13 01 00 [11:07:16]Write to MH i2c: E2 08 00 43 1B 80 13 01 00 00 00 00 00 DB [11:07:16]Write i2c OK [11:07:16]MH_I2C_Read... [11:07:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:16]Read from MH i2c: E2 [11:07:16]MH_I2C_Read... [11:07:16]Read from MH i2c: E2 0E 00 [11:07:16]MH_I2C_Read... [11:07:16]Read from MH i2c: E2 0E 00 43 1B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 B2 [11:07:16]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:07:16]wFMCommunicate OK [11:07:16]SAM_PROTO_GetShiftState done [11:07:16]FM_GetShiftState done [11:07:16]opened in 1722125364 [11:07:16]opened+sec_in_day 1722211764 [11:07:16]quantity*price = 65020 [11:07:16]sum+1 = 65021 [11:07:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.05 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 110 28.07.2024 11:07 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118441 ФПД: 166866473416482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T110718&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118441&fm=166866473416482&tin=02508201610067®Number=0000000000092660&sum=65000 [11:07:17]StoreToDocumentArchive [11:07:17]shift 433 fd 118441 [11:07:17]save to /storage/0433/doc_00118441 [11:07:17]save last doc name /storage/0433/doc_00118441 to /storage/kkm_last_doc_name [11:07:17]save OK [11:07:17]Clear old archive folders... [11:07:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:07:17]tlvbuf is 0013D1E0 [11:07:17]SAM_PROTO_ClearQueue [11:07:17]wFMCommunicate request_size=4 [11:07:17]MH_SAM_APDU [11:07:17]CAPDU: 80 09 00 00 [11:07:17]Write to MH i2c: E2 08 00 50 1B 80 09 00 00 00 00 00 00 DD [11:07:17]Write i2c OK [11:07:17]MH_I2C_Read... [11:07:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:17]Read from MH i2c: E2 [11:07:17]MH_I2C_Read... [11:07:17]Read from MH i2c: E2 03 00 [11:07:17]MH_I2C_Read... [11:07:17]Read from MH i2c: E2 03 00 50 1B 00 90 00 DF [11:07:17]RAPDU: 90 00 [11:07:17]wFMCommunicate OK [11:07:17]SAM_PROTO_ClearQueue done [11:07:17]KKMCreateOFDPacket [11:07:17]OFDProtocolAddRootSTLVToBuf [11:07:17]FM_MakeSignedData [11:07:17]FM_MakeSignedData [11:07:17]SAM_PROTO_SignData [11:07:17]wFMCommunicate request_size=4 [11:07:17]MH_SAM_APDU [11:07:17]CAPDU: 80 0D 01 02 [11:07:17]Write to MH i2c: E2 08 00 51 1B 80 0D 01 02 00 00 00 00 E5 [11:07:17]Write i2c OK [11:07:17]MH_I2C_Read... [11:07:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:17]Read from MH i2c: E2 [11:07:17]MH_I2C_Read... [11:07:17]Read from MH i2c: E2 03 00 [11:07:17]MH_I2C_Read... [11:07:17]Read from MH i2c: E2 03 00 51 1B 00 90 00 E0 [11:07:17]RAPDU: 90 00 [11:07:17]wFMCommunicate OK [11:07:17]wFMCommunicate request_size=255 [11:07:17]MH_SAM_APDU [11:07: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 34 FF 03 08 00 03 76 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FC FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 6E 00 00 00 F4 03 04 00 66 26 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A9 CE 01 00 35 04 06 00 97 [11:07:17]Write to MH i2c: E2 02 01 52 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 76 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FC FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 6E 00 00 00 F4 03 04 00 66 26 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A9 CE 01 00 35 04 06 00 97 00 00 03 [11:07:17]Write i2c OK [11:07:17]MH_I2C_Read... [11:07:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:18]Read from MH i2c: E2 [11:07:18]MH_I2C_Read... [11:07:18]Read from MH i2c: E2 03 00 [11:07:18]MH_I2C_Read... [11:07:18]Read from MH i2c: E2 03 00 52 1B 00 90 00 E1 [11:07:18]RAPDU: 90 00 [11:07:18]wFMCommunicate OK [11:07:18]wFMCommunicate request_size=10 [11:07:18]MH_SAM_APDU [11:07:18]CAPDU: 80 0D 02 02 05 C3 A0 DF 77 22 [11:07:18]Write to MH i2c: E2 0D 00 53 1B 80 0D 02 02 05 00 C3 A0 DF 77 22 00 00 CD [11:07:18]Write i2c OK [11:07:18]MH_I2C_Read... [11:07:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:18]Read from MH i2c: E2 [11:07:18]MH_I2C_Read... [11:07:18]Read from MH i2c: E2 03 00 [11:07:18]MH_I2C_Read... [11:07:18]Read from MH i2c: E2 03 00 53 1B 00 90 00 E2 [11:07:18]RAPDU: 90 00 [11:07:18]wFMCommunicate OK [11:07:18]wFMCommunicate request_size=4 [11:07:18]MH_SAM_APDU [11:07:18]CAPDU: 80 0D 03 02 [11:07:18]Write to MH i2c: E2 08 00 54 1B 80 0D 03 02 00 00 00 00 EA [11:07:18]Write i2c OK [11:07:18]MH_I2C_Read... [11:07:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:18]Read from MH i2c: E2 [11:07:18]MH_I2C_Read... [11:07:18]Read from MH i2c: E2 0B 00 [11:07:18]MH_I2C_Read... [11:07:18]Read from MH i2c: E2 0B 00 54 1B 00 64 85 76 21 19 AB 4B 36 90 00 B0 [11:07:18]RAPDU: 64 85 76 21 19 AB 4B 36 90 00 [11:07:18]wFMCommunicate OK [11:07:18]SAM_PROTO_SignData done [11:07:18]FM_MakeSignedData done [11:07:18]CreateOFDProtocolMessage [11:07:18]wFMCommunicate request_size=4 [11:07:18]MH_SAM_APDU [11:07:18]CAPDU: 80 11 00 00 [11:07:18]Write to MH i2c: E2 08 00 55 1B 80 11 00 00 00 00 00 00 EA [11:07:18]Write i2c OK [11:07:18]MH_I2C_Read... [11:07:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:18]Read from MH i2c: E2 [11:07:18]MH_I2C_Read... [11:07:18]Read from MH i2c: E2 17 00 [11:07:18]MH_I2C_Read... [11:07:18]Read from MH i2c: E2 17 00 55 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 45 [11:07:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:07:18]wFMCommunicate OK [11:07:18]CreateOFDProtocolMessage done [11:07:18]OFDSenderStorePacket 118441 [11:07:18]StoreOFDPacket docnum=118441 [11:07:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 23 B2 07 01 86 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 76 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FC FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 6E 00 00 00 F4 03 04 00 66 26 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A9 CE 01 00 35 04 06 00 97 C3 A0 DF 77 22 64 85 76 21 19 AB 4B 36 [11:07:18]CheckFolder [11:07:18]dirname=/storage/ofd_packets [11:07:18]CheckFolder done [11:07:18]ProducePacketName [11:07:18]name=ofd_packets/00118441 [11:07:18]NVStorageSaveData ofd_packets/00118441 [11:07:18]File name is /storage/ofd_packets/00118441 [11:07:18]Write 301 bytes [11:07:18]NVStorageSaveData done [11:07:18]OFDSenderStorePacket done [11:07:18]KKMCreateOFDPacket done [11:07:18]NVStorageSaveData kkm_last_timestamp [11:07:18]File name is /storage/kkm_last_timestamp [11:07:18]Write 4 bytes [11:07:18]NVStorageSaveData done [11:07:18]ExternCall_PrintAddStr [11:07:18]wPrintStart [11:07:18]Write to MH i2c: 01 00 00 56 1B 71 [11:07:18]Write i2c OK [11:07:18]MH_I2C_Read... [11:07:18]Read from MH i2c: 01 [11:07:18]MH_I2C_Read... [11:07:18]Read from MH i2c: 01 07 00 [11:07:18]MH_I2C_Read... [11:07:18]Read from MH i2c: 01 07 00 56 1B 00 00 00 00 00 FF 0F 86 [11:07:18]RasterBufferAndPrint [11:07:18]line Счет N : (1)949315 [11:07:18]line ИНН: 02508201610067 [11:07:18]line Контрольно-Кассовый Чек [11:07:18]line ПРОДАЖА [11:07:18]line ТРК (МРК, ГНК) : 51 [11:07:18]line Товар: 2710124130 [11:07:18]line Аи-92-К-4 [11:07:18]line 9.590 * 67.80 [11:07:18]line = 650.20 [11:07:18]line НДС 12% НСП 1% [11:07:18]line > о реализуемом товаре [11:07:18]line ОКРУГЛЕНИЕ: -0.20 [11:07:18]line ИТОГО: 650.00 [11:07:18]line Внесено: 650.00 [11:07:18]line СДАЧА: 0.00 [11:07:18]line НСП 1% : 5.75 [11:07:18]line НДС 12% : 69.05 [11:07:18]line Наличными: 650.00 [11:07:18]line Безнал.: 0.00 [11:07:18]line Место: АЗС № 134 "Партнер Нефть" [11:07:18]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:07:18]line СНО: Общий режим [11:07:18]line Чек 110 28.07.2024 11:07 [11:07:18]line Смена: 433 ФФД: 1.0 [11:07:18]line ЗНМ: 0300000044 [11:07:18]line РНМ: 0000000000092660 [11:07:18]line Версия ККМ: 001 [11:07:18]line ФМ: 0000000000874939 [11:07:18]line ФД: 118441 [11:07:18]line ФПД: 166866473416482 [11:07:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T110718&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118441&fm=166866473416482&tin=02508201610067®Number=0000000000092660&sum=65000 [11:07:18]written 0, free lines is 4095 [11:07:18]OFD Sender: Processing packet 118441 [packets to send 86, broken 85] [11:07:18]ProducePacketName [11:07:18]name=ofd_packets/00118441 [11:07:18]OFD Sender: To server: pG, [11:07:18]CommunicateWithHost lk.salyk.kg:30040 [11:07:18]ConnectInit lk.salyk.kg [11:07:18]Connected sock=10 [11:07:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 23 B2 07 01 86 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 76 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FC FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 6E 00 00 00 F4 03 04 00 66 26 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A9 CE 01 00 35 04 06 00 97 C3 A0 DF 77 22 64 85 76 21 19 AB 4B 36 [11:07:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 39 4A 47 00 D5 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A9 CE 01 00 F4 03 04 00 F7 D3 A5 66 B6 04 01 00 00 C4 87 7B CD B1 44 B4 46 [11:07:18]CommunicateWithHost err = 0 [11:07:18]CheckOFDResponse [11:07:18]1017 (14) - 77093643461234 [11:07:18]1041 (16) - 0000000000874939 [11:07:18]1040 (4) - 118441 [11:07:18]1012 (4) - 28.07.2024 05:15 [11:07:18]1206 (1) - 0 [11:07:18]OFD Sender: Remove packet 118441 [11:07:18]ProducePacketName [11:07:18]name=ofd_packets/00118441 [11:07:18]NVStorageDeleteData [11:07:18]Write to MH i2c: 01 00 00 80 1B 9B [11:07:18]Write i2c OK [11:07:18]MH_I2C_Read... [11:07:18]Read from MH i2c: 01 [11:07:18]MH_I2C_Read... [11:07:18]Read from MH i2c: 01 07 00 [11:07:18]MH_I2C_Read... [11:07:18]Read from MH i2c: 01 07 00 80 1B 00 00 00 00 00 E3 0C 91 [11:07:18]RasterBufferAndPrint [11:07:18]line [11:07:18]line [11:07:18]line [11:07:18]line [11:07:18]line [11:07:18]written 0, free lines is 3305 [11:07:18]MH_Cut [11:07:18]Write to MH i2c: D1 01 00 87 1B 01 74 [11:07:18]Write i2c OK [11:07:18]MH_I2C_Read... [11:07:18]Read from MH i2c: D1 [11:07:18]MH_I2C_Read... [11:07:18]Read from MH i2c: D1 01 00 [11:07:18]MH_I2C_Read... [11:07:18]Read from MH i2c: D1 01 00 87 1B 00 73 [11:07:18]Write to MH i2c: 01 00 00 88 1B A3 [11:07:18]Write i2c OK [11:07:18]MH_I2C_Read... [11:07:19]OFD Sender: No OFD packet to send [11:07:19]*** Cut start [11:07:19]*** Partial cut [11:07:19]*** CUTSNS_PIN = 1 [11:07:19]*** CUTSNS_PIN = 0 [11:07:19]*** Brake cut motor [11:07:20]Read from MH i2c: 01 [11:07:20]MH_I2C_Read... [11:07:20]*** Stop cut motor [11:07:20]*** Cut end [11:07:20]Read from MH i2c: 01 07 00 [11:07:20]MH_I2C_Read... [11:07:20]Read from MH i2c: 01 07 00 88 1B 00 00 00 00 00 FF 0F B8 [11:07:20]process_action close_receipt done [11:07:20]requested_data is exist [11:07:20]produce_requested_data [11:07:20]requested_item fm.sn is exist - process it [11:07:20]wFMCommunicate request_size=4 [11:07:20]MH_SAM_APDU [11:07:20]CAPDU: 80 11 00 00 [11:07:20]Write to MH i2c: E2 08 00 89 1B 80 11 00 00 00 00 00 00 1E [11:07:20]Write i2c OK [11:07:20]MH_I2C_Read... [11:07:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:20]Read from MH i2c: E2 [11:07:20]MH_I2C_Read... [11:07:20]Read from MH i2c: E2 17 00 [11:07:20]MH_I2C_Read... [11:07:20]Read from MH i2c: E2 17 00 89 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 79 [11:07:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:07:20]wFMCommunicate OK [11:07:20]requested_item fd.num is exist - process it [11:07:20]SAM_PROTO_GetFieldsCounters [11:07:20]wFMCommunicate request_size=4 [11:07:20]MH_SAM_APDU [11:07:20]CAPDU: 80 13 00 00 [11:07:20]Write to MH i2c: E2 08 00 8A 1B 80 13 00 00 00 00 00 00 21 [11:07:20]Write i2c OK [11:07:20]MH_I2C_Read... [11:07:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:20]Read from MH i2c: E2 [11:07:20]MH_I2C_Read... [11:07:20]Read from MH i2c: E2 62 00 [11:07:20]MH_I2C_Read... [11:07:20]Read from MH i2c: E2 62 00 8A 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A9 CE 01 00 0E 04 04 00 B1 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 BC [11:07:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A9 CE 01 00 0E 04 04 00 B1 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 [11:07:20]wFMCommunicate OK [11:07:20]SAM_PROTO_GetFieldsCounters done [11:07:20]requested_item shift.num is exist - process it [11:07:20]requested_item shift.opened is exist - process it [11:07:20]req_shift_opened [11:07:20]FM_GetShiftState [11:07:20]SAM_PROTO_GetShiftState [11:07:20]wFMCommunicate request_size=4 [11:07:20]MH_SAM_APDU [11:07:20]CAPDU: 80 13 01 00 [11:07:20]Write to MH i2c: E2 08 00 8B 1B 80 13 01 00 00 00 00 00 23 [11:07:20]Write i2c OK [11:07:20]MH_I2C_Read... [11:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:20]Read from MH i2c: E2 [11:07:20]MH_I2C_Read... [11:07:20]Read from MH i2c: E2 0E 00 [11:07:20]MH_I2C_Read... [11:07:20]Read from MH i2c: E2 0E 00 8B 1B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 FA [11:07:20]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:07:20]wFMCommunicate OK [11:07:20]SAM_PROTO_GetShiftState done [11:07:20]FM_GetShiftState done [11:07:20]req_shift_opened done [11:07:20]requested_item shift.open_date is exist - process it [11:07:20]req_shift_open_date [11:07:20]req_shift_open_date done [11:07:20]produce_requested_data done [11:07:20]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118441,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:07:20]process_action_free close_receipt [11:07:20]json_value_free [11:07:20]json_value_free done [11:07:20]process_json_proto returns [11:07:20]Send response to host [11:07:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118441,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:07:20]free response buf [11:07:20]execute_script done [11:07:20]execute_script returns [11:07:20]free content buf [11:07:20]Sock 7.Close socket [11:07:20]Sock 7.Thread stoped [11:07:24]OFD Sender: No OFD packet to send [11:07:29]OFD Sender: No OFD packet to send [11:07:34]OFD Sender: No OFD packet to send [11:07:39]OFD Sender: No OFD packet to send [11:07:44]OFD Sender: No OFD packet to send [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:24]OFD Sender: No OFD packet to send [11:08:29]OFD Sender: No OFD packet to send [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:19]OFD Sender: No OFD packet to send [11:09:20]accept exits with 9 [11:09:20]New connection [11:09:20]New thread 3067067748 created [11:09:20]Thread 3066924388 joined [11:09:20]Waiting for new connection... [11:09:20] Sock 9.Parse request [11:09:20]Sock 9.Check first char [11:09:20]Sock 9.First char is OK [11:09:20]request: POST /json_proto HTTP/1.0 [11:09:20]Method: POST [11:09:20]URL: /json_proto [11:09:20]Method is POST - this is cgi request [11:09:20]url: /json_proto [11:09:20]query_string will be loaded in cgi processing [11:09:20]execute_cgi json_proto POST (null) [11:09:20]execute_cgi path=json_proto method=POST [11:09:20]POST find Content-Length [11:09:20]Host: 172.17.45.7:8080 [11:09:20]Content-Length: 677 [11:09:20]Content-Type: application/json [11:09:20] [11:09:20]POST finish read [11:09:20]Found Content-Length = 677 [11:09:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.930, "sum" : 605.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 605.00, "total" : 605.00, "payments": [ { "type": 0, "sum" : 605.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:20]execute_script... [11: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)949316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.930, "sum" : 605.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 605.00, "total" : 605.00, "payments": [ { "type": 0, "sum" : 605.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:20]POST & json_proto [11:09:20]process_json_proto [11:09:20]json parsed OK: [11:09:20]protocol is kg_v1.0 [11:09:20]action value=close_receipt [11:09:20]process_action close_receipt [11:09:20]cmd_close_receipt [11:09:20]MH_GetDate [11:09:20]Write to MH i2c: F0 00 00 8C 1B 96 [11:09:20]Write i2c OK [11:09:20]MH_I2C_Read... [11:09:20]Read from MH i2c: F0 [11:09:20]MH_I2C_Read... [11:09:20]Read from MH i2c: F0 09 00 [11:09:20]MH_I2C_Read... [11:09:20]Read from MH i2c: F0 09 00 8C 1B 00 E2 26 A6 66 90 0F 3E 66 F6 [11:09:20]GetLastDocTimeStamp 1722164838 [11:09:20]current date 1722164962 [11:09:20]FM_GetShiftState [11:09:20]SAM_PROTO_GetShiftState [11:09:20]wFMCommunicate request_size=4 [11:09:20]MH_SAM_APDU [11:09:20]CAPDU: 80 13 01 00 [11:09:20]Write to MH i2c: E2 08 00 8D 1B 80 13 01 00 00 00 00 00 25 [11:09:20]Write i2c OK [11:09:20]MH_I2C_Read... [11:09:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:20]Read from MH i2c: E2 [11:09:20]MH_I2C_Read... [11:09:20]Read from MH i2c: E2 0E 00 [11:09:20]MH_I2C_Read... [11:09:20]Read from MH i2c: E2 0E 00 8D 1B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 FC [11:09:20]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:09:20]wFMCommunicate OK [11:09:20]SAM_PROTO_GetShiftState done [11:09:20]FM_GetShiftState done [11:09:20]opened in 1722125364 [11:09:20]opened+sec_in_day 1722211764 [11:09:20]quantity*price = 60545 [11:09:20]sum+1 = 60546 [11:09:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 605.00 Внесено: 605.00 СДАЧА: 0.00 НСП 1% : 5.36 НДС 12% : 64.30 Наличными: 605.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 111 28.07.2024 11:09 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118442 ФПД: 228353493609385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T110922&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118442&fm=228353493609385&tin=02508201610067®Number=0000000000092660&sum=60500 [11:09:21]StoreToDocumentArchive [11:09:21]shift 433 fd 118442 [11:09:21]save to /storage/0433/doc_00118442 [11:09:21]save last doc name /storage/0433/doc_00118442 to /storage/kkm_last_doc_name [11:09:21]save OK [11:09:21]Clear old archive folders... [11:09:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:09:21]tlvbuf is B6EDD900 [11:09:21]SAM_PROTO_ClearQueue [11:09:21]wFMCommunicate request_size=4 [11:09:21]MH_SAM_APDU [11:09:21]CAPDU: 80 09 00 00 [11:09:21]Write to MH i2c: E2 08 00 9A 1B 80 09 00 00 00 00 00 00 27 [11:09:21]Write i2c OK [11:09:21]MH_I2C_Read... [11:09:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:21]Read from MH i2c: E2 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 03 00 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 03 00 9A 1B 00 90 00 29 [11:09:21]RAPDU: 90 00 [11:09:21]wFMCommunicate OK [11:09:21]SAM_PROTO_ClearQueue done [11:09:21]KKMCreateOFDPacket [11:09:21]OFDProtocolAddRootSTLVToBuf [11:09:21]FM_MakeSignedData [11:09:21]FM_MakeSignedData [11:09:21]SAM_PROTO_SignData [11:09:21]wFMCommunicate request_size=4 [11:09:21]MH_SAM_APDU [11:09:21]CAPDU: 80 0D 01 02 [11:09:21]Write to MH i2c: E2 08 00 9B 1B 80 0D 01 02 00 00 00 00 2F [11:09:21]Write i2c OK [11:09:21]MH_I2C_Read... [11:09:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:21]Read from MH i2c: E2 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 03 00 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 03 00 9B 1B 00 90 00 2A [11:09:21]RAPDU: 90 00 [11:09:21]wFMCommunicate OK [11:09:21]wFMCommunicate request_size=255 [11:09:21]MH_SAM_APDU [11:09: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 34 FF 03 08 00 03 E2 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 81 EC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 EC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 19 00 00 00 00 07 04 06 00 54 EC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 E2 26 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AA CE 01 00 35 04 06 00 CF [11:09:21]Write to MH i2c: E2 02 01 9C 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E2 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 81 EC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 EC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 19 00 00 00 00 07 04 06 00 54 EC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 E2 26 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AA CE 01 00 35 04 06 00 CF 00 00 93 [11:09:21]Write i2c OK [11:09:21]MH_I2C_Read... [11:09:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:21]Read from MH i2c: E2 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 03 00 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 03 00 9C 1B 00 90 00 2B [11:09:21]RAPDU: 90 00 [11:09:21]wFMCommunicate OK [11:09:21]wFMCommunicate request_size=10 [11:09:21]MH_SAM_APDU [11:09:21]CAPDU: 80 0D 02 02 05 AF B0 DE AB A9 [11:09:21]Write to MH i2c: E2 0D 00 9D 1B 80 0D 02 02 05 00 AF B0 DE AB A9 00 00 CD [11:09:21]Write i2c OK [11:09:21]MH_I2C_Read... [11:09:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:21]Read from MH i2c: E2 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 03 00 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 03 00 9D 1B 00 90 00 2C [11:09:21]RAPDU: 90 00 [11:09:21]wFMCommunicate OK [11:09:21]wFMCommunicate request_size=4 [11:09:21]MH_SAM_APDU [11:09:21]CAPDU: 80 0D 03 02 [11:09:21]Write to MH i2c: E2 08 00 9E 1B 80 0D 03 02 00 00 00 00 34 [11:09:21]Write i2c OK [11:09:21]MH_I2C_Read... [11:09:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:21]Read from MH i2c: E2 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 0B 00 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 0B 00 9E 1B 00 B5 CB F4 29 69 E6 4B 80 90 00 EC [11:09:21]RAPDU: B5 CB F4 29 69 E6 4B 80 90 00 [11:09:21]wFMCommunicate OK [11:09:21]SAM_PROTO_SignData done [11:09:21]FM_MakeSignedData done [11:09:21]CreateOFDProtocolMessage [11:09:21]wFMCommunicate request_size=4 [11:09:21]MH_SAM_APDU [11:09:21]CAPDU: 80 11 00 00 [11:09:21]Write to MH i2c: E2 08 00 9F 1B 80 11 00 00 00 00 00 00 34 [11:09:21]Write i2c OK [11:09:21]MH_I2C_Read... [11:09:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:21]Read from MH i2c: E2 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 17 00 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 17 00 9F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8F [11:09:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:09:21]wFMCommunicate OK [11:09:21]CreateOFDProtocolMessage done [11:09:21]OFDSenderStorePacket 118442 [11:09:21]StoreOFDPacket docnum=118442 [11:09:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CA B5 07 01 E6 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 34 FF 03 08 00 03 E2 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 81 EC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 EC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 19 00 00 00 00 07 04 06 00 54 EC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 E2 26 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AA CE 01 00 35 04 06 00 CF AF B0 DE AB A9 B5 CB F4 29 69 E6 4B 80 [11:09:21]CheckFolder [11:09:21]dirname=/storage/ofd_packets [11:09:21]CheckFolder done [11:09:21]ProducePacketName [11:09:21]name=ofd_packets/00118442 [11:09:21]NVStorageSaveData ofd_packets/00118442 [11:09:21]File name is /storage/ofd_packets/00118442 [11:09:21]Write 301 bytes [11:09:21]NVStorageSaveData done [11:09:21]OFDSenderStorePacket done [11:09:21]KKMCreateOFDPacket done [11:09:21]NVStorageSaveData kkm_last_timestamp [11:09:21]File name is /storage/kkm_last_timestamp [11:09:21]Write 4 bytes [11:09:21]NVStorageSaveData done [11:09:21]ExternCall_PrintAddStr [11:09:21]wPrintStart [11:09:21]Write to MH i2c: 01 00 00 A0 1B BB [11:09:21]Write i2c OK [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: 01 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: 01 07 00 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: 01 07 00 A0 1B 00 00 00 00 00 FF 0F D0 [11:09:21]RasterBufferAndPrint [11:09:21]line Счет N : (1)949316 [11:09:21]line ИНН: 02508201610067 [11:09:21]line Контрольно-Кассовый Чек [11:09:21]line ПРОДАЖА [11:09:21]line ТРК (МРК, ГНК) : 41 [11:09:21]line Товар: 2710124130 [11:09:21]line Аи-92-К-4 [11:09:21]line 8.930 * 67.80 [11:09:21]line = 605.45 [11:09:21]line НДС 12% НСП 1% [11:09:21]line > о реализуемом товаре [11:09:21]line ОКРУГЛЕНИЕ: -0.45 [11:09:21]line ИТОГО: 605.00 [11:09:21]line Внесено: 605.00 [11:09:21]line СДАЧА: 0.00 [11:09:21]line НСП 1% : 5.36 [11:09:21]line НДС 12% : 64.30 [11:09:21]line Наличными: 605.00 [11:09:21]line Безнал.: 0.00 [11:09:21]line Место: АЗС № 134 "Партнер Нефть" [11:09:21]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:09:21]line СНО: Общий режим [11:09:21]line Чек 111 28.07.2024 11:09 [11:09:21]line Смена: 433 ФФД: 1.0 [11:09:21]line ЗНМ: 0300000044 [11:09:21]line РНМ: 0000000000092660 [11:09:21]line Версия ККМ: 001 [11:09:21]line ФМ: 0000000000874939 [11:09:21]line ФД: 118442 [11:09:21]line ФПД: 228353493609385 [11:09:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T110922&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118442&fm=228353493609385&tin=02508201610067®Number=0000000000092660&sum=60500 [11:09:22]OFD Sender: Processing packet 118442 [packets to send 86, broken 85] [11:09:22]ProducePacketName [11:09:22]name=ofd_packets/00118442 [11:09:22]OFD Sender: To server: pG, [11:09:22]CommunicateWithHost lk.salyk.kg:30040 [11:09:22]ConnectInit lk.salyk.kg [11:09:22]written 0, free lines is 4095 [11:09:22]Connected sock=10 [11: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 39 33 39 0F 01 00 00 CA B5 07 01 E6 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 34 FF 03 08 00 03 E2 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 81 EC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 EC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 19 00 00 00 00 07 04 06 00 54 EC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 E2 26 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AA CE 01 00 35 04 06 00 CF AF B0 DE AB A9 B5 CB F4 29 69 E6 4B 80 [11: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 39 33 39 4F 00 00 00 53 7F 47 00 E2 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 39 33 39 10 04 04 00 AA CE 01 00 F4 03 04 00 73 D4 A5 66 B6 04 01 00 00 BD A4 76 C0 F3 09 78 69 [11:09:22]CommunicateWithHost err = 0 [11:09:22]CheckOFDResponse [11:09:22]1017 (14) - 77093643461234 [11:09:22]1041 (16) - 0000000000874939 [11:09:22]1040 (4) - 118442 [11:09:22]1012 (4) - 28.07.2024 05:17 [11:09:22]1206 (1) - 0 [11:09:22]OFD Sender: Remove packet 118442 [11:09:22]ProducePacketName [11:09:22]name=ofd_packets/00118442 [11:09:22]NVStorageDeleteData [11:09:22]Write to MH i2c: 01 00 00 CA 1B E5 [11:09:22]Write i2c OK [11:09:22]MH_I2C_Read... [11:09:22]Read from MH i2c: 01 [11:09:22]MH_I2C_Read... [11:09:22]Read from MH i2c: 01 07 00 [11:09:22]MH_I2C_Read... [11:09:22]Read from MH i2c: 01 07 00 CA 1B 00 00 00 00 00 E0 0C D8 [11:09:22]RasterBufferAndPrint [11:09:22]line [11:09:22]line [11:09:22]line [11:09:22]line [11:09:22]line [11:09:22]written 0, free lines is 3305 [11:09:22]MH_Cut [11:09:22]Write to MH i2c: D1 01 00 D1 1B 01 BE [11:09:22]Write i2c OK [11:09:22]MH_I2C_Read... [11:09:22]Read from MH i2c: D1 [11:09:22]MH_I2C_Read... [11:09:22]Read from MH i2c: D1 01 00 [11:09:22]MH_I2C_Read... [11:09:22]Read from MH i2c: D1 01 00 D1 1B 00 BD [11:09:22]Write to MH i2c: 01 00 00 D2 1B ED [11:09:22]Write i2c OK [11:09:22]MH_I2C_Read... [11:09:23]OFD Sender: No OFD packet to send [11:09:23]*** Cut start [11:09:23]*** Partial cut [11:09:23]*** CUTSNS_PIN = 1 [11:09:23]*** CUTSNS_PIN = 0 [11:09:23]*** Brake cut motor [11:09:24]Read from MH i2c: 01 [11:09:24]MH_I2C_Read... [11:09:24]*** Stop cut motor [11:09:24]*** Cut end [11:09:24]Read from MH i2c: 01 07 00 [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: 01 07 00 D2 1B 00 00 00 00 00 FF 0F 02 [11:09:24]process_action close_receipt done [11:09:24]requested_data is exist [11:09:24]produce_requested_data [11:09:24]requested_item fm.sn is exist - process it [11:09:24]wFMCommunicate request_size=4 [11:09:24]MH_SAM_APDU [11:09:24]CAPDU: 80 11 00 00 [11:09:24]Write to MH i2c: E2 08 00 D3 1B 80 11 00 00 00 00 00 00 68 [11:09:24]Write i2c OK [11:09:24]MH_I2C_Read... [11:09:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:24]Read from MH i2c: E2 [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: E2 17 00 [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: E2 17 00 D3 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C3 [11:09:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:09:24]wFMCommunicate OK [11:09:24]requested_item fd.num is exist - process it [11:09:24]SAM_PROTO_GetFieldsCounters [11:09:24]wFMCommunicate request_size=4 [11:09:24]MH_SAM_APDU [11:09:24]CAPDU: 80 13 00 00 [11:09:24]Write to MH i2c: E2 08 00 D4 1B 80 13 00 00 00 00 00 00 6B [11:09:24]Write i2c OK [11:09:24]MH_I2C_Read... [11:09:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:24]Read from MH i2c: E2 [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: E2 62 00 [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: E2 62 00 D4 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AA CE 01 00 0E 04 04 00 B1 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 0A [11:09:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AA CE 01 00 0E 04 04 00 B1 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 [11:09:24]wFMCommunicate OK [11:09:24]SAM_PROTO_GetFieldsCounters done [11:09:24]requested_item shift.num is exist - process it [11:09:24]requested_item shift.opened is exist - process it [11:09:24]req_shift_opened [11:09:24]FM_GetShiftState [11:09:24]SAM_PROTO_GetShiftState [11:09:24]wFMCommunicate request_size=4 [11:09:24]MH_SAM_APDU [11:09:24]CAPDU: 80 13 01 00 [11:09:24]Write to MH i2c: E2 08 00 D5 1B 80 13 01 00 00 00 00 00 6D [11:09:24]Write i2c OK [11:09:24]MH_I2C_Read... [11:09:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:24]Read from MH i2c: E2 [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: E2 0E 00 [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: E2 0E 00 D5 1B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 44 [11:09:24]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:09:24]wFMCommunicate OK [11:09:24]SAM_PROTO_GetShiftState done [11:09:24]FM_GetShiftState done [11:09:24]req_shift_opened done [11:09:24]requested_item shift.open_date is exist - process it [11:09:24]req_shift_open_date [11:09:24]req_shift_open_date done [11:09:24]produce_requested_data done [11:09:24]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118442,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:09:24]process_action_free close_receipt [11:09:24]json_value_free [11:09:24]json_value_free done [11:09:24]process_json_proto returns [11:09:24]Send response to host [11:09:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118442,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:09:24]free response buf [11:09:24]execute_script done [11:09:24]execute_script returns [11:09:24]free content buf [11:09:24]Sock 9.Close socket [11:09:24]Sock 9.Thread stoped [11:09:28]OFD Sender: No OFD packet to send [11:09:33]OFD Sender: No OFD packet to send [11:09:38]OFD Sender: No OFD packet to send [11:09:43]OFD Sender: No OFD packet to send [11:09:48]OFD Sender: No OFD packet to send [11:09:53]OFD Sender: No OFD packet to send [11:09:58]OFD Sender: No OFD packet to send [11:10:03]OFD Sender: No OFD packet to send [11:10:08]OFD Sender: No OFD packet to send [11:10:13]OFD Sender: No OFD packet to send [11:10:18]OFD Sender: No OFD packet to send [11:10:23]OFD Sender: No OFD packet to send [11:10:28]OFD Sender: No OFD packet to send [11:10:33]OFD Sender: No OFD packet to send [11:10:38]OFD Sender: No OFD packet to send [11:10:43]OFD Sender: No OFD packet to send [11:10:43]accept exits with 7 [11:10:43]New connection [11:10:43]New thread 3066924388 created [11:10:43]Thread 3067067748 joined [11:10:43]Waiting for new connection... [11:10:43] Sock 7.Parse request [11:10:43]Sock 7.Check first char [11:10:43]Sock 7.First char is OK [11:10:43]request: POST /json_proto HTTP/1.0 [11:10:43]Method: POST [11:10:43]URL: /json_proto [11:10:43]Method is POST - this is cgi request [11:10:43]url: /json_proto [11:10:43]query_string will be loaded in cgi processing [11:10:43]execute_cgi json_proto POST (null) [11:10:43]execute_cgi path=json_proto method=POST [11:10:43]POST find Content-Length [11:10:43]Host: 172.17.45.7:8080 [11:10:43]Content-Length: 679 [11:10:43]Content-Type: application/json [11:10:43] [11:10:43]POST finish read [11:10:43]Found Content-Length = 679 [11:10:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:43]execute_script... [11:10: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)949317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:43]POST & json_proto [11:10:43]process_json_proto [11:10:43]json parsed OK: [11:10:43]protocol is kg_v1.0 [11:10:43]action value=close_receipt [11:10:43]process_action close_receipt [11:10:43]cmd_close_receipt [11:10:43]MH_GetDate [11:10:43]Write to MH i2c: F0 00 00 D6 1B E0 [11:10:43]Write i2c OK [11:10:43]MH_I2C_Read... [11:10:43]Read from MH i2c: F0 [11:10:43]MH_I2C_Read... [11:10:43]Read from MH i2c: F0 09 00 [11:10:43]MH_I2C_Read... [11:10:43]Read from MH i2c: F0 09 00 D6 1B 00 36 27 A6 66 90 0F 3E 66 95 [11:10:43]GetLastDocTimeStamp 1722164962 [11:10:43]current date 1722165046 [11:10:43]FM_GetShiftState [11:10:43]SAM_PROTO_GetShiftState [11:10:43]wFMCommunicate request_size=4 [11:10:43]MH_SAM_APDU [11:10:43]CAPDU: 80 13 01 00 [11:10:43]Write to MH i2c: E2 08 00 D7 1B 80 13 01 00 00 00 00 00 6F [11:10:43]Write i2c OK [11:10:43]MH_I2C_Read... [11:10:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:44]Read from MH i2c: E2 [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: E2 0E 00 [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: E2 0E 00 D7 1B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 46 [11:10:44]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:10:44]wFMCommunicate OK [11:10:44]SAM_PROTO_GetShiftState done [11:10:44]FM_GetShiftState done [11:10:44]opened in 1722125364 [11:10:44]opened+sec_in_day 1722211764 [11:10:44]quantity*price = 100050 [11:10:44]sum+1 = 100052 [11:10:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 112 28.07.2024 11:10 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118443 ФПД: 224549940386819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111046&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118443&fm=224549940386819&tin=02508201610067®Number=0000000000092660&sum=100000 [11:10:45]StoreToDocumentArchive [11:10:45]shift 433 fd 118443 [11:10:45]save to /storage/0433/doc_00118443 [11:10:45]save last doc name /storage/0433/doc_00118443 to /storage/kkm_last_doc_name [11:10:45]save OK [11:10:45]Clear old archive folders... [11:10:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:10:45]tlvbuf is 0012C240 [11:10:45]SAM_PROTO_ClearQueue [11:10:45]wFMCommunicate request_size=4 [11:10:45]MH_SAM_APDU [11:10:45]CAPDU: 80 09 00 00 [11:10:45]Write to MH i2c: E2 08 00 E4 1B 80 09 00 00 00 00 00 00 71 [11:10:45]Write i2c OK [11:10:45]MH_I2C_Read... [11:10:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:45]Read from MH i2c: E2 [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: E2 03 00 [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: E2 03 00 E4 1B 00 90 00 73 [11:10:45]RAPDU: 90 00 [11:10:45]wFMCommunicate OK [11:10:45]SAM_PROTO_ClearQueue done [11:10:45]KKMCreateOFDPacket [11:10:45]OFDProtocolAddRootSTLVToBuf [11:10:45]FM_MakeSignedData [11:10:45]FM_MakeSignedData [11:10:45]SAM_PROTO_SignData [11:10:45]wFMCommunicate request_size=4 [11:10:45]MH_SAM_APDU [11:10:45]CAPDU: 80 0D 01 02 [11:10:45]Write to MH i2c: E2 08 00 E5 1B 80 0D 01 02 00 00 00 00 79 [11:10:45]Write i2c OK [11:10:45]MH_I2C_Read... [11:10:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:45]Read from MH i2c: E2 [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: E2 03 00 [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: E2 03 00 E5 1B 00 90 00 74 [11:10:45]RAPDU: 90 00 [11:10:45]wFMCommunicate OK [11:10:45]wFMCommunicate request_size=255 [11:10:45]MH_SAM_APDU [11:10:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 36 27 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AB CE 01 00 35 04 06 00 CC 3A 1B 6E [11:10:45]Write to MH i2c: E2 02 01 E6 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 36 27 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AB CE 01 00 35 04 06 00 CC 3A 1B 6E 00 00 9D [11:10:45]Write i2c OK [11:10:45]MH_I2C_Read... [11:10:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:45]Read from MH i2c: E2 [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: E2 03 00 [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: E2 03 00 E6 1B 00 90 00 75 [11:10:45]RAPDU: 90 00 [11:10:45]wFMCommunicate OK [11:10:45]wFMCommunicate request_size=7 [11:10:45]MH_SAM_APDU [11:10:45]CAPDU: 80 0D 02 02 02 5C 03 [11:10:45]Write to MH i2c: E2 0A 00 E7 1B 80 0D 02 02 02 00 5C 03 00 00 DF [11:10:45]Write i2c OK [11:10:45]MH_I2C_Read... [11:10:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:45]Read from MH i2c: E2 [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: E2 03 00 [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: E2 03 00 E7 1B 00 90 00 76 [11:10:45]RAPDU: 90 00 [11:10:45]wFMCommunicate OK [11:10:45]wFMCommunicate request_size=4 [11:10:45]MH_SAM_APDU [11:10:45]CAPDU: 80 0D 03 02 [11:10:45]Write to MH i2c: E2 08 00 E8 1B 80 0D 03 02 00 00 00 00 7E [11:10:45]Write i2c OK [11:10:45]MH_I2C_Read... [11:10:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:45]Read from MH i2c: E2 [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: E2 0B 00 [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: E2 0B 00 E8 1B 00 9B C4 85 D4 F8 E0 32 E1 90 00 22 [11:10:45]RAPDU: 9B C4 85 D4 F8 E0 32 E1 90 00 [11:10:45]wFMCommunicate OK [11:10:45]SAM_PROTO_SignData done [11:10:45]FM_MakeSignedData done [11:10:45]CreateOFDProtocolMessage [11:10:45]wFMCommunicate request_size=4 [11:10:45]MH_SAM_APDU [11:10:45]CAPDU: 80 11 00 00 [11:10:45]Write to MH i2c: E2 08 00 E9 1B 80 11 00 00 00 00 00 00 7E [11:10:45]Write i2c OK [11:10:45]MH_I2C_Read... [11:10:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:45]Read from MH i2c: E2 [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: E2 17 00 [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: E2 17 00 E9 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D9 [11:10:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:10:45]wFMCommunicate OK [11:10:45]CreateOFDProtocolMessage done [11:10:45]OFDSenderStorePacket 118443 [11:10:45]StoreOFDPacket docnum=118443 [11:10:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 32 77 04 01 1A 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 36 27 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AB CE 01 00 35 04 06 00 CC 3A 1B 6E 5C 03 9B C4 85 D4 F8 E0 32 E1 [11:10:45]CheckFolder [11:10:45]dirname=/storage/ofd_packets [11:10:45]CheckFolder done [11:10:45]ProducePacketName [11:10:45]name=ofd_packets/00118443 [11:10:45]NVStorageSaveData ofd_packets/00118443 [11:10:45]File name is /storage/ofd_packets/00118443 [11:10:45]Write 298 bytes [11:10:45]NVStorageSaveData done [11:10:45]OFDSenderStorePacket done [11:10:45]KKMCreateOFDPacket done [11:10:45]NVStorageSaveData kkm_last_timestamp [11:10:45]File name is /storage/kkm_last_timestamp [11:10:45]Write 4 bytes [11:10:45]NVStorageSaveData done [11:10:45]ExternCall_PrintAddStr [11:10:45]wPrintStart [11:10:45]Write to MH i2c: 01 00 00 EA 1B 05 [11:10:45]Write i2c OK [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: 01 [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: 01 07 00 [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: 01 07 00 EA 1B 00 00 00 00 00 FF 0F 1A [11:10:45]RasterBufferAndPrint [11:10:45]line Счет N : (1)949317 [11:10:45]line ИНН: 02508201610067 [11:10:45]line Контрольно-Кассовый Чек [11:10:45]line ПРОДАЖА [11:10:45]line ТРК (МРК, ГНК) : 44 [11:10:45]line Товар: 2710194800 [11:10:45]line ДТ-К-5 [11:10:45]line 13.130 * 76.20 [11:10:45]line = 1000.51 [11:10:45]line НДС 12% НСП 1% [11:10:45]line > о реализуемом товаре [11:10:45]line ОКРУГЛЕНИЕ: -0.51 [11:10:45]line ИТОГО: 1000.00 [11:10:45]line Внесено: 1000.00 [11:10:45]line СДАЧА: 0.00 [11:10:45]line НСП 1% : 8.85 [11:10:45]line НДС 12% : 106.25 [11:10:45]line Наличными: 1000.00 [11:10:45]line Безнал.: 0.00 [11:10:45]line Место: АЗС № 134 "Партнер Нефть" [11:10:45]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:10:45]line СНО: Общий режим [11:10:45]line Чек 112 28.07.2024 11:10 [11:10:45]line Смена: 433 ФФД: 1.0 [11:10:45]line ЗНМ: 0300000044 [11:10:45]line РНМ: 0000000000092660 [11:10:45]line Версия ККМ: 001 [11:10:45]line ФМ: 0000000000874939 [11:10:45]line ФД: 118443 [11:10:45]line ФПД: 224549940386819 [11:10:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111046&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118443&fm=224549940386819&tin=02508201610067®Number=0000000000092660&sum=100000 [11:10:45]OFD Sender: Processing packet 118443 [packets to send 86, broken 85] [11:10:45]ProducePacketName [11:10:45]name=ofd_packets/00118443 [11:10:45]OFD Sender: To server: pG, [11:10:45]CommunicateWithHost lk.salyk.kg:30040 [11:10:45]ConnectInit lk.salyk.kg [11:10:45]written 0, free lines is 4095 [11:10:46]Connected sock=9 [11:10: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 39 33 39 0C 01 00 00 32 77 04 01 1A 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 36 27 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AB CE 01 00 35 04 06 00 CC 3A 1B 6E 5C 03 9B C4 85 D4 F8 E0 32 E1 [11:10:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 84 32 47 00 F8 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 39 33 39 10 04 04 00 AB CE 01 00 F4 03 04 00 C6 D4 A5 66 B6 04 01 00 00 83 F2 B6 BF D2 CF 83 24 [11:10:46]CommunicateWithHost err = 0 [11:10:46]CheckOFDResponse [11:10:46]1017 (14) - 77093643461234 [11:10:46]1041 (16) - 0000000000874939 [11:10:46]1040 (4) - 118443 [11:10:46]1012 (4) - 28.07.2024 05:19 [11:10:46]1206 (1) - 0 [11:10:46]OFD Sender: Remove packet 118443 [11:10:46]ProducePacketName [11:10:46]name=ofd_packets/00118443 [11:10:46]NVStorageDeleteData [11:10:46]Write to MH i2c: 01 00 00 14 1C 30 [11:10:46]Write i2c OK [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: 01 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: 01 07 00 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: 01 07 00 14 1C 00 00 00 00 00 EC 0C 2F [11:10:46]RasterBufferAndPrint [11:10:46]line [11:10:46]line [11:10:46]line [11:10:46]line [11:10:46]line [11:10:46]written 0, free lines is 3314 [11:10:46]MH_Cut [11:10:46]Write to MH i2c: D1 01 00 1B 1C 01 09 [11:10:46]Write i2c OK [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: D1 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: D1 01 00 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: D1 01 00 1B 1C 00 08 [11:10:46]Write to MH i2c: 01 00 00 1C 1C 38 [11:10:46]Write i2c OK [11:10:46]MH_I2C_Read... [11:10:46]OFD Sender: No OFD packet to send [11:10:47]*** Cut start [11:10:47]*** Partial cut [11:10:47]*** CUTSNS_PIN = 1 [11:10:47]*** CUTSNS_PIN = 0 [11:10:47]*** Brake cut motor [11:10:47]Read from MH i2c: 01 [11:10:47]MH_I2C_Read... [11:10:47]*** Stop cut motor [11:10:47]*** Cut end [11:10:47]Read from MH i2c: 01 07 00 [11:10:47]MH_I2C_Read... [11:10:47]Read from MH i2c: 01 07 00 1C 1C 00 00 00 00 00 FF 0F 4D [11:10:47]process_action close_receipt done [11:10:47]requested_data is exist [11:10:47]produce_requested_data [11:10:47]requested_item fm.sn is exist - process it [11:10:47]wFMCommunicate request_size=4 [11:10:47]MH_SAM_APDU [11:10:47]CAPDU: 80 11 00 00 [11:10:47]Write to MH i2c: E2 08 00 1D 1C 80 11 00 00 00 00 00 00 B3 [11:10:47]Write i2c OK [11:10:47]MH_I2C_Read... [11:10:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:47]Read from MH i2c: E2 [11:10:47]MH_I2C_Read... [11:10:47]Read from MH i2c: E2 17 00 [11:10:47]MH_I2C_Read... [11:10:47]Read from MH i2c: E2 17 00 1D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0E [11:10:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:10:47]wFMCommunicate OK [11:10:47]requested_item fd.num is exist - process it [11:10:47]SAM_PROTO_GetFieldsCounters [11:10:47]wFMCommunicate request_size=4 [11:10:47]MH_SAM_APDU [11:10:47]CAPDU: 80 13 00 00 [11:10:47]Write to MH i2c: E2 08 00 1E 1C 80 13 00 00 00 00 00 00 B6 [11:10:47]Write i2c OK [11:10:47]MH_I2C_Read... [11:10:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:47]Read from MH i2c: E2 [11:10:47]MH_I2C_Read... [11:10:47]Read from MH i2c: E2 62 00 [11:10:47]MH_I2C_Read... [11:10:47]Read from MH i2c: E2 62 00 1E 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AB CE 01 00 0E 04 04 00 B1 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 59 [11:10:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AB CE 01 00 0E 04 04 00 B1 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 [11:10:47]wFMCommunicate OK [11:10:47]SAM_PROTO_GetFieldsCounters done [11:10:47]requested_item shift.num is exist - process it [11:10:47]requested_item shift.opened is exist - process it [11:10:47]req_shift_opened [11:10:47]FM_GetShiftState [11:10:47]SAM_PROTO_GetShiftState [11:10:47]wFMCommunicate request_size=4 [11:10:47]MH_SAM_APDU [11:10:47]CAPDU: 80 13 01 00 [11:10:47]Write to MH i2c: E2 08 00 1F 1C 80 13 01 00 00 00 00 00 B8 [11:10:48]Write i2c OK [11:10:48]MH_I2C_Read... [11:10:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:48]Read from MH i2c: E2 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 0E 00 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 0E 00 1F 1C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 8F [11:10:48]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:10:48]wFMCommunicate OK [11:10:48]SAM_PROTO_GetShiftState done [11:10:48]FM_GetShiftState done [11:10:48]req_shift_opened done [11:10:48]requested_item shift.open_date is exist - process it [11:10:48]req_shift_open_date [11:10:48]req_shift_open_date done [11:10:48]produce_requested_data done [11:10:48]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118443,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:10:48]process_action_free close_receipt [11:10:48]json_value_free [11:10:48]json_value_free done [11:10:48]process_json_proto returns [11:10:48]Send response to host [11:10:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118443,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:10:48]free response buf [11:10:48]execute_script done [11:10:48]execute_script returns [11:10:48]free content buf [11:10:48]Sock 7.Close socket [11:10:48]Sock 7.Thread stoped [11:10:51]OFD Sender: No OFD packet to send [11:10:56]OFD Sender: No OFD packet to send [11:11:01]OFD Sender: No OFD packet to send [11:11:06]OFD Sender: No OFD packet to send [11:11:11]OFD Sender: No OFD packet to send [11:11:16]OFD Sender: No OFD packet to send [11:11:21]OFD Sender: No OFD packet to send [11:11:26]OFD Sender: No OFD packet to send [11:11:31]OFD Sender: No OFD packet to send [11:11:36]OFD Sender: No OFD packet to send [11:11:41]OFD Sender: No OFD packet to send [11:11:46]OFD Sender: No OFD packet to send [11:11:51]OFD Sender: No OFD packet to send [11:11:56]OFD Sender: No OFD packet to send [11:12:01]OFD Sender: No OFD packet to send [11:12:06]OFD Sender: No OFD packet to send [11:12:11]OFD Sender: No OFD packet to send [11:12:16]OFD Sender: No OFD packet to send [11:12:21]OFD Sender: No OFD packet to send [11:12:26]OFD Sender: No OFD packet to send [11:12:31]OFD Sender: No OFD packet to send [11:12:36]OFD Sender: No OFD packet to send [11:12:41]OFD Sender: No OFD packet to send [11:12:46]OFD Sender: No OFD packet to send [11:12:51]OFD Sender: No OFD packet to send [11:12:56]OFD Sender: No OFD packet to send [11:13:01]OFD Sender: No OFD packet to send [11:13:06]OFD Sender: No OFD packet to send [11:13:11]OFD Sender: No OFD packet to send [11:13:16]OFD Sender: No OFD packet to send [11:13:21]OFD Sender: No OFD packet to send [11:13:23]accept exits with 10 [11:13:23]New connection [11:13:23]New thread 3067067748 created [11:13:23]Thread 3066924388 joined [11:13:23]Waiting for new connection... [11:13:23] Sock 10.Parse request [11:13:23]Sock 10.Check first char [11:13:23]Sock 10.First char is OK [11:13:23]request: POST /json_proto HTTP/1.0 [11:13:23]Method: POST [11:13:23]URL: /json_proto [11:13:23]Method is POST - this is cgi request [11:13:23]url: /json_proto [11:13:23]query_string will be loaded in cgi processing [11:13:23]execute_cgi json_proto POST (null) [11:13:23]execute_cgi path=json_proto method=POST [11:13:23]POST find Content-Length [11:13:23]Host: 172.17.45.7:8080 [11:13:23]Content-Length: 677 [11:13:23]Content-Type: application/json [11:13:23] [11:13:23]POST finish read [11:13:23]Found Content-Length = 677 [11:13:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:23]execute_script... [11:13: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)949319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:23]POST & json_proto [11:13:23]process_json_proto [11:13:23]json parsed OK: [11:13:23]protocol is kg_v1.0 [11:13:23]action value=close_receipt [11:13:23]process_action close_receipt [11:13:23]cmd_close_receipt [11:13:23]MH_GetDate [11:13:23]Write to MH i2c: F0 00 00 20 1C 2B [11:13:23]Write i2c OK [11:13:23]MH_I2C_Read... [11:13:23]Read from MH i2c: F0 [11:13:23]MH_I2C_Read... [11:13:23]Read from MH i2c: F0 09 00 [11:13:23]MH_I2C_Read... [11:13:23]Read from MH i2c: F0 09 00 20 1C 00 D5 27 A6 66 90 0F 3E 66 7F [11:13:23]GetLastDocTimeStamp 1722165046 [11:13:23]current date 1722165205 [11:13:23]FM_GetShiftState [11:13:23]SAM_PROTO_GetShiftState [11:13:23]wFMCommunicate request_size=4 [11:13:23]MH_SAM_APDU [11:13:23]CAPDU: 80 13 01 00 [11:13:23]Write to MH i2c: E2 08 00 21 1C 80 13 01 00 00 00 00 00 BA [11:13:23]Write i2c OK [11:13:23]MH_I2C_Read... [11:13:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:23]Read from MH i2c: E2 [11:13:23]MH_I2C_Read... [11:13:23]Read from MH i2c: E2 0E 00 [11:13:23]MH_I2C_Read... [11:13:23]Read from MH i2c: E2 0E 00 21 1C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 91 [11:13:23]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:13:23]wFMCommunicate OK [11:13:23]SAM_PROTO_GetShiftState done [11:13:23]FM_GetShiftState done [11:13:23]opened in 1722125364 [11:13:23]opened+sec_in_day 1722211764 [11:13:23]quantity*price = 25018 [11:13:23]sum+1 = 25019 [11:13:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 113 28.07.2024 11:13 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118444 ФПД: 200370174855721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111325&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118444&fm=200370174855721&tin=02508201610067®Number=0000000000092660&sum=25000 [11:13:24]StoreToDocumentArchive [11:13:24]shift 433 fd 118444 [11:13:24]save to /storage/0433/doc_00118444 [11:13:24]save last doc name /storage/0433/doc_00118444 to /storage/kkm_last_doc_name [11:13:24]save OK [11:13:24]Clear old archive folders... [11:13:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:13:24]tlvbuf is 0012C960 [11:13:24]SAM_PROTO_ClearQueue [11:13:24]wFMCommunicate request_size=4 [11:13:24]MH_SAM_APDU [11:13:24]CAPDU: 80 09 00 00 [11:13:24]Write to MH i2c: E2 08 00 2E 1C 80 09 00 00 00 00 00 00 BC [11:13:24]Write i2c OK [11:13:24]MH_I2C_Read... [11:13:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:24]Read from MH i2c: E2 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 03 00 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 03 00 2E 1C 00 90 00 BE [11:13:24]RAPDU: 90 00 [11:13:24]wFMCommunicate OK [11:13:24]SAM_PROTO_ClearQueue done [11:13:24]KKMCreateOFDPacket [11:13:24]OFDProtocolAddRootSTLVToBuf [11:13:24]FM_MakeSignedData [11:13:24]FM_MakeSignedData [11:13:24]SAM_PROTO_SignData [11:13:24]wFMCommunicate request_size=4 [11:13:24]MH_SAM_APDU [11:13:24]CAPDU: 80 0D 01 02 [11:13:24]Write to MH i2c: E2 08 00 2F 1C 80 0D 01 02 00 00 00 00 C4 [11:13:24]Write i2c OK [11:13:24]MH_I2C_Read... [11:13:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:24]Read from MH i2c: E2 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 03 00 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 03 00 2F 1C 00 90 00 BF [11:13:24]RAPDU: 90 00 [11:13:24]wFMCommunicate OK [11:13:24]wFMCommunicate request_size=255 [11:13:24]MH_SAM_APDU [11:13: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 34 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 D5 27 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AC CE 01 00 35 04 06 00 B6 [11:13:24]Write to MH i2c: E2 02 01 30 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 34 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 D5 27 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AC CE 01 00 35 04 06 00 B6 00 00 B2 [11:13:24]Write i2c OK [11:13:24]MH_I2C_Read... [11:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:24]Read from MH i2c: E2 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 03 00 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 03 00 30 1C 00 90 00 C0 [11:13:24]RAPDU: 90 00 [11:13:24]wFMCommunicate OK [11:13:24]wFMCommunicate request_size=10 [11:13:24]MH_SAM_APDU [11:13:24]CAPDU: 80 0D 02 02 05 3C 51 18 8A 29 [11:13:24]Write to MH i2c: E2 0D 00 31 1C 80 0D 02 02 05 00 3C 51 18 8A 29 00 00 29 [11:13:24]Write i2c OK [11:13:24]MH_I2C_Read... [11:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:24]Read from MH i2c: E2 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 03 00 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 03 00 31 1C 00 90 00 C1 [11:13:24]RAPDU: 90 00 [11:13:24]wFMCommunicate OK [11:13:24]wFMCommunicate request_size=4 [11:13:24]MH_SAM_APDU [11:13:24]CAPDU: 80 0D 03 02 [11:13:24]Write to MH i2c: E2 08 00 32 1C 80 0D 03 02 00 00 00 00 C9 [11:13:24]Write i2c OK [11:13:24]MH_I2C_Read... [11:13:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:24]Read from MH i2c: E2 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 0B 00 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 0B 00 32 1C 00 A6 92 1D 86 54 3D 6F 8B 90 00 30 [11:13:24]RAPDU: A6 92 1D 86 54 3D 6F 8B 90 00 [11:13:24]wFMCommunicate OK [11:13:24]SAM_PROTO_SignData done [11:13:24]FM_MakeSignedData done [11:13:24]CreateOFDProtocolMessage [11:13:24]wFMCommunicate request_size=4 [11:13:24]MH_SAM_APDU [11:13:24]CAPDU: 80 11 00 00 [11:13:24]Write to MH i2c: E2 08 00 33 1C 80 11 00 00 00 00 00 00 C9 [11:13:24]Write i2c OK [11:13:24]MH_I2C_Read... [11:13:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:24]Read from MH i2c: E2 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 17 00 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 17 00 33 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 24 [11:13:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:13:24]wFMCommunicate OK [11:13:24]CreateOFDProtocolMessage done [11:13:24]OFDSenderStorePacket 118444 [11:13:24]StoreOFDPacket docnum=118444 [11:13:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 98 B8 07 01 9C 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 34 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 D5 27 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AC CE 01 00 35 04 06 00 B6 3C 51 18 8A 29 A6 92 1D 86 54 3D 6F 8B [11:13:24]CheckFolder [11:13:24]dirname=/storage/ofd_packets [11:13:24]CheckFolder done [11:13:24]ProducePacketName [11:13:24]name=ofd_packets/00118444 [11:13:24]NVStorageSaveData ofd_packets/00118444 [11:13:24]File name is /storage/ofd_packets/00118444 [11:13:24]Write 301 bytes [11:13:24]NVStorageSaveData done [11:13:24]OFDSenderStorePacket done [11:13:24]KKMCreateOFDPacket done [11:13:24]NVStorageSaveData kkm_last_timestamp [11:13:24]File name is /storage/kkm_last_timestamp [11:13:24]Write 4 bytes [11:13:24]NVStorageSaveData done [11:13:24]ExternCall_PrintAddStr [11:13:24]wPrintStart [11:13:24]Write to MH i2c: 01 00 00 34 1C 50 [11:13:24]Write i2c OK [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: 01 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: 01 07 00 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: 01 07 00 34 1C 00 00 00 00 00 FF 0F 65 [11:13:24]RasterBufferAndPrint [11:13:24]line Счет N : (1)949319 [11:13:24]line ИНН: 02508201610067 [11:13:24]line Контрольно-Кассовый Чек [11:13:24]line ПРОДАЖА [11:13:24]line ТРК (МРК, ГНК) : 41 [11:13:24]line Товар: 2710124130 [11:13:24]line Аи-92-К-4 [11:13:24]line 3.690 * 67.80 [11:13:24]line = 250.18 [11:13:24]line НДС 12% НСП 1% [11:13:24]line > о реализуемом товаре [11:13:24]line ОКРУГЛЕНИЕ: -0.18 [11:13:24]line ИТОГО: 250.00 [11:13:24]line Внесено: 250.00 [11:13:24]line СДАЧА: 0.00 [11:13:24]line НСП 1% : 2.21 [11:13:24]line НДС 12% : 26.57 [11:13:24]line Наличными: 250.00 [11:13:24]line Безнал.: 0.00 [11:13:24]line Место: АЗС № 134 "Партнер Нефть" [11:13:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:13:24]line СНО: Общий режим [11:13:24]line Чек 113 28.07.2024 11:13 [11:13:24]line Смена: 433 ФФД: 1.0 [11:13:24]line ЗНМ: 0300000044 [11:13:24]line РНМ: 0000000000092660 [11:13:24]line Версия ККМ: 001 [11:13:24]line ФМ: 0000000000874939 [11:13:24]line ФД: 118444 [11:13:24]line ФПД: 200370174855721 [11:13:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111325&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118444&fm=200370174855721&tin=02508201610067®Number=0000000000092660&sum=25000 [11:13:25]written 0, free lines is 4095 [11:13:25]OFD Sender: Processing packet 118444 [packets to send 86, broken 85] [11:13:25]ProducePacketName [11:13:25]name=ofd_packets/00118444 [11:13:25]OFD Sender: To server: pG, [11:13:25]CommunicateWithHost lk.salyk.kg:30040 [11:13:25]ConnectInit lk.salyk.kg [11:13:25]Connected sock=9 [11:13:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 98 B8 07 01 9C 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 34 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 D5 27 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AC CE 01 00 35 04 06 00 B6 3C 51 18 8A 29 A6 92 1D 86 54 3D 6F 8B [11:13:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 63 FB 47 00 F0 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 39 33 39 10 04 04 00 AC CE 01 00 F4 03 04 00 66 D5 A5 66 B6 04 01 00 00 F6 E9 D5 BA 94 78 5A 54 [11:13:25]CommunicateWithHost err = 0 [11:13:25]CheckOFDResponse [11:13:25]1017 (14) - 77093643461234 [11:13:25]1041 (16) - 0000000000874939 [11:13:25]1040 (4) - 118444 [11:13:25]1012 (4) - 28.07.2024 05:21 [11:13:25]1206 (1) - 0 [11:13:25]OFD Sender: Remove packet 118444 [11:13:25]ProducePacketName [11:13:25]name=ofd_packets/00118444 [11:13:25]NVStorageDeleteData [11:13:25]Write to MH i2c: 01 00 00 5E 1C 7A [11:13:25]Write i2c OK [11:13:25]MH_I2C_Read... [11:13:25]Read from MH i2c: 01 [11:13:25]MH_I2C_Read... [11:13:25]Read from MH i2c: 01 07 00 [11:13:25]MH_I2C_Read... [11:13:25]Read from MH i2c: 01 07 00 5E 1C 00 00 00 00 00 CC 0C 59 [11:13:25]RasterBufferAndPrint [11:13:25]line [11:13:25]line [11:13:25]line [11:13:25]line [11:13:25]line [11:13:25]written 0, free lines is 3283 [11:13:25]MH_Cut [11:13:25]Write to MH i2c: D1 01 00 65 1C 01 53 [11:13:25]Write i2c OK [11:13:25]MH_I2C_Read... [11:13:25]Read from MH i2c: D1 [11:13:25]MH_I2C_Read... [11:13:25]Read from MH i2c: D1 01 00 [11:13:25]MH_I2C_Read... [11:13:25]Read from MH i2c: D1 01 00 65 1C 00 52 [11:13:25]Write to MH i2c: 01 00 00 66 1C 82 [11:13:25]Write i2c OK [11:13:25]MH_I2C_Read... [11:13:25]OFD Sender: No OFD packet to send [11:13:26]*** Cut start [11:13:26]*** Partial cut [11:13:26]*** CUTSNS_PIN = 1 [11:13:26]*** CUTSNS_PIN = 0 [11:13:26]*** Brake cut motor [11:13:26]Read from MH i2c: 01 [11:13:26]MH_I2C_Read... [11:13:26]*** Stop cut motor [11:13:26]*** Cut end [11:13:26]Read from MH i2c: 01 07 00 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: 01 07 00 66 1C 00 00 00 00 00 FF 0F 97 [11:13:26]process_action close_receipt done [11:13:26]requested_data is exist [11:13:26]produce_requested_data [11:13:26]requested_item fm.sn is exist - process it [11:13:26]wFMCommunicate request_size=4 [11:13:26]MH_SAM_APDU [11:13:26]CAPDU: 80 11 00 00 [11:13:26]Write to MH i2c: E2 08 00 67 1C 80 11 00 00 00 00 00 00 FD [11:13:26]Write i2c OK [11:13:26]MH_I2C_Read... [11:13:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:27]Read from MH i2c: E2 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 17 00 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 17 00 67 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 58 [11:13:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:13:27]wFMCommunicate OK [11:13:27]requested_item fd.num is exist - process it [11:13:27]SAM_PROTO_GetFieldsCounters [11:13:27]wFMCommunicate request_size=4 [11:13:27]MH_SAM_APDU [11:13:27]CAPDU: 80 13 00 00 [11:13:27]Write to MH i2c: E2 08 00 68 1C 80 13 00 00 00 00 00 00 00 [11:13:27]Write i2c OK [11:13:27]MH_I2C_Read... [11:13:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:27]Read from MH i2c: E2 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 62 00 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 62 00 68 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AC CE 01 00 0E 04 04 00 B1 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 A7 [11:13: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AC CE 01 00 0E 04 04 00 B1 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 [11:13:27]wFMCommunicate OK [11:13:27]SAM_PROTO_GetFieldsCounters done [11:13:27]requested_item shift.num is exist - process it [11:13:27]requested_item shift.opened is exist - process it [11:13:27]req_shift_opened [11:13:27]FM_GetShiftState [11:13:27]SAM_PROTO_GetShiftState [11:13:27]wFMCommunicate request_size=4 [11:13:27]MH_SAM_APDU [11:13:27]CAPDU: 80 13 01 00 [11:13:27]Write to MH i2c: E2 08 00 69 1C 80 13 01 00 00 00 00 00 02 [11:13:27]Write i2c OK [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 [11:13:27]MH_I2C_Read... [11:13:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:27]Read from MH i2c: E2 0E 00 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 0E 00 69 1C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 D9 [11:13:27]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:13:27]wFMCommunicate OK [11:13:27]SAM_PROTO_GetShiftState done [11:13:27]FM_GetShiftState done [11:13:27]req_shift_opened done [11:13:27]requested_item shift.open_date is exist - process it [11:13:27]req_shift_open_date [11:13:27]req_shift_open_date done [11:13:27]produce_requested_data done [11:13:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118444,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:13:27]process_action_free close_receipt [11:13:27]json_value_free [11:13:27]json_value_free done [11:13:27]process_json_proto returns [11:13:27]Send response to host [11:13:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118444,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:13:27]free response buf [11:13:27]execute_script done [11:13:27]execute_script returns [11:13:27]free content buf [11:13:27]Sock 10.Close socket [11:13:27]Sock 10.Thread stoped [11:13:30]OFD Sender: No OFD packet to send [11:13:36]OFD Sender: No OFD packet to send [11:13:41]OFD Sender: No OFD packet to send [11:13:46]OFD Sender: No OFD packet to send [11:13:51]OFD Sender: No OFD packet to send [11:13:56]OFD Sender: No OFD packet to send [11:14:01]OFD Sender: No OFD packet to send [11:14:06]OFD Sender: No OFD packet to send [11:14:11]OFD Sender: No OFD packet to send [11:14:16]OFD Sender: No OFD packet to send [11:14:21]OFD Sender: No OFD packet to send [11:14:26]OFD Sender: No OFD packet to send [11:14:31]OFD Sender: No OFD packet to send [11:14:36]OFD Sender: No OFD packet to send [11:14:41]OFD Sender: No OFD packet to send [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:15:01]OFD Sender: No OFD packet to send [11:15:06]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:41]OFD Sender: No OFD packet to send [11:15:46]OFD Sender: No OFD packet to send [11:15:51]OFD Sender: No OFD packet to send [11:15:56]OFD Sender: No OFD packet to send [11:16:01]OFD Sender: No OFD packet to send [11:16:06]OFD Sender: No OFD packet to send [11:16:11]OFD Sender: No OFD packet to send [11:16:16]OFD Sender: No OFD packet to send [11:16:21]OFD Sender: No OFD packet to send [11:16:26]OFD Sender: No OFD packet to send [11:16:27]accept exits with 7 [11:16:27]New connection [11:16:27]New thread 3066924388 created [11:16:27]Thread 3067067748 joined [11:16:27]Waiting for new connection... [11:16:27] Sock 7.Parse request [11:16:27]Sock 7.Check first char [11:16:27]Sock 7.First char is OK [11:16:27]request: POST /json_proto HTTP/1.0 [11:16:27]Method: POST [11:16:27]URL: /json_proto [11:16:27]Method is POST - this is cgi request [11:16:27]url: /json_proto [11:16:27]query_string will be loaded in cgi processing [11:16:27]execute_cgi json_proto POST (null) [11:16:27]execute_cgi path=json_proto method=POST [11:16:27]POST find Content-Length [11:16:27]Host: 172.17.45.7:8080 [11:16:27]Content-Length: 819 [11:16:27]Content-Type: application/json [11:16:27] [11:16:27]POST finish read [11:16:27]Found Content-Length = 819 [11:16:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 85.310, "sum" : 6500.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", "total" : 6500.00, "payments": [ { "type": 1, "sum" : 6500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:27]execute_script... [11:16:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 85.310, "sum" : 6500.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", "total" : 6500.00, "payments": [ { "type": 1, "sum" : 6500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:27]POST & json_proto [11:16:27]process_json_proto [11:16:27]json parsed OK: [11:16:27]protocol is kg_v1.0 [11:16:27]action value=close_receipt [11:16:27]process_action close_receipt [11:16:27]cmd_close_receipt [11:16:27]MH_GetDate [11:16:27]Write to MH i2c: F0 00 00 6A 1C 75 [11:16:27]Write i2c OK [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: F0 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: F0 09 00 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: F0 09 00 6A 1C 00 8D 28 A6 66 90 0F 3E 66 82 [11:16:27]GetLastDocTimeStamp 1722165205 [11:16:27]current date 1722165389 [11:16:27]FM_GetShiftState [11:16:27]SAM_PROTO_GetShiftState [11:16:27]wFMCommunicate request_size=4 [11:16:27]MH_SAM_APDU [11:16:27]CAPDU: 80 13 01 00 [11:16:27]Write to MH i2c: E2 08 00 6B 1C 80 13 01 00 00 00 00 00 04 [11:16:27]Write i2c OK [11:16:27]MH_I2C_Read... [11:16:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:27]Read from MH i2c: E2 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 0E 00 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 0E 00 6B 1C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 DB [11:16:27]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:16:27]wFMCommunicate OK [11:16:27]SAM_PROTO_GetShiftState done [11:16:27]FM_GetShiftState done [11:16:27]opened in 1722125364 [11:16:27]opened+sec_in_day 1722211764 [11:16:27]quantity*price = 650062 [11:16:27]sum+1 = 650063 [11:16:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 6500.00 НСП 1% : 57.53 НДС 12% : 690.33 Наличными: 0.00 Безнал.: 6500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 114 28.07.2024 11:16 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118445 ФПД: 64031797302674 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111629&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118445&fm=64031797302674&tin=02508201610067®Number=0000000000092660&sum=650000 [11:16:28]StoreToDocumentArchive [11:16:28]shift 433 fd 118445 [11:16:28]save to /storage/0433/doc_00118445 [11:16:28]save last doc name /storage/0433/doc_00118445 to /storage/kkm_last_doc_name [11:16:28]save OK [11:16:28]Clear old archive folders... [11:16:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:16:28]tlvbuf is B6EDD5F0 [11:16:28]SAM_PROTO_ClearQueue [11:16:28]wFMCommunicate request_size=4 [11:16:28]MH_SAM_APDU [11:16:28]CAPDU: 80 09 00 00 [11:16:28]Write to MH i2c: E2 08 00 78 1C 80 09 00 00 00 00 00 00 06 [11:16:28]Write i2c OK [11:16:28]MH_I2C_Read... [11:16:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:28]Read from MH i2c: E2 [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: E2 03 00 [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: E2 03 00 78 1C 00 90 00 08 [11:16:28]RAPDU: 90 00 [11:16:28]wFMCommunicate OK [11:16:28]SAM_PROTO_ClearQueue done [11:16:28]KKMCreateOFDPacket [11:16:28]OFDProtocolAddRootSTLVToBuf [11:16:28]FM_MakeSignedData [11:16:28]FM_MakeSignedData [11:16:28]SAM_PROTO_SignData [11:16:28]wFMCommunicate request_size=4 [11:16:28]MH_SAM_APDU [11:16:28]CAPDU: 80 0D 01 02 [11:16:28]Write to MH i2c: E2 08 00 79 1C 80 0D 01 02 00 00 00 00 0E [11:16:28]Write i2c OK [11:16:28]MH_I2C_Read... [11:16:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:28]Read from MH i2c: E2 [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: E2 03 00 [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: E2 03 00 79 1C 00 90 00 09 [11:16:28]RAPDU: 90 00 [11:16:28]wFMCommunicate OK [11:16:28]wFMCommunicate request_size=255 [11:16:28]MH_SAM_APDU [11:16:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4D 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 8D 28 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AD CE 01 00 35 04 06 00 3A 3C 90 88 [11:16:28]Write to MH i2c: E2 02 01 7A 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4D 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 8D 28 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AD CE 01 00 35 04 06 00 3A 3C 90 88 00 00 62 [11:16:28]Write i2c OK [11:16:28]MH_I2C_Read... [11:16:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:29]Read from MH i2c: E2 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 03 00 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 03 00 7A 1C 00 90 00 0A [11:16:29]RAPDU: 90 00 [11:16:29]wFMCommunicate OK [11:16:29]wFMCommunicate request_size=7 [11:16:29]MH_SAM_APDU [11:16:29]CAPDU: 80 0D 02 02 02 55 92 [11:16:29]Write to MH i2c: E2 0A 00 7B 1C 80 0D 02 02 02 00 55 92 00 00 FC [11:16:29]Write i2c OK [11:16:29]MH_I2C_Read... [11:16:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:29]Read from MH i2c: E2 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 03 00 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 03 00 7B 1C 00 90 00 0B [11:16:29]RAPDU: 90 00 [11:16:29]wFMCommunicate OK [11:16:29]wFMCommunicate request_size=4 [11:16:29]MH_SAM_APDU [11:16:29]CAPDU: 80 0D 03 02 [11:16:29]Write to MH i2c: E2 08 00 7C 1C 80 0D 03 02 00 00 00 00 13 [11:16:29]Write i2c OK [11:16:29]MH_I2C_Read... [11:16:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:29]Read from MH i2c: E2 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 0B 00 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 0B 00 7C 1C 00 C3 86 6B F0 85 30 AD CE 90 00 E8 [11:16:29]RAPDU: C3 86 6B F0 85 30 AD CE 90 00 [11:16:29]wFMCommunicate OK [11:16:29]SAM_PROTO_SignData done [11:16:29]FM_MakeSignedData done [11:16:29]CreateOFDProtocolMessage [11:16:29]wFMCommunicate request_size=4 [11:16:29]MH_SAM_APDU [11:16:29]CAPDU: 80 11 00 00 [11:16:29]Write to MH i2c: E2 08 00 7D 1C 80 11 00 00 00 00 00 00 13 [11:16:29]Write i2c OK [11:16:29]MH_I2C_Read... [11:16:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:29]Read from MH i2c: E2 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 17 00 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 17 00 7D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6E [11:16:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:16:29]wFMCommunicate OK [11:16:29]CreateOFDProtocolMessage done [11:16:29]OFDSenderStorePacket 118445 [11:16:29]StoreOFDPacket docnum=118445 [11:16:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 0D 99 04 01 3D 40 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4D 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 8D 28 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AD CE 01 00 35 04 06 00 3A 3C 90 88 55 92 C3 86 6B F0 85 30 AD CE [11:16:29]CheckFolder [11:16:29]dirname=/storage/ofd_packets [11:16:29]CheckFolder done [11:16:29]ProducePacketName [11:16:29]name=ofd_packets/00118445 [11:16:29]NVStorageSaveData ofd_packets/00118445 [11:16:29]File name is /storage/ofd_packets/00118445 [11:16:29]Write 298 bytes [11:16:29]NVStorageSaveData done [11:16:29]OFDSenderStorePacket done [11:16:29]KKMCreateOFDPacket done [11:16:29]NVStorageSaveData kkm_last_timestamp [11:16:29]File name is /storage/kkm_last_timestamp [11:16:29]Write 4 bytes [11:16:29]NVStorageSaveData done [11:16:29]ExternCall_PrintAddStr [11:16:29]wPrintStart [11:16:29]Write to MH i2c: 01 00 00 7E 1C 9A [11:16:29]Write i2c OK [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: 01 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: 01 07 00 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: 01 07 00 7E 1C 00 00 00 00 00 FF 0F AF [11:16:29]RasterBufferAndPrint [11:16:29]line Счет N : (1)949318 [11:16:29]line ИНН: 02508201610067 [11:16:29]line Контрольно-Кассовый Чек [11:16:29]line ПРОДАЖА [11:16:29]line ТРК (МРК, ГНК) : 21 [11:16:29]line Товар: 2710194800 [11:16:29]line ДТ-К-5 [11:16:29]line 85.310 * 76.20 [11:16:29]line = 6500.62 [11:16:29]line НДС 12% НСП 1% [11:16:29]line > о реализуемом товаре [11:16:29]line ОКРУГЛЕНИЕ: -0.62 [11:16:29]line ИТОГО: 6500.00 [11:16:29]line НСП 1% : 57.53 [11:16:29]line НДС 12% : 690.33 [11:16:29]line Наличными: 0.00 [11:16:29]line Безнал.: 6500.00 [11:16:29]line Место: АЗС № 134 "Партнер Нефть" [11:16:29]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:16:29]line СНО: Общий режим [11:16:29]line Чек 114 28.07.2024 11:16 [11:16:29]line Смена: 433 ФФД: 1.0 [11:16:29]line ЗНМ: 0300000044 [11:16:29]line РНМ: 0000000000092660 [11:16:29]line Версия ККМ: 001 [11:16:29]line Платежная система: O! деньги [11:16:29]line ФМ: 0000000000874939 [11:16:29]line ФД: 118445 [11:16:29]line ФПД: 64031797302674 [11:16:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111629&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118445&fm=64031797302674&tin=02508201610067®Number=0000000000092660&sum=650000 [11:16:29]OFD Sender: Processing packet 118445 [packets to send 86, broken 85] [11:16:29]ProducePacketName [11:16:29]name=ofd_packets/00118445 [11:16:29]OFD Sender: To server: pG, [11:16:29]CommunicateWithHost lk.salyk.kg:30040 [11:16:29]ConnectInit lk.salyk.kg [11:16:29]written 0, free lines is 4095 [11:16:29]Connected sock=10 [11:16:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 0D 99 04 01 3D 40 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4D 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 8D 28 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AD CE 01 00 35 04 06 00 3A 3C 90 88 55 92 C3 86 6B F0 85 30 AD CE [11:16:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 44 EC 47 00 AB 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 39 33 39 10 04 04 00 AD CE 01 00 F4 03 04 00 1E D6 A5 66 B6 04 01 00 00 0B 39 9C B3 1B CB 59 07 [11:16:29]CommunicateWithHost err = 0 [11:16:29]CheckOFDResponse [11:16:29]1017 (14) - 77093643461234 [11:16:29]1041 (16) - 0000000000874939 [11:16:29]1040 (4) - 118445 [11:16:29]1012 (4) - 28.07.2024 05:24 [11:16:29]1206 (1) - 0 [11:16:29]OFD Sender: Remove packet 118445 [11:16:29]ProducePacketName [11:16:29]name=ofd_packets/00118445 [11:16:29]NVStorageDeleteData [11:16:29]Write to MH i2c: 01 00 00 A8 1C C4 [11:16:29]Write i2c OK [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: 01 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: 01 07 00 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: 01 07 00 A8 1C 00 00 00 00 00 D4 0C AB [11:16:29]RasterBufferAndPrint [11:16:29]line [11:16:29]line [11:16:29]line [11:16:29]line [11:16:29]line [11:16:29]written 0, free lines is 3290 [11:16:29]MH_Cut [11:16:29]Write to MH i2c: D1 01 00 AF 1C 01 9D [11:16:29]Write i2c OK [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: D1 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: D1 01 00 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: D1 01 00 AF 1C 00 9C [11:16:29]Write to MH i2c: 01 00 00 B0 1C CC [11:16:29]Write i2c OK [11:16:29]MH_I2C_Read... [11:16:30]OFD Sender: No OFD packet to send [11:16:30]*** Cut start [11:16:30]*** Partial cut [11:16:30]*** CUTSNS_PIN = 1 [11:16:30]*** CUTSNS_PIN = 0 [11:16:30]*** Brake cut motor [11:16:31]Read from MH i2c: 01 [11:16:31]MH_I2C_Read... [11:16:31]*** Stop cut motor [11:16:31]*** Cut end [11:16:31]Read from MH i2c: 01 07 00 [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: 01 07 00 B0 1C 00 00 00 00 00 FF 0F E1 [11:16:31]process_action close_receipt done [11:16:31]requested_data is exist [11:16:31]produce_requested_data [11:16:31]requested_item fm.sn is exist - process it [11:16:31]wFMCommunicate request_size=4 [11:16:31]MH_SAM_APDU [11:16:31]CAPDU: 80 11 00 00 [11:16:31]Write to MH i2c: E2 08 00 B1 1C 80 11 00 00 00 00 00 00 47 [11:16:31]Write i2c OK [11:16:31]MH_I2C_Read... [11:16:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:31]Read from MH i2c: E2 [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: E2 17 00 [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: E2 17 00 B1 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A2 [11:16:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:16:31]wFMCommunicate OK [11:16:31]requested_item fd.num is exist - process it [11:16:31]SAM_PROTO_GetFieldsCounters [11:16:31]wFMCommunicate request_size=4 [11:16:31]MH_SAM_APDU [11:16:31]CAPDU: 80 13 00 00 [11:16:31]Write to MH i2c: E2 08 00 B2 1C 80 13 00 00 00 00 00 00 4A [11:16:31]Write i2c OK [11:16:31]MH_I2C_Read... [11:16:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:31]Read from MH i2c: E2 [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: E2 62 00 [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: E2 62 00 B2 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AD CE 01 00 0E 04 04 00 B1 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 F5 [11:16:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AD CE 01 00 0E 04 04 00 B1 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 [11:16:31]wFMCommunicate OK [11:16:31]SAM_PROTO_GetFieldsCounters done [11:16:31]requested_item shift.num is exist - process it [11:16:31]requested_item shift.opened is exist - process it [11:16:31]req_shift_opened [11:16:31]FM_GetShiftState [11:16:31]SAM_PROTO_GetShiftState [11:16:31]wFMCommunicate request_size=4 [11:16:31]MH_SAM_APDU [11:16:31]CAPDU: 80 13 01 00 [11:16:31]Write to MH i2c: E2 08 00 B3 1C 80 13 01 00 00 00 00 00 4C [11:16:31]Write i2c OK [11:16:31]MH_I2C_Read... [11:16:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:31]Read from MH i2c: E2 [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: E2 0E 00 [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: E2 0E 00 B3 1C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 23 [11:16:31]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:16:31]wFMCommunicate OK [11:16:31]SAM_PROTO_GetShiftState done [11:16:31]FM_GetShiftState done [11:16:31]req_shift_opened done [11:16:31]requested_item shift.open_date is exist - process it [11:16:31]req_shift_open_date [11:16:31]req_shift_open_date done [11:16:31]produce_requested_data done [11:16:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118445,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:16:31]process_action_free close_receipt [11:16:31]json_value_free [11:16:31]json_value_free done [11:16:31]process_json_proto returns [11:16:31]Send response to host [11:16:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118445,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:16:31]free response buf [11:16:31]execute_script done [11:16:31]execute_script returns [11:16:31]free content buf [11:16:31]Sock 7.Close socket [11:16:31]Sock 7.Thread stoped [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:16:55]accept exits with 9 [11:16:55]New connection [11:16:55]New thread 3067067748 created [11:16:55]Thread 3066924388 joined [11:16:55]Waiting for new connection... [11:16:55] Sock 9.Parse request [11:16:55]Sock 9.Check first char [11:16:55]Sock 9.First char is OK [11:16:55]request: POST /json_proto HTTP/1.0 [11:16:55]Method: POST [11:16:55]URL: /json_proto [11:16:55]Method is POST - this is cgi request [11:16:55]url: /json_proto [11:16:55]query_string will be loaded in cgi processing [11:16:55]execute_cgi json_proto POST (null) [11:16:55]execute_cgi path=json_proto method=POST [11:16:55]POST find Content-Length [11:16:55]Host: 172.17.45.7:8080 [11:16:55]Content-Length: 819 [11:16:55]Content-Type: application/json [11:16:55] [11:16:55]POST finish read [11:16:55]Found Content-Length = 819 [11:16:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:55]execute_script... [11:16: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)949320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:55]POST & json_proto [11:16:55]process_json_proto [11:16:55]json parsed OK: [11:16:55]protocol is kg_v1.0 [11:16:55]action value=close_receipt [11:16:55]process_action close_receipt [11:16:55]cmd_close_receipt [11:16:55]MH_GetDate [11:16:55]Write to MH i2c: F0 00 00 B4 1C BF [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: F0 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: F0 09 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: F0 09 00 B4 1C 00 AA 28 A6 66 90 0F 3E 66 E9 [11:16:55]GetLastDocTimeStamp 1722165389 [11:16:55]current date 1722165418 [11:16:55]FM_GetShiftState [11:16:55]SAM_PROTO_GetShiftState [11:16:55]wFMCommunicate request_size=4 [11:16:55]MH_SAM_APDU [11:16:55]CAPDU: 80 13 01 00 [11:16:55]Write to MH i2c: E2 08 00 B5 1C 80 13 01 00 00 00 00 00 4E [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:55]Read from MH i2c: E2 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 0E 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 0E 00 B5 1C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 25 [11:16:55]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:16:55]wFMCommunicate OK [11:16:55]SAM_PROTO_GetShiftState done [11:16:55]FM_GetShiftState done [11:16:55]opened in 1722125364 [11:16:55]opened+sec_in_day 1722211764 [11:16:55]quantity*price = 200025 [11:16:55]sum+1 = 200026 [11:16:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 115 28.07.2024 11:16 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118446 ФПД: 59126024657208 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111658&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118446&fm=59126024657208&tin=02508201610067®Number=0000000000092660&sum=200000 [11:16:57]StoreToDocumentArchive [11:16:57]shift 433 fd 118446 [11:16:57]save to /storage/0433/doc_00118446 [11:16:57]save last doc name /storage/0433/doc_00118446 to /storage/kkm_last_doc_name [11:16:57]save OK [11:16:57]Clear old archive folders... [11:16:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:16:57]tlvbuf is 001AA430 [11:16:57]SAM_PROTO_ClearQueue [11:16:57]wFMCommunicate request_size=4 [11:16:57]MH_SAM_APDU [11:16:57]CAPDU: 80 09 00 00 [11:16:57]Write to MH i2c: E2 08 00 C2 1C 80 09 00 00 00 00 00 00 50 [11:16:57]Write i2c OK [11:16:57]MH_I2C_Read... [11:16:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:57]Read from MH i2c: E2 [11:16:57]MH_I2C_Read... [11:16:57]Read from MH i2c: E2 03 00 [11:16:57]MH_I2C_Read... [11:16:57]Read from MH i2c: E2 03 00 C2 1C 00 90 00 52 [11:16:57]RAPDU: 90 00 [11:16:57]wFMCommunicate OK [11:16:57]SAM_PROTO_ClearQueue done [11:16:57]KKMCreateOFDPacket [11:16:57]OFDProtocolAddRootSTLVToBuf [11:16:57]FM_MakeSignedData [11:16:57]FM_MakeSignedData [11:16:57]SAM_PROTO_SignData [11:16:57]wFMCommunicate request_size=4 [11:16:57]MH_SAM_APDU [11:16:57]CAPDU: 80 0D 01 02 [11:16:57]Write to MH i2c: E2 08 00 C3 1C 80 0D 01 02 00 00 00 00 58 [11:16:57]Write i2c OK [11:16:57]MH_I2C_Read... [11:16:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:57]Read from MH i2c: E2 [11:16:57]MH_I2C_Read... [11:16:57]Read from MH i2c: E2 03 00 [11:16:57]MH_I2C_Read... [11:16:57]Read from MH i2c: E2 03 00 C3 1C 00 90 00 53 [11:16:57]RAPDU: 90 00 [11:16:57]wFMCommunicate OK [11:16:57]wFMCommunicate request_size=255 [11:16:57]MH_SAM_APDU [11:16:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 AA 28 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AE CE 01 00 35 04 06 00 35 C6 59 B2 [11:16:57]Write to MH i2c: E2 02 01 C4 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 AA 28 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AE CE 01 00 35 04 06 00 35 C6 59 B2 00 00 5C [11:16:57]Write i2c OK [11:16:57]MH_I2C_Read... [11:16:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:57]Read from MH i2c: E2 [11:16:57]MH_I2C_Read... [11:16:57]Read from MH i2c: E2 03 00 [11:16:57]MH_I2C_Read... [11:16:57]Read from MH i2c: E2 03 00 C4 1C 00 90 00 54 [11:16:57]RAPDU: 90 00 [11:16:57]wFMCommunicate OK [11:16:57]wFMCommunicate request_size=7 [11:16:57]MH_SAM_APDU [11:16:57]CAPDU: 80 0D 02 02 02 59 38 [11:16:57]Write to MH i2c: E2 0A 00 C5 1C 80 0D 02 02 02 00 59 38 00 00 F0 [11:16:57]Write i2c OK [11:16:57]MH_I2C_Read... [11:16:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:57]Read from MH i2c: E2 [11:16:57]MH_I2C_Read... [11:16:57]Read from MH i2c: E2 03 00 [11:16:57]MH_I2C_Read... [11:16:57]Read from MH i2c: E2 03 00 C5 1C 00 90 00 55 [11:16:57]RAPDU: 90 00 [11:16:57]wFMCommunicate OK [11:16:57]wFMCommunicate request_size=4 [11:16:57]MH_SAM_APDU [11:16:57]CAPDU: 80 0D 03 02 [11:16:57]Write to MH i2c: E2 08 00 C6 1C 80 0D 03 02 00 00 00 00 5D [11:16:57]Write i2c OK [11:16:57]MH_I2C_Read... [11:16:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:57]Read from MH i2c: E2 [11:16:57]MH_I2C_Read... [11:16:57]Read from MH i2c: E2 0B 00 [11:16:57]MH_I2C_Read... [11:16:57]Read from MH i2c: E2 0B 00 C6 1C 00 6E 57 CF C7 01 04 AF 98 90 00 05 [11:16:57]RAPDU: 6E 57 CF C7 01 04 AF 98 90 00 [11:16:57]wFMCommunicate OK [11:16:57]SAM_PROTO_SignData done [11:16:57]FM_MakeSignedData done [11:16:57]CreateOFDProtocolMessage [11:16:57]wFMCommunicate request_size=4 [11:16:57]MH_SAM_APDU [11:16:57]CAPDU: 80 11 00 00 [11:16:57]Write to MH i2c: E2 08 00 C7 1C 80 11 00 00 00 00 00 00 5D [11:16:57]Write i2c OK [11:16:57]MH_I2C_Read... [11:16:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:57]Read from MH i2c: E2 [11:16:57]MH_I2C_Read... [11:16:57]Read from MH i2c: E2 17 00 [11:16:57]MH_I2C_Read... [11:16:57]Read from MH i2c: E2 17 00 C7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B8 [11:16:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:16:57]wFMCommunicate OK [11:16:57]CreateOFDProtocolMessage done [11:16:57]OFDSenderStorePacket 118446 [11:16:57]StoreOFDPacket docnum=118446 [11:16:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 07 59 04 01 F0 DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 AA 28 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AE CE 01 00 35 04 06 00 35 C6 59 B2 59 38 6E 57 CF C7 01 04 AF 98 [11:16:57]CheckFolder [11:16:57]dirname=/storage/ofd_packets [11:16:57]CheckFolder done [11:16:57]ProducePacketName [11:16:57]name=ofd_packets/00118446 [11:16:57]NVStorageSaveData ofd_packets/00118446 [11:16:57]File name is /storage/ofd_packets/00118446 [11:16:57]Write 298 bytes [11:16:57]NVStorageSaveData done [11:16:57]OFDSenderStorePacket done [11:16:57]KKMCreateOFDPacket done [11:16:57]NVStorageSaveData kkm_last_timestamp [11:16:57]File name is /storage/kkm_last_timestamp [11:16:57]Write 4 bytes [11:16:57]NVStorageSaveData done [11:16:57]ExternCall_PrintAddStr [11:16:57]wPrintStart [11:16:57]Write to MH i2c: 01 00 00 C8 1C E4 [11:16:57]Write i2c OK [11:16:57]MH_I2C_Read... [11:16:57]Read from MH i2c: 01 [11:16:57]MH_I2C_Read... [11:16:57]Read from MH i2c: 01 07 00 [11:16:57]MH_I2C_Read... [11:16:57]Read from MH i2c: 01 07 00 C8 1C 00 00 00 00 00 FF 0F F9 [11:16:57]RasterBufferAndPrint [11:16:57]line Счет N : (1)949320 [11:16:57]line ИНН: 02508201610067 [11:16:57]line Контрольно-Кассовый Чек [11:16:57]line ПРОДАЖА [11:16:57]line ТРК (МРК, ГНК) : 54 [11:16:57]line Товар: 2710194800 [11:16:57]line ДТ-К-5 [11:16:57]line 26.250 * 76.20 [11:16:57]line = 2000.25 [11:16:57]line НДС 12% НСП 1% [11:16:57]line > о реализуемом товаре [11:16:57]line ОКРУГЛЕНИЕ: -0.25 [11:16:57]line ИТОГО: 2000.00 [11:16:57]line НСП 1% : 17.70 [11:16:57]line НДС 12% : 212.42 [11:16:57]line Наличными: 0.00 [11:16:57]line Безнал.: 2000.00 [11:16:57]line Место: АЗС № 134 "Партнер Нефть" [11:16:57]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:16:57]line СНО: Общий режим [11:16:57]line Чек 115 28.07.2024 11:16 [11:16:57]line Смена: 433 ФФД: 1.0 [11:16:57]line ЗНМ: 0300000044 [11:16:57]line РНМ: 0000000000092660 [11:16:57]line Версия ККМ: 001 [11:16:57]line Платежная система: O! деньги [11:16:57]line ФМ: 0000000000874939 [11:16:57]line ФД: 118446 [11:16:57]line ФПД: 59126024657208 [11:16:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111658&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118446&fm=59126024657208&tin=02508201610067®Number=0000000000092660&sum=200000 [11:16:57]OFD Sender: Processing packet 118446 [packets to send 86, broken 85] [11:16:57]ProducePacketName [11:16:57]name=ofd_packets/00118446 [11:16:57]OFD Sender: To server: pG, [11:16:57]CommunicateWithHost lk.salyk.kg:30040 [11:16:57]ConnectInit lk.salyk.kg [11:16:57]written 0, free lines is 4095 [11:16:57]Connected sock=10 [11:16:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 07 59 04 01 F0 DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 AA 28 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AE CE 01 00 35 04 06 00 35 C6 59 B2 59 38 6E 57 CF C7 01 04 AF 98 [11: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 39 33 39 4F 00 00 00 7E 67 47 00 EA 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 39 33 39 10 04 04 00 AE CE 01 00 F4 03 04 00 3A D6 A5 66 B6 04 01 00 00 5D C5 0C E2 97 20 CC 5A [11:16:58]CommunicateWithHost err = 0 [11:16:58]CheckOFDResponse [11:16:58]1017 (14) - 77093643461234 [11:16:58]1041 (16) - 0000000000874939 [11:16:58]1040 (4) - 118446 [11:16:58]1012 (4) - 28.07.2024 05:25 [11:16:58]1206 (1) - 0 [11:16:58]OFD Sender: Remove packet 118446 [11:16:58]ProducePacketName [11:16:58]name=ofd_packets/00118446 [11:16:58]NVStorageDeleteData [11:16:58]Write to MH i2c: 01 00 00 F2 1C 0E [11:16:58]Write i2c OK [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: 01 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: 01 07 00 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: 01 07 00 F2 1C 00 00 00 00 00 D4 0C F5 [11:16:58]RasterBufferAndPrint [11:16:58]line [11:16:58]line [11:16:58]line [11:16:58]line [11:16:58]line [11:16:58]written 0, free lines is 3292 [11:16:58]MH_Cut [11:16:58]Write to MH i2c: D1 01 00 F9 1C 01 E7 [11:16:58]Write i2c OK [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: D1 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: D1 01 00 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: D1 01 00 F9 1C 00 E6 [11:16:58]Write to MH i2c: 01 00 00 FA 1C 16 [11:16:58]Write i2c OK [11:16:58]MH_I2C_Read... [11:16:58]OFD Sender: No OFD packet to send [11:16:59]*** Cut start [11:16:59]*** Partial cut [11:16:59]*** CUTSNS_PIN = 1 [11:16:59]*** CUTSNS_PIN = 0 [11:16:59]*** Brake cut motor [11:16:59]Read from MH i2c: 01 [11:16:59]MH_I2C_Read... [11:16:59]*** Stop cut motor [11:16:59]*** Cut end [11:16:59]Read from MH i2c: 01 07 00 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: 01 07 00 FA 1C 00 00 00 00 00 FF 0F 2B [11:16:59]process_action close_receipt done [11:16:59]requested_data is exist [11:16:59]produce_requested_data [11:16:59]requested_item fm.sn is exist - process it [11:16:59]wFMCommunicate request_size=4 [11:16:59]MH_SAM_APDU [11:16:59]CAPDU: 80 11 00 00 [11:16:59]Write to MH i2c: E2 08 00 FB 1C 80 11 00 00 00 00 00 00 91 [11:16:59]Write i2c OK [11:16:59]MH_I2C_Read... [11:16:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:59]Read from MH i2c: E2 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: E2 17 00 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: E2 17 00 FB 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EC [11:16:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:16:59]wFMCommunicate OK [11:16:59]requested_item fd.num is exist - process it [11:16:59]SAM_PROTO_GetFieldsCounters [11:16:59]wFMCommunicate request_size=4 [11:16:59]MH_SAM_APDU [11:16:59]CAPDU: 80 13 00 00 [11:16:59]Write to MH i2c: E2 08 00 FC 1C 80 13 00 00 00 00 00 00 94 [11:16:59]Write i2c OK [11:16:59]MH_I2C_Read... [11:16:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:59]Read from MH i2c: E2 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: E2 62 00 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: E2 62 00 FC 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AE CE 01 00 0E 04 04 00 B1 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 43 [11: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AE CE 01 00 0E 04 04 00 B1 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 [11:16:59]wFMCommunicate OK [11:16:59]SAM_PROTO_GetFieldsCounters done [11:16:59]requested_item shift.num is exist - process it [11:16:59]requested_item shift.opened is exist - process it [11:16:59]req_shift_opened [11:16:59]FM_GetShiftState [11:16:59]SAM_PROTO_GetShiftState [11:16:59]wFMCommunicate request_size=4 [11:16:59]MH_SAM_APDU [11:16:59]CAPDU: 80 13 01 00 [11:16:59]Write to MH i2c: E2 08 00 FD 1C 80 13 01 00 00 00 00 00 96 [11:16:59]Write i2c OK [11:16:59]MH_I2C_Read... [11:16:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:59]Read from MH i2c: E2 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: E2 0E 00 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: E2 0E 00 FD 1C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 6D [11:16:59]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:16:59]wFMCommunicate OK [11:16:59]SAM_PROTO_GetShiftState done [11:16:59]FM_GetShiftState done [11:16:59]req_shift_opened done [11:16:59]requested_item shift.open_date is exist - process it [11:16:59]req_shift_open_date [11:16:59]req_shift_open_date done [11:16:59]produce_requested_data done [11:16:59]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118446,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:16:59]process_action_free close_receipt [11:16:59]json_value_free [11:16:59]json_value_free done [11:16:59]process_json_proto returns [11:16:59]Send response to host [11:16:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118446,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:16:59]free response buf [11:16:59]execute_script done [11:16:59]execute_script returns [11:16:59]free content buf [11:16:59]Sock 9.Close socket [11:16:59]Sock 9.Thread stoped [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:52]accept exits with 7 [11:18:52]New connection [11:18:52]New thread 3066924388 created [11:18:52]Thread 3067067748 joined [11:18:52]Waiting for new connection... [11:18:52] Sock 7.Parse request [11:18:52]Sock 7.Check first char [11:18:52]Sock 7.First char is OK [11:18:52]request: POST /json_proto HTTP/1.0 [11:18:52]Method: POST [11:18:52]URL: /json_proto [11:18:52]Method is POST - this is cgi request [11:18:52]url: /json_proto [11:18:52]query_string will be loaded in cgi processing [11:18:52]execute_cgi json_proto POST (null) [11:18:52]execute_cgi path=json_proto method=POST [11:18:52]POST find Content-Length [11:18:53]Host: 172.17.45.7:8080 [11:18:53]Content-Length: 677 [11:18:53]Content-Type: application/json [11:18:53] [11:18:53]POST finish read [11:18:53]Found Content-Length = 677 [11:18:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:18:53]execute_script... [11:18: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)949321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:18:53]POST & json_proto [11:18:53]process_json_proto [11:18:53]json parsed OK: [11:18:53]protocol is kg_v1.0 [11:18:53]action value=close_receipt [11:18:53]process_action close_receipt [11:18:53]cmd_close_receipt [11:18:53]MH_GetDate [11:18:53]Write to MH i2c: F0 00 00 FE 1C 09 [11:18:53]Write i2c OK [11:18:53]MH_I2C_Read... [11:18:53]Read from MH i2c: F0 [11:18:53]MH_I2C_Read... [11:18:53]Read from MH i2c: F0 09 00 [11:18:53]MH_I2C_Read... [11:18:53]Read from MH i2c: F0 09 00 FE 1C 00 1F 29 A6 66 90 0F 3E 66 A9 [11:18:53]GetLastDocTimeStamp 1722165418 [11:18:53]current date 1722165535 [11:18:53]FM_GetShiftState [11:18:53]SAM_PROTO_GetShiftState [11:18:53]wFMCommunicate request_size=4 [11:18:53]MH_SAM_APDU [11:18:53]CAPDU: 80 13 01 00 [11:18:53]Write to MH i2c: E2 08 00 FF 1C 80 13 01 00 00 00 00 00 98 [11:18:53]Write i2c OK [11:18:53]MH_I2C_Read... [11:18:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:53]Read from MH i2c: E2 [11:18:53]MH_I2C_Read... [11:18:53]Read from MH i2c: E2 0E 00 [11:18:53]MH_I2C_Read... [11:18:53]Read from MH i2c: E2 0E 00 FF 1C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 6F [11:18:53]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:18:53]wFMCommunicate OK [11:18:53]SAM_PROTO_GetShiftState done [11:18:53]FM_GetShiftState done [11:18:53]opened in 1722125364 [11:18:53]opened+sec_in_day 1722211764 [11:18:53]quantity*price = 40002 [11:18:53]sum+1 = 40003 [11:18:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 116 28.07.2024 11:18 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118447 ФПД: 249420271745509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111855&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118447&fm=249420271745509&tin=02508201610067®Number=0000000000092660&sum=40000 [11:18:54]StoreToDocumentArchive [11:18:54]shift 433 fd 118447 [11:18:54]save to /storage/0433/doc_00118447 [11:18:54]save last doc name /storage/0433/doc_00118447 to /storage/kkm_last_doc_name [11:18:54]save OK [11:18:54]Clear old archive folders... [11:18:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:54]tlvbuf is B6EC4590 [11:18:54]SAM_PROTO_ClearQueue [11:18:54]wFMCommunicate request_size=4 [11:18:54]MH_SAM_APDU [11:18:54]CAPDU: 80 09 00 00 [11:18:54]Write to MH i2c: E2 08 00 0C 1D 80 09 00 00 00 00 00 00 9B [11:18:54]Write i2c OK [11:18:54]MH_I2C_Read... [11:18:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:54]Read from MH i2c: E2 [11:18:54]MH_I2C_Read... [11:18:54]Read from MH i2c: E2 03 00 [11:18:54]MH_I2C_Read... [11:18:54]Read from MH i2c: E2 03 00 0C 1D 00 90 00 9D [11:18:54]RAPDU: 90 00 [11:18:54]wFMCommunicate OK [11:18:54]SAM_PROTO_ClearQueue done [11:18:54]KKMCreateOFDPacket [11:18:54]OFDProtocolAddRootSTLVToBuf [11:18:54]FM_MakeSignedData [11:18:54]FM_MakeSignedData [11:18:54]SAM_PROTO_SignData [11:18:54]wFMCommunicate request_size=4 [11:18:54]MH_SAM_APDU [11:18:54]CAPDU: 80 0D 01 02 [11:18:54]Write to MH i2c: E2 08 00 0D 1D 80 0D 01 02 00 00 00 00 A3 [11:18:54]Write i2c OK [11:18:54]MH_I2C_Read... [11:18:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:54]Read from MH i2c: E2 [11:18:54]MH_I2C_Read... [11:18:54]Read from MH i2c: E2 03 00 [11:18:54]MH_I2C_Read... [11:18:54]Read from MH i2c: E2 03 00 0D 1D 00 90 00 9E [11:18:54]RAPDU: 90 00 [11:18:54]wFMCommunicate OK [11:18:54]wFMCommunicate request_size=255 [11:18:54]MH_SAM_APDU [11:18: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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 74 00 00 00 F4 03 04 00 1F 29 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AF CE 01 00 35 04 06 00 E2 [11:18:54]Write to MH i2c: E2 02 01 0E 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 74 00 00 00 F4 03 04 00 1F 29 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AF CE 01 00 35 04 06 00 E2 00 00 E6 [11:18:54]Write i2c OK [11:18:54]MH_I2C_Read... [11:18:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:54]Read from MH i2c: E2 [11:18:54]MH_I2C_Read... [11:18:54]Read from MH i2c: E2 03 00 [11:18:54]MH_I2C_Read... [11:18:54]Read from MH i2c: E2 03 00 0E 1D 00 90 00 9F [11:18:54]RAPDU: 90 00 [11:18:54]wFMCommunicate OK [11:18:54]wFMCommunicate request_size=10 [11:18:54]MH_SAM_APDU [11:18:54]CAPDU: 80 0D 02 02 05 D8 AE B2 79 E5 [11:18:54]Write to MH i2c: E2 0D 00 0F 1D 80 0D 02 02 05 00 D8 AE B2 79 E5 00 00 46 [11:18:54]Write i2c OK [11:18:54]MH_I2C_Read... [11:18:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:54]Read from MH i2c: E2 [11:18:54]MH_I2C_Read... [11:18:54]Read from MH i2c: E2 03 00 [11:18:54]MH_I2C_Read... [11:18:54]Read from MH i2c: E2 03 00 0F 1D 00 90 00 A0 [11:18:54]RAPDU: 90 00 [11:18:54]wFMCommunicate OK [11:18:54]wFMCommunicate request_size=4 [11:18:54]MH_SAM_APDU [11:18:54]CAPDU: 80 0D 03 02 [11:18:54]Write to MH i2c: E2 08 00 10 1D 80 0D 03 02 00 00 00 00 A8 [11:18:54]Write i2c OK [11:18:54]MH_I2C_Read... [11:18:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:54]Read from MH i2c: E2 [11:18:54]MH_I2C_Read... [11:18:54]Read from MH i2c: E2 0B 00 [11:18:54]MH_I2C_Read... [11:18:54]Read from MH i2c: E2 0B 00 10 1D 00 1C AF 0C D6 03 F1 BB 32 90 00 37 [11:18:54]RAPDU: 1C AF 0C D6 03 F1 BB 32 90 00 [11:18:54]wFMCommunicate OK [11:18:54]SAM_PROTO_SignData done [11:18:54]FM_MakeSignedData done [11:18:54]CreateOFDProtocolMessage [11:18:54]wFMCommunicate request_size=4 [11:18:54]MH_SAM_APDU [11:18:54]CAPDU: 80 11 00 00 [11:18:54]Write to MH i2c: E2 08 00 11 1D 80 11 00 00 00 00 00 00 A8 [11:18:54]Write i2c OK [11:18:54]MH_I2C_Read... [11:18:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:54]Read from MH i2c: E2 [11:18:54]MH_I2C_Read... [11:18:54]Read from MH i2c: E2 17 00 [11:18:54]MH_I2C_Read... [11:18:54]Read from MH i2c: E2 17 00 11 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 03 [11:18:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:18:54]wFMCommunicate OK [11:18:54]CreateOFDProtocolMessage done [11:18:54]OFDSenderStorePacket 118447 [11:18:54]StoreOFDPacket docnum=118447 [11:18:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F1 8B 07 01 24 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 74 00 00 00 F4 03 04 00 1F 29 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AF CE 01 00 35 04 06 00 E2 D8 AE B2 79 E5 1C AF 0C D6 03 F1 BB 32 [11:18:54]CheckFolder [11:18:54]dirname=/storage/ofd_packets [11:18:54]CheckFolder done [11:18:54]ProducePacketName [11:18:54]name=ofd_packets/00118447 [11:18:54]NVStorageSaveData ofd_packets/00118447 [11:18:54]File name is /storage/ofd_packets/00118447 [11:18:54]Write 301 bytes [11:18:54]NVStorageSaveData done [11:18:54]OFDSenderStorePacket done [11:18:54]KKMCreateOFDPacket done [11:18:54]NVStorageSaveData kkm_last_timestamp [11:18:54]File name is /storage/kkm_last_timestamp [11:18:54]Write 4 bytes [11:18:54]NVStorageSaveData done [11:18:54]ExternCall_PrintAddStr [11:18:54]wPrintStart [11:18:54]Write to MH i2c: 01 00 00 12 1D 2F [11:18:54]Write i2c OK [11:18:54]MH_I2C_Read... [11:18:54]Read from MH i2c: 01 [11:18:54]MH_I2C_Read... [11:18:54]Read from MH i2c: 01 07 00 [11:18:54]MH_I2C_Read... [11:18:54]Read from MH i2c: 01 07 00 12 1D 00 00 00 00 00 FF 0F 44 [11:18:54]RasterBufferAndPrint [11:18:54]line Счет N : (1)949321 [11:18:54]line ИНН: 02508201610067 [11:18:54]line Контрольно-Кассовый Чек [11:18:54]line ПРОДАЖА [11:18:54]line ТРК (МРК, ГНК) : 31 [11:18:54]line Товар: 2710124130 [11:18:54]line Аи-92-К-4 [11:18:54]line 5.900 * 67.80 [11:18:54]line = 400.02 [11:18:54]line НДС 12% НСП 1% [11:18:54]line > о реализуемом товаре [11:18:54]line ОКРУГЛЕНИЕ: -0.02 [11:18:54]line ИТОГО: 400.00 [11:18:54]line Внесено: 400.00 [11:18:54]line СДАЧА: 0.00 [11:18:54]line НСП 1% : 3.54 [11:18:54]line НДС 12% : 42.48 [11:18:54]line Наличными: 400.00 [11:18:54]line Безнал.: 0.00 [11:18:54]line Место: АЗС № 134 "Партнер Нефть" [11:18:54]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:18:54]line СНО: Общий режим [11:18:54]line Чек 116 28.07.2024 11:18 [11:18:54]line Смена: 433 ФФД: 1.0 [11:18:54]line ЗНМ: 0300000044 [11:18:54]line РНМ: 0000000000092660 [11:18:54]line Версия ККМ: 001 [11:18:54]line ФМ: 0000000000874939 [11:18:54]line ФД: 118447 [11:18:54]line ФПД: 249420271745509 [11:18:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111855&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118447&fm=249420271745509&tin=02508201610067®Number=0000000000092660&sum=40000 [11:18:55]OFD Sender: Processing packet 118447 [packets to send 86, broken 85] [11:18:55]ProducePacketName [11:18:55]name=ofd_packets/00118447 [11:18:55]OFD Sender: To server: pG, [11:18:55]CommunicateWithHost lk.salyk.kg:30040 [11:18:55]ConnectInit lk.salyk.kg [11:18:55]written 0, free lines is 4095 [11:18:55]Connected sock=11 [11:18:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F1 8B 07 01 24 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 74 00 00 00 F4 03 04 00 1F 29 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AF CE 01 00 35 04 06 00 E2 D8 AE B2 79 E5 1C AF 0C D6 03 F1 BB 32 [11:18:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B7 4F 47 00 95 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AF CE 01 00 F4 03 04 00 AF D6 A5 66 B6 04 01 00 00 41 30 BE 24 EC 7D A0 4C [11:18:55]CommunicateWithHost err = 0 [11:18:55]CheckOFDResponse [11:18:55]1017 (14) - 77093643461234 [11:18:55]1041 (16) - 0000000000874939 [11:18:55]1040 (4) - 118447 [11:18:55]1012 (4) - 28.07.2024 05:27 [11:18:55]1206 (1) - 0 [11:18:55]OFD Sender: Remove packet 118447 [11:18:55]ProducePacketName [11:18:55]name=ofd_packets/00118447 [11:18:55]NVStorageDeleteData [11:18:55]Write to MH i2c: 01 00 00 3C 1D 59 [11:18:55]Write i2c OK [11:18:55]MH_I2C_Read... [11:18:55]Read from MH i2c: 01 [11:18:55]MH_I2C_Read... [11:18:55]Read from MH i2c: 01 07 00 [11:18:55]MH_I2C_Read... [11:18:55]Read from MH i2c: 01 07 00 3C 1D 00 00 00 00 00 E0 0C 4C [11:18:55]RasterBufferAndPrint [11:18:55]line [11:18:55]line [11:18:55]line [11:18:55]line [11:18:55]line [11:18:55]written 0, free lines is 3302 [11:18:55]MH_Cut [11:18:55]Write to MH i2c: D1 01 00 43 1D 01 32 [11:18:55]Write i2c OK [11:18:55]MH_I2C_Read... [11:18:55]Read from MH i2c: D1 [11:18:55]MH_I2C_Read... [11:18:55]Read from MH i2c: D1 01 00 [11:18:55]MH_I2C_Read... [11:18:55]Read from MH i2c: D1 01 00 43 1D 00 31 [11:18:55]Write to MH i2c: 01 00 00 44 1D 61 [11:18:55]Write i2c OK [11:18:55]MH_I2C_Read... [11:18:55]OFD Sender: No OFD packet to send [11:18:56]*** Cut start [11:18:56]*** Partial cut [11:18:56]*** CUTSNS_PIN = 1 [11:18:56]*** CUTSNS_PIN = 0 [11:18:56]*** Brake cut motor [11:18:56]Read from MH i2c: 01 [11:18:56]MH_I2C_Read... [11:18:56]*** Stop cut motor [11:18:56]*** Cut end [11:18:56]Read from MH i2c: 01 07 00 [11:18:56]MH_I2C_Read... [11:18:56]Read from MH i2c: 01 07 00 44 1D 00 00 00 00 00 FF 0F 76 [11:18:56]process_action close_receipt done [11:18:56]requested_data is exist [11:18:56]produce_requested_data [11:18:56]requested_item fm.sn is exist - process it [11:18:56]wFMCommunicate request_size=4 [11:18:56]MH_SAM_APDU [11:18:56]CAPDU: 80 11 00 00 [11:18:56]Write to MH i2c: E2 08 00 45 1D 80 11 00 00 00 00 00 00 DC [11:18:56]Write i2c OK [11:18:56]MH_I2C_Read... [11:18:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:56]Read from MH i2c: E2 [11:18:56]MH_I2C_Read... [11:18:56]Read from MH i2c: E2 17 00 [11:18:56]MH_I2C_Read... [11:18:56]Read from MH i2c: E2 17 00 45 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 37 [11:18:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:18:56]wFMCommunicate OK [11:18:56]requested_item fd.num is exist - process it [11:18:56]SAM_PROTO_GetFieldsCounters [11:18:56]wFMCommunicate request_size=4 [11:18:56]MH_SAM_APDU [11:18:56]CAPDU: 80 13 00 00 [11:18:56]Write to MH i2c: E2 08 00 46 1D 80 13 00 00 00 00 00 00 DF [11:18:56]Write i2c OK [11:18:56]MH_I2C_Read... [11:18:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:57]Read from MH i2c: E2 [11:18:57]MH_I2C_Read... [11:18:57]Read from MH i2c: E2 62 00 [11:18:57]MH_I2C_Read... [11:18:57]Read from MH i2c: E2 62 00 46 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AF CE 01 00 0E 04 04 00 B1 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 92 [11:18:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AF CE 01 00 0E 04 04 00 B1 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 [11:18:57]wFMCommunicate OK [11:18:57]SAM_PROTO_GetFieldsCounters done [11:18:57]requested_item shift.num is exist - process it [11:18:57]requested_item shift.opened is exist - process it [11:18:57]req_shift_opened [11:18:57]FM_GetShiftState [11:18:57]SAM_PROTO_GetShiftState [11:18:57]wFMCommunicate request_size=4 [11:18:57]MH_SAM_APDU [11:18:57]CAPDU: 80 13 01 00 [11:18:57]Write to MH i2c: E2 08 00 47 1D 80 13 01 00 00 00 00 00 E1 [11:18:57]Write i2c OK [11:18:57]MH_I2C_Read... [11:18:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:57]Read from MH i2c: E2 [11:18:57]MH_I2C_Read... [11:18:57]Read from MH i2c: E2 0E 00 [11:18:57]MH_I2C_Read... [11:18:57]Read from MH i2c: E2 0E 00 47 1D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 B8 [11:18:57]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:18:57]wFMCommunicate OK [11:18:57]SAM_PROTO_GetShiftState done [11:18:57]FM_GetShiftState done [11:18:57]req_shift_opened done [11:18:57]requested_item shift.open_date is exist - process it [11:18:57]req_shift_open_date [11:18:57]req_shift_open_date done [11:18:57]produce_requested_data done [11:18:57]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118447,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:18:57]process_action_free close_receipt [11:18:57]json_value_free [11:18:57]json_value_free done [11:18:57]process_json_proto returns [11:18:57]Send response to host [11:18:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118447,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:18:57]free response buf [11:18:57]execute_script done [11:18:57]execute_script returns [11:18:57]free content buf [11:18:57]Sock 7.Close socket [11:18:57]Sock 7.Thread stoped [11:19:00]OFD Sender: No OFD packet to send [11:19:05]OFD Sender: No OFD packet to send [11:19:10]OFD Sender: No OFD packet to send [11:19:15]OFD Sender: No OFD packet to send [11:19:20]OFD Sender: No OFD packet to send [11:19:25]OFD Sender: No OFD packet to send [11:19:28]accept exits with 9 [11:19:28]New connection [11:19:28]New thread 3067067748 created [11:19:28]Thread 3066924388 joined [11:19:28]Waiting for new connection... [11:19:28] Sock 9.Parse request [11:19:28]Sock 9.Check first char [11:19:28]Sock 9.First char is OK [11:19:28]request: POST /json_proto HTTP/1.0 [11:19:28]Method: POST [11:19:28]URL: /json_proto [11:19:28]Method is POST - this is cgi request [11:19:28]url: /json_proto [11:19:28]query_string will be loaded in cgi processing [11:19:28]execute_cgi json_proto POST (null) [11:19:28]execute_cgi path=json_proto method=POST [11:19:28]POST find Content-Length [11:19:28]Host: 172.17.45.7:8080 [11:19:28]Content-Length: 677 [11:19:28]Content-Type: application/json [11:19:28] [11:19:28]POST finish read [11:19:28]Found Content-Length = 677 [11:19:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.450, "sum" : 505.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 505.00, "total" : 505.00, "payments": [ { "type": 0, "sum" : 505.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:28]execute_script... [11:19: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)949322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.450, "sum" : 505.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 505.00, "total" : 505.00, "payments": [ { "type": 0, "sum" : 505.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:28]POST & json_proto [11:19:28]process_json_proto [11:19:28]json parsed OK: [11:19:28]protocol is kg_v1.0 [11:19:28]action value=close_receipt [11:19:28]process_action close_receipt [11:19:28]cmd_close_receipt [11:19:28]MH_GetDate [11:19:28]Write to MH i2c: F0 00 00 48 1D 54 [11:19:28]Write i2c OK [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: F0 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: F0 09 00 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: F0 09 00 48 1D 00 42 29 A6 66 90 0F 3E 66 17 [11:19:28]GetLastDocTimeStamp 1722165535 [11:19:28]current date 1722165570 [11:19:28]FM_GetShiftState [11:19:28]SAM_PROTO_GetShiftState [11:19:28]wFMCommunicate request_size=4 [11:19:28]MH_SAM_APDU [11:19:28]CAPDU: 80 13 01 00 [11:19:28]Write to MH i2c: E2 08 00 49 1D 80 13 01 00 00 00 00 00 E3 [11:19:28]Write i2c OK [11:19:28]MH_I2C_Read... [11:19:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:28]Read from MH i2c: E2 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: E2 0E 00 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: E2 0E 00 49 1D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 BA [11:19:28]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:19:28]wFMCommunicate OK [11:19:28]SAM_PROTO_GetShiftState done [11:19:28]FM_GetShiftState done [11:19:28]opened in 1722125364 [11:19:28]opened+sec_in_day 1722211764 [11:19:28]quantity*price = 50511 [11:19:28]sum+1 = 50512 [11:19:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 505.00 Внесено: 505.00 СДАЧА: 0.00 НСП 1% : 4.47 НДС 12% : 53.64 Наличными: 505.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 117 28.07.2024 11:19 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118448 ФПД: 94460211087622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111930&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118448&fm=94460211087622&tin=02508201610067®Number=0000000000092660&sum=50500 [11:19:29]StoreToDocumentArchive [11:19:29]shift 433 fd 118448 [11:19:29]save to /storage/0433/doc_00118448 [11:19:29]save last doc name /storage/0433/doc_00118448 to /storage/kkm_last_doc_name [11:19:29]save OK [11:19:29]Clear old archive folders... [11:19:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:29]tlvbuf is B6EC4B50 [11:19:29]SAM_PROTO_ClearQueue [11:19:29]wFMCommunicate request_size=4 [11:19:29]MH_SAM_APDU [11:19:29]CAPDU: 80 09 00 00 [11:19:29]Write to MH i2c: E2 08 00 56 1D 80 09 00 00 00 00 00 00 E5 [11:19:29]Write i2c OK [11:19:29]MH_I2C_Read... [11:19:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:29]Read from MH i2c: E2 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: E2 03 00 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: E2 03 00 56 1D 00 90 00 E7 [11:19:29]RAPDU: 90 00 [11:19:29]wFMCommunicate OK [11:19:29]SAM_PROTO_ClearQueue done [11:19:29]KKMCreateOFDPacket [11:19:29]OFDProtocolAddRootSTLVToBuf [11:19:29]FM_MakeSignedData [11:19:29]FM_MakeSignedData [11:19:29]SAM_PROTO_SignData [11:19:29]wFMCommunicate request_size=4 [11:19:29]MH_SAM_APDU [11:19:29]CAPDU: 80 0D 01 02 [11:19:29]Write to MH i2c: E2 08 00 57 1D 80 0D 01 02 00 00 00 00 ED [11:19:29]Write i2c OK [11:19:29]MH_I2C_Read... [11:19:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:29]Read from MH i2c: E2 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: E2 03 00 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: E2 03 00 57 1D 00 90 00 E8 [11:19:29]RAPDU: 90 00 [11:19:29]wFMCommunicate OK [11:19:29]wFMCommunicate request_size=255 [11:19:29]MH_SAM_APDU [11:19: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 34 FF 03 08 00 03 1A 1D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4F C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 14 00 00 00 00 07 04 06 00 44 C5 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 42 29 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B0 CE 01 00 35 04 06 00 55 [11:19:29]Write to MH i2c: E2 02 01 58 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 34 FF 03 08 00 03 1A 1D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4F C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 14 00 00 00 00 07 04 06 00 44 C5 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 42 29 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B0 CE 01 00 35 04 06 00 55 00 00 29 [11:19:29]Write i2c OK [11:19:29]MH_I2C_Read... [11:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:29]Read from MH i2c: E2 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: E2 03 00 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: E2 03 00 58 1D 00 90 00 E9 [11:19:29]RAPDU: 90 00 [11:19:29]wFMCommunicate OK [11:19:29]wFMCommunicate request_size=10 [11:19:29]MH_SAM_APDU [11:19:29]CAPDU: 80 0D 02 02 05 E9 3B 53 C9 06 [11:19:29]Write to MH i2c: E2 0D 00 59 1D 80 0D 02 02 05 00 E9 3B 53 C9 06 00 00 40 [11:19:29]Write i2c OK [11:19:29]MH_I2C_Read... [11:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:29]Read from MH i2c: E2 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: E2 03 00 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: E2 03 00 59 1D 00 90 00 EA [11:19:29]RAPDU: 90 00 [11:19:29]wFMCommunicate OK [11:19:29]wFMCommunicate request_size=4 [11:19:29]MH_SAM_APDU [11:19:29]CAPDU: 80 0D 03 02 [11:19:29]Write to MH i2c: E2 08 00 5A 1D 80 0D 03 02 00 00 00 00 F2 [11:19:29]Write i2c OK [11:19:29]MH_I2C_Read... [11:19:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:29]Read from MH i2c: E2 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: E2 0B 00 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: E2 0B 00 5A 1D 00 2E F0 7A 4C 0C F1 A0 FE 90 00 72 [11:19:29]RAPDU: 2E F0 7A 4C 0C F1 A0 FE 90 00 [11:19:29]wFMCommunicate OK [11:19:29]SAM_PROTO_SignData done [11:19:29]FM_MakeSignedData done [11:19:29]CreateOFDProtocolMessage [11:19:29]wFMCommunicate request_size=4 [11:19:29]MH_SAM_APDU [11:19:29]CAPDU: 80 11 00 00 [11:19:29]Write to MH i2c: E2 08 00 5B 1D 80 11 00 00 00 00 00 00 F2 [11:19:29]Write i2c OK [11:19:29]MH_I2C_Read... [11:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:29]Read from MH i2c: E2 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: E2 17 00 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: E2 17 00 5B 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4D [11:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:19:29]wFMCommunicate OK [11:19:29]CreateOFDProtocolMessage done [11:19:29]OFDSenderStorePacket 118448 [11:19:29]StoreOFDPacket docnum=118448 [11:19:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AD 50 07 01 31 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 34 FF 03 08 00 03 1A 1D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4F C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 14 00 00 00 00 07 04 06 00 44 C5 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 42 29 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B0 CE 01 00 35 04 06 00 55 E9 3B 53 C9 06 2E F0 7A 4C 0C F1 A0 FE [11:19:29]CheckFolder [11:19:29]dirname=/storage/ofd_packets [11:19:29]CheckFolder done [11:19:29]ProducePacketName [11:19:29]name=ofd_packets/00118448 [11:19:29]NVStorageSaveData ofd_packets/00118448 [11:19:29]File name is /storage/ofd_packets/00118448 [11:19:29]Write 301 bytes [11:19:29]NVStorageSaveData done [11:19:29]OFDSenderStorePacket done [11:19:29]KKMCreateOFDPacket done [11:19:29]NVStorageSaveData kkm_last_timestamp [11:19:29]File name is /storage/kkm_last_timestamp [11:19:29]Write 4 bytes [11:19:29]NVStorageSaveData done [11:19:29]ExternCall_PrintAddStr [11:19:29]wPrintStart [11:19:29]Write to MH i2c: 01 00 00 5C 1D 79 [11:19:29]Write i2c OK [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: 01 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: 01 07 00 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: 01 07 00 5C 1D 00 00 00 00 00 FF 0F 8E [11:19:29]RasterBufferAndPrint [11:19:29]line Счет N : (1)949322 [11:19:29]line ИНН: 02508201610067 [11:19:29]line Контрольно-Кассовый Чек [11:19:29]line ПРОДАЖА [11:19:29]line ТРК (МРК, ГНК) : 51 [11:19:29]line Товар: 2710124130 [11:19:29]line Аи-92-К-4 [11:19:29]line 7.450 * 67.80 [11:19:29]line = 505.11 [11:19:29]line НДС 12% НСП 1% [11:19:29]line > о реализуемом товаре [11:19:29]line ОКРУГЛЕНИЕ: -0.11 [11:19:29]line ИТОГО: 505.00 [11:19:29]line Внесено: 505.00 [11:19:29]line СДАЧА: 0.00 [11:19:29]line НСП 1% : 4.47 [11:19:29]line НДС 12% : 53.64 [11:19:29]line Наличными: 505.00 [11:19:29]line Безнал.: 0.00 [11:19:29]line Место: АЗС № 134 "Партнер Нефть" [11:19:29]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:19:29]line СНО: Общий режим [11:19:29]line Чек 117 28.07.2024 11:19 [11:19:29]line Смена: 433 ФФД: 1.0 [11:19:29]line ЗНМ: 0300000044 [11:19:29]line РНМ: 0000000000092660 [11:19:29]line Версия ККМ: 001 [11:19:29]line ФМ: 0000000000874939 [11:19:29]line ФД: 118448 [11:19:29]line ФПД: 94460211087622 [11:19:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111930&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118448&fm=94460211087622&tin=02508201610067®Number=0000000000092660&sum=50500 [11:19:30]OFD Sender: Processing packet 118448 [packets to send 86, broken 85] [11:19:30]ProducePacketName [11:19:30]name=ofd_packets/00118448 [11:19:30]OFD Sender: To server: pG, [11:19:30]CommunicateWithHost lk.salyk.kg:30040 [11:19:30]ConnectInit lk.salyk.kg [11:19:30]written 0, free lines is 4095 [11:19:30]Connected sock=10 [11:19:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AD 50 07 01 31 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 34 FF 03 08 00 03 1A 1D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4F C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 14 00 00 00 00 07 04 06 00 44 C5 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 42 29 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B0 CE 01 00 35 04 06 00 55 E9 3B 53 C9 06 2E F0 7A 4C 0C F1 A0 FE [11:19:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 36 A2 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 39 33 39 10 04 04 00 B0 CE 01 00 F4 03 04 00 D3 D6 A5 66 B6 04 01 00 00 21 F7 0A 8E 19 13 F5 EB [11:19:30]CommunicateWithHost err = 0 [11:19:30]CheckOFDResponse [11:19:30]1017 (14) - 77093643461234 [11:19:30]1041 (16) - 0000000000874939 [11:19:30]1040 (4) - 118448 [11:19:30]1012 (4) - 28.07.2024 05:27 [11:19:30]1206 (1) - 0 [11:19:30]OFD Sender: Remove packet 118448 [11:19:30]ProducePacketName [11:19:30]name=ofd_packets/00118448 [11:19:30]NVStorageDeleteData [11:19:30]Write to MH i2c: 01 00 00 86 1D A3 [11:19:30]Write i2c OK [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: 01 [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: 01 07 00 [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: 01 07 00 86 1D 00 00 00 00 00 CE 0C 84 [11:19:30]RasterBufferAndPrint [11:19:30]line [11:19:30]line [11:19:30]line [11:19:30]line [11:19:30]line [11:19:30]written 0, free lines is 3285 [11:19:30]MH_Cut [11:19:30]Write to MH i2c: D1 01 00 8D 1D 01 7C [11:19:30]Write i2c OK [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: D1 [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: D1 01 00 [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: D1 01 00 8D 1D 00 7B [11:19:30]Write to MH i2c: 01 00 00 8E 1D AB [11:19:30]Write i2c OK [11:19:30]MH_I2C_Read... [11:19:30]OFD Sender: No OFD packet to send [11:19:31]*** Cut start [11:19:31]*** Partial cut [11:19:31]*** CUTSNS_PIN = 1 [11:19:31]*** CUTSNS_PIN = 0 [11:19:31]*** Brake cut motor [11:19:31]Read from MH i2c: 01 [11:19:31]MH_I2C_Read... [11:19:31]*** Stop cut motor [11:19:31]*** Cut end [11:19:31]Read from MH i2c: 01 07 00 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: 01 07 00 8E 1D 00 00 00 00 00 FF 0F C0 [11:19:31]process_action close_receipt done [11:19:31]requested_data is exist [11:19:31]produce_requested_data [11:19:31]requested_item fm.sn is exist - process it [11:19:31]wFMCommunicate request_size=4 [11:19:31]MH_SAM_APDU [11:19:31]CAPDU: 80 11 00 00 [11:19:31]Write to MH i2c: E2 08 00 8F 1D 80 11 00 00 00 00 00 00 26 [11:19:31]Write i2c OK [11:19:31]MH_I2C_Read... [11:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:31]Read from MH i2c: E2 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: E2 17 00 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: E2 17 00 8F 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 81 [11:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:19:31]wFMCommunicate OK [11:19:31]requested_item fd.num is exist - process it [11:19:31]SAM_PROTO_GetFieldsCounters [11:19:31]wFMCommunicate request_size=4 [11:19:31]MH_SAM_APDU [11:19:31]CAPDU: 80 13 00 00 [11:19:31]Write to MH i2c: E2 08 00 90 1D 80 13 00 00 00 00 00 00 29 [11:19:31]Write i2c OK [11:19:31]MH_I2C_Read... [11:19:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:32]Read from MH i2c: E2 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: E2 62 00 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: E2 62 00 90 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B0 CE 01 00 0E 04 04 00 B1 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 E0 [11: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B0 CE 01 00 0E 04 04 00 B1 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 [11:19:32]wFMCommunicate OK [11:19:32]SAM_PROTO_GetFieldsCounters done [11:19:32]requested_item shift.num is exist - process it [11:19:32]requested_item shift.opened is exist - process it [11:19:32]req_shift_opened [11:19:32]FM_GetShiftState [11:19:32]SAM_PROTO_GetShiftState [11:19:32]wFMCommunicate request_size=4 [11:19:32]MH_SAM_APDU [11:19:32]CAPDU: 80 13 01 00 [11:19:32]Write to MH i2c: E2 08 00 91 1D 80 13 01 00 00 00 00 00 2B [11:19:32]Write i2c OK [11:19:32]MH_I2C_Read... [11:19:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:32]Read from MH i2c: E2 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: E2 0E 00 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: E2 0E 00 91 1D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 02 [11:19:32]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:19:32]wFMCommunicate OK [11:19:32]SAM_PROTO_GetShiftState done [11:19:32]FM_GetShiftState done [11:19:32]req_shift_opened done [11:19:32]requested_item shift.open_date is exist - process it [11:19:32]req_shift_open_date [11:19:32]req_shift_open_date done [11:19:32]produce_requested_data done [11:19:32]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118448,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:19:32]process_action_free close_receipt [11:19:32]json_value_free [11:19:32]json_value_free done [11:19:32]process_json_proto returns [11:19:32]Send response to host [11:19:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118448,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:19:32]free response buf [11:19:32]execute_script done [11:19:32]execute_script returns [11:19:32]free content buf [11:19:32]Sock 9.Close socket [11:19:32]Sock 9.Thread stoped [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:16]OFD Sender: No OFD packet to send [11:20:21]OFD Sender: No OFD packet to send [11:20:26]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:56]OFD Sender: No OFD packet to send [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:31]OFD Sender: No OFD packet to send [11:22:36]OFD Sender: No OFD packet to send [11:22:41]OFD Sender: No OFD packet to send [11:22:46]OFD Sender: No OFD packet to send [11:22:51]OFD Sender: No OFD packet to send [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:41]accept exits with 7 [11:23:41]New connection [11:23:41]New thread 3066924388 created [11:23:41]Thread 3067067748 joined [11:23:41]Waiting for new connection... [11:23:41] Sock 7.Parse request [11:23:41]Sock 7.Check first char [11:23:41]Sock 7.First char is OK [11:23:41]request: POST /json_proto HTTP/1.0 [11:23:41]Method: POST [11:23:41]URL: /json_proto [11:23:41]Method is POST - this is cgi request [11:23:41]url: /json_proto [11:23:41]query_string will be loaded in cgi processing [11:23:41]execute_cgi json_proto POST (null) [11:23:41]execute_cgi path=json_proto method=POST [11:23:41]POST find Content-Length [11:23:41]Host: 172.17.45.7:8080 [11:23:41]Content-Length: 677 [11:23:41]Content-Type: application/json [11:23:41] [11:23:41]POST finish read [11:23:41]Found Content-Length = 677 [11:23:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.540, "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" ] } } [11:23:41]execute_script... [11:23:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.540, "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" ] } } [11:23:41]POST & json_proto [11:23:41]process_json_proto [11:23:41]json parsed OK: [11:23:41]protocol is kg_v1.0 [11:23:41]action value=close_receipt [11:23:41]process_action close_receipt [11:23:41]cmd_close_receipt [11:23:41]MH_GetDate [11:23:41]Write to MH i2c: F0 00 00 92 1D 9E [11:23:41]Write i2c OK [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: F0 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: F0 09 00 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: F0 09 00 92 1D 00 40 2A A6 66 90 0F 3E 66 60 [11:23:41]GetLastDocTimeStamp 1722165570 [11:23:41]current date 1722165824 [11:23:41]FM_GetShiftState [11:23:41]SAM_PROTO_GetShiftState [11:23:41]wFMCommunicate request_size=4 [11:23:41]MH_SAM_APDU [11:23:41]CAPDU: 80 13 01 00 [11:23:41]Write to MH i2c: E2 08 00 93 1D 80 13 01 00 00 00 00 00 2D [11:23:41]Write i2c OK [11:23:41]MH_I2C_Read... [11:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:41]Read from MH i2c: E2 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: E2 0E 00 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: E2 0E 00 93 1D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 04 [11:23:41]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:23:41]wFMCommunicate OK [11:23:41]SAM_PROTO_GetShiftState done [11:23:41]FM_GetShiftState done [11:23:41]opened in 1722125364 [11:23:41]opened+sec_in_day 1722211764 [11:23:41]quantity*price = 24001 [11:23:41]sum+1 = 24002 [11:23:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.49 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 118 28.07.2024 11:23 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118449 ФПД: 241232022707976 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112344&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118449&fm=241232022707976&tin=02508201610067®Number=0000000000092660&sum=24000 [11:23:42]StoreToDocumentArchive [11:23:42]shift 433 fd 118449 [11:23:42]save to /storage/0433/doc_00118449 [11:23:42]save last doc name /storage/0433/doc_00118449 to /storage/kkm_last_doc_name [11:23:42]save OK [11:23:42]Clear old archive folders... [11:23:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:42]tlvbuf is 00117E20 [11:23:42]SAM_PROTO_ClearQueue [11:23:42]wFMCommunicate request_size=4 [11:23:42]MH_SAM_APDU [11:23:42]CAPDU: 80 09 00 00 [11:23:42]Write to MH i2c: E2 08 00 A0 1D 80 09 00 00 00 00 00 00 2F [11:23:42]Write i2c OK [11:23:42]MH_I2C_Read... [11:23:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:42]Read from MH i2c: E2 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 03 00 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 03 00 A0 1D 00 90 00 31 [11:23:42]RAPDU: 90 00 [11:23:42]wFMCommunicate OK [11:23:42]SAM_PROTO_ClearQueue done [11:23:42]KKMCreateOFDPacket [11:23:42]OFDProtocolAddRootSTLVToBuf [11:23:42]FM_MakeSignedData [11:23:42]FM_MakeSignedData [11:23:42]SAM_PROTO_SignData [11:23:42]wFMCommunicate request_size=4 [11:23:42]MH_SAM_APDU [11:23:42]CAPDU: 80 0D 01 02 [11:23:42]Write to MH i2c: E2 08 00 A1 1D 80 0D 01 02 00 00 00 00 37 [11:23:42]Write i2c OK [11:23:42]MH_I2C_Read... [11:23:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:42]Read from MH i2c: E2 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 03 00 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 03 00 A1 1D 00 90 00 32 [11:23:42]RAPDU: 90 00 [11:23:42]wFMCommunicate OK [11:23:42]wFMCommunicate request_size=255 [11:23:42]MH_SAM_APDU [11:23: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 34 FF 03 08 00 03 D4 0D 00 00 00 00 00 37 04 06 00 7C 1A 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 76 00 00 00 F4 03 04 00 40 2A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B1 CE 01 00 35 04 06 00 DB [11:23:42]Write to MH i2c: E2 02 01 A2 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 34 FF 03 08 00 03 D4 0D 00 00 00 00 00 37 04 06 00 7C 1A 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 76 00 00 00 F4 03 04 00 40 2A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B1 CE 01 00 35 04 06 00 DB 00 00 E0 [11:23:42]Write i2c OK [11:23:42]MH_I2C_Read... [11:23:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:43]Read from MH i2c: E2 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: E2 03 00 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: E2 03 00 A2 1D 00 90 00 33 [11:23:43]RAPDU: 90 00 [11:23:43]wFMCommunicate OK [11:23:43]wFMCommunicate request_size=10 [11:23:43]MH_SAM_APDU [11:23:43]CAPDU: 80 0D 02 02 05 66 35 05 9F 08 [11:23:43]Write to MH i2c: E2 0D 00 A3 1D 80 0D 02 02 05 00 66 35 05 9F 08 00 00 8B [11:23:43]Write i2c OK [11:23:43]MH_I2C_Read... [11:23:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:43]Read from MH i2c: E2 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: E2 03 00 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: E2 03 00 A3 1D 00 90 00 34 [11:23:43]RAPDU: 90 00 [11:23:43]wFMCommunicate OK [11:23:43]wFMCommunicate request_size=4 [11:23:43]MH_SAM_APDU [11:23:43]CAPDU: 80 0D 03 02 [11:23:43]Write to MH i2c: E2 08 00 A4 1D 80 0D 03 02 00 00 00 00 3C [11:23:43]Write i2c OK [11:23:43]MH_I2C_Read... [11:23:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:43]Read from MH i2c: E2 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: E2 0B 00 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: E2 0B 00 A4 1D 00 F9 C8 48 C9 D9 1A 83 D6 90 00 5B [11:23:43]RAPDU: F9 C8 48 C9 D9 1A 83 D6 90 00 [11:23:43]wFMCommunicate OK [11:23:43]SAM_PROTO_SignData done [11:23:43]FM_MakeSignedData done [11:23:43]CreateOFDProtocolMessage [11:23:43]wFMCommunicate request_size=4 [11:23:43]MH_SAM_APDU [11:23:43]CAPDU: 80 11 00 00 [11:23:43]Write to MH i2c: E2 08 00 A5 1D 80 11 00 00 00 00 00 00 3C [11:23:43]Write i2c OK [11:23:43]MH_I2C_Read... [11:23:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:43]Read from MH i2c: E2 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: E2 17 00 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: E2 17 00 A5 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 97 [11:23:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:23:43]wFMCommunicate OK [11:23:43]CreateOFDProtocolMessage done [11:23:43]OFDSenderStorePacket 118449 [11:23:43]StoreOFDPacket docnum=118449 [11:23:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 83 EB 07 01 B6 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 34 FF 03 08 00 03 D4 0D 00 00 00 00 00 37 04 06 00 7C 1A 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 76 00 00 00 F4 03 04 00 40 2A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B1 CE 01 00 35 04 06 00 DB 66 35 05 9F 08 F9 C8 48 C9 D9 1A 83 D6 [11:23:43]CheckFolder [11:23:43]dirname=/storage/ofd_packets [11:23:43]CheckFolder done [11:23:43]ProducePacketName [11:23:43]name=ofd_packets/00118449 [11:23:43]NVStorageSaveData ofd_packets/00118449 [11:23:43]File name is /storage/ofd_packets/00118449 [11:23:43]Write 301 bytes [11:23:43]NVStorageSaveData done [11:23:43]OFDSenderStorePacket done [11:23:43]KKMCreateOFDPacket done [11:23:43]NVStorageSaveData kkm_last_timestamp [11:23:43]File name is /storage/kkm_last_timestamp [11:23:43]Write 4 bytes [11:23:43]NVStorageSaveData done [11:23:43]ExternCall_PrintAddStr [11:23:43]wPrintStart [11:23:43]Write to MH i2c: 01 00 00 A6 1D C3 [11:23:43]Write i2c OK [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: 01 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: 01 07 00 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: 01 07 00 A6 1D 00 00 00 00 00 FF 0F D8 [11:23:43]RasterBufferAndPrint [11:23:43]line Счет N : (1)949325 [11:23:43]line ИНН: 02508201610067 [11:23:43]line Контрольно-Кассовый Чек [11:23:43]line ПРОДАЖА [11:23:43]line ТРК (МРК, ГНК) : 41 [11:23:43]line Товар: 2710124130 [11:23:43]line Аи-92-К-4 [11:23:43]line 3.540 * 67.80 [11:23:43]line = 240.01 [11:23:43]line НДС 12% НСП 1% [11:23:43]line > о реализуемом товаре [11:23:43]line ОКРУГЛЕНИЕ: -0.01 [11:23:43]line ИТОГО: 240.00 [11:23:43]line Внесено: 240.00 [11:23:43]line СДАЧА: 0.00 [11:23:43]line НСП 1% : 2.12 [11:23:43]line НДС 12% : 25.49 [11:23:43]line Наличными: 240.00 [11:23:43]line Безнал.: 0.00 [11:23:43]line Место: АЗС № 134 "Партнер Нефть" [11:23:43]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:23:43]line СНО: Общий режим [11:23:43]line Чек 118 28.07.2024 11:23 [11:23:43]line Смена: 433 ФФД: 1.0 [11:23:43]line ЗНМ: 0300000044 [11:23:43]line РНМ: 0000000000092660 [11:23:43]line Версия ККМ: 001 [11:23:43]line ФМ: 0000000000874939 [11:23:43]line ФД: 118449 [11:23:43]line ФПД: 241232022707976 [11:23:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112344&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118449&fm=241232022707976&tin=02508201610067®Number=0000000000092660&sum=24000 [11:23:43]OFD Sender: Processing packet 118449 [packets to send 86, broken 85] [11:23:43]ProducePacketName [11:23:43]name=ofd_packets/00118449 [11:23:43]OFD Sender: To server: pG, [11:23:43]CommunicateWithHost lk.salyk.kg:30040 [11:23:43]ConnectInit lk.salyk.kg [11:23:43]written 0, free lines is 4095 [11:23:43]Connected sock=10 [11:23:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 83 EB 07 01 B6 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 34 FF 03 08 00 03 D4 0D 00 00 00 00 00 37 04 06 00 7C 1A 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 76 00 00 00 F4 03 04 00 40 2A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B1 CE 01 00 35 04 06 00 DB 66 35 05 9F 08 F9 C8 48 C9 D9 1A 83 D6 [11:23:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EA BE 47 00 28 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 39 33 39 10 04 04 00 B1 CE 01 00 F4 03 04 00 D0 D7 A5 66 B6 04 01 00 00 07 BD 45 BC F4 83 E8 51 [11:23:44]CommunicateWithHost err = 0 [11:23:44]CheckOFDResponse [11:23:44]1017 (14) - 77093643461234 [11:23:44]1041 (16) - 0000000000874939 [11:23:44]1040 (4) - 118449 [11:23:44]1012 (4) - 28.07.2024 05:32 [11:23:44]1206 (1) - 0 [11:23:44]OFD Sender: Remove packet 118449 [11:23:44]ProducePacketName [11:23:44]name=ofd_packets/00118449 [11:23:44]NVStorageDeleteData [11:23:44]Write to MH i2c: 01 00 00 D0 1D ED [11:23:44]Write i2c OK [11:23:44]MH_I2C_Read... [11:23:44]Read from MH i2c: 01 [11:23:44]MH_I2C_Read... [11:23:44]Read from MH i2c: 01 07 00 [11:23:44]MH_I2C_Read... [11:23:44]Read from MH i2c: 01 07 00 D0 1D 00 00 00 00 00 E1 0C E1 [11:23:44]RasterBufferAndPrint [11:23:44]line [11:23:44]line [11:23:44]line [11:23:44]line [11:23:44]line [11:23:44]written 0, free lines is 3303 [11:23:44]MH_Cut [11:23:44]Write to MH i2c: D1 01 00 D7 1D 01 C6 [11:23:44]Write i2c OK [11:23:44]MH_I2C_Read... [11:23:44]Read from MH i2c: D1 [11:23:44]MH_I2C_Read... [11:23:44]Read from MH i2c: D1 01 00 [11:23:44]MH_I2C_Read... [11:23:44]Read from MH i2c: D1 01 00 D7 1D 00 C5 [11:23:44]Write to MH i2c: 01 00 00 D8 1D F5 [11:23:44]Write i2c OK [11:23:44]MH_I2C_Read... [11:23:44]OFD Sender: No OFD packet to send [11:23:44]*** Cut start [11:23:44]*** Partial cut [11:23:44]*** CUTSNS_PIN = 1 [11:23:44]*** CUTSNS_PIN = 0 [11:23:45]*** Brake cut motor [11:23:45]Read from MH i2c: 01 [11:23:45]MH_I2C_Read... [11:23:45]*** Stop cut motor [11:23:45]*** Cut end [11:23:45]Read from MH i2c: 01 07 00 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: 01 07 00 D8 1D 00 00 00 00 00 FF 0F 0A [11:23:45]process_action close_receipt done [11:23:45]requested_data is exist [11:23:45]produce_requested_data [11:23:45]requested_item fm.sn is exist - process it [11:23:45]wFMCommunicate request_size=4 [11:23:45]MH_SAM_APDU [11:23:45]CAPDU: 80 11 00 00 [11:23:45]Write to MH i2c: E2 08 00 D9 1D 80 11 00 00 00 00 00 00 70 [11:23:45]Write i2c OK [11:23:45]MH_I2C_Read... [11:23:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:45]Read from MH i2c: E2 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 17 00 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 17 00 D9 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CB [11:23:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:23:45]wFMCommunicate OK [11:23:45]requested_item fd.num is exist - process it [11:23:45]SAM_PROTO_GetFieldsCounters [11:23:45]wFMCommunicate request_size=4 [11:23:45]MH_SAM_APDU [11:23:45]CAPDU: 80 13 00 00 [11:23:45]Write to MH i2c: E2 08 00 DA 1D 80 13 00 00 00 00 00 00 73 [11:23:45]Write i2c OK [11:23:45]MH_I2C_Read... [11:23:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:45]Read from MH i2c: E2 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 62 00 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 62 00 DA 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B1 CE 01 00 0E 04 04 00 B1 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 2E [11:23:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B1 CE 01 00 0E 04 04 00 B1 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 [11:23:45]wFMCommunicate OK [11:23:45]SAM_PROTO_GetFieldsCounters done [11:23:45]requested_item shift.num is exist - process it [11:23:45]requested_item shift.opened is exist - process it [11:23:45]req_shift_opened [11:23:45]FM_GetShiftState [11:23:45]SAM_PROTO_GetShiftState [11:23:45]wFMCommunicate request_size=4 [11:23:45]MH_SAM_APDU [11:23:45]CAPDU: 80 13 01 00 [11:23:45]Write to MH i2c: E2 08 00 DB 1D 80 13 01 00 00 00 00 00 75 [11:23:45]Write i2c OK [11:23:45]MH_I2C_Read... [11:23:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:45]Read from MH i2c: E2 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 0E 00 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 0E 00 DB 1D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 4C [11:23:45]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:23:45]wFMCommunicate OK [11:23:45]SAM_PROTO_GetShiftState done [11:23:45]FM_GetShiftState done [11:23:45]req_shift_opened done [11:23:45]requested_item shift.open_date is exist - process it [11:23:45]req_shift_open_date [11:23:45]req_shift_open_date done [11:23:45]produce_requested_data done [11:23:45]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118449,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:23:45]process_action_free close_receipt [11:23:45]json_value_free [11:23:45]json_value_free done [11:23:45]process_json_proto returns [11:23:45]Send response to host [11:23:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118449,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:23:45]free response buf [11:23:45]execute_script done [11:23:45]execute_script returns [11:23:45]free content buf [11:23:45]Sock 7.Close socket [11:23:45]Sock 7.Thread stoped [11:23:49]OFD Sender: No OFD packet to send [11:23:54]OFD Sender: No OFD packet to send [11:23:59]OFD Sender: No OFD packet to send [11:24:04]OFD Sender: No OFD packet to send [11:24:09]OFD Sender: No OFD packet to send [11:24:14]OFD Sender: No OFD packet to send [11:24:19]OFD Sender: No OFD packet to send [11:24:24]OFD Sender: No OFD packet to send [11:24:29]OFD Sender: No OFD packet to send [11:24:34]OFD Sender: No OFD packet to send [11:24:39]OFD Sender: No OFD packet to send [11:24:44]OFD Sender: No OFD packet to send [11:24:46]accept exits with 9 [11:24:46]New connection [11:24:46]New thread 3067067748 created [11:24:46]Thread 3066924388 joined [11:24:46]Waiting for new connection... [11:24:46] Sock 9.Parse request [11:24:46]Sock 9.Check first char [11:24:46]Sock 9.First char is OK [11:24:46]request: POST /json_proto HTTP/1.0 [11:24:46]Method: POST [11:24:46]URL: /json_proto [11:24:46]Method is POST - this is cgi request [11:24:46]url: /json_proto [11:24:46]query_string will be loaded in cgi processing [11:24:46]execute_cgi json_proto POST (null) [11:24:46]execute_cgi path=json_proto method=POST [11:24:46]POST find Content-Length [11:24:46]Host: 172.17.45.7:8080 [11:24:46]Content-Length: 734 [11:24:46]Content-Type: application/json [11:24:46] [11:24:46]POST finish read [11:24:46]Found Content-Length = 734 [11:24:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118449, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.540, "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" ] } } [11:24:46]execute_script... [11:24:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118449, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.540, "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" ] } } [11:24:46]POST & json_proto [11:24:46]process_json_proto [11:24:46]json parsed OK: [11:24:46]protocol is kg_v1.0 [11:24:46]action value=close_receipt [11:24:46]process_action close_receipt [11:24:46]cmd_close_receipt [11:24:46]MH_GetDate [11:24:46]Write to MH i2c: F0 00 00 DC 1D E8 [11:24:46]Write i2c OK [11:24:46]MH_I2C_Read... [11:24:46]Read from MH i2c: F0 [11:24:46]MH_I2C_Read... [11:24:46]Read from MH i2c: F0 09 00 [11:24:46]MH_I2C_Read... [11:24:46]Read from MH i2c: F0 09 00 DC 1D 00 80 2A A6 66 90 0F 3E 66 EA [11:24:46]GetLastDocTimeStamp 1722165824 [11:24:46]current date 1722165888 [11:24:46]FM_GetShiftState [11:24:46]SAM_PROTO_GetShiftState [11:24:46]wFMCommunicate request_size=4 [11:24:46]MH_SAM_APDU [11:24:46]CAPDU: 80 13 01 00 [11:24:46]Write to MH i2c: E2 08 00 DD 1D 80 13 01 00 00 00 00 00 77 [11:24:46]Write i2c OK [11:24:46]MH_I2C_Read... [11:24:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:46]Read from MH i2c: E2 [11:24:46]MH_I2C_Read... [11:24:46]Read from MH i2c: E2 0E 00 [11:24:46]MH_I2C_Read... [11:24:46]Read from MH i2c: E2 0E 00 DD 1D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 4E [11:24:46]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:24:46]wFMCommunicate OK [11:24:46]SAM_PROTO_GetShiftState done [11:24:46]FM_GetShiftState done [11:24:46]opened in 1722125364 [11:24:46]opened+sec_in_day 1722211764 [11:24:46]quantity*price = 24001 [11:24:46]sum+1 = 24002 [11:24:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 240.00 НСП 1% : 2.12 НДС 12% : 25.49 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 119 28.07.2024 11:24 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 118449 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 118450 ФПД: 91147487243030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112448&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118450&fm=91147487243030&tin=02508201610067®Number=0000000000092660&sum=24000 [11:24:47]StoreToDocumentArchive [11:24:47]shift 433 fd 118450 [11:24:47]save to /storage/0433/doc_00118450 [11:24:47]save last doc name /storage/0433/doc_00118450 to /storage/kkm_last_doc_name [11:24:47]save OK [11:24:47]Clear old archive folders... [11:24:47]ProcessDocumentItem done err = 0, tmpTLVsize=279 [11:24:47]tlvbuf is 001BB590 [11:24:47]SAM_PROTO_ClearQueue [11:24:47]wFMCommunicate request_size=4 [11:24:47]MH_SAM_APDU [11:24:47]CAPDU: 80 09 00 00 [11:24:47]Write to MH i2c: E2 08 00 EC 1D 80 09 00 00 00 00 00 00 7B [11:24:47]Write i2c OK [11:24:47]MH_I2C_Read... [11:24:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:47]Read from MH i2c: E2 [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: E2 03 00 [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: E2 03 00 EC 1D 00 90 00 7D [11:24:47]RAPDU: 90 00 [11:24:47]wFMCommunicate OK [11:24:47]SAM_PROTO_ClearQueue done [11:24:47]KKMCreateOFDPacket [11:24:47]OFDProtocolAddRootSTLVToBuf [11:24:47]FM_MakeSignedData [11:24:47]FM_MakeSignedData [11:24:47]SAM_PROTO_SignData [11:24:47]wFMCommunicate request_size=4 [11:24:47]MH_SAM_APDU [11:24:47]CAPDU: 80 0D 01 02 [11:24:47]Write to MH i2c: E2 08 00 ED 1D 80 0D 01 02 00 00 00 00 83 [11:24:47]Write i2c OK [11:24:47]MH_I2C_Read... [11:24:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:47]Read from MH i2c: E2 [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: E2 03 00 [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: E2 03 00 ED 1D 00 90 00 7E [11:24:47]RAPDU: 90 00 [11:24:47]wFMCommunicate OK [11:24:47]wFMCommunicate request_size=255 [11:24:47]MH_SAM_APDU [11:24:47]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 0D 00 00 00 00 00 37 04 06 00 7C 1A 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 77 00 00 00 F4 03 04 00 80 2A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 B1 CE 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 [11:24:47]Write to MH i2c: E2 02 01 EE 1D 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 0D 00 00 00 00 00 37 04 06 00 7C 1A 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 77 00 00 00 F4 03 04 00 80 2A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 B1 CE 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 00 00 F4 [11:24:47]Write i2c OK [11:24:47]MH_I2C_Read... [11:24:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:47]Read from MH i2c: E2 [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: E2 03 00 [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: E2 03 00 EE 1D 00 90 00 7F [11:24:47]RAPDU: 90 00 [11:24:47]wFMCommunicate OK [11:24:47]wFMCommunicate request_size=38 [11:24:47]MH_SAM_APDU [11:24:47]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B2 CE 01 00 35 04 06 00 52 E5 ED 99 6B 16 [11:24:47]Write to MH i2c: E2 29 00 EF 1D 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B2 CE 01 00 35 04 06 00 52 E5 ED 99 6B 16 00 00 D6 [11:24:47]Write i2c OK [11:24:47]MH_I2C_Read... [11:24:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:47]Read from MH i2c: E2 [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: E2 03 00 [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: E2 03 00 EF 1D 00 90 00 80 [11:24:47]RAPDU: 90 00 [11:24:47]wFMCommunicate OK [11:24:47]wFMCommunicate request_size=4 [11:24:47]MH_SAM_APDU [11:24:47]CAPDU: 80 0D 03 02 [11:24:47]Write to MH i2c: E2 08 00 F0 1D 80 0D 03 02 00 00 00 00 88 [11:24:47]Write i2c OK [11:24:47]MH_I2C_Read... [11:24:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:47]Read from MH i2c: E2 [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: E2 0B 00 [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: E2 0B 00 F0 1D 00 0B 96 1A 8F 67 02 38 16 90 00 8A [11:24:47]RAPDU: 0B 96 1A 8F 67 02 38 16 90 00 [11:24:47]wFMCommunicate OK [11:24:47]SAM_PROTO_SignData done [11:24:47]FM_MakeSignedData done [11:24:47]CreateOFDProtocolMessage [11:24:47]wFMCommunicate request_size=4 [11:24:47]MH_SAM_APDU [11:24:47]CAPDU: 80 11 00 00 [11:24:47]Write to MH i2c: E2 08 00 F1 1D 80 11 00 00 00 00 00 00 88 [11:24:47]Write i2c OK [11:24:47]MH_I2C_Read... [11:24:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:48]Read from MH i2c: E2 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: E2 17 00 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: E2 17 00 F1 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E3 [11:24:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:24:48]wFMCommunicate OK [11:24:48]CreateOFDProtocolMessage done [11:24:48]OFDSenderStorePacket 118450 [11:24:48]StoreOFDPacket docnum=118450 [11:24:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 55 31 23 01 AA F1 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 0D 00 00 00 00 00 37 04 06 00 7C 1A 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 77 00 00 00 F4 03 04 00 80 2A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 B1 CE 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B2 CE 01 00 35 04 06 00 52 E5 ED 99 6B 16 0B 96 1A 8F 67 02 38 16 [11:24:48]CheckFolder [11:24:48]dirname=/storage/ofd_packets [11:24:48]CheckFolder done [11:24:48]ProducePacketName [11:24:48]name=ofd_packets/00118450 [11:24:48]NVStorageSaveData ofd_packets/00118450 [11:24:48]File name is /storage/ofd_packets/00118450 [11:24:48]Write 329 bytes [11:24:48]NVStorageSaveData done [11:24:48]OFDSenderStorePacket done [11:24:48]KKMCreateOFDPacket done [11:24:48]NVStorageSaveData kkm_last_timestamp [11:24:48]File name is /storage/kkm_last_timestamp [11:24:48]Write 4 bytes [11:24:48]NVStorageSaveData done [11:24:48]ExternCall_PrintAddStr [11:24:48]wPrintStart [11:24:48]Write to MH i2c: 01 00 00 F2 1D 0F [11:24:48]Write i2c OK [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: 01 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: 01 07 00 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: 01 07 00 F2 1D 00 00 00 00 00 FF 0F 24 [11:24:48]RasterBufferAndPrint [11:24:48]line Счет N : (1)949325 [11:24:48]line ИНН: 02508201610067 [11:24:48]line Контрольно-Кассовый Чек [11:24:48]line ВОЗВРАТ ПРОДАЖИ [11:24:48]line ТРК (МРК, ГНК) : 41 [11:24:48]line Товар: 2710124130 [11:24:48]line Аи-92-К-4 [11:24:48]line 3.540 * 67.80 [11:24:48]line = 240.01 [11:24:48]line НДС 12% НСП 1% [11:24:48]line > о реализуемом товаре [11:24:48]line ОКРУГЛЕНИЕ: -0.01 [11:24:48]line ИТОГО: 240.00 [11:24:48]line НСП 1% : 2.12 [11:24:48]line НДС 12% : 25.49 [11:24:48]line Наличными: 240.00 [11:24:48]line Безнал.: 0.00 [11:24:48]line Место: АЗС № 134 "Партнер Нефть" [11:24:48]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:24:48]line СНО: Общий режим [11:24:48]line Чек 119 28.07.2024 11:24 [11:24:48]line Смена: 433 ФФД: 1.0 [11:24:48]line ЗНМ: 0300000044 [11:24:48]line РНМ: 0000000000092660 [11:24:48]line Версия ККМ: 001 [11:24:48]line ФД осн.: 118449 [11:24:48]line ФМ осн.: 0000000000874939 [11:24:48]line ФМ: 0000000000874939 [11:24:48]line ФД: 118450 [11:24:48]line ФПД: 91147487243030 [11:24:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112448&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118450&fm=91147487243030&tin=02508201610067®Number=0000000000092660&sum=24000 [11:24:48]OFD Sender: Processing packet 118450 [packets to send 86, broken 85] [11:24:48]ProducePacketName [11:24:48]name=ofd_packets/00118450 [11:24:48]OFD Sender: To server: pG, [11:24:48]CommunicateWithHost lk.salyk.kg:30040 [11:24:48]ConnectInit lk.salyk.kg [11:24:48]written 0, free lines is 4095 [11:24:48]Connected sock=10 [11:24: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 39 33 39 2B 01 00 00 55 31 23 01 AA F1 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 0D 00 00 00 00 00 37 04 06 00 7C 1A 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 77 00 00 00 F4 03 04 00 80 2A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 B1 CE 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B2 CE 01 00 35 04 06 00 52 E5 ED 99 6B 16 0B 96 1A 8F 67 02 38 16 [11:24:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EE A2 47 00 FD 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 39 33 39 10 04 04 00 B2 CE 01 00 F4 03 04 00 11 D8 A5 66 B6 04 01 00 00 8F 97 DB 85 31 83 86 F4 [11:24:48]CommunicateWithHost err = 0 [11:24:48]CheckOFDResponse [11:24:48]1017 (14) - 77093643461234 [11:24:48]1041 (16) - 0000000000874939 [11:24:48]1040 (4) - 118450 [11:24:48]1012 (4) - 28.07.2024 05:33 [11:24:48]1206 (1) - 0 [11:24:48]OFD Sender: Remove packet 118450 [11:24:48]ProducePacketName [11:24:48]name=ofd_packets/00118450 [11:24:48]NVStorageDeleteData [11:24:48]Write to MH i2c: 01 00 00 1C 1E 3A [11:24:48]Write i2c OK [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: 01 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: 01 07 00 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: 01 07 00 1C 1E 00 00 00 00 00 F6 0C 43 [11:24:48]RasterBufferAndPrint [11:24:48]line [11:24:48]line [11:24:48]line [11:24:48]line [11:24:48]line [11:24:48]written 0, free lines is 3324 [11:24:48]MH_Cut [11:24:48]Write to MH i2c: D1 01 00 23 1E 01 13 [11:24:48]Write i2c OK [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: D1 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: D1 01 00 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: D1 01 00 23 1E 00 12 [11:24:48]Write to MH i2c: 01 00 00 24 1E 42 [11:24:48]Write i2c OK [11:24:48]MH_I2C_Read... [11:24:49]OFD Sender: No OFD packet to send [11:24:49]*** Cut start [11:24:49]*** Partial cut [11:24:49]*** CUTSNS_PIN = 1 [11:24:49]*** CUTSNS_PIN = 0 [11:24:49]*** Brake cut motor [11:24:50]Read from MH i2c: 01 [11:24:50]MH_I2C_Read... [11:24:50]*** Stop cut motor [11:24:50]*** Cut end [11:24:50]Read from MH i2c: 01 07 00 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: 01 07 00 24 1E 00 00 00 00 00 FF 0F 57 [11:24:50]process_action close_receipt done [11:24:50]requested_data is exist [11:24:50]produce_requested_data [11:24:50]requested_item fm.sn is exist - process it [11:24:50]wFMCommunicate request_size=4 [11:24:50]MH_SAM_APDU [11:24:50]CAPDU: 80 11 00 00 [11:24:50]Write to MH i2c: E2 08 00 25 1E 80 11 00 00 00 00 00 00 BD [11:24:50]Write i2c OK [11:24:50]MH_I2C_Read... [11:24:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:50]Read from MH i2c: E2 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: E2 17 00 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: E2 17 00 25 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 18 [11:24:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:24:50]wFMCommunicate OK [11:24:50]requested_item fd.num is exist - process it [11:24:50]SAM_PROTO_GetFieldsCounters [11:24:50]wFMCommunicate request_size=4 [11:24:50]MH_SAM_APDU [11:24:50]CAPDU: 80 13 00 00 [11:24:50]Write to MH i2c: E2 08 00 26 1E 80 13 00 00 00 00 00 00 C0 [11:24:50]Write i2c OK [11:24:50]MH_I2C_Read... [11:24:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:50]Read from MH i2c: E2 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: E2 62 00 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: E2 62 00 26 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B2 CE 01 00 0E 04 04 00 B1 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 7F [11:24:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B2 CE 01 00 0E 04 04 00 B1 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 [11:24:50]wFMCommunicate OK [11:24:50]SAM_PROTO_GetFieldsCounters done [11:24:50]requested_item shift.num is exist - process it [11:24:50]requested_item shift.opened is exist - process it [11:24:50]req_shift_opened [11:24:50]FM_GetShiftState [11:24:50]SAM_PROTO_GetShiftState [11:24:50]wFMCommunicate request_size=4 [11:24:50]MH_SAM_APDU [11:24:50]CAPDU: 80 13 01 00 [11:24:50]Write to MH i2c: E2 08 00 27 1E 80 13 01 00 00 00 00 00 C2 [11:24:50]Write i2c OK [11:24:50]MH_I2C_Read... [11:24:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:50]Read from MH i2c: E2 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: E2 0E 00 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: E2 0E 00 27 1E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 99 [11:24:50]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:24:50]wFMCommunicate OK [11:24:50]SAM_PROTO_GetShiftState done [11:24:50]FM_GetShiftState done [11:24:50]req_shift_opened done [11:24:50]requested_item shift.open_date is exist - process it [11:24:50]req_shift_open_date [11:24:50]req_shift_open_date done [11:24:50]produce_requested_data done [11:24:50]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118450,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:24:50]process_action_free close_receipt [11:24:50]json_value_free [11:24:50]json_value_free done [11:24:50]process_json_proto returns [11:24:50]Send response to host [11:24:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118450,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:24:50]free response buf [11:24:50]execute_script done [11:24:50]execute_script returns [11:24:50]free content buf [11:24:50]Sock 9.Close socket [11:24:50]Sock 9.Thread stoped [11:24:50]accept exits with 7 [11:24:50]New connection [11:24:50]New thread 3066924388 created [11:24:50]Thread 3067067748 joined [11:24:50]Waiting for new connection... [11:24:50] Sock 7.Parse request [11:24:50]Sock 7.Check first char [11:24:50]Sock 7.First char is OK [11:24:50]request: POST /json_proto HTTP/1.0 [11:24:50]Method: POST [11:24:50]URL: /json_proto [11:24:50]Method is POST - this is cgi request [11:24:50]url: /json_proto [11:24:50]query_string will be loaded in cgi processing [11:24:50]execute_cgi json_proto POST (null) [11:24:50]execute_cgi path=json_proto method=POST [11:24:50]POST find Content-Length [11:24:50]Host: 172.17.45.7:8080 [11:24:50]Content-Length: 677 [11:24:50]Content-Type: application/json [11:24:50] [11:24:50]POST finish read [11:24:50]Found Content-Length = 677 [11:24:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.130, "sum" : 212.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 212.00, "payments": [ { "type": 0, "sum" : 212.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:50]execute_script... [11:24: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)949325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.130, "sum" : 212.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 212.00, "payments": [ { "type": 0, "sum" : 212.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:50]POST & json_proto [11:24:50]process_json_proto [11:24:50]json parsed OK: [11:24:50]protocol is kg_v1.0 [11:24:50]action value=close_receipt [11:24:50]process_action close_receipt [11:24:50]cmd_close_receipt [11:24:50]MH_GetDate [11:24:50]Write to MH i2c: F0 00 00 28 1E 35 [11:24:50]Write i2c OK [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: F0 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: F0 09 00 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: F0 09 00 28 1E 00 85 2A A6 66 90 0F 3E 66 3C [11:24:50]GetLastDocTimeStamp 1722165888 [11:24:50]current date 1722165893 [11:24:50]FM_GetShiftState [11:24:50]SAM_PROTO_GetShiftState [11:24:50]wFMCommunicate request_size=4 [11:24:50]MH_SAM_APDU [11:24:50]CAPDU: 80 13 01 00 [11:24:50]Write to MH i2c: E2 08 00 29 1E 80 13 01 00 00 00 00 00 C4 [11:24:50]Write i2c OK [11:24:50]MH_I2C_Read... [11:24:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:50]Read from MH i2c: E2 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: E2 0E 00 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: E2 0E 00 29 1E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 9B [11:24:50]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:24:50]wFMCommunicate OK [11:24:50]SAM_PROTO_GetShiftState done [11:24:50]FM_GetShiftState done [11:24:50]opened in 1722125364 [11:24:50]opened+sec_in_day 1722211764 [11:24:50]quantity*price = 21221 [11:24:50]sum+1 = 21222 [11:24:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 212.00 Внесено: 240.00 СДАЧА: 28.00 НСП 1% : 1.88 НДС 12% : 22.54 Наличными: 212.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 120 28.07.2024 11:24 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118451 ФПД: 226486442241496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112453&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118451&fm=226486442241496&tin=02508201610067®Number=0000000000092660&sum=21200 [11:24:52]StoreToDocumentArchive [11:24:52]shift 433 fd 118451 [11:24:52]save to /storage/0433/doc_00118451 [11:24:52]save last doc name /storage/0433/doc_00118451 to /storage/kkm_last_doc_name [11:24:52]save OK [11:24:52]Clear old archive folders... [11:24:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:24:52]tlvbuf is 001EFB20 [11:24:52]SAM_PROTO_ClearQueue [11:24:52]wFMCommunicate request_size=4 [11:24:52]MH_SAM_APDU [11:24:52]CAPDU: 80 09 00 00 [11:24:52]Write to MH i2c: E2 08 00 36 1E 80 09 00 00 00 00 00 00 C6 [11:24:52]Write i2c OK [11:24:52]MH_I2C_Read... [11:24:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:52]Read from MH i2c: E2 [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: E2 03 00 [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: E2 03 00 36 1E 00 90 00 C8 [11:24:52]RAPDU: 90 00 [11:24:52]wFMCommunicate OK [11:24:52]SAM_PROTO_ClearQueue done [11:24:52]KKMCreateOFDPacket [11:24:52]OFDProtocolAddRootSTLVToBuf [11:24:52]FM_MakeSignedData [11:24:52]FM_MakeSignedData [11:24:52]SAM_PROTO_SignData [11:24:52]wFMCommunicate request_size=4 [11:24:52]MH_SAM_APDU [11:24:52]CAPDU: 80 0D 01 02 [11:24:52]Write to MH i2c: E2 08 00 37 1E 80 0D 01 02 00 00 00 00 CE [11:24:52]Write i2c OK [11:24:52]MH_I2C_Read... [11:24:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:52]Read from MH i2c: E2 [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: E2 03 00 [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: E2 03 00 37 1E 00 90 00 C9 [11:24:52]RAPDU: 90 00 [11:24:52]wFMCommunicate OK [11:24:52]wFMCommunicate request_size=255 [11:24:52]MH_SAM_APDU [11:24: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 34 FF 03 08 00 03 3A 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E5 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 08 00 00 00 00 07 04 06 00 D0 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 85 2A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B3 CE 01 00 35 04 06 00 CD [11:24:52]Write to MH i2c: E2 02 01 38 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 34 FF 03 08 00 03 3A 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E5 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 08 00 00 00 00 07 04 06 00 D0 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 85 2A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B3 CE 01 00 35 04 06 00 CD 00 00 FA [11:24:52]Write i2c OK [11:24:52]MH_I2C_Read... [11:24:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:52]Read from MH i2c: E2 [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: E2 03 00 [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: E2 03 00 38 1E 00 90 00 CA [11:24:52]RAPDU: 90 00 [11:24:52]wFMCommunicate OK [11:24:52]wFMCommunicate request_size=10 [11:24:52]MH_SAM_APDU [11:24:52]CAPDU: 80 0D 02 02 05 FC FB EF AD D8 [11:24:52]Write to MH i2c: E2 0D 00 39 1E 80 0D 02 02 05 00 FC FB EF AD D8 00 00 46 [11:24:52]Write i2c OK [11:24:52]MH_I2C_Read... [11:24:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:52]Read from MH i2c: E2 [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: E2 03 00 [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: E2 03 00 39 1E 00 90 00 CB [11:24:52]RAPDU: 90 00 [11:24:52]wFMCommunicate OK [11:24:52]wFMCommunicate request_size=4 [11:24:52]MH_SAM_APDU [11:24:52]CAPDU: 80 0D 03 02 [11:24:52]Write to MH i2c: E2 08 00 3A 1E 80 0D 03 02 00 00 00 00 D3 [11:24:52]Write i2c OK [11:24:52]MH_I2C_Read... [11:24:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:52]Read from MH i2c: E2 [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: E2 0B 00 [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: E2 0B 00 3A 1E 00 60 F8 4C B1 A0 52 1C 55 90 00 8C [11:24:52]RAPDU: 60 F8 4C B1 A0 52 1C 55 90 00 [11:24:52]wFMCommunicate OK [11:24:52]SAM_PROTO_SignData done [11:24:52]FM_MakeSignedData done [11:24:52]CreateOFDProtocolMessage [11:24:52]wFMCommunicate request_size=4 [11:24:52]MH_SAM_APDU [11:24:52]CAPDU: 80 11 00 00 [11:24:52]Write to MH i2c: E2 08 00 3B 1E 80 11 00 00 00 00 00 00 D3 [11:24:52]Write i2c OK [11:24:52]MH_I2C_Read... [11:24:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:52]Read from MH i2c: E2 [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: E2 17 00 [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: E2 17 00 3B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2E [11:24:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:24:52]wFMCommunicate OK [11:24:52]CreateOFDProtocolMessage done [11:24:52]OFDSenderStorePacket 118451 [11:24:52]StoreOFDPacket docnum=118451 [11:24:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 73 AC 07 01 FD 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3A 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E5 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 08 00 00 00 00 07 04 06 00 D0 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 85 2A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B3 CE 01 00 35 04 06 00 CD FC FB EF AD D8 60 F8 4C B1 A0 52 1C 55 [11:24:52]CheckFolder [11:24:52]dirname=/storage/ofd_packets [11:24:52]CheckFolder done [11:24:52]ProducePacketName [11:24:52]name=ofd_packets/00118451 [11:24:52]NVStorageSaveData ofd_packets/00118451 [11:24:52]File name is /storage/ofd_packets/00118451 [11:24:52]Write 301 bytes [11:24:52]NVStorageSaveData done [11:24:52]OFDSenderStorePacket done [11:24:52]KKMCreateOFDPacket done [11:24:52]NVStorageSaveData kkm_last_timestamp [11:24:52]File name is /storage/kkm_last_timestamp [11:24:52]Write 4 bytes [11:24:52]NVStorageSaveData done [11:24:52]ExternCall_PrintAddStr [11:24:52]wPrintStart [11:24:52]Write to MH i2c: 01 00 00 3C 1E 5A [11:24:52]Write i2c OK [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: 01 [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: 01 07 00 [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: 01 07 00 3C 1E 00 00 00 00 00 FF 0F 6F [11:24:52]RasterBufferAndPrint [11:24:52]line Счет N : (1)949325 [11:24:52]line ИНН: 02508201610067 [11:24:52]line Контрольно-Кассовый Чек [11:24:52]line ПРОДАЖА [11:24:52]line ТРК (МРК, ГНК) : 41 [11:24:52]line Товар: 2710124130 [11:24:52]line Аи-92-К-4 [11:24:52]line 3.130 * 67.80 [11:24:52]line = 212.21 [11:24:52]line НДС 12% НСП 1% [11:24:52]line > о реализуемом товаре [11:24:52]line ОКРУГЛЕНИЕ: -0.21 [11:24:52]line ИТОГО: 212.00 [11:24:52]line Внесено: 240.00 [11:24:52]line СДАЧА: 28.00 [11:24:52]line НСП 1% : 1.88 [11:24:52]line НДС 12% : 22.54 [11:24:52]line Наличными: 212.00 [11:24:52]line Безнал.: 0.00 [11:24:52]line Место: АЗС № 134 "Партнер Нефть" [11:24:52]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:24:52]line СНО: Общий режим [11:24:52]line Чек 120 28.07.2024 11:24 [11:24:52]line Смена: 433 ФФД: 1.0 [11:24:52]line ЗНМ: 0300000044 [11:24:52]line РНМ: 0000000000092660 [11:24:52]line Версия ККМ: 001 [11:24:52]line ФМ: 0000000000874939 [11:24:52]line ФД: 118451 [11:24:52]line ФПД: 226486442241496 [11:24:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112453&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118451&fm=226486442241496&tin=02508201610067®Number=0000000000092660&sum=21200 [11:24:53]OFD Sender: Processing packet 118451 [packets to send 86, broken 85] [11:24:53]ProducePacketName [11:24:53]name=ofd_packets/00118451 [11:24:53]OFD Sender: To server: pG, [11:24:53]CommunicateWithHost lk.salyk.kg:30040 [11:24:53]ConnectInit lk.salyk.kg [11:24:53]written 0, free lines is 4095 [11:24:53]Connected sock=6 [11:24:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 73 AC 07 01 FD 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3A 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E5 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 08 00 00 00 00 07 04 06 00 D0 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 85 2A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B3 CE 01 00 35 04 06 00 CD FC FB EF AD D8 60 F8 4C B1 A0 52 1C 55 [11:24:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 62 8D 47 00 87 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B3 CE 01 00 F4 03 04 00 16 D8 A5 66 B6 04 01 00 00 76 E6 44 09 3F 19 7D F5 [11:24:53]CommunicateWithHost err = 0 [11:24:53]CheckOFDResponse [11:24:53]1017 (14) - 77093643461234 [11:24:53]1041 (16) - 0000000000874939 [11:24:53]1040 (4) - 118451 [11:24:53]1012 (4) - 28.07.2024 05:33 [11:24:53]1206 (1) - 0 [11:24:53]OFD Sender: Remove packet 118451 [11:24:53]ProducePacketName [11:24:53]name=ofd_packets/00118451 [11:24:53]NVStorageDeleteData [11:24:53]Write to MH i2c: 01 00 00 66 1E 84 [11:24:53]Write i2c OK [11:24:53]MH_I2C_Read... [11:24:53]Read from MH i2c: 01 [11:24:53]MH_I2C_Read... [11:24:53]Read from MH i2c: 01 07 00 [11:24:53]MH_I2C_Read... [11:24:53]Read from MH i2c: 01 07 00 66 1E 00 00 00 00 00 F5 0C 8C [11:24:53]RasterBufferAndPrint [11:24:53]line [11:24:53]line [11:24:53]line [11:24:53]line [11:24:53]line [11:24:53]written 0, free lines is 3333 [11:24:53]MH_Cut [11:24:53]Write to MH i2c: D1 01 00 6D 1E 01 5D [11:24:53]Write i2c OK [11:24:53]MH_I2C_Read... [11:24:53]Read from MH i2c: D1 [11:24:53]MH_I2C_Read... [11:24:53]Read from MH i2c: D1 01 00 [11:24:53]MH_I2C_Read... [11:24:53]Read from MH i2c: D1 01 00 6D 1E 00 5C [11:24:53]Write to MH i2c: 01 00 00 6E 1E 8C [11:24:53]Write i2c OK [11:24:53]MH_I2C_Read... [11:24:54]OFD Sender: No OFD packet to send [11:24:54]*** Cut start [11:24:54]*** Partial cut [11:24:54]*** CUTSNS_PIN = 1 [11:24:54]*** CUTSNS_PIN = 0 [11:24:54]*** Brake cut motor [11:24:54]Read from MH i2c: 01 [11:24:54]MH_I2C_Read... [11:24:54]*** Stop cut motor [11:24:54]*** Cut end [11:24:54]Read from MH i2c: 01 07 00 [11:24:54]MH_I2C_Read... [11:24:54]Read from MH i2c: 01 07 00 6E 1E 00 00 00 00 00 FF 0F A1 [11:24:54]process_action close_receipt done [11:24:54]requested_data is exist [11:24:54]produce_requested_data [11:24:54]requested_item fm.sn is exist - process it [11:24:54]wFMCommunicate request_size=4 [11:24:54]MH_SAM_APDU [11:24:54]CAPDU: 80 11 00 00 [11:24:54]Write to MH i2c: E2 08 00 6F 1E 80 11 00 00 00 00 00 00 07 [11:24:54]Write i2c OK [11:24:54]MH_I2C_Read... [11:24:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:55]Read from MH i2c: E2 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: E2 17 00 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: E2 17 00 6F 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 62 [11:24:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:24:55]wFMCommunicate OK [11:24:55]requested_item fd.num is exist - process it [11:24:55]SAM_PROTO_GetFieldsCounters [11:24:55]wFMCommunicate request_size=4 [11:24:55]MH_SAM_APDU [11:24:55]CAPDU: 80 13 00 00 [11:24:55]Write to MH i2c: E2 08 00 70 1E 80 13 00 00 00 00 00 00 0A [11:24:55]Write i2c OK [11:24:55]MH_I2C_Read... [11:24:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:55]Read from MH i2c: E2 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: E2 62 00 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: E2 62 00 70 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B3 CE 01 00 0E 04 04 00 B1 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 CD [11:24:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B3 CE 01 00 0E 04 04 00 B1 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 [11:24:55]wFMCommunicate OK [11:24:55]SAM_PROTO_GetFieldsCounters done [11:24:55]requested_item shift.num is exist - process it [11:24:55]requested_item shift.opened is exist - process it [11:24:55]req_shift_opened [11:24:55]FM_GetShiftState [11:24:55]SAM_PROTO_GetShiftState [11:24:55]wFMCommunicate request_size=4 [11:24:55]MH_SAM_APDU [11:24:55]CAPDU: 80 13 01 00 [11:24:55]Write to MH i2c: E2 08 00 71 1E 80 13 01 00 00 00 00 00 0C [11:24:55]Write i2c OK [11:24:55]MH_I2C_Read... [11:24:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:55]Read from MH i2c: E2 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: E2 0E 00 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: E2 0E 00 71 1E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 E3 [11:24:55]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:24:55]wFMCommunicate OK [11:24:55]SAM_PROTO_GetShiftState done [11:24:55]FM_GetShiftState done [11:24:55]req_shift_opened done [11:24:55]requested_item shift.open_date is exist - process it [11:24:55]req_shift_open_date [11:24:55]req_shift_open_date done [11:24:55]produce_requested_data done [11:24:55]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118451,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:24:55]process_action_free close_receipt [11:24:55]json_value_free [11:24:55]json_value_free done [11:24:55]process_json_proto returns [11:24:55]Send response to host [11:24:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118451,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:24:55]free response buf [11:24:55]execute_script done [11:24:55]execute_script returns [11:24:55]free content buf [11:24:55]Sock 7.Close socket [11:24:55]Sock 7.Thread stoped [11:24:59]OFD Sender: No OFD packet to send [11:25:04]OFD Sender: No OFD packet to send [11:25:09]OFD Sender: No OFD packet to send [11:25:14]OFD Sender: No OFD packet to send [11:25:19]OFD Sender: No OFD packet to send [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:34]OFD Sender: No OFD packet to send [11:25:39]OFD Sender: No OFD packet to send [11:25:44]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:31]accept exits with 9 [11:27:31]New connection [11:27:31]New thread 3067067748 created [11:27:31]Thread 3066924388 joined [11:27:31]Waiting for new connection... [11:27:31] Sock 9.Parse request [11:27:31]Sock 9.Check first char [11:27:31]Sock 9.First char is OK [11:27:31]request: POST /json_proto HTTP/1.0 [11:27:31]Method: POST [11:27:31]URL: /json_proto [11:27:31]Method is POST - this is cgi request [11:27:31]url: /json_proto [11:27:31]query_string will be loaded in cgi processing [11:27:31]execute_cgi json_proto POST (null) [11:27:31]execute_cgi path=json_proto method=POST [11:27:31]POST find Content-Length [11:27:31]Host: 172.17.45.7:8080 [11:27:31]Content-Length: 801 [11:27:31]Content-Type: application/json [11:27:31] [11:27:31]POST finish read [11:27:31]Found Content-Length = 801 [11:27:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 100.000, "sum" : 7620.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" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:31]execute_script... [11:27: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)949324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 100.000, "sum" : 7620.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" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:31]POST & json_proto [11:27:31]process_json_proto [11:27:31]json parsed OK: [11:27:31]protocol is kg_v1.0 [11:27:31]action value=close_receipt [11:27:31]process_action close_receipt [11:27:31]cmd_close_receipt [11:27:31]MH_GetDate [11:27:31]Write to MH i2c: F0 00 00 72 1E 7F [11:27:31]Write i2c OK [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: F0 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: F0 09 00 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: F0 09 00 72 1E 00 26 2B A6 66 90 0F 3E 66 28 [11:27:31]GetLastDocTimeStamp 1722165893 [11:27:31]current date 1722166054 [11:27:31]FM_GetShiftState [11:27:31]SAM_PROTO_GetShiftState [11:27:31]wFMCommunicate request_size=4 [11:27:31]MH_SAM_APDU [11:27:31]CAPDU: 80 13 01 00 [11:27:31]Write to MH i2c: E2 08 00 73 1E 80 13 01 00 00 00 00 00 0E [11:27:31]Write i2c OK [11:27:31]MH_I2C_Read... [11:27:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:31]Read from MH i2c: E2 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 0E 00 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 0E 00 73 1E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 E5 [11:27:31]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:27:31]wFMCommunicate OK [11:27:31]SAM_PROTO_GetShiftState done [11:27:31]FM_GetShiftState done [11:27:31]opened in 1722125364 [11:27:31]opened+sec_in_day 1722211764 [11:27:31]quantity*price = 762000 [11:27:31]sum+1 = 762001 [11:27:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7620.00 НСП 1% : 67.43 НДС 12% : 809.20 Наличными: 0.00 Безнал.: 7620.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 121 28.07.2024 11:27 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118452 ФПД: 12966003933584 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112734&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118452&fm=12966003933584&tin=02508201610067®Number=0000000000092660&sum=762000 [11:27:32]StoreToDocumentArchive [11:27:32]shift 433 fd 118452 [11:27:32]save to /storage/0433/doc_00118452 [11:27:32]save last doc name /storage/0433/doc_00118452 to /storage/kkm_last_doc_name [11:27:32]save OK [11:27:32]Clear old archive folders... [11:27:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:27:32]tlvbuf is 001EF6A0 [11:27:32]SAM_PROTO_ClearQueue [11:27:32]wFMCommunicate request_size=4 [11:27:32]MH_SAM_APDU [11:27:32]CAPDU: 80 09 00 00 [11:27:32]Write to MH i2c: E2 08 00 80 1E 80 09 00 00 00 00 00 00 10 [11:27:32]Write i2c OK [11:27:32]MH_I2C_Read... [11:27:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:32]Read from MH i2c: E2 [11:27:32]MH_I2C_Read... [11:27:32]Read from MH i2c: E2 03 00 [11:27:32]MH_I2C_Read... [11:27:32]Read from MH i2c: E2 03 00 80 1E 00 90 00 12 [11:27:32]RAPDU: 90 00 [11:27:32]wFMCommunicate OK [11:27:32]SAM_PROTO_ClearQueue done [11:27:32]KKMCreateOFDPacket [11:27:32]OFDProtocolAddRootSTLVToBuf [11:27:32]FM_MakeSignedData [11:27:32]FM_MakeSignedData [11:27:32]SAM_PROTO_SignData [11:27:32]wFMCommunicate request_size=4 [11:27:32]MH_SAM_APDU [11:27:32]CAPDU: 80 0D 01 02 [11:27:32]Write to MH i2c: E2 08 00 81 1E 80 0D 01 02 00 00 00 00 18 [11:27:32]Write i2c OK [11:27:32]MH_I2C_Read... [11:27:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:32]Read from MH i2c: E2 [11:27:32]MH_I2C_Read... [11:27:32]Read from MH i2c: E2 03 00 [11:27:32]MH_I2C_Read... [11:27:32]Read from MH i2c: E2 03 00 81 1E 00 90 00 13 [11:27:32]RAPDU: 90 00 [11:27:32]wFMCommunicate OK [11:27:32]wFMCommunicate request_size=255 [11:27:32]MH_SAM_APDU [11:27:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 26 2B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B4 CE 01 00 35 04 06 00 0B CA E2 0F [11:27:32]Write to MH i2c: E2 02 01 82 1E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 26 2B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B4 CE 01 00 35 04 06 00 0B CA E2 0F 00 00 D0 [11:27:32]Write i2c OK [11:27:32]MH_I2C_Read... [11:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:33]Read from MH i2c: E2 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 03 00 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 03 00 82 1E 00 90 00 14 [11:27:33]RAPDU: 90 00 [11:27:33]wFMCommunicate OK [11:27:33]wFMCommunicate request_size=7 [11:27:33]MH_SAM_APDU [11:27:33]CAPDU: 80 0D 02 02 02 01 90 [11:27:33]Write to MH i2c: E2 0A 00 83 1E 80 0D 02 02 02 00 01 90 00 00 B0 [11:27:33]Write i2c OK [11:27:33]MH_I2C_Read... [11:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:33]Read from MH i2c: E2 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 03 00 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 03 00 83 1E 00 90 00 15 [11:27:33]RAPDU: 90 00 [11:27:33]wFMCommunicate OK [11:27:33]wFMCommunicate request_size=4 [11:27:33]MH_SAM_APDU [11:27:33]CAPDU: 80 0D 03 02 [11:27:33]Write to MH i2c: E2 08 00 84 1E 80 0D 03 02 00 00 00 00 1D [11:27:33]Write i2c OK [11:27:33]MH_I2C_Read... [11:27:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:33]Read from MH i2c: E2 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 0B 00 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 0B 00 84 1E 00 99 48 5A 15 B6 42 0B 2E 90 00 9F [11:27:33]RAPDU: 99 48 5A 15 B6 42 0B 2E 90 00 [11:27:33]wFMCommunicate OK [11:27:33]SAM_PROTO_SignData done [11:27:33]FM_MakeSignedData done [11:27:33]CreateOFDProtocolMessage [11:27:33]wFMCommunicate request_size=4 [11:27:33]MH_SAM_APDU [11:27:33]CAPDU: 80 11 00 00 [11:27:33]Write to MH i2c: E2 08 00 85 1E 80 11 00 00 00 00 00 00 1D [11:27:33]Write i2c OK [11:27:33]MH_I2C_Read... [11:27:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:33]Read from MH i2c: E2 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 17 00 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 17 00 85 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 78 [11:27:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:27:33]wFMCommunicate OK [11:27:33]CreateOFDProtocolMessage done [11:27:33]OFDSenderStorePacket 118452 [11:27:33]StoreOFDPacket docnum=118452 [11:27:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 05 AB 04 01 C3 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 26 2B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B4 CE 01 00 35 04 06 00 0B CA E2 0F 01 90 99 48 5A 15 B6 42 0B 2E [11:27:33]CheckFolder [11:27:33]dirname=/storage/ofd_packets [11:27:33]CheckFolder done [11:27:33]ProducePacketName [11:27:33]name=ofd_packets/00118452 [11:27:33]NVStorageSaveData ofd_packets/00118452 [11:27:33]File name is /storage/ofd_packets/00118452 [11:27:33]Write 298 bytes [11:27:33]NVStorageSaveData done [11:27:33]OFDSenderStorePacket done [11:27:33]KKMCreateOFDPacket done [11:27:33]NVStorageSaveData kkm_last_timestamp [11:27:33]File name is /storage/kkm_last_timestamp [11:27:33]Write 4 bytes [11:27:33]NVStorageSaveData done [11:27:33]ExternCall_PrintAddStr [11:27:33]wPrintStart [11:27:33]Write to MH i2c: 01 00 00 86 1E A4 [11:27:33]Write i2c OK [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: 01 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: 01 07 00 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: 01 07 00 86 1E 00 00 00 00 00 FF 0F B9 [11:27:33]RasterBufferAndPrint [11:27:33]line Счет N : (1)949324 [11:27:33]line ИНН: 02508201610067 [11:27:33]line Контрольно-Кассовый Чек [11:27:33]line ПРОДАЖА [11:27:33]line ТРК (МРК, ГНК) : 11 [11:27:33]line Товар: 2710194800 [11:27:33]line ДТ-К-5 [11:27:33]line 100.000 * 76.20 [11:27:33]line = 7620.00 [11:27:33]line НДС 12% НСП 1% [11:27:33]line > о реализуемом товаре [11:27:33]line ИТОГО: 7620.00 [11:27:33]line НСП 1% : 67.43 [11:27:33]line НДС 12% : 809.20 [11:27:33]line Наличными: 0.00 [11:27:33]line Безнал.: 7620.00 [11:27:33]line Место: АЗС № 134 "Партнер Нефть" [11:27:33]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:27:33]line СНО: Общий режим [11:27:33]line Чек 121 28.07.2024 11:27 [11:27:33]line Смена: 433 ФФД: 1.0 [11:27:33]line ЗНМ: 0300000044 [11:27:33]line РНМ: 0000000000092660 [11:27:33]line Версия ККМ: 001 [11:27:33]line Платежная система: O! деньги [11:27:33]line ФМ: 0000000000874939 [11:27:33]line ФД: 118452 [11:27:33]line ФПД: 12966003933584 [11:27:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112734&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118452&fm=12966003933584&tin=02508201610067®Number=0000000000092660&sum=762000 [11:27:33]OFD Sender: Processing packet 118452 [packets to send 86, broken 85] [11:27:33]ProducePacketName [11:27:33]name=ofd_packets/00118452 [11:27:33]OFD Sender: To server: pG, [11:27:33]CommunicateWithHost lk.salyk.kg:30040 [11:27:33]ConnectInit lk.salyk.kg [11:27:33]written 0, free lines is 4095 [11:27:33]Connected sock=10 [11:27:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 05 AB 04 01 C3 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 26 2B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B4 CE 01 00 35 04 06 00 0B CA E2 0F 01 90 99 48 5A 15 B6 42 0B 2E [11:27:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AD 09 47 00 E0 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B4 CE 01 00 F4 03 04 00 B6 D8 A5 66 B6 04 01 00 00 29 93 F2 70 E2 8A B1 F7 [11:27:33]CommunicateWithHost err = 0 [11:27:33]CheckOFDResponse [11:27:33]1017 (14) - 77093643461234 [11:27:33]1041 (16) - 0000000000874939 [11:27:33]1040 (4) - 118452 [11:27:33]1012 (4) - 28.07.2024 05:35 [11:27:33]1206 (1) - 0 [11:27:33]OFD Sender: Remove packet 118452 [11:27:33]ProducePacketName [11:27:33]name=ofd_packets/00118452 [11:27:33]NVStorageDeleteData [11:27:34]Write to MH i2c: 01 00 00 AF 1E CD [11:27:34]Write i2c OK [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: 01 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: 01 07 00 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: 01 07 00 AF 1E 00 00 00 00 00 EE 0C CE [11:27:34]RasterBufferAndPrint [11:27:34]line [11:27:34]line [11:27:34]line [11:27:34]line [11:27:34]line [11:27:34]written 0, free lines is 3317 [11:27:34]MH_Cut [11:27:34]Write to MH i2c: D1 01 00 B6 1E 01 A6 [11:27:34]Write i2c OK [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: D1 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: D1 01 00 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: D1 01 00 B6 1E 00 A5 [11:27:34]Write to MH i2c: 01 00 00 B7 1E D5 [11:27:34]Write i2c OK [11:27:34]MH_I2C_Read... [11:27:34]OFD Sender: No OFD packet to send [11:27:34]*** Cut start [11:27:34]*** Partial cut [11:27:34]*** CUTSNS_PIN = 1 [11:27:34]*** CUTSNS_PIN = 0 [11:27:35]*** Brake cut motor [11:27:35]Read from MH i2c: 01 [11:27:35]MH_I2C_Read... [11:27:35]*** Stop cut motor [11:27:35]*** Cut end [11:27:35]Read from MH i2c: 01 07 00 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: 01 07 00 B7 1E 00 00 00 00 00 FF 0F EA [11:27:35]process_action close_receipt done [11:27:35]requested_data is exist [11:27:35]produce_requested_data [11:27:35]requested_item fm.sn is exist - process it [11:27:35]wFMCommunicate request_size=4 [11:27:35]MH_SAM_APDU [11:27:35]CAPDU: 80 11 00 00 [11:27:35]Write to MH i2c: E2 08 00 B8 1E 80 11 00 00 00 00 00 00 50 [11:27:35]Write i2c OK [11:27:35]MH_I2C_Read... [11:27:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:35]Read from MH i2c: E2 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: E2 17 00 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: E2 17 00 B8 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AB [11:27:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:27:35]wFMCommunicate OK [11:27:35]requested_item fd.num is exist - process it [11:27:35]SAM_PROTO_GetFieldsCounters [11:27:35]wFMCommunicate request_size=4 [11:27:35]MH_SAM_APDU [11:27:35]CAPDU: 80 13 00 00 [11:27:35]Write to MH i2c: E2 08 00 B9 1E 80 13 00 00 00 00 00 00 53 [11:27:35]Write i2c OK [11:27:35]MH_I2C_Read... [11:27:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:35]Read from MH i2c: E2 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: E2 62 00 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: E2 62 00 B9 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B4 CE 01 00 0E 04 04 00 B1 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 1A [11:27:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B4 CE 01 00 0E 04 04 00 B1 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 [11:27:35]wFMCommunicate OK [11:27:35]SAM_PROTO_GetFieldsCounters done [11:27:35]requested_item shift.num is exist - process it [11:27:35]requested_item shift.opened is exist - process it [11:27:35]req_shift_opened [11:27:35]FM_GetShiftState [11:27:35]SAM_PROTO_GetShiftState [11:27:35]wFMCommunicate request_size=4 [11:27:35]MH_SAM_APDU [11:27:35]CAPDU: 80 13 01 00 [11:27:35]Write to MH i2c: E2 08 00 BA 1E 80 13 01 00 00 00 00 00 55 [11:27:35]Write i2c OK [11:27:35]MH_I2C_Read... [11:27:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:35]Read from MH i2c: E2 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: E2 0E 00 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: E2 0E 00 BA 1E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 2C [11:27:35]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:27:35]wFMCommunicate OK [11:27:35]SAM_PROTO_GetShiftState done [11:27:35]FM_GetShiftState done [11:27:35]req_shift_opened done [11:27:35]requested_item shift.open_date is exist - process it [11:27:35]req_shift_open_date [11:27:35]req_shift_open_date done [11:27:35]produce_requested_data done [11:27:35]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118452,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:27:35]process_action_free close_receipt [11:27:35]json_value_free [11:27:35]json_value_free done [11:27:35]process_json_proto returns [11:27:35]Send response to host [11:27:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118452,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:27:35]free response buf [11:27:35]execute_script done [11:27:35]execute_script returns [11:27:35]free content buf [11:27:35]Sock 9.Close socket [11:27:35]Sock 9.Thread stoped [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:49]accept exits with 7 [11:27:49]New connection [11:27:49]New thread 3066924388 created [11:27:49]Thread 3067067748 joined [11:27:49]Waiting for new connection... [11:27:49] Sock 7.Parse request [11:27:49]Sock 7.Check first char [11:27:49]Sock 7.First char is OK [11:27:49]request: POST /json_proto HTTP/1.0 [11:27:49]Method: POST [11:27:49]URL: /json_proto [11:27:49]Method is POST - this is cgi request [11:27:49]url: /json_proto [11:27:49]query_string will be loaded in cgi processing [11:27:49]execute_cgi json_proto POST (null) [11:27:49]execute_cgi path=json_proto method=POST [11:27:49]POST find Content-Length [11:27:49]Host: 172.17.45.7:8080 [11:27:49]Content-Length: 801 [11:27:49]Content-Type: application/json [11:27:49] [11:27:49]POST finish read [11:27:49]Found Content-Length = 801 [11:27:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 100.000, "sum" : 7620.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" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:49]execute_script... [11:27:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 100.000, "sum" : 7620.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" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:49]POST & json_proto [11:27:49]process_json_proto [11:27:49]json parsed OK: [11:27:49]protocol is kg_v1.0 [11:27:49]action value=close_receipt [11:27:49]process_action close_receipt [11:27:49]cmd_close_receipt [11:27:49]MH_GetDate [11:27:49]Write to MH i2c: F0 00 00 BB 1E C8 [11:27:49]Write i2c OK [11:27:49]MH_I2C_Read... [11:27:49]Read from MH i2c: F0 [11:27:49]MH_I2C_Read... [11:27:49]Read from MH i2c: F0 09 00 [11:27:49]MH_I2C_Read... [11:27:49]Read from MH i2c: F0 09 00 BB 1E 00 38 2B A6 66 90 0F 3E 66 83 [11:27:49]GetLastDocTimeStamp 1722166054 [11:27:49]current date 1722166072 [11:27:49]FM_GetShiftState [11:27:49]SAM_PROTO_GetShiftState [11:27:49]wFMCommunicate request_size=4 [11:27:49]MH_SAM_APDU [11:27:49]CAPDU: 80 13 01 00 [11:27:49]Write to MH i2c: E2 08 00 BC 1E 80 13 01 00 00 00 00 00 57 [11:27:49]Write i2c OK [11:27:49]MH_I2C_Read... [11:27:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:49]Read from MH i2c: E2 [11:27:49]MH_I2C_Read... [11:27:49]Read from MH i2c: E2 0E 00 [11:27:49]MH_I2C_Read... [11:27:49]Read from MH i2c: E2 0E 00 BC 1E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 2E [11:27:49]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:27:49]wFMCommunicate OK [11:27:49]SAM_PROTO_GetShiftState done [11:27:49]FM_GetShiftState done [11:27:49]opened in 1722125364 [11:27:49]opened+sec_in_day 1722211764 [11:27:49]quantity*price = 762000 [11:27:49]sum+1 = 762001 [11:27:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7620.00 НСП 1% : 67.43 НДС 12% : 809.20 Наличными: 0.00 Безнал.: 7620.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 122 28.07.2024 11:27 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118453 ФПД: 20839051523114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112752&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118453&fm=20839051523114&tin=02508201610067®Number=0000000000092660&sum=762000 [11:27:51]StoreToDocumentArchive [11:27:51]shift 433 fd 118453 [11:27:51]save to /storage/0433/doc_00118453 [11:27:51]save last doc name /storage/0433/doc_00118453 to /storage/kkm_last_doc_name [11:27:51]save OK [11:27:51]Clear old archive folders... [11:27:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:27:51]tlvbuf is 0012CAA0 [11:27:51]SAM_PROTO_ClearQueue [11:27:51]wFMCommunicate request_size=4 [11:27:51]MH_SAM_APDU [11:27:51]CAPDU: 80 09 00 00 [11:27:51]Write to MH i2c: E2 08 00 C9 1E 80 09 00 00 00 00 00 00 59 [11:27:51]Write i2c OK [11:27:51]MH_I2C_Read... [11:27:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:51]Read from MH i2c: E2 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 03 00 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 03 00 C9 1E 00 90 00 5B [11:27:51]RAPDU: 90 00 [11:27:51]wFMCommunicate OK [11:27:51]SAM_PROTO_ClearQueue done [11:27:51]KKMCreateOFDPacket [11:27:51]OFDProtocolAddRootSTLVToBuf [11:27:51]FM_MakeSignedData [11:27:51]FM_MakeSignedData [11:27:51]SAM_PROTO_SignData [11:27:51]wFMCommunicate request_size=4 [11:27:51]MH_SAM_APDU [11:27:51]CAPDU: 80 0D 01 02 [11:27:51]Write to MH i2c: E2 08 00 CA 1E 80 0D 01 02 00 00 00 00 61 [11:27:51]Write i2c OK [11:27:51]MH_I2C_Read... [11:27:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:51]Read from MH i2c: E2 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 03 00 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 03 00 CA 1E 00 90 00 5C [11:27:51]RAPDU: 90 00 [11:27:51]wFMCommunicate OK [11:27:51]wFMCommunicate request_size=255 [11:27:51]MH_SAM_APDU [11:27:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 38 2B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B5 CE 01 00 35 04 06 00 12 F3 F8 43 [11:27:51]Write to MH i2c: E2 02 01 CB 1E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 38 2B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B5 CE 01 00 35 04 06 00 12 F3 F8 43 00 00 A7 [11:27:51]Write i2c OK [11:27:51]MH_I2C_Read... [11:27:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:51]Read from MH i2c: E2 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 03 00 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 03 00 CB 1E 00 90 00 5D [11:27:51]RAPDU: 90 00 [11:27:51]wFMCommunicate OK [11:27:51]wFMCommunicate request_size=7 [11:27:51]MH_SAM_APDU [11:27:51]CAPDU: 80 0D 02 02 02 74 2A [11:27:51]Write to MH i2c: E2 0A 00 CC 1E 80 0D 02 02 02 00 74 2A 00 00 06 [11:27:51]Write i2c OK [11:27:51]MH_I2C_Read... [11:27:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:51]Read from MH i2c: E2 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 03 00 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 03 00 CC 1E 00 90 00 5E [11:27:51]RAPDU: 90 00 [11:27:51]wFMCommunicate OK [11:27:51]wFMCommunicate request_size=4 [11:27:51]MH_SAM_APDU [11:27:51]CAPDU: 80 0D 03 02 [11:27:51]Write to MH i2c: E2 08 00 CD 1E 80 0D 03 02 00 00 00 00 66 [11:27:51]Write i2c OK [11:27:51]MH_I2C_Read... [11:27:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:51]Read from MH i2c: E2 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 0B 00 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 0B 00 CD 1E 00 B9 FE 92 94 EB C0 74 6D 90 00 D0 [11:27:51]RAPDU: B9 FE 92 94 EB C0 74 6D 90 00 [11:27:51]wFMCommunicate OK [11:27:51]SAM_PROTO_SignData done [11:27:51]FM_MakeSignedData done [11:27:51]CreateOFDProtocolMessage [11:27:51]wFMCommunicate request_size=4 [11:27:51]MH_SAM_APDU [11:27:51]CAPDU: 80 11 00 00 [11:27:51]Write to MH i2c: E2 08 00 CE 1E 80 11 00 00 00 00 00 00 66 [11:27:51]Write i2c OK [11:27:51]MH_I2C_Read... [11:27:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:51]Read from MH i2c: E2 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 17 00 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 17 00 CE 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C1 [11:27:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:27:51]wFMCommunicate OK [11:27:51]CreateOFDProtocolMessage done [11:27:51]OFDSenderStorePacket 118453 [11:27:51]StoreOFDPacket docnum=118453 [11:27:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 A8 E2 04 01 CA 41 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 38 2B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B5 CE 01 00 35 04 06 00 12 F3 F8 43 74 2A B9 FE 92 94 EB C0 74 6D [11:27:51]CheckFolder [11:27:51]dirname=/storage/ofd_packets [11:27:51]CheckFolder done [11:27:51]ProducePacketName [11:27:51]name=ofd_packets/00118453 [11:27:51]NVStorageSaveData ofd_packets/00118453 [11:27:51]File name is /storage/ofd_packets/00118453 [11:27:51]Write 298 bytes [11:27:51]NVStorageSaveData done [11:27:51]OFDSenderStorePacket done [11:27:51]KKMCreateOFDPacket done [11:27:51]NVStorageSaveData kkm_last_timestamp [11:27:51]File name is /storage/kkm_last_timestamp [11:27:51]Write 4 bytes [11:27:51]NVStorageSaveData done [11:27:51]ExternCall_PrintAddStr [11:27:51]wPrintStart [11:27:51]Write to MH i2c: 01 00 00 CF 1E ED [11:27:51]Write i2c OK [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: 01 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: 01 07 00 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: 01 07 00 CF 1E 00 00 00 00 00 FF 0F 02 [11:27:51]RasterBufferAndPrint [11:27:51]line Счет N : (1)949323 [11:27:51]line ИНН: 02508201610067 [11:27:51]line Контрольно-Кассовый Чек [11:27:51]line ПРОДАЖА [11:27:51]line ТРК (МРК, ГНК) : 21 [11:27:51]line Товар: 2710194800 [11:27:51]line ДТ-К-5 [11:27:51]line 100.000 * 76.20 [11:27:51]line = 7620.00 [11:27:51]line НДС 12% НСП 1% [11:27:51]line > о реализуемом товаре [11:27:51]line ИТОГО: 7620.00 [11:27:51]line НСП 1% : 67.43 [11:27:51]line НДС 12% : 809.20 [11:27:51]line Наличными: 0.00 [11:27:51]line Безнал.: 7620.00 [11:27:51]line Место: АЗС № 134 "Партнер Нефть" [11:27:51]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:27:51]line СНО: Общий режим [11:27:51]line Чек 122 28.07.2024 11:27 [11:27:51]line Смена: 433 ФФД: 1.0 [11:27:51]line ЗНМ: 0300000044 [11:27:51]line РНМ: 0000000000092660 [11:27:51]line Версия ККМ: 001 [11:27:51]line Платежная система: O! деньги [11:27:51]line ФМ: 0000000000874939 [11:27:51]line ФД: 118453 [11:27:51]line ФПД: 20839051523114 [11:27:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112752&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118453&fm=20839051523114&tin=02508201610067®Number=0000000000092660&sum=762000 [11:27:51]OFD Sender: Processing packet 118453 [packets to send 86, broken 85] [11:27:51]ProducePacketName [11:27:51]name=ofd_packets/00118453 [11:27:51]OFD Sender: To server: pG, [11:27:51]CommunicateWithHost lk.salyk.kg:30040 [11:27:51]ConnectInit lk.salyk.kg [11:27:51]written 0, free lines is 4095 [11:27:52]Connected sock=10 [11: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 39 33 39 0C 01 00 00 A8 E2 04 01 CA 41 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 38 2B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B5 CE 01 00 35 04 06 00 12 F3 F8 43 74 2A B9 FE 92 94 EB C0 74 6D [11: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 39 33 39 4F 00 00 00 2A 44 47 00 7C 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B5 CE 01 00 F4 03 04 00 C8 D8 A5 66 B6 04 01 00 00 DC DB F7 7A C3 38 BE A7 [11:27:52]CommunicateWithHost err = 0 [11:27:52]CheckOFDResponse [11:27:52]1017 (14) - 77093643461234 [11:27:52]1041 (16) - 0000000000874939 [11:27:52]1040 (4) - 118453 [11:27:52]1012 (4) - 28.07.2024 05:36 [11:27:52]1206 (1) - 0 [11:27:52]OFD Sender: Remove packet 118453 [11:27:52]ProducePacketName [11:27:52]name=ofd_packets/00118453 [11:27:52]NVStorageDeleteData [11:27:52]Write to MH i2c: 01 00 00 F8 1E 16 [11:27:52]Write i2c OK [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: 01 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: 01 07 00 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: 01 07 00 F8 1E 00 00 00 00 00 EA 0C 13 [11:27:52]RasterBufferAndPrint [11:27:52]line [11:27:52]line [11:27:52]line [11:27:52]line [11:27:52]line [11:27:52]written 0, free lines is 3312 [11:27:52]MH_Cut [11:27:52]Write to MH i2c: D1 01 00 FF 1E 01 EF [11:27:52]Write i2c OK [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: D1 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: D1 01 00 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: D1 01 00 FF 1E 00 EE [11:27:52]Write to MH i2c: 01 00 00 00 1F 1F [11:27:52]Write i2c OK [11:27:52]MH_I2C_Read... [11:27:52]OFD Sender: No OFD packet to send [11:27:53]*** Cut start [11:27:53]*** Partial cut [11:27:53]*** CUTSNS_PIN = 1 [11:27:53]*** CUTSNS_PIN = 0 [11:27:53]*** Brake cut motor [11:27:53]Read from MH i2c: 01 [11:27:53]MH_I2C_Read... [11:27:53]*** Stop cut motor [11:27:53]*** Cut end [11:27:53]Read from MH i2c: 01 07 00 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: 01 07 00 00 1F 00 00 00 00 00 FF 0F 34 [11:27:53]process_action close_receipt done [11:27:53]requested_data is exist [11:27:53]produce_requested_data [11:27:53]requested_item fm.sn is exist - process it [11:27:53]wFMCommunicate request_size=4 [11:27:53]MH_SAM_APDU [11:27:53]CAPDU: 80 11 00 00 [11:27:53]Write to MH i2c: E2 08 00 01 1F 80 11 00 00 00 00 00 00 9A [11:27:53]Write i2c OK [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 [11:27:53]MH_I2C_Read... [11:27:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:53]Read from MH i2c: E2 17 00 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 17 00 01 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F5 [11:27:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:27:53]wFMCommunicate OK [11:27:53]requested_item fd.num is exist - process it [11:27:53]SAM_PROTO_GetFieldsCounters [11:27:53]wFMCommunicate request_size=4 [11:27:53]MH_SAM_APDU [11:27:53]CAPDU: 80 13 00 00 [11:27:53]Write to MH i2c: E2 08 00 02 1F 80 13 00 00 00 00 00 00 9D [11:27:53]Write i2c OK [11:27:53]MH_I2C_Read... [11:27:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:53]Read from MH i2c: E2 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 62 00 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 62 00 02 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B5 CE 01 00 0E 04 04 00 B1 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 68 [11: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B5 CE 01 00 0E 04 04 00 B1 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 [11:27:53]wFMCommunicate OK [11:27:53]SAM_PROTO_GetFieldsCounters done [11:27:53]requested_item shift.num is exist - process it [11:27:53]requested_item shift.opened is exist - process it [11:27:53]req_shift_opened [11:27:53]FM_GetShiftState [11:27:53]SAM_PROTO_GetShiftState [11:27:53]wFMCommunicate request_size=4 [11:27:53]MH_SAM_APDU [11:27:53]CAPDU: 80 13 01 00 [11:27:53]Write to MH i2c: E2 08 00 03 1F 80 13 01 00 00 00 00 00 9F [11:27:53]Write i2c OK [11:27:53]MH_I2C_Read... [11:27:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:53]Read from MH i2c: E2 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 0E 00 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 0E 00 03 1F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 76 [11:27:53]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:27:53]wFMCommunicate OK [11:27:53]SAM_PROTO_GetShiftState done [11:27:53]FM_GetShiftState done [11:27:53]req_shift_opened done [11:27:53]requested_item shift.open_date is exist - process it [11:27:53]req_shift_open_date [11:27:53]req_shift_open_date done [11:27:53]produce_requested_data done [11:27:53]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118453,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:27:53]process_action_free close_receipt [11:27:53]json_value_free [11:27:53]json_value_free done [11:27:53]process_json_proto returns [11:27:53]Send response to host [11:27:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118453,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:27:53]free response buf [11:27:53]execute_script done [11:27:53]execute_script returns [11:27:53]free content buf [11:27:53]Sock 7.Close socket [11:27:53]Sock 7.Thread stoped [11:27:57]OFD Sender: No OFD packet to send [11:28:02]OFD Sender: No OFD packet to send [11:28:07]OFD Sender: No OFD packet to send [11:28:12]OFD Sender: No OFD packet to send [11:28:13]accept exits with 9 [11:28:13]New connection [11:28:13]New thread 3067067748 created [11:28:13]Thread 3066924388 joined [11:28:13]Waiting for new connection... [11:28:13] Sock 9.Parse request [11:28:13]Sock 9.Check first char [11:28:13]Sock 9.First char is OK [11:28:13]request: POST /json_proto HTTP/1.0 [11:28:13]Method: POST [11:28:13]URL: /json_proto [11:28:13]Method is POST - this is cgi request [11:28:13]url: /json_proto [11:28:13]query_string will be loaded in cgi processing [11:28:13]execute_cgi json_proto POST (null) [11:28:13]execute_cgi path=json_proto method=POST [11:28:13]POST find Content-Length [11:28:13]Host: 172.17.45.7:8080 [11:28:13]Content-Length: 682 [11:28:13]Content-Type: application/json [11:28:13] [11:28:13]POST finish read [11:28:13]Found Content-Length = 682 [11:28:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 20.650, "sum" : 1400.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:13]execute_script... [11:28:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 20.650, "sum" : 1400.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:13]POST & json_proto [11:28:13]process_json_proto [11:28:13]json parsed OK: [11:28:13]protocol is kg_v1.0 [11:28:13]action value=close_receipt [11:28:13]process_action close_receipt [11:28:13]cmd_close_receipt [11:28:13]MH_GetDate [11:28:13]Write to MH i2c: F0 00 00 04 1F 12 [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: F0 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: F0 09 00 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: F0 09 00 04 1F 00 4F 2B A6 66 90 0F 3E 66 E4 [11:28:13]GetLastDocTimeStamp 1722166072 [11:28:13]current date 1722166095 [11:28:13]FM_GetShiftState [11:28:13]SAM_PROTO_GetShiftState [11:28:13]wFMCommunicate request_size=4 [11:28:13]MH_SAM_APDU [11:28:13]CAPDU: 80 13 01 00 [11:28:13]Write to MH i2c: E2 08 00 05 1F 80 13 01 00 00 00 00 00 A1 [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:13]Read from MH i2c: E2 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 0E 00 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 0E 00 05 1F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 78 [11:28:13]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:28:13]wFMCommunicate OK [11:28:13]SAM_PROTO_GetShiftState done [11:28:13]FM_GetShiftState done [11:28:13]opened in 1722125364 [11:28:13]opened+sec_in_day 1722211764 [11:28:13]quantity*price = 140007 [11:28:13]sum+1 = 140008 [11:28:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.68 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 123 28.07.2024 11:28 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118454 ФПД: 273743573275608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112815&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118454&fm=273743573275608&tin=02508201610067®Number=0000000000092660&sum=140000 [11:28:14]StoreToDocumentArchive [11:28:14]shift 433 fd 118454 [11:28:14]save to /storage/0433/doc_00118454 [11:28:14]save last doc name /storage/0433/doc_00118454 to /storage/kkm_last_doc_name [11:28:14]save OK [11:28:14]Clear old archive folders... [11:28:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:28:14]tlvbuf is B6EDDAF0 [11:28:14]SAM_PROTO_ClearQueue [11:28:14]wFMCommunicate request_size=4 [11:28:14]MH_SAM_APDU [11:28:14]CAPDU: 80 09 00 00 [11:28:14]Write to MH i2c: E2 08 00 12 1F 80 09 00 00 00 00 00 00 A3 [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:14]Read from MH i2c: E2 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 03 00 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 03 00 12 1F 00 90 00 A5 [11:28:14]RAPDU: 90 00 [11:28:14]wFMCommunicate OK [11:28:14]SAM_PROTO_ClearQueue done [11:28:14]KKMCreateOFDPacket [11:28:14]OFDProtocolAddRootSTLVToBuf [11:28:14]FM_MakeSignedData [11:28:14]FM_MakeSignedData [11:28:14]SAM_PROTO_SignData [11:28:14]wFMCommunicate request_size=4 [11:28:14]MH_SAM_APDU [11:28:14]CAPDU: 80 0D 01 02 [11:28:14]Write to MH i2c: E2 08 00 13 1F 80 0D 01 02 00 00 00 00 AB [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:14]Read from MH i2c: E2 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 03 00 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 03 00 13 1F 00 90 00 A6 [11:28:14]RAPDU: 90 00 [11:28:14]wFMCommunicate OK [11:28:14]wFMCommunicate request_size=255 [11:28:14]MH_SAM_APDU [11:28:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AA 50 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E7 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 4F 2B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B6 CE 01 00 35 04 06 00 F8 [11:28:14]Write to MH i2c: E2 02 01 14 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 34 FF 03 08 00 03 AA 50 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E7 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 4F 2B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B6 CE 01 00 35 04 06 00 F8 00 00 B6 [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:14]Read from MH i2c: E2 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 03 00 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 03 00 14 1F 00 90 00 A7 [11:28:14]RAPDU: 90 00 [11:28:14]wFMCommunicate OK [11:28:14]wFMCommunicate request_size=10 [11:28:14]MH_SAM_APDU [11:28:14]CAPDU: 80 0D 02 02 05 F7 E4 71 D3 D8 [11:28:14]Write to MH i2c: E2 0D 00 15 1F 80 0D 02 02 05 00 F7 E4 71 D3 D8 00 00 AF [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:14]Read from MH i2c: E2 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 03 00 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 03 00 15 1F 00 90 00 A8 [11:28:14]RAPDU: 90 00 [11:28:14]wFMCommunicate OK [11:28:14]wFMCommunicate request_size=4 [11:28:14]MH_SAM_APDU [11:28:14]CAPDU: 80 0D 03 02 [11:28:14]Write to MH i2c: E2 08 00 16 1F 80 0D 03 02 00 00 00 00 B0 [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:14]Read from MH i2c: E2 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 0B 00 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 0B 00 16 1F 00 23 63 34 EA DA F7 AA 83 90 00 53 [11:28:14]RAPDU: 23 63 34 EA DA F7 AA 83 90 00 [11:28:14]wFMCommunicate OK [11:28:14]SAM_PROTO_SignData done [11:28:14]FM_MakeSignedData done [11:28:14]CreateOFDProtocolMessage [11:28:14]wFMCommunicate request_size=4 [11:28:14]MH_SAM_APDU [11:28:14]CAPDU: 80 11 00 00 [11:28:14]Write to MH i2c: E2 08 00 17 1F 80 11 00 00 00 00 00 00 B0 [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:14]Read from MH i2c: E2 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 17 00 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 17 00 17 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0B [11:28:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:28:14]wFMCommunicate OK [11:28:14]CreateOFDProtocolMessage done [11:28:14]OFDSenderStorePacket 118454 [11:28:14]StoreOFDPacket docnum=118454 [11:28:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 35 86 07 01 1B C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AA 50 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E7 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 4F 2B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B6 CE 01 00 35 04 06 00 F8 F7 E4 71 D3 D8 23 63 34 EA DA F7 AA 83 [11:28:14]CheckFolder [11:28:14]dirname=/storage/ofd_packets [11:28:14]CheckFolder done [11:28:14]ProducePacketName [11:28:14]name=ofd_packets/00118454 [11:28:14]NVStorageSaveData ofd_packets/00118454 [11:28:14]File name is /storage/ofd_packets/00118454 [11:28:14]Write 301 bytes [11:28:14]NVStorageSaveData done [11:28:14]OFDSenderStorePacket done [11:28:14]KKMCreateOFDPacket done [11:28:14]NVStorageSaveData kkm_last_timestamp [11:28:14]File name is /storage/kkm_last_timestamp [11:28:14]Write 4 bytes [11:28:14]NVStorageSaveData done [11:28:14]ExternCall_PrintAddStr [11:28:14]wPrintStart [11:28:14]Write to MH i2c: 01 00 00 18 1F 37 [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: 01 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: 01 07 00 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: 01 07 00 18 1F 00 00 00 00 00 FF 0F 4C [11:28:14]RasterBufferAndPrint [11:28:14]line Счет N : (1)949328 [11:28:14]line ИНН: 02508201610067 [11:28:14]line Контрольно-Кассовый Чек [11:28:14]line ПРОДАЖА [11:28:14]line ТРК (МРК, ГНК) : 51 [11:28:14]line Товар: 2710124130 [11:28:14]line Аи-92-К-4 [11:28:14]line 20.650 * 67.80 [11:28:14]line = 1400.07 [11:28:14]line НДС 12% НСП 1% [11:28:14]line > о реализуемом товаре [11:28:14]line ОКРУГЛЕНИЕ: -0.07 [11:28:14]line ИТОГО: 1400.00 [11:28:14]line Внесено: 1400.00 [11:28:14]line СДАЧА: 0.00 [11:28:14]line НСП 1% : 12.39 [11:28:14]line НДС 12% : 148.68 [11:28:14]line Наличными: 1400.00 [11:28:14]line Безнал.: 0.00 [11:28:14]line Место: АЗС № 134 "Партнер Нефть" [11:28:14]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:28:14]line СНО: Общий режим [11:28:14]line Чек 123 28.07.2024 11:28 [11:28:14]line Смена: 433 ФФД: 1.0 [11:28:14]line ЗНМ: 0300000044 [11:28:14]line РНМ: 0000000000092660 [11:28:14]line Версия ККМ: 001 [11:28:14]line ФМ: 0000000000874939 [11:28:14]line ФД: 118454 [11:28:14]line ФПД: 273743573275608 [11:28:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112815&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118454&fm=273743573275608&tin=02508201610067®Number=0000000000092660&sum=140000 [11:28:15]OFD Sender: Processing packet 118454 [packets to send 86, broken 85] [11:28:15]ProducePacketName [11:28:15]name=ofd_packets/00118454 [11:28:15]OFD Sender: To server: pG, [11:28:15]CommunicateWithHost lk.salyk.kg:30040 [11:28:15]ConnectInit lk.salyk.kg [11:28:15]written 0, free lines is 4095 [11:28:15]Connected sock=10 [11:28:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 35 86 07 01 1B C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AA 50 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E7 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 4F 2B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B6 CE 01 00 35 04 06 00 F8 F7 E4 71 D3 D8 23 63 34 EA DA F7 AA 83 [11:28:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 FA D0 47 00 DE C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B6 CE 01 00 F4 03 04 00 DF D8 A5 66 B6 04 01 00 00 C5 B1 29 86 D3 74 D9 A3 [11:28:15]CommunicateWithHost err = 0 [11:28:15]CheckOFDResponse [11:28:15]1017 (14) - 77093643461234 [11:28:15]1041 (16) - 0000000000874939 [11:28:15]1040 (4) - 118454 [11:28:15]1012 (4) - 28.07.2024 05:36 [11:28:15]1206 (1) - 0 [11:28:15]OFD Sender: Remove packet 118454 [11:28:15]ProducePacketName [11:28:15]name=ofd_packets/00118454 [11:28:15]NVStorageDeleteData [11:28:15]Write to MH i2c: 01 00 00 42 1F 61 [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: 01 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: 01 07 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: 01 07 00 42 1F 00 00 00 00 00 E0 0C 54 [11:28:15]RasterBufferAndPrint [11:28:15]line [11:28:15]line [11:28:15]line [11:28:15]line [11:28:15]line [11:28:15]written 0, free lines is 3301 [11:28:15]MH_Cut [11:28:15]Write to MH i2c: D1 01 00 49 1F 01 3A [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: D1 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: D1 01 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: D1 01 00 49 1F 00 39 [11:28:15]Write to MH i2c: 01 00 00 4A 1F 69 [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]OFD Sender: No OFD packet to send [11:28:16]*** Cut start [11:28:16]*** Partial cut [11:28:16]*** CUTSNS_PIN = 1 [11:28:16]*** CUTSNS_PIN = 0 [11:28:16]*** Brake cut motor [11:28:16]Read from MH i2c: 01 [11:28:16]MH_I2C_Read... [11:28:16]*** Stop cut motor [11:28:16]*** Cut end [11:28:16]Read from MH i2c: 01 07 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: 01 07 00 4A 1F 00 00 00 00 00 FF 0F 7E [11:28:16]process_action close_receipt done [11:28:16]requested_data is exist [11:28:16]produce_requested_data [11:28:16]requested_item fm.sn is exist - process it [11:28:16]wFMCommunicate request_size=4 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 11 00 00 [11:28:16]Write to MH i2c: E2 08 00 4B 1F 80 11 00 00 00 00 00 00 E4 [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 17 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 17 00 4B 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3F [11:28:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:28:16]wFMCommunicate OK [11:28:16]requested_item fd.num is exist - process it [11:28:16]SAM_PROTO_GetFieldsCounters [11:28:16]wFMCommunicate request_size=4 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 13 00 00 [11:28:16]Write to MH i2c: E2 08 00 4C 1F 80 13 00 00 00 00 00 00 E7 [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:17]Read from MH i2c: E2 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: E2 62 00 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: E2 62 00 4C 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B6 CE 01 00 0E 04 04 00 B1 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 B6 [11:28:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B6 CE 01 00 0E 04 04 00 B1 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 [11:28:17]wFMCommunicate OK [11:28:17]SAM_PROTO_GetFieldsCounters done [11:28:17]requested_item shift.num is exist - process it [11:28:17]requested_item shift.opened is exist - process it [11:28:17]req_shift_opened [11:28:17]FM_GetShiftState [11:28:17]SAM_PROTO_GetShiftState [11:28:17]wFMCommunicate request_size=4 [11:28:17]MH_SAM_APDU [11:28:17]CAPDU: 80 13 01 00 [11:28:17]Write to MH i2c: E2 08 00 4D 1F 80 13 01 00 00 00 00 00 E9 [11:28:17]Write i2c OK [11:28:17]MH_I2C_Read... [11:28:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:17]Read from MH i2c: E2 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: E2 0E 00 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: E2 0E 00 4D 1F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 C0 [11:28:17]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:28:17]wFMCommunicate OK [11:28:17]SAM_PROTO_GetShiftState done [11:28:17]FM_GetShiftState done [11:28:17]req_shift_opened done [11:28:17]requested_item shift.open_date is exist - process it [11:28:17]req_shift_open_date [11:28:17]req_shift_open_date done [11:28:17]produce_requested_data done [11:28:17]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118454,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:28:17]process_action_free close_receipt [11:28:17]json_value_free [11:28:17]json_value_free done [11:28:17]process_json_proto returns [11:28:17]Send response to host [11:28:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118454,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:28:17]free response buf [11:28:17]execute_script done [11:28:17]execute_script returns [11:28:17]free content buf [11:28:17]Sock 9.Close socket [11:28:17]Sock 9.Thread stoped [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:05]OFD Sender: No OFD packet to send [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]OFD Sender: No OFD packet to send [11:29:56]accept exits with 7 [11:29:56]New connection [11:29:56]New thread 3066924388 created [11:29:56]Thread 3067067748 joined [11:29:56]Waiting for new connection... [11:29:56] Sock 7.Parse request [11:29:56]Sock 7.Check first char [11:29:56]Sock 7.First char is OK [11:29:56]request: POST /json_proto HTTP/1.0 [11:29:56]Method: POST [11:29:56]URL: /json_proto [11:29:56]Method is POST - this is cgi request [11:29:56]url: /json_proto [11:29:56]query_string will be loaded in cgi processing [11:29:56]execute_cgi json_proto POST (null) [11:29:56]execute_cgi path=json_proto method=POST [11:29:56]POST find Content-Length [11:29:56]Host: 172.17.45.7:8080 [11:29:56]Content-Length: 739 [11:29:56]Content-Type: application/json [11:29:56] [11:29:56]POST finish read [11:29:56]Found Content-Length = 739 [11:29:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118454, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 20.650, "sum" : 1400.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:56]execute_script... [11:29:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118454, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 20.650, "sum" : 1400.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:56]POST & json_proto [11:29:56]process_json_proto [11:29:56]json parsed OK: [11:29:56]protocol is kg_v1.0 [11:29:56]action value=close_receipt [11:29:56]process_action close_receipt [11:29:56]cmd_close_receipt [11:29:56]MH_GetDate [11:29:56]Write to MH i2c: F0 00 00 4E 1F 5C [11:29:56]Write i2c OK [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: F0 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: F0 09 00 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: F0 09 00 4E 1F 00 B7 2B A6 66 90 0F 3E 66 96 [11:29:56]GetLastDocTimeStamp 1722166095 [11:29:56]current date 1722166199 [11:29:56]FM_GetShiftState [11:29:56]SAM_PROTO_GetShiftState [11:29:56]wFMCommunicate request_size=4 [11:29:56]MH_SAM_APDU [11:29:56]CAPDU: 80 13 01 00 [11:29:56]Write to MH i2c: E2 08 00 4F 1F 80 13 01 00 00 00 00 00 EB [11:29:56]Write i2c OK [11:29:56]MH_I2C_Read... [11:29:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:56]Read from MH i2c: E2 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 0E 00 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 0E 00 4F 1F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 C2 [11:29:56]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:29:56]wFMCommunicate OK [11:29:56]SAM_PROTO_GetShiftState done [11:29:56]FM_GetShiftState done [11:29:56]opened in 1722125364 [11:29:56]opened+sec_in_day 1722211764 [11:29:56]quantity*price = 140007 [11:29:56]sum+1 = 140008 [11:29:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 1400.00 НСП 1% : 12.39 НДС 12% : 148.68 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 124 28.07.2024 11:29 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 118454 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 118455 ФПД: 36602607833691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112959&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118455&fm=36602607833691&tin=02508201610067®Number=0000000000092660&sum=140000 [11:29:58]StoreToDocumentArchive [11:29:58]shift 433 fd 118455 [11:29:58]save to /storage/0433/doc_00118455 [11:29:58]save last doc name /storage/0433/doc_00118455 to /storage/kkm_last_doc_name [11:29:58]save OK [11:29:58]Clear old archive folders... [11:29:58]ProcessDocumentItem done err = 0, tmpTLVsize=279 [11:29:58]tlvbuf is 0013C7C0 [11:29:58]SAM_PROTO_ClearQueue [11:29:58]wFMCommunicate request_size=4 [11:29:58]MH_SAM_APDU [11:29:58]CAPDU: 80 09 00 00 [11:29:58]Write to MH i2c: E2 08 00 5E 1F 80 09 00 00 00 00 00 00 EF [11:29:58]Write i2c OK [11:29:58]MH_I2C_Read... [11:29:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:58]Read from MH i2c: E2 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: E2 03 00 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: E2 03 00 5E 1F 00 90 00 F1 [11:29:58]RAPDU: 90 00 [11:29:58]wFMCommunicate OK [11:29:58]SAM_PROTO_ClearQueue done [11:29:58]KKMCreateOFDPacket [11:29:58]OFDProtocolAddRootSTLVToBuf [11:29:58]FM_MakeSignedData [11:29:58]FM_MakeSignedData [11:29:58]SAM_PROTO_SignData [11:29:58]wFMCommunicate request_size=4 [11:29:58]MH_SAM_APDU [11:29:58]CAPDU: 80 0D 01 02 [11:29:58]Write to MH i2c: E2 08 00 5F 1F 80 0D 01 02 00 00 00 00 F7 [11:29:58]Write i2c OK [11:29:58]MH_I2C_Read... [11:29:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:58]Read from MH i2c: E2 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: E2 03 00 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: E2 03 00 5F 1F 00 90 00 F2 [11:29:58]RAPDU: 90 00 [11:29:58]wFMCommunicate OK [11:29:58]wFMCommunicate request_size=255 [11:29:58]MH_SAM_APDU [11:29:58]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AA 50 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E7 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 B7 2B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 B6 CE 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 [11:29:58]Write to MH i2c: E2 02 01 60 1F 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AA 50 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E7 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 B7 2B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 B6 CE 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 00 00 D5 [11:29:58]Write i2c OK [11:29:58]MH_I2C_Read... [11:29:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:58]Read from MH i2c: E2 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: E2 03 00 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: E2 03 00 60 1F 00 90 00 F3 [11:29:58]RAPDU: 90 00 [11:29:58]wFMCommunicate OK [11:29:58]wFMCommunicate request_size=38 [11:29:58]MH_SAM_APDU [11:29:58]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B7 CE 01 00 35 04 06 00 21 4A 35 70 12 5B [11:29:58]Write to MH i2c: E2 29 00 61 1F 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B7 CE 01 00 35 04 06 00 21 4A 35 70 12 5B 00 00 8E [11:29:58]Write i2c OK [11:29:58]MH_I2C_Read... [11:29:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:58]Read from MH i2c: E2 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: E2 03 00 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: E2 03 00 61 1F 00 90 00 F4 [11:29:58]RAPDU: 90 00 [11:29:58]wFMCommunicate OK [11:29:58]wFMCommunicate request_size=4 [11:29:58]MH_SAM_APDU [11:29:58]CAPDU: 80 0D 03 02 [11:29:58]Write to MH i2c: E2 08 00 62 1F 80 0D 03 02 00 00 00 00 FC [11:29:58]Write i2c OK [11:29:58]MH_I2C_Read... [11:29:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:58]Read from MH i2c: E2 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: E2 0B 00 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: E2 0B 00 62 1F 00 18 5C B2 80 39 15 46 74 90 00 AB [11:29:58]RAPDU: 18 5C B2 80 39 15 46 74 90 00 [11:29:58]wFMCommunicate OK [11:29:58]SAM_PROTO_SignData done [11:29:58]FM_MakeSignedData done [11:29:58]CreateOFDProtocolMessage [11:29:58]wFMCommunicate request_size=4 [11:29:58]MH_SAM_APDU [11:29:58]CAPDU: 80 11 00 00 [11:29:58]Write to MH i2c: E2 08 00 63 1F 80 11 00 00 00 00 00 00 FC [11:29:58]Write i2c OK [11:29:58]MH_I2C_Read... [11:29:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:58]Read from MH i2c: E2 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: E2 17 00 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: E2 17 00 63 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 57 [11:29:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:29:58]wFMCommunicate OK [11:29:58]CreateOFDProtocolMessage done [11:29:58]OFDSenderStorePacket 118455 [11:29:58]StoreOFDPacket docnum=118455 [11:29:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 59 85 23 01 93 0D 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AA 50 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E7 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 B7 2B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 B6 CE 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B7 CE 01 00 35 04 06 00 21 4A 35 70 12 5B 18 5C B2 80 39 15 46 74 [11:29:58]CheckFolder [11:29:58]dirname=/storage/ofd_packets [11:29:58]CheckFolder done [11:29:58]ProducePacketName [11:29:58]name=ofd_packets/00118455 [11:29:58]NVStorageSaveData ofd_packets/00118455 [11:29:58]File name is /storage/ofd_packets/00118455 [11:29:58]Write 329 bytes [11:29:58]NVStorageSaveData done [11:29:58]OFDSenderStorePacket done [11:29:58]KKMCreateOFDPacket done [11:29:58]NVStorageSaveData kkm_last_timestamp [11:29:58]File name is /storage/kkm_last_timestamp [11:29:58]Write 4 bytes [11:29:58]NVStorageSaveData done [11:29:58]ExternCall_PrintAddStr [11:29:58]wPrintStart [11:29:58]Write to MH i2c: 01 00 00 64 1F 83 [11:29:58]Write i2c OK [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: 01 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: 01 07 00 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: 01 07 00 64 1F 00 00 00 00 00 FF 0F 98 [11:29:58]RasterBufferAndPrint [11:29:58]line Счет N : (1)949328 [11:29:58]line ИНН: 02508201610067 [11:29:58]line Контрольно-Кассовый Чек [11:29:58]line ВОЗВРАТ ПРОДАЖИ [11:29:58]line ТРК (МРК, ГНК) : 51 [11:29:58]line Товар: 2710124130 [11:29:58]line Аи-92-К-4 [11:29:58]line 20.650 * 67.80 [11:29:58]line = 1400.07 [11:29:58]line НДС 12% НСП 1% [11:29:58]line > о реализуемом товаре [11:29:58]line ОКРУГЛЕНИЕ: -0.07 [11:29:58]line ИТОГО: 1400.00 [11:29:58]line НСП 1% : 12.39 [11:29:58]line НДС 12% : 148.68 [11:29:58]line Наличными: 1400.00 [11:29:58]line Безнал.: 0.00 [11:29:58]line Место: АЗС № 134 "Партнер Нефть" [11:29:58]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:29:58]line СНО: Общий режим [11:29:58]line Чек 124 28.07.2024 11:29 [11:29:58]line Смена: 433 ФФД: 1.0 [11:29:58]line ЗНМ: 0300000044 [11:29:58]line РНМ: 0000000000092660 [11:29:58]line Версия ККМ: 001 [11:29:58]line ФД осн.: 118454 [11:29:58]line ФМ осн.: 0000000000874939 [11:29:58]line ФМ: 0000000000874939 [11:29:58]line ФД: 118455 [11:29:58]line ФПД: 36602607833691 [11:29:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112959&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118455&fm=36602607833691&tin=02508201610067®Number=0000000000092660&sum=140000 [11:29:58]OFD Sender: Processing packet 118455 [packets to send 86, broken 85] [11:29:58]ProducePacketName [11:29:58]name=ofd_packets/00118455 [11:29:58]OFD Sender: To server: pG, [11:29:58]CommunicateWithHost lk.salyk.kg:30040 [11:29:58]ConnectInit lk.salyk.kg [11:29:58]written 0, free lines is 4095 [11:29:59]Connected sock=10 [11:29:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 59 85 23 01 93 0D 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AA 50 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E7 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 B7 2B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 B6 CE 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B7 CE 01 00 35 04 06 00 21 4A 35 70 12 5B 18 5C B2 80 39 15 46 74 [11:29:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D1 BA 47 00 E6 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B7 CE 01 00 F4 03 04 00 47 D9 A5 66 B6 04 01 00 00 7D E1 58 44 DD 38 CB A2 [11:29:59]CommunicateWithHost err = 0 [11:29:59]CheckOFDResponse [11:29:59]1017 (14) - 77093643461234 [11:29:59]1041 (16) - 0000000000874939 [11:29:59]1040 (4) - 118455 [11:29:59]1012 (4) - 28.07.2024 05:38 [11:29:59]1206 (1) - 0 [11:29:59]OFD Sender: Remove packet 118455 [11:29:59]ProducePacketName [11:29:59]name=ofd_packets/00118455 [11:29:59]NVStorageDeleteData [11:29:59]Write to MH i2c: 01 00 00 8E 1F AD [11:29:59]Write i2c OK [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: 01 [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: 01 07 00 [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: 01 07 00 8E 1F 00 00 00 00 00 E6 0C A6 [11:29:59]RasterBufferAndPrint [11:29:59]line [11:29:59]line [11:29:59]line [11:29:59]line [11:29:59]line [11:29:59]written 0, free lines is 3309 [11:29:59]MH_Cut [11:29:59]Write to MH i2c: D1 01 00 95 1F 01 86 [11:29:59]Write i2c OK [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: D1 [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: D1 01 00 [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: D1 01 00 95 1F 00 85 [11:29:59]Write to MH i2c: 01 00 00 96 1F B5 [11:29:59]Write i2c OK [11:29:59]MH_I2C_Read... [11:29:59]OFD Sender: No OFD packet to send [11:30:00]*** Cut start [11:30:00]*** Partial cut [11:30:00]*** CUTSNS_PIN = 1 [11:30:00]*** CUTSNS_PIN = 0 [11:30:00]*** Brake cut motor [11:30:00]Read from MH i2c: 01 [11:30:00]MH_I2C_Read... [11:30:00]*** Stop cut motor [11:30:00]*** Cut end [11:30:00]Read from MH i2c: 01 07 00 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: 01 07 00 96 1F 00 00 00 00 00 FF 0F CA [11:30:00]process_action close_receipt done [11:30:00]requested_data is exist [11:30:00]produce_requested_data [11:30:00]requested_item fm.sn is exist - process it [11:30:00]wFMCommunicate request_size=4 [11:30:00]MH_SAM_APDU [11:30:00]CAPDU: 80 11 00 00 [11:30:00]Write to MH i2c: E2 08 00 97 1F 80 11 00 00 00 00 00 00 30 [11:30:00]Write i2c OK [11:30:00]MH_I2C_Read... [11:30:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:00]Read from MH i2c: E2 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 17 00 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 17 00 97 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8B [11:30:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:30:00]wFMCommunicate OK [11:30:00]requested_item fd.num is exist - process it [11:30:00]SAM_PROTO_GetFieldsCounters [11:30:00]wFMCommunicate request_size=4 [11:30:00]MH_SAM_APDU [11:30:00]CAPDU: 80 13 00 00 [11:30:00]Write to MH i2c: E2 08 00 98 1F 80 13 00 00 00 00 00 00 33 [11:30:00]Write i2c OK [11:30:00]MH_I2C_Read... [11:30:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:00]Read from MH i2c: E2 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 62 00 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 62 00 98 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B7 CE 01 00 0E 04 04 00 B1 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 06 [11:30:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B7 CE 01 00 0E 04 04 00 B1 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 [11:30:00]wFMCommunicate OK [11:30:00]SAM_PROTO_GetFieldsCounters done [11:30:00]requested_item shift.num is exist - process it [11:30:00]requested_item shift.opened is exist - process it [11:30:00]req_shift_opened [11:30:00]FM_GetShiftState [11:30:00]SAM_PROTO_GetShiftState [11:30:00]wFMCommunicate request_size=4 [11:30:00]MH_SAM_APDU [11:30:00]CAPDU: 80 13 01 00 [11:30:00]Write to MH i2c: E2 08 00 99 1F 80 13 01 00 00 00 00 00 35 [11:30:00]Write i2c OK [11:30:00]MH_I2C_Read... [11:30:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:00]Read from MH i2c: E2 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 0E 00 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 0E 00 99 1F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 0C [11:30:00]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:30:00]wFMCommunicate OK [11:30:00]SAM_PROTO_GetShiftState done [11:30:00]FM_GetShiftState done [11:30:00]req_shift_opened done [11:30:00]requested_item shift.open_date is exist - process it [11:30:00]req_shift_open_date [11:30:00]req_shift_open_date done [11:30:00]produce_requested_data done [11:30:00]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118455,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:30:00]process_action_free close_receipt [11:30:00]json_value_free [11:30:00]json_value_free done [11:30:00]process_json_proto returns [11:30:00]Send response to host [11:30:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118455,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:30:00]free response buf [11:30:00]execute_script done [11:30:00]execute_script returns [11:30:00]free content buf [11:30:00]Sock 7.Close socket [11:30:00]Sock 7.Thread stoped [11:30:01]accept exits with 9 [11:30:01]New connection [11:30:01]New thread 3067067748 created [11:30:01]Thread 3066924388 joined [11:30:01]Waiting for new connection... [11:30:01] Sock 9.Parse request [11:30:01]Sock 9.Check first char [11:30:01]Sock 9.First char is OK [11:30:01]request: POST /json_proto HTTP/1.0 [11:30:01]Method: POST [11:30:01]URL: /json_proto [11:30:01]Method is POST - this is cgi request [11:30:01]url: /json_proto [11:30:01]query_string will be loaded in cgi processing [11:30:01]execute_cgi json_proto POST (null) [11:30:01]execute_cgi path=json_proto method=POST [11:30:01]POST find Content-Length [11:30:01]Host: 172.17.45.7:8080 [11:30:01]Content-Length: 682 [11:30:01]Content-Type: application/json [11:30:01] [11:30:01]POST finish read [11:30:01]Found Content-Length = 682 [11:30:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 18.960, "sum" : 1285.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1285.00, "payments": [ { "type": 0, "sum" : 1285.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:01]execute_script... [11:30: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)949328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 18.960, "sum" : 1285.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1285.00, "payments": [ { "type": 0, "sum" : 1285.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:01]POST & json_proto [11:30:01]process_json_proto [11:30:01]json parsed OK: [11:30:01]protocol is kg_v1.0 [11:30:01]action value=close_receipt [11:30:01]process_action close_receipt [11:30:01]cmd_close_receipt [11:30:01]MH_GetDate [11:30:01]Write to MH i2c: F0 00 00 9A 1F A8 [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: F0 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: F0 09 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: F0 09 00 9A 1F 00 BB 2B A6 66 90 0F 3E 66 E6 [11:30:01]GetLastDocTimeStamp 1722166199 [11:30:01]current date 1722166203 [11:30:01]FM_GetShiftState [11:30:01]SAM_PROTO_GetShiftState [11:30:01]wFMCommunicate request_size=4 [11:30:01]MH_SAM_APDU [11:30:01]CAPDU: 80 13 01 00 [11:30:01]Write to MH i2c: E2 08 00 9B 1F 80 13 01 00 00 00 00 00 37 [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:01]Read from MH i2c: E2 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 0E 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 0E 00 9B 1F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 0E [11:30:01]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:30:01]wFMCommunicate OK [11:30:01]SAM_PROTO_GetShiftState done [11:30:01]FM_GetShiftState done [11:30:01]opened in 1722125364 [11:30:01]opened+sec_in_day 1722211764 [11:30:01]quantity*price = 128548 [11:30:01]sum+1 = 128550 [11:30:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 1285.00 Внесено: 1400.00 СДАЧА: 115.00 НСП 1% : 11.38 НДС 12% : 136.51 Наличными: 1285.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 125 28.07.2024 11:30 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118456 ФПД: 190701691106436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113003&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118456&fm=190701691106436&tin=02508201610067®Number=0000000000092660&sum=128500 [11:30:02]StoreToDocumentArchive [11:30:02]shift 433 fd 118456 [11:30:02]save to /storage/0433/doc_00118456 [11:30:02]save last doc name /storage/0433/doc_00118456 to /storage/kkm_last_doc_name [11:30:02]save OK [11:30:02]Clear old archive folders... [11:30:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:02]tlvbuf is 001FA010 [11:30:02]SAM_PROTO_ClearQueue [11:30:02]wFMCommunicate request_size=4 [11:30:02]MH_SAM_APDU [11:30:02]CAPDU: 80 09 00 00 [11:30:02]Write to MH i2c: E2 08 00 A8 1F 80 09 00 00 00 00 00 00 39 [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:02]Read from MH i2c: E2 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 03 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 03 00 A8 1F 00 90 00 3B [11:30:02]RAPDU: 90 00 [11:30:02]wFMCommunicate OK [11:30:02]SAM_PROTO_ClearQueue done [11:30:02]KKMCreateOFDPacket [11:30:02]OFDProtocolAddRootSTLVToBuf [11:30:02]FM_MakeSignedData [11:30:02]FM_MakeSignedData [11:30:02]SAM_PROTO_SignData [11:30:02]wFMCommunicate request_size=4 [11:30:02]MH_SAM_APDU [11:30:02]CAPDU: 80 0D 01 02 [11:30:02]Write to MH i2c: E2 08 00 A9 1F 80 0D 01 02 00 00 00 00 41 [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:02]Read from MH i2c: E2 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 03 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 03 00 A9 1F 00 90 00 3C [11:30:02]RAPDU: 90 00 [11:30:02]wFMCommunicate OK [11:30:02]wFMCommunicate request_size=255 [11:30:02]MH_SAM_APDU [11:30: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 34 FF 03 08 00 03 10 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 25 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 F5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 35 00 00 00 00 07 04 06 00 F4 F5 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 BB 2B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B8 CE 01 00 35 04 06 00 AD [11:30:03]Write to MH i2c: E2 02 01 AA 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 34 FF 03 08 00 03 10 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 25 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 F5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 35 00 00 00 00 07 04 06 00 F4 F5 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 BB 2B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B8 CE 01 00 35 04 06 00 AD 00 00 83 [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:03]Read from MH i2c: E2 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 03 00 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 03 00 AA 1F 00 90 00 3D [11:30:03]RAPDU: 90 00 [11:30:03]wFMCommunicate OK [11:30:03]wFMCommunicate request_size=10 [11:30:03]MH_SAM_APDU [11:30:03]CAPDU: 80 0D 02 02 05 71 32 8E 74 84 [11:30:03]Write to MH i2c: E2 0D 00 AB 1F 80 0D 02 02 05 00 71 32 8E 74 84 00 00 77 [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:03]Read from MH i2c: E2 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 03 00 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 03 00 AB 1F 00 90 00 3E [11:30:03]RAPDU: 90 00 [11:30:03]wFMCommunicate OK [11:30:03]wFMCommunicate request_size=4 [11:30:03]MH_SAM_APDU [11:30:03]CAPDU: 80 0D 03 02 [11:30:03]Write to MH i2c: E2 08 00 AC 1F 80 0D 03 02 00 00 00 00 46 [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:03]Read from MH i2c: E2 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 0B 00 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 0B 00 AC 1F 00 14 5D C1 65 DD 1E 80 FA 90 00 53 [11:30:03]RAPDU: 14 5D C1 65 DD 1E 80 FA 90 00 [11:30:03]wFMCommunicate OK [11:30:03]SAM_PROTO_SignData done [11:30:03]FM_MakeSignedData done [11:30:03]CreateOFDProtocolMessage [11:30:03]wFMCommunicate request_size=4 [11:30:03]MH_SAM_APDU [11:30:03]CAPDU: 80 11 00 00 [11:30:03]Write to MH i2c: E2 08 00 AD 1F 80 11 00 00 00 00 00 00 46 [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:03]Read from MH i2c: E2 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 17 00 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 17 00 AD 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A1 [11:30:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:30:03]wFMCommunicate OK [11:30:03]CreateOFDProtocolMessage done [11:30:03]OFDSenderStorePacket 118456 [11:30:03]StoreOFDPacket docnum=118456 [11:30:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 93 5E 07 01 82 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 34 FF 03 08 00 03 10 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 25 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 F5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 35 00 00 00 00 07 04 06 00 F4 F5 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 BB 2B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B8 CE 01 00 35 04 06 00 AD 71 32 8E 74 84 14 5D C1 65 DD 1E 80 FA [11:30:03]CheckFolder [11:30:03]dirname=/storage/ofd_packets [11:30:03]CheckFolder done [11:30:03]ProducePacketName [11:30:03]name=ofd_packets/00118456 [11:30:03]NVStorageSaveData ofd_packets/00118456 [11:30:03]File name is /storage/ofd_packets/00118456 [11:30:03]Write 301 bytes [11:30:03]NVStorageSaveData done [11:30:03]OFDSenderStorePacket done [11:30:03]KKMCreateOFDPacket done [11:30:03]NVStorageSaveData kkm_last_timestamp [11:30:03]File name is /storage/kkm_last_timestamp [11:30:03]Write 4 bytes [11:30:03]NVStorageSaveData done [11:30:03]ExternCall_PrintAddStr [11:30:03]wPrintStart [11:30:03]Write to MH i2c: 01 00 00 AE 1F CD [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: 01 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: 01 07 00 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: 01 07 00 AE 1F 00 00 00 00 00 FF 0F E2 [11:30:03]RasterBufferAndPrint [11:30:03]line Счет N : (1)949328 [11:30:03]line ИНН: 02508201610067 [11:30:03]line Контрольно-Кассовый Чек [11:30:03]line ПРОДАЖА [11:30:03]line ТРК (МРК, ГНК) : 51 [11:30:03]line Товар: 2710124130 [11:30:03]line Аи-92-К-4 [11:30:03]line 18.960 * 67.80 [11:30:03]line = 1285.49 [11:30:03]line НДС 12% НСП 1% [11:30:03]line > о реализуемом товаре [11:30:03]line ОКРУГЛЕНИЕ: -0.49 [11:30:03]line ИТОГО: 1285.00 [11:30:03]line Внесено: 1400.00 [11:30:03]line СДАЧА: 115.00 [11:30:03]line НСП 1% : 11.38 [11:30:03]line НДС 12% : 136.51 [11:30:03]line Наличными: 1285.00 [11:30:03]line Безнал.: 0.00 [11:30:03]line Место: АЗС № 134 "Партнер Нефть" [11:30:03]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:30:03]line СНО: Общий режим [11:30:03]line Чек 125 28.07.2024 11:30 [11:30:03]line Смена: 433 ФФД: 1.0 [11:30:03]line ЗНМ: 0300000044 [11:30:03]line РНМ: 0000000000092660 [11:30:03]line Версия ККМ: 001 [11:30:03]line ФМ: 0000000000874939 [11:30:03]line ФД: 118456 [11:30:03]line ФПД: 190701691106436 [11:30:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113003&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118456&fm=190701691106436&tin=02508201610067®Number=0000000000092660&sum=128500 [11:30:03]OFD Sender: Processing packet 118456 [packets to send 86, broken 85] [11:30:03]ProducePacketName [11:30:03]name=ofd_packets/00118456 [11:30:03]OFD Sender: To server: pG, [11:30:03]CommunicateWithHost lk.salyk.kg:30040 [11:30:03]ConnectInit lk.salyk.kg [11:30:03]written 0, free lines is 4095 [11:30:03]Connected sock=10 [11:30:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 93 5E 07 01 82 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 34 FF 03 08 00 03 10 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 25 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 F5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 35 00 00 00 00 07 04 06 00 F4 F5 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 BB 2B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B8 CE 01 00 35 04 06 00 AD 71 32 8E 74 84 14 5D C1 65 DD 1E 80 FA [11:30:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E0 ED 47 00 B1 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 39 33 39 10 04 04 00 B8 CE 01 00 F4 03 04 00 4C D9 A5 66 B6 04 01 00 00 86 B2 4B AD 8D 57 43 D8 [11:30:03]CommunicateWithHost err = 0 [11:30:03]CheckOFDResponse [11:30:03]1017 (14) - 77093643461234 [11:30:03]1041 (16) - 0000000000874939 [11:30:03]1040 (4) - 118456 [11:30:03]1012 (4) - 28.07.2024 05:38 [11:30:03]1206 (1) - 0 [11:30:03]OFD Sender: Remove packet 118456 [11:30:03]ProducePacketName [11:30:03]name=ofd_packets/00118456 [11:30:03]NVStorageDeleteData [11:30:03]Write to MH i2c: 01 00 00 D8 1F F7 [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: 01 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: 01 07 00 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: 01 07 00 D8 1F 00 00 00 00 00 F0 0C FA [11:30:03]RasterBufferAndPrint [11:30:03]line [11:30:03]line [11:30:03]line [11:30:03]line [11:30:03]line [11:30:03]written 0, free lines is 3326 [11:30:03]MH_Cut [11:30:03]Write to MH i2c: D1 01 00 DF 1F 01 D0 [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: D1 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: D1 01 00 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: D1 01 00 DF 1F 00 CF [11:30:03]Write to MH i2c: 01 00 00 E0 1F FF [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:04]OFD Sender: No OFD packet to send [11:30:04]*** Cut start [11:30:04]*** Partial cut [11:30:04]*** CUTSNS_PIN = 1 [11:30:04]*** CUTSNS_PIN = 0 [11:30:04]*** Brake cut motor [11:30:05]Read from MH i2c: 01 [11:30:05]MH_I2C_Read... [11:30:05]*** Stop cut motor [11:30:05]*** Cut end [11:30:05]Read from MH i2c: 01 07 00 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: 01 07 00 E0 1F 00 00 00 00 00 FF 0F 14 [11:30:05]process_action close_receipt done [11:30:05]requested_data is exist [11:30:05]produce_requested_data [11:30:05]requested_item fm.sn is exist - process it [11:30:05]wFMCommunicate request_size=4 [11:30:05]MH_SAM_APDU [11:30:05]CAPDU: 80 11 00 00 [11:30:05]Write to MH i2c: E2 08 00 E1 1F 80 11 00 00 00 00 00 00 7A [11:30:05]Write i2c OK [11:30:05]MH_I2C_Read... [11:30:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:05]Read from MH i2c: E2 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 17 00 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 17 00 E1 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D5 [11:30:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:30:05]wFMCommunicate OK [11:30:05]requested_item fd.num is exist - process it [11:30:05]SAM_PROTO_GetFieldsCounters [11:30:05]wFMCommunicate request_size=4 [11:30:05]MH_SAM_APDU [11:30:05]CAPDU: 80 13 00 00 [11:30:05]Write to MH i2c: E2 08 00 E2 1F 80 13 00 00 00 00 00 00 7D [11:30:05]Write i2c OK [11:30:05]MH_I2C_Read... [11:30:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:05]Read from MH i2c: E2 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 62 00 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 62 00 E2 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B8 CE 01 00 0E 04 04 00 B1 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 54 [11:30:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B8 CE 01 00 0E 04 04 00 B1 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 [11:30:05]wFMCommunicate OK [11:30:05]SAM_PROTO_GetFieldsCounters done [11:30:05]requested_item shift.num is exist - process it [11:30:05]requested_item shift.opened is exist - process it [11:30:05]req_shift_opened [11:30:05]FM_GetShiftState [11:30:05]SAM_PROTO_GetShiftState [11:30:05]wFMCommunicate request_size=4 [11:30:05]MH_SAM_APDU [11:30:05]CAPDU: 80 13 01 00 [11:30:05]Write to MH i2c: E2 08 00 E3 1F 80 13 01 00 00 00 00 00 7F [11:30:05]Write i2c OK [11:30:05]MH_I2C_Read... [11:30:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:05]Read from MH i2c: E2 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 0E 00 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 0E 00 E3 1F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 56 [11:30:05]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:30:05]wFMCommunicate OK [11:30:05]SAM_PROTO_GetShiftState done [11:30:05]FM_GetShiftState done [11:30:05]req_shift_opened done [11:30:05]requested_item shift.open_date is exist - process it [11:30:05]req_shift_open_date [11:30:05]req_shift_open_date done [11:30:05]produce_requested_data done [11:30:05]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118456,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:30:05]process_action_free close_receipt [11:30:05]json_value_free [11:30:05]json_value_free done [11:30:05]process_json_proto returns [11:30:05]Send response to host [11:30:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118456,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:30:05]free response buf [11:30:05]execute_script done [11:30:05]execute_script returns [11:30:05]free content buf [11:30:05]Sock 9.Close socket [11:30:05]Sock 9.Thread stoped [11:30:09]OFD Sender: No OFD packet to send [11:30:14]OFD Sender: No OFD packet to send [11:30:19]OFD Sender: No OFD packet to send [11:30:24]OFD Sender: No OFD packet to send [11:30:29]OFD Sender: No OFD packet to send [11:30:34]OFD Sender: No OFD packet to send [11:30:39]OFD Sender: No OFD packet to send [11:30:44]OFD Sender: No OFD packet to send [11:30:49]OFD Sender: No OFD packet to send [11:30:54]OFD Sender: No OFD packet to send [11:30:54]accept exits with 7 [11:30:54]New connection [11:30:54]New thread 3066924388 created [11:30:54]Thread 3067067748 joined [11:30:54]Waiting for new connection... [11:30:54] Sock 7.Parse request [11:30:54]Sock 7.Check first char [11:30:54]Sock 7.First char is OK [11:30:54]request: POST /json_proto HTTP/1.0 [11:30:54]Method: POST [11:30:54]URL: /json_proto [11:30:54]Method is POST - this is cgi request [11:30:54]url: /json_proto [11:30:54]query_string will be loaded in cgi processing [11:30:54]execute_cgi json_proto POST (null) [11:30:54]execute_cgi path=json_proto method=POST [11:30:54]POST find Content-Length [11:30:54]Host: 172.17.45.7:8080 [11:30:54]Content-Length: 801 [11:30:54]Content-Type: application/json [11:30:54] [11:30:54]POST finish read [11:30:54]Found Content-Length = 801 [11:30:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 100.000, "sum" : 7620.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" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:54]execute_script... [11:30: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)949326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 100.000, "sum" : 7620.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" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:54]POST & json_proto [11:30:54]process_json_proto [11:30:54]json parsed OK: [11:30:54]protocol is kg_v1.0 [11:30:54]action value=close_receipt [11:30:54]process_action close_receipt [11:30:54]cmd_close_receipt [11:30:54]MH_GetDate [11:30:54]Write to MH i2c: F0 00 00 E4 1F F2 [11:30:54]Write i2c OK [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: F0 [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: F0 09 00 [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: F0 09 00 E4 1F 00 F1 2B A6 66 90 0F 3E 66 66 [11:30:54]GetLastDocTimeStamp 1722166203 [11:30:54]current date 1722166257 [11:30:54]FM_GetShiftState [11:30:54]SAM_PROTO_GetShiftState [11:30:54]wFMCommunicate request_size=4 [11:30:54]MH_SAM_APDU [11:30:54]CAPDU: 80 13 01 00 [11:30:54]Write to MH i2c: E2 08 00 E5 1F 80 13 01 00 00 00 00 00 81 [11:30:54]Write i2c OK [11:30:54]MH_I2C_Read... [11:30:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:54]Read from MH i2c: E2 [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: E2 0E 00 [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: E2 0E 00 E5 1F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 58 [11:30:54]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:30:54]wFMCommunicate OK [11:30:54]SAM_PROTO_GetShiftState done [11:30:54]FM_GetShiftState done [11:30:54]opened in 1722125364 [11:30:54]opened+sec_in_day 1722211764 [11:30:54]quantity*price = 762000 [11:30:54]sum+1 = 762001 [11:30:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7620.00 НСП 1% : 67.43 НДС 12% : 809.20 Наличными: 0.00 Безнал.: 7620.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 126 28.07.2024 11:30 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118457 ФПД: 30906415050649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113057&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118457&fm=30906415050649&tin=02508201610067®Number=0000000000092660&sum=762000 [11:30:56]StoreToDocumentArchive [11:30:56]shift 433 fd 118457 [11:30:56]save to /storage/0433/doc_00118457 [11:30:56]save last doc name /storage/0433/doc_00118457 to /storage/kkm_last_doc_name [11:30:56]save OK [11:30:56]Clear old archive folders... [11:30:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:30:56]tlvbuf is B6EC4B20 [11:30:56]SAM_PROTO_ClearQueue [11:30:56]wFMCommunicate request_size=4 [11:30:56]MH_SAM_APDU [11:30:56]CAPDU: 80 09 00 00 [11:30:56]Write to MH i2c: E2 08 00 F2 1F 80 09 00 00 00 00 00 00 83 [11:30:56]Write i2c OK [11:30:56]MH_I2C_Read... [11:30:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:56]Read from MH i2c: E2 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 03 00 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 03 00 F2 1F 00 90 00 85 [11:30:56]RAPDU: 90 00 [11:30:56]wFMCommunicate OK [11:30:56]SAM_PROTO_ClearQueue done [11:30:56]KKMCreateOFDPacket [11:30:56]OFDProtocolAddRootSTLVToBuf [11:30:56]FM_MakeSignedData [11:30:56]FM_MakeSignedData [11:30:56]SAM_PROTO_SignData [11:30:56]wFMCommunicate request_size=4 [11:30:56]MH_SAM_APDU [11:30:56]CAPDU: 80 0D 01 02 [11:30:56]Write to MH i2c: E2 08 00 F3 1F 80 0D 01 02 00 00 00 00 8B [11:30:56]Write i2c OK [11:30:56]MH_I2C_Read... [11:30:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:56]Read from MH i2c: E2 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 03 00 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 03 00 F3 1F 00 90 00 86 [11:30:56]RAPDU: 90 00 [11:30:56]wFMCommunicate OK [11:30:56]wFMCommunicate request_size=255 [11:30:56]MH_SAM_APDU [11:30:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F1 2B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B9 CE 01 00 35 04 06 00 1C 1B F5 E3 [11:30:56]Write to MH i2c: E2 02 01 F4 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F1 2B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B9 CE 01 00 35 04 06 00 1C 1B F5 E3 00 00 61 [11:30:56]Write i2c OK [11:30:56]MH_I2C_Read... [11:30:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:56]Read from MH i2c: E2 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 03 00 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 03 00 F4 1F 00 90 00 87 [11:30:56]RAPDU: 90 00 [11:30:56]wFMCommunicate OK [11:30:56]wFMCommunicate request_size=7 [11:30:56]MH_SAM_APDU [11:30:56]CAPDU: 80 0D 02 02 02 EF 99 [11:30:56]Write to MH i2c: E2 0A 00 F5 1F 80 0D 02 02 02 00 EF 99 00 00 1A [11:30:56]Write i2c OK [11:30:56]MH_I2C_Read... [11:30:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:56]Read from MH i2c: E2 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 03 00 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 03 00 F5 1F 00 90 00 88 [11:30:56]RAPDU: 90 00 [11:30:56]wFMCommunicate OK [11:30:56]wFMCommunicate request_size=4 [11:30:56]MH_SAM_APDU [11:30:56]CAPDU: 80 0D 03 02 [11:30:56]Write to MH i2c: E2 08 00 F6 1F 80 0D 03 02 00 00 00 00 90 [11:30:56]Write i2c OK [11:30:56]MH_I2C_Read... [11:30:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:56]Read from MH i2c: E2 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 0B 00 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 0B 00 F6 1F 00 EC 2A F4 FA D4 AB 8C 1A 90 00 BA [11:30:56]RAPDU: EC 2A F4 FA D4 AB 8C 1A 90 00 [11:30:56]wFMCommunicate OK [11:30:56]SAM_PROTO_SignData done [11:30:56]FM_MakeSignedData done [11:30:56]CreateOFDProtocolMessage [11:30:56]wFMCommunicate request_size=4 [11:30:56]MH_SAM_APDU [11:30:56]CAPDU: 80 11 00 00 [11:30:56]Write to MH i2c: E2 08 00 F7 1F 80 11 00 00 00 00 00 00 90 [11:30:56]Write i2c OK [11:30:56]MH_I2C_Read... [11:30:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:56]Read from MH i2c: E2 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 17 00 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 17 00 F7 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EB [11:30:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:30:56]wFMCommunicate OK [11:30:56]CreateOFDProtocolMessage done [11:30:56]OFDSenderStorePacket 118457 [11:30:56]StoreOFDPacket docnum=118457 [11:30:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 34 66 04 01 85 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F1 2B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B9 CE 01 00 35 04 06 00 1C 1B F5 E3 EF 99 EC 2A F4 FA D4 AB 8C 1A [11:30:56]CheckFolder [11:30:56]dirname=/storage/ofd_packets [11:30:56]CheckFolder done [11:30:56]ProducePacketName [11:30:56]name=ofd_packets/00118457 [11:30:56]NVStorageSaveData ofd_packets/00118457 [11:30:56]File name is /storage/ofd_packets/00118457 [11:30:56]Write 298 bytes [11:30:56]NVStorageSaveData done [11:30:56]OFDSenderStorePacket done [11:30:56]KKMCreateOFDPacket done [11:30:56]NVStorageSaveData kkm_last_timestamp [11:30:56]File name is /storage/kkm_last_timestamp [11:30:56]Write 4 bytes [11:30:56]NVStorageSaveData done [11:30:56]ExternCall_PrintAddStr [11:30:56]wPrintStart [11:30:56]Write to MH i2c: 01 00 00 F8 1F 17 [11:30:56]Write i2c OK [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: 01 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: 01 07 00 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: 01 07 00 F8 1F 00 00 00 00 00 FF 0F 2C [11:30:56]RasterBufferAndPrint [11:30:56]line Счет N : (1)949326 [11:30:56]line ИНН: 02508201610067 [11:30:56]line Контрольно-Кассовый Чек [11:30:56]line ПРОДАЖА [11:30:56]line ТРК (МРК, ГНК) : 11 [11:30:56]line Товар: 2710194800 [11:30:56]line ДТ-К-5 [11:30:56]line 100.000 * 76.20 [11:30:56]line = 7620.00 [11:30:56]line НДС 12% НСП 1% [11:30:56]line > о реализуемом товаре [11:30:56]line ИТОГО: 7620.00 [11:30:56]line НСП 1% : 67.43 [11:30:56]line НДС 12% : 809.20 [11:30:56]line Наличными: 0.00 [11:30:56]line Безнал.: 7620.00 [11:30:56]line Место: АЗС № 134 "Партнер Нефть" [11:30:56]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:30:56]line СНО: Общий режим [11:30:56]line Чек 126 28.07.2024 11:30 [11:30:56]line Смена: 433 ФФД: 1.0 [11:30:56]line ЗНМ: 0300000044 [11:30:56]line РНМ: 0000000000092660 [11:30:56]line Версия ККМ: 001 [11:30:56]line Платежная система: O! деньги [11:30:56]line ФМ: 0000000000874939 [11:30:56]line ФД: 118457 [11:30:56]line ФПД: 30906415050649 [11:30:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113057&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118457&fm=30906415050649&tin=02508201610067®Number=0000000000092660&sum=762000 [11:30:56]OFD Sender: Processing packet 118457 [packets to send 86, broken 85] [11:30:56]ProducePacketName [11:30:56]name=ofd_packets/00118457 [11:30:56]OFD Sender: To server: pG, [11:30:56]CommunicateWithHost lk.salyk.kg:30040 [11:30:56]ConnectInit lk.salyk.kg [11:30:56]written 0, free lines is 4095 [11:30:57]Connected sock=10 [11:30:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 34 66 04 01 85 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F1 2B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B9 CE 01 00 35 04 06 00 1C 1B F5 E3 EF 99 EC 2A F4 FA D4 AB 8C 1A [11:30:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 FD A0 47 00 4F EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B9 CE 01 00 F4 03 04 00 81 D9 A5 66 B6 04 01 00 00 A0 7F 87 27 74 BA 93 8D [11:30:57]CommunicateWithHost err = 0 [11:30:57]CheckOFDResponse [11:30:57]1017 (14) - 77093643461234 [11:30:57]1041 (16) - 0000000000874939 [11:30:57]1040 (4) - 118457 [11:30:57]1012 (4) - 28.07.2024 05:39 [11:30:57]1206 (1) - 0 [11:30:57]OFD Sender: Remove packet 118457 [11:30:57]ProducePacketName [11:30:57]name=ofd_packets/00118457 [11:30:57]NVStorageDeleteData [11:30:57]Write to MH i2c: 01 00 00 21 20 41 [11:30:57]Write i2c OK [11:30:57]MH_I2C_Read... [11:30:57]Read from MH i2c: 01 [11:30:57]MH_I2C_Read... [11:30:57]Read from MH i2c: 01 07 00 [11:30:57]MH_I2C_Read... [11:30:57]Read from MH i2c: 01 07 00 21 20 00 00 00 00 00 F2 0C 46 [11:30:57]RasterBufferAndPrint [11:30:57]line [11:30:57]line [11:30:57]line [11:30:57]line [11:30:57]line [11:30:57]written 0, free lines is 3320 [11:30:57]MH_Cut [11:30:57]Write to MH i2c: D1 01 00 28 20 01 1A [11:30:57]Write i2c OK [11:30:57]MH_I2C_Read... [11:30:57]Read from MH i2c: D1 [11:30:57]MH_I2C_Read... [11:30:57]Read from MH i2c: D1 01 00 [11:30:57]MH_I2C_Read... [11:30:57]Read from MH i2c: D1 01 00 28 20 00 19 [11:30:57]Write to MH i2c: 01 00 00 29 20 49 [11:30:57]Write i2c OK [11:30:57]MH_I2C_Read... [11:30:57]OFD Sender: No OFD packet to send [11:30:58]*** Cut start [11:30:58]*** Partial cut [11:30:58]*** CUTSNS_PIN = 1 [11:30:58]*** CUTSNS_PIN = 0 [11:30:58]*** Brake cut motor [11:30:58]Read from MH i2c: 01 [11:30:58]MH_I2C_Read... [11:30:58]*** Stop cut motor [11:30:58]*** Cut end [11:30:58]Read from MH i2c: 01 07 00 [11:30:58]MH_I2C_Read... [11:30:58]Read from MH i2c: 01 07 00 29 20 00 00 00 00 00 FF 0F 5E [11:30:58]process_action close_receipt done [11:30:58]requested_data is exist [11:30:58]produce_requested_data [11:30:58]requested_item fm.sn is exist - process it [11:30:58]wFMCommunicate request_size=4 [11:30:58]MH_SAM_APDU [11:30:58]CAPDU: 80 11 00 00 [11:30:58]Write to MH i2c: E2 08 00 2A 20 80 11 00 00 00 00 00 00 C4 [11:30:58]Write i2c OK [11:30:58]MH_I2C_Read... [11:30:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:58]Read from MH i2c: E2 [11:30:58]MH_I2C_Read... [11:30:58]Read from MH i2c: E2 17 00 [11:30:58]MH_I2C_Read... [11:30:58]Read from MH i2c: E2 17 00 2A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1F [11:30:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:30:58]wFMCommunicate OK [11:30:58]requested_item fd.num is exist - process it [11:30:58]SAM_PROTO_GetFieldsCounters [11:30:58]wFMCommunicate request_size=4 [11:30:58]MH_SAM_APDU [11:30:58]CAPDU: 80 13 00 00 [11:30:58]Write to MH i2c: E2 08 00 2B 20 80 13 00 00 00 00 00 00 C7 [11:30:58]Write i2c OK [11:30:58]MH_I2C_Read... [11:30:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:58]Read from MH i2c: E2 [11:30:58]MH_I2C_Read... [11:30:58]Read from MH i2c: E2 62 00 [11:30:58]MH_I2C_Read... [11:30:58]Read from MH i2c: E2 62 00 2B 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B9 CE 01 00 0E 04 04 00 B1 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 A2 [11:30:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B9 CE 01 00 0E 04 04 00 B1 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 [11:30:58]wFMCommunicate OK [11:30:58]SAM_PROTO_GetFieldsCounters done [11:30:58]requested_item shift.num is exist - process it [11:30:58]requested_item shift.opened is exist - process it [11:30:58]req_shift_opened [11:30:58]FM_GetShiftState [11:30:58]SAM_PROTO_GetShiftState [11:30:58]wFMCommunicate request_size=4 [11:30:58]MH_SAM_APDU [11:30:58]CAPDU: 80 13 01 00 [11:30:58]Write to MH i2c: E2 08 00 2C 20 80 13 01 00 00 00 00 00 C9 [11:30:58]Write i2c OK [11:30:58]MH_I2C_Read... [11:30:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:58]Read from MH i2c: E2 [11:30:58]MH_I2C_Read... [11:30:58]Read from MH i2c: E2 0E 00 [11:30:58]MH_I2C_Read... [11:30:58]Read from MH i2c: E2 0E 00 2C 20 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A0 [11:30:58]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:30:58]wFMCommunicate OK [11:30:58]SAM_PROTO_GetShiftState done [11:30:58]FM_GetShiftState done [11:30:58]req_shift_opened done [11:30:58]requested_item shift.open_date is exist - process it [11:30:58]req_shift_open_date [11:30:58]req_shift_open_date done [11:30:58]produce_requested_data done [11:30:58]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118457,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:30:58]process_action_free close_receipt [11:30:58]json_value_free [11:30:58]json_value_free done [11:30:58]process_json_proto returns [11:30:58]Send response to host [11:30:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118457,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:30:58]free response buf [11:30:58]execute_script done [11:30:58]execute_script returns [11:30:58]free content buf [11:30:58]Sock 7.Close socket [11:30:58]Sock 7.Thread stoped [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:17]accept exits with 9 [11:31:17]New connection [11:31:17]New thread 3067067748 created [11:31:17]Thread 3066924388 joined [11:31:17]Waiting for new connection... [11:31:17] Sock 9.Parse request [11:31:17]Sock 9.Check first char [11:31:17]Sock 9.First char is OK [11:31:17]request: POST /json_proto HTTP/1.0 [11:31:17]Method: POST [11:31:17]URL: /json_proto [11:31:17]Method is POST - this is cgi request [11:31:17]url: /json_proto [11:31:17]query_string will be loaded in cgi processing [11:31:17]execute_cgi json_proto POST (null) [11:31:17]execute_cgi path=json_proto method=POST [11:31:17]POST find Content-Length [11:31:17]Host: 172.17.45.7:8080 [11:31:17]Content-Length: 801 [11:31:17]Content-Type: application/json [11:31:17] [11:31:17]POST finish read [11:31:17]Found Content-Length = 801 [11:31:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 100.000, "sum" : 7620.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" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:17]execute_script... [11:31: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)949327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 100.000, "sum" : 7620.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" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:17]POST & json_proto [11:31:17]process_json_proto [11:31:17]json parsed OK: [11:31:17]protocol is kg_v1.0 [11:31:17]action value=close_receipt [11:31:17]process_action close_receipt [11:31:17]cmd_close_receipt [11:31:17]MH_GetDate [11:31:17]Write to MH i2c: F0 00 00 2D 20 3C [11:31:17]Write i2c OK [11:31:17]MH_I2C_Read... [11:31:17]Read from MH i2c: F0 [11:31:17]MH_I2C_Read... [11:31:17]Read from MH i2c: F0 09 00 [11:31:17]MH_I2C_Read... [11:31:17]Read from MH i2c: F0 09 00 2D 20 00 07 2C A6 66 90 0F 3E 66 C7 [11:31:17]GetLastDocTimeStamp 1722166257 [11:31:17]current date 1722166279 [11:31:17]FM_GetShiftState [11:31:17]SAM_PROTO_GetShiftState [11:31:17]wFMCommunicate request_size=4 [11:31:17]MH_SAM_APDU [11:31:17]CAPDU: 80 13 01 00 [11:31:17]Write to MH i2c: E2 08 00 2E 20 80 13 01 00 00 00 00 00 CB [11:31:17]Write i2c OK [11:31:17]MH_I2C_Read... [11:31:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:17]Read from MH i2c: E2 [11:31:17]MH_I2C_Read... [11:31:17]Read from MH i2c: E2 0E 00 [11:31:17]MH_I2C_Read... [11:31:17]Read from MH i2c: E2 0E 00 2E 20 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A2 [11:31:17]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:31:17]wFMCommunicate OK [11:31:17]SAM_PROTO_GetShiftState done [11:31:17]FM_GetShiftState done [11:31:17]opened in 1722125364 [11:31:17]opened+sec_in_day 1722211764 [11:31:17]quantity*price = 762000 [11:31:17]sum+1 = 762001 [11:31:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7620.00 НСП 1% : 67.43 НДС 12% : 809.20 Наличными: 0.00 Безнал.: 7620.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 127 28.07.2024 11:31 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118458 ФПД: 233265307945585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113119&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118458&fm=233265307945585&tin=02508201610067®Number=0000000000092660&sum=762000 [11:31:18]StoreToDocumentArchive [11:31:18]shift 433 fd 118458 [11:31:18]save to /storage/0433/doc_00118458 [11:31:18]save last doc name /storage/0433/doc_00118458 to /storage/kkm_last_doc_name [11:31:18]save OK [11:31:18]Clear old archive folders... [11:31:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:31:18]tlvbuf is 001A9D50 [11:31:18]SAM_PROTO_ClearQueue [11:31:18]wFMCommunicate request_size=4 [11:31:18]MH_SAM_APDU [11:31:18]CAPDU: 80 09 00 00 [11:31:18]Write to MH i2c: E2 08 00 3B 20 80 09 00 00 00 00 00 00 CD [11:31:18]Write i2c OK [11:31:18]MH_I2C_Read... [11:31:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:18]Read from MH i2c: E2 [11:31:18]MH_I2C_Read... [11:31:18]Read from MH i2c: E2 03 00 [11:31:18]MH_I2C_Read... [11:31:18]Read from MH i2c: E2 03 00 3B 20 00 90 00 CF [11:31:18]RAPDU: 90 00 [11:31:18]wFMCommunicate OK [11:31:18]SAM_PROTO_ClearQueue done [11:31:18]KKMCreateOFDPacket [11:31:18]OFDProtocolAddRootSTLVToBuf [11:31:18]FM_MakeSignedData [11:31:18]FM_MakeSignedData [11:31:18]SAM_PROTO_SignData [11:31:18]wFMCommunicate request_size=4 [11:31:18]MH_SAM_APDU [11:31:18]CAPDU: 80 0D 01 02 [11:31:18]Write to MH i2c: E2 08 00 3C 20 80 0D 01 02 00 00 00 00 D5 [11:31:18]Write i2c OK [11:31:18]MH_I2C_Read... [11:31:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:18]Read from MH i2c: E2 [11:31:18]MH_I2C_Read... [11:31:18]Read from MH i2c: E2 03 00 [11:31:18]MH_I2C_Read... [11:31:18]Read from MH i2c: E2 03 00 3C 20 00 90 00 D0 [11:31:18]RAPDU: 90 00 [11:31:18]wFMCommunicate OK [11:31:18]wFMCommunicate request_size=255 [11:31:18]MH_SAM_APDU [11:31:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 07 2C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BA CE 01 00 35 04 06 00 D4 27 4F D1 [11:31:18]Write to MH i2c: E2 02 01 3D 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 07 2C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BA CE 01 00 35 04 06 00 D4 27 4F D1 00 00 D0 [11:31:18]Write i2c OK [11:31:18]MH_I2C_Read... [11:31:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:18]Read from MH i2c: E2 [11:31:18]MH_I2C_Read... [11:31:18]Read from MH i2c: E2 03 00 [11:31:18]MH_I2C_Read... [11:31:18]Read from MH i2c: E2 03 00 3D 20 00 90 00 D1 [11:31:18]RAPDU: 90 00 [11:31:18]wFMCommunicate OK [11:31:18]wFMCommunicate request_size=7 [11:31:18]MH_SAM_APDU [11:31:18]CAPDU: 80 0D 02 02 02 8A 71 [11:31:18]Write to MH i2c: E2 0A 00 3E 20 80 0D 02 02 02 00 8A 71 00 00 D7 [11:31:18]Write i2c OK [11:31:18]MH_I2C_Read... [11:31:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:18]Read from MH i2c: E2 [11:31:18]MH_I2C_Read... [11:31:18]Read from MH i2c: E2 03 00 [11:31:18]MH_I2C_Read... [11:31:18]Read from MH i2c: E2 03 00 3E 20 00 90 00 D2 [11:31:18]RAPDU: 90 00 [11:31:18]wFMCommunicate OK [11:31:18]wFMCommunicate request_size=4 [11:31:18]MH_SAM_APDU [11:31:18]CAPDU: 80 0D 03 02 [11:31:18]Write to MH i2c: E2 08 00 3F 20 80 0D 03 02 00 00 00 00 DA [11:31:18]Write i2c OK [11:31:18]MH_I2C_Read... [11:31:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:19]Read from MH i2c: E2 [11:31:19]MH_I2C_Read... [11:31:19]Read from MH i2c: E2 0B 00 [11:31:19]MH_I2C_Read... [11:31:19]Read from MH i2c: E2 0B 00 3F 20 00 E2 7A 23 8B 7D 06 A0 EF 90 00 F7 [11:31:19]RAPDU: E2 7A 23 8B 7D 06 A0 EF 90 00 [11:31:19]wFMCommunicate OK [11:31:19]SAM_PROTO_SignData done [11:31:19]FM_MakeSignedData done [11:31:19]CreateOFDProtocolMessage [11:31:19]wFMCommunicate request_size=4 [11:31:19]MH_SAM_APDU [11:31:19]CAPDU: 80 11 00 00 [11:31:19]Write to MH i2c: E2 08 00 40 20 80 11 00 00 00 00 00 00 DA [11:31:19]Write i2c OK [11:31:19]MH_I2C_Read... [11:31:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:19]Read from MH i2c: E2 [11:31:19]MH_I2C_Read... [11:31:19]Read from MH i2c: E2 17 00 [11:31:19]MH_I2C_Read... [11:31:19]Read from MH i2c: E2 17 00 40 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 35 [11:31:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:31:19]wFMCommunicate OK [11:31:19]CreateOFDProtocolMessage done [11:31:19]OFDSenderStorePacket 118458 [11:31:19]StoreOFDPacket docnum=118458 [11:31:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 DA 5C 04 01 2B 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 07 2C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BA CE 01 00 35 04 06 00 D4 27 4F D1 8A 71 E2 7A 23 8B 7D 06 A0 EF [11:31:19]CheckFolder [11:31:19]dirname=/storage/ofd_packets [11:31:19]CheckFolder done [11:31:19]ProducePacketName [11:31:19]name=ofd_packets/00118458 [11:31:19]NVStorageSaveData ofd_packets/00118458 [11:31:19]File name is /storage/ofd_packets/00118458 [11:31:19]Write 298 bytes [11:31:19]NVStorageSaveData done [11:31:19]OFDSenderStorePacket done [11:31:19]KKMCreateOFDPacket done [11:31:19]NVStorageSaveData kkm_last_timestamp [11:31:19]File name is /storage/kkm_last_timestamp [11:31:19]Write 4 bytes [11:31:19]NVStorageSaveData done [11:31:19]ExternCall_PrintAddStr [11:31:19]wPrintStart [11:31:19]Write to MH i2c: 01 00 00 41 20 61 [11:31:19]Write i2c OK [11:31:19]MH_I2C_Read... [11:31:19]Read from MH i2c: 01 [11:31:19]MH_I2C_Read... [11:31:19]Read from MH i2c: 01 07 00 [11:31:19]MH_I2C_Read... [11:31:19]Read from MH i2c: 01 07 00 41 20 00 00 00 00 00 FF 0F 76 [11:31:19]RasterBufferAndPrint [11:31:19]line Счет N : (1)949327 [11:31:19]line ИНН: 02508201610067 [11:31:19]line Контрольно-Кассовый Чек [11:31:19]line ПРОДАЖА [11:31:19]line ТРК (МРК, ГНК) : 21 [11:31:19]line Товар: 2710194800 [11:31:19]line ДТ-К-5 [11:31:19]line 100.000 * 76.20 [11:31:19]line = 7620.00 [11:31:19]line НДС 12% НСП 1% [11:31:19]line > о реализуемом товаре [11:31:19]line ИТОГО: 7620.00 [11:31:19]line НСП 1% : 67.43 [11:31:19]line НДС 12% : 809.20 [11:31:19]line Наличными: 0.00 [11:31:19]line Безнал.: 7620.00 [11:31:19]line Место: АЗС № 134 "Партнер Нефть" [11:31:19]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:31:19]line СНО: Общий режим [11:31:19]line Чек 127 28.07.2024 11:31 [11:31:19]line Смена: 433 ФФД: 1.0 [11:31:19]line ЗНМ: 0300000044 [11:31:19]line РНМ: 0000000000092660 [11:31:19]line Версия ККМ: 001 [11:31:19]line Платежная система: O! деньги [11:31:19]line ФМ: 0000000000874939 [11:31:19]line ФД: 118458 [11:31:19]line ФПД: 233265307945585 [11:31:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113119&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118458&fm=233265307945585&tin=02508201610067®Number=0000000000092660&sum=762000 [11:31:19]written 0, free lines is 4095 [11:31:19]OFD Sender: Processing packet 118458 [packets to send 86, broken 85] [11:31:19]ProducePacketName [11:31:19]name=ofd_packets/00118458 [11:31:19]OFD Sender: To server: pG, [11:31:19]CommunicateWithHost lk.salyk.kg:30040 [11:31:19]ConnectInit lk.salyk.kg [11:31:19]Connected sock=10 [11:31: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 39 33 39 0C 01 00 00 DA 5C 04 01 2B 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 07 2C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BA CE 01 00 35 04 06 00 D4 27 4F D1 8A 71 E2 7A 23 8B 7D 06 A0 EF [11:31:19]Write to MH i2c: 01 00 00 6A 20 8A [11:31:19]Write i2c OK [11:31:19]MH_I2C_Read... [11:31:19]Read from MH i2c: 01 [11:31:19]MH_I2C_Read... [11:31:19]Read from MH i2c: 01 07 00 [11:31:19]MH_I2C_Read... [11:31:19]Read from MH i2c: 01 07 00 6A 20 00 00 00 00 00 F5 0C 92 [11:31:19]RasterBufferAndPrint [11:31:19]line [11:31:19]line [11:31:19]line [11:31:19]line [11:31:19]line [11:31:19]written 0, free lines is 3324 [11:31:19]MH_Cut [11:31:19]Write to MH i2c: D1 01 00 71 20 01 63 [11:31:19]Write i2c OK [11:31:19]MH_I2C_Read... [11:31:19]Read from MH i2c: D1 [11:31:19]MH_I2C_Read... [11:31:19]Read from MH i2c: D1 01 00 [11:31:19]MH_I2C_Read... [11:31:19]Read from MH i2c: D1 01 00 71 20 00 62 [11:31:19]Write to MH i2c: 01 00 00 72 20 92 [11:31:19]Write i2c OK [11:31:19]MH_I2C_Read... [11:31:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 08 09 47 00 E9 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BA CE 01 00 F4 03 04 00 98 D9 A5 66 B6 04 01 00 00 C1 48 78 C1 8F 19 69 2E [11:31:19]CommunicateWithHost err = 0 [11:31:19]CheckOFDResponse [11:31:19]1017 (14) - 77093643461234 [11:31:19]1041 (16) - 0000000000874939 [11:31:19]1040 (4) - 118458 [11:31:19]1012 (4) - 28.07.2024 05:39 [11:31:19]1206 (1) - 0 [11:31:19]OFD Sender: Remove packet 118458 [11:31:19]ProducePacketName [11:31:19]name=ofd_packets/00118458 [11:31:19]NVStorageDeleteData [11:31:20]OFD Sender: No OFD packet to send [11:31:20]*** Cut start [11:31:20]*** Partial cut [11:31:20]*** CUTSNS_PIN = 1 [11:31:20]*** CUTSNS_PIN = 0 [11:31:20]*** Brake cut motor [11:31:20]Read from MH i2c: 01 [11:31:20]MH_I2C_Read... [11:31:20]*** Stop cut motor [11:31:20]*** Cut end [11:31:20]Read from MH i2c: 01 07 00 [11:31:20]MH_I2C_Read... [11:31:20]Read from MH i2c: 01 07 00 72 20 00 00 00 00 00 FF 0F A7 [11:31:20]process_action close_receipt done [11:31:20]requested_data is exist [11:31:20]produce_requested_data [11:31:20]requested_item fm.sn is exist - process it [11:31:20]wFMCommunicate request_size=4 [11:31:20]MH_SAM_APDU [11:31:20]CAPDU: 80 11 00 00 [11:31:20]Write to MH i2c: E2 08 00 73 20 80 11 00 00 00 00 00 00 0D [11:31:20]Write i2c OK [11:31:20]MH_I2C_Read... [11:31:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:20]Read from MH i2c: E2 [11:31:20]MH_I2C_Read... [11:31:20]Read from MH i2c: E2 17 00 [11:31:20]MH_I2C_Read... [11:31:20]Read from MH i2c: E2 17 00 73 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 68 [11:31:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:31:20]wFMCommunicate OK [11:31:20]requested_item fd.num is exist - process it [11:31:20]SAM_PROTO_GetFieldsCounters [11:31:20]wFMCommunicate request_size=4 [11:31:20]MH_SAM_APDU [11:31:20]CAPDU: 80 13 00 00 [11:31:20]Write to MH i2c: E2 08 00 74 20 80 13 00 00 00 00 00 00 10 [11:31:20]Write i2c OK [11:31:20]MH_I2C_Read... [11:31:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:21]Read from MH i2c: E2 [11:31:21]MH_I2C_Read... [11:31:21]Read from MH i2c: E2 62 00 [11:31:21]MH_I2C_Read... [11:31:21]Read from MH i2c: E2 62 00 74 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BA CE 01 00 0E 04 04 00 B1 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 EF [11:31:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BA CE 01 00 0E 04 04 00 B1 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 [11:31:21]wFMCommunicate OK [11:31:21]SAM_PROTO_GetFieldsCounters done [11:31:21]requested_item shift.num is exist - process it [11:31:21]requested_item shift.opened is exist - process it [11:31:21]req_shift_opened [11:31:21]FM_GetShiftState [11:31:21]SAM_PROTO_GetShiftState [11:31:21]wFMCommunicate request_size=4 [11:31:21]MH_SAM_APDU [11:31:21]CAPDU: 80 13 01 00 [11:31:21]Write to MH i2c: E2 08 00 75 20 80 13 01 00 00 00 00 00 12 [11:31:21]Write i2c OK [11:31:21]MH_I2C_Read... [11:31:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:21]Read from MH i2c: E2 [11:31:21]MH_I2C_Read... [11:31:21]Read from MH i2c: E2 0E 00 [11:31:21]MH_I2C_Read... [11:31:21]Read from MH i2c: E2 0E 00 75 20 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 E9 [11:31:21]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:31:21]wFMCommunicate OK [11:31:21]SAM_PROTO_GetShiftState done [11:31:21]FM_GetShiftState done [11:31:21]req_shift_opened done [11:31:21]requested_item shift.open_date is exist - process it [11:31:21]req_shift_open_date [11:31:21]req_shift_open_date done [11:31:21]produce_requested_data done [11:31:21]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118458,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:31:21]process_action_free close_receipt [11:31:21]json_value_free [11:31:21]json_value_free done [11:31:21]process_json_proto returns [11:31:21]Send response to host [11:31:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118458,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:31:21]free response buf [11:31:21]execute_script done [11:31:21]execute_script returns [11:31:21]free content buf [11:31:21]Sock 9.Close socket [11:31:21]Sock 9.Thread stoped [11:31:25]OFD Sender: No OFD packet to send [11:31:30]OFD Sender: No OFD packet to send [11:31:35]OFD Sender: No OFD packet to send [11:31:40]OFD Sender: No OFD packet to send [11:31:45]OFD Sender: No OFD packet to send [11:31:50]OFD Sender: No OFD packet to send [11:31:55]OFD Sender: No OFD packet to send [11:32:00]OFD Sender: No OFD packet to send [11:32:05]OFD Sender: No OFD packet to send [11:32:10]OFD Sender: No OFD packet to send [11:32:15]OFD Sender: No OFD packet to send [11:32:20]OFD Sender: No OFD packet to send [11:32:25]OFD Sender: No OFD packet to send [11:32:30]OFD Sender: No OFD packet to send [11:32:35]OFD Sender: No OFD packet to send [11:32:40]OFD Sender: No OFD packet to send [11:32:45]OFD Sender: No OFD packet to send [11:32:50]OFD Sender: No OFD packet to send [11:32:55]OFD Sender: No OFD packet to send [11:33:00]OFD Sender: No OFD packet to send [11:33:05]OFD Sender: No OFD packet to send [11:33:10]OFD Sender: No OFD packet to send [11:33:15]OFD Sender: No OFD packet to send [11:33:20]OFD Sender: No OFD packet to send [11:33:25]OFD Sender: No OFD packet to send [11:33:30]OFD Sender: No OFD packet to send [11:33:35]OFD Sender: No OFD packet to send [11:33:36]accept exits with 7 [11:33:36]New connection [11:33:36]New thread 3066924388 created [11:33:36]Thread 3067067748 joined [11:33:36]Waiting for new connection... [11:33:36] Sock 7.Parse request [11:33:36]Sock 7.Check first char [11:33:36]Sock 7.First char is OK [11:33:36]request: POST /json_proto HTTP/1.0 [11:33:36]Method: POST [11:33:36]URL: /json_proto [11:33:36]Method is POST - this is cgi request [11:33:36]url: /json_proto [11:33:36]query_string will be loaded in cgi processing [11:33:36]execute_cgi json_proto POST (null) [11:33:36]execute_cgi path=json_proto method=POST [11:33:36]POST find Content-Length [11:33:36]Host: 172.17.45.7:8080 [11:33:36]Content-Length: 674 [11:33:36]Content-Type: application/json [11:33:36] [11:33:36]POST finish read [11:33:36]Found Content-Length = 674 [11:33:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:36]execute_script... [11:33: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)949331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:36]POST & json_proto [11:33:36]process_json_proto [11:33:36]json parsed OK: [11:33:36]protocol is kg_v1.0 [11:33:36]action value=close_receipt [11:33:36]process_action close_receipt [11:33:36]cmd_close_receipt [11:33:36]MH_GetDate [11:33:36]Write to MH i2c: F0 00 00 76 20 85 [11:33:36]Write i2c OK [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: F0 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: F0 09 00 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: F0 09 00 76 20 00 92 2C A6 66 90 0F 3E 66 9B [11:33:36]GetLastDocTimeStamp 1722166279 [11:33:36]current date 1722166418 [11:33:36]FM_GetShiftState [11:33:36]SAM_PROTO_GetShiftState [11:33:36]wFMCommunicate request_size=4 [11:33:36]MH_SAM_APDU [11:33:36]CAPDU: 80 13 01 00 [11:33:36]Write to MH i2c: E2 08 00 77 20 80 13 01 00 00 00 00 00 14 [11:33:36]Write i2c OK [11:33:36]MH_I2C_Read... [11:33:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:36]Read from MH i2c: E2 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 0E 00 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 0E 00 77 20 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 EB [11:33:36]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:33:36]wFMCommunicate OK [11:33:36]SAM_PROTO_GetShiftState done [11:33:36]FM_GetShiftState done [11:33:36]opened in 1722125364 [11:33:36]opened+sec_in_day 1722211764 [11:33:36]quantity*price = 30022 [11:33:36]sum+1 = 30024 [11:33:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 128 28.07.2024 11:33 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118459 ФПД: 19614663597500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113338&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118459&fm=19614663597500&tin=02508201610067®Number=0000000000092660&sum=30000 [11:33:37]StoreToDocumentArchive [11:33:37]shift 433 fd 118459 [11:33:37]save to /storage/0433/doc_00118459 [11:33:37]save last doc name /storage/0433/doc_00118459 to /storage/kkm_last_doc_name [11:33:37]save OK [11:33:37]Clear old archive folders... [11:33:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:33:37]tlvbuf is 0012C7D0 [11:33:37]SAM_PROTO_ClearQueue [11:33:37]wFMCommunicate request_size=4 [11:33:37]MH_SAM_APDU [11:33:37]CAPDU: 80 09 00 00 [11:33:37]Write to MH i2c: E2 08 00 84 20 80 09 00 00 00 00 00 00 16 [11:33:37]Write i2c OK [11:33:37]MH_I2C_Read... [11:33:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:37]Read from MH i2c: E2 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: E2 03 00 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: E2 03 00 84 20 00 90 00 18 [11:33:37]RAPDU: 90 00 [11:33:37]wFMCommunicate OK [11:33:37]SAM_PROTO_ClearQueue done [11:33:37]KKMCreateOFDPacket [11:33:37]OFDProtocolAddRootSTLVToBuf [11:33:37]FM_MakeSignedData [11:33:37]FM_MakeSignedData [11:33:37]SAM_PROTO_SignData [11:33:37]wFMCommunicate request_size=4 [11:33:37]MH_SAM_APDU [11:33:37]CAPDU: 80 0D 01 02 [11:33:37]Write to MH i2c: E2 08 00 85 20 80 0D 01 02 00 00 00 00 1E [11:33:37]Write i2c OK [11:33:37]MH_I2C_Read... [11:33:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:37]Read from MH i2c: E2 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: E2 03 00 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: E2 03 00 85 20 00 90 00 19 [11:33:37]RAPDU: 90 00 [11:33:37]wFMCommunicate OK [11:33:37]wFMCommunicate request_size=255 [11:33:37]MH_SAM_APDU [11:33:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 80 00 00 00 F4 03 04 00 92 2C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BB CE 01 00 35 04 06 00 11 D6 E5 0E [11:33:37]Write to MH i2c: E2 02 01 86 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 80 00 00 00 F4 03 04 00 92 2C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BB CE 01 00 35 04 06 00 11 D6 E5 0E 00 00 CB [11:33:37]Write i2c OK [11:33:37]MH_I2C_Read... [11:33:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:37]Read from MH i2c: E2 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: E2 03 00 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: E2 03 00 86 20 00 90 00 1A [11:33:37]RAPDU: 90 00 [11:33:37]wFMCommunicate OK [11:33:37]wFMCommunicate request_size=7 [11:33:37]MH_SAM_APDU [11:33:37]CAPDU: 80 0D 02 02 02 5D BC [11:33:37]Write to MH i2c: E2 0A 00 87 20 80 0D 02 02 02 00 5D BC 00 00 3E [11:33:37]Write i2c OK [11:33:37]MH_I2C_Read... [11:33:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:37]Read from MH i2c: E2 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: E2 03 00 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: E2 03 00 87 20 00 90 00 1B [11:33:37]RAPDU: 90 00 [11:33:37]wFMCommunicate OK [11:33:37]wFMCommunicate request_size=4 [11:33:37]MH_SAM_APDU [11:33:37]CAPDU: 80 0D 03 02 [11:33:37]Write to MH i2c: E2 08 00 88 20 80 0D 03 02 00 00 00 00 23 [11:33:37]Write i2c OK [11:33:37]MH_I2C_Read... [11:33:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:37]Read from MH i2c: E2 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: E2 0B 00 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: E2 0B 00 88 20 00 BF 82 25 4D 96 00 CA AE 90 00 E5 [11:33:37]RAPDU: BF 82 25 4D 96 00 CA AE 90 00 [11:33:37]wFMCommunicate OK [11:33:37]SAM_PROTO_SignData done [11:33:37]FM_MakeSignedData done [11:33:37]CreateOFDProtocolMessage [11:33:37]wFMCommunicate request_size=4 [11:33:37]MH_SAM_APDU [11:33:37]CAPDU: 80 11 00 00 [11:33:37]Write to MH i2c: E2 08 00 89 20 80 11 00 00 00 00 00 00 23 [11:33:37]Write i2c OK [11:33:37]MH_I2C_Read... [11:33:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:37]Read from MH i2c: E2 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: E2 17 00 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: E2 17 00 89 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7E [11:33:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:33:37]wFMCommunicate OK [11:33:37]CreateOFDProtocolMessage done [11:33:37]OFDSenderStorePacket 118459 [11:33:37]StoreOFDPacket docnum=118459 [11:33:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 1F 53 04 01 86 33 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 80 00 00 00 F4 03 04 00 92 2C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BB CE 01 00 35 04 06 00 11 D6 E5 0E 5D BC BF 82 25 4D 96 00 CA AE [11:33:37]CheckFolder [11:33:37]dirname=/storage/ofd_packets [11:33:37]CheckFolder done [11:33:37]ProducePacketName [11:33:37]name=ofd_packets/00118459 [11:33:37]NVStorageSaveData ofd_packets/00118459 [11:33:37]File name is /storage/ofd_packets/00118459 [11:33:37]Write 298 bytes [11:33:37]NVStorageSaveData done [11:33:37]OFDSenderStorePacket done [11:33:37]KKMCreateOFDPacket done [11:33:37]NVStorageSaveData kkm_last_timestamp [11:33:37]File name is /storage/kkm_last_timestamp [11:33:37]Write 4 bytes [11:33:37]NVStorageSaveData done [11:33:37]ExternCall_PrintAddStr [11:33:37]wPrintStart [11:33:37]Write to MH i2c: 01 00 00 8A 20 AA [11:33:37]Write i2c OK [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: 01 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: 01 07 00 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: 01 07 00 8A 20 00 00 00 00 00 FF 0F BF [11:33:37]RasterBufferAndPrint [11:33:37]line Счет N : (1)949331 [11:33:37]line ИНН: 02508201610067 [11:33:37]line Контрольно-Кассовый Чек [11:33:37]line ПРОДАЖА [11:33:37]line ТРК (МРК, ГНК) : 44 [11:33:37]line Товар: 2710194800 [11:33:37]line ДТ-К-5 [11:33:37]line 3.940 * 76.20 [11:33:37]line = 300.23 [11:33:37]line НДС 12% НСП 1% [11:33:37]line > о реализуемом товаре [11:33:37]line ОКРУГЛЕНИЕ: -0.23 [11:33:37]line ИТОГО: 300.00 [11:33:37]line Внесено: 300.00 [11:33:37]line СДАЧА: 0.00 [11:33:37]line НСП 1% : 2.66 [11:33:37]line НДС 12% : 31.88 [11:33:37]line Наличными: 300.00 [11:33:37]line Безнал.: 0.00 [11:33:37]line Место: АЗС № 134 "Партнер Нефть" [11:33:37]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:33:37]line СНО: Общий режим [11:33:37]line Чек 128 28.07.2024 11:33 [11:33:37]line Смена: 433 ФФД: 1.0 [11:33:37]line ЗНМ: 0300000044 [11:33:37]line РНМ: 0000000000092660 [11:33:37]line Версия ККМ: 001 [11:33:37]line ФМ: 0000000000874939 [11:33:37]line ФД: 118459 [11:33:37]line ФПД: 19614663597500 [11:33:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113338&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118459&fm=19614663597500&tin=02508201610067®Number=0000000000092660&sum=30000 [11:33:37]written 0, free lines is 4095 [11:33:37]OFD Sender: Processing packet 118459 [packets to send 86, broken 85] [11:33:37]ProducePacketName [11:33:37]name=ofd_packets/00118459 [11:33:37]OFD Sender: To server: pG, [11:33:37]CommunicateWithHost lk.salyk.kg:30040 [11:33:37]ConnectInit lk.salyk.kg [11:33:38]Connected sock=9 [11:33: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 39 33 39 0C 01 00 00 1F 53 04 01 86 33 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 80 00 00 00 F4 03 04 00 92 2C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BB CE 01 00 35 04 06 00 11 D6 E5 0E 5D BC BF 82 25 4D 96 00 CA AE [11:33:38]Write to MH i2c: 01 00 00 B4 20 D4 [11:33:38]Write i2c OK [11:33:38]MH_I2C_Read... [11:33:38]Read from MH i2c: 01 [11:33:38]MH_I2C_Read... [11:33:38]Read from MH i2c: 01 07 00 [11:33:38]MH_I2C_Read... [11:33:38]Read from MH i2c: 01 07 00 B4 20 00 00 00 00 00 E0 0C C7 [11:33:38]RasterBufferAndPrint [11:33:38]line [11:33:38]line [11:33:38]line [11:33:38]line [11:33:38]line [11:33:38]written 0, free lines is 3302 [11:33:38]MH_Cut [11:33:38]Write to MH i2c: D1 01 00 BB 20 01 AD [11:33:38]Write i2c OK [11:33:38]MH_I2C_Read... [11:33:38]Read from MH i2c: D1 [11:33:38]MH_I2C_Read... [11:33:38]Read from MH i2c: D1 01 00 [11:33:38]MH_I2C_Read... [11:33:38]Read from MH i2c: D1 01 00 BB 20 00 AC [11:33:38]Write to MH i2c: 01 00 00 BC 20 DC [11:33:38]Write i2c OK [11:33:38]MH_I2C_Read... [11:33:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 56 E0 47 00 C6 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 39 33 39 10 04 04 00 BB CE 01 00 F4 03 04 00 22 DA A5 66 B6 04 01 00 00 14 B7 34 73 4F 5C 24 A2 [11:33:38]CommunicateWithHost err = 0 [11:33:38]CheckOFDResponse [11:33:38]1017 (14) - 77093643461234 [11:33:38]1041 (16) - 0000000000874939 [11:33:38]1040 (4) - 118459 [11:33:38]1012 (4) - 28.07.2024 05:41 [11:33:38]1206 (1) - 0 [11:33:38]OFD Sender: Remove packet 118459 [11:33:38]ProducePacketName [11:33:38]name=ofd_packets/00118459 [11:33:38]NVStorageDeleteData [11:33:38]OFD Sender: No OFD packet to send [11:33:39]*** Cut start [11:33:39]*** Partial cut [11:33:39]*** CUTSNS_PIN = 1 [11:33:39]*** CUTSNS_PIN = 0 [11:33:39]*** Brake cut motor [11:33:39]Read from MH i2c: 01 [11:33:39]MH_I2C_Read... [11:33:39]*** Stop cut motor [11:33:39]*** Cut end [11:33:39]Read from MH i2c: 01 07 00 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: 01 07 00 BC 20 00 00 00 00 00 FF 0F F1 [11:33:39]process_action close_receipt done [11:33:39]requested_data is exist [11:33:39]produce_requested_data [11:33:39]requested_item fm.sn is exist - process it [11:33:39]wFMCommunicate request_size=4 [11:33:39]MH_SAM_APDU [11:33:39]CAPDU: 80 11 00 00 [11:33:39]Write to MH i2c: E2 08 00 BD 20 80 11 00 00 00 00 00 00 57 [11:33:39]Write i2c OK [11:33:39]MH_I2C_Read... [11:33:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:39]Read from MH i2c: E2 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 17 00 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 17 00 BD 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B2 [11:33:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:33:39]wFMCommunicate OK [11:33:39]requested_item fd.num is exist - process it [11:33:39]SAM_PROTO_GetFieldsCounters [11:33:39]wFMCommunicate request_size=4 [11:33:39]MH_SAM_APDU [11:33:39]CAPDU: 80 13 00 00 [11:33:39]Write to MH i2c: E2 08 00 BE 20 80 13 00 00 00 00 00 00 5A [11:33:39]Write i2c OK [11:33:39]MH_I2C_Read... [11:33:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:39]Read from MH i2c: E2 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 62 00 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 62 00 BE 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BB CE 01 00 0E 04 04 00 B1 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 3D [11:33:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BB CE 01 00 0E 04 04 00 B1 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 [11:33:39]wFMCommunicate OK [11:33:39]SAM_PROTO_GetFieldsCounters done [11:33:39]requested_item shift.num is exist - process it [11:33:39]requested_item shift.opened is exist - process it [11:33:39]req_shift_opened [11:33:39]FM_GetShiftState [11:33:39]SAM_PROTO_GetShiftState [11:33:39]wFMCommunicate request_size=4 [11:33:39]MH_SAM_APDU [11:33:39]CAPDU: 80 13 01 00 [11:33:39]Write to MH i2c: E2 08 00 BF 20 80 13 01 00 00 00 00 00 5C [11:33:39]Write i2c OK [11:33:39]MH_I2C_Read... [11:33:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:39]Read from MH i2c: E2 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 0E 00 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 0E 00 BF 20 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 33 [11:33:39]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:33:39]wFMCommunicate OK [11:33:39]SAM_PROTO_GetShiftState done [11:33:39]FM_GetShiftState done [11:33:39]req_shift_opened done [11:33:39]requested_item shift.open_date is exist - process it [11:33:39]req_shift_open_date [11:33:39]req_shift_open_date done [11:33:39]produce_requested_data done [11:33:39]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118459,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:33:39]process_action_free close_receipt [11:33:39]json_value_free [11:33:39]json_value_free done [11:33:39]process_json_proto returns [11:33:39]Send response to host [11:33:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118459,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:33:39]free response buf [11:33:39]execute_script done [11:33:39]execute_script returns [11:33:39]free content buf [11:33:39]Sock 7.Close socket [11:33:39]Sock 7.Thread stoped [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:15]accept exits with 10 [11:34:15]New connection [11:34:15]New thread 3067067748 created [11:34:15]Thread 3066924388 joined [11:34:15]Waiting for new connection... [11:34:15] Sock 10.Parse request [11:34:15]Sock 10.Check first char [11:34:15]Sock 10.First char is OK [11:34:15]request: POST /json_proto HTTP/1.0 [11:34:15]Method: POST [11:34:15]URL: /json_proto [11:34:15]Method is POST - this is cgi request [11:34:15]url: /json_proto [11:34:15]query_string will be loaded in cgi processing [11:34:15]execute_cgi json_proto POST (null) [11:34:15]execute_cgi path=json_proto method=POST [11:34:15]POST find Content-Length [11:34:15]Host: 172.17.45.7:8080 [11:34:15]Content-Length: 801 [11:34:15]Content-Type: application/json [11:34:15] [11:34:15]POST finish read [11:34:15]Found Content-Length = 801 [11:34:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 100.000, "sum" : 7620.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" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:15]execute_script... [11:34: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)949329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 100.000, "sum" : 7620.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" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:15]POST & json_proto [11:34:15]process_json_proto [11:34:15]json parsed OK: [11:34:15]protocol is kg_v1.0 [11:34:15]action value=close_receipt [11:34:15]process_action close_receipt [11:34:15]cmd_close_receipt [11:34:15]MH_GetDate [11:34:15]Write to MH i2c: F0 00 00 C0 20 CF [11:34:15]Write i2c OK [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: F0 [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: F0 09 00 [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: F0 09 00 C0 20 00 BA 2C A6 66 90 0F 3E 66 0D [11:34:15]GetLastDocTimeStamp 1722166418 [11:34:15]current date 1722166458 [11:34:15]FM_GetShiftState [11:34:15]SAM_PROTO_GetShiftState [11:34:15]wFMCommunicate request_size=4 [11:34:15]MH_SAM_APDU [11:34:15]CAPDU: 80 13 01 00 [11:34:15]Write to MH i2c: E2 08 00 C1 20 80 13 01 00 00 00 00 00 5E [11:34:15]Write i2c OK [11:34:15]MH_I2C_Read... [11:34:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:15]Read from MH i2c: E2 [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: E2 0E 00 [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: E2 0E 00 C1 20 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 35 [11:34:15]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:34:15]wFMCommunicate OK [11:34:15]SAM_PROTO_GetShiftState done [11:34:15]FM_GetShiftState done [11:34:15]opened in 1722125364 [11:34:15]opened+sec_in_day 1722211764 [11:34:15]quantity*price = 762000 [11:34:15]sum+1 = 762001 [11:34:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7620.00 НСП 1% : 67.43 НДС 12% : 809.20 Наличными: 0.00 Безнал.: 7620.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 129 28.07.2024 11:34 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118460 ФПД: 42703446120405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113418&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118460&fm=42703446120405&tin=02508201610067®Number=0000000000092660&sum=762000 [11:34:16]StoreToDocumentArchive [11:34:16]shift 433 fd 118460 [11:34:16]save to /storage/0433/doc_00118460 [11:34:16]save last doc name /storage/0433/doc_00118460 to /storage/kkm_last_doc_name [11:34:16]save OK [11:34:16]Clear old archive folders... [11:34:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:34:16]tlvbuf is 0012CAD0 [11:34:16]SAM_PROTO_ClearQueue [11:34:16]wFMCommunicate request_size=4 [11:34:16]MH_SAM_APDU [11:34:16]CAPDU: 80 09 00 00 [11:34:16]Write to MH i2c: E2 08 00 CE 20 80 09 00 00 00 00 00 00 60 [11:34:16]Write i2c OK [11:34:16]MH_I2C_Read... [11:34:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:16]Read from MH i2c: E2 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 03 00 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 03 00 CE 20 00 90 00 62 [11:34:16]RAPDU: 90 00 [11:34:16]wFMCommunicate OK [11:34:16]SAM_PROTO_ClearQueue done [11:34:16]KKMCreateOFDPacket [11:34:16]OFDProtocolAddRootSTLVToBuf [11:34:16]FM_MakeSignedData [11:34:16]FM_MakeSignedData [11:34:16]SAM_PROTO_SignData [11:34:16]wFMCommunicate request_size=4 [11:34:16]MH_SAM_APDU [11:34:16]CAPDU: 80 0D 01 02 [11:34:16]Write to MH i2c: E2 08 00 CF 20 80 0D 01 02 00 00 00 00 68 [11:34:16]Write i2c OK [11:34:16]MH_I2C_Read... [11:34:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:16]Read from MH i2c: E2 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 03 00 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 03 00 CF 20 00 90 00 63 [11:34:16]RAPDU: 90 00 [11:34:16]wFMCommunicate OK [11:34:16]wFMCommunicate request_size=255 [11:34:16]MH_SAM_APDU [11:34:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 BA 2C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BC CE 01 00 35 04 06 00 26 D6 AB BC [11:34:16]Write to MH i2c: E2 02 01 D0 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 BA 2C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BC CE 01 00 35 04 06 00 26 D6 AB BC 00 00 62 [11:34:16]Write i2c OK [11:34:16]MH_I2C_Read... [11:34:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:17]Read from MH i2c: E2 [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: E2 03 00 [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: E2 03 00 D0 20 00 90 00 64 [11:34:17]RAPDU: 90 00 [11:34:17]wFMCommunicate OK [11:34:17]wFMCommunicate request_size=7 [11:34:17]MH_SAM_APDU [11:34:17]CAPDU: 80 0D 02 02 02 97 D5 [11:34:17]Write to MH i2c: E2 0A 00 D1 20 80 0D 02 02 02 00 97 D5 00 00 DB [11:34:17]Write i2c OK [11:34:17]MH_I2C_Read... [11:34:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:17]Read from MH i2c: E2 [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: E2 03 00 [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: E2 03 00 D1 20 00 90 00 65 [11:34:17]RAPDU: 90 00 [11:34:17]wFMCommunicate OK [11:34:17]wFMCommunicate request_size=4 [11:34:17]MH_SAM_APDU [11:34:17]CAPDU: 80 0D 03 02 [11:34:17]Write to MH i2c: E2 08 00 D2 20 80 0D 03 02 00 00 00 00 6D [11:34:17]Write i2c OK [11:34:17]MH_I2C_Read... [11:34:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:17]Read from MH i2c: E2 [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: E2 0B 00 [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: E2 0B 00 D2 20 00 68 B8 F9 6E 69 83 A7 14 90 00 9C [11:34:17]RAPDU: 68 B8 F9 6E 69 83 A7 14 90 00 [11:34:17]wFMCommunicate OK [11:34:17]SAM_PROTO_SignData done [11:34:17]FM_MakeSignedData done [11:34:17]CreateOFDProtocolMessage [11:34:17]wFMCommunicate request_size=4 [11:34:17]MH_SAM_APDU [11:34:17]CAPDU: 80 11 00 00 [11:34:17]Write to MH i2c: E2 08 00 D3 20 80 11 00 00 00 00 00 00 6D [11:34:17]Write i2c OK [11:34:17]MH_I2C_Read... [11:34:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:17]Read from MH i2c: E2 [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: E2 17 00 [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: E2 17 00 D3 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C8 [11:34:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:34:17]wFMCommunicate OK [11:34:17]CreateOFDProtocolMessage done [11:34:17]OFDSenderStorePacket 118460 [11:34:17]StoreOFDPacket docnum=118460 [11:34:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 65 F4 04 01 E2 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 BA 2C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BC CE 01 00 35 04 06 00 26 D6 AB BC 97 D5 68 B8 F9 6E 69 83 A7 14 [11:34:17]CheckFolder [11:34:17]dirname=/storage/ofd_packets [11:34:17]CheckFolder done [11:34:17]ProducePacketName [11:34:17]name=ofd_packets/00118460 [11:34:17]NVStorageSaveData ofd_packets/00118460 [11:34:17]File name is /storage/ofd_packets/00118460 [11:34:17]Write 298 bytes [11:34:17]NVStorageSaveData done [11:34:17]OFDSenderStorePacket done [11:34:17]KKMCreateOFDPacket done [11:34:17]NVStorageSaveData kkm_last_timestamp [11:34:17]File name is /storage/kkm_last_timestamp [11:34:17]Write 4 bytes [11:34:17]NVStorageSaveData done [11:34:17]ExternCall_PrintAddStr [11:34:17]wPrintStart [11:34:17]Write to MH i2c: 01 00 00 D4 20 F4 [11:34:17]Write i2c OK [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: 01 [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: 01 07 00 [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: 01 07 00 D4 20 00 00 00 00 00 FF 0F 09 [11:34:17]RasterBufferAndPrint [11:34:17]line Счет N : (1)949329 [11:34:17]line ИНН: 02508201610067 [11:34:17]line Контрольно-Кассовый Чек [11:34:17]line ПРОДАЖА [11:34:17]line ТРК (МРК, ГНК) : 11 [11:34:17]line Товар: 2710194800 [11:34:17]line ДТ-К-5 [11:34:17]line 100.000 * 76.20 [11:34:17]line = 7620.00 [11:34:17]line НДС 12% НСП 1% [11:34:17]line > о реализуемом товаре [11:34:17]line ИТОГО: 7620.00 [11:34:17]line НСП 1% : 67.43 [11:34:17]line НДС 12% : 809.20 [11:34:17]line Наличными: 0.00 [11:34:17]line Безнал.: 7620.00 [11:34:17]line Место: АЗС № 134 "Партнер Нефть" [11:34:17]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:34:17]line СНО: Общий режим [11:34:17]line Чек 129 28.07.2024 11:34 [11:34:17]line Смена: 433 ФФД: 1.0 [11:34:17]line ЗНМ: 0300000044 [11:34:17]line РНМ: 0000000000092660 [11:34:17]line Версия ККМ: 001 [11:34:17]line Платежная система: O! деньги [11:34:17]line ФМ: 0000000000874939 [11:34:17]line ФД: 118460 [11:34:17]line ФПД: 42703446120405 [11:34:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113418&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118460&fm=42703446120405&tin=02508201610067®Number=0000000000092660&sum=762000 [11:34:17]OFD Sender: Processing packet 118460 [packets to send 86, broken 85] [11:34:17]ProducePacketName [11:34:17]name=ofd_packets/00118460 [11:34:17]OFD Sender: To server: pG, [11:34:17]CommunicateWithHost lk.salyk.kg:30040 [11:34:17]ConnectInit lk.salyk.kg [11:34:17]written 0, free lines is 4095 [11:34:17]Connected sock=9 [11:34:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 65 F4 04 01 E2 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 BA 2C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BC CE 01 00 35 04 06 00 26 D6 AB BC 97 D5 68 B8 F9 6E 69 83 A7 14 [11:34:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 23 78 47 00 13 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 39 33 39 10 04 04 00 BC CE 01 00 F4 03 04 00 4A DA A5 66 B6 04 01 00 00 06 6C 48 05 20 49 1E 91 [11:34:17]CommunicateWithHost err = 0 [11:34:17]CheckOFDResponse [11:34:17]1017 (14) - 77093643461234 [11:34:17]1041 (16) - 0000000000874939 [11:34:17]1040 (4) - 118460 [11:34:17]1012 (4) - 28.07.2024 05:42 [11:34:17]1206 (1) - 0 [11:34:17]OFD Sender: Remove packet 118460 [11:34:17]ProducePacketName [11:34:17]name=ofd_packets/00118460 [11:34:17]NVStorageDeleteData [11:34:18]Write to MH i2c: 01 00 00 FD 20 1D [11:34:18]Write i2c OK [11:34:18]MH_I2C_Read... [11:34:18]Read from MH i2c: 01 [11:34:18]MH_I2C_Read... [11:34:18]Read from MH i2c: 01 07 00 [11:34:18]MH_I2C_Read... [11:34:18]Read from MH i2c: 01 07 00 FD 20 00 00 00 00 00 FB 0C 2B [11:34:18]RasterBufferAndPrint [11:34:18]line [11:34:18]line [11:34:18]line [11:34:18]line [11:34:18]line [11:34:18]written 0, free lines is 3329 [11:34:18]MH_Cut [11:34:18]Write to MH i2c: D1 01 00 04 21 01 F7 [11:34:18]Write i2c OK [11:34:18]MH_I2C_Read... [11:34:18]Read from MH i2c: D1 [11:34:18]MH_I2C_Read... [11:34:18]Read from MH i2c: D1 01 00 [11:34:18]MH_I2C_Read... [11:34:18]Read from MH i2c: D1 01 00 04 21 00 F6 [11:34:18]Write to MH i2c: 01 00 00 05 21 26 [11:34:18]Write i2c OK [11:34:18]MH_I2C_Read... [11:34:18]OFD Sender: No OFD packet to send [11:34:18]*** Cut start [11:34:18]*** Partial cut [11:34:18]*** CUTSNS_PIN = 1 [11:34:18]*** CUTSNS_PIN = 0 [11:34:19]*** Brake cut motor [11:34:19]Read from MH i2c: 01 [11:34:19]MH_I2C_Read... [11:34:19]*** Stop cut motor [11:34:19]*** Cut end [11:34:19]Read from MH i2c: 01 07 00 [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: 01 07 00 05 21 00 00 00 00 00 FF 0F 3B [11:34:19]process_action close_receipt done [11:34:19]requested_data is exist [11:34:19]produce_requested_data [11:34:19]requested_item fm.sn is exist - process it [11:34:19]wFMCommunicate request_size=4 [11:34:19]MH_SAM_APDU [11:34:19]CAPDU: 80 11 00 00 [11:34:19]Write to MH i2c: E2 08 00 06 21 80 11 00 00 00 00 00 00 A1 [11:34:19]Write i2c OK [11:34:19]MH_I2C_Read... [11:34:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:19]Read from MH i2c: E2 [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: E2 17 00 [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: E2 17 00 06 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FC [11:34:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:34:19]wFMCommunicate OK [11:34:19]requested_item fd.num is exist - process it [11:34:19]SAM_PROTO_GetFieldsCounters [11:34:19]wFMCommunicate request_size=4 [11:34:19]MH_SAM_APDU [11:34:19]CAPDU: 80 13 00 00 [11:34:19]Write to MH i2c: E2 08 00 07 21 80 13 00 00 00 00 00 00 A4 [11:34:19]Write i2c OK [11:34:19]MH_I2C_Read... [11:34:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:19]Read from MH i2c: E2 [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: E2 62 00 [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: E2 62 00 07 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BC CE 01 00 0E 04 04 00 B1 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 8B [11:34:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BC CE 01 00 0E 04 04 00 B1 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 [11:34:19]wFMCommunicate OK [11:34:19]SAM_PROTO_GetFieldsCounters done [11:34:19]requested_item shift.num is exist - process it [11:34:19]requested_item shift.opened is exist - process it [11:34:19]req_shift_opened [11:34:19]FM_GetShiftState [11:34:19]SAM_PROTO_GetShiftState [11:34:19]wFMCommunicate request_size=4 [11:34:19]MH_SAM_APDU [11:34:19]CAPDU: 80 13 01 00 [11:34:19]Write to MH i2c: E2 08 00 08 21 80 13 01 00 00 00 00 00 A6 [11:34:19]Write i2c OK [11:34:19]MH_I2C_Read... [11:34:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:19]Read from MH i2c: E2 [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: E2 0E 00 [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: E2 0E 00 08 21 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 7D [11:34:19]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:34:19]wFMCommunicate OK [11:34:19]SAM_PROTO_GetShiftState done [11:34:19]FM_GetShiftState done [11:34:19]req_shift_opened done [11:34:19]requested_item shift.open_date is exist - process it [11:34:19]req_shift_open_date [11:34:19]req_shift_open_date done [11:34:19]produce_requested_data done [11:34:19]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118460,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:34:19]process_action_free close_receipt [11:34:19]json_value_free [11:34:19]json_value_free done [11:34:19]process_json_proto returns [11:34:19]Send response to host [11:34:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118460,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:34:19]free response buf [11:34:19]execute_script done [11:34:19]execute_script returns [11:34:19]free content buf [11:34:19]Sock 10.Close socket [11:34:19]Sock 10.Thread stoped [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:54]accept exits with 7 [11:34:54]New connection [11:34:54]New thread 3066924388 created [11:34:54]Thread 3067067748 joined [11:34:54]Waiting for new connection... [11:34:54] Sock 7.Parse request [11:34:54]Sock 7.Check first char [11:34:54]Sock 7.First char is OK [11:34:54]request: POST /json_proto HTTP/1.0 [11:34:54]Method: POST [11:34:54]URL: /json_proto [11:34:54]Method is POST - this is cgi request [11:34:54]url: /json_proto [11:34:54]query_string will be loaded in cgi processing [11:34:54]execute_cgi json_proto POST (null) [11:34:54]execute_cgi path=json_proto method=POST [11:34:54]POST find Content-Length [11:34:54]Host: 172.17.45.7:8080 [11:34:54]Content-Length: 801 [11:34:54]Content-Type: application/json [11:34:54] [11:34:54]POST finish read [11:34:54]Found Content-Length = 801 [11:34:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 100.000, "sum" : 7620.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" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:54]execute_script... [11:34: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)949330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 100.000, "sum" : 7620.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" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:54]POST & json_proto [11:34:54]process_json_proto [11:34:54]json parsed OK: [11:34:54]protocol is kg_v1.0 [11:34:54]action value=close_receipt [11:34:54]process_action close_receipt [11:34:54]cmd_close_receipt [11:34:54]MH_GetDate [11:34:54]Write to MH i2c: F0 00 00 09 21 19 [11:34:54]Write i2c OK [11:34:54]MH_I2C_Read... [11:34:54]Read from MH i2c: F0 [11:34:54]MH_I2C_Read... [11:34:54]Read from MH i2c: F0 09 00 [11:34:54]MH_I2C_Read... [11:34:54]Read from MH i2c: F0 09 00 09 21 00 E0 2C A6 66 90 0F 3E 66 7D [11:34:54]GetLastDocTimeStamp 1722166458 [11:34:54]current date 1722166496 [11:34:54]FM_GetShiftState [11:34:54]SAM_PROTO_GetShiftState [11:34:54]wFMCommunicate request_size=4 [11:34:54]MH_SAM_APDU [11:34:54]CAPDU: 80 13 01 00 [11:34:54]Write to MH i2c: E2 08 00 0A 21 80 13 01 00 00 00 00 00 A8 [11:34:54]Write i2c OK [11:34:54]MH_I2C_Read... [11:34:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:54]Read from MH i2c: E2 [11:34:54]MH_I2C_Read... [11:34:54]Read from MH i2c: E2 0E 00 [11:34:54]MH_I2C_Read... [11:34:54]Read from MH i2c: E2 0E 00 0A 21 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 7F [11:34:54]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:34:54]wFMCommunicate OK [11:34:54]SAM_PROTO_GetShiftState done [11:34:54]FM_GetShiftState done [11:34:54]opened in 1722125364 [11:34:54]opened+sec_in_day 1722211764 [11:34:54]quantity*price = 762000 [11:34:54]sum+1 = 762001 [11:34:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7620.00 НСП 1% : 67.43 НДС 12% : 809.20 Наличными: 0.00 Безнал.: 7620.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 130 28.07.2024 11:34 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118461 ФПД: 123501013965496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113456&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118461&fm=123501013965496&tin=02508201610067®Number=0000000000092660&sum=762000 [11:34:55]StoreToDocumentArchive [11:34:55]shift 433 fd 118461 [11:34:55]save to /storage/0433/doc_00118461 [11:34:55]save last doc name /storage/0433/doc_00118461 to /storage/kkm_last_doc_name [11:34:55]save OK [11:34:55]Clear old archive folders... [11:34:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:34:55]tlvbuf is B6EF63A0 [11:34:55]SAM_PROTO_ClearQueue [11:34:55]wFMCommunicate request_size=4 [11:34:55]MH_SAM_APDU [11:34:55]CAPDU: 80 09 00 00 [11:34:55]Write to MH i2c: E2 08 00 17 21 80 09 00 00 00 00 00 00 AA [11:34:55]Write i2c OK [11:34:55]MH_I2C_Read... [11:34:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:55]Read from MH i2c: E2 [11:34:55]MH_I2C_Read... [11:34:55]Read from MH i2c: E2 03 00 [11:34:55]MH_I2C_Read... [11:34:55]Read from MH i2c: E2 03 00 17 21 00 90 00 AC [11:34:55]RAPDU: 90 00 [11:34:55]wFMCommunicate OK [11:34:55]SAM_PROTO_ClearQueue done [11:34:55]KKMCreateOFDPacket [11:34:55]OFDProtocolAddRootSTLVToBuf [11:34:55]FM_MakeSignedData [11:34:55]FM_MakeSignedData [11:34:55]SAM_PROTO_SignData [11:34:55]wFMCommunicate request_size=4 [11:34:55]MH_SAM_APDU [11:34:55]CAPDU: 80 0D 01 02 [11:34:55]Write to MH i2c: E2 08 00 18 21 80 0D 01 02 00 00 00 00 B2 [11:34:55]Write i2c OK [11:34:55]MH_I2C_Read... [11:34:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:55]Read from MH i2c: E2 [11:34:55]MH_I2C_Read... [11:34:55]Read from MH i2c: E2 03 00 [11:34:55]MH_I2C_Read... [11:34:55]Read from MH i2c: E2 03 00 18 21 00 90 00 AD [11:34:55]RAPDU: 90 00 [11:34:55]wFMCommunicate OK [11:34:55]wFMCommunicate request_size=255 [11:34:55]MH_SAM_APDU [11:34:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 E0 2C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BD CE 01 00 35 04 06 00 70 52 D2 11 [11:34:55]Write to MH i2c: E2 02 01 19 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 E0 2C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BD CE 01 00 35 04 06 00 70 52 D2 11 00 00 16 [11:34:55]Write i2c OK [11:34:55]MH_I2C_Read... [11:34:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:55]Read from MH i2c: E2 [11:34:55]MH_I2C_Read... [11:34:55]Read from MH i2c: E2 03 00 [11:34:55]MH_I2C_Read... [11:34:55]Read from MH i2c: E2 03 00 19 21 00 90 00 AE [11:34:55]RAPDU: 90 00 [11:34:55]wFMCommunicate OK [11:34:55]wFMCommunicate request_size=7 [11:34:55]MH_SAM_APDU [11:34:55]CAPDU: 80 0D 02 02 02 1A B8 [11:34:55]Write to MH i2c: E2 0A 00 1A 21 80 0D 02 02 02 00 1A B8 00 00 8B [11:34:55]Write i2c OK [11:34:55]MH_I2C_Read... [11:34:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:55]Read from MH i2c: E2 [11:34:55]MH_I2C_Read... [11:34:55]Read from MH i2c: E2 03 00 [11:34:55]MH_I2C_Read... [11:34:55]Read from MH i2c: E2 03 00 1A 21 00 90 00 AF [11:34:55]RAPDU: 90 00 [11:34:55]wFMCommunicate OK [11:34:55]wFMCommunicate request_size=4 [11:34:55]MH_SAM_APDU [11:34:55]CAPDU: 80 0D 03 02 [11:34:55]Write to MH i2c: E2 08 00 1B 21 80 0D 03 02 00 00 00 00 B7 [11:34:55]Write i2c OK [11:34:55]MH_I2C_Read... [11:34:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:55]Read from MH i2c: E2 [11:34:55]MH_I2C_Read... [11:34:55]Read from MH i2c: E2 0B 00 [11:34:55]MH_I2C_Read... [11:34:55]Read from MH i2c: E2 0B 00 1B 21 00 9F 40 38 FA D7 5C 85 BB 90 00 3C [11:34:55]RAPDU: 9F 40 38 FA D7 5C 85 BB 90 00 [11:34:55]wFMCommunicate OK [11:34:55]SAM_PROTO_SignData done [11:34:55]FM_MakeSignedData done [11:34:55]CreateOFDProtocolMessage [11:34:55]wFMCommunicate request_size=4 [11:34:55]MH_SAM_APDU [11:34:55]CAPDU: 80 11 00 00 [11:34:55]Write to MH i2c: E2 08 00 1C 21 80 11 00 00 00 00 00 00 B7 [11:34:55]Write i2c OK [11:34:55]MH_I2C_Read... [11:34:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:55]Read from MH i2c: E2 [11:34:55]MH_I2C_Read... [11:34:55]Read from MH i2c: E2 17 00 [11:34:55]MH_I2C_Read... [11:34:55]Read from MH i2c: E2 17 00 1C 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 12 [11:34:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:34:55]wFMCommunicate OK [11:34:55]CreateOFDProtocolMessage done [11:34:55]OFDSenderStorePacket 118461 [11:34:55]StoreOFDPacket docnum=118461 [11:34:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 BA 11 04 01 53 8F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 E0 2C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BD CE 01 00 35 04 06 00 70 52 D2 11 1A B8 9F 40 38 FA D7 5C 85 BB [11:34:55]CheckFolder [11:34:55]dirname=/storage/ofd_packets [11:34:55]CheckFolder done [11:34:55]ProducePacketName [11:34:55]name=ofd_packets/00118461 [11:34:55]NVStorageSaveData ofd_packets/00118461 [11:34:55]File name is /storage/ofd_packets/00118461 [11:34:55]Write 298 bytes [11:34:55]NVStorageSaveData done [11:34:55]OFDSenderStorePacket done [11:34:55]KKMCreateOFDPacket done [11:34:55]NVStorageSaveData kkm_last_timestamp [11:34:55]File name is /storage/kkm_last_timestamp [11:34:55]Write 4 bytes [11:34:55]NVStorageSaveData done [11:34:55]ExternCall_PrintAddStr [11:34:55]wPrintStart [11:34:55]Write to MH i2c: 01 00 00 1D 21 3E [11:34:55]Write i2c OK [11:34:55]MH_I2C_Read... [11:34:55]Read from MH i2c: 01 [11:34:55]MH_I2C_Read... [11:34:55]Read from MH i2c: 01 07 00 [11:34:55]MH_I2C_Read... [11:34:55]Read from MH i2c: 01 07 00 1D 21 00 00 00 00 00 FF 0F 53 [11:34:55]RasterBufferAndPrint [11:34:55]line Счет N : (1)949330 [11:34:55]line ИНН: 02508201610067 [11:34:55]line Контрольно-Кассовый Чек [11:34:55]line ПРОДАЖА [11:34:55]line ТРК (МРК, ГНК) : 21 [11:34:55]line Товар: 2710194800 [11:34:55]line ДТ-К-5 [11:34:55]line 100.000 * 76.20 [11:34:55]line = 7620.00 [11:34:55]line НДС 12% НСП 1% [11:34:55]line > о реализуемом товаре [11:34:55]line ИТОГО: 7620.00 [11:34:55]line НСП 1% : 67.43 [11:34:55]line НДС 12% : 809.20 [11:34:55]line Наличными: 0.00 [11:34:55]line Безнал.: 7620.00 [11:34:55]line Место: АЗС № 134 "Партнер Нефть" [11:34:55]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:34:55]line СНО: Общий режим [11:34:55]line Чек 130 28.07.2024 11:34 [11:34:55]line Смена: 433 ФФД: 1.0 [11:34:55]line ЗНМ: 0300000044 [11:34:55]line РНМ: 0000000000092660 [11:34:55]line Версия ККМ: 001 [11:34:55]line Платежная система: O! деньги [11:34:55]line ФМ: 0000000000874939 [11:34:55]line ФД: 118461 [11:34:55]line ФПД: 123501013965496 [11:34:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113456&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118461&fm=123501013965496&tin=02508201610067®Number=0000000000092660&sum=762000 [11:34:56]OFD Sender: Processing packet 118461 [packets to send 86, broken 85] [11:34:56]ProducePacketName [11:34:56]name=ofd_packets/00118461 [11:34:56]OFD Sender: To server: pG, [11:34:56]CommunicateWithHost lk.salyk.kg:30040 [11:34:56]ConnectInit lk.salyk.kg [11:34:56]written 0, free lines is 4095 [11:34:56]Connected sock=10 [11:34:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 BA 11 04 01 53 8F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 E0 2C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BD CE 01 00 35 04 06 00 70 52 D2 11 1A B8 9F 40 38 FA D7 5C 85 BB [11:34:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A3 02 47 00 50 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 39 33 39 10 04 04 00 BD CE 01 00 F4 03 04 00 71 DA A5 66 B6 04 01 00 00 25 E7 D8 A8 47 2C F4 F9 [11:34:56]CommunicateWithHost err = 0 [11:34:56]CheckOFDResponse [11:34:56]1017 (14) - 77093643461234 [11:34:56]1041 (16) - 0000000000874939 [11:34:56]1040 (4) - 118461 [11:34:56]1012 (4) - 28.07.2024 05:43 [11:34:56]1206 (1) - 0 [11:34:56]OFD Sender: Remove packet 118461 [11:34:56]ProducePacketName [11:34:56]name=ofd_packets/00118461 [11:34:56]NVStorageDeleteData [11:34:56]Write to MH i2c: 01 00 00 46 21 67 [11:34:56]Write i2c OK [11:34:56]MH_I2C_Read... [11:34:56]Read from MH i2c: 01 [11:34:56]MH_I2C_Read... [11:34:56]Read from MH i2c: 01 07 00 [11:34:56]MH_I2C_Read... [11:34:56]Read from MH i2c: 01 07 00 46 21 00 00 00 00 00 F2 0C 6C [11:34:56]RasterBufferAndPrint [11:34:56]line [11:34:56]line [11:34:56]line [11:34:56]line [11:34:56]line [11:34:56]written 0, free lines is 3320 [11:34:56]MH_Cut [11:34:56]Write to MH i2c: D1 01 00 4D 21 01 40 [11:34:56]Write i2c OK [11:34:56]MH_I2C_Read... [11:34:56]Read from MH i2c: D1 [11:34:56]MH_I2C_Read... [11:34:56]Read from MH i2c: D1 01 00 [11:34:56]MH_I2C_Read... [11:34:56]Read from MH i2c: D1 01 00 4D 21 00 3F [11:34:56]Write to MH i2c: 01 00 00 4E 21 6F [11:34:56]Write i2c OK [11:34:56]MH_I2C_Read... [11:34:57]OFD Sender: No OFD packet to send [11:34:57]*** Cut start [11:34:57]*** Partial cut [11:34:57]*** CUTSNS_PIN = 1 [11:34:57]*** CUTSNS_PIN = 0 [11:34:57]*** Brake cut motor [11:34:58]Read from MH i2c: 01 [11:34:58]MH_I2C_Read... [11:34:58]*** Stop cut motor [11:34:58]*** Cut end [11:34:58]Read from MH i2c: 01 07 00 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: 01 07 00 4E 21 00 00 00 00 00 FF 0F 84 [11:34:58]process_action close_receipt done [11:34:58]requested_data is exist [11:34:58]produce_requested_data [11:34:58]requested_item fm.sn is exist - process it [11:34:58]wFMCommunicate request_size=4 [11:34:58]MH_SAM_APDU [11:34:58]CAPDU: 80 11 00 00 [11:34:58]Write to MH i2c: E2 08 00 4F 21 80 11 00 00 00 00 00 00 EA [11:34:58]Write i2c OK [11:34:58]MH_I2C_Read... [11:34:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:58]Read from MH i2c: E2 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 17 00 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 17 00 4F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 45 [11:34:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:34:58]wFMCommunicate OK [11:34:58]requested_item fd.num is exist - process it [11:34:58]SAM_PROTO_GetFieldsCounters [11:34:58]wFMCommunicate request_size=4 [11:34:58]MH_SAM_APDU [11:34:58]CAPDU: 80 13 00 00 [11:34:58]Write to MH i2c: E2 08 00 50 21 80 13 00 00 00 00 00 00 ED [11:34:58]Write i2c OK [11:34:58]MH_I2C_Read... [11:34:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:58]Read from MH i2c: E2 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 62 00 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 62 00 50 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BD CE 01 00 0E 04 04 00 B1 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 D8 [11:34:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BD CE 01 00 0E 04 04 00 B1 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 [11:34:58]wFMCommunicate OK [11:34:58]SAM_PROTO_GetFieldsCounters done [11:34:58]requested_item shift.num is exist - process it [11:34:58]requested_item shift.opened is exist - process it [11:34:58]req_shift_opened [11:34:58]FM_GetShiftState [11:34:58]SAM_PROTO_GetShiftState [11:34:58]wFMCommunicate request_size=4 [11:34:58]MH_SAM_APDU [11:34:58]CAPDU: 80 13 01 00 [11:34:58]Write to MH i2c: E2 08 00 51 21 80 13 01 00 00 00 00 00 EF [11:34:58]Write i2c OK [11:34:58]MH_I2C_Read... [11:34:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:58]Read from MH i2c: E2 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 0E 00 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 0E 00 51 21 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 C6 [11:34:58]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:34:58]wFMCommunicate OK [11:34:58]SAM_PROTO_GetShiftState done [11:34:58]FM_GetShiftState done [11:34:58]req_shift_opened done [11:34:58]requested_item shift.open_date is exist - process it [11:34:58]req_shift_open_date [11:34:58]req_shift_open_date done [11:34:58]produce_requested_data done [11:34:58]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118461,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:34:58]process_action_free close_receipt [11:34:58]json_value_free [11:34:58]json_value_free done [11:34:58]process_json_proto returns [11:34:58]Send response to host [11:34:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118461,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:34:58]free response buf [11:34:58]execute_script done [11:34:58]execute_script returns [11:34:58]free content buf [11:34:58]Sock 7.Close socket [11:34:58]Sock 7.Thread stoped [11:35:02]OFD Sender: No OFD packet to send [11:35:07]OFD Sender: No OFD packet to send [11:35:11]accept exits with 9 [11:35:11]New connection [11:35:11]New thread 3067067748 created [11:35:11]Thread 3066924388 joined [11:35:11]Waiting for new connection... [11:35:11] Sock 9.Parse request [11:35:11]Sock 9.Check first char [11:35:11]Sock 9.First char is OK [11:35:11]request: POST /json_proto HTTP/1.0 [11:35:11]Method: POST [11:35:11]URL: /json_proto [11:35:11]Method is POST - this is cgi request [11:35:11]url: /json_proto [11:35:11]query_string will be loaded in cgi processing [11:35:11]execute_cgi json_proto POST (null) [11:35:11]execute_cgi path=json_proto method=POST [11:35:11]POST find Content-Length [11:35:11]Host: 172.17.45.7:8080 [11:35:11]Content-Length: 677 [11:35:11]Content-Type: application/json [11:35:11] [11:35:11]POST finish read [11:35:11]Found Content-Length = 677 [11:35:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:35:11]execute_script... [11:35: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)949334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:35:11]POST & json_proto [11:35:11]process_json_proto [11:35:11]json parsed OK: [11:35:11]protocol is kg_v1.0 [11:35:11]action value=close_receipt [11:35:11]process_action close_receipt [11:35:11]cmd_close_receipt [11:35:11]MH_GetDate [11:35:11]Write to MH i2c: F0 00 00 52 21 62 [11:35:11]Write i2c OK [11:35:11]MH_I2C_Read... [11:35:11]Read from MH i2c: F0 [11:35:11]MH_I2C_Read... [11:35:11]Read from MH i2c: F0 09 00 [11:35:11]MH_I2C_Read... [11:35:11]Read from MH i2c: F0 09 00 52 21 00 F2 2C A6 66 90 0F 3E 66 D8 [11:35:11]GetLastDocTimeStamp 1722166496 [11:35:11]current date 1722166514 [11:35:11]FM_GetShiftState [11:35:11]SAM_PROTO_GetShiftState [11:35:11]wFMCommunicate request_size=4 [11:35:11]MH_SAM_APDU [11:35:11]CAPDU: 80 13 01 00 [11:35:11]Write to MH i2c: E2 08 00 53 21 80 13 01 00 00 00 00 00 F1 [11:35:11]Write i2c OK [11:35:11]MH_I2C_Read... [11:35:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:11]Read from MH i2c: E2 [11:35:11]MH_I2C_Read... [11:35:11]Read from MH i2c: E2 0E 00 [11:35:11]MH_I2C_Read... [11:35:11]Read from MH i2c: E2 0E 00 53 21 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 C8 [11:35:11]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:35:11]wFMCommunicate OK [11:35:11]SAM_PROTO_GetShiftState done [11:35:11]FM_GetShiftState done [11:35:11]opened in 1722125364 [11:35:11]opened+sec_in_day 1722211764 [11:35:11]quantity*price = 40002 [11:35:11]sum+1 = 40003 [11:35:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 131 28.07.2024 11:35 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118462 ФПД: 276431529490122 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113514&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118462&fm=276431529490122&tin=02508201610067®Number=0000000000092660&sum=40000 [11:35:13]StoreToDocumentArchive [11:35:13]shift 433 fd 118462 [11:35:13]save to /storage/0433/doc_00118462 [11:35:13]save last doc name /storage/0433/doc_00118462 to /storage/kkm_last_doc_name [11:35:13]save OK [11:35:13]Clear old archive folders... [11:35:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:35:13]tlvbuf is B6EC43B0 [11:35:13]SAM_PROTO_ClearQueue [11:35:13]wFMCommunicate request_size=4 [11:35:13]MH_SAM_APDU [11:35:13]CAPDU: 80 09 00 00 [11:35:13]Write to MH i2c: E2 08 00 60 21 80 09 00 00 00 00 00 00 F3 [11:35:13]Write i2c OK [11:35:13]MH_I2C_Read... [11:35:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:13]Read from MH i2c: E2 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 03 00 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 03 00 60 21 00 90 00 F5 [11:35:13]RAPDU: 90 00 [11:35:13]wFMCommunicate OK [11:35:13]SAM_PROTO_ClearQueue done [11:35:13]KKMCreateOFDPacket [11:35:13]OFDProtocolAddRootSTLVToBuf [11:35:13]FM_MakeSignedData [11:35:13]FM_MakeSignedData [11:35:13]SAM_PROTO_SignData [11:35:13]wFMCommunicate request_size=4 [11:35:13]MH_SAM_APDU [11:35:13]CAPDU: 80 0D 01 02 [11:35:13]Write to MH i2c: E2 08 00 61 21 80 0D 01 02 00 00 00 00 FB [11:35:13]Write i2c OK [11:35:13]MH_I2C_Read... [11:35:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:13]Read from MH i2c: E2 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 03 00 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 03 00 61 21 00 90 00 F6 [11:35:13]RAPDU: 90 00 [11:35:13]wFMCommunicate OK [11:35:13]wFMCommunicate request_size=255 [11:35:13]MH_SAM_APDU [11:35: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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 83 00 00 00 F4 03 04 00 F2 2C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BE CE 01 00 35 04 06 00 FB [11:35:13]Write to MH i2c: E2 02 01 62 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 83 00 00 00 F4 03 04 00 F2 2C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BE CE 01 00 35 04 06 00 FB 00 00 4B [11:35:13]Write i2c OK [11:35:13]MH_I2C_Read... [11:35:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:13]Read from MH i2c: E2 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 03 00 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 03 00 62 21 00 90 00 F7 [11:35:13]RAPDU: 90 00 [11:35:13]wFMCommunicate OK [11:35:13]wFMCommunicate request_size=10 [11:35:13]MH_SAM_APDU [11:35:13]CAPDU: 80 0D 02 02 05 69 BB 1E B6 CA [11:35:13]Write to MH i2c: E2 0D 00 63 21 80 0D 02 02 05 00 69 BB 1E B6 CA 00 00 CA [11:35:13]Write i2c OK [11:35:13]MH_I2C_Read... [11:35:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:13]Read from MH i2c: E2 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 03 00 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 03 00 63 21 00 90 00 F8 [11:35:13]RAPDU: 90 00 [11:35:13]wFMCommunicate OK [11:35:13]wFMCommunicate request_size=4 [11:35:13]MH_SAM_APDU [11:35:13]CAPDU: 80 0D 03 02 [11:35:13]Write to MH i2c: E2 08 00 64 21 80 0D 03 02 00 00 00 00 00 [11:35:13]Write i2c OK [11:35:13]MH_I2C_Read... [11:35:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:13]Read from MH i2c: E2 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 0B 00 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 0B 00 64 21 00 16 17 00 6B C1 9A 6E 5F 90 00 C1 [11:35:13]RAPDU: 16 17 00 6B C1 9A 6E 5F 90 00 [11:35:13]wFMCommunicate OK [11:35:13]SAM_PROTO_SignData done [11:35:13]FM_MakeSignedData done [11:35:13]CreateOFDProtocolMessage [11:35:13]wFMCommunicate request_size=4 [11:35:13]MH_SAM_APDU [11:35:13]CAPDU: 80 11 00 00 [11:35:13]Write to MH i2c: E2 08 00 65 21 80 11 00 00 00 00 00 00 00 [11:35:13]Write i2c OK [11:35:13]MH_I2C_Read... [11:35:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:13]Read from MH i2c: E2 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 17 00 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 17 00 65 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5B [11:35:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:35:13]wFMCommunicate OK [11:35:13]CreateOFDProtocolMessage done [11:35:13]OFDSenderStorePacket 118462 [11:35:13]StoreOFDPacket docnum=118462 [11:35:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C8 9F 07 01 64 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 83 00 00 00 F4 03 04 00 F2 2C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BE CE 01 00 35 04 06 00 FB 69 BB 1E B6 CA 16 17 00 6B C1 9A 6E 5F [11:35:13]CheckFolder [11:35:13]dirname=/storage/ofd_packets [11:35:13]CheckFolder done [11:35:13]ProducePacketName [11:35:13]name=ofd_packets/00118462 [11:35:13]NVStorageSaveData ofd_packets/00118462 [11:35:13]File name is /storage/ofd_packets/00118462 [11:35:13]Write 301 bytes [11:35:13]NVStorageSaveData done [11:35:13]OFDSenderStorePacket done [11:35:13]KKMCreateOFDPacket done [11:35:13]NVStorageSaveData kkm_last_timestamp [11:35:13]File name is /storage/kkm_last_timestamp [11:35:13]Write 4 bytes [11:35:13]NVStorageSaveData done [11:35:13]ExternCall_PrintAddStr [11:35:13]wPrintStart [11:35:13]Write to MH i2c: 01 00 00 66 21 87 [11:35:13]Write i2c OK [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: 01 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: 01 07 00 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: 01 07 00 66 21 00 00 00 00 00 FF 0F 9C [11:35:13]RasterBufferAndPrint [11:35:13]line Счет N : (1)949334 [11:35:13]line ИНН: 02508201610067 [11:35:13]line Контрольно-Кассовый Чек [11:35:13]line ПРОДАЖА [11:35:13]line ТРК (МРК, ГНК) : 31 [11:35:13]line Товар: 2710124130 [11:35:13]line Аи-92-К-4 [11:35:13]line 5.900 * 67.80 [11:35:13]line = 400.02 [11:35:13]line НДС 12% НСП 1% [11:35:13]line > о реализуемом товаре [11:35:13]line ОКРУГЛЕНИЕ: -0.02 [11:35:13]line ИТОГО: 400.00 [11:35:13]line Внесено: 400.00 [11:35:13]line СДАЧА: 0.00 [11:35:13]line НСП 1% : 3.54 [11:35:13]line НДС 12% : 42.48 [11:35:13]line Наличными: 400.00 [11:35:13]line Безнал.: 0.00 [11:35:13]line Место: АЗС № 134 "Партнер Нефть" [11:35:13]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:35:13]line СНО: Общий режим [11:35:13]line Чек 131 28.07.2024 11:35 [11:35:13]line Смена: 433 ФФД: 1.0 [11:35:13]line ЗНМ: 0300000044 [11:35:13]line РНМ: 0000000000092660 [11:35:13]line Версия ККМ: 001 [11:35:13]line ФМ: 0000000000874939 [11:35:13]line ФД: 118462 [11:35:13]line ФПД: 276431529490122 [11:35:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113514&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118462&fm=276431529490122&tin=02508201610067®Number=0000000000092660&sum=40000 [11:35:13]written 0, free lines is 4095 [11:35:13]OFD Sender: Processing packet 118462 [packets to send 86, broken 85] [11:35:13]ProducePacketName [11:35:13]name=ofd_packets/00118462 [11:35:13]OFD Sender: To server: pG, [11:35:13]CommunicateWithHost lk.salyk.kg:30040 [11:35:13]ConnectInit lk.salyk.kg [11:35:14]Connected sock=10 [11:35:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C8 9F 07 01 64 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 83 00 00 00 F4 03 04 00 F2 2C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BE CE 01 00 35 04 06 00 FB 69 BB 1E B6 CA 16 17 00 6B C1 9A 6E 5F [11:35:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F0 49 47 00 27 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 39 33 39 10 04 04 00 BE CE 01 00 F4 03 04 00 82 DA A5 66 B6 04 01 00 00 72 15 EA CB B1 57 55 74 [11:35:14]CommunicateWithHost err = 0 [11:35:14]CheckOFDResponse [11:35:14]1017 (14) - 77093643461234 [11:35:14]1041 (16) - 0000000000874939 [11:35:14]1040 (4) - 118462 [11:35:14]1012 (4) - 28.07.2024 05:43 [11:35:14]1206 (1) - 0 [11:35:14]OFD Sender: Remove packet 118462 [11:35:14]ProducePacketName [11:35:14]name=ofd_packets/00118462 [11:35:14]NVStorageDeleteData [11:35:14]Write to MH i2c: 01 00 00 90 21 B1 [11:35:14]Write i2c OK [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: 01 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: 01 07 00 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: 01 07 00 90 21 00 00 00 00 00 E0 0C A4 [11:35:14]RasterBufferAndPrint [11:35:14]line [11:35:14]line [11:35:14]line [11:35:14]line [11:35:14]line [11:35:14]written 0, free lines is 3302 [11:35:14]MH_Cut [11:35:14]Write to MH i2c: D1 01 00 97 21 01 8A [11:35:14]Write i2c OK [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: D1 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: D1 01 00 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: D1 01 00 97 21 00 89 [11:35:14]Write to MH i2c: 01 00 00 98 21 B9 [11:35:14]Write i2c OK [11:35:14]MH_I2C_Read... [11:35:14]OFD Sender: No OFD packet to send [11:35:15]*** Cut start [11:35:15]*** Partial cut [11:35:15]*** CUTSNS_PIN = 1 [11:35:15]*** CUTSNS_PIN = 0 [11:35:15]*** Brake cut motor [11:35:15]Read from MH i2c: 01 [11:35:15]MH_I2C_Read... [11:35:15]*** Stop cut motor [11:35:15]*** Cut end [11:35:15]Read from MH i2c: 01 07 00 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: 01 07 00 98 21 00 00 00 00 00 FF 0F CE [11:35:15]process_action close_receipt done [11:35:15]requested_data is exist [11:35:15]produce_requested_data [11:35:15]requested_item fm.sn is exist - process it [11:35:15]wFMCommunicate request_size=4 [11:35:15]MH_SAM_APDU [11:35:15]CAPDU: 80 11 00 00 [11:35:15]Write to MH i2c: E2 08 00 99 21 80 11 00 00 00 00 00 00 34 [11:35:15]Write i2c OK [11:35:15]MH_I2C_Read... [11:35:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:15]Read from MH i2c: E2 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 17 00 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 17 00 99 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8F [11:35:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:35:15]wFMCommunicate OK [11:35:15]requested_item fd.num is exist - process it [11:35:15]SAM_PROTO_GetFieldsCounters [11:35:15]wFMCommunicate request_size=4 [11:35:15]MH_SAM_APDU [11:35:15]CAPDU: 80 13 00 00 [11:35:15]Write to MH i2c: E2 08 00 9A 21 80 13 00 00 00 00 00 00 37 [11:35:15]Write i2c OK [11:35:15]MH_I2C_Read... [11:35:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:15]Read from MH i2c: E2 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 62 00 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 62 00 9A 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BE CE 01 00 0E 04 04 00 B1 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 26 [11:35: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BE CE 01 00 0E 04 04 00 B1 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 [11:35:15]wFMCommunicate OK [11:35:15]SAM_PROTO_GetFieldsCounters done [11:35:15]requested_item shift.num is exist - process it [11:35:15]requested_item shift.opened is exist - process it [11:35:15]req_shift_opened [11:35:15]FM_GetShiftState [11:35:15]SAM_PROTO_GetShiftState [11:35:15]wFMCommunicate request_size=4 [11:35:15]MH_SAM_APDU [11:35:15]CAPDU: 80 13 01 00 [11:35:15]Write to MH i2c: E2 08 00 9B 21 80 13 01 00 00 00 00 00 39 [11:35:15]Write i2c OK [11:35:15]MH_I2C_Read... [11:35:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:15]Read from MH i2c: E2 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 0E 00 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 0E 00 9B 21 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 10 [11:35:15]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:35:15]wFMCommunicate OK [11:35:15]SAM_PROTO_GetShiftState done [11:35:15]FM_GetShiftState done [11:35:15]req_shift_opened done [11:35:15]requested_item shift.open_date is exist - process it [11:35:15]req_shift_open_date [11:35:15]req_shift_open_date done [11:35:15]produce_requested_data done [11:35:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118462,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:35:15]process_action_free close_receipt [11:35:15]json_value_free [11:35:15]json_value_free done [11:35:15]process_json_proto returns [11:35:15]Send response to host [11:35:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118462,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:35:15]free response buf [11:35:15]execute_script done [11:35:15]execute_script returns [11:35:16]free content buf [11:35:16]Sock 9.Close socket [11:35:16]Sock 9.Thread stoped [11:35:19]OFD Sender: No OFD packet to send [11:35:24]OFD Sender: No OFD packet to send [11:35:29]OFD Sender: No OFD packet to send [11:35:34]OFD Sender: No OFD packet to send [11:35:39]OFD Sender: No OFD packet to send [11:35:44]OFD Sender: No OFD packet to send [11:35:49]OFD Sender: No OFD packet to send [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:19]OFD Sender: No OFD packet to send [11:36:24]OFD Sender: No OFD packet to send [11:36:29]OFD Sender: No OFD packet to send [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:44]OFD Sender: No OFD packet to send [11:36:49]OFD Sender: No OFD packet to send [11:36:54]OFD Sender: No OFD packet to send [11:36:59]OFD Sender: No OFD packet to send [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:19]OFD Sender: No OFD packet to send [11:37:24]OFD Sender: No OFD packet to send [11:37:29]OFD Sender: No OFD packet to send [11:37:34]OFD Sender: No OFD packet to send [11:37:38]accept exits with 7 [11:37:38]New connection [11:37:38]New thread 3066924388 created [11:37:38]Thread 3067067748 joined [11:37:38]Waiting for new connection... [11:37:38] Sock 7.Parse request [11:37:38]Sock 7.Check first char [11:37:38]Sock 7.First char is OK [11:37:38]request: POST /json_proto HTTP/1.0 [11:37:38]Method: POST [11:37:38]URL: /json_proto [11:37:38]Method is POST - this is cgi request [11:37:38]url: /json_proto [11:37:38]query_string will be loaded in cgi processing [11:37:38]execute_cgi json_proto POST (null) [11:37:38]execute_cgi path=json_proto method=POST [11:37:38]POST find Content-Length [11:37:38]Host: 172.17.45.7:8080 [11:37:38]Content-Length: 801 [11:37:38]Content-Type: application/json [11:37:38] [11:37:38]POST finish read [11:37:38]Found Content-Length = 801 [11:37:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 100.000, "sum" : 7620.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" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:38]execute_script... [11:37: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)949332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 100.000, "sum" : 7620.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" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:38]POST & json_proto [11:37:38]process_json_proto [11:37:38]json parsed OK: [11:37:38]protocol is kg_v1.0 [11:37:38]action value=close_receipt [11:37:38]process_action close_receipt [11:37:38]cmd_close_receipt [11:37:38]MH_GetDate [11:37:38]Write to MH i2c: F0 00 00 9C 21 AC [11:37:38]Write i2c OK [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: F0 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: F0 09 00 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: F0 09 00 9C 21 00 84 2D A6 66 90 0F 3E 66 B5 [11:37:38]GetLastDocTimeStamp 1722166514 [11:37:38]current date 1722166660 [11:37:38]FM_GetShiftState [11:37:38]SAM_PROTO_GetShiftState [11:37:38]wFMCommunicate request_size=4 [11:37:38]MH_SAM_APDU [11:37:38]CAPDU: 80 13 01 00 [11:37:38]Write to MH i2c: E2 08 00 9D 21 80 13 01 00 00 00 00 00 3B [11:37:38]Write i2c OK [11:37:38]MH_I2C_Read... [11:37:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:38]Read from MH i2c: E2 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: E2 0E 00 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: E2 0E 00 9D 21 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 12 [11:37:38]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:37:38]wFMCommunicate OK [11:37:38]SAM_PROTO_GetShiftState done [11:37:38]FM_GetShiftState done [11:37:38]opened in 1722125364 [11:37:38]opened+sec_in_day 1722211764 [11:37:38]quantity*price = 762000 [11:37:38]sum+1 = 762001 [11:37:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7620.00 НСП 1% : 67.43 НДС 12% : 809.20 Наличными: 0.00 Безнал.: 7620.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 132 28.07.2024 11:37 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118463 ФПД: 86551227281812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113740&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118463&fm=86551227281812&tin=02508201610067®Number=0000000000092660&sum=762000 [11:37:39]StoreToDocumentArchive [11:37:39]shift 433 fd 118463 [11:37:39]save to /storage/0433/doc_00118463 [11:37:39]save last doc name /storage/0433/doc_00118463 to /storage/kkm_last_doc_name [11:37:39]save OK [11:37:39]Clear old archive folders... [11:37:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:37:39]tlvbuf is B6EC40E0 [11:37:39]SAM_PROTO_ClearQueue [11:37:39]wFMCommunicate request_size=4 [11:37:39]MH_SAM_APDU [11:37:39]CAPDU: 80 09 00 00 [11:37:39]Write to MH i2c: E2 08 00 AA 21 80 09 00 00 00 00 00 00 3D [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:39]Read from MH i2c: E2 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 03 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 03 00 AA 21 00 90 00 3F [11:37:39]RAPDU: 90 00 [11:37:39]wFMCommunicate OK [11:37:39]SAM_PROTO_ClearQueue done [11:37:39]KKMCreateOFDPacket [11:37:39]OFDProtocolAddRootSTLVToBuf [11:37:39]FM_MakeSignedData [11:37:39]FM_MakeSignedData [11:37:39]SAM_PROTO_SignData [11:37:39]wFMCommunicate request_size=4 [11:37:39]MH_SAM_APDU [11:37:39]CAPDU: 80 0D 01 02 [11:37:39]Write to MH i2c: E2 08 00 AB 21 80 0D 01 02 00 00 00 00 45 [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:39]Read from MH i2c: E2 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 03 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 03 00 AB 21 00 90 00 40 [11:37:39]RAPDU: 90 00 [11:37:39]wFMCommunicate OK [11:37:39]wFMCommunicate request_size=255 [11:37:39]MH_SAM_APDU [11:37:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 84 2D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BF CE 01 00 35 04 06 00 4E B7 C7 28 [11:37:39]Write to MH i2c: E2 02 01 AC 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 84 2D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BF CE 01 00 35 04 06 00 4E B7 C7 28 00 00 A1 [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:39]Read from MH i2c: E2 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 03 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 03 00 AC 21 00 90 00 41 [11:37:39]RAPDU: 90 00 [11:37:39]wFMCommunicate OK [11:37:39]wFMCommunicate request_size=7 [11:37:39]MH_SAM_APDU [11:37:39]CAPDU: 80 0D 02 02 02 31 94 [11:37:39]Write to MH i2c: E2 0A 00 AD 21 80 0D 02 02 02 00 31 94 00 00 11 [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:39]Read from MH i2c: E2 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 03 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 03 00 AD 21 00 90 00 42 [11:37:39]RAPDU: 90 00 [11:37:39]wFMCommunicate OK [11:37:39]wFMCommunicate request_size=4 [11:37:39]MH_SAM_APDU [11:37:39]CAPDU: 80 0D 03 02 [11:37:39]Write to MH i2c: E2 08 00 AE 21 80 0D 03 02 00 00 00 00 4A [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:39]Read from MH i2c: E2 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 0B 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 0B 00 AE 21 00 54 78 DF 12 97 D2 9F 45 90 00 55 [11:37:39]RAPDU: 54 78 DF 12 97 D2 9F 45 90 00 [11:37:39]wFMCommunicate OK [11:37:39]SAM_PROTO_SignData done [11:37:39]FM_MakeSignedData done [11:37:39]CreateOFDProtocolMessage [11:37:39]wFMCommunicate request_size=4 [11:37:39]MH_SAM_APDU [11:37:39]CAPDU: 80 11 00 00 [11:37:39]Write to MH i2c: E2 08 00 AF 21 80 11 00 00 00 00 00 00 4A [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:39]Read from MH i2c: E2 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 17 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 17 00 AF 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A5 [11:37:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:37:39]wFMCommunicate OK [11:37:39]CreateOFDProtocolMessage done [11:37:39]OFDSenderStorePacket 118463 [11:37:39]StoreOFDPacket docnum=118463 [11:37:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 D6 1E 04 01 47 CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 84 2D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BF CE 01 00 35 04 06 00 4E B7 C7 28 31 94 54 78 DF 12 97 D2 9F 45 [11:37:39]CheckFolder [11:37:39]dirname=/storage/ofd_packets [11:37:39]CheckFolder done [11:37:39]ProducePacketName [11:37:39]name=ofd_packets/00118463 [11:37:39]NVStorageSaveData ofd_packets/00118463 [11:37:39]File name is /storage/ofd_packets/00118463 [11:37:39]Write 298 bytes [11:37:39]NVStorageSaveData done [11:37:39]OFDSenderStorePacket done [11:37:39]KKMCreateOFDPacket done [11:37:39]NVStorageSaveData kkm_last_timestamp [11:37:39]File name is /storage/kkm_last_timestamp [11:37:39]Write 4 bytes [11:37:39]NVStorageSaveData done [11:37:39]ExternCall_PrintAddStr [11:37:39]wPrintStart [11:37:39]Write to MH i2c: 01 00 00 B0 21 D1 [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: 01 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: 01 07 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: 01 07 00 B0 21 00 00 00 00 00 FF 0F E6 [11:37:39]RasterBufferAndPrint [11:37:39]line Счет N : (1)949332 [11:37:39]line ИНН: 02508201610067 [11:37:39]line Контрольно-Кассовый Чек [11:37:39]line ПРОДАЖА [11:37:39]line ТРК (МРК, ГНК) : 11 [11:37:39]line Товар: 2710194800 [11:37:39]line ДТ-К-5 [11:37:39]line 100.000 * 76.20 [11:37:39]line = 7620.00 [11:37:39]line НДС 12% НСП 1% [11:37:39]line > о реализуемом товаре [11:37:39]line ИТОГО: 7620.00 [11:37:39]line НСП 1% : 67.43 [11:37:39]line НДС 12% : 809.20 [11:37:39]line Наличными: 0.00 [11:37:39]line Безнал.: 7620.00 [11:37:39]line Место: АЗС № 134 "Партнер Нефть" [11:37:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:37:39]line СНО: Общий режим [11:37:39]line Чек 132 28.07.2024 11:37 [11:37:39]line Смена: 433 ФФД: 1.0 [11:37:39]line ЗНМ: 0300000044 [11:37:39]line РНМ: 0000000000092660 [11:37:39]line Версия ККМ: 001 [11:37:39]line Платежная система: O! деньги [11:37:39]line ФМ: 0000000000874939 [11:37:39]line ФД: 118463 [11:37:39]line ФПД: 86551227281812 [11:37:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113740&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118463&fm=86551227281812&tin=02508201610067®Number=0000000000092660&sum=762000 [11:37:40]OFD Sender: Processing packet 118463 [packets to send 86, broken 85] [11:37:40]ProducePacketName [11:37:40]name=ofd_packets/00118463 [11:37:40]OFD Sender: To server: pG, [11:37:40]CommunicateWithHost lk.salyk.kg:30040 [11:37:40]ConnectInit lk.salyk.kg [11:37:40]written 0, free lines is 4095 [11:37:40]Connected sock=10 [11:37: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 39 33 39 0C 01 00 00 D6 1E 04 01 47 CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 84 2D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BF CE 01 00 35 04 06 00 4E B7 C7 28 31 94 54 78 DF 12 97 D2 9F 45 [11:37:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 15 6C 47 00 4D 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 39 33 39 10 04 04 00 BF CE 01 00 F4 03 04 00 14 DB A5 66 B6 04 01 00 00 3E B3 5C 68 08 5A 6A 8E [11:37:40]CommunicateWithHost err = 0 [11:37:40]CheckOFDResponse [11:37:40]1017 (14) - 77093643461234 [11:37:40]1041 (16) - 0000000000874939 [11:37:40]1040 (4) - 118463 [11:37:40]1012 (4) - 28.07.2024 05:45 [11:37:40]1206 (1) - 0 [11:37:40]OFD Sender: Remove packet 118463 [11:37:40]ProducePacketName [11:37:40]name=ofd_packets/00118463 [11:37:40]NVStorageDeleteData [11:37:40]Write to MH i2c: 01 00 00 D9 21 FA [11:37:40]Write i2c OK [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: 01 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: 01 07 00 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: 01 07 00 D9 21 00 00 00 00 00 F2 0C FF [11:37:40]RasterBufferAndPrint [11:37:40]line [11:37:40]line [11:37:40]line [11:37:40]line [11:37:40]line [11:37:40]written 0, free lines is 3320 [11:37:40]MH_Cut [11:37:40]Write to MH i2c: D1 01 00 E0 21 01 D3 [11:37:40]Write i2c OK [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: D1 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: D1 01 00 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: D1 01 00 E0 21 00 D2 [11:37:40]Write to MH i2c: 01 00 00 E1 21 02 [11:37:40]Write i2c OK [11:37:40]MH_I2C_Read... [11:37:40]OFD Sender: No OFD packet to send [11:37:41]*** Cut start [11:37:41]*** Partial cut [11:37:41]*** CUTSNS_PIN = 1 [11:37:41]*** CUTSNS_PIN = 0 [11:37:41]*** Brake cut motor [11:37:41]Read from MH i2c: 01 [11:37:41]MH_I2C_Read... [11:37:41]*** Stop cut motor [11:37:41]*** Cut end [11:37:41]Read from MH i2c: 01 07 00 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: 01 07 00 E1 21 00 00 00 00 00 FF 0F 17 [11:37:41]process_action close_receipt done [11:37:41]requested_data is exist [11:37:41]produce_requested_data [11:37:41]requested_item fm.sn is exist - process it [11:37:41]wFMCommunicate request_size=4 [11:37:41]MH_SAM_APDU [11:37:41]CAPDU: 80 11 00 00 [11:37:41]Write to MH i2c: E2 08 00 E2 21 80 11 00 00 00 00 00 00 7D [11:37:41]Write i2c OK [11:37:41]MH_I2C_Read... [11:37:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:41]Read from MH i2c: E2 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: E2 17 00 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: E2 17 00 E2 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D8 [11:37:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:37:41]wFMCommunicate OK [11:37:41]requested_item fd.num is exist - process it [11:37:41]SAM_PROTO_GetFieldsCounters [11:37:41]wFMCommunicate request_size=4 [11:37:41]MH_SAM_APDU [11:37:41]CAPDU: 80 13 00 00 [11:37:41]Write to MH i2c: E2 08 00 E3 21 80 13 00 00 00 00 00 00 80 [11:37:41]Write i2c OK [11:37:41]MH_I2C_Read... [11:37:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:42]Read from MH i2c: E2 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 62 00 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 62 00 E3 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BF CE 01 00 0E 04 04 00 B1 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 73 [11:37: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BF CE 01 00 0E 04 04 00 B1 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 [11:37:42]wFMCommunicate OK [11:37:42]SAM_PROTO_GetFieldsCounters done [11:37:42]requested_item shift.num is exist - process it [11:37:42]requested_item shift.opened is exist - process it [11:37:42]req_shift_opened [11:37:42]FM_GetShiftState [11:37:42]SAM_PROTO_GetShiftState [11:37:42]wFMCommunicate request_size=4 [11:37:42]MH_SAM_APDU [11:37:42]CAPDU: 80 13 01 00 [11:37:42]Write to MH i2c: E2 08 00 E4 21 80 13 01 00 00 00 00 00 82 [11:37:42]Write i2c OK [11:37:42]MH_I2C_Read... [11:37:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:42]Read from MH i2c: E2 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 0E 00 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: E2 0E 00 E4 21 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 59 [11:37:42]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:37:42]wFMCommunicate OK [11:37:42]SAM_PROTO_GetShiftState done [11:37:42]FM_GetShiftState done [11:37:42]req_shift_opened done [11:37:42]requested_item shift.open_date is exist - process it [11:37:42]req_shift_open_date [11:37:42]req_shift_open_date done [11:37:42]produce_requested_data done [11:37:42]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118463,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:37:42]process_action_free close_receipt [11:37:42]json_value_free [11:37:42]json_value_free done [11:37:42]process_json_proto returns [11:37:42]Send response to host [11:37:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118463,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:37:42]free response buf [11:37:42]execute_script done [11:37:42]execute_script returns [11:37:42]free content buf [11:37:42]Sock 7.Close socket [11:37:42]Sock 7.Thread stoped [11:37:45]OFD Sender: No OFD packet to send [11:37:50]OFD Sender: No OFD packet to send [11:37:55]OFD Sender: No OFD packet to send [11:38:00]OFD Sender: No OFD packet to send [11:38:05]OFD Sender: No OFD packet to send [11:38:10]OFD Sender: No OFD packet to send [11:38:15]OFD Sender: No OFD packet to send [11:38:20]OFD Sender: No OFD packet to send [11:38:25]OFD Sender: No OFD packet to send [11:38:30]OFD Sender: No OFD packet to send [11:38:35]OFD Sender: No OFD packet to send [11:38:40]OFD Sender: No OFD packet to send [11:38:45]OFD Sender: No OFD packet to send [11:38:50]OFD Sender: No OFD packet to send [11:38:54]accept exits with 9 [11:38:54]New connection [11:38:54]New thread 3067067748 created [11:38:54]Thread 3066924388 joined [11:38:54]Waiting for new connection... [11:38:54] Sock 9.Parse request [11:38:54]Sock 9.Check first char [11:38:54]Sock 9.First char is OK [11:38:54]request: POST /json_proto HTTP/1.0 [11:38:54]Method: POST [11:38:54]URL: /json_proto [11:38:54]Method is POST - this is cgi request [11:38:54]url: /json_proto [11:38:54]query_string will be loaded in cgi processing [11:38:54]execute_cgi json_proto POST (null) [11:38:54]execute_cgi path=json_proto method=POST [11:38:54]POST find Content-Length [11:38:54]Host: 172.17.45.7:8080 [11:38:54]Content-Length: 801 [11:38:54]Content-Type: application/json [11:38:54] [11:38:54]POST finish read [11:38:54]Found Content-Length = 801 [11:38:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 100.000, "sum" : 7620.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" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:54]execute_script... [11:38: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)949333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 100.000, "sum" : 7620.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" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:54]POST & json_proto [11:38:54]process_json_proto [11:38:54]json parsed OK: [11:38:54]protocol is kg_v1.0 [11:38:54]action value=close_receipt [11:38:54]process_action close_receipt [11:38:54]cmd_close_receipt [11:38:54]MH_GetDate [11:38:54]Write to MH i2c: F0 00 00 E5 21 F5 [11:38:54]Write i2c OK [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: F0 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: F0 09 00 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: F0 09 00 E5 21 00 D0 2D A6 66 90 0F 3E 66 4A [11:38:54]GetLastDocTimeStamp 1722166660 [11:38:54]current date 1722166736 [11:38:54]FM_GetShiftState [11:38:54]SAM_PROTO_GetShiftState [11:38:54]wFMCommunicate request_size=4 [11:38:54]MH_SAM_APDU [11:38:54]CAPDU: 80 13 01 00 [11:38:54]Write to MH i2c: E2 08 00 E6 21 80 13 01 00 00 00 00 00 84 [11:38:54]Write i2c OK [11:38:54]MH_I2C_Read... [11:38:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:54]Read from MH i2c: E2 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: E2 0E 00 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: E2 0E 00 E6 21 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 5B [11:38:54]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:38:54]wFMCommunicate OK [11:38:54]SAM_PROTO_GetShiftState done [11:38:54]FM_GetShiftState done [11:38:54]opened in 1722125364 [11:38:54]opened+sec_in_day 1722211764 [11:38:54]quantity*price = 762000 [11:38:54]sum+1 = 762001 [11:38:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7620.00 НСП 1% : 67.43 НДС 12% : 809.20 Наличными: 0.00 Безнал.: 7620.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 133 28.07.2024 11:38 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118464 ФПД: 197749352232068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113856&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118464&fm=197749352232068&tin=02508201610067®Number=0000000000092660&sum=762000 [11:38:55]StoreToDocumentArchive [11:38:55]shift 433 fd 118464 [11:38:55]save to /storage/0433/doc_00118464 [11:38:55]save last doc name /storage/0433/doc_00118464 to /storage/kkm_last_doc_name [11:38:55]save OK [11:38:55]Clear old archive folders... [11:38:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:38:55]tlvbuf is 0021D520 [11:38:55]SAM_PROTO_ClearQueue [11:38:55]wFMCommunicate request_size=4 [11:38:55]MH_SAM_APDU [11:38:55]CAPDU: 80 09 00 00 [11:38:55]Write to MH i2c: E2 08 00 F3 21 80 09 00 00 00 00 00 00 86 [11:38:55]Write i2c OK [11:38:55]MH_I2C_Read... [11:38:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:55]Read from MH i2c: E2 [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: E2 03 00 [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: E2 03 00 F3 21 00 90 00 88 [11:38:55]RAPDU: 90 00 [11:38:55]wFMCommunicate OK [11:38:55]SAM_PROTO_ClearQueue done [11:38:55]KKMCreateOFDPacket [11:38:55]OFDProtocolAddRootSTLVToBuf [11:38:55]FM_MakeSignedData [11:38:55]FM_MakeSignedData [11:38:55]SAM_PROTO_SignData [11:38:55]wFMCommunicate request_size=4 [11:38:55]MH_SAM_APDU [11:38:55]CAPDU: 80 0D 01 02 [11:38:55]Write to MH i2c: E2 08 00 F4 21 80 0D 01 02 00 00 00 00 8E [11:38:55]Write i2c OK [11:38:55]MH_I2C_Read... [11:38:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:55]Read from MH i2c: E2 [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: E2 03 00 [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: E2 03 00 F4 21 00 90 00 89 [11:38:55]RAPDU: 90 00 [11:38:55]wFMCommunicate OK [11:38:55]wFMCommunicate request_size=255 [11:38:55]MH_SAM_APDU [11:38:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 D0 2D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C0 CE 01 00 35 04 06 00 B3 DA 1B E4 [11:38:55]Write to MH i2c: E2 02 01 F5 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 D0 2D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C0 CE 01 00 35 04 06 00 B3 DA 1B E4 00 00 D0 [11:38:55]Write i2c OK [11:38:55]MH_I2C_Read... [11:38:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:55]Read from MH i2c: E2 [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: E2 03 00 [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: E2 03 00 F5 21 00 90 00 8A [11:38:55]RAPDU: 90 00 [11:38:55]wFMCommunicate OK [11:38:55]wFMCommunicate request_size=7 [11:38:55]MH_SAM_APDU [11:38:55]CAPDU: 80 0D 02 02 02 F4 84 [11:38:55]Write to MH i2c: E2 0A 00 F6 21 80 0D 02 02 02 00 F4 84 00 00 0D [11:38:55]Write i2c OK [11:38:55]MH_I2C_Read... [11:38:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:55]Read from MH i2c: E2 [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: E2 03 00 [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: E2 03 00 F6 21 00 90 00 8B [11:38:55]RAPDU: 90 00 [11:38:55]wFMCommunicate OK [11:38:55]wFMCommunicate request_size=4 [11:38:55]MH_SAM_APDU [11:38:55]CAPDU: 80 0D 03 02 [11:38:55]Write to MH i2c: E2 08 00 F7 21 80 0D 03 02 00 00 00 00 93 [11:38:55]Write i2c OK [11:38:55]MH_I2C_Read... [11:38:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:55]Read from MH i2c: E2 [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: E2 0B 00 [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: E2 0B 00 F7 21 00 A4 F1 6E 98 EF A4 AB 4D 90 00 BA [11:38:55]RAPDU: A4 F1 6E 98 EF A4 AB 4D 90 00 [11:38:55]wFMCommunicate OK [11:38:55]SAM_PROTO_SignData done [11:38:55]FM_MakeSignedData done [11:38:55]CreateOFDProtocolMessage [11:38:55]wFMCommunicate request_size=4 [11:38:55]MH_SAM_APDU [11:38:55]CAPDU: 80 11 00 00 [11:38:55]Write to MH i2c: E2 08 00 F8 21 80 11 00 00 00 00 00 00 93 [11:38:55]Write i2c OK [11:38:55]MH_I2C_Read... [11:38:55]OFD Sender: No OFD packet to send [11:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:55]Read from MH i2c: E2 [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: E2 17 00 [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: E2 17 00 F8 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EE [11:38:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:38:55]wFMCommunicate OK [11:38:55]CreateOFDProtocolMessage done [11:38:55]OFDSenderStorePacket 118464 [11:38:55]StoreOFDPacket docnum=118464 [11:38:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 60 BF 04 01 1B FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 D0 2D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C0 CE 01 00 35 04 06 00 B3 DA 1B E4 F4 84 A4 F1 6E 98 EF A4 AB 4D [11:38:55]CheckFolder [11:38:55]dirname=/storage/ofd_packets [11:38:55]CheckFolder done [11:38:55]ProducePacketName [11:38:55]name=ofd_packets/00118464 [11:38:55]NVStorageSaveData ofd_packets/00118464 [11:38:55]File name is /storage/ofd_packets/00118464 [11:38:55]Write 298 bytes [11:38:55]NVStorageSaveData done [11:38:55]OFDSenderStorePacket done [11:38:55]KKMCreateOFDPacket done [11:38:55]NVStorageSaveData kkm_last_timestamp [11:38:55]File name is /storage/kkm_last_timestamp [11:38:55]Write 4 bytes [11:38:55]NVStorageSaveData done [11:38:55]ExternCall_PrintAddStr [11:38:55]wPrintStart [11:38:55]Write to MH i2c: 01 00 00 F9 21 1A [11:38:55]Write i2c OK [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: 01 [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: 01 07 00 [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: 01 07 00 F9 21 00 00 00 00 00 FF 0F 2F [11:38:55]RasterBufferAndPrint [11:38:55]line Счет N : (1)949333 [11:38:55]line ИНН: 02508201610067 [11:38:55]line Контрольно-Кассовый Чек [11:38:55]line ПРОДАЖА [11:38:55]line ТРК (МРК, ГНК) : 21 [11:38:55]line Товар: 2710194800 [11:38:55]line ДТ-К-5 [11:38:55]line 100.000 * 76.20 [11:38:55]line = 7620.00 [11:38:55]line НДС 12% НСП 1% [11:38:55]line > о реализуемом товаре [11:38:55]line ИТОГО: 7620.00 [11:38:55]line НСП 1% : 67.43 [11:38:55]line НДС 12% : 809.20 [11:38:55]line Наличными: 0.00 [11:38:55]line Безнал.: 7620.00 [11:38:55]line Место: АЗС № 134 "Партнер Нефть" [11:38:55]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:38:55]line СНО: Общий режим [11:38:55]line Чек 133 28.07.2024 11:38 [11:38:55]line Смена: 433 ФФД: 1.0 [11:38:55]line ЗНМ: 0300000044 [11:38:55]line РНМ: 0000000000092660 [11:38:55]line Версия ККМ: 001 [11:38:55]line Платежная система: O! деньги [11:38:55]line ФМ: 0000000000874939 [11:38:55]line ФД: 118464 [11:38:55]line ФПД: 197749352232068 [11:38:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113856&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118464&fm=197749352232068&tin=02508201610067®Number=0000000000092660&sum=762000 [11:38:56]OFD Sender: Processing packet 118464 [packets to send 86, broken 85] [11:38:56]ProducePacketName [11:38:56]name=ofd_packets/00118464 [11:38:56]OFD Sender: To server: pG, [11:38:56]CommunicateWithHost lk.salyk.kg:30040 [11:38:56]ConnectInit lk.salyk.kg [11:38:56]written 0, free lines is 4095 [11:38:56]Connected sock=10 [11:38:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 60 BF 04 01 1B FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 D0 2D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C0 CE 01 00 35 04 06 00 B3 DA 1B E4 F4 84 A4 F1 6E 98 EF A4 AB 4D [11:38:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 2A 5F 47 00 9D 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C0 CE 01 00 F4 03 04 00 61 DB A5 66 B6 04 01 00 00 65 BC 28 0A 98 C9 17 B0 [11:38:56]CommunicateWithHost err = 0 [11:38:56]CheckOFDResponse [11:38:56]1017 (14) - 77093643461234 [11:38:56]1041 (16) - 0000000000874939 [11:38:56]1040 (4) - 118464 [11:38:56]1012 (4) - 28.07.2024 05:47 [11:38:56]1206 (1) - 0 [11:38:56]OFD Sender: Remove packet 118464 [11:38:56]ProducePacketName [11:38:56]name=ofd_packets/00118464 [11:38:56]NVStorageDeleteData [11:38:56]Write to MH i2c: 01 00 00 22 22 44 [11:38:56]Write i2c OK [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: 01 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: 01 07 00 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: 01 07 00 22 22 00 00 00 00 00 01 0D 59 [11:38:56]RasterBufferAndPrint [11:38:56]line [11:38:56]line [11:38:56]line [11:38:56]line [11:38:56]line [11:38:56]written 0, free lines is 3335 [11:38:56]MH_Cut [11:38:56]Write to MH i2c: D1 01 00 29 22 01 1D [11:38:56]Write i2c OK [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: D1 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: D1 01 00 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: D1 01 00 29 22 00 1C [11:38:56]Write to MH i2c: 01 00 00 2A 22 4C [11:38:56]Write i2c OK [11:38:56]MH_I2C_Read... [11:38:57]OFD Sender: No OFD packet to send [11:38:57]*** Cut start [11:38:57]*** Partial cut [11:38:57]*** CUTSNS_PIN = 1 [11:38:57]*** CUTSNS_PIN = 0 [11:38:57]*** Brake cut motor [11:38:58]Read from MH i2c: 01 [11:38:58]MH_I2C_Read... [11:38:58]*** Stop cut motor [11:38:58]*** Cut end [11:38:58]Read from MH i2c: 01 07 00 [11:38:58]MH_I2C_Read... [11:38:58]Read from MH i2c: 01 07 00 2A 22 00 00 00 00 00 FF 0F 61 [11:38:58]process_action close_receipt done [11:38:58]requested_data is exist [11:38:58]produce_requested_data [11:38:58]requested_item fm.sn is exist - process it [11:38:58]wFMCommunicate request_size=4 [11:38:58]MH_SAM_APDU [11:38:58]CAPDU: 80 11 00 00 [11:38:58]Write to MH i2c: E2 08 00 2B 22 80 11 00 00 00 00 00 00 C7 [11:38:58]Write i2c OK [11:38:58]MH_I2C_Read... [11:38:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:58]Read from MH i2c: E2 [11:38:58]MH_I2C_Read... [11:38:58]Read from MH i2c: E2 17 00 [11:38:58]MH_I2C_Read... [11:38:58]Read from MH i2c: E2 17 00 2B 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 22 [11:38:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:38:58]wFMCommunicate OK [11:38:58]requested_item fd.num is exist - process it [11:38:58]SAM_PROTO_GetFieldsCounters [11:38:58]wFMCommunicate request_size=4 [11:38:58]MH_SAM_APDU [11:38:58]CAPDU: 80 13 00 00 [11:38:58]Write to MH i2c: E2 08 00 2C 22 80 13 00 00 00 00 00 00 CA [11:38:58]Write i2c OK [11:38:58]MH_I2C_Read... [11:38:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:58]Read from MH i2c: E2 [11:38:58]MH_I2C_Read... [11:38:58]Read from MH i2c: E2 62 00 [11:38:58]MH_I2C_Read... [11:38:58]Read from MH i2c: E2 62 00 2C 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C0 CE 01 00 0E 04 04 00 B1 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 C1 [11: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C0 CE 01 00 0E 04 04 00 B1 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 [11:38:58]wFMCommunicate OK [11:38:58]SAM_PROTO_GetFieldsCounters done [11:38:58]requested_item shift.num is exist - process it [11:38:58]requested_item shift.opened is exist - process it [11:38:58]req_shift_opened [11:38:58]FM_GetShiftState [11:38:58]SAM_PROTO_GetShiftState [11:38:58]wFMCommunicate request_size=4 [11:38:58]MH_SAM_APDU [11:38:58]CAPDU: 80 13 01 00 [11:38:58]Write to MH i2c: E2 08 00 2D 22 80 13 01 00 00 00 00 00 CC [11:38:58]Write i2c OK [11:38:58]MH_I2C_Read... [11:38:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:58]Read from MH i2c: E2 [11:38:58]MH_I2C_Read... [11:38:58]Read from MH i2c: E2 0E 00 [11:38:58]MH_I2C_Read... [11:38:58]Read from MH i2c: E2 0E 00 2D 22 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A3 [11:38:58]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:38:58]wFMCommunicate OK [11:38:58]SAM_PROTO_GetShiftState done [11:38:58]FM_GetShiftState done [11:38:58]req_shift_opened done [11:38:58]requested_item shift.open_date is exist - process it [11:38:58]req_shift_open_date [11:38:58]req_shift_open_date done [11:38:58]produce_requested_data done [11:38:58]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118464,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:38:58]process_action_free close_receipt [11:38:58]json_value_free [11:38:58]json_value_free done [11:38:58]process_json_proto returns [11:38:58]Send response to host [11:38:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118464,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:38:58]free response buf [11:38:58]execute_script done [11:38:58]execute_script returns [11:38:58]free content buf [11:38:58]Sock 9.Close socket [11:38:58]Sock 9.Thread stoped [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:12]OFD Sender: No OFD packet to send [11:39:17]OFD Sender: No OFD packet to send [11:39:22]OFD Sender: No OFD packet to send [11:39:27]OFD Sender: No OFD packet to send [11:39:32]OFD Sender: No OFD packet to send [11:39:37]OFD Sender: No OFD packet to send [11:39:42]OFD Sender: No OFD packet to send [11:39:47]OFD Sender: No OFD packet to send [11:39:52]OFD Sender: No OFD packet to send [11:39:57]OFD Sender: No OFD packet to send [11:40:02]OFD Sender: No OFD packet to send [11:40:07]OFD Sender: No OFD packet to send [11:40:12]OFD Sender: No OFD packet to send [11:40:17]OFD Sender: No OFD packet to send [11:40:22]OFD Sender: No OFD packet to send [11:40:27]OFD Sender: No OFD packet to send [11:40:32]OFD Sender: No OFD packet to send [11:40:37]OFD Sender: No OFD packet to send [11:40:41]accept exits with 7 [11:40:41]New connection [11:40:41]New thread 3066924388 created [11:40:41]Thread 3067067748 joined [11:40:41]Waiting for new connection... [11:40:41] Sock 7.Parse request [11:40:41]Sock 7.Check first char [11:40:41]Sock 7.First char is OK [11:40:41]request: POST /json_proto HTTP/1.0 [11:40:41]Method: POST [11:40:41]URL: /json_proto [11:40:41]Method is POST - this is cgi request [11:40:41]url: /json_proto [11:40:41]query_string will be loaded in cgi processing [11:40:41]execute_cgi json_proto POST (null) [11:40:41]execute_cgi path=json_proto method=POST [11:40:41]POST find Content-Length [11:40:41]Host: 172.17.45.7:8080 [11:40:41]Content-Length: 801 [11:40:41]Content-Type: application/json [11:40:41] [11:40:41]POST finish read [11:40:41]Found Content-Length = 801 [11:40:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 100.000, "sum" : 7620.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" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:41]execute_script... [11:40: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)949335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 100.000, "sum" : 7620.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" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:41]POST & json_proto [11:40:41]process_json_proto [11:40:41]json parsed OK: [11:40:41]protocol is kg_v1.0 [11:40:41]action value=close_receipt [11:40:41]process_action close_receipt [11:40:41]cmd_close_receipt [11:40:41]MH_GetDate [11:40:41]Write to MH i2c: F0 00 00 2E 22 3F [11:40:41]Write i2c OK [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: F0 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: F0 09 00 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: F0 09 00 2E 22 00 3C 2E A6 66 90 0F 3E 66 01 [11:40:41]GetLastDocTimeStamp 1722166736 [11:40:41]current date 1722166844 [11:40:41]FM_GetShiftState [11:40:41]SAM_PROTO_GetShiftState [11:40:41]wFMCommunicate request_size=4 [11:40:41]MH_SAM_APDU [11:40:41]CAPDU: 80 13 01 00 [11:40:41]Write to MH i2c: E2 08 00 2F 22 80 13 01 00 00 00 00 00 CE [11:40:41]Write i2c OK [11:40:41]MH_I2C_Read... [11:40:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:41]Read from MH i2c: E2 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 0E 00 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 0E 00 2F 22 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A5 [11:40:41]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:40:41]wFMCommunicate OK [11:40:41]SAM_PROTO_GetShiftState done [11:40:41]FM_GetShiftState done [11:40:41]opened in 1722125364 [11:40:41]opened+sec_in_day 1722211764 [11:40:41]quantity*price = 762000 [11:40:41]sum+1 = 762001 [11:40:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7620.00 НСП 1% : 67.43 НДС 12% : 809.20 Наличными: 0.00 Безнал.: 7620.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 134 28.07.2024 11:40 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118465 ФПД: 167308082202864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T114044&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118465&fm=167308082202864&tin=02508201610067®Number=0000000000092660&sum=762000 [11:40:42]StoreToDocumentArchive [11:40:42]shift 433 fd 118465 [11:40:42]save to /storage/0433/doc_00118465 [11:40:42]save last doc name /storage/0433/doc_00118465 to /storage/kkm_last_doc_name [11:40:42]save OK [11:40:42]Clear old archive folders... [11:40:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:40:42]tlvbuf is 001BAED0 [11:40:42]SAM_PROTO_ClearQueue [11:40:42]wFMCommunicate request_size=4 [11:40:42]MH_SAM_APDU [11:40:42]CAPDU: 80 09 00 00 [11:40:42]Write to MH i2c: E2 08 00 3C 22 80 09 00 00 00 00 00 00 D0 [11:40:42]Write i2c OK [11:40:42]MH_I2C_Read... [11:40:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:43]Read from MH i2c: E2 [11:40:43]MH_I2C_Read... [11:40:43]Read from MH i2c: E2 03 00 [11:40:43]MH_I2C_Read... [11:40:43]Read from MH i2c: E2 03 00 3C 22 00 90 00 D2 [11:40:43]RAPDU: 90 00 [11:40:43]wFMCommunicate OK [11:40:43]SAM_PROTO_ClearQueue done [11:40:43]KKMCreateOFDPacket [11:40:43]OFDProtocolAddRootSTLVToBuf [11:40:43]FM_MakeSignedData [11:40:43]FM_MakeSignedData [11:40:43]SAM_PROTO_SignData [11:40:43]wFMCommunicate request_size=4 [11:40:43]MH_SAM_APDU [11:40:43]CAPDU: 80 0D 01 02 [11:40:43]Write to MH i2c: E2 08 00 3D 22 80 0D 01 02 00 00 00 00 D8 [11:40:43]Write i2c OK [11:40:43]MH_I2C_Read... [11:40:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:43]Read from MH i2c: E2 [11:40:43]MH_I2C_Read... [11:40:43]Read from MH i2c: E2 03 00 [11:40:43]MH_I2C_Read... [11:40:43]Read from MH i2c: E2 03 00 3D 22 00 90 00 D3 [11:40:43]RAPDU: 90 00 [11:40:43]wFMCommunicate OK [11:40:43]wFMCommunicate request_size=255 [11:40:43]MH_SAM_APDU [11:40:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 3C 2E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C1 CE 01 00 35 04 06 00 98 2A 72 CE [11:40:43]Write to MH i2c: E2 02 01 3E 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 3C 2E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C1 CE 01 00 35 04 06 00 98 2A 72 CE 00 00 FF [11:40:43]Write i2c OK [11:40:43]MH_I2C_Read... [11:40:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:43]Read from MH i2c: E2 [11:40:43]MH_I2C_Read... [11:40:43]Read from MH i2c: E2 03 00 [11:40:43]MH_I2C_Read... [11:40:43]Read from MH i2c: E2 03 00 3E 22 00 90 00 D4 [11:40:43]RAPDU: 90 00 [11:40:43]wFMCommunicate OK [11:40:43]wFMCommunicate request_size=7 [11:40:43]MH_SAM_APDU [11:40:43]CAPDU: 80 0D 02 02 02 C8 F0 [11:40:43]Write to MH i2c: E2 0A 00 3F 22 80 0D 02 02 02 00 C8 F0 00 00 97 [11:40:43]Write i2c OK [11:40:43]MH_I2C_Read... [11:40:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:43]Read from MH i2c: E2 [11:40:43]MH_I2C_Read... [11:40:43]Read from MH i2c: E2 03 00 [11:40:43]MH_I2C_Read... [11:40:43]Read from MH i2c: E2 03 00 3F 22 00 90 00 D5 [11:40:43]RAPDU: 90 00 [11:40:43]wFMCommunicate OK [11:40:43]wFMCommunicate request_size=4 [11:40:43]MH_SAM_APDU [11:40:43]CAPDU: 80 0D 03 02 [11:40:43]Write to MH i2c: E2 08 00 40 22 80 0D 03 02 00 00 00 00 DD [11:40:43]Write i2c OK [11:40:43]MH_I2C_Read... [11:40:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:43]Read from MH i2c: E2 [11:40:43]MH_I2C_Read... [11:40:43]Read from MH i2c: E2 0B 00 [11:40:43]MH_I2C_Read... [11:40:43]Read from MH i2c: E2 0B 00 40 22 00 09 6D 09 F3 E3 EA 1F 34 90 00 70 [11:40:43]RAPDU: 09 6D 09 F3 E3 EA 1F 34 90 00 [11:40:43]wFMCommunicate OK [11:40:43]SAM_PROTO_SignData done [11:40:43]FM_MakeSignedData done [11:40:43]CreateOFDProtocolMessage [11:40:43]wFMCommunicate request_size=4 [11:40:43]MH_SAM_APDU [11:40:43]CAPDU: 80 11 00 00 [11:40:43]Write to MH i2c: E2 08 00 41 22 80 11 00 00 00 00 00 00 DD [11:40:43]Write i2c OK [11:40:43]MH_I2C_Read... [11:40:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:43]Read from MH i2c: E2 [11:40:43]MH_I2C_Read... [11:40:43]Read from MH i2c: E2 17 00 [11:40:43]MH_I2C_Read... [11:40:43]Read from MH i2c: E2 17 00 41 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 38 [11:40:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:40:43]wFMCommunicate OK [11:40:43]CreateOFDProtocolMessage done [11:40:43]OFDSenderStorePacket 118465 [11:40:43]StoreOFDPacket docnum=118465 [11:40:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 41 70 04 01 89 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 3C 2E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C1 CE 01 00 35 04 06 00 98 2A 72 CE C8 F0 09 6D 09 F3 E3 EA 1F 34 [11:40:43]CheckFolder [11:40:43]dirname=/storage/ofd_packets [11:40:43]CheckFolder done [11:40:43]ProducePacketName [11:40:43]name=ofd_packets/00118465 [11:40:43]NVStorageSaveData ofd_packets/00118465 [11:40:43]File name is /storage/ofd_packets/00118465 [11:40:43]Write 298 bytes [11:40:43]NVStorageSaveData done [11:40:43]OFDSenderStorePacket done [11:40:43]KKMCreateOFDPacket done [11:40:43]NVStorageSaveData kkm_last_timestamp [11:40:43]File name is /storage/kkm_last_timestamp [11:40:43]Write 4 bytes [11:40:43]NVStorageSaveData done [11:40:43]ExternCall_PrintAddStr [11:40:43]wPrintStart [11:40:43]Write to MH i2c: 01 00 00 42 22 64 [11:40:43]Write i2c OK [11:40:43]MH_I2C_Read... [11:40:43]Read from MH i2c: 01 [11:40:43]MH_I2C_Read... [11:40:43]Read from MH i2c: 01 07 00 [11:40:43]MH_I2C_Read... [11:40:43]Read from MH i2c: 01 07 00 42 22 00 00 00 00 00 FF 0F 79 [11:40:43]RasterBufferAndPrint [11:40:43]line Счет N : (1)949335 [11:40:43]line ИНН: 02508201610067 [11:40:43]line Контрольно-Кассовый Чек [11:40:43]line ПРОДАЖА [11:40:43]line ТРК (МРК, ГНК) : 11 [11:40:43]line Товар: 2710194800 [11:40:43]line ДТ-К-5 [11:40:43]line 100.000 * 76.20 [11:40:43]line = 7620.00 [11:40:43]line НДС 12% НСП 1% [11:40:43]line > о реализуемом товаре [11:40:43]line ИТОГО: 7620.00 [11:40:43]line НСП 1% : 67.43 [11:40:43]line НДС 12% : 809.20 [11:40:43]line Наличными: 0.00 [11:40:43]line Безнал.: 7620.00 [11:40:43]line Место: АЗС № 134 "Партнер Нефть" [11:40:43]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:40:43]line СНО: Общий режим [11:40:43]line Чек 134 28.07.2024 11:40 [11:40:43]line Смена: 433 ФФД: 1.0 [11:40:43]line ЗНМ: 0300000044 [11:40:43]line РНМ: 0000000000092660 [11:40:43]line Версия ККМ: 001 [11:40:43]line Платежная система: O! деньги [11:40:43]line ФМ: 0000000000874939 [11:40:43]line ФД: 118465 [11:40:43]line ФПД: 167308082202864 [11:40:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T114044&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118465&fm=167308082202864&tin=02508201610067®Number=0000000000092660&sum=762000 [11:40:43]OFD Sender: Processing packet 118465 [packets to send 86, broken 85] [11:40:43]ProducePacketName [11:40:43]name=ofd_packets/00118465 [11:40:43]OFD Sender: To server: pG, [11:40:43]CommunicateWithHost lk.salyk.kg:30040 [11:40:43]ConnectInit lk.salyk.kg [11:40:43]written 0, free lines is 4095 [11:40:43]Connected sock=10 [11:40:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 41 70 04 01 89 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 3C 2E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C1 CE 01 00 35 04 06 00 98 2A 72 CE C8 F0 09 6D 09 F3 E3 EA 1F 34 [11:40:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6D 5A 47 00 DB 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 39 33 39 10 04 04 00 C1 CE 01 00 F4 03 04 00 CC DB A5 66 B6 04 01 00 00 51 63 10 C3 B1 9A 04 A8 [11:40:44]CommunicateWithHost err = 0 [11:40:44]CheckOFDResponse [11:40:44]1017 (14) - 77093643461234 [11:40:44]1041 (16) - 0000000000874939 [11:40:44]1040 (4) - 118465 [11:40:44]1012 (4) - 28.07.2024 05:49 [11:40:44]1206 (1) - 0 [11:40:44]OFD Sender: Remove packet 118465 [11:40:44]ProducePacketName [11:40:44]name=ofd_packets/00118465 [11:40:44]NVStorageDeleteData [11:40:44]Write to MH i2c: 01 00 00 6B 22 8D [11:40:44]Write i2c OK [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: 01 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: 01 07 00 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: 01 07 00 6B 22 00 00 00 00 00 0B 0D AC [11:40:44]RasterBufferAndPrint [11:40:44]line [11:40:44]line [11:40:44]line [11:40:44]line [11:40:44]line [11:40:44]written 0, free lines is 3345 [11:40:44]MH_Cut [11:40:44]Write to MH i2c: D1 01 00 72 22 01 66 [11:40:44]Write i2c OK [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: D1 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: D1 01 00 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: D1 01 00 72 22 00 65 [11:40:44]Write to MH i2c: 01 00 00 73 22 95 [11:40:44]Write i2c OK [11:40:44]MH_I2C_Read... [11:40:44]OFD Sender: No OFD packet to send [11:40:44]*** Cut start [11:40:44]*** Partial cut [11:40:44]*** CUTSNS_PIN = 1 [11:40:45]*** CUTSNS_PIN = 0 [11:40:45]*** Brake cut motor [11:40:45]Read from MH i2c: 01 [11:40:45]MH_I2C_Read... [11:40:45]*** Stop cut motor [11:40:45]*** Cut end [11:40:45]Read from MH i2c: 01 07 00 [11:40:45]MH_I2C_Read... [11:40:45]Read from MH i2c: 01 07 00 73 22 00 00 00 00 00 FF 0F AA [11:40:45]process_action close_receipt done [11:40:45]requested_data is exist [11:40:45]produce_requested_data [11:40:45]requested_item fm.sn is exist - process it [11:40:45]wFMCommunicate request_size=4 [11:40:45]MH_SAM_APDU [11:40:45]CAPDU: 80 11 00 00 [11:40:45]Write to MH i2c: E2 08 00 74 22 80 11 00 00 00 00 00 00 10 [11:40:45]Write i2c OK [11:40:45]MH_I2C_Read... [11:40:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:45]Read from MH i2c: E2 [11:40:45]MH_I2C_Read... [11:40:45]Read from MH i2c: E2 17 00 [11:40:45]MH_I2C_Read... [11:40:45]Read from MH i2c: E2 17 00 74 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6B [11:40:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:40:45]wFMCommunicate OK [11:40:45]requested_item fd.num is exist - process it [11:40:45]SAM_PROTO_GetFieldsCounters [11:40:45]wFMCommunicate request_size=4 [11:40:45]MH_SAM_APDU [11:40:45]CAPDU: 80 13 00 00 [11:40:45]Write to MH i2c: E2 08 00 75 22 80 13 00 00 00 00 00 00 13 [11:40:45]Write i2c OK [11:40:45]MH_I2C_Read... [11:40:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:45]Read from MH i2c: E2 [11:40:45]MH_I2C_Read... [11:40:45]Read from MH i2c: E2 62 00 [11:40:45]MH_I2C_Read... [11:40:45]Read from MH i2c: E2 62 00 75 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C1 CE 01 00 0E 04 04 00 B1 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 0E [11:40:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C1 CE 01 00 0E 04 04 00 B1 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 [11:40:45]wFMCommunicate OK [11:40:45]SAM_PROTO_GetFieldsCounters done [11:40:45]requested_item shift.num is exist - process it [11:40:45]requested_item shift.opened is exist - process it [11:40:45]req_shift_opened [11:40:45]FM_GetShiftState [11:40:45]SAM_PROTO_GetShiftState [11:40:45]wFMCommunicate request_size=4 [11:40:45]MH_SAM_APDU [11:40:45]CAPDU: 80 13 01 00 [11:40:45]Write to MH i2c: E2 08 00 76 22 80 13 01 00 00 00 00 00 15 [11:40:45]Write i2c OK [11:40:45]MH_I2C_Read... [11:40:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:45]Read from MH i2c: E2 [11:40:45]MH_I2C_Read... [11:40:45]Read from MH i2c: E2 0E 00 [11:40:45]MH_I2C_Read... [11:40:45]Read from MH i2c: E2 0E 00 76 22 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 EC [11:40:45]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:40:45]wFMCommunicate OK [11:40:45]SAM_PROTO_GetShiftState done [11:40:45]FM_GetShiftState done [11:40:45]req_shift_opened done [11:40:45]requested_item shift.open_date is exist - process it [11:40:45]req_shift_open_date [11:40:45]req_shift_open_date done [11:40:45]produce_requested_data done [11:40:45]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118465,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:40:45]process_action_free close_receipt [11:40:45]json_value_free [11:40:45]json_value_free done [11:40:45]process_json_proto returns [11:40:45]Send response to host [11:40:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118465,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:40:45]free response buf [11:40:45]execute_script done [11:40:45]execute_script returns [11:40:45]free content buf [11:40:45]Sock 7.Close socket [11:40:45]Sock 7.Thread stoped [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:04]OFD Sender: No OFD packet to send [11:41:07]accept exits with 9 [11:41:07]New connection [11:41:07]New thread 3067067748 created [11:41:07]Thread 3066924388 joined [11:41:07]Waiting for new connection... [11:41:07] Sock 9.Parse request [11:41:07]Sock 9.Check first char [11:41:07]Sock 9.First char is OK [11:41:07]request: POST /json_proto HTTP/1.0 [11:41:07]Method: POST [11:41:07]URL: /json_proto [11:41:07]Method is POST - this is cgi request [11:41:07]url: /json_proto [11:41:07]query_string will be loaded in cgi processing [11:41:07]execute_cgi json_proto POST (null) [11:41:07]execute_cgi path=json_proto method=POST [11:41:07]POST find Content-Length [11:41:07]Host: 172.17.45.7:8080 [11:41:07]Content-Length: 677 [11:41:07]Content-Type: application/json [11:41:07] [11:41:07]POST finish read [11:41:07]Found Content-Length = 677 [11:41:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:07]execute_script... [11:41: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)949336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:07]POST & json_proto [11:41:07]process_json_proto [11:41:07]json parsed OK: [11:41:07]protocol is kg_v1.0 [11:41:07]action value=close_receipt [11:41:07]process_action close_receipt [11:41:07]cmd_close_receipt [11:41:07]MH_GetDate [11:41:07]Write to MH i2c: F0 00 00 77 22 88 [11:41:07]Write i2c OK [11:41:07]MH_I2C_Read... [11:41:07]Read from MH i2c: F0 [11:41:07]MH_I2C_Read... [11:41:07]Read from MH i2c: F0 09 00 [11:41:07]MH_I2C_Read... [11:41:07]Read from MH i2c: F0 09 00 77 22 00 55 2E A6 66 90 0F 3E 66 63 [11:41:07]GetLastDocTimeStamp 1722166844 [11:41:07]current date 1722166869 [11:41:07]FM_GetShiftState [11:41:07]SAM_PROTO_GetShiftState [11:41:07]wFMCommunicate request_size=4 [11:41:07]MH_SAM_APDU [11:41:07]CAPDU: 80 13 01 00 [11:41:07]Write to MH i2c: E2 08 00 78 22 80 13 01 00 00 00 00 00 17 [11:41:07]Write i2c OK [11:41:07]MH_I2C_Read... [11:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:07]Read from MH i2c: E2 [11:41:07]MH_I2C_Read... [11:41:07]Read from MH i2c: E2 0E 00 [11:41:07]MH_I2C_Read... [11:41:07]Read from MH i2c: E2 0E 00 78 22 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 EE [11:41:07]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:41:07]wFMCommunicate OK [11:41:07]SAM_PROTO_GetShiftState done [11:41:07]FM_GetShiftState done [11:41:07]opened in 1722125364 [11:41:07]opened+sec_in_day 1722211764 [11:41:07]quantity*price = 50036 [11:41:07]sum+1 = 50037 [11:41:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 135 28.07.2024 11:41 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118466 ФПД: 43483620224036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T114109&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118466&fm=43483620224036&tin=02508201610067®Number=0000000000092660&sum=50000 [11:41:08]StoreToDocumentArchive [11:41:08]shift 433 fd 118466 [11:41:08]save to /storage/0433/doc_00118466 [11:41:08]save last doc name /storage/0433/doc_00118466 to /storage/kkm_last_doc_name [11:41:08]save OK [11:41:08]Clear old archive folders... [11:41:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:41:08]tlvbuf is 001798B0 [11:41:08]SAM_PROTO_ClearQueue [11:41:08]wFMCommunicate request_size=4 [11:41:08]MH_SAM_APDU [11:41:08]CAPDU: 80 09 00 00 [11:41:08]Write to MH i2c: E2 08 00 85 22 80 09 00 00 00 00 00 00 19 [11:41:08]Write i2c OK [11:41:08]MH_I2C_Read... [11:41:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:08]Read from MH i2c: E2 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: E2 03 00 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: E2 03 00 85 22 00 90 00 1B [11:41:08]RAPDU: 90 00 [11:41:08]wFMCommunicate OK [11:41:08]SAM_PROTO_ClearQueue done [11:41:08]KKMCreateOFDPacket [11:41:08]OFDProtocolAddRootSTLVToBuf [11:41:08]FM_MakeSignedData [11:41:08]FM_MakeSignedData [11:41:08]SAM_PROTO_SignData [11:41:08]wFMCommunicate request_size=4 [11:41:08]MH_SAM_APDU [11:41:08]CAPDU: 80 0D 01 02 [11:41:08]Write to MH i2c: E2 08 00 86 22 80 0D 01 02 00 00 00 00 21 [11:41:08]Write i2c OK [11:41:08]MH_I2C_Read... [11:41:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:08]Read from MH i2c: E2 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: E2 03 00 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: E2 03 00 86 22 00 90 00 1C [11:41:08]RAPDU: 90 00 [11:41:08]wFMCommunicate OK [11:41:08]wFMCommunicate request_size=255 [11:41:08]MH_SAM_APDU [11:41: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 55 2E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C2 CE 01 00 35 04 06 00 27 [11:41:08]Write to MH i2c: E2 02 01 87 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 55 2E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C2 CE 01 00 35 04 06 00 27 00 00 25 [11:41:08]Write i2c OK [11:41:08]MH_I2C_Read... [11:41:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:08]Read from MH i2c: E2 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: E2 03 00 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: E2 03 00 87 22 00 90 00 1D [11:41:08]RAPDU: 90 00 [11:41:08]wFMCommunicate OK [11:41:08]wFMCommunicate request_size=10 [11:41:08]MH_SAM_APDU [11:41:08]CAPDU: 80 0D 02 02 05 8C 51 BC AC 24 [11:41:08]Write to MH i2c: E2 0D 00 88 22 80 0D 02 02 05 00 8C 51 BC AC 24 00 00 97 [11:41:08]Write i2c OK [11:41:08]MH_I2C_Read... [11:41:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:08]Read from MH i2c: E2 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: E2 03 00 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: E2 03 00 88 22 00 90 00 1E [11:41:08]RAPDU: 90 00 [11:41:08]wFMCommunicate OK [11:41:08]wFMCommunicate request_size=4 [11:41:08]MH_SAM_APDU [11:41:08]CAPDU: 80 0D 03 02 [11:41:08]Write to MH i2c: E2 08 00 89 22 80 0D 03 02 00 00 00 00 26 [11:41:08]Write i2c OK [11:41:08]MH_I2C_Read... [11:41:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:08]Read from MH i2c: E2 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: E2 0B 00 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: E2 0B 00 89 22 00 F1 EE 03 62 BD 9C CF A4 90 00 37 [11:41:08]RAPDU: F1 EE 03 62 BD 9C CF A4 90 00 [11:41:08]wFMCommunicate OK [11:41:08]SAM_PROTO_SignData done [11:41:08]FM_MakeSignedData done [11:41:08]CreateOFDProtocolMessage [11:41:08]wFMCommunicate request_size=4 [11:41:08]MH_SAM_APDU [11:41:08]CAPDU: 80 11 00 00 [11:41:08]Write to MH i2c: E2 08 00 8A 22 80 11 00 00 00 00 00 00 26 [11:41:08]Write i2c OK [11:41:08]MH_I2C_Read... [11:41:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:08]Read from MH i2c: E2 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: E2 17 00 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: E2 17 00 8A 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 81 [11:41:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:41:08]wFMCommunicate OK [11:41:08]CreateOFDProtocolMessage done [11:41:08]OFDSenderStorePacket 118466 [11:41:08]StoreOFDPacket docnum=118466 [11:41:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A6 3D 07 01 91 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 55 2E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C2 CE 01 00 35 04 06 00 27 8C 51 BC AC 24 F1 EE 03 62 BD 9C CF A4 [11:41:08]CheckFolder [11:41:08]dirname=/storage/ofd_packets [11:41:08]CheckFolder done [11:41:08]ProducePacketName [11:41:08]name=ofd_packets/00118466 [11:41:08]NVStorageSaveData ofd_packets/00118466 [11:41:08]File name is /storage/ofd_packets/00118466 [11:41:08]Write 301 bytes [11:41:08]NVStorageSaveData done [11:41:08]OFDSenderStorePacket done [11:41:08]KKMCreateOFDPacket done [11:41:08]NVStorageSaveData kkm_last_timestamp [11:41:08]File name is /storage/kkm_last_timestamp [11:41:08]Write 4 bytes [11:41:08]NVStorageSaveData done [11:41:08]ExternCall_PrintAddStr [11:41:08]wPrintStart [11:41:08]Write to MH i2c: 01 00 00 8B 22 AD [11:41:08]Write i2c OK [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: 01 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: 01 07 00 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: 01 07 00 8B 22 00 00 00 00 00 FF 0F C2 [11:41:08]RasterBufferAndPrint [11:41:08]line Счет N : (1)949336 [11:41:08]line ИНН: 02508201610067 [11:41:08]line Контрольно-Кассовый Чек [11:41:08]line ПРОДАЖА [11:41:08]line ТРК (МРК, ГНК) : 31 [11:41:08]line Товар: 2710124130 [11:41:08]line Аи-92-К-4 [11:41:08]line 7.380 * 67.80 [11:41:08]line = 500.36 [11:41:08]line НДС 12% НСП 1% [11:41:08]line > о реализуемом товаре [11:41:08]line ОКРУГЛЕНИЕ: -0.36 [11:41:08]line ИТОГО: 500.00 [11:41:08]line Внесено: 500.00 [11:41:08]line СДАЧА: 0.00 [11:41:08]line НСП 1% : 4.43 [11:41:08]line НДС 12% : 53.14 [11:41:08]line Наличными: 500.00 [11:41:08]line Безнал.: 0.00 [11:41:08]line Место: АЗС № 134 "Партнер Нефть" [11:41:08]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:41:08]line СНО: Общий режим [11:41:08]line Чек 135 28.07.2024 11:41 [11:41:08]line Смена: 433 ФФД: 1.0 [11:41:08]line ЗНМ: 0300000044 [11:41:08]line РНМ: 0000000000092660 [11:41:08]line Версия ККМ: 001 [11:41:08]line ФМ: 0000000000874939 [11:41:08]line ФД: 118466 [11:41:08]line ФПД: 43483620224036 [11:41:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T114109&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118466&fm=43483620224036&tin=02508201610067®Number=0000000000092660&sum=50000 [11:41:09]OFD Sender: Processing packet 118466 [packets to send 86, broken 85] [11:41:09]ProducePacketName [11:41:09]name=ofd_packets/00118466 [11:41:09]OFD Sender: To server: pG, [11:41:09]CommunicateWithHost lk.salyk.kg:30040 [11:41:09]ConnectInit lk.salyk.kg [11:41:09]written 0, free lines is 4095 [11:41:09]Connected sock=10 [11:41:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A6 3D 07 01 91 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 55 2E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C2 CE 01 00 35 04 06 00 27 8C 51 BC AC 24 F1 EE 03 62 BD 9C CF A4 [11:41:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EA 78 47 00 70 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 39 33 39 10 04 04 00 C2 CE 01 00 F4 03 04 00 E6 DB A5 66 B6 04 01 00 00 62 1A 43 FE BC F1 BB 80 [11:41:09]CommunicateWithHost err = 0 [11:41:09]CheckOFDResponse [11:41:09]1017 (14) - 77093643461234 [11:41:09]1041 (16) - 0000000000874939 [11:41:09]1040 (4) - 118466 [11:41:09]1012 (4) - 28.07.2024 05:49 [11:41:09]1206 (1) - 0 [11:41:09]OFD Sender: Remove packet 118466 [11:41:09]ProducePacketName [11:41:09]name=ofd_packets/00118466 [11:41:09]NVStorageDeleteData [11:41:09]Write to MH i2c: 01 00 00 B5 22 D7 [11:41:09]Write i2c OK [11:41:09]MH_I2C_Read... [11:41:09]Read from MH i2c: 01 [11:41:09]MH_I2C_Read... [11:41:09]Read from MH i2c: 01 07 00 [11:41:09]MH_I2C_Read... [11:41:09]Read from MH i2c: 01 07 00 B5 22 00 00 00 00 00 F8 0C E2 [11:41:09]RasterBufferAndPrint [11:41:09]line [11:41:09]line [11:41:09]line [11:41:09]line [11:41:09]line [11:41:09]written 0, free lines is 3327 [11:41:09]MH_Cut [11:41:09]Write to MH i2c: D1 01 00 BC 22 01 B0 [11:41:09]Write i2c OK [11:41:09]MH_I2C_Read... [11:41:09]Read from MH i2c: D1 [11:41:09]MH_I2C_Read... [11:41:09]Read from MH i2c: D1 01 00 [11:41:09]MH_I2C_Read... [11:41:09]Read from MH i2c: D1 01 00 BC 22 00 AF [11:41:09]Write to MH i2c: 01 00 00 BD 22 DF [11:41:09]Write i2c OK [11:41:09]MH_I2C_Read... [11:41:10]OFD Sender: No OFD packet to send [11:41:10]*** Cut start [11:41:10]*** Partial cut [11:41:10]*** CUTSNS_PIN = 1 [11:41:10]*** CUTSNS_PIN = 0 [11:41:10]*** Brake cut motor [11:41:11]Read from MH i2c: 01 [11:41:11]MH_I2C_Read... [11:41:11]*** Stop cut motor [11:41:11]*** Cut end [11:41:11]Read from MH i2c: 01 07 00 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: 01 07 00 BD 22 00 00 00 00 00 FF 0F F4 [11:41:11]process_action close_receipt done [11:41:11]requested_data is exist [11:41:11]produce_requested_data [11:41:11]requested_item fm.sn is exist - process it [11:41:11]wFMCommunicate request_size=4 [11:41:11]MH_SAM_APDU [11:41:11]CAPDU: 80 11 00 00 [11:41:11]Write to MH i2c: E2 08 00 BE 22 80 11 00 00 00 00 00 00 5A [11:41:11]Write i2c OK [11:41:11]MH_I2C_Read... [11:41:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:11]Read from MH i2c: E2 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: E2 17 00 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: E2 17 00 BE 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B5 [11:41:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:41:11]wFMCommunicate OK [11:41:11]requested_item fd.num is exist - process it [11:41:11]SAM_PROTO_GetFieldsCounters [11:41:11]wFMCommunicate request_size=4 [11:41:11]MH_SAM_APDU [11:41:11]CAPDU: 80 13 00 00 [11:41:11]Write to MH i2c: E2 08 00 BF 22 80 13 00 00 00 00 00 00 5D [11:41:11]Write i2c OK [11:41:11]MH_I2C_Read... [11:41:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:11]Read from MH i2c: E2 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: E2 62 00 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: E2 62 00 BF 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C2 CE 01 00 0E 04 04 00 B1 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 5C [11:41:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C2 CE 01 00 0E 04 04 00 B1 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 [11:41:11]wFMCommunicate OK [11:41:11]SAM_PROTO_GetFieldsCounters done [11:41:11]requested_item shift.num is exist - process it [11:41:11]requested_item shift.opened is exist - process it [11:41:11]req_shift_opened [11:41:11]FM_GetShiftState [11:41:11]SAM_PROTO_GetShiftState [11:41:11]wFMCommunicate request_size=4 [11:41:11]MH_SAM_APDU [11:41:11]CAPDU: 80 13 01 00 [11:41:11]Write to MH i2c: E2 08 00 C0 22 80 13 01 00 00 00 00 00 5F [11:41:11]Write i2c OK [11:41:11]MH_I2C_Read... [11:41:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:11]Read from MH i2c: E2 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: E2 0E 00 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: E2 0E 00 C0 22 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 36 [11:41:11]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:41:11]wFMCommunicate OK [11:41:11]SAM_PROTO_GetShiftState done [11:41:11]FM_GetShiftState done [11:41:11]req_shift_opened done [11:41:11]requested_item shift.open_date is exist - process it [11:41:11]req_shift_open_date [11:41:11]req_shift_open_date done [11:41:11]produce_requested_data done [11:41:11]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118466,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:41:11]process_action_free close_receipt [11:41:11]json_value_free [11:41:11]json_value_free done [11:41:11]process_json_proto returns [11:41:11]Send response to host [11:41:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118466,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:41:11]free response buf [11:41:11]execute_script done [11:41:11]execute_script returns [11:41:11]free content buf [11:41:11]Sock 9.Close socket [11:41:11]Sock 9.Thread stoped [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:45]OFD Sender: No OFD packet to send [11:41:50]OFD Sender: No OFD packet to send [11:41:55]OFD Sender: No OFD packet to send [11:42:00]OFD Sender: No OFD packet to send [11:42:05]OFD Sender: No OFD packet to send [11:42:10]OFD Sender: No OFD packet to send [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:25]OFD Sender: No OFD packet to send [11:42:30]OFD Sender: No OFD packet to send [11:42:35]OFD Sender: No OFD packet to send [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:10]OFD Sender: No OFD packet to send [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:25]OFD Sender: No OFD packet to send [11:43:30]OFD Sender: No OFD packet to send [11:43:35]OFD Sender: No OFD packet to send [11:43:40]OFD Sender: No OFD packet to send [11:43:45]OFD Sender: No OFD packet to send [11:43:50]OFD Sender: No OFD packet to send [11:43:55]OFD Sender: No OFD packet to send [11:44:00]OFD Sender: No OFD packet to send [11:44:05]OFD Sender: No OFD packet to send [11:44:10]OFD Sender: No OFD packet to send [11:44:15]OFD Sender: No OFD packet to send [11:44:20]OFD Sender: No OFD packet to send [11:44:25]OFD Sender: No OFD packet to send [11:44:30]OFD Sender: No OFD packet to send [11:44:35]OFD Sender: No OFD packet to send [11:44:40]OFD Sender: No OFD packet to send [11:44:45]OFD Sender: No OFD packet to send [11:44:50]OFD Sender: No OFD packet to send [11:44:55]OFD Sender: No OFD packet to send [11:45:00]OFD Sender: No OFD packet to send [11:45:05]OFD Sender: No OFD packet to send [11:45:10]OFD Sender: No OFD packet to send [11:45:15]OFD Sender: No OFD packet to send [11:45:20]OFD Sender: No OFD packet to send [11:45:25]OFD Sender: No OFD packet to send [11:45:30]OFD Sender: No OFD packet to send [11:45:35]OFD Sender: No OFD packet to send [11:45:40]OFD Sender: No OFD packet to send [11:45:45]OFD Sender: No OFD packet to send [11:45:50]OFD Sender: No OFD packet to send [11:45:55]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:42]accept exits with 7 [11:46:42]New connection [11:46:42]New thread 3066924388 created [11:46:42]Thread 3067067748 joined [11:46:42]Waiting for new connection... [11:46:42] Sock 7.Parse request [11:46:42]Sock 7.Check first char [11:46:42]Sock 7.First char is OK [11:46:42]request: POST /json_proto HTTP/1.0 [11:46:42]Method: POST [11:46:42]URL: /json_proto [11:46:42]Method is POST - this is cgi request [11:46:42]url: /json_proto [11:46:42]query_string will be loaded in cgi processing [11:46:42]execute_cgi json_proto POST (null) [11:46:42]execute_cgi path=json_proto method=POST [11:46:42]POST find Content-Length [11:46:42]Host: 172.17.45.7:8080 [11:46:42]Content-Length: 819 [11:46:42]Content-Type: application/json [11:46:42] [11:46:42]POST finish read [11:46:42]Found Content-Length = 819 [11:46:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:42]execute_script... [11: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)949337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:42]POST & json_proto [11:46:42]process_json_proto [11:46:42]json parsed OK: [11:46:42]protocol is kg_v1.0 [11:46:42]action value=close_receipt [11:46:42]process_action close_receipt [11:46:42]cmd_close_receipt [11:46:42]MH_GetDate [11:46:42]Write to MH i2c: F0 00 00 C1 22 D2 [11:46:42]Write i2c OK [11:46:42]MH_I2C_Read... [11:46:42]Read from MH i2c: F0 [11:46:42]MH_I2C_Read... [11:46:42]Read from MH i2c: F0 09 00 [11:46:42]MH_I2C_Read... [11:46:42]Read from MH i2c: F0 09 00 C1 22 00 A4 2F A6 66 90 0F 3E 66 FD [11:46:42]GetLastDocTimeStamp 1722166869 [11:46:42]current date 1722167204 [11:46:42]FM_GetShiftState [11:46:42]SAM_PROTO_GetShiftState [11:46:42]wFMCommunicate request_size=4 [11:46:42]MH_SAM_APDU [11:46:42]CAPDU: 80 13 01 00 [11:46:42]Write to MH i2c: E2 08 00 C2 22 80 13 01 00 00 00 00 00 61 [11:46:42]Write i2c OK [11:46:42]MH_I2C_Read... [11:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:42]Read from MH i2c: E2 [11:46:42]MH_I2C_Read... [11:46:42]Read from MH i2c: E2 0E 00 [11:46:42]MH_I2C_Read... [11:46:42]Read from MH i2c: E2 0E 00 C2 22 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 38 [11:46:42]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:46:42]wFMCommunicate OK [11:46:42]SAM_PROTO_GetShiftState done [11:46:42]FM_GetShiftState done [11:46:42]opened in 1722125364 [11:46:42]opened+sec_in_day 1722211764 [11:46:42]quantity*price = 200025 [11:46:42]sum+1 = 200026 [11:46:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 136 28.07.2024 11:46 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118467 ФПД: 258338989777555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T114644&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118467&fm=258338989777555&tin=02508201610067®Number=0000000000092660&sum=200000 [11:46:43]StoreToDocumentArchive [11:46:43]shift 433 fd 118467 [11:46:43]save to /storage/0433/doc_00118467 [11:46:43]save last doc name /storage/0433/doc_00118467 to /storage/kkm_last_doc_name [11:46:43]save OK [11:46:43]Clear old archive folders... [11:46:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:46:43]tlvbuf is 001BB590 [11:46:43]SAM_PROTO_ClearQueue [11:46:43]wFMCommunicate request_size=4 [11:46:43]MH_SAM_APDU [11:46:43]CAPDU: 80 09 00 00 [11:46:43]Write to MH i2c: E2 08 00 CF 22 80 09 00 00 00 00 00 00 63 [11:46:43]Write i2c OK [11:46:43]MH_I2C_Read... [11:46:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:43]Read from MH i2c: E2 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: E2 03 00 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: E2 03 00 CF 22 00 90 00 65 [11:46:43]RAPDU: 90 00 [11:46:43]wFMCommunicate OK [11:46:43]SAM_PROTO_ClearQueue done [11:46:43]KKMCreateOFDPacket [11:46:43]OFDProtocolAddRootSTLVToBuf [11:46:43]FM_MakeSignedData [11:46:43]FM_MakeSignedData [11:46:43]SAM_PROTO_SignData [11:46:43]wFMCommunicate request_size=4 [11:46:43]MH_SAM_APDU [11:46:43]CAPDU: 80 0D 01 02 [11:46:43]Write to MH i2c: E2 08 00 D0 22 80 0D 01 02 00 00 00 00 6B [11:46:43]Write i2c OK [11:46:43]MH_I2C_Read... [11:46:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:43]Read from MH i2c: E2 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: E2 03 00 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: E2 03 00 D0 22 00 90 00 66 [11:46:43]RAPDU: 90 00 [11:46:43]wFMCommunicate OK [11:46:43]wFMCommunicate request_size=255 [11:46:43]MH_SAM_APDU [11:46:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 A4 2F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C3 CE 01 00 35 04 06 00 EA F5 3B B7 [11:46:43]Write to MH i2c: E2 02 01 D1 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 A4 2F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C3 CE 01 00 35 04 06 00 EA F5 3B B7 00 00 65 [11:46:43]Write i2c OK [11:46:43]MH_I2C_Read... [11:46:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:43]Read from MH i2c: E2 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: E2 03 00 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: E2 03 00 D1 22 00 90 00 67 [11:46:43]RAPDU: 90 00 [11:46:43]wFMCommunicate OK [11:46:43]wFMCommunicate request_size=7 [11:46:43]MH_SAM_APDU [11:46:43]CAPDU: 80 0D 02 02 02 A2 93 [11:46:43]Write to MH i2c: E2 0A 00 D2 22 80 0D 02 02 02 00 A2 93 00 00 A7 [11:46:43]Write i2c OK [11:46:43]MH_I2C_Read... [11:46:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:43]Read from MH i2c: E2 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: E2 03 00 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: E2 03 00 D2 22 00 90 00 68 [11:46:43]RAPDU: 90 00 [11:46:43]wFMCommunicate OK [11:46:43]wFMCommunicate request_size=4 [11:46:43]MH_SAM_APDU [11:46:43]CAPDU: 80 0D 03 02 [11:46:43]Write to MH i2c: E2 08 00 D3 22 80 0D 03 02 00 00 00 00 70 [11:46:43]Write i2c OK [11:46:43]MH_I2C_Read... [11:46:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:43]Read from MH i2c: E2 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: E2 0B 00 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: E2 0B 00 D3 22 00 29 99 81 C5 50 F3 74 49 90 00 79 [11:46:43]RAPDU: 29 99 81 C5 50 F3 74 49 90 00 [11:46:43]wFMCommunicate OK [11:46:43]SAM_PROTO_SignData done [11:46:43]FM_MakeSignedData done [11:46:43]CreateOFDProtocolMessage [11:46:43]wFMCommunicate request_size=4 [11:46:43]MH_SAM_APDU [11:46:43]CAPDU: 80 11 00 00 [11:46:43]Write to MH i2c: E2 08 00 D4 22 80 11 00 00 00 00 00 00 70 [11:46:43]Write i2c OK [11:46:43]MH_I2C_Read... [11:46:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:43]Read from MH i2c: E2 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: E2 17 00 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: E2 17 00 D4 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CB [11:46:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:46:43]wFMCommunicate OK [11:46:43]CreateOFDProtocolMessage done [11:46:43]OFDSenderStorePacket 118467 [11:46:43]StoreOFDPacket docnum=118467 [11:46:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E5 74 04 01 F9 EB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 A4 2F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C3 CE 01 00 35 04 06 00 EA F5 3B B7 A2 93 29 99 81 C5 50 F3 74 49 [11:46:43]CheckFolder [11:46:43]dirname=/storage/ofd_packets [11:46:43]CheckFolder done [11:46:43]ProducePacketName [11:46:43]name=ofd_packets/00118467 [11:46:43]NVStorageSaveData ofd_packets/00118467 [11:46:43]File name is /storage/ofd_packets/00118467 [11:46:43]Write 298 bytes [11:46:43]NVStorageSaveData done [11:46:43]OFDSenderStorePacket done [11:46:43]KKMCreateOFDPacket done [11:46:43]NVStorageSaveData kkm_last_timestamp [11:46:43]File name is /storage/kkm_last_timestamp [11:46:43]Write 4 bytes [11:46:43]NVStorageSaveData done [11:46:43]ExternCall_PrintAddStr [11:46:43]wPrintStart [11:46:43]Write to MH i2c: 01 00 00 D5 22 F7 [11:46:43]Write i2c OK [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: 01 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: 01 07 00 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: 01 07 00 D5 22 00 00 00 00 00 FF 0F 0C [11:46:43]RasterBufferAndPrint [11:46:43]line Счет N : (1)949337 [11:46:43]line ИНН: 02508201610067 [11:46:43]line Контрольно-Кассовый Чек [11:46:43]line ПРОДАЖА [11:46:43]line ТРК (МРК, ГНК) : 21 [11:46:43]line Товар: 2710194800 [11:46:43]line ДТ-К-5 [11:46:43]line 26.250 * 76.20 [11:46:43]line = 2000.25 [11:46:43]line НДС 12% НСП 1% [11:46:43]line > о реализуемом товаре [11:46:43]line ОКРУГЛЕНИЕ: -0.25 [11:46:43]line ИТОГО: 2000.00 [11:46:43]line НСП 1% : 17.70 [11:46:43]line НДС 12% : 212.42 [11:46:43]line Наличными: 0.00 [11:46:43]line Безнал.: 2000.00 [11:46:43]line Место: АЗС № 134 "Партнер Нефть" [11:46:43]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:46:43]line СНО: Общий режим [11:46:43]line Чек 136 28.07.2024 11:46 [11:46:43]line Смена: 433 ФФД: 1.0 [11:46:43]line ЗНМ: 0300000044 [11:46:43]line РНМ: 0000000000092660 [11:46:43]line Версия ККМ: 001 [11:46:43]line Платежная система: O! деньги [11:46:43]line ФМ: 0000000000874939 [11:46:43]line ФД: 118467 [11:46:43]line ФПД: 258338989777555 [11:46:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T114644&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118467&fm=258338989777555&tin=02508201610067®Number=0000000000092660&sum=200000 [11:46:44]OFD Sender: Processing packet 118467 [packets to send 86, broken 85] [11:46:44]ProducePacketName [11:46:44]name=ofd_packets/00118467 [11:46:44]OFD Sender: To server: pG, [11:46:44]CommunicateWithHost lk.salyk.kg:30040 [11:46:44]ConnectInit lk.salyk.kg [11:46:44]written 0, free lines is 4095 [11:46:44]Connected sock=10 [11: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 39 33 39 0C 01 00 00 E5 74 04 01 F9 EB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 A4 2F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C3 CE 01 00 35 04 06 00 EA F5 3B B7 A2 93 29 99 81 C5 50 F3 74 49 [11: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 39 33 39 4F 00 00 00 0B F0 47 00 D0 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 39 33 39 10 04 04 00 C3 CE 01 00 F4 03 04 00 35 DD A5 66 B6 04 01 00 00 CB 59 06 C4 70 14 72 4C [11:46:44]CommunicateWithHost err = 0 [11:46:44]CheckOFDResponse [11:46:44]1017 (14) - 77093643461234 [11:46:44]1041 (16) - 0000000000874939 [11:46:44]1040 (4) - 118467 [11:46:44]1012 (4) - 28.07.2024 05:55 [11:46:44]1206 (1) - 0 [11:46:44]OFD Sender: Remove packet 118467 [11:46:44]ProducePacketName [11:46:44]name=ofd_packets/00118467 [11:46:44]NVStorageDeleteData [11:46:44]Write to MH i2c: 01 00 00 FF 22 21 [11:46:44]Write i2c OK [11:46:44]MH_I2C_Read... [11:46:44]Read from MH i2c: 01 [11:46:44]MH_I2C_Read... [11:46:44]Read from MH i2c: 01 07 00 [11:46:44]MH_I2C_Read... [11:46:44]Read from MH i2c: 01 07 00 FF 22 00 00 00 00 00 E5 0C 19 [11:46:44]RasterBufferAndPrint [11:46:44]line [11:46:44]line [11:46:44]line [11:46:44]line [11:46:44]line [11:46:44]written 0, free lines is 3307 [11:46:44]MH_Cut [11:46:44]Write to MH i2c: D1 01 00 06 23 01 FB [11:46:44]Write i2c OK [11:46:44]MH_I2C_Read... [11:46:44]Read from MH i2c: D1 [11:46:44]MH_I2C_Read... [11:46:44]Read from MH i2c: D1 01 00 [11:46:44]MH_I2C_Read... [11:46:44]Read from MH i2c: D1 01 00 06 23 00 FA [11:46:44]Write to MH i2c: 01 00 00 07 23 2A [11:46:44]Write i2c OK [11:46:44]MH_I2C_Read... [11:46:44]OFD Sender: No OFD packet to send [11:46:45]*** Cut start [11:46:45]*** Partial cut [11:46:45]*** CUTSNS_PIN = 1 [11:46:45]*** CUTSNS_PIN = 0 [11:46:45]*** Brake cut motor [11:46:45]Read from MH i2c: 01 [11:46:45]MH_I2C_Read... [11:46:45]*** Stop cut motor [11:46:45]*** Cut end [11:46:45]Read from MH i2c: 01 07 00 [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: 01 07 00 07 23 00 00 00 00 00 FF 0F 3F [11:46:45]process_action close_receipt done [11:46:45]requested_data is exist [11:46:45]produce_requested_data [11:46:45]requested_item fm.sn is exist - process it [11:46:45]wFMCommunicate request_size=4 [11:46:45]MH_SAM_APDU [11:46:45]CAPDU: 80 11 00 00 [11:46:45]Write to MH i2c: E2 08 00 08 23 80 11 00 00 00 00 00 00 A5 [11:46:45]Write i2c OK [11:46:45]MH_I2C_Read... [11:46:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:45]Read from MH i2c: E2 [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: E2 17 00 [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: E2 17 00 08 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 00 [11:46:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:46:45]wFMCommunicate OK [11:46:45]requested_item fd.num is exist - process it [11:46:45]SAM_PROTO_GetFieldsCounters [11:46:45]wFMCommunicate request_size=4 [11:46:45]MH_SAM_APDU [11:46:45]CAPDU: 80 13 00 00 [11:46:45]Write to MH i2c: E2 08 00 09 23 80 13 00 00 00 00 00 00 A8 [11:46:45]Write i2c OK [11:46:45]MH_I2C_Read... [11:46:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:46]Read from MH i2c: E2 [11:46:46]MH_I2C_Read... [11:46:46]Read from MH i2c: E2 62 00 [11:46:46]MH_I2C_Read... [11:46:46]Read from MH i2c: E2 62 00 09 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C3 CE 01 00 0E 04 04 00 B1 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 AB [11:46:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C3 CE 01 00 0E 04 04 00 B1 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 [11:46:46]wFMCommunicate OK [11:46:46]SAM_PROTO_GetFieldsCounters done [11:46:46]requested_item shift.num is exist - process it [11:46:46]requested_item shift.opened is exist - process it [11:46:46]req_shift_opened [11:46:46]FM_GetShiftState [11:46:46]SAM_PROTO_GetShiftState [11:46:46]wFMCommunicate request_size=4 [11:46:46]MH_SAM_APDU [11:46:46]CAPDU: 80 13 01 00 [11:46:46]Write to MH i2c: E2 08 00 0A 23 80 13 01 00 00 00 00 00 AA [11:46:46]Write i2c OK [11:46:46]MH_I2C_Read... [11:46:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:46]Read from MH i2c: E2 [11:46:46]MH_I2C_Read... [11:46:46]Read from MH i2c: E2 0E 00 [11:46:46]MH_I2C_Read... [11:46:46]Read from MH i2c: E2 0E 00 0A 23 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 81 [11:46:46]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:46:46]wFMCommunicate OK [11:46:46]SAM_PROTO_GetShiftState done [11:46:46]FM_GetShiftState done [11:46:46]req_shift_opened done [11:46:46]requested_item shift.open_date is exist - process it [11:46:46]req_shift_open_date [11:46:46]req_shift_open_date done [11:46:46]produce_requested_data done [11:46:46]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118467,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:46:46]process_action_free close_receipt [11:46:46]json_value_free [11:46:46]json_value_free done [11:46:46]process_json_proto returns [11:46:46]Send response to host [11:46:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118467,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:46:46]free response buf [11:46:46]execute_script done [11:46:46]execute_script returns [11:46:46]free content buf [11:46:46]Sock 7.Close socket [11:46:46]Sock 7.Thread stoped [11:46:49]OFD Sender: No OFD packet to send [11:46:54]OFD Sender: No OFD packet to send [11:46:59]OFD Sender: No OFD packet to send [11:47:04]OFD Sender: No OFD packet to send [11:47:09]OFD Sender: No OFD packet to send [11:47:14]OFD Sender: No OFD packet to send [11:47:19]OFD Sender: No OFD packet to send [11:47:24]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:48:00]OFD Sender: No OFD packet to send [11:48:05]OFD Sender: No OFD packet to send [11:48:10]OFD Sender: No OFD packet to send [11:48:15]OFD Sender: No OFD packet to send [11:48:20]OFD Sender: No OFD packet to send [11:48:25]OFD Sender: No OFD packet to send [11:48:30]OFD Sender: No OFD packet to send [11:48:35]OFD Sender: No OFD packet to send [11:48:40]OFD Sender: No OFD packet to send [11:48:45]OFD Sender: No OFD packet to send [11:48:50]OFD Sender: No OFD packet to send [11:48:55]OFD Sender: No OFD packet to send [11:49:00]OFD Sender: No OFD packet to send [11:49:05]OFD Sender: No OFD packet to send [11:49:10]OFD Sender: No OFD packet to send [11:49:15]OFD Sender: No OFD packet to send [11:49:20]OFD Sender: No OFD packet to send [11:49:25]OFD Sender: No OFD packet to send [11:49:30]OFD Sender: No OFD packet to send [11:49:35]OFD Sender: No OFD packet to send [11:49:40]OFD Sender: No OFD packet to send [11:49:45]OFD Sender: No OFD packet to send [11:49:50]OFD Sender: No OFD packet to send [11:49:55]OFD Sender: No OFD packet to send [11:50:00]OFD Sender: No OFD packet to send [11:50:05]OFD Sender: No OFD packet to send [11:50:10]OFD Sender: No OFD packet to send [11:50:15]OFD Sender: No OFD packet to send [11:50:20]OFD Sender: No OFD packet to send [11:50:25]OFD Sender: No OFD packet to send [11:50:30]OFD Sender: No OFD packet to send [11:50:35]OFD Sender: No OFD packet to send [11:50:40]OFD Sender: No OFD packet to send [11:50:45]OFD Sender: No OFD packet to send [11:50:50]OFD Sender: No OFD packet to send [11:50:55]OFD Sender: No OFD packet to send [11:51:00]OFD Sender: No OFD packet to send [11:51:05]OFD Sender: No OFD packet to send [11:51:10]OFD Sender: No OFD packet to send [11:51:15]OFD Sender: No OFD packet to send [11:51:20]OFD Sender: No OFD packet to send [11:51:25]OFD Sender: No OFD packet to send [11:51:30]OFD Sender: No OFD packet to send [11:51:35]OFD Sender: No OFD packet to send [11:51:40]OFD Sender: No OFD packet to send [11:51:45]OFD Sender: No OFD packet to send [11:51:50]OFD Sender: No OFD packet to send [11:51:55]OFD Sender: No OFD packet to send [11:52:00]OFD Sender: No OFD packet to send [11:52:05]OFD Sender: No OFD packet to send [11:52:10]OFD Sender: No OFD packet to send [11:52:15]OFD Sender: No OFD packet to send [11:52:20]OFD Sender: No OFD packet to send [11:52:25]OFD Sender: No OFD packet to send [11:52:30]OFD Sender: No OFD packet to send [11:52:35]OFD Sender: No OFD packet to send [11:52:40]OFD Sender: No OFD packet to send [11:52:45]OFD Sender: No OFD packet to send [11:52:49]accept exits with 9 [11:52:49]New connection [11:52:49]New thread 3067067748 created [11:52:49]Thread 3066924388 joined [11:52:49]Waiting for new connection... [11:52:49] Sock 9.Parse request [11:52:49]Sock 9.Check first char [11:52:49]Sock 9.First char is OK [11:52:49]request: POST /json_proto HTTP/1.0 [11:52:49]Method: POST [11:52:49]URL: /json_proto [11:52:49]Method is POST - this is cgi request [11:52:49]url: /json_proto [11:52:49]query_string will be loaded in cgi processing [11:52:49]execute_cgi json_proto POST (null) [11:52:49]execute_cgi path=json_proto method=POST [11:52:49]POST find Content-Length [11:52:49]Host: 172.17.45.7:8080 [11:52:49]Content-Length: 822 [11:52:49]Content-Type: application/json [11:52:49] [11:52:49]POST finish read [11:52:49]Found Content-Length = 822 [11:52:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:49]execute_script... [11:52: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)949338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:49]POST & json_proto [11:52:49]process_json_proto [11:52:49]json parsed OK: [11:52:49]protocol is kg_v1.0 [11:52:49]action value=close_receipt [11:52:49]process_action close_receipt [11:52:49]cmd_close_receipt [11:52:49]MH_GetDate [11:52:49]Write to MH i2c: F0 00 00 0B 23 1D [11:52:49]Write i2c OK [11:52:49]MH_I2C_Read... [11:52:49]Read from MH i2c: F0 [11:52:49]MH_I2C_Read... [11:52:49]Read from MH i2c: F0 09 00 [11:52:49]MH_I2C_Read... [11:52:49]Read from MH i2c: F0 09 00 0B 23 00 13 31 A6 66 90 0F 3E 66 B9 [11:52:49]GetLastDocTimeStamp 1722167204 [11:52:49]current date 1722167571 [11:52:49]FM_GetShiftState [11:52:49]SAM_PROTO_GetShiftState [11:52:49]wFMCommunicate request_size=4 [11:52:49]MH_SAM_APDU [11:52:49]CAPDU: 80 13 01 00 [11:52:49]Write to MH i2c: E2 08 00 0C 23 80 13 01 00 00 00 00 00 AC [11:52:49]Write i2c OK [11:52:49]MH_I2C_Read... [11:52:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:49]Read from MH i2c: E2 [11:52:49]MH_I2C_Read... [11:52:49]Read from MH i2c: E2 0E 00 [11:52:49]MH_I2C_Read... [11:52:49]Read from MH i2c: E2 0E 00 0C 23 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 83 [11:52:49]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:52:49]wFMCommunicate OK [11:52:49]SAM_PROTO_GetShiftState done [11:52:49]FM_GetShiftState done [11:52:49]opened in 1722125364 [11:52:49]opened+sec_in_day 1722211764 [11:52:49]quantity*price = 200043 [11:52:49]sum+1 = 200044 [11:52:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 137 28.07.2024 11:52 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118468 ФПД: 253263555143105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T115251&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118468&fm=253263555143105&tin=02508201610067®Number=0000000000092660&sum=200000 [11:52:50]StoreToDocumentArchive [11:52:50]shift 433 fd 118468 [11:52:50]save to /storage/0433/doc_00118468 [11:52:50]save last doc name /storage/0433/doc_00118468 to /storage/kkm_last_doc_name [11:52:50]save OK [11:52:50]Clear old archive folders... [11:52:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:52:50]tlvbuf is 0015C780 [11:52:50]SAM_PROTO_ClearQueue [11:52:50]wFMCommunicate request_size=4 [11:52:50]MH_SAM_APDU [11:52:50]CAPDU: 80 09 00 00 [11:52:50]Write to MH i2c: E2 08 00 19 23 80 09 00 00 00 00 00 00 AE [11:52:50]Write i2c OK [11:52:50]MH_I2C_Read... [11:52:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:50]OFD Sender: No OFD packet to send [11:52:50]Read from MH i2c: E2 [11:52:50]MH_I2C_Read... [11:52:50]Read from MH i2c: E2 03 00 [11:52:50]MH_I2C_Read... [11:52:50]Read from MH i2c: E2 03 00 19 23 00 90 00 B0 [11:52:50]RAPDU: 90 00 [11:52:50]wFMCommunicate OK [11:52:50]SAM_PROTO_ClearQueue done [11:52:50]KKMCreateOFDPacket [11:52:50]OFDProtocolAddRootSTLVToBuf [11:52:50]FM_MakeSignedData [11:52:50]FM_MakeSignedData [11:52:50]SAM_PROTO_SignData [11:52:50]wFMCommunicate request_size=4 [11:52:50]MH_SAM_APDU [11:52:50]CAPDU: 80 0D 01 02 [11:52:50]Write to MH i2c: E2 08 00 1A 23 80 0D 01 02 00 00 00 00 B6 [11:52:50]Write i2c OK [11:52:50]MH_I2C_Read... [11:52:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:50]Read from MH i2c: E2 [11:52:50]MH_I2C_Read... [11:52:50]Read from MH i2c: E2 03 00 [11:52:50]MH_I2C_Read... [11:52:50]Read from MH i2c: E2 03 00 1A 23 00 90 00 B1 [11:52:50]RAPDU: 90 00 [11:52:50]wFMCommunicate OK [11:52:50]wFMCommunicate request_size=255 [11:52:50]MH_SAM_APDU [11:52:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 13 31 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C4 CE 01 00 35 04 06 00 E6 [11:52:50]Write to MH i2c: E2 02 01 1B 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 13 31 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C4 CE 01 00 35 04 06 00 E6 00 00 F5 [11:52:50]Write i2c OK [11:52:50]MH_I2C_Read... [11:52:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:50]Read from MH i2c: E2 [11:52:50]MH_I2C_Read... [11:52:50]Read from MH i2c: E2 03 00 [11:52:50]MH_I2C_Read... [11:52:50]Read from MH i2c: E2 03 00 1B 23 00 90 00 B2 [11:52:50]RAPDU: 90 00 [11:52:50]wFMCommunicate OK [11:52:50]wFMCommunicate request_size=10 [11:52:50]MH_SAM_APDU [11:52:50]CAPDU: 80 0D 02 02 05 57 84 3D 25 C1 [11:52:50]Write to MH i2c: E2 0D 00 1C 23 80 0D 02 02 05 00 57 84 3D 25 C1 00 00 C1 [11:52:50]Write i2c OK [11:52:50]MH_I2C_Read... [11:52:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:50]Read from MH i2c: E2 [11:52:50]MH_I2C_Read... [11:52:50]Read from MH i2c: E2 03 00 [11:52:50]MH_I2C_Read... [11:52:50]Read from MH i2c: E2 03 00 1C 23 00 90 00 B3 [11:52:50]RAPDU: 90 00 [11:52:50]wFMCommunicate OK [11:52:50]wFMCommunicate request_size=4 [11:52:50]MH_SAM_APDU [11:52:50]CAPDU: 80 0D 03 02 [11:52:50]Write to MH i2c: E2 08 00 1D 23 80 0D 03 02 00 00 00 00 BB [11:52:50]Write i2c OK [11:52:50]MH_I2C_Read... [11:52:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:50]Read from MH i2c: E2 [11:52:50]MH_I2C_Read... [11:52:50]Read from MH i2c: E2 0B 00 [11:52:50]MH_I2C_Read... [11:52:50]Read from MH i2c: E2 0B 00 1D 23 00 2A 22 77 77 3E 8F 0B 69 90 00 37 [11:52:50]RAPDU: 2A 22 77 77 3E 8F 0B 69 90 00 [11:52:50]wFMCommunicate OK [11:52:50]SAM_PROTO_SignData done [11:52:50]FM_MakeSignedData done [11:52:50]CreateOFDProtocolMessage [11:52:50]wFMCommunicate request_size=4 [11:52:50]MH_SAM_APDU [11:52:50]CAPDU: 80 11 00 00 [11:52:50]Write to MH i2c: E2 08 00 1E 23 80 11 00 00 00 00 00 00 BB [11:52:50]Write i2c OK [11:52:50]MH_I2C_Read... [11:52:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:50]Read from MH i2c: E2 [11:52:50]MH_I2C_Read... [11:52:50]Read from MH i2c: E2 17 00 [11:52:50]MH_I2C_Read... [11:52:50]Read from MH i2c: E2 17 00 1E 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 16 [11:52:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:52:50]wFMCommunicate OK [11:52:50]CreateOFDProtocolMessage done [11:52:50]OFDSenderStorePacket 118468 [11:52:50]StoreOFDPacket docnum=118468 [11:52:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 72 02 07 01 70 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 13 31 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C4 CE 01 00 35 04 06 00 E6 57 84 3D 25 C1 2A 22 77 77 3E 8F 0B 69 [11:52:50]CheckFolder [11:52:50]dirname=/storage/ofd_packets [11:52:50]CheckFolder done [11:52:50]ProducePacketName [11:52:50]name=ofd_packets/00118468 [11:52:50]NVStorageSaveData ofd_packets/00118468 [11:52:50]File name is /storage/ofd_packets/00118468 [11:52:50]Write 301 bytes [11:52:50]NVStorageSaveData done [11:52:50]OFDSenderStorePacket done [11:52:50]KKMCreateOFDPacket done [11:52:50]NVStorageSaveData kkm_last_timestamp [11:52:50]File name is /storage/kkm_last_timestamp [11:52:50]Write 4 bytes [11:52:50]NVStorageSaveData done [11:52:50]ExternCall_PrintAddStr [11:52:50]wPrintStart [11:52:50]Write to MH i2c: 01 00 00 1F 23 42 [11:52:50]Write i2c OK [11:52:50]MH_I2C_Read... [11:52:50]Read from MH i2c: 01 [11:52:50]MH_I2C_Read... [11:52:50]Read from MH i2c: 01 07 00 [11:52:50]MH_I2C_Read... [11:52:50]Read from MH i2c: 01 07 00 1F 23 00 00 00 00 00 FF 0F 57 [11:52:50]RasterBufferAndPrint [11:52:50]line Счет N : (1)949338 [11:52:50]line ИНН: 02508201610067 [11:52:50]line Контрольно-Кассовый Чек [11:52:50]line ПРОДАЖА [11:52:50]line ТРК (МРК, ГНК) : 53 [11:52:50]line Товар: 2710124500 [11:52:50]line Аи-95-К-3 [11:52:50]line 26.960 * 74.20 [11:52:50]line = 2000.43 [11:52:50]line НДС 12% НСП 1% [11:52:50]line > о реализуемом товаре [11:52:50]line ОКРУГЛЕНИЕ: -0.43 [11:52:50]line ИТОГО: 2000.00 [11:52:50]line НСП 1% : 17.70 [11:52:50]line НДС 12% : 212.43 [11:52:50]line Наличными: 0.00 [11:52:50]line Безнал.: 2000.00 [11:52:50]line Место: АЗС № 134 "Партнер Нефть" [11:52:50]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:52:50]line СНО: Общий режим [11:52:50]line Чек 137 28.07.2024 11:52 [11:52:50]line Смена: 433 ФФД: 1.0 [11:52:50]line ЗНМ: 0300000044 [11:52:50]line РНМ: 0000000000092660 [11:52:50]line Версия ККМ: 001 [11:52:50]line Платежная система: O! деньги [11:52:50]line ФМ: 0000000000874939 [11:52:50]line ФД: 118468 [11:52:50]line ФПД: 253263555143105 [11:52:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T115251&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118468&fm=253263555143105&tin=02508201610067®Number=0000000000092660&sum=200000 [11:52:51]OFD Sender: Processing packet 118468 [packets to send 86, broken 85] [11:52:51]ProducePacketName [11:52:51]name=ofd_packets/00118468 [11:52:51]OFD Sender: To server: pG, [11:52:51]CommunicateWithHost lk.salyk.kg:30040 [11:52:51]ConnectInit lk.salyk.kg [11:52:51]written 0, free lines is 4095 [11:52:51]Connected sock=10 [11:52:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 72 02 07 01 70 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 13 31 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C4 CE 01 00 35 04 06 00 E6 57 84 3D 25 C1 2A 22 77 77 3E 8F 0B 69 [11:52:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 0D 8E 47 00 D8 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C4 CE 01 00 F4 03 04 00 A4 DE A5 66 B6 04 01 00 00 C1 69 A2 96 21 FD E2 06 [11:52:51]CommunicateWithHost err = 0 [11:52:51]CheckOFDResponse [11:52:51]1017 (14) - 77093643461234 [11:52:51]1041 (16) - 0000000000874939 [11:52:51]1040 (4) - 118468 [11:52:51]1012 (4) - 28.07.2024 06:01 [11:52:51]1206 (1) - 0 [11:52:51]OFD Sender: Remove packet 118468 [11:52:51]ProducePacketName [11:52:51]name=ofd_packets/00118468 [11:52:51]NVStorageDeleteData [11:52:51]Write to MH i2c: 01 00 00 49 23 6C [11:52:51]Write i2c OK [11:52:51]MH_I2C_Read... [11:52:51]Read from MH i2c: 01 [11:52:51]MH_I2C_Read... [11:52:51]Read from MH i2c: 01 07 00 [11:52:51]MH_I2C_Read... [11:52:51]Read from MH i2c: 01 07 00 49 23 00 00 00 00 00 ED 0C 6C [11:52:51]RasterBufferAndPrint [11:52:51]line [11:52:51]line [11:52:51]line [11:52:51]line [11:52:51]line [11:52:51]written 0, free lines is 3318 [11:52:51]MH_Cut [11:52:51]Write to MH i2c: D1 01 00 50 23 01 45 [11:52:51]Write i2c OK [11:52:51]MH_I2C_Read... [11:52:51]Read from MH i2c: D1 [11:52:51]MH_I2C_Read... [11:52:51]Read from MH i2c: D1 01 00 [11:52:51]MH_I2C_Read... [11:52:51]Read from MH i2c: D1 01 00 50 23 00 44 [11:52:51]Write to MH i2c: 01 00 00 51 23 74 [11:52:51]Write i2c OK [11:52:51]MH_I2C_Read... [11:52:52]OFD Sender: No OFD packet to send [11:52:52]*** Cut start [11:52:52]*** Partial cut [11:52:52]*** CUTSNS_PIN = 1 [11:52:52]*** CUTSNS_PIN = 0 [11:52:52]*** Brake cut motor [11:52:52]Read from MH i2c: 01 [11:52:53]MH_I2C_Read... [11:52:53]*** Stop cut motor [11:52:53]*** Cut end [11:52:53]Read from MH i2c: 01 07 00 [11:52:53]MH_I2C_Read... [11:52:53]Read from MH i2c: 01 07 00 51 23 00 00 00 00 00 FF 0F 89 [11:52:53]process_action close_receipt done [11:52:53]requested_data is exist [11:52:53]produce_requested_data [11:52:53]requested_item fm.sn is exist - process it [11:52:53]wFMCommunicate request_size=4 [11:52:53]MH_SAM_APDU [11:52:53]CAPDU: 80 11 00 00 [11:52:53]Write to MH i2c: E2 08 00 52 23 80 11 00 00 00 00 00 00 EF [11:52:53]Write i2c OK [11:52:53]MH_I2C_Read... [11:52:53]Read from MH i2c: E2 [11:52:53]MH_I2C_Read... [11:52:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:53]Read from MH i2c: E2 17 00 [11:52:53]MH_I2C_Read... [11:52:53]Read from MH i2c: E2 17 00 52 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4A [11:52:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:52:53]wFMCommunicate OK [11:52:53]requested_item fd.num is exist - process it [11:52:53]SAM_PROTO_GetFieldsCounters [11:52:53]wFMCommunicate request_size=4 [11:52:53]MH_SAM_APDU [11:52:53]CAPDU: 80 13 00 00 [11:52:53]Write to MH i2c: E2 08 00 53 23 80 13 00 00 00 00 00 00 F2 [11:52:53]Write i2c OK [11:52:53]MH_I2C_Read... [11:52:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:53]Read from MH i2c: E2 [11:52:53]MH_I2C_Read... [11:52:53]Read from MH i2c: E2 62 00 [11:52:53]MH_I2C_Read... [11:52:53]Read from MH i2c: E2 62 00 53 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C4 CE 01 00 0E 04 04 00 B1 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 F9 [11:52:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C4 CE 01 00 0E 04 04 00 B1 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 [11:52:53]wFMCommunicate OK [11:52:53]SAM_PROTO_GetFieldsCounters done [11:52:53]requested_item shift.num is exist - process it [11:52:53]requested_item shift.opened is exist - process it [11:52:53]req_shift_opened [11:52:53]FM_GetShiftState [11:52:53]SAM_PROTO_GetShiftState [11:52:53]wFMCommunicate request_size=4 [11:52:53]MH_SAM_APDU [11:52:53]CAPDU: 80 13 01 00 [11:52:53]Write to MH i2c: E2 08 00 54 23 80 13 01 00 00 00 00 00 F4 [11:52:53]Write i2c OK [11:52:53]MH_I2C_Read... [11:52:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:53]Read from MH i2c: E2 [11:52:53]MH_I2C_Read... [11:52:53]Read from MH i2c: E2 0E 00 [11:52:53]MH_I2C_Read... [11:52:53]Read from MH i2c: E2 0E 00 54 23 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 CB [11:52:53]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:52:53]wFMCommunicate OK [11:52:53]SAM_PROTO_GetShiftState done [11:52:53]FM_GetShiftState done [11:52:53]req_shift_opened done [11:52:53]requested_item shift.open_date is exist - process it [11:52:53]req_shift_open_date [11:52:53]req_shift_open_date done [11:52:53]produce_requested_data done [11:52:53]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118468,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:52:53]process_action_free close_receipt [11:52:53]json_value_free [11:52:53]json_value_free done [11:52:53]process_json_proto returns [11:52:53]Send response to host [11:52:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118468,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:52:53]free response buf [11:52:53]execute_script done [11:52:53]execute_script returns [11:52:53]free content buf [11:52:53]Sock 9.Close socket [11:52:53]Sock 9.Thread stoped [11:52:57]OFD Sender: No OFD packet to send [11:53:02]OFD Sender: No OFD packet to send [11:53:07]OFD Sender: No OFD packet to send [11:53:12]OFD Sender: No OFD packet to send [11:53:17]OFD Sender: No OFD packet to send [11:53:22]OFD Sender: No OFD packet to send [11:53:27]OFD Sender: No OFD packet to send [11:53:32]OFD Sender: No OFD packet to send [11:53:37]OFD Sender: No OFD packet to send [11:53:42]OFD Sender: No OFD packet to send [11:53:47]OFD Sender: No OFD packet to send [11:53:52]OFD Sender: No OFD packet to send [11:53:57]OFD Sender: No OFD packet to send [11:54:02]OFD Sender: No OFD packet to send [11:54:07]OFD Sender: No OFD packet to send [11:54:12]OFD Sender: No OFD packet to send [11:54:17]OFD Sender: No OFD packet to send [11:54:22]OFD Sender: No OFD packet to send [11:54:27]OFD Sender: No OFD packet to send [11:54:32]OFD Sender: No OFD packet to send [11:54:37]OFD Sender: No OFD packet to send [11:54:42]OFD Sender: No OFD packet to send [11:54:47]OFD Sender: No OFD packet to send [11:54:52]OFD Sender: No OFD packet to send [11:54:57]OFD Sender: No OFD packet to send [11:55:02]OFD Sender: No OFD packet to send [11:55:07]OFD Sender: No OFD packet to send [11:55:12]OFD Sender: No OFD packet to send [11:55:17]OFD Sender: No OFD packet to send [11:55:22]OFD Sender: No OFD packet to send [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:00]accept exits with 7 [11:56:00]New connection [11:56:00]New thread 3066924388 created [11:56:00]Thread 3067067748 joined [11:56:00]Waiting for new connection... [11:56:00] Sock 7.Parse request [11:56:00]Sock 7.Check first char [11:56:00]Sock 7.First char is OK [11:56:00]request: POST /json_proto HTTP/1.0 [11:56:00]Method: POST [11:56:00]URL: /json_proto [11:56:00]Method is POST - this is cgi request [11:56:00]url: /json_proto [11:56:00]query_string will be loaded in cgi processing [11:56:00]execute_cgi json_proto POST (null) [11:56:00]execute_cgi path=json_proto method=POST [11:56:00]POST find Content-Length [11:56:00]Host: 172.17.45.7:8080 [11:56:00]Content-Length: 677 [11:56:00]Content-Type: application/json [11:56:00] [11:56:00]POST finish read [11:56:00]Found Content-Length = 677 [11:56:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:00]execute_script... [11:56: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)949339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:00]POST & json_proto [11:56:00]process_json_proto [11:56:00]json parsed OK: [11:56:00]protocol is kg_v1.0 [11:56:00]action value=close_receipt [11:56:00]process_action close_receipt [11:56:00]cmd_close_receipt [11:56:00]MH_GetDate [11:56:00]Write to MH i2c: F0 00 00 55 23 67 [11:56:00]Write i2c OK [11:56:00]MH_I2C_Read... [11:56:00]Read from MH i2c: F0 [11:56:00]MH_I2C_Read... [11:56:00]Read from MH i2c: F0 09 00 [11:56:00]MH_I2C_Read... [11:56:00]Read from MH i2c: F0 09 00 55 23 00 D3 31 A6 66 90 0F 3E 66 C3 [11:56:00]GetLastDocTimeStamp 1722167571 [11:56:00]current date 1722167763 [11:56:00]FM_GetShiftState [11:56:00]SAM_PROTO_GetShiftState [11:56:00]wFMCommunicate request_size=4 [11:56:00]MH_SAM_APDU [11:56:00]CAPDU: 80 13 01 00 [11:56:00]Write to MH i2c: E2 08 00 56 23 80 13 01 00 00 00 00 00 F6 [11:56:00]Write i2c OK [11:56:00]MH_I2C_Read... [11:56:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:00]Read from MH i2c: E2 [11:56:00]MH_I2C_Read... [11:56:00]Read from MH i2c: E2 0E 00 [11:56:00]MH_I2C_Read... [11:56:00]Read from MH i2c: E2 0E 00 56 23 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 CD [11:56:00]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:56:00]wFMCommunicate OK [11:56:00]SAM_PROTO_GetShiftState done [11:56:00]FM_GetShiftState done [11:56:00]opened in 1722125364 [11:56:00]opened+sec_in_day 1722211764 [11:56:00]quantity*price = 50036 [11:56:00]sum+1 = 50037 [11:56:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 138 28.07.2024 11:56 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118469 ФПД: 10250446998372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T115603&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118469&fm=10250446998372&tin=02508201610067®Number=0000000000092660&sum=50000 [11:56:02]StoreToDocumentArchive [11:56:02]shift 433 fd 118469 [11:56:02]save to /storage/0433/doc_00118469 [11:56:02]save last doc name /storage/0433/doc_00118469 to /storage/kkm_last_doc_name [11:56:02]save OK [11:56:02]Clear old archive folders... [11:56:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:56:02]tlvbuf is B6F716E0 [11:56:02]SAM_PROTO_ClearQueue [11:56:02]wFMCommunicate request_size=4 [11:56:02]MH_SAM_APDU [11:56:02]CAPDU: 80 09 00 00 [11:56:02]Write to MH i2c: E2 08 00 63 23 80 09 00 00 00 00 00 00 F8 [11:56:02]Write i2c OK [11:56:02]MH_I2C_Read... [11:56:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:02]Read from MH i2c: E2 [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: E2 03 00 [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: E2 03 00 63 23 00 90 00 FA [11:56:02]RAPDU: 90 00 [11:56:02]wFMCommunicate OK [11:56:02]SAM_PROTO_ClearQueue done [11:56:02]KKMCreateOFDPacket [11:56:02]OFDProtocolAddRootSTLVToBuf [11:56:02]FM_MakeSignedData [11:56:02]FM_MakeSignedData [11:56:02]SAM_PROTO_SignData [11:56:02]wFMCommunicate request_size=4 [11:56:02]MH_SAM_APDU [11:56:02]CAPDU: 80 0D 01 02 [11:56:02]Write to MH i2c: E2 08 00 64 23 80 0D 01 02 00 00 00 00 00 [11:56:02]Write i2c OK [11:56:02]MH_I2C_Read... [11:56:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:02]Read from MH i2c: E2 [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: E2 03 00 [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: E2 03 00 64 23 00 90 00 FB [11:56:02]RAPDU: 90 00 [11:56:02]wFMCommunicate OK [11:56:02]wFMCommunicate request_size=255 [11:56:02]MH_SAM_APDU [11:56: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 D3 31 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C5 CE 01 00 35 04 06 00 09 [11:56:02]Write to MH i2c: E2 02 01 65 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 D3 31 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C5 CE 01 00 35 04 06 00 09 00 00 6D [11:56:02]Write i2c OK [11:56:02]MH_I2C_Read... [11:56:02]OFD Sender: No OFD packet to send [11:56:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:02]Read from MH i2c: E2 [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: E2 03 00 [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: E2 03 00 65 23 00 90 00 FC [11:56:02]RAPDU: 90 00 [11:56:02]wFMCommunicate OK [11:56:02]wFMCommunicate request_size=10 [11:56:02]MH_SAM_APDU [11:56:02]CAPDU: 80 0D 02 02 05 52 9E 40 8B 64 [11:56:02]Write to MH i2c: E2 0D 00 66 23 80 0D 02 02 05 00 52 9E 40 8B 64 00 00 2C [11:56:02]Write i2c OK [11:56:02]MH_I2C_Read... [11:56:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:02]Read from MH i2c: E2 [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: E2 03 00 [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: E2 03 00 66 23 00 90 00 FD [11:56:02]RAPDU: 90 00 [11:56:02]wFMCommunicate OK [11:56:02]wFMCommunicate request_size=4 [11:56:02]MH_SAM_APDU [11:56:02]CAPDU: 80 0D 03 02 [11:56:02]Write to MH i2c: E2 08 00 67 23 80 0D 03 02 00 00 00 00 05 [11:56:02]Write i2c OK [11:56:02]MH_I2C_Read... [11:56:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:02]Read from MH i2c: E2 [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: E2 0B 00 [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: E2 0B 00 67 23 00 D9 30 88 86 3C 2B F7 6E 90 00 E9 [11:56:02]RAPDU: D9 30 88 86 3C 2B F7 6E 90 00 [11:56:02]wFMCommunicate OK [11:56:02]SAM_PROTO_SignData done [11:56:02]FM_MakeSignedData done [11:56:02]CreateOFDProtocolMessage [11:56:02]wFMCommunicate request_size=4 [11:56:02]MH_SAM_APDU [11:56:02]CAPDU: 80 11 00 00 [11:56:02]Write to MH i2c: E2 08 00 68 23 80 11 00 00 00 00 00 00 05 [11:56:02]Write i2c OK [11:56:02]MH_I2C_Read... [11:56:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:02]Read from MH i2c: E2 [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: E2 17 00 [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: E2 17 00 68 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 60 [11:56:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:56:02]wFMCommunicate OK [11:56:02]CreateOFDProtocolMessage done [11:56:02]OFDSenderStorePacket 118469 [11:56:02]StoreOFDPacket docnum=118469 [11:56:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CA 6D 07 01 FC 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 D3 31 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C5 CE 01 00 35 04 06 00 09 52 9E 40 8B 64 D9 30 88 86 3C 2B F7 6E [11:56:02]CheckFolder [11:56:02]dirname=/storage/ofd_packets [11:56:02]CheckFolder done [11:56:02]ProducePacketName [11:56:02]name=ofd_packets/00118469 [11:56:02]NVStorageSaveData ofd_packets/00118469 [11:56:02]File name is /storage/ofd_packets/00118469 [11:56:02]Write 301 bytes [11:56:02]NVStorageSaveData done [11:56:02]OFDSenderStorePacket done [11:56:02]KKMCreateOFDPacket done [11:56:02]NVStorageSaveData kkm_last_timestamp [11:56:02]File name is /storage/kkm_last_timestamp [11:56:02]Write 4 bytes [11:56:02]NVStorageSaveData done [11:56:02]ExternCall_PrintAddStr [11:56:02]wPrintStart [11:56:02]Write to MH i2c: 01 00 00 69 23 8C [11:56:02]Write i2c OK [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: 01 [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: 01 07 00 [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: 01 07 00 69 23 00 00 00 00 00 FF 0F A1 [11:56:02]RasterBufferAndPrint [11:56:02]line Счет N : (1)949339 [11:56:02]line ИНН: 02508201610067 [11:56:02]line Контрольно-Кассовый Чек [11:56:02]line ПРОДАЖА [11:56:02]line ТРК (МРК, ГНК) : 41 [11:56:02]line Товар: 2710124130 [11:56:02]line Аи-92-К-4 [11:56:02]line 7.380 * 67.80 [11:56:02]line = 500.36 [11:56:02]line НДС 12% НСП 1% [11:56:02]line > о реализуемом товаре [11:56:02]line ОКРУГЛЕНИЕ: -0.36 [11:56:02]line ИТОГО: 500.00 [11:56:02]line Внесено: 500.00 [11:56:02]line СДАЧА: 0.00 [11:56:02]line НСП 1% : 4.43 [11:56:02]line НДС 12% : 53.14 [11:56:02]line Наличными: 500.00 [11:56:02]line Безнал.: 0.00 [11:56:02]line Место: АЗС № 134 "Партнер Нефть" [11:56:02]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:56:02]line СНО: Общий режим [11:56:02]line Чек 138 28.07.2024 11:56 [11:56:02]line Смена: 433 ФФД: 1.0 [11:56:02]line ЗНМ: 0300000044 [11:56:02]line РНМ: 0000000000092660 [11:56:02]line Версия ККМ: 001 [11:56:02]line ФМ: 0000000000874939 [11:56:02]line ФД: 118469 [11:56:02]line ФПД: 10250446998372 [11:56:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T115603&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118469&fm=10250446998372&tin=02508201610067®Number=0000000000092660&sum=50000 [11:56:02]OFD Sender: Processing packet 118469 [packets to send 86, broken 85] [11:56:02]ProducePacketName [11:56:02]name=ofd_packets/00118469 [11:56:02]OFD Sender: To server: pG, [11:56:02]CommunicateWithHost lk.salyk.kg:30040 [11:56:02]ConnectInit lk.salyk.kg [11:56:02]written 0, free lines is 4095 [11:56:03]Connected sock=10 [11:56:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CA 6D 07 01 FC 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 D3 31 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C5 CE 01 00 35 04 06 00 09 52 9E 40 8B 64 D9 30 88 86 3C 2B F7 6E [11:56:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 77 B9 47 00 BF 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C5 CE 01 00 F4 03 04 00 63 DF A5 66 B6 04 01 00 00 58 DD 42 C0 56 7E 53 7B [11:56:03]CommunicateWithHost err = 0 [11:56:03]CheckOFDResponse [11:56:03]1017 (14) - 77093643461234 [11:56:03]1041 (16) - 0000000000874939 [11:56:03]1040 (4) - 118469 [11:56:03]1012 (4) - 28.07.2024 06:04 [11:56:03]1206 (1) - 0 [11:56:03]OFD Sender: Remove packet 118469 [11:56:03]ProducePacketName [11:56:03]name=ofd_packets/00118469 [11:56:03]NVStorageDeleteData [11:56:03]Write to MH i2c: 01 00 00 93 23 B6 [11:56:03]Write i2c OK [11:56:03]MH_I2C_Read... [11:56:03]Read from MH i2c: 01 [11:56:03]MH_I2C_Read... [11:56:03]Read from MH i2c: 01 07 00 [11:56:03]MH_I2C_Read... [11:56:03]Read from MH i2c: 01 07 00 93 23 00 00 00 00 00 EB 0C B4 [11:56:03]RasterBufferAndPrint [11:56:03]line [11:56:03]line [11:56:03]line [11:56:03]line [11:56:03]line [11:56:03]written 0, free lines is 3314 [11:56:03]MH_Cut [11:56:03]Write to MH i2c: D1 01 00 9A 23 01 8F [11:56:03]Write i2c OK [11:56:03]MH_I2C_Read... [11:56:03]Read from MH i2c: D1 [11:56:03]MH_I2C_Read... [11:56:03]Read from MH i2c: D1 01 00 [11:56:03]MH_I2C_Read... [11:56:03]Read from MH i2c: D1 01 00 9A 23 00 8E [11:56:03]Write to MH i2c: 01 00 00 9B 23 BE [11:56:03]Write i2c OK [11:56:03]MH_I2C_Read... [11:56:03]OFD Sender: No OFD packet to send [11:56:04]*** Cut start [11:56:04]*** Partial cut [11:56:04]*** CUTSNS_PIN = 1 [11:56:04]*** CUTSNS_PIN = 0 [11:56:04]*** Brake cut motor [11:56:04]Read from MH i2c: 01 [11:56:04]MH_I2C_Read... [11:56:04]*** Stop cut motor [11:56:04]*** Cut end [11:56:04]Read from MH i2c: 01 07 00 [11:56:04]MH_I2C_Read... [11:56:04]Read from MH i2c: 01 07 00 9B 23 00 00 00 00 00 FF 0F D3 [11:56:04]process_action close_receipt done [11:56:04]requested_data is exist [11:56:04]produce_requested_data [11:56:04]requested_item fm.sn is exist - process it [11:56:04]wFMCommunicate request_size=4 [11:56:04]MH_SAM_APDU [11:56:04]CAPDU: 80 11 00 00 [11:56:04]Write to MH i2c: E2 08 00 9C 23 80 11 00 00 00 00 00 00 39 [11:56:04]Write i2c OK [11:56:04]MH_I2C_Read... [11:56:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:04]Read from MH i2c: E2 [11:56:04]MH_I2C_Read... [11:56:04]Read from MH i2c: E2 17 00 [11:56:04]MH_I2C_Read... [11:56:04]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 39 33 39 90 00 94 [11:56:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:56:04]wFMCommunicate OK [11:56:04]requested_item fd.num is exist - process it [11:56:04]SAM_PROTO_GetFieldsCounters [11:56:04]wFMCommunicate request_size=4 [11:56:04]MH_SAM_APDU [11:56:04]CAPDU: 80 13 00 00 [11:56:04]Write to MH i2c: E2 08 00 9D 23 80 13 00 00 00 00 00 00 3C [11:56:04]Write i2c OK [11:56:04]MH_I2C_Read... [11:56:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:04]Read from MH i2c: E2 [11:56:04]MH_I2C_Read... [11:56:04]Read from MH i2c: E2 62 00 [11:56:04]MH_I2C_Read... [11:56:04]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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C5 CE 01 00 0E 04 04 00 B1 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 47 [11:56:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C5 CE 01 00 0E 04 04 00 B1 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 [11:56:04]wFMCommunicate OK [11:56:04]SAM_PROTO_GetFieldsCounters done [11:56:04]requested_item shift.num is exist - process it [11:56:04]requested_item shift.opened is exist - process it [11:56:04]req_shift_opened [11:56:04]FM_GetShiftState [11:56:04]SAM_PROTO_GetShiftState [11:56:04]wFMCommunicate request_size=4 [11:56:04]MH_SAM_APDU [11:56:04]CAPDU: 80 13 01 00 [11:56:04]Write to MH i2c: E2 08 00 9E 23 80 13 01 00 00 00 00 00 3E [11:56:04]Write i2c OK [11:56:04]MH_I2C_Read... [11:56:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:04]Read from MH i2c: E2 [11:56:04]MH_I2C_Read... [11:56:04]Read from MH i2c: E2 0E 00 [11:56:04]MH_I2C_Read... [11:56:04]Read from MH i2c: E2 0E 00 9E 23 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 15 [11:56:04]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [11:56:04]wFMCommunicate OK [11:56:04]SAM_PROTO_GetShiftState done [11:56:04]FM_GetShiftState done [11:56:04]req_shift_opened done [11:56:04]requested_item shift.open_date is exist - process it [11:56:04]req_shift_open_date [11:56:04]req_shift_open_date done [11:56:04]produce_requested_data done [11:56:04]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118469,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [11:56:04]process_action_free close_receipt [11:56:04]json_value_free [11:56:04]json_value_free done [11:56:04]process_json_proto returns [11:56:04]Send response to host [11:56:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118469,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [11:56:04]free response buf [11:56:04]execute_script done [11:56:04]execute_script returns [11:56:04]free content buf [11:56:04]Sock 7.Close socket [11:56:04]Sock 7.Thread stoped [11:56:08]OFD Sender: No OFD packet to send [11:56:13]OFD Sender: No OFD packet to send [11:56:18]OFD Sender: No OFD packet to send [11:56:23]OFD Sender: No OFD packet to send [11:56:28]OFD Sender: No OFD packet to send [11:56:33]OFD Sender: No OFD packet to send [11:56:38]OFD Sender: No OFD packet to send [11:56:43]OFD Sender: No OFD packet to send [11:56:48]OFD Sender: No OFD packet to send [11:56:53]OFD Sender: No OFD packet to send [11:56:58]OFD Sender: No OFD packet to send [11:57:03]OFD Sender: No OFD packet to send [11:57:08]OFD Sender: No OFD packet to send [11:57:13]OFD Sender: No OFD packet to send [11:57:18]OFD Sender: No OFD packet to send [11:57:23]OFD Sender: No OFD packet to send [11:57:28]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:38]OFD Sender: No OFD packet to send [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:53]OFD Sender: No OFD packet to send [11:57:58]OFD Sender: No OFD packet to send [11:58:03]OFD Sender: No OFD packet to send [11:58:08]OFD Sender: No OFD packet to send [11:58:13]OFD Sender: No OFD packet to send [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00: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:14]OFD Sender: No OFD packet to send [12:03:19]OFD Sender: No OFD packet to send [12:03:24]OFD Sender: No OFD packet to send [12:03:29]OFD Sender: No OFD packet to send [12:03:34]OFD Sender: No OFD packet to send [12:03:39]OFD Sender: No OFD packet to send [12:03:44]OFD Sender: No OFD packet to send [12:03:49]OFD Sender: No OFD packet to send [12:03:54]OFD Sender: No OFD packet to send [12:03:59]OFD Sender: No OFD packet to send [12:04:04]OFD Sender: No OFD packet to send [12:04:09]OFD Sender: No OFD packet to send [12:04:14]OFD Sender: No OFD packet to send [12:04:19]OFD Sender: No OFD packet to send [12:04:24]OFD Sender: No OFD packet to send [12:04:29]OFD Sender: No OFD packet to send [12:04:34]OFD Sender: No OFD packet to send [12:04:39]OFD Sender: No OFD packet to send [12:04:44]OFD Sender: No OFD packet to send [12:04:49]OFD Sender: No OFD packet to send [12:04:54]OFD Sender: No OFD packet to send [12:04:59]OFD Sender: No OFD packet to send [12:05:04]OFD Sender: No OFD packet to send [12:05:09]OFD Sender: No OFD packet to send [12:05:14]OFD Sender: No OFD packet to send [12:05:19]OFD Sender: No OFD packet to send [12:05:24]OFD Sender: No OFD packet to send [12:05:29]OFD Sender: No OFD packet to send [12:05:34]OFD Sender: No OFD packet to send [12:05:39]OFD Sender: No OFD packet to send [12:05:44]OFD Sender: No OFD packet to send [12:05:49]OFD Sender: No OFD packet to send [12:05:54]OFD Sender: No OFD packet to send [12:05:59]OFD Sender: No OFD packet to send [12:06:04]OFD Sender: No OFD packet to send [12:06:09]OFD Sender: No OFD packet to send [12:06:14]OFD Sender: No OFD packet to send [12:06:19]OFD Sender: No OFD packet to send [12:06:24]OFD Sender: No OFD packet to send [12:06:29]OFD Sender: No OFD packet to send [12:06:34]OFD Sender: No OFD packet to send [12:06:39]OFD Sender: No OFD packet to send [12:06:44]OFD Sender: No OFD packet to send [12:06:49]OFD Sender: No OFD packet to send [12:06:54]OFD Sender: No OFD packet to send [12:06:59]OFD Sender: No OFD packet to send [12:07:04]OFD Sender: No OFD packet to send [12:07:09]OFD Sender: No OFD packet to send [12:07:14]OFD Sender: No OFD packet to send [12:07:19]OFD Sender: No OFD packet to send [12:07:24]OFD Sender: No OFD packet to send [12:07:29]OFD Sender: No OFD packet to send [12:07:34]OFD Sender: No OFD packet to send [12:07:39]OFD Sender: No OFD packet to send [12:07:44]OFD Sender: No OFD packet to send [12:07:49]OFD Sender: No OFD packet to send [12:07:54]OFD Sender: No OFD packet to send [12:07:59]OFD Sender: No OFD packet to send [12:08:04]OFD Sender: No OFD packet to send [12:08:09]OFD Sender: No OFD packet to send [12:08:14]OFD Sender: No OFD packet to send [12:08:19]OFD Sender: No OFD packet to send [12:08:24]OFD Sender: No OFD packet to send [12:08:29]OFD Sender: No OFD packet to send [12:08:34]OFD Sender: No OFD packet to send [12:08:39]OFD Sender: No OFD packet to send [12:08:44]OFD Sender: No OFD packet to send [12:08:49]OFD Sender: No OFD packet to send [12:08:54]OFD Sender: No OFD packet to send [12:08:59]OFD Sender: No OFD packet to send [12:09:04]OFD Sender: No OFD packet to send [12:09:09]OFD Sender: No OFD packet to send [12:09:14]OFD Sender: No OFD packet to send [12:09:19]OFD Sender: No OFD packet to send [12:09:24]OFD Sender: No OFD packet to send [12:09:29]OFD Sender: No OFD packet to send [12:09:34]OFD Sender: No OFD packet to send [12:09:39]OFD Sender: No OFD packet to send [12:09:44]OFD Sender: No OFD packet to send [12:09:49]OFD Sender: No OFD packet to send [12:09:54]OFD Sender: No OFD packet to send [12:09:59]OFD Sender: No OFD packet to send [12:10:04]OFD Sender: No OFD packet to send [12:10:09]OFD Sender: No OFD packet to send [12:10:14]OFD Sender: No OFD packet to send [12:10:19]OFD Sender: No OFD packet to send [12:10:24]OFD Sender: No OFD packet to send [12:10:29]OFD Sender: No OFD packet to send [12:10:34]OFD Sender: No OFD packet to send [12:10:39]OFD Sender: No OFD packet to send [12:10:44]OFD Sender: No OFD packet to send [12:10:49]OFD Sender: No OFD packet to send [12:10:54]OFD Sender: No OFD packet to send [12:10:59]OFD Sender: No OFD packet to send [12:11:04]OFD Sender: No OFD packet to send [12:11:09]OFD Sender: No OFD packet to send [12:11:14]OFD Sender: No OFD packet to send [12:11:19]OFD Sender: No OFD packet to send [12:11:24]OFD Sender: No OFD packet to send [12:11:29]OFD Sender: No OFD packet to send [12:11:34]OFD Sender: No OFD packet to send [12:11:39]OFD Sender: No OFD packet to send [12:11:44]OFD Sender: No OFD packet to send [12:11:49]OFD Sender: No OFD packet to send [12:11:50]accept exits with 9 [12:11:50]New connection [12:11:50]New thread 3067067748 created [12:11:50]Thread 3066924388 joined [12:11:50]Waiting for new connection... [12:11:50] Sock 9.Parse request [12:11:50]Sock 9.Check first char [12:11:50]Sock 9.First char is OK [12:11:50]request: POST /json_proto HTTP/1.0 [12:11:50]Method: POST [12:11:50]URL: /json_proto [12:11:50]Method is POST - this is cgi request [12:11:50]url: /json_proto [12:11:50]query_string will be loaded in cgi processing [12:11:50]execute_cgi json_proto POST (null) [12:11:50]execute_cgi path=json_proto method=POST [12:11:50]POST find Content-Length [12:11:50]Host: 172.17.45.7:8080 [12:11:50]Content-Length: 835 [12:11:50]Content-Type: application/json [12:11:50] [12:11:50]POST finish read [12:11:50]Found Content-Length = 835 [12:11:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 52.960, "sum" : 4000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 4000.00, "payments": [ { "type": 1, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:50]execute_script... [12:11:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 52.960, "sum" : 4000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 4000.00, "payments": [ { "type": 1, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:50]POST & json_proto [12:11:50]process_json_proto [12:11:50]json parsed OK: [12:11:50]protocol is kg_v1.0 [12:11:50]action value=close_receipt [12:11:50]process_action close_receipt [12:11:50]cmd_close_receipt [12:11:50]MH_GetDate [12:11:50]Write to MH i2c: F0 00 00 9F 23 B1 [12:11:50]Write i2c OK [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: F0 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: F0 09 00 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: F0 09 00 9F 23 00 88 35 A6 66 90 0F 3E 66 C6 [12:11:50]GetLastDocTimeStamp 1722167763 [12:11:50]current date 1722168712 [12:11:50]FM_GetShiftState [12:11:50]SAM_PROTO_GetShiftState [12:11:50]wFMCommunicate request_size=4 [12:11:50]MH_SAM_APDU [12:11:50]CAPDU: 80 13 01 00 [12:11:50]Write to MH i2c: E2 08 00 A0 23 80 13 01 00 00 00 00 00 40 [12:11:50]Write i2c OK [12:11:50]MH_I2C_Read... [12:11:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:50]Read from MH i2c: E2 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 0E 00 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 0E 00 A0 23 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 17 [12:11:50]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [12:11:50]wFMCommunicate OK [12:11:50]SAM_PROTO_GetShiftState done [12:11:50]FM_GetShiftState done [12:11:50]opened in 1722125364 [12:11:50]opened+sec_in_day 1722211764 [12:11:50]quantity*price = 400006 [12:11:50]sum+1 = 400008 [12:11:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 4000.00 НСП 1% : 35.40 НДС 12% : 424.79 Наличными: 0.00 Безнал.: 4000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 139 28.07.2024 12:11 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 118470 ФПД: 254742573016253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T121152&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118470&fm=254742573016253&tin=02508201610067®Number=0000000000092660&sum=400000 [12:11:51]StoreToDocumentArchive [12:11:51]shift 433 fd 118470 [12:11:51]save to /storage/0433/doc_00118470 [12:11:51]save last doc name /storage/0433/doc_00118470 to /storage/kkm_last_doc_name [12:11:51]save OK [12:11:51]Clear old archive folders... [12:11:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:11:51]tlvbuf is 00147990 [12:11:51]SAM_PROTO_ClearQueue [12:11:51]wFMCommunicate request_size=4 [12:11:51]MH_SAM_APDU [12:11:51]CAPDU: 80 09 00 00 [12:11:51]Write to MH i2c: E2 08 00 AD 23 80 09 00 00 00 00 00 00 42 [12:11:51]Write i2c OK [12:11:51]MH_I2C_Read... [12:11:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:51]Read from MH i2c: E2 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 AD 23 00 90 00 44 [12:11:51]RAPDU: 90 00 [12:11:51]wFMCommunicate OK [12:11:51]SAM_PROTO_ClearQueue done [12:11:51]KKMCreateOFDPacket [12:11:51]OFDProtocolAddRootSTLVToBuf [12:11:51]FM_MakeSignedData [12:11:51]FM_MakeSignedData [12:11:51]SAM_PROTO_SignData [12:11:51]wFMCommunicate request_size=4 [12:11:51]MH_SAM_APDU [12:11:51]CAPDU: 80 0D 01 02 [12:11:51]Write to MH i2c: E2 08 00 AE 23 80 0D 01 02 00 00 00 00 4A [12:11:51]Write i2c OK [12:11:51]MH_I2C_Read... [12:11:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:51]Read from MH i2c: E2 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 AE 23 00 90 00 45 [12:11:51]RAPDU: 90 00 [12:11:51]wFMCommunicate OK [12:11:51]wFMCommunicate request_size=255 [12:11:51]MH_SAM_APDU [12:11:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 CE 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 87 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 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 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 88 35 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C6 CE 01 00 35 04 06 00 E7 AF E0 92 [12:11:51]Write to MH i2c: E2 02 01 AF 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 CE 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 87 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 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 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 88 35 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C6 CE 01 00 35 04 06 00 E7 AF E0 92 00 00 FD [12:11:51]Write i2c OK [12:11:51]MH_I2C_Read... [12:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:51]Read from MH i2c: E2 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 AF 23 00 90 00 46 [12:11:51]RAPDU: 90 00 [12:11:51]wFMCommunicate OK [12:11:51]wFMCommunicate request_size=7 [12:11:51]MH_SAM_APDU [12:11:51]CAPDU: 80 0D 02 02 02 E4 BD [12:11:51]Write to MH i2c: E2 0A 00 B0 23 80 0D 02 02 02 00 E4 BD 00 00 F2 [12:11:51]Write i2c OK [12:11:51]MH_I2C_Read... [12:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:51]Read from MH i2c: E2 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 B0 23 00 90 00 47 [12:11:51]RAPDU: 90 00 [12:11:51]wFMCommunicate OK [12:11:51]wFMCommunicate request_size=4 [12:11:51]MH_SAM_APDU [12:11:51]CAPDU: 80 0D 03 02 [12:11:51]Write to MH i2c: E2 08 00 B1 23 80 0D 03 02 00 00 00 00 4F [12:11:51]Write i2c OK [12:11:51]MH_I2C_Read... [12:11:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:52]Read from MH i2c: E2 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: E2 0B 00 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: E2 0B 00 B1 23 00 B8 72 27 0A B6 0E F3 41 90 00 A3 [12:11:52]RAPDU: B8 72 27 0A B6 0E F3 41 90 00 [12:11:52]wFMCommunicate OK [12:11:52]SAM_PROTO_SignData done [12:11:52]FM_MakeSignedData done [12:11:52]CreateOFDProtocolMessage [12:11:52]wFMCommunicate request_size=4 [12:11:52]MH_SAM_APDU [12:11:52]CAPDU: 80 11 00 00 [12:11:52]Write to MH i2c: E2 08 00 B2 23 80 11 00 00 00 00 00 00 4F [12:11:52]Write i2c OK [12:11:52]MH_I2C_Read... [12:11:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:52]Read from MH i2c: E2 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: E2 17 00 [12:11:52]MH_I2C_Read... [12:11:52]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 39 33 39 90 00 AA [12:11:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:11:52]wFMCommunicate OK [12:11:52]CreateOFDProtocolMessage done [12:11:52]OFDSenderStorePacket 118470 [12:11:52]StoreOFDPacket docnum=118470 [12:11:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 95 57 04 01 FF 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 CE 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 87 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 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 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 88 35 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C6 CE 01 00 35 04 06 00 E7 AF E0 92 E4 BD B8 72 27 0A B6 0E F3 41 [12:11:52]CheckFolder [12:11:52]dirname=/storage/ofd_packets [12:11:52]CheckFolder done [12:11:52]ProducePacketName [12:11:52]name=ofd_packets/00118470 [12:11:52]NVStorageSaveData ofd_packets/00118470 [12:11:52]File name is /storage/ofd_packets/00118470 [12:11:52]Write 298 bytes [12:11:52]NVStorageSaveData done [12:11:52]OFDSenderStorePacket done [12:11:52]KKMCreateOFDPacket done [12:11:52]NVStorageSaveData kkm_last_timestamp [12:11:52]File name is /storage/kkm_last_timestamp [12:11:52]Write 4 bytes [12:11:52]NVStorageSaveData done [12:11:52]ExternCall_PrintAddStr [12:11:52]wPrintStart [12:11:52]Write to MH i2c: 01 00 00 B3 23 D6 [12:11:52]Write i2c OK [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: 01 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: 01 07 00 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: 01 07 00 B3 23 00 00 00 00 00 FF 0F EB [12:11:52]RasterBufferAndPrint [12:11:52]line Счет N : (1)949340 [12:11:52]line ИНН: 02508201610067 [12:11:52]line Контрольно-Кассовый Чек [12:11:52]line ПРОДАЖА [12:11:52]line ТРК (МРК, ГНК) : 11 [12:11:52]line Товар: 2710194800 [12:11:52]line ДТ-К-5 [12:11:52]line 52.960 * 75.53 [12:11:52]line = 4000.07 [12:11:52]line НДС 12% НСП 1% [12:11:52]line > о реализуемом товаре [12:11:52]line ОКРУГЛЕНИЕ: -0.07 [12:11:52]line ИТОГО: 4000.00 [12:11:52]line НСП 1% : 35.40 [12:11:52]line НДС 12% : 424.79 [12:11:52]line Наличными: 0.00 [12:11:52]line Безнал.: 4000.00 [12:11:52]line Место: АЗС № 134 "Партнер Нефть" [12:11:52]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:11:52]line СНО: Общий режим [12:11:52]line Чек 139 28.07.2024 12:11 [12:11:52]line Смена: 433 ФФД: 1.0 [12:11:52]line ЗНМ: 0300000044 [12:11:52]line РНМ: 0000000000092660 [12:11:52]line Версия ККМ: 001 [12:11:52]line Платежная система: Бакай Банк [12:11:52]line ФМ: 0000000000874939 [12:11:52]line ФД: 118470 [12:11:52]line ФПД: 254742573016253 [12:11:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T121152&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118470&fm=254742573016253&tin=02508201610067®Number=0000000000092660&sum=400000 [12:11:52]OFD Sender: Processing packet 118470 [packets to send 86, broken 85] [12:11:52]ProducePacketName [12:11:52]name=ofd_packets/00118470 [12:11:52]OFD Sender: To server: pG, [12:11:52]CommunicateWithHost lk.salyk.kg:30040 [12:11:52]ConnectInit lk.salyk.kg [12:11:52]written 0, free lines is 4095 [12:11:52]Connected sock=10 [12:11:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 95 57 04 01 FF 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 CE 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 87 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 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 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 88 35 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C6 CE 01 00 35 04 06 00 E7 AF E0 92 E4 BD B8 72 27 0A B6 0E F3 41 [12:11:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 37 7E 47 00 E6 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 39 33 39 10 04 04 00 C6 CE 01 00 F4 03 04 00 19 E3 A5 66 B6 04 01 00 00 1D 59 50 94 CB BB C1 72 [12:11:52]CommunicateWithHost err = 0 [12:11:52]CheckOFDResponse [12:11:52]1017 (14) - 77093643461234 [12:11:52]1041 (16) - 0000000000874939 [12:11:52]1040 (4) - 118470 [12:11:52]1012 (4) - 28.07.2024 06:20 [12:11:52]1206 (1) - 0 [12:11:52]OFD Sender: Remove packet 118470 [12:11:52]ProducePacketName [12:11:52]name=ofd_packets/00118470 [12:11:52]NVStorageDeleteData [12:11:52]Write to MH i2c: 01 00 00 DD 23 00 [12:11:52]Write i2c OK [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: 01 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: 01 07 00 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: 01 07 00 DD 23 00 00 00 00 00 D6 0C E9 [12:11:52]RasterBufferAndPrint [12:11:52]line [12:11:52]line [12:11:52]line [12:11:52]line [12:11:52]line [12:11:52]written 0, free lines is 3294 [12:11:52]MH_Cut [12:11:52]Write to MH i2c: D1 01 00 E4 23 01 D9 [12:11:52]Write i2c OK [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: D1 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: D1 01 00 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: D1 01 00 E4 23 00 D8 [12:11:52]Write to MH i2c: 01 00 00 E5 23 08 [12:11:52]Write i2c OK [12:11:52]MH_I2C_Read... [12:11:53]OFD Sender: No OFD packet to send [12:11:53]*** Cut start [12:11:53]*** Partial cut [12:11:53]*** CUTSNS_PIN = 1 [12:11:53]*** CUTSNS_PIN = 0 [12:11:53]*** Brake cut motor [12:11:54]Read from MH i2c: 01 [12:11:54]*** Stop cut motor [12:11:54]*** Cut end [12:11:54]MH_I2C_Read... [12:11:54]Read from MH i2c: 01 07 00 [12:11:54]MH_I2C_Read... [12:11:54]Read from MH i2c: 01 07 00 E5 23 00 00 00 00 00 FF 0F 1D [12:11:54]process_action close_receipt done [12:11:54]requested_data is exist [12:11:54]produce_requested_data [12:11:54]requested_item fm.sn is exist - process it [12:11:54]wFMCommunicate request_size=4 [12:11:54]MH_SAM_APDU [12:11:54]CAPDU: 80 11 00 00 [12:11:54]Write to MH i2c: E2 08 00 E6 23 80 11 00 00 00 00 00 00 83 [12:11:54]Write i2c OK [12:11:54]MH_I2C_Read... [12:11:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:54]Read from MH i2c: E2 [12:11:54]MH_I2C_Read... [12:11:54]Read from MH i2c: E2 17 00 [12:11:54]MH_I2C_Read... [12:11:54]Read from MH i2c: E2 17 00 E6 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DE [12:11:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:11:54]wFMCommunicate OK [12:11:54]requested_item fd.num is exist - process it [12:11:54]SAM_PROTO_GetFieldsCounters [12:11:54]wFMCommunicate request_size=4 [12:11:54]MH_SAM_APDU [12:11:54]CAPDU: 80 13 00 00 [12:11:54]Write to MH i2c: E2 08 00 E7 23 80 13 00 00 00 00 00 00 86 [12:11:54]Write i2c OK [12:11:54]MH_I2C_Read... [12:11:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:54]Read from MH i2c: E2 [12:11:54]MH_I2C_Read... [12:11:54]Read from MH i2c: E2 62 00 [12:11:54]MH_I2C_Read... [12:11:54]Read from MH i2c: E2 62 00 E7 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C6 CE 01 00 0E 04 04 00 B1 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 95 [12:11:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C6 CE 01 00 0E 04 04 00 B1 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 [12:11:54]wFMCommunicate OK [12:11:54]SAM_PROTO_GetFieldsCounters done [12:11:54]requested_item shift.num is exist - process it [12:11:54]requested_item shift.opened is exist - process it [12:11:54]req_shift_opened [12:11:54]FM_GetShiftState [12:11:54]SAM_PROTO_GetShiftState [12:11:54]wFMCommunicate request_size=4 [12:11:54]MH_SAM_APDU [12:11:54]CAPDU: 80 13 01 00 [12:11:54]Write to MH i2c: E2 08 00 E8 23 80 13 01 00 00 00 00 00 88 [12:11:54]Write i2c OK [12:11:54]MH_I2C_Read... [12:11:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:54]Read from MH i2c: E2 [12:11:54]MH_I2C_Read... [12:11:54]Read from MH i2c: E2 0E 00 [12:11:54]MH_I2C_Read... [12:11:54]Read from MH i2c: E2 0E 00 E8 23 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 5F [12:11:54]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [12:11:54]wFMCommunicate OK [12:11:54]SAM_PROTO_GetShiftState done [12:11:54]FM_GetShiftState done [12:11:54]req_shift_opened done [12:11:54]requested_item shift.open_date is exist - process it [12:11:54]req_shift_open_date [12:11:54]req_shift_open_date done [12:11:54]produce_requested_data done [12:11:54]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118470,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [12:11:54]process_action_free close_receipt [12:11:54]json_value_free [12:11:54]json_value_free done [12:11:54]process_json_proto returns [12:11:54]Send response to host [12:11:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118470,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [12:11:54]free response buf [12:11:54]execute_script done [12:11:54]execute_script returns [12:11:54]free content buf [12:11:54]Sock 9.Close socket [12:11:54]Sock 9.Thread stoped [12:11:58]OFD Sender: No OFD packet to send [12:12:03]OFD Sender: No OFD packet to send [12:12:08]OFD Sender: No OFD packet to send [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:23]OFD Sender: No OFD packet to send [12:12:28]OFD Sender: No OFD packet to send [12:12:33]OFD Sender: No OFD packet to send [12:12:38]OFD Sender: No OFD packet to send [12:12:43]OFD Sender: No OFD packet to send [12:12:48]OFD Sender: No OFD packet to send [12:12:53]OFD Sender: No OFD packet to send [12:12:58]OFD Sender: No OFD packet to send [12:13:03]OFD Sender: No OFD packet to send [12:13:07]accept exits with 7 [12:13:07]New connection [12:13:07]New thread 3066924388 created [12:13:07]Thread 3067067748 joined [12:13:07]Waiting for new connection... [12:13:07] Sock 7.Parse request [12:13:07]Sock 7.Check first char [12:13:07]Sock 7.First char is OK [12:13:07]request: POST /json_proto HTTP/1.0 [12:13:07]Method: POST [12:13:07]URL: /json_proto [12:13:07]Method is POST - this is cgi request [12:13:07]url: /json_proto [12:13:07]query_string will be loaded in cgi processing [12:13:07]execute_cgi json_proto POST (null) [12:13:07]execute_cgi path=json_proto method=POST [12:13:07]POST find Content-Length [12:13:07]Host: 172.17.45.7:8080 [12:13:07]Content-Length: 679 [12:13:07]Content-Type: application/json [12:13:07] [12:13:07]POST finish read [12:13:07]Found Content-Length = 679 [12:13:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:07]execute_script... [12:13:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:07]POST & json_proto [12:13:07]process_json_proto [12:13:07]json parsed OK: [12:13:07]protocol is kg_v1.0 [12:13:07]action value=close_receipt [12:13:07]process_action close_receipt [12:13:07]cmd_close_receipt [12:13:07]MH_GetDate [12:13:07]Write to MH i2c: F0 00 00 E9 23 FB [12:13:07]Write i2c OK [12:13:07]MH_I2C_Read... [12:13:07]Read from MH i2c: F0 [12:13:07]MH_I2C_Read... [12:13:07]Read from MH i2c: F0 09 00 [12:13:07]MH_I2C_Read... [12:13:07]Read from MH i2c: F0 09 00 E9 23 00 D5 35 A6 66 90 0F 3E 66 5D [12:13:07]GetLastDocTimeStamp 1722168712 [12:13:07]current date 1722168789 [12:13:07]FM_GetShiftState [12:13:07]SAM_PROTO_GetShiftState [12:13:07]wFMCommunicate request_size=4 [12:13:07]MH_SAM_APDU [12:13:07]CAPDU: 80 13 01 00 [12:13:07]Write to MH i2c: E2 08 00 EA 23 80 13 01 00 00 00 00 00 8A [12:13:07]Write i2c OK [12:13:07]MH_I2C_Read... [12:13:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:07]Read from MH i2c: E2 [12:13:07]MH_I2C_Read... [12:13:07]Read from MH i2c: E2 0E 00 [12:13:07]MH_I2C_Read... [12:13:07]Read from MH i2c: E2 0E 00 EA 23 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 61 [12:13:07]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [12:13:07]wFMCommunicate OK [12:13:07]SAM_PROTO_GetShiftState done [12:13:07]FM_GetShiftState done [12:13:07]opened in 1722125364 [12:13:07]opened+sec_in_day 1722211764 [12:13:07]quantity*price = 100050 [12:13:07]sum+1 = 100052 [12:13:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 140 28.07.2024 12:13 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118471 ФПД: 261315335640516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T121310&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118471&fm=261315335640516&tin=02508201610067®Number=0000000000092660&sum=100000 [12:13:08]StoreToDocumentArchive [12:13:08]shift 433 fd 118471 [12:13:08]save to /storage/0433/doc_00118471 [12:13:08]save last doc name /storage/0433/doc_00118471 to /storage/kkm_last_doc_name [12:13:08]save OK [12:13:08]Clear old archive folders... [12:13:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:13:08]tlvbuf is B6EC49C0 [12:13:08]SAM_PROTO_ClearQueue [12:13:08]wFMCommunicate request_size=4 [12:13:08]MH_SAM_APDU [12:13:08]CAPDU: 80 09 00 00 [12:13:08]Write to MH i2c: E2 08 00 F7 23 80 09 00 00 00 00 00 00 8C [12:13:08]Write i2c OK [12:13:08]MH_I2C_Read... [12:13:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:08]Read from MH i2c: E2 [12:13:08]MH_I2C_Read... [12:13:08]Read from MH i2c: E2 03 00 [12:13:08]MH_I2C_Read... [12:13:08]Read from MH i2c: E2 03 00 F7 23 00 90 00 8E [12:13:08]RAPDU: 90 00 [12:13:08]wFMCommunicate OK [12:13:08]SAM_PROTO_ClearQueue done [12:13:08]KKMCreateOFDPacket [12:13:08]OFDProtocolAddRootSTLVToBuf [12:13:08]FM_MakeSignedData [12:13:08]FM_MakeSignedData [12:13:08]SAM_PROTO_SignData [12:13:08]wFMCommunicate request_size=4 [12:13:08]MH_SAM_APDU [12:13:08]CAPDU: 80 0D 01 02 [12:13:08]Write to MH i2c: E2 08 00 F8 23 80 0D 01 02 00 00 00 00 94 [12:13:08]Write i2c OK [12:13:08]MH_I2C_Read... [12:13:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:08]Read from MH i2c: E2 [12:13:08]MH_I2C_Read... [12:13:08]Read from MH i2c: E2 03 00 [12:13:08]MH_I2C_Read... [12:13:08]Read from MH i2c: E2 03 00 F8 23 00 90 00 8F [12:13:08]RAPDU: 90 00 [12:13:08]wFMCommunicate OK [12:13:08]wFMCommunicate request_size=255 [12:13:08]MH_SAM_APDU [12:13:08]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 D6 35 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C7 CE 01 00 35 04 06 00 ED AA 37 C1 [12:13:08]Write to MH i2c: E2 02 01 F9 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 D6 35 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C7 CE 01 00 35 04 06 00 ED AA 37 C1 00 00 9E [12:13:08]Write i2c OK [12:13:08]MH_I2C_Read... [12:13:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:08]Read from MH i2c: E2 [12:13:08]MH_I2C_Read... [12:13:08]Read from MH i2c: E2 03 00 [12:13:08]MH_I2C_Read... [12:13:08]Read from MH i2c: E2 03 00 F9 23 00 90 00 90 [12:13:08]RAPDU: 90 00 [12:13:08]wFMCommunicate OK [12:13:08]wFMCommunicate request_size=7 [12:13:08]MH_SAM_APDU [12:13:08]CAPDU: 80 0D 02 02 02 55 C4 [12:13:08]Write to MH i2c: E2 0A 00 FA 23 80 0D 02 02 02 00 55 C4 00 00 B4 [12:13:08]Write i2c OK [12:13:08]MH_I2C_Read... [12:13:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:08]Read from MH i2c: E2 [12:13:08]MH_I2C_Read... [12:13:08]Read from MH i2c: E2 03 00 [12:13:08]MH_I2C_Read... [12:13:08]Read from MH i2c: E2 03 00 FA 23 00 90 00 91 [12:13:08]RAPDU: 90 00 [12:13:08]wFMCommunicate OK [12:13:08]wFMCommunicate request_size=4 [12:13:08]MH_SAM_APDU [12:13:08]CAPDU: 80 0D 03 02 [12:13:08]Write to MH i2c: E2 08 00 FB 23 80 0D 03 02 00 00 00 00 99 [12:13:08]Write i2c OK [12:13:08]MH_I2C_Read... [12:13:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:09]Read from MH i2c: E2 [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: E2 0B 00 [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: E2 0B 00 FB 23 00 52 6A A2 B3 11 2D 28 23 90 00 34 [12:13:09]RAPDU: 52 6A A2 B3 11 2D 28 23 90 00 [12:13:09]wFMCommunicate OK [12:13:09]SAM_PROTO_SignData done [12:13:09]FM_MakeSignedData done [12:13:09]CreateOFDProtocolMessage [12:13:09]wFMCommunicate request_size=4 [12:13:09]MH_SAM_APDU [12:13:09]CAPDU: 80 11 00 00 [12:13:09]Write to MH i2c: E2 08 00 FC 23 80 11 00 00 00 00 00 00 99 [12:13:09]Write i2c OK [12:13:09]MH_I2C_Read... [12:13:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:09]Read from MH i2c: E2 [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: E2 17 00 [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: E2 17 00 FC 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F4 [12:13:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:13:09]wFMCommunicate OK [12:13:09]CreateOFDProtocolMessage done [12:13:09]OFDSenderStorePacket 118471 [12:13:09]StoreOFDPacket docnum=118471 [12:13:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 6C 10 04 01 3C 6D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 D6 35 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C7 CE 01 00 35 04 06 00 ED AA 37 C1 55 C4 52 6A A2 B3 11 2D 28 23 [12:13:09]CheckFolder [12:13:09]dirname=/storage/ofd_packets [12:13:09]CheckFolder done [12:13:09]ProducePacketName [12:13:09]name=ofd_packets/00118471 [12:13:09]NVStorageSaveData ofd_packets/00118471 [12:13:09]File name is /storage/ofd_packets/00118471 [12:13:09]Write 298 bytes [12:13:09]NVStorageSaveData done [12:13:09]OFDSenderStorePacket done [12:13:09]KKMCreateOFDPacket done [12:13:09]NVStorageSaveData kkm_last_timestamp [12:13:09]File name is /storage/kkm_last_timestamp [12:13:09]Write 4 bytes [12:13:09]NVStorageSaveData done [12:13:09]ExternCall_PrintAddStr [12:13:09]wPrintStart [12:13:09]Write to MH i2c: 01 00 00 FD 23 20 [12:13:09]Write i2c OK [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: 01 [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: 01 07 00 [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: 01 07 00 FD 23 00 00 00 00 00 FF 0F 35 [12:13:09]RasterBufferAndPrint [12:13:09]line Счет N : (1)949341 [12:13:09]line ИНН: 02508201610067 [12:13:09]line Контрольно-Кассовый Чек [12:13:09]line ПРОДАЖА [12:13:09]line ТРК (МРК, ГНК) : 34 [12:13:09]line Товар: 2710194800 [12:13:09]line ДТ-К-5 [12:13:09]line 13.130 * 76.20 [12:13:09]line = 1000.51 [12:13:09]line НДС 12% НСП 1% [12:13:09]line > о реализуемом товаре [12:13:09]line ОКРУГЛЕНИЕ: -0.51 [12:13:09]line ИТОГО: 1000.00 [12:13:09]line Внесено: 1000.00 [12:13:09]line СДАЧА: 0.00 [12:13:09]line НСП 1% : 8.85 [12:13:09]line НДС 12% : 106.25 [12:13:09]line Наличными: 1000.00 [12:13:09]line Безнал.: 0.00 [12:13:09]line Место: АЗС № 134 "Партнер Нефть" [12:13:09]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:13:09]line СНО: Общий режим [12:13:09]line Чек 140 28.07.2024 12:13 [12:13:09]line Смена: 433 ФФД: 1.0 [12:13:09]line ЗНМ: 0300000044 [12:13:09]line РНМ: 0000000000092660 [12:13:09]line Версия ККМ: 001 [12:13:09]line ФМ: 0000000000874939 [12:13:09]line ФД: 118471 [12:13:09]line ФПД: 261315335640516 [12:13:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T121310&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118471&fm=261315335640516&tin=02508201610067®Number=0000000000092660&sum=100000 [12:13:09]OFD Sender: Processing packet 118471 [packets to send 86, broken 85] [12:13:09]ProducePacketName [12:13:09]name=ofd_packets/00118471 [12:13:09]OFD Sender: To server: pG, [12:13:09]CommunicateWithHost lk.salyk.kg:30040 [12:13:09]ConnectInit lk.salyk.kg [12:13:09]written 0, free lines is 4095 [12:13:09]Connected sock=10 [12:13:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 6C 10 04 01 3C 6D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 D6 35 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C7 CE 01 00 35 04 06 00 ED AA 37 C1 55 C4 52 6A A2 B3 11 2D 28 23 [12:13:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4C D1 47 00 91 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C7 CE 01 00 F4 03 04 00 66 E3 A5 66 B6 04 01 00 00 16 85 B8 48 12 CB E3 86 [12:13:09]CommunicateWithHost err = 0 [12:13:09]CheckOFDResponse [12:13:09]1017 (14) - 77093643461234 [12:13:09]1041 (16) - 0000000000874939 [12:13:09]1040 (4) - 118471 [12:13:09]1012 (4) - 28.07.2024 06:21 [12:13:09]1206 (1) - 0 [12:13:09]OFD Sender: Remove packet 118471 [12:13:09]ProducePacketName [12:13:09]name=ofd_packets/00118471 [12:13:09]NVStorageDeleteData [12:13:09]Write to MH i2c: 01 00 00 27 24 4B [12:13:09]Write i2c OK [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: 01 [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: 01 07 00 [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: 01 07 00 27 24 00 00 00 00 00 E1 0C 3F [12:13:09]RasterBufferAndPrint [12:13:09]line [12:13:09]line [12:13:09]line [12:13:09]line [12:13:09]line [12:13:09]written 0, free lines is 3303 [12:13:09]MH_Cut [12:13:09]Write to MH i2c: D1 01 00 2E 24 01 24 [12:13:09]Write i2c OK [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: D1 [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: D1 01 00 [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: D1 01 00 2E 24 00 23 [12:13:09]Write to MH i2c: 01 00 00 2F 24 53 [12:13:09]Write i2c OK [12:13:09]MH_I2C_Read... [12:13:10]OFD Sender: No OFD packet to send [12:13:10]*** Cut start [12:13:10]*** Partial cut [12:13:10]*** CUTSNS_PIN = 1 [12:13:10]*** CUTSNS_PIN = 0 [12:13:10]*** Brake cut motor [12:13:11]Read from MH i2c: 01 [12:13:11]MH_I2C_Read... [12:13:11]*** Stop cut motor [12:13:11]*** Cut end [12:13:11]Read from MH i2c: 01 07 00 [12:13:11]MH_I2C_Read... [12:13:11]Read from MH i2c: 01 07 00 2F 24 00 00 00 00 00 FF 0F 68 [12:13:11]process_action close_receipt done [12:13:11]requested_data is exist [12:13:11]produce_requested_data [12:13:11]requested_item fm.sn is exist - process it [12:13:11]wFMCommunicate request_size=4 [12:13:11]MH_SAM_APDU [12:13:11]CAPDU: 80 11 00 00 [12:13:11]Write to MH i2c: E2 08 00 30 24 80 11 00 00 00 00 00 00 CE [12:13:11]Write i2c OK [12:13:11]MH_I2C_Read... [12:13:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:11]Read from MH i2c: E2 [12:13:11]MH_I2C_Read... [12:13:11]Read from MH i2c: E2 17 00 [12:13:11]MH_I2C_Read... [12:13:11]Read from MH i2c: E2 17 00 30 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 29 [12:13:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:13:11]wFMCommunicate OK [12:13:11]requested_item fd.num is exist - process it [12:13:11]SAM_PROTO_GetFieldsCounters [12:13:11]wFMCommunicate request_size=4 [12:13:11]MH_SAM_APDU [12:13:11]CAPDU: 80 13 00 00 [12:13:11]Write to MH i2c: E2 08 00 31 24 80 13 00 00 00 00 00 00 D1 [12:13:11]Write i2c OK [12:13:11]MH_I2C_Read... [12:13:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:11]Read from MH i2c: E2 [12:13:11]MH_I2C_Read... [12:13:11]Read from MH i2c: E2 62 00 [12:13:11]MH_I2C_Read... [12:13:11]Read from MH i2c: E2 62 00 31 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C7 CE 01 00 0E 04 04 00 B1 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 E4 [12:13:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C7 CE 01 00 0E 04 04 00 B1 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 [12:13:11]wFMCommunicate OK [12:13:11]SAM_PROTO_GetFieldsCounters done [12:13:11]requested_item shift.num is exist - process it [12:13:11]requested_item shift.opened is exist - process it [12:13:11]req_shift_opened [12:13:11]FM_GetShiftState [12:13:11]SAM_PROTO_GetShiftState [12:13:11]wFMCommunicate request_size=4 [12:13:11]MH_SAM_APDU [12:13:11]CAPDU: 80 13 01 00 [12:13:11]Write to MH i2c: E2 08 00 32 24 80 13 01 00 00 00 00 00 D3 [12:13:11]Write i2c OK [12:13:11]MH_I2C_Read... [12:13:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:11]Read from MH i2c: E2 [12:13:11]MH_I2C_Read... [12:13:11]Read from MH i2c: E2 0E 00 [12:13:11]MH_I2C_Read... [12:13:11]Read from MH i2c: E2 0E 00 32 24 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 AA [12:13:11]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [12:13:11]wFMCommunicate OK [12:13:11]SAM_PROTO_GetShiftState done [12:13:11]FM_GetShiftState done [12:13:11]req_shift_opened done [12:13:11]requested_item shift.open_date is exist - process it [12:13:11]req_shift_open_date [12:13:11]req_shift_open_date done [12:13:11]produce_requested_data done [12:13:11]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118471,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [12:13:11]process_action_free close_receipt [12:13:11]json_value_free [12:13:11]json_value_free done [12:13:11]process_json_proto returns [12:13:11]Send response to host [12:13:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118471,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [12:13:11]free response buf [12:13:11]execute_script done [12:13:11]execute_script returns [12:13:11]free content buf [12:13:11]Sock 7.Close socket [12:13:11]Sock 7.Thread stoped [12:13:15]OFD Sender: No OFD packet to send [12:13:20]OFD Sender: No OFD packet to send [12:13:25]OFD Sender: No OFD packet to send [12:13:30]OFD Sender: No OFD packet to send [12:13:35]OFD Sender: No OFD packet to send [12:13:40]OFD Sender: No OFD packet to send [12:13:45]OFD Sender: No OFD packet to send [12:13:50]OFD Sender: No OFD packet to send [12:13:55]OFD Sender: No OFD packet to send [12:14:00]OFD Sender: No OFD packet to send [12:14:05]OFD Sender: No OFD packet to send [12:14:10]OFD Sender: No OFD packet to send [12:14:15]OFD Sender: No OFD packet to send [12:14:20]OFD Sender: No OFD packet to send [12:14:25]OFD Sender: No OFD packet to send [12:14:30]OFD Sender: No OFD packet to send [12:14:35]OFD Sender: No OFD packet to send [12:14:40]OFD Sender: No OFD packet to send [12:14:45]OFD Sender: No OFD packet to send [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:15]OFD Sender: No OFD packet to send [12:19:20]OFD Sender: No OFD packet to send [12:19:25]OFD Sender: No OFD packet to send [12:19:30]OFD Sender: No OFD packet to send [12:19:35]OFD Sender: No OFD packet to send [12:19:40]OFD Sender: No OFD packet to send [12:19:45]OFD Sender: No OFD packet to send [12:19:50]OFD Sender: No OFD packet to send [12:19:55]OFD Sender: No OFD packet to send [12:20:00]OFD Sender: No OFD packet to send [12:20:05]OFD Sender: No OFD packet to send [12:20:10]OFD Sender: No OFD packet to send [12:20:15]OFD Sender: No OFD packet to send [12:20:20]OFD Sender: No OFD packet to send [12:20:25]OFD Sender: No OFD packet to send [12:20:30]OFD Sender: No OFD packet to send [12:20:35]OFD Sender: No OFD packet to send [12:20:40]OFD Sender: No OFD packet to send [12:20:45]OFD Sender: No OFD packet to send [12:20:50]OFD Sender: No OFD packet to send [12:20:55]OFD Sender: No OFD packet to send [12:21:00]OFD Sender: No OFD packet to send [12:21:05]OFD Sender: No OFD packet to send [12:21:10]OFD Sender: No OFD packet to send [12:21:15]OFD Sender: No OFD packet to send [12:21:20]OFD Sender: No OFD packet to send [12:21:25]OFD Sender: No OFD packet to send [12:21:26]accept exits with 9 [12:21:26]New connection [12:21:26]New thread 3067067748 created [12:21:26]Thread 3066924388 joined [12:21:26]Waiting for new connection... [12:21:26] Sock 9.Parse request [12:21:26]Sock 9.Check first char [12:21:26]Sock 9.First char is OK [12:21:26]request: POST /json_proto HTTP/1.0 [12:21:26]Method: POST [12:21:26]URL: /json_proto [12:21:26]Method is POST - this is cgi request [12:21:26]url: /json_proto [12:21:26]query_string will be loaded in cgi processing [12:21:26]execute_cgi json_proto POST (null) [12:21:26]execute_cgi path=json_proto method=POST [12:21:26]POST find Content-Length [12:21:26]Host: 172.17.45.7:8080 [12:21:26]Content-Length: 677 [12:21:26]Content-Type: application/json [12:21:26] [12:21:26]POST finish read [12:21:26]Found Content-Length = 677 [12:21:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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:21:26]execute_script... [12:21: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)949342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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:21:26]POST & json_proto [12:21:26]process_json_proto [12:21:26]json parsed OK: [12:21:26]protocol is kg_v1.0 [12:21:26]action value=close_receipt [12:21:26]process_action close_receipt [12:21:26]cmd_close_receipt [12:21:26]MH_GetDate [12:21:26]Write to MH i2c: F0 00 00 33 24 46 [12:21:26]Write i2c OK [12:21:26]MH_I2C_Read... [12:21:26]Read from MH i2c: F0 [12:21:26]MH_I2C_Read... [12:21:26]Read from MH i2c: F0 09 00 [12:21:26]MH_I2C_Read... [12:21:26]Read from MH i2c: F0 09 00 33 24 00 C9 37 A6 66 90 0F 3E 66 9E [12:21:26]GetLastDocTimeStamp 1722168790 [12:21:26]current date 1722169289 [12:21:26]FM_GetShiftState [12:21:26]SAM_PROTO_GetShiftState [12:21:26]wFMCommunicate request_size=4 [12:21:26]MH_SAM_APDU [12:21:26]CAPDU: 80 13 01 00 [12:21:26]Write to MH i2c: E2 08 00 34 24 80 13 01 00 00 00 00 00 D5 [12:21:26]Write i2c OK [12:21:26]MH_I2C_Read... [12:21:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:26]Read from MH i2c: E2 [12:21:26]MH_I2C_Read... [12:21:26]Read from MH i2c: E2 0E 00 [12:21:26]MH_I2C_Read... [12:21:26]Read from MH i2c: E2 0E 00 34 24 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 AC [12:21:26]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [12:21:26]wFMCommunicate OK [12:21:26]SAM_PROTO_GetShiftState done [12:21:26]FM_GetShiftState done [12:21:26]opened in 1722125364 [12:21:26]opened+sec_in_day 1722211764 [12:21:26]quantity*price = 30035 [12:21:26]sum+1 = 30036 [12:21:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 141 28.07.2024 12:21 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118472 ФПД: 245137982345499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122129&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118472&fm=245137982345499&tin=02508201610067®Number=0000000000092660&sum=30000 [12:21:27]StoreToDocumentArchive [12:21:27]shift 433 fd 118472 [12:21:27]save to /storage/0433/doc_00118472 [12:21:27]save last doc name /storage/0433/doc_00118472 to /storage/kkm_last_doc_name [12:21:27]save OK [12:21:27]Clear old archive folders... [12:21:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:21:27]tlvbuf is B6EF6880 [12:21:27]SAM_PROTO_ClearQueue [12:21:27]wFMCommunicate request_size=4 [12:21:27]MH_SAM_APDU [12:21:27]CAPDU: 80 09 00 00 [12:21:27]Write to MH i2c: E2 08 00 41 24 80 09 00 00 00 00 00 00 D7 [12:21:27]Write i2c OK [12:21:27]MH_I2C_Read... [12:21:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:27]Read from MH i2c: E2 [12:21:27]MH_I2C_Read... [12:21:27]Read from MH i2c: E2 03 00 [12:21:27]MH_I2C_Read... [12:21:27]Read from MH i2c: E2 03 00 41 24 00 90 00 D9 [12:21:27]RAPDU: 90 00 [12:21:27]wFMCommunicate OK [12:21:27]SAM_PROTO_ClearQueue done [12:21:27]KKMCreateOFDPacket [12:21:27]OFDProtocolAddRootSTLVToBuf [12:21:27]FM_MakeSignedData [12:21:27]FM_MakeSignedData [12:21:27]SAM_PROTO_SignData [12:21:27]wFMCommunicate request_size=4 [12:21:27]MH_SAM_APDU [12:21:27]CAPDU: 80 0D 01 02 [12:21:27]Write to MH i2c: E2 08 00 42 24 80 0D 01 02 00 00 00 00 DF [12:21:27]Write i2c OK [12:21:27]MH_I2C_Read... [12:21:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:27]Read from MH i2c: E2 [12:21:27]MH_I2C_Read... [12:21:27]Read from MH i2c: E2 03 00 [12:21:27]MH_I2C_Read... [12:21:27]Read from MH i2c: E2 03 00 42 24 00 90 00 DA [12:21:27]RAPDU: 90 00 [12:21:27]wFMCommunicate OK [12:21:27]wFMCommunicate request_size=255 [12:21:27]MH_SAM_APDU [12:21: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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 C9 37 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C8 CE 01 00 35 04 06 00 DE [12:21:27]Write to MH i2c: E2 02 01 43 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 C9 37 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C8 CE 01 00 35 04 06 00 DE 00 00 42 [12:21:27]Write i2c OK [12:21:27]MH_I2C_Read... [12:21:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:28]Read from MH i2c: E2 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: E2 03 00 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: E2 03 00 43 24 00 90 00 DB [12:21:28]RAPDU: 90 00 [12:21:28]wFMCommunicate OK [12:21:28]wFMCommunicate request_size=10 [12:21:28]MH_SAM_APDU [12:21:28]CAPDU: 80 0D 02 02 05 F3 A2 5B D1 1B [12:21:28]Write to MH i2c: E2 0D 00 44 24 80 0D 02 02 05 00 F3 A2 5B D1 1B 00 00 C8 [12:21:28]Write i2c OK [12:21:28]MH_I2C_Read... [12:21:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:28]Read from MH i2c: E2 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: E2 03 00 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: E2 03 00 44 24 00 90 00 DC [12:21:28]RAPDU: 90 00 [12:21:28]wFMCommunicate OK [12:21:28]wFMCommunicate request_size=4 [12:21:28]MH_SAM_APDU [12:21:28]CAPDU: 80 0D 03 02 [12:21:28]Write to MH i2c: E2 08 00 45 24 80 0D 03 02 00 00 00 00 E4 [12:21:28]Write i2c OK [12:21:28]MH_I2C_Read... [12:21:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:28]Read from MH i2c: E2 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: E2 0B 00 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: E2 0B 00 45 24 00 2D 37 8B EC DA 0F B0 7D 90 00 D6 [12:21:28]RAPDU: 2D 37 8B EC DA 0F B0 7D 90 00 [12:21:28]wFMCommunicate OK [12:21:28]SAM_PROTO_SignData done [12:21:28]FM_MakeSignedData done [12:21:28]CreateOFDProtocolMessage [12:21:28]wFMCommunicate request_size=4 [12:21:28]MH_SAM_APDU [12:21:28]CAPDU: 80 11 00 00 [12:21:28]Write to MH i2c: E2 08 00 46 24 80 11 00 00 00 00 00 00 E4 [12:21:28]Write i2c OK [12:21:28]MH_I2C_Read... [12:21:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:28]Read from MH i2c: E2 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: E2 17 00 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: E2 17 00 46 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3F [12:21:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:21:28]wFMCommunicate OK [12:21:28]CreateOFDProtocolMessage done [12:21:28]OFDSenderStorePacket 118472 [12:21:28]StoreOFDPacket docnum=118472 [12:21:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C5 01 07 01 65 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 C9 37 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C8 CE 01 00 35 04 06 00 DE F3 A2 5B D1 1B 2D 37 8B EC DA 0F B0 7D [12:21:28]CheckFolder [12:21:28]dirname=/storage/ofd_packets [12:21:28]CheckFolder done [12:21:28]ProducePacketName [12:21:28]name=ofd_packets/00118472 [12:21:28]NVStorageSaveData ofd_packets/00118472 [12:21:28]File name is /storage/ofd_packets/00118472 [12:21:28]Write 301 bytes [12:21:28]NVStorageSaveData done [12:21:28]OFDSenderStorePacket done [12:21:28]KKMCreateOFDPacket done [12:21:28]NVStorageSaveData kkm_last_timestamp [12:21:28]File name is /storage/kkm_last_timestamp [12:21:28]Write 4 bytes [12:21:28]NVStorageSaveData done [12:21:28]OFD Sender: Processing packet 118472 [packets to send 86, broken 85] [12:21:28]ProducePacketName [12:21:28]name=ofd_packets/00118472 [12:21:28]OFD Sender: To server: pG, [12:21:28]CommunicateWithHost lk.salyk.kg:30040 [12:21:28]ConnectInit lk.salyk.kg [12:21:28]ExternCall_PrintAddStr [12:21:28]wPrintStart [12:21:28]Write to MH i2c: 01 00 00 47 24 6B [12:21:28]Write i2c OK [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: 01 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: 01 07 00 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: 01 07 00 47 24 00 00 00 00 00 FF 0F 80 [12:21:28]RasterBufferAndPrint [12:21:28]line Счет N : (1)949342 [12:21:28]line ИНН: 02508201610067 [12:21:28]line Контрольно-Кассовый Чек [12:21:28]line ПРОДАЖА [12:21:28]line ТРК (МРК, ГНК) : 31 [12:21:28]line Товар: 2710124130 [12:21:28]line Аи-92-К-4 [12:21:28]line 4.430 * 67.80 [12:21:28]line = 300.35 [12:21:28]line НДС 12% НСП 1% [12:21:28]line > о реализуемом товаре [12:21:28]line ОКРУГЛЕНИЕ: -0.35 [12:21:28]line ИТОГО: 300.00 [12:21:28]line Внесено: 300.00 [12:21:28]line СДАЧА: 0.00 [12:21:28]line НСП 1% : 2.66 [12:21:28]line НДС 12% : 31.90 [12:21:28]line Наличными: 300.00 [12:21:28]line Безнал.: 0.00 [12:21:28]line Место: АЗС № 134 "Партнер Нефть" [12:21:28]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:21:28]line СНО: Общий режим [12:21:28]line Чек 141 28.07.2024 12:21 [12:21:28]line Смена: 433 ФФД: 1.0 [12:21:28]line ЗНМ: 0300000044 [12:21:28]line РНМ: 0000000000092660 [12:21:28]line Версия ККМ: 001 [12:21:28]line ФМ: 0000000000874939 [12:21:28]line ФД: 118472 [12:21:28]line ФПД: 245137982345499 [12:21:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122129&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118472&fm=245137982345499&tin=02508201610067®Number=0000000000092660&sum=30000 [12:21:28]Connected sock=11 [12:21: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 39 33 39 0F 01 00 00 C5 01 07 01 65 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 C9 37 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C8 CE 01 00 35 04 06 00 DE F3 A2 5B D1 1B 2D 37 8B EC DA 0F B0 7D [12:21:28]written 0, free lines is 4095 [12:21:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3C 8A 47 00 89 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 39 33 39 10 04 04 00 C8 CE 01 00 F4 03 04 00 59 E5 A5 66 B6 04 01 00 00 34 BF C9 CF 6D B8 50 DA [12:21:28]CommunicateWithHost err = 0 [12:21:28]CheckOFDResponse [12:21:28]1017 (14) - 77093643461234 [12:21:28]1041 (16) - 0000000000874939 [12:21:28]1040 (4) - 118472 [12:21:28]1012 (4) - 28.07.2024 06:29 [12:21:28]1206 (1) - 0 [12:21:28]OFD Sender: Remove packet 118472 [12:21:28]ProducePacketName [12:21:28]name=ofd_packets/00118472 [12:21:28]NVStorageDeleteData [12:21:29]Write to MH i2c: 01 00 00 71 24 95 [12:21:29]Write i2c OK [12:21:29]MH_I2C_Read... [12:21:29]Read from MH i2c: 01 [12:21:29]MH_I2C_Read... [12:21:29]Read from MH i2c: 01 07 00 [12:21:29]MH_I2C_Read... [12:21:29]Read from MH i2c: 01 07 00 71 24 00 00 00 00 00 D0 0C 78 [12:21:29]RasterBufferAndPrint [12:21:29]line [12:21:29]line [12:21:29]line [12:21:29]line [12:21:29]line [12:21:29]written 0, free lines is 3287 [12:21:29]MH_Cut [12:21:29]Write to MH i2c: D1 01 00 78 24 01 6E [12:21:29]Write i2c OK [12:21:29]MH_I2C_Read... [12:21:29]Read from MH i2c: D1 [12:21:29]MH_I2C_Read... [12:21:29]Read from MH i2c: D1 01 00 [12:21:29]MH_I2C_Read... [12:21:29]Read from MH i2c: D1 01 00 78 24 00 6D [12:21:29]Write to MH i2c: 01 00 00 79 24 9D [12:21:29]Write i2c OK [12:21:29]MH_I2C_Read... [12:21:29]OFD Sender: No OFD packet to send [12:21:29]*** Cut start [12:21:29]*** Partial cut [12:21:29]*** CUTSNS_PIN = 1 [12:21:29]*** CUTSNS_PIN = 0 [12:21:30]*** Brake cut motor [12:21:30]Read from MH i2c: 01 [12:21:30]MH_I2C_Read... [12:21:30]*** Stop cut motor [12:21:30]*** Cut end [12:21:30]Read from MH i2c: 01 07 00 [12:21:30]MH_I2C_Read... [12:21:30]Read from MH i2c: 01 07 00 79 24 00 00 00 00 00 FF 0F B2 [12:21:30]process_action close_receipt done [12:21:30]requested_data is exist [12:21:30]produce_requested_data [12:21:30]requested_item fm.sn is exist - process it [12:21:30]wFMCommunicate request_size=4 [12:21:30]MH_SAM_APDU [12:21:30]CAPDU: 80 11 00 00 [12:21:30]Write to MH i2c: E2 08 00 7A 24 80 11 00 00 00 00 00 00 18 [12:21:30]Write i2c OK [12:21:30]MH_I2C_Read... [12:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:30]Read from MH i2c: E2 [12:21:30]MH_I2C_Read... [12:21:30]Read from MH i2c: E2 17 00 [12:21:30]MH_I2C_Read... [12:21:30]Read from MH i2c: E2 17 00 7A 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 73 [12:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:21:30]wFMCommunicate OK [12:21:30]requested_item fd.num is exist - process it [12:21:30]SAM_PROTO_GetFieldsCounters [12:21:30]wFMCommunicate request_size=4 [12:21:30]MH_SAM_APDU [12:21:30]CAPDU: 80 13 00 00 [12:21:30]Write to MH i2c: E2 08 00 7B 24 80 13 00 00 00 00 00 00 1B [12:21:30]Write i2c OK [12:21:30]MH_I2C_Read... [12:21:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:30]Read from MH i2c: E2 [12:21:30]MH_I2C_Read... [12:21:30]Read from MH i2c: E2 62 00 [12:21:30]MH_I2C_Read... [12:21:30]Read from MH i2c: E2 62 00 7B 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C8 CE 01 00 0E 04 04 00 B1 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 32 [12:21:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C8 CE 01 00 0E 04 04 00 B1 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 [12:21:30]wFMCommunicate OK [12:21:30]SAM_PROTO_GetFieldsCounters done [12:21:30]requested_item shift.num is exist - process it [12:21:30]requested_item shift.opened is exist - process it [12:21:30]req_shift_opened [12:21:30]FM_GetShiftState [12:21:30]SAM_PROTO_GetShiftState [12:21:30]wFMCommunicate request_size=4 [12:21:30]MH_SAM_APDU [12:21:30]CAPDU: 80 13 01 00 [12:21:30]Write to MH i2c: E2 08 00 7C 24 80 13 01 00 00 00 00 00 1D [12:21:30]Write i2c OK [12:21:30]MH_I2C_Read... [12:21:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:30]Read from MH i2c: E2 [12:21:30]MH_I2C_Read... [12:21:30]Read from MH i2c: E2 0E 00 [12:21:30]MH_I2C_Read... [12:21:30]Read from MH i2c: E2 0E 00 7C 24 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 F4 [12:21:30]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [12:21:30]wFMCommunicate OK [12:21:30]SAM_PROTO_GetShiftState done [12:21:30]FM_GetShiftState done [12:21:30]req_shift_opened done [12:21:30]requested_item shift.open_date is exist - process it [12:21:30]req_shift_open_date [12:21:30]req_shift_open_date done [12:21:30]produce_requested_data done [12:21:30]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118472,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [12:21:30]process_action_free close_receipt [12:21:30]json_value_free [12:21:30]json_value_free done [12:21:30]process_json_proto returns [12:21:30]Send response to host [12:21:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118472,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [12:21:30]free response buf [12:21:30]execute_script done [12:21:30]execute_script returns [12:21:30]free content buf [12:21:30]Sock 9.Close socket [12:21:30]Sock 9.Thread stoped [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:07]accept exits with 7 [12:22:07]New connection [12:22:07]New thread 3066924388 created [12:22:07]Thread 3067067748 joined [12:22:07]Waiting for new connection... [12:22:07] Sock 7.Parse request [12:22:07]Sock 7.Check first char [12:22:07]Sock 7.First char is OK [12:22:07]request: POST /json_proto HTTP/1.0 [12:22:07]Method: POST [12:22:07]URL: /json_proto [12:22:07]Method is POST - this is cgi request [12:22:07]url: /json_proto [12:22:07]query_string will be loaded in cgi processing [12:22:07]execute_cgi json_proto POST (null) [12:22:07]execute_cgi path=json_proto method=POST [12:22:07]POST find Content-Length [12:22:07]Host: 172.17.45.7:8080 [12:22:07]Content-Length: 677 [12:22:07]Content-Type: application/json [12:22:07] [12:22:07]POST finish read [12:22:07]Found Content-Length = 677 [12:22:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:07]execute_script... [12:22: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)949343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:07]POST & json_proto [12:22:07]process_json_proto [12:22:07]json parsed OK: [12:22:07]protocol is kg_v1.0 [12:22:07]action value=close_receipt [12:22:07]process_action close_receipt [12:22:07]cmd_close_receipt [12:22:07]MH_GetDate [12:22:07]Write to MH i2c: F0 00 00 7D 24 90 [12:22:07]Write i2c OK [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: F0 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: F0 09 00 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: F0 09 00 7D 24 00 F2 37 A6 66 90 0F 3E 66 11 [12:22:07]GetLastDocTimeStamp 1722169289 [12:22:07]current date 1722169330 [12:22:07]FM_GetShiftState [12:22:07]SAM_PROTO_GetShiftState [12:22:07]wFMCommunicate request_size=4 [12:22:07]MH_SAM_APDU [12:22:07]CAPDU: 80 13 01 00 [12:22:07]Write to MH i2c: E2 08 00 7E 24 80 13 01 00 00 00 00 00 1F [12:22:07]Write i2c OK [12:22:07]MH_I2C_Read... [12:22:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:07]Read from MH i2c: E2 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: E2 0E 00 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: E2 0E 00 7E 24 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 F6 [12:22:07]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [12:22:07]wFMCommunicate OK [12:22:07]SAM_PROTO_GetShiftState done [12:22:07]FM_GetShiftState done [12:22:07]opened in 1722125364 [12:22:07]opened+sec_in_day 1722211764 [12:22:07]quantity*price = 60027 [12:22:07]sum+1 = 60029 [12:22:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 142 28.07.2024 12:22 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118473 ФПД: 166136972828115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122210&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118473&fm=166136972828115&tin=02508201610067®Number=0000000000092660&sum=60000 [12:22:09]StoreToDocumentArchive [12:22:09]shift 433 fd 118473 [12:22:09]save to /storage/0433/doc_00118473 [12:22:09]save last doc name /storage/0433/doc_00118473 to /storage/kkm_last_doc_name [12:22:09]save OK [12:22:09]Clear old archive folders... [12:22:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:22:09]tlvbuf is B6EDD890 [12:22:09]SAM_PROTO_ClearQueue [12:22:09]wFMCommunicate request_size=4 [12:22:09]MH_SAM_APDU [12:22:09]CAPDU: 80 09 00 00 [12:22:09]Write to MH i2c: E2 08 00 8B 24 80 09 00 00 00 00 00 00 21 [12:22:09]Write i2c OK [12:22:09]MH_I2C_Read... [12:22:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:09]Read from MH i2c: E2 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 03 00 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 03 00 8B 24 00 90 00 23 [12:22:09]RAPDU: 90 00 [12:22:09]wFMCommunicate OK [12:22:09]SAM_PROTO_ClearQueue done [12:22:09]KKMCreateOFDPacket [12:22:09]OFDProtocolAddRootSTLVToBuf [12:22:09]FM_MakeSignedData [12:22:09]FM_MakeSignedData [12:22:09]SAM_PROTO_SignData [12:22:09]wFMCommunicate request_size=4 [12:22:09]MH_SAM_APDU [12:22:09]CAPDU: 80 0D 01 02 [12:22:09]Write to MH i2c: E2 08 00 8C 24 80 0D 01 02 00 00 00 00 29 [12:22:09]Write i2c OK [12:22:09]MH_I2C_Read... [12:22:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:09]Read from MH i2c: E2 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 03 00 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 03 00 8C 24 00 90 00 24 [12:22:09]RAPDU: 90 00 [12:22:09]wFMCommunicate OK [12:22:09]wFMCommunicate request_size=255 [12:22:09]MH_SAM_APDU [12:22:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 F2 37 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C9 CE 01 00 35 04 06 00 97 [12:22:09]Write to MH i2c: E2 02 01 8D 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 F2 37 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C9 CE 01 00 35 04 06 00 97 00 00 BE [12:22:09]Write i2c OK [12:22:09]MH_I2C_Read... [12:22:09]OFD Sender: No OFD packet to send [12:22:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:09]Read from MH i2c: E2 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 03 00 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 03 00 8D 24 00 90 00 25 [12:22:09]RAPDU: 90 00 [12:22:09]wFMCommunicate OK [12:22:09]wFMCommunicate request_size=10 [12:22:09]MH_SAM_APDU [12:22:09]CAPDU: 80 0D 02 02 05 19 C7 3F DD D3 [12:22:09]Write to MH i2c: E2 0D 00 8E 24 80 0D 02 02 05 00 19 C7 3F DD D3 00 00 05 [12:22:09]Write i2c OK [12:22:09]MH_I2C_Read... [12:22:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:09]Read from MH i2c: E2 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 03 00 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 03 00 8E 24 00 90 00 26 [12:22:09]RAPDU: 90 00 [12:22:09]wFMCommunicate OK [12:22:09]wFMCommunicate request_size=4 [12:22:09]MH_SAM_APDU [12:22:09]CAPDU: 80 0D 03 02 [12:22:09]Write to MH i2c: E2 08 00 8F 24 80 0D 03 02 00 00 00 00 2E [12:22:09]Write i2c OK [12:22:09]MH_I2C_Read... [12:22:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:09]Read from MH i2c: E2 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 0B 00 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 0B 00 8F 24 00 43 61 3F B7 42 3C 58 82 90 00 21 [12:22:09]RAPDU: 43 61 3F B7 42 3C 58 82 90 00 [12:22:09]wFMCommunicate OK [12:22:09]SAM_PROTO_SignData done [12:22:09]FM_MakeSignedData done [12:22:09]CreateOFDProtocolMessage [12:22:09]wFMCommunicate request_size=4 [12:22:09]MH_SAM_APDU [12:22:09]CAPDU: 80 11 00 00 [12:22:09]Write to MH i2c: E2 08 00 90 24 80 11 00 00 00 00 00 00 2E [12:22:09]Write i2c OK [12:22:09]MH_I2C_Read... [12:22:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:09]Read from MH i2c: E2 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 17 00 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 17 00 90 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 89 [12:22:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:22:09]wFMCommunicate OK [12:22:09]CreateOFDProtocolMessage done [12:22:09]OFDSenderStorePacket 118473 [12:22:09]StoreOFDPacket docnum=118473 [12:22:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 44 FE 07 01 5D 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 F2 37 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C9 CE 01 00 35 04 06 00 97 19 C7 3F DD D3 43 61 3F B7 42 3C 58 82 [12:22:09]CheckFolder [12:22:09]dirname=/storage/ofd_packets [12:22:09]CheckFolder done [12:22:09]ProducePacketName [12:22:09]name=ofd_packets/00118473 [12:22:09]NVStorageSaveData ofd_packets/00118473 [12:22:09]File name is /storage/ofd_packets/00118473 [12:22:09]Write 301 bytes [12:22:09]NVStorageSaveData done [12:22:09]OFDSenderStorePacket done [12:22:09]KKMCreateOFDPacket done [12:22:09]NVStorageSaveData kkm_last_timestamp [12:22:09]File name is /storage/kkm_last_timestamp [12:22:09]Write 4 bytes [12:22:09]NVStorageSaveData done [12:22:09]ExternCall_PrintAddStr [12:22:09]wPrintStart [12:22:09]Write to MH i2c: 01 00 00 91 24 B5 [12:22:09]Write i2c OK [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: 01 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: 01 07 00 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: 01 07 00 91 24 00 00 00 00 00 FF 0F CA [12:22:09]RasterBufferAndPrint [12:22:09]line Счет N : (1)949343 [12:22:09]line ИНН: 02508201610067 [12:22:09]line Контрольно-Кассовый Чек [12:22:09]line ПРОДАЖА [12:22:09]line ТРК (МРК, ГНК) : 43 [12:22:09]line Товар: 2710124500 [12:22:09]line Аи-95-К-3 [12:22:09]line 8.090 * 74.20 [12:22:09]line = 600.28 [12:22:09]line НДС 12% НСП 1% [12:22:09]line > о реализуемом товаре [12:22:09]line ОКРУГЛЕНИЕ: -0.28 [12:22:09]line ИТОГО: 600.00 [12:22:09]line Внесено: 600.00 [12:22:09]line СДАЧА: 0.00 [12:22:09]line НСП 1% : 5.31 [12:22:09]line НДС 12% : 63.75 [12:22:09]line Наличными: 600.00 [12:22:09]line Безнал.: 0.00 [12:22:09]line Место: АЗС № 134 "Партнер Нефть" [12:22:09]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:22:09]line СНО: Общий режим [12:22:09]line Чек 142 28.07.2024 12:22 [12:22:09]line Смена: 433 ФФД: 1.0 [12:22:09]line ЗНМ: 0300000044 [12:22:09]line РНМ: 0000000000092660 [12:22:09]line Версия ККМ: 001 [12:22:09]line ФМ: 0000000000874939 [12:22:09]line ФД: 118473 [12:22:09]line ФПД: 166136972828115 [12:22:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122210&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118473&fm=166136972828115&tin=02508201610067®Number=0000000000092660&sum=60000 [12:22:09]OFD Sender: Processing packet 118473 [packets to send 86, broken 85] [12:22:09]ProducePacketName [12:22:09]name=ofd_packets/00118473 [12:22:09]OFD Sender: To server: pG, [12:22:09]CommunicateWithHost lk.salyk.kg:30040 [12:22:09]ConnectInit lk.salyk.kg [12:22:09]written 0, free lines is 4095 [12:22:10]Connected sock=10 [12:22:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 44 FE 07 01 5D 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 F2 37 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C9 CE 01 00 35 04 06 00 97 19 C7 3F DD D3 43 61 3F B7 42 3C 58 82 [12:22:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 31 47 47 00 C5 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 39 33 39 10 04 04 00 C9 CE 01 00 F4 03 04 00 82 E5 A5 66 B6 04 01 00 00 B9 C3 A4 0C 91 45 F6 4A [12:22:10]CommunicateWithHost err = 0 [12:22:10]CheckOFDResponse [12:22:10]1017 (14) - 77093643461234 [12:22:10]1041 (16) - 0000000000874939 [12:22:10]1040 (4) - 118473 [12:22:10]1012 (4) - 28.07.2024 06:30 [12:22:10]1206 (1) - 0 [12:22:10]OFD Sender: Remove packet 118473 [12:22:10]ProducePacketName [12:22:10]name=ofd_packets/00118473 [12:22:10]NVStorageDeleteData [12:22:10]Write to MH i2c: 01 00 00 BB 24 DF [12:22:10]Write i2c OK [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: 01 [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: 01 07 00 [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: 01 07 00 BB 24 00 00 00 00 00 D7 0C C9 [12:22:10]RasterBufferAndPrint [12:22:10]line [12:22:10]line [12:22:10]line [12:22:10]line [12:22:10]line [12:22:10]written 0, free lines is 3295 [12:22:10]MH_Cut [12:22:10]Write to MH i2c: D1 01 00 C2 24 01 B8 [12:22:10]Write i2c OK [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: D1 [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: D1 01 00 [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: D1 01 00 C2 24 00 B7 [12:22:10]Write to MH i2c: 01 00 00 C3 24 E7 [12:22:10]Write i2c OK [12:22:10]MH_I2C_Read... [12:22:10]OFD Sender: No OFD packet to send [12:22:11]*** Cut start [12:22:11]*** Partial cut [12:22:11]*** CUTSNS_PIN = 1 [12:22:11]*** CUTSNS_PIN = 0 [12:22:11]*** Brake cut motor [12:22:11]Read from MH i2c: 01 [12:22:11]MH_I2C_Read... [12:22:11]*** Stop cut motor [12:22:11]*** Cut end [12:22:11]Read from MH i2c: 01 07 00 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: 01 07 00 C3 24 00 00 00 00 00 FF 0F FC [12:22:11]process_action close_receipt done [12:22:11]requested_data is exist [12:22:11]produce_requested_data [12:22:11]requested_item fm.sn is exist - process it [12:22:11]wFMCommunicate request_size=4 [12:22:11]MH_SAM_APDU [12:22:11]CAPDU: 80 11 00 00 [12:22:11]Write to MH i2c: E2 08 00 C4 24 80 11 00 00 00 00 00 00 62 [12:22:11]Write i2c OK [12:22:11]MH_I2C_Read... [12:22:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:11]Read from MH i2c: E2 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: E2 17 00 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: E2 17 00 C4 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BD [12:22:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:22:11]wFMCommunicate OK [12:22:11]requested_item fd.num is exist - process it [12:22:11]SAM_PROTO_GetFieldsCounters [12:22:11]wFMCommunicate request_size=4 [12:22:11]MH_SAM_APDU [12:22:11]CAPDU: 80 13 00 00 [12:22:11]Write to MH i2c: E2 08 00 C5 24 80 13 00 00 00 00 00 00 65 [12:22:11]Write i2c OK [12:22:11]MH_I2C_Read... [12:22:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:11]Read from MH i2c: E2 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: E2 62 00 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: E2 62 00 C5 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C9 CE 01 00 0E 04 04 00 B1 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 80 [12:22:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C9 CE 01 00 0E 04 04 00 B1 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 [12:22:11]wFMCommunicate OK [12:22:11]SAM_PROTO_GetFieldsCounters done [12:22:11]requested_item shift.num is exist - process it [12:22:11]requested_item shift.opened is exist - process it [12:22:11]req_shift_opened [12:22:11]FM_GetShiftState [12:22:11]SAM_PROTO_GetShiftState [12:22:11]wFMCommunicate request_size=4 [12:22:11]MH_SAM_APDU [12:22:11]CAPDU: 80 13 01 00 [12:22:11]Write to MH i2c: E2 08 00 C6 24 80 13 01 00 00 00 00 00 67 [12:22:11]Write i2c OK [12:22:11]MH_I2C_Read... [12:22:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:11]Read from MH i2c: E2 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: E2 0E 00 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: E2 0E 00 C6 24 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 3E [12:22:11]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [12:22:11]wFMCommunicate OK [12:22:11]SAM_PROTO_GetShiftState done [12:22:11]FM_GetShiftState done [12:22:11]req_shift_opened done [12:22:11]requested_item shift.open_date is exist - process it [12:22:11]req_shift_open_date [12:22:11]req_shift_open_date done [12:22:11]produce_requested_data done [12:22:11]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118473,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [12:22:11]process_action_free close_receipt [12:22:11]json_value_free [12:22:11]json_value_free done [12:22:11]process_json_proto returns [12:22:11]Send response to host [12:22:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118473,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [12:22:11]free response buf [12:22:11]execute_script done [12:22:11]execute_script returns [12:22:11]free content buf [12:22:11]Sock 7.Close socket [12:22:11]Sock 7.Thread stoped [12:22:15]OFD Sender: No OFD packet to send [12:22:20]OFD Sender: No OFD packet to send [12:22:25]OFD Sender: No OFD packet to send [12:22:30]OFD Sender: No OFD packet to send [12:22:35]OFD Sender: No OFD packet to send [12:22:40]OFD Sender: No OFD packet to send [12:22:45]OFD Sender: No OFD packet to send [12:22:50]OFD Sender: No OFD packet to send [12:22:55]OFD Sender: No OFD packet to send [12:23:00]OFD Sender: No OFD packet to send [12:23:05]OFD Sender: No OFD packet to send [12:23:10]OFD Sender: No OFD packet to send [12:23:15]OFD Sender: No OFD packet to send [12:23:20]OFD Sender: No OFD packet to send [12:23:25]OFD Sender: No OFD packet to send [12:23:30]OFD Sender: No OFD packet to send [12:23:35]OFD Sender: No OFD packet to send [12:23:40]OFD Sender: No OFD packet to send [12:23:45]OFD Sender: No OFD packet to send [12:23:50]OFD Sender: No OFD packet to send [12:23:55]OFD Sender: No OFD packet to send [12:24:00]OFD Sender: No OFD packet to send [12:24:05]OFD Sender: No OFD packet to send [12:24:10]OFD Sender: No OFD packet to send [12:24:15]OFD Sender: No OFD packet to send [12:24:20]OFD Sender: No OFD packet to send [12:24:25]OFD Sender: No OFD packet to send [12:24:30]OFD Sender: No OFD packet to send [12:24:35]OFD Sender: No OFD packet to send [12:24:40]OFD Sender: No OFD packet to send [12:24:45]OFD Sender: No OFD packet to send [12:24:50]OFD Sender: No OFD packet to send [12:24:55]OFD Sender: No OFD packet to send [12:25:00]OFD Sender: No OFD packet to send [12:25:05]OFD Sender: No OFD packet to send [12:25:10]OFD Sender: No OFD packet to send [12:25:15]OFD Sender: No OFD packet to send [12:25:20]OFD Sender: No OFD packet to send [12:25:25]OFD Sender: No OFD packet to send [12:25:30]OFD Sender: No OFD packet to send [12:25:35]OFD Sender: No OFD packet to send [12:25:40]OFD Sender: No OFD packet to send [12:25:45]OFD Sender: No OFD packet to send [12:25:50]OFD Sender: No OFD packet to send [12:25:55]OFD Sender: No OFD packet to send [12:26:00]OFD Sender: No OFD packet to send [12:26:05]OFD Sender: No OFD packet to send [12:26:10]OFD Sender: No OFD packet to send [12:26:15]OFD Sender: No OFD packet to send [12:26:21]OFD Sender: No OFD packet to send [12:26:26]OFD Sender: No OFD packet to send [12:26:31]OFD Sender: No OFD packet to send [12:26:36]OFD Sender: No OFD packet to send [12:26:41]OFD Sender: No OFD packet to send [12:26:46]OFD Sender: No OFD packet to send [12:26:51]OFD Sender: No OFD packet to send [12:26:56]OFD Sender: No OFD packet to send [12:27:01]OFD Sender: No OFD packet to send [12:27:06]OFD Sender: No OFD packet to send [12:27:11]OFD Sender: No OFD packet to send [12:27:16]OFD Sender: No OFD packet to send [12:27:21]OFD Sender: No OFD packet to send [12:27:26]OFD Sender: No OFD packet to send [12:27:31]OFD Sender: No OFD packet to send [12:27:36]OFD Sender: No OFD packet to send [12:27:41]OFD Sender: No OFD packet to send [12:27:46]OFD Sender: No OFD packet to send [12:27:51]OFD Sender: No OFD packet to send [12:27:56]OFD Sender: No OFD packet to send [12:28:01]OFD Sender: No OFD packet to send [12:28:06]OFD Sender: No OFD packet to send [12:28:11]OFD Sender: No OFD packet to send [12:28:16]OFD Sender: No OFD packet to send [12:28:21]OFD Sender: No OFD packet to send [12:28:26]OFD Sender: No OFD packet to send [12:28:31]OFD Sender: No OFD packet to send [12:28:36]OFD Sender: No OFD packet to send [12:28:39]accept exits with 9 [12:28:39]New connection [12:28:39]New thread 3067067748 created [12:28:39]Thread 3066924388 joined [12:28:39]Waiting for new connection... [12:28:39] Sock 9.Parse request [12:28:39]Sock 9.Check first char [12:28:39]Sock 9.First char is OK [12:28:39]request: POST /json_proto HTTP/1.0 [12:28:39]Method: POST [12:28:39]URL: /json_proto [12:28:39]Method is POST - this is cgi request [12:28:39]url: /json_proto [12:28:39]query_string will be loaded in cgi processing [12:28:39]execute_cgi json_proto POST (null) [12:28:39]execute_cgi path=json_proto method=POST [12:28:39]POST find Content-Length [12:28:39]Host: 172.17.45.7:8080 [12:28:39]Content-Length: 637 [12:28:39]Content-Type: application/json [12:28:39] [12:28:39]POST finish read [12:28:39]Found Content-Length = 637 [12:28:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.000, "sum" : 762.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 762.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:39]execute_script... [12:28: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)949344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.000, "sum" : 762.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 762.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:39]POST & json_proto [12:28:39]process_json_proto [12:28:39]json parsed OK: [12:28:39]protocol is kg_v1.0 [12:28:39]action value=close_receipt [12:28:39]process_action close_receipt [12:28:39]cmd_close_receipt [12:28:39]MH_GetDate [12:28:39]Write to MH i2c: F0 00 00 C7 24 DA [12:28:39]Write i2c OK [12:28:39]MH_I2C_Read... [12:28:39]Read from MH i2c: F0 [12:28:39]MH_I2C_Read... [12:28:39]Read from MH i2c: F0 09 00 [12:28:39]MH_I2C_Read... [12:28:39]Read from MH i2c: F0 09 00 C7 24 00 7A 39 A6 66 90 0F 3E 66 E5 [12:28:39]GetLastDocTimeStamp 1722169330 [12:28:39]current date 1722169722 [12:28:39]FM_GetShiftState [12:28:39]SAM_PROTO_GetShiftState [12:28:39]wFMCommunicate request_size=4 [12:28:39]MH_SAM_APDU [12:28:39]CAPDU: 80 13 01 00 [12:28:39]Write to MH i2c: E2 08 00 C8 24 80 13 01 00 00 00 00 00 69 [12:28:39]Write i2c OK [12:28:39]MH_I2C_Read... [12:28:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:39]Read from MH i2c: E2 [12:28:39]MH_I2C_Read... [12:28:39]Read from MH i2c: E2 0E 00 [12:28:39]MH_I2C_Read... [12:28:39]Read from MH i2c: E2 0E 00 C8 24 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 40 [12:28:39]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [12:28:39]wFMCommunicate OK [12:28:39]SAM_PROTO_GetShiftState done [12:28:39]FM_GetShiftState done [12:28:39]opened in 1722125364 [12:28:39]opened+sec_in_day 1722211764 [12:28:39]quantity*price = 76200 [12:28:39]sum+1 = 76201 [12:28:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 762.00 НСП 1% : 6.74 НДС 12% : 80.92 Наличными: 762.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 143 28.07.2024 12:28 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118474 ФПД: 51205520734752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122842&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118474&fm=51205520734752&tin=02508201610067®Number=0000000000092660&sum=76200 [12:28:40]StoreToDocumentArchive [12:28:40]shift 433 fd 118474 [12:28:40]save to /storage/0433/doc_00118474 [12:28:40]save last doc name /storage/0433/doc_00118474 to /storage/kkm_last_doc_name [12:28:40]save OK [12:28:40]Clear old archive folders... [12:28:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:28:40]tlvbuf is 001A9D90 [12:28:40]SAM_PROTO_ClearQueue [12:28:40]wFMCommunicate request_size=4 [12:28:40]MH_SAM_APDU [12:28:40]CAPDU: 80 09 00 00 [12:28:40]Write to MH i2c: E2 08 00 D5 24 80 09 00 00 00 00 00 00 6B [12:28:40]Write i2c OK [12:28:40]MH_I2C_Read... [12:28:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:40]Read from MH i2c: E2 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 03 00 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 03 00 D5 24 00 90 00 6D [12:28:40]RAPDU: 90 00 [12:28:40]wFMCommunicate OK [12:28:40]SAM_PROTO_ClearQueue done [12:28:40]KKMCreateOFDPacket [12:28:40]OFDProtocolAddRootSTLVToBuf [12:28:40]FM_MakeSignedData [12:28:40]FM_MakeSignedData [12:28:40]SAM_PROTO_SignData [12:28:40]wFMCommunicate request_size=4 [12:28:40]MH_SAM_APDU [12:28:40]CAPDU: 80 0D 01 02 [12:28:40]Write to MH i2c: E2 08 00 D6 24 80 0D 01 02 00 00 00 00 73 [12:28:40]Write i2c OK [12:28:40]MH_I2C_Read... [12:28:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:40]Read from MH i2c: E2 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 03 00 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 03 00 D6 24 00 90 00 6E [12:28:40]RAPDU: 90 00 [12:28:40]wFMCommunicate OK [12:28:40]wFMCommunicate request_size=255 [12:28:40]MH_SAM_APDU [12:28:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A8 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 29 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 1F 00 00 00 00 07 04 06 00 A8 29 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 7A 39 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CA CE 01 00 35 04 06 00 2E 92 36 DF [12:28:40]Write to MH i2c: E2 02 01 D7 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A8 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 29 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 1F 00 00 00 00 07 04 06 00 A8 29 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 7A 39 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CA CE 01 00 35 04 06 00 2E 92 36 DF 00 00 36 [12:28:40]Write i2c OK [12:28:40]MH_I2C_Read... [12:28:41]OFD Sender: No OFD packet to send [12:28:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:41]Read from MH i2c: E2 [12:28:41]MH_I2C_Read... [12:28:41]Read from MH i2c: E2 03 00 [12:28:41]MH_I2C_Read... [12:28:41]Read from MH i2c: E2 03 00 D7 24 00 90 00 6F [12:28:41]RAPDU: 90 00 [12:28:41]wFMCommunicate OK [12:28:41]wFMCommunicate request_size=7 [12:28:41]MH_SAM_APDU [12:28:41]CAPDU: 80 0D 02 02 02 BA 20 [12:28:41]Write to MH i2c: E2 0A 00 D8 24 80 0D 02 02 02 00 BA 20 00 00 54 [12:28:41]Write i2c OK [12:28:41]MH_I2C_Read... [12:28:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:41]Read from MH i2c: E2 [12:28:41]MH_I2C_Read... [12:28:41]Read from MH i2c: E2 03 00 [12:28:41]MH_I2C_Read... [12:28:41]Read from MH i2c: E2 03 00 D8 24 00 90 00 70 [12:28:41]RAPDU: 90 00 [12:28:41]wFMCommunicate OK [12:28:41]wFMCommunicate request_size=4 [12:28:41]MH_SAM_APDU [12:28:41]CAPDU: 80 0D 03 02 [12:28:41]Write to MH i2c: E2 08 00 D9 24 80 0D 03 02 00 00 00 00 78 [12:28:41]Write i2c OK [12:28:41]MH_I2C_Read... [12:28:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:41]Read from MH i2c: E2 [12:28:41]MH_I2C_Read... [12:28:41]Read from MH i2c: E2 0B 00 [12:28:41]MH_I2C_Read... [12:28:41]Read from MH i2c: E2 0B 00 D9 24 00 7C E6 DF 2D AF 78 64 33 90 00 A5 [12:28:41]RAPDU: 7C E6 DF 2D AF 78 64 33 90 00 [12:28:41]wFMCommunicate OK [12:28:41]SAM_PROTO_SignData done [12:28:41]FM_MakeSignedData done [12:28:41]CreateOFDProtocolMessage [12:28:41]wFMCommunicate request_size=4 [12:28:41]MH_SAM_APDU [12:28:41]CAPDU: 80 11 00 00 [12:28:41]Write to MH i2c: E2 08 00 DA 24 80 11 00 00 00 00 00 00 78 [12:28:41]Write i2c OK [12:28:41]MH_I2C_Read... [12:28:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:41]Read from MH i2c: E2 [12:28:41]MH_I2C_Read... [12:28:41]Read from MH i2c: E2 17 00 [12:28:41]MH_I2C_Read... [12:28:41]Read from MH i2c: E2 17 00 DA 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D3 [12:28:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:28:41]wFMCommunicate OK [12:28:41]CreateOFDProtocolMessage done [12:28:41]OFDSenderStorePacket 118474 [12:28:41]StoreOFDPacket docnum=118474 [12:28:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 99 57 04 01 C0 FC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A8 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 29 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 1F 00 00 00 00 07 04 06 00 A8 29 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 7A 39 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CA CE 01 00 35 04 06 00 2E 92 36 DF BA 20 7C E6 DF 2D AF 78 64 33 [12:28:41]CheckFolder [12:28:41]dirname=/storage/ofd_packets [12:28:41]CheckFolder done [12:28:41]ProducePacketName [12:28:41]name=ofd_packets/00118474 [12:28:41]NVStorageSaveData ofd_packets/00118474 [12:28:41]File name is /storage/ofd_packets/00118474 [12:28:41]Write 298 bytes [12:28:41]NVStorageSaveData done [12:28:41]OFDSenderStorePacket done [12:28:41]KKMCreateOFDPacket done [12:28:41]NVStorageSaveData kkm_last_timestamp [12:28:41]File name is /storage/kkm_last_timestamp [12:28:41]Write 4 bytes [12:28:41]NVStorageSaveData done [12:28:41]ExternCall_PrintAddStr [12:28:41]wPrintStart [12:28:41]Write to MH i2c: 01 00 00 DB 24 FF [12:28:41]Write i2c OK [12:28:41]MH_I2C_Read... [12:28:41]Read from MH i2c: 01 [12:28:41]MH_I2C_Read... [12:28:41]Read from MH i2c: 01 07 00 [12:28:41]MH_I2C_Read... [12:28:41]Read from MH i2c: 01 07 00 DB 24 00 00 00 00 00 FF 0F 14 [12:28:41]RasterBufferAndPrint [12:28:41]line Счет N : (1)949344 [12:28:41]line ИНН: 02508201610067 [12:28:41]line Контрольно-Кассовый Чек [12:28:41]line ПРОДАЖА [12:28:41]line ТРК (МРК, ГНК) : 44 [12:28:41]line Товар: 2710194800 [12:28:41]line ДТ-К-5 [12:28:41]line 10.000 * 76.20 [12:28:41]line = 762.00 [12:28:41]line НДС 12% НСП 1% [12:28:41]line > о реализуемом товаре [12:28:41]line ИТОГО: 762.00 [12:28:41]line НСП 1% : 6.74 [12:28:41]line НДС 12% : 80.92 [12:28:41]line Наличными: 762.00 [12:28:41]line Безнал.: 0.00 [12:28:41]line Место: АЗС № 134 "Партнер Нефть" [12:28:41]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:28:41]line СНО: Общий режим [12:28:41]line Чек 143 28.07.2024 12:28 [12:28:41]line Смена: 433 ФФД: 1.0 [12:28:41]line ЗНМ: 0300000044 [12:28:41]line РНМ: 0000000000092660 [12:28:41]line Версия ККМ: 001 [12:28:41]line ФМ: 0000000000874939 [12:28:41]line ФД: 118474 [12:28:41]line ФПД: 51205520734752 [12:28:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122842&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118474&fm=51205520734752&tin=02508201610067®Number=0000000000092660&sum=76200 [12:28:41]OFD Sender: Processing packet 118474 [packets to send 86, broken 85] [12:28:41]ProducePacketName [12:28:41]name=ofd_packets/00118474 [12:28:41]OFD Sender: To server: pG, [12:28:41]CommunicateWithHost lk.salyk.kg:30040 [12:28:41]ConnectInit lk.salyk.kg [12:28:41]written 0, free lines is 4095 [12:28:41]Connected sock=10 [12:28: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 39 33 39 0C 01 00 00 99 57 04 01 C0 FC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A8 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 29 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 1F 00 00 00 00 07 04 06 00 A8 29 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 7A 39 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CA CE 01 00 35 04 06 00 2E 92 36 DF BA 20 7C E6 DF 2D AF 78 64 33 [12: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 39 33 39 4F 00 00 00 E0 17 47 00 FB 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 39 33 39 10 04 04 00 CA CE 01 00 F4 03 04 00 0A E7 A5 66 B6 04 01 00 00 AC 73 18 00 27 C3 AC EF [12:28:42]CommunicateWithHost err = 0 [12:28:42]CheckOFDResponse [12:28:42]1017 (14) - 77093643461234 [12:28:42]1041 (16) - 0000000000874939 [12:28:42]1040 (4) - 118474 [12:28:42]1012 (4) - 28.07.2024 06:36 [12:28:42]1206 (1) - 0 [12:28:42]OFD Sender: Remove packet 118474 [12:28:42]ProducePacketName [12:28:42]name=ofd_packets/00118474 [12:28:42]NVStorageDeleteData [12:28:42]Write to MH i2c: 01 00 00 02 25 27 [12:28:42]Write i2c OK [12:28:42]MH_I2C_Read... [12:28:42]Read from MH i2c: 01 [12:28:42]MH_I2C_Read... [12:28:42]Read from MH i2c: 01 07 00 [12:28:42]MH_I2C_Read... [12:28:42]Read from MH i2c: 01 07 00 02 25 00 00 00 00 00 08 0D 43 [12:28:42]RasterBufferAndPrint [12:28:42]line [12:28:42]line [12:28:42]line [12:28:42]line [12:28:42]line [12:28:42]written 0, free lines is 3342 [12:28:42]MH_Cut [12:28:42]Write to MH i2c: D1 01 00 09 25 01 00 [12:28:42]Write i2c OK [12:28:42]MH_I2C_Read... [12:28:42]Read from MH i2c: D1 [12:28:42]MH_I2C_Read... [12:28:42]Read from MH i2c: D1 01 00 [12:28:42]MH_I2C_Read... [12:28:42]Read from MH i2c: D1 01 00 09 25 00 FF [12:28:42]Write to MH i2c: 01 00 00 0A 25 2F [12:28:42]Write i2c OK [12:28:42]MH_I2C_Read... [12:28:42]OFD Sender: No OFD packet to send [12:28:42]*** Cut start [12:28:42]*** Partial cut [12:28:42]*** CUTSNS_PIN = 1 [12:28:42]*** CUTSNS_PIN = 0 [12:28:43]*** Brake cut motor [12:28:43]Read from MH i2c: 01 [12:28:43]MH_I2C_Read... [12:28:43]*** Stop cut motor [12:28:43]*** Cut end [12:28:43]Read from MH i2c: 01 07 00 [12:28:43]MH_I2C_Read... [12:28:43]Read from MH i2c: 01 07 00 0A 25 00 00 00 00 00 FF 0F 44 [12:28:43]process_action close_receipt done [12:28:43]requested_data is exist [12:28:43]produce_requested_data [12:28:43]requested_item fm.sn is exist - process it [12:28:43]wFMCommunicate request_size=4 [12:28:43]MH_SAM_APDU [12:28:43]CAPDU: 80 11 00 00 [12:28:43]Write to MH i2c: E2 08 00 0B 25 80 11 00 00 00 00 00 00 AA [12:28:43]Write i2c OK [12:28:43]MH_I2C_Read... [12:28:43]Read from MH i2c: E2 [12:28:43]MH_I2C_Read... [12:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:43]Read from MH i2c: E2 17 00 [12:28:43]MH_I2C_Read... [12:28:43]Read from MH i2c: E2 17 00 0B 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 05 [12:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:28:43]wFMCommunicate OK [12:28:43]requested_item fd.num is exist - process it [12:28:43]SAM_PROTO_GetFieldsCounters [12:28:43]wFMCommunicate request_size=4 [12:28:43]MH_SAM_APDU [12:28:43]CAPDU: 80 13 00 00 [12:28:43]Write to MH i2c: E2 08 00 0C 25 80 13 00 00 00 00 00 00 AD [12:28:43]Write i2c OK [12:28:43]MH_I2C_Read... [12:28:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:43]Read from MH i2c: E2 [12:28:43]MH_I2C_Read... [12:28:43]Read from MH i2c: E2 62 00 [12:28:43]MH_I2C_Read... [12:28:43]Read from MH i2c: E2 62 00 0C 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CA CE 01 00 0E 04 04 00 B1 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 CC [12:28: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CA CE 01 00 0E 04 04 00 B1 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 [12:28:43]wFMCommunicate OK [12:28:43]SAM_PROTO_GetFieldsCounters done [12:28:43]requested_item shift.num is exist - process it [12:28:43]requested_item shift.opened is exist - process it [12:28:43]req_shift_opened [12:28:43]FM_GetShiftState [12:28:43]SAM_PROTO_GetShiftState [12:28:43]wFMCommunicate request_size=4 [12:28:43]MH_SAM_APDU [12:28:43]CAPDU: 80 13 01 00 [12:28:43]Write to MH i2c: E2 08 00 0D 25 80 13 01 00 00 00 00 00 AF [12:28:43]Write i2c OK [12:28:43]MH_I2C_Read... [12:28:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:43]Read from MH i2c: E2 [12:28:43]MH_I2C_Read... [12:28:43]Read from MH i2c: E2 0E 00 [12:28:43]MH_I2C_Read... [12:28:43]Read from MH i2c: E2 0E 00 0D 25 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 86 [12:28:43]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [12:28:43]wFMCommunicate OK [12:28:43]SAM_PROTO_GetShiftState done [12:28:43]FM_GetShiftState done [12:28:43]req_shift_opened done [12:28:43]requested_item shift.open_date is exist - process it [12:28:43]req_shift_open_date [12:28:43]req_shift_open_date done [12:28:43]produce_requested_data done [12:28:43]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118474,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [12:28:43]process_action_free close_receipt [12:28:43]json_value_free [12:28:43]json_value_free done [12:28:43]process_json_proto returns [12:28:43]Send response to host [12:28:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118474,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [12:28:43]free response buf [12:28:43]execute_script done [12:28:43]execute_script returns [12:28:43]free content buf [12:28:43]Sock 9.Close socket [12:28:43]Sock 9.Thread stoped [12:28:47]OFD Sender: No OFD packet to send [12:28:52]OFD Sender: No OFD packet to send [12:28:57]OFD Sender: No OFD packet to send [12:29:02]OFD Sender: No OFD packet to send [12:29:07]OFD Sender: No OFD packet to send [12:29:12]OFD Sender: No OFD packet to send [12:29:17]OFD Sender: No OFD packet to send [12:29:22]OFD Sender: No OFD packet to send [12:29:27]OFD Sender: No OFD packet to send [12:29:32]OFD Sender: No OFD packet to send [12:29:37]OFD Sender: No OFD packet to send [12:29:42]OFD Sender: No OFD packet to send [12:29:47]OFD Sender: No OFD packet to send [12:29:52]OFD Sender: No OFD packet to send [12:29:57]OFD Sender: No OFD packet to send [12:30:02]OFD Sender: No OFD packet to send [12:30:07]OFD Sender: No OFD packet to send [12:30:12]OFD Sender: No OFD packet to send [12:30:17]OFD Sender: No OFD packet to send [12:30:22]OFD Sender: No OFD packet to send [12:30:27]OFD Sender: No OFD packet to send [12:30:32]OFD Sender: No OFD packet to send [12:30:37]OFD Sender: No OFD packet to send [12:30:42]OFD Sender: No OFD packet to send [12:30:47]OFD Sender: No OFD packet to send [12:30:52]OFD Sender: No OFD packet to send [12:30:57]OFD Sender: No OFD packet to send [12:31:02]OFD Sender: No OFD packet to send [12:31:07]OFD Sender: No OFD packet to send [12:31:12]OFD Sender: No OFD packet to send [12:31:17]OFD Sender: No OFD packet to send [12:31:22]OFD Sender: No OFD packet to send [12:31:27]OFD Sender: No OFD packet to send [12:31:32]OFD Sender: No OFD packet to send [12:31:37]OFD Sender: No OFD packet to send [12:31:42]OFD Sender: No OFD packet to send [12:31:47]OFD Sender: No OFD packet to send [12:31:52]OFD Sender: No OFD packet to send [12:31:57]OFD Sender: No OFD packet to send [12:32:02]OFD Sender: No OFD packet to send [12:32:07]OFD Sender: No OFD packet to send [12:32:12]OFD Sender: No OFD packet to send [12:32:17]OFD Sender: No OFD packet to send [12:32:22]OFD Sender: No OFD packet to send [12:32:27]OFD Sender: No OFD packet to send [12:32:32]OFD Sender: No OFD packet to send [12:32:37]OFD Sender: No OFD packet to send [12:32:42]OFD Sender: No OFD packet to send [12:32:44]accept exits with 7 [12:32:44]New connection [12:32:44]New thread 3066924388 created [12:32:44]Thread 3067067748 joined [12:32:44]Waiting for new connection... [12:32:44] Sock 7.Parse request [12:32:44]Sock 7.Check first char [12:32:44]Sock 7.First char is OK [12:32:44]request: POST /json_proto HTTP/1.0 [12:32:44]Method: POST [12:32:44]URL: /json_proto [12:32:44]Method is POST - this is cgi request [12:32:44]url: /json_proto [12:32:44]query_string will be loaded in cgi processing [12:32:44]execute_cgi json_proto POST (null) [12:32:44]execute_cgi path=json_proto method=POST [12:32:44]POST find Content-Length [12:32:44]Host: 172.17.45.7:8080 [12:32:44]Content-Length: 677 [12:32:44]Content-Type: application/json [12:32:44] [12:32:44]POST finish read [12:32:44]Found Content-Length = 677 [12:32:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:44]execute_script... [12:32: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)949345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:44]POST & json_proto [12:32:44]process_json_proto [12:32:44]json parsed OK: [12:32:44]protocol is kg_v1.0 [12:32:44]action value=close_receipt [12:32:44]process_action close_receipt [12:32:44]cmd_close_receipt [12:32:44]MH_GetDate [12:32:44]Write to MH i2c: F0 00 00 0E 25 22 [12:32:44]Write i2c OK [12:32:44]MH_I2C_Read... [12:32:44]Read from MH i2c: F0 [12:32:44]MH_I2C_Read... [12:32:44]Read from MH i2c: F0 09 00 [12:32:44]MH_I2C_Read... [12:32:44]Read from MH i2c: F0 09 00 0E 25 00 6E 3A A6 66 90 0F 3E 66 22 [12:32:44]GetLastDocTimeStamp 1722169722 [12:32:44]current date 1722169966 [12:32:44]FM_GetShiftState [12:32:44]SAM_PROTO_GetShiftState [12:32:44]wFMCommunicate request_size=4 [12:32:44]MH_SAM_APDU [12:32:44]CAPDU: 80 13 01 00 [12:32:44]Write to MH i2c: E2 08 00 0F 25 80 13 01 00 00 00 00 00 B1 [12:32:44]Write i2c OK [12:32:44]MH_I2C_Read... [12:32:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:44]Read from MH i2c: E2 [12:32:44]MH_I2C_Read... [12:32:44]Read from MH i2c: E2 0E 00 [12:32:44]MH_I2C_Read... [12:32:44]Read from MH i2c: E2 0E 00 0F 25 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 88 [12:32:44]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [12:32:44]wFMCommunicate OK [12:32:44]SAM_PROTO_GetShiftState done [12:32:44]FM_GetShiftState done [12:32:44]opened in 1722125364 [12:32:44]opened+sec_in_day 1722211764 [12:32:44]quantity*price = 20001 [12:32:44]sum+1 = 20002 [12:32:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 144 28.07.2024 12:32 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118475 ФПД: 102634068601419 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123247&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118475&fm=102634068601419&tin=02508201610067®Number=0000000000092660&sum=20000 [12:32:45]StoreToDocumentArchive [12:32:45]shift 433 fd 118475 [12:32:45]save to /storage/0433/doc_00118475 [12:32:45]save last doc name /storage/0433/doc_00118475 to /storage/kkm_last_doc_name [12:32:45]save OK [12:32:45]Clear old archive folders... [12:32:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:45]tlvbuf is B6EC4770 [12:32:45]SAM_PROTO_ClearQueue [12:32:45]wFMCommunicate request_size=4 [12:32:45]MH_SAM_APDU [12:32:45]CAPDU: 80 09 00 00 [12:32:45]Write to MH i2c: E2 08 00 1C 25 80 09 00 00 00 00 00 00 B3 [12:32:45]Write i2c OK [12:32:45]MH_I2C_Read... [12:32:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:45]Read from MH i2c: E2 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 03 00 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 03 00 1C 25 00 90 00 B5 [12:32:45]RAPDU: 90 00 [12:32:45]wFMCommunicate OK [12:32:45]SAM_PROTO_ClearQueue done [12:32:45]KKMCreateOFDPacket [12:32:45]OFDProtocolAddRootSTLVToBuf [12:32:45]FM_MakeSignedData [12:32:45]FM_MakeSignedData [12:32:45]SAM_PROTO_SignData [12:32:45]wFMCommunicate request_size=4 [12:32:45]MH_SAM_APDU [12:32:45]CAPDU: 80 0D 01 02 [12:32:45]Write to MH i2c: E2 08 00 1D 25 80 0D 01 02 00 00 00 00 BB [12:32:45]Write i2c OK [12:32:45]MH_I2C_Read... [12:32:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:45]Read from MH i2c: E2 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 03 00 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 03 00 1D 25 00 90 00 B6 [12:32:45]RAPDU: 90 00 [12:32:45]wFMCommunicate OK [12:32:45]wFMCommunicate request_size=255 [12:32:45]MH_SAM_APDU [12:32: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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 6F 3A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CB CE 01 00 35 04 06 00 5D [12:32:45]Write to MH i2c: E2 02 01 1E 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 6F 3A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CB CE 01 00 35 04 06 00 5D 00 00 2F [12:32:45]Write i2c OK [12:32:45]MH_I2C_Read... [12:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:45]Read from MH i2c: E2 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 03 00 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 03 00 1E 25 00 90 00 B7 [12:32:45]RAPDU: 90 00 [12:32:45]wFMCommunicate OK [12:32:45]wFMCommunicate request_size=10 [12:32:45]MH_SAM_APDU [12:32:45]CAPDU: 80 0D 02 02 05 58 5B 33 6A 4B [12:32:45]Write to MH i2c: E2 0D 00 1F 25 80 0D 02 02 05 00 58 5B 33 6A 4B 00 00 63 [12:32:45]Write i2c OK [12:32:45]MH_I2C_Read... [12:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:45]Read from MH i2c: E2 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 03 00 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 03 00 1F 25 00 90 00 B8 [12:32:45]RAPDU: 90 00 [12:32:45]wFMCommunicate OK [12:32:45]wFMCommunicate request_size=4 [12:32:45]MH_SAM_APDU [12:32:45]CAPDU: 80 0D 03 02 [12:32:45]Write to MH i2c: E2 08 00 20 25 80 0D 03 02 00 00 00 00 C0 [12:32:45]Write i2c OK [12:32:45]MH_I2C_Read... [12:32:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:45]Read from MH i2c: E2 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 0B 00 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 0B 00 20 25 00 7D 7B 5D A0 94 8F 14 26 90 00 13 [12:32:45]RAPDU: 7D 7B 5D A0 94 8F 14 26 90 00 [12:32:45]wFMCommunicate OK [12:32:45]SAM_PROTO_SignData done [12:32:45]FM_MakeSignedData done [12:32:45]CreateOFDProtocolMessage [12:32:45]wFMCommunicate request_size=4 [12:32:45]MH_SAM_APDU [12:32:45]CAPDU: 80 11 00 00 [12:32:45]Write to MH i2c: E2 08 00 21 25 80 11 00 00 00 00 00 00 C0 [12:32:45]Write i2c OK [12:32:45]MH_I2C_Read... [12:32:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:46]Read from MH i2c: E2 [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: E2 17 00 [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: E2 17 00 21 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1B [12:32:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:32:46]wFMCommunicate OK [12:32:46]CreateOFDProtocolMessage done [12:32:46]OFDSenderStorePacket 118475 [12:32:46]StoreOFDPacket docnum=118475 [12:32:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 47 2A 07 01 6F 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 6F 3A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CB CE 01 00 35 04 06 00 5D 58 5B 33 6A 4B 7D 7B 5D A0 94 8F 14 26 [12:32:46]CheckFolder [12:32:46]dirname=/storage/ofd_packets [12:32:46]CheckFolder done [12:32:46]ProducePacketName [12:32:46]name=ofd_packets/00118475 [12:32:46]NVStorageSaveData ofd_packets/00118475 [12:32:46]File name is /storage/ofd_packets/00118475 [12:32:46]Write 301 bytes [12:32:46]NVStorageSaveData done [12:32:46]OFDSenderStorePacket done [12:32:46]KKMCreateOFDPacket done [12:32:46]NVStorageSaveData kkm_last_timestamp [12:32:46]File name is /storage/kkm_last_timestamp [12:32:46]Write 4 bytes [12:32:46]NVStorageSaveData done [12:32:46]ExternCall_PrintAddStr [12:32:46]wPrintStart [12:32:46]Write to MH i2c: 01 00 00 22 25 47 [12:32:46]Write i2c OK [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: 01 [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: 01 07 00 [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: 01 07 00 22 25 00 00 00 00 00 FF 0F 5C [12:32:46]RasterBufferAndPrint [12:32:46]line Счет N : (1)949345 [12:32:46]line ИНН: 02508201610067 [12:32:46]line Контрольно-Кассовый Чек [12:32:46]line ПРОДАЖА [12:32:46]line ТРК (МРК, ГНК) : 61 [12:32:46]line Товар: 2710124130 [12:32:46]line Аи-92-К-4 [12:32:46]line 2.950 * 67.80 [12:32:46]line = 200.01 [12:32:46]line НДС 12% НСП 1% [12:32:46]line > о реализуемом товаре [12:32:46]line ОКРУГЛЕНИЕ: -0.01 [12:32:46]line ИТОГО: 200.00 [12:32:46]line Внесено: 200.00 [12:32:46]line СДАЧА: 0.00 [12:32:46]line НСП 1% : 1.77 [12:32:46]line НДС 12% : 21.24 [12:32:46]line Наличными: 200.00 [12:32:46]line Безнал.: 0.00 [12:32:46]line Место: АЗС № 134 "Партнер Нефть" [12:32:46]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:32:46]line СНО: Общий режим [12:32:46]line Чек 144 28.07.2024 12:32 [12:32:46]line Смена: 433 ФФД: 1.0 [12:32:46]line ЗНМ: 0300000044 [12:32:46]line РНМ: 0000000000092660 [12:32:46]line Версия ККМ: 001 [12:32:46]line ФМ: 0000000000874939 [12:32:46]line ФД: 118475 [12:32:46]line ФПД: 102634068601419 [12:32:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123247&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118475&fm=102634068601419&tin=02508201610067®Number=0000000000092660&sum=20000 [12:32:46]OFD Sender: Processing packet 118475 [packets to send 86, broken 85] [12:32:46]ProducePacketName [12:32:46]name=ofd_packets/00118475 [12:32:46]OFD Sender: To server: pG, [12:32:46]CommunicateWithHost lk.salyk.kg:30040 [12:32:46]ConnectInit lk.salyk.kg [12:32:46]written 0, free lines is 4095 [12:32:46]Connected sock=10 [12:32: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 39 33 39 0F 01 00 00 47 2A 07 01 6F 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 6F 3A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CB CE 01 00 35 04 06 00 5D 58 5B 33 6A 4B 7D 7B 5D A0 94 8F 14 26 [12:32:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C2 D7 47 00 06 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 39 33 39 10 04 04 00 CB CE 01 00 F4 03 04 00 FF E7 A5 66 B6 04 01 00 00 2E 5B 73 04 A7 7F 60 FD [12:32:46]CommunicateWithHost err = 0 [12:32:46]CheckOFDResponse [12:32:46]1017 (14) - 77093643461234 [12:32:46]1041 (16) - 0000000000874939 [12:32:46]1040 (4) - 118475 [12:32:46]1012 (4) - 28.07.2024 06:41 [12:32:46]1206 (1) - 0 [12:32:46]OFD Sender: Remove packet 118475 [12:32:46]ProducePacketName [12:32:46]name=ofd_packets/00118475 [12:32:46]NVStorageDeleteData [12:32:46]Write to MH i2c: 01 00 00 4C 25 71 [12:32:46]Write i2c OK [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: 01 [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: 01 07 00 [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: 01 07 00 4C 25 00 00 00 00 00 DC 0C 60 [12:32:46]RasterBufferAndPrint [12:32:46]line [12:32:46]line [12:32:46]line [12:32:46]line [12:32:46]line [12:32:46]written 0, free lines is 3299 [12:32:46]MH_Cut [12:32:46]Write to MH i2c: D1 01 00 53 25 01 4A [12:32:46]Write i2c OK [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: D1 [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: D1 01 00 [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: D1 01 00 53 25 00 49 [12:32:46]Write to MH i2c: 01 00 00 54 25 79 [12:32:46]Write i2c OK [12:32:46]MH_I2C_Read... [12:32:47]OFD Sender: No OFD packet to send [12:32:47]*** Cut start [12:32:47]*** Partial cut [12:32:47]*** CUTSNS_PIN = 1 [12:32:47]*** CUTSNS_PIN = 0 [12:32:47]*** Brake cut motor [12:32:48]Read from MH i2c: 01 [12:32:48]MH_I2C_Read... [12:32:48]*** Stop cut motor [12:32:48]*** Cut end [12:32:48]Read from MH i2c: 01 07 00 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: 01 07 00 54 25 00 00 00 00 00 FF 0F 8E [12:32:48]process_action close_receipt done [12:32:48]requested_data is exist [12:32:48]produce_requested_data [12:32:48]requested_item fm.sn is exist - process it [12:32:48]wFMCommunicate request_size=4 [12:32:48]MH_SAM_APDU [12:32:48]CAPDU: 80 11 00 00 [12:32:48]Write to MH i2c: E2 08 00 55 25 80 11 00 00 00 00 00 00 F4 [12:32:48]Write i2c OK [12:32:48]MH_I2C_Read... [12:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:48]Read from MH i2c: E2 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: E2 17 00 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: E2 17 00 55 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4F [12:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:32:48]wFMCommunicate OK [12:32:48]requested_item fd.num is exist - process it [12:32:48]SAM_PROTO_GetFieldsCounters [12:32:48]wFMCommunicate request_size=4 [12:32:48]MH_SAM_APDU [12:32:48]CAPDU: 80 13 00 00 [12:32:48]Write to MH i2c: E2 08 00 56 25 80 13 00 00 00 00 00 00 F7 [12:32:48]Write i2c OK [12:32:48]MH_I2C_Read... [12:32:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:48]Read from MH i2c: E2 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: E2 62 00 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: E2 62 00 56 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CB CE 01 00 0E 04 04 00 B1 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 1A [12:32:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CB CE 01 00 0E 04 04 00 B1 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 [12:32:48]wFMCommunicate OK [12:32:48]SAM_PROTO_GetFieldsCounters done [12:32:48]requested_item shift.num is exist - process it [12:32:48]requested_item shift.opened is exist - process it [12:32:48]req_shift_opened [12:32:48]FM_GetShiftState [12:32:48]SAM_PROTO_GetShiftState [12:32:48]wFMCommunicate request_size=4 [12:32:48]MH_SAM_APDU [12:32:48]CAPDU: 80 13 01 00 [12:32:48]Write to MH i2c: E2 08 00 57 25 80 13 01 00 00 00 00 00 F9 [12:32:48]Write i2c OK [12:32:48]MH_I2C_Read... [12:32:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:48]Read from MH i2c: E2 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: E2 0E 00 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: E2 0E 00 57 25 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 D0 [12:32:48]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [12:32:48]wFMCommunicate OK [12:32:48]SAM_PROTO_GetShiftState done [12:32:48]FM_GetShiftState done [12:32:48]req_shift_opened done [12:32:48]requested_item shift.open_date is exist - process it [12:32:48]req_shift_open_date [12:32:48]req_shift_open_date done [12:32:48]produce_requested_data done [12:32:48]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118475,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [12:32:48]process_action_free close_receipt [12:32:48]json_value_free [12:32:48]json_value_free done [12:32:48]process_json_proto returns [12:32:48]Send response to host [12:32:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118475,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [12:32:48]free response buf [12:32:48]execute_script done [12:32:48]execute_script returns [12:32:48]free content buf [12:32:48]Sock 7.Close socket [12:32:48]Sock 7.Thread stoped [12:32:52]OFD Sender: No OFD packet to send [12:32:57]OFD Sender: No OFD packet to send [12:33:02]OFD Sender: No OFD packet to send [12:33:04]accept exits with 9 [12:33:04]New connection [12:33:04]New thread 3067067748 created [12:33:04]Thread 3066924388 joined [12:33:04]Waiting for new connection... [12:33:04] Sock 9.Parse request [12:33:04]Sock 9.Check first char [12:33:04]Sock 9.First char is OK [12:33:04]request: POST /json_proto HTTP/1.0 [12:33:04]Method: POST [12:33:04]URL: /json_proto [12:33:04]Method is POST - this is cgi request [12:33:04]url: /json_proto [12:33:04]query_string will be loaded in cgi processing [12:33:04]execute_cgi json_proto POST (null) [12:33:04]execute_cgi path=json_proto method=POST [12:33:04]POST find Content-Length [12:33:04]Host: 172.17.45.7:8080 [12:33:04]Content-Length: 678 [12:33:04]Content-Type: application/json [12:33:04] [12:33:04]POST finish read [12:33:04]Found Content-Length = 678 [12:33:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:04]execute_script... [12:33:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:04]POST & json_proto [12:33:04]process_json_proto [12:33:04]json parsed OK: [12:33:04]protocol is kg_v1.0 [12:33:04]action value=close_receipt [12:33:04]process_action close_receipt [12:33:04]cmd_close_receipt [12:33:04]MH_GetDate [12:33:04]Write to MH i2c: F0 00 00 58 25 6C [12:33:04]Write i2c OK [12:33:04]MH_I2C_Read... [12:33:04]Read from MH i2c: F0 [12:33:04]MH_I2C_Read... [12:33:04]Read from MH i2c: F0 09 00 [12:33:04]MH_I2C_Read... [12:33:04]Read from MH i2c: F0 09 00 58 25 00 83 3A A6 66 90 0F 3E 66 81 [12:33:04]GetLastDocTimeStamp 1722169967 [12:33:04]current date 1722169987 [12:33:04]FM_GetShiftState [12:33:04]SAM_PROTO_GetShiftState [12:33:04]wFMCommunicate request_size=4 [12:33:04]MH_SAM_APDU [12:33:04]CAPDU: 80 13 01 00 [12:33:04]Write to MH i2c: E2 08 00 59 25 80 13 01 00 00 00 00 00 FB [12:33:04]Write i2c OK [12:33:04]MH_I2C_Read... [12:33:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:04]Read from MH i2c: E2 [12:33:04]MH_I2C_Read... [12:33:04]Read from MH i2c: E2 0E 00 [12:33:04]MH_I2C_Read... [12:33:04]Read from MH i2c: E2 0E 00 59 25 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 D2 [12:33:04]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [12:33:04]wFMCommunicate OK [12:33:04]SAM_PROTO_GetShiftState done [12:33:04]FM_GetShiftState done [12:33:04]opened in 1722125364 [12:33:04]opened+sec_in_day 1722211764 [12:33:04]quantity*price = 70037 [12:33:04]sum+1 = 70038 [12:33:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 145 28.07.2024 12:33 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118476 ФПД: 124552267620519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123307&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118476&fm=124552267620519&tin=02508201610067®Number=0000000000092660&sum=70000 [12:33:05]StoreToDocumentArchive [12:33:05]shift 433 fd 118476 [12:33:05]save to /storage/0433/doc_00118476 [12:33:05]save last doc name /storage/0433/doc_00118476 to /storage/kkm_last_doc_name [12:33:05]save OK [12:33:05]Clear old archive folders... [12:33:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:33:05]tlvbuf is 001ACB10 [12:33:05]SAM_PROTO_ClearQueue [12:33:05]wFMCommunicate request_size=4 [12:33:05]MH_SAM_APDU [12:33:05]CAPDU: 80 09 00 00 [12:33:05]Write to MH i2c: E2 08 00 66 25 80 09 00 00 00 00 00 00 FD [12:33:05]Write i2c OK [12:33:05]MH_I2C_Read... [12:33:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:05]Read from MH i2c: E2 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 03 00 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 03 00 66 25 00 90 00 FF [12:33:05]RAPDU: 90 00 [12:33:05]wFMCommunicate OK [12:33:05]SAM_PROTO_ClearQueue done [12:33:05]KKMCreateOFDPacket [12:33:05]OFDProtocolAddRootSTLVToBuf [12:33:05]FM_MakeSignedData [12:33:05]FM_MakeSignedData [12:33:05]SAM_PROTO_SignData [12:33:05]wFMCommunicate request_size=4 [12:33:05]MH_SAM_APDU [12:33:05]CAPDU: 80 0D 01 02 [12:33:05]Write to MH i2c: E2 08 00 67 25 80 0D 01 02 00 00 00 00 05 [12:33:05]Write i2c OK [12:33:05]MH_I2C_Read... [12:33:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:05]Read from MH i2c: E2 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 03 00 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 03 00 67 25 00 90 00 00 [12:33:05]RAPDU: 90 00 [12:33:05]wFMCommunicate OK [12:33:05]wFMCommunicate request_size=255 [12:33:05]MH_SAM_APDU [12:33:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 83 3A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CC CE 01 00 35 04 06 00 71 [12:33:05]Write to MH i2c: E2 02 01 68 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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 83 3A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CC CE 01 00 35 04 06 00 71 00 00 88 [12:33:05]Write i2c OK [12:33:05]MH_I2C_Read... [12:33:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:06]Read from MH i2c: E2 [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: E2 03 00 [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: E2 03 00 68 25 00 90 00 01 [12:33:06]RAPDU: 90 00 [12:33:06]wFMCommunicate OK [12:33:06]wFMCommunicate request_size=10 [12:33:06]MH_SAM_APDU [12:33:06]CAPDU: 80 0D 02 02 05 47 95 AA E0 A7 [12:33:06]Write to MH i2c: E2 0D 00 69 25 80 0D 02 02 05 00 47 95 AA E0 A7 00 00 1F [12:33:06]Write i2c OK [12:33:06]MH_I2C_Read... [12:33:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:06]Read from MH i2c: E2 [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: E2 03 00 [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: E2 03 00 69 25 00 90 00 02 [12:33:06]RAPDU: 90 00 [12:33:06]wFMCommunicate OK [12:33:06]wFMCommunicate request_size=4 [12:33:06]MH_SAM_APDU [12:33:06]CAPDU: 80 0D 03 02 [12:33:06]Write to MH i2c: E2 08 00 6A 25 80 0D 03 02 00 00 00 00 0A [12:33:06]Write i2c OK [12:33:06]MH_I2C_Read... [12:33:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:06]Read from MH i2c: E2 [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: E2 0B 00 [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: E2 0B 00 6A 25 00 82 4D D0 12 28 FB 49 8E 90 00 B6 [12:33:06]RAPDU: 82 4D D0 12 28 FB 49 8E 90 00 [12:33:06]wFMCommunicate OK [12:33:06]SAM_PROTO_SignData done [12:33:06]FM_MakeSignedData done [12:33:06]CreateOFDProtocolMessage [12:33:06]wFMCommunicate request_size=4 [12:33:06]MH_SAM_APDU [12:33:06]CAPDU: 80 11 00 00 [12:33:06]Write to MH i2c: E2 08 00 6B 25 80 11 00 00 00 00 00 00 0A [12:33:06]Write i2c OK [12:33:06]MH_I2C_Read... [12:33:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:06]Read from MH i2c: E2 [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: E2 17 00 [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: E2 17 00 6B 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 65 [12:33:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:33:06]wFMCommunicate OK [12:33:06]CreateOFDProtocolMessage done [12:33:06]OFDSenderStorePacket 118476 [12:33:06]StoreOFDPacket docnum=118476 [12:33:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5D FF 07 01 12 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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 83 3A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CC CE 01 00 35 04 06 00 71 47 95 AA E0 A7 82 4D D0 12 28 FB 49 8E [12:33:06]CheckFolder [12:33:06]dirname=/storage/ofd_packets [12:33:06]CheckFolder done [12:33:06]ProducePacketName [12:33:06]name=ofd_packets/00118476 [12:33:06]NVStorageSaveData ofd_packets/00118476 [12:33:06]File name is /storage/ofd_packets/00118476 [12:33:06]Write 301 bytes [12:33:06]NVStorageSaveData done [12:33:06]OFDSenderStorePacket done [12:33:06]KKMCreateOFDPacket done [12:33:06]NVStorageSaveData kkm_last_timestamp [12:33:06]File name is /storage/kkm_last_timestamp [12:33:06]Write 4 bytes [12:33:06]NVStorageSaveData done [12:33:06]ExternCall_PrintAddStr [12:33:06]wPrintStart [12:33:06]Write to MH i2c: 01 00 00 6C 25 91 [12:33:06]Write i2c OK [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: 01 [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: 01 07 00 [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: 01 07 00 6C 25 00 00 00 00 00 FF 0F A6 [12:33:06]RasterBufferAndPrint [12:33:06]line Счет N : (1)949346 [12:33:06]line ИНН: 02508201610067 [12:33:06]line Контрольно-Кассовый Чек [12:33:06]line ПРОДАЖА [12:33:06]line ТРК (МРК, ГНК) : 31 [12:33:06]line Товар: 2710124130 [12:33:06]line Аи-92-К-4 [12:33:06]line 10.330 * 67.80 [12:33:06]line = 700.37 [12:33:06]line НДС 12% НСП 1% [12:33:06]line > о реализуемом товаре [12:33:06]line ОКРУГЛЕНИЕ: -0.37 [12:33:06]line ИТОГО: 700.00 [12:33:06]line Внесено: 700.00 [12:33:06]line СДАЧА: 0.00 [12:33:06]line НСП 1% : 6.20 [12:33:06]line НДС 12% : 74.38 [12:33:06]line Наличными: 700.00 [12:33:06]line Безнал.: 0.00 [12:33:06]line Место: АЗС № 134 "Партнер Нефть" [12:33:06]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:33:06]line СНО: Общий режим [12:33:06]line Чек 145 28.07.2024 12:33 [12:33:06]line Смена: 433 ФФД: 1.0 [12:33:06]line ЗНМ: 0300000044 [12:33:06]line РНМ: 0000000000092660 [12:33:06]line Версия ККМ: 001 [12:33:06]line ФМ: 0000000000874939 [12:33:06]line ФД: 118476 [12:33:06]line ФПД: 124552267620519 [12:33:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123307&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118476&fm=124552267620519&tin=02508201610067®Number=0000000000092660&sum=70000 [12:33:06]written 0, free lines is 4095 [12:33:06]OFD Sender: Processing packet 118476 [packets to send 86, broken 85] [12:33:06]ProducePacketName [12:33:06]name=ofd_packets/00118476 [12:33:06]OFD Sender: To server: pG, [12:33:06]CommunicateWithHost lk.salyk.kg:30040 [12:33:06]ConnectInit lk.salyk.kg [12:33:06]Connected sock=11 [12:33:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5D FF 07 01 12 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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 83 3A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CC CE 01 00 35 04 06 00 71 47 95 AA E0 A7 82 4D D0 12 28 FB 49 8E [12:33:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 75 AC 47 00 63 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CC CE 01 00 F4 03 04 00 13 E8 A5 66 B6 04 01 00 00 36 0B 1D 1D 81 F4 ED E4 [12:33:06]CommunicateWithHost err = 0 [12:33:06]CheckOFDResponse [12:33:06]1017 (14) - 77093643461234 [12:33:06]1041 (16) - 0000000000874939 [12:33:06]1040 (4) - 118476 [12:33:06]1012 (4) - 28.07.2024 06:41 [12:33:06]1206 (1) - 0 [12:33:06]OFD Sender: Remove packet 118476 [12:33:06]ProducePacketName [12:33:06]name=ofd_packets/00118476 [12:33:06]NVStorageDeleteData [12:33:06]Write to MH i2c: 01 00 00 96 25 BB [12:33:06]Write i2c OK [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: 01 [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: 01 07 00 [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: 01 07 00 96 25 00 00 00 00 00 DC 0C AA [12:33:06]RasterBufferAndPrint [12:33:06]line [12:33:06]line [12:33:06]line [12:33:06]line [12:33:06]line [12:33:06]written 0, free lines is 3299 [12:33:06]MH_Cut [12:33:06]Write to MH i2c: D1 01 00 9D 25 01 94 [12:33:06]Write i2c OK [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: D1 [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: D1 01 00 [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: D1 01 00 9D 25 00 93 [12:33:06]Write to MH i2c: 01 00 00 9E 25 C3 [12:33:06]Write i2c OK [12:33:06]MH_I2C_Read... [12:33:07]OFD Sender: No OFD packet to send [12:33:07]*** Cut start [12:33:07]*** Partial cut [12:33:07]*** CUTSNS_PIN = 1 [12:33:07]*** CUTSNS_PIN = 0 [12:33:07]*** Brake cut motor [12:33:08]Read from MH i2c: 01 [12:33:08]MH_I2C_Read... [12:33:08]*** Stop cut motor [12:33:08]*** Cut end [12:33:08]Read from MH i2c: 01 07 00 [12:33:08]MH_I2C_Read... [12:33:08]Read from MH i2c: 01 07 00 9E 25 00 00 00 00 00 FF 0F D8 [12:33:08]process_action close_receipt done [12:33:08]requested_data is exist [12:33:08]produce_requested_data [12:33:08]requested_item fm.sn is exist - process it [12:33:08]wFMCommunicate request_size=4 [12:33:08]MH_SAM_APDU [12:33:08]CAPDU: 80 11 00 00 [12:33:08]Write to MH i2c: E2 08 00 9F 25 80 11 00 00 00 00 00 00 3E [12:33:08]Write i2c OK [12:33:08]MH_I2C_Read... [12:33:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:08]Read from MH i2c: E2 [12:33:08]MH_I2C_Read... [12:33:08]Read from MH i2c: E2 17 00 [12:33:08]MH_I2C_Read... [12:33:08]Read from MH i2c: E2 17 00 9F 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 99 [12:33:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:33:08]wFMCommunicate OK [12:33:08]requested_item fd.num is exist - process it [12:33:08]SAM_PROTO_GetFieldsCounters [12:33:08]wFMCommunicate request_size=4 [12:33:08]MH_SAM_APDU [12:33:08]CAPDU: 80 13 00 00 [12:33:08]Write to MH i2c: E2 08 00 A0 25 80 13 00 00 00 00 00 00 41 [12:33:08]Write i2c OK [12:33:08]MH_I2C_Read... [12:33:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:08]Read from MH i2c: E2 [12:33:08]MH_I2C_Read... [12:33:08]Read from MH i2c: E2 62 00 [12:33:08]MH_I2C_Read... [12:33:08]Read from MH i2c: E2 62 00 A0 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CC CE 01 00 0E 04 04 00 B1 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 68 [12:33:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CC CE 01 00 0E 04 04 00 B1 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 [12:33:08]wFMCommunicate OK [12:33:08]SAM_PROTO_GetFieldsCounters done [12:33:08]requested_item shift.num is exist - process it [12:33:08]requested_item shift.opened is exist - process it [12:33:08]req_shift_opened [12:33:08]FM_GetShiftState [12:33:08]SAM_PROTO_GetShiftState [12:33:08]wFMCommunicate request_size=4 [12:33:08]MH_SAM_APDU [12:33:08]CAPDU: 80 13 01 00 [12:33:08]Write to MH i2c: E2 08 00 A1 25 80 13 01 00 00 00 00 00 43 [12:33:08]Write i2c OK [12:33:08]MH_I2C_Read... [12:33:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:08]Read from MH i2c: E2 [12:33:08]MH_I2C_Read... [12:33:08]Read from MH i2c: E2 0E 00 [12:33:08]MH_I2C_Read... [12:33:08]Read from MH i2c: E2 0E 00 A1 25 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 1A [12:33:08]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [12:33:08]wFMCommunicate OK [12:33:08]SAM_PROTO_GetShiftState done [12:33:08]FM_GetShiftState done [12:33:08]req_shift_opened done [12:33:08]requested_item shift.open_date is exist - process it [12:33:08]req_shift_open_date [12:33:08]req_shift_open_date done [12:33:08]produce_requested_data done [12:33:08]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118476,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [12:33:08]process_action_free close_receipt [12:33:08]json_value_free [12:33:08]json_value_free done [12:33:08]process_json_proto returns [12:33:08]Send response to host [12:33:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118476,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [12:33:08]free response buf [12:33:08]execute_script done [12:33:08]execute_script returns [12:33:08]free content buf [12:33:08]Sock 9.Close socket [12:33:08]Sock 9.Thread stoped [12:33:11]accept exits with 7 [12:33:11]New connection [12:33:11]New thread 3066924388 created [12:33:11]Thread 3067067748 joined [12:33:11]Waiting for new connection... [12:33:11] Sock 7.Parse request [12:33:11]Sock 7.Check first char [12:33:11]Sock 7.First char is OK [12:33:11]request: POST /json_proto HTTP/1.0 [12:33:11]Method: POST [12:33:11]URL: /json_proto [12:33:11]Method is POST - this is cgi request [12:33:11]url: /json_proto [12:33:11]query_string will be loaded in cgi processing [12:33:11]execute_cgi json_proto POST (null) [12:33:11]execute_cgi path=json_proto method=POST [12:33:11]POST find Content-Length [12:33:11]Host: 172.17.45.7:8080 [12:33:11]Content-Length: 678 [12:33:11]Content-Type: application/json [12:33:11] [12:33:11]POST finish read [12:33:11]Found Content-Length = 678 [12:33:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 13.840, "sum" : 938.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 938.00, "total" : 938.00, "payments": [ { "type": 0, "sum" : 938.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:11]execute_script... [12:33: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)949347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 13.840, "sum" : 938.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 938.00, "total" : 938.00, "payments": [ { "type": 0, "sum" : 938.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:11]POST & json_proto [12:33:11]process_json_proto [12:33:11]json parsed OK: [12:33:11]protocol is kg_v1.0 [12:33:11]action value=close_receipt [12:33:11]process_action close_receipt [12:33:11]cmd_close_receipt [12:33:11]MH_GetDate [12:33:11]Write to MH i2c: F0 00 00 A2 25 B6 [12:33:11]Write i2c OK [12:33:11]MH_I2C_Read... [12:33:11]Read from MH i2c: F0 [12:33:11]MH_I2C_Read... [12:33:11]Read from MH i2c: F0 09 00 [12:33:11]MH_I2C_Read... [12:33:11]Read from MH i2c: F0 09 00 A2 25 00 8A 3A A6 66 90 0F 3E 66 D2 [12:33:11]GetLastDocTimeStamp 1722169987 [12:33:11]current date 1722169994 [12:33:11]FM_GetShiftState [12:33:11]SAM_PROTO_GetShiftState [12:33:11]wFMCommunicate request_size=4 [12:33:11]MH_SAM_APDU [12:33:11]CAPDU: 80 13 01 00 [12:33:11]Write to MH i2c: E2 08 00 A3 25 80 13 01 00 00 00 00 00 45 [12:33:11]Write i2c OK [12:33:11]MH_I2C_Read... [12:33:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:11]Read from MH i2c: E2 [12:33:11]MH_I2C_Read... [12:33:11]Read from MH i2c: E2 0E 00 [12:33:11]MH_I2C_Read... [12:33:11]Read from MH i2c: E2 0E 00 A3 25 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 1C [12:33:11]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [12:33:11]wFMCommunicate OK [12:33:11]SAM_PROTO_GetShiftState done [12:33:11]FM_GetShiftState done [12:33:11]opened in 1722125364 [12:33:11]opened+sec_in_day 1722211764 [12:33:11]quantity*price = 93835 [12:33:11]sum+1 = 93836 [12:33:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 938.00 Внесено: 938.00 СДАЧА: 0.00 НСП 1% : 8.30 НДС 12% : 99.65 Наличными: 938.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 146 28.07.2024 12:33 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118477 ФПД: 104728516656689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123314&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118477&fm=104728516656689&tin=02508201610067®Number=0000000000092660&sum=93800 [12:33:12]StoreToDocumentArchive [12:33:12]shift 433 fd 118477 [12:33:12]save to /storage/0433/doc_00118477 [12:33:12]save last doc name /storage/0433/doc_00118477 to /storage/kkm_last_doc_name [12:33:12]save OK [12:33:12]Clear old archive folders... [12:33:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:33:12]tlvbuf is 001A2C00 [12:33:12]SAM_PROTO_ClearQueue [12:33:12]wFMCommunicate request_size=4 [12:33:12]MH_SAM_APDU [12:33:12]CAPDU: 80 09 00 00 [12:33:12]Write to MH i2c: E2 08 00 B0 25 80 09 00 00 00 00 00 00 47 [12:33:12]Write i2c OK [12:33:12]MH_I2C_Read... [12:33:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:12]Read from MH i2c: E2 [12:33:12]MH_I2C_Read... [12:33:12]Read from MH i2c: E2 03 00 [12:33:12]MH_I2C_Read... [12:33:12]Read from MH i2c: E2 03 00 B0 25 00 90 00 49 [12:33:12]RAPDU: 90 00 [12:33:12]wFMCommunicate OK [12:33:12]SAM_PROTO_ClearQueue done [12:33:12]KKMCreateOFDPacket [12:33:12]OFDProtocolAddRootSTLVToBuf [12:33:12]FM_MakeSignedData [12:33:12]FM_MakeSignedData [12:33:12]SAM_PROTO_SignData [12:33:12]wFMCommunicate request_size=4 [12:33:12]MH_SAM_APDU [12:33:12]CAPDU: 80 0D 01 02 [12:33:12]Write to MH i2c: E2 08 00 B1 25 80 0D 01 02 00 00 00 00 4F [12:33:12]Write i2c OK [12:33:12]MH_I2C_Read... [12:33:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:12]Read from MH i2c: E2 [12:33:12]MH_I2C_Read... [12:33:12]Read from MH i2c: E2 03 00 [12:33:12]MH_I2C_Read... [12:33:12]Read from MH i2c: E2 03 00 B1 25 00 90 00 4A [12:33:12]RAPDU: 90 00 [12:33:12]wFMCommunicate OK [12:33:12]wFMCommunicate request_size=255 [12:33:12]MH_SAM_APDU [12:33: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 34 FF 03 08 00 03 10 36 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8B 6E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 6E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 26 00 00 00 00 07 04 06 00 68 6E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 8A 3A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CD CE 01 00 35 04 06 00 5F [12:33:12]Write to MH i2c: E2 02 01 B2 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 34 FF 03 08 00 03 10 36 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8B 6E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 6E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 26 00 00 00 00 07 04 06 00 68 6E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 8A 3A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CD CE 01 00 35 04 06 00 5F 00 00 45 [12:33:12]Write i2c OK [12:33:12]MH_I2C_Read... [12:33:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:13]Read from MH i2c: E2 [12:33:13]MH_I2C_Read... [12:33:13]Read from MH i2c: E2 03 00 [12:33:13]MH_I2C_Read... [12:33:13]Read from MH i2c: E2 03 00 B2 25 00 90 00 4B [12:33:13]RAPDU: 90 00 [12:33:13]wFMCommunicate OK [12:33:13]wFMCommunicate request_size=10 [12:33:13]MH_SAM_APDU [12:33:13]CAPDU: 80 0D 02 02 05 40 02 08 7E 31 [12:33:13]Write to MH i2c: E2 0D 00 B3 25 80 0D 02 02 05 00 40 02 08 7E 31 00 00 55 [12:33:13]Write i2c OK [12:33:13]MH_I2C_Read... [12:33:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:13]Read from MH i2c: E2 [12:33:13]MH_I2C_Read... [12:33:13]Read from MH i2c: E2 03 00 [12:33:13]MH_I2C_Read... [12:33:13]Read from MH i2c: E2 03 00 B3 25 00 90 00 4C [12:33:13]RAPDU: 90 00 [12:33:13]wFMCommunicate OK [12:33:13]wFMCommunicate request_size=4 [12:33:13]MH_SAM_APDU [12:33:13]CAPDU: 80 0D 03 02 [12:33:13]Write to MH i2c: E2 08 00 B4 25 80 0D 03 02 00 00 00 00 54 [12:33:13]Write i2c OK [12:33:13]MH_I2C_Read... [12:33:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:13]Read from MH i2c: E2 [12:33:13]MH_I2C_Read... [12:33:13]Read from MH i2c: E2 0B 00 [12:33:13]MH_I2C_Read... [12:33:13]Read from MH i2c: E2 0B 00 B4 25 00 A4 E6 43 88 0B 07 1F 9B 90 00 76 [12:33:13]RAPDU: A4 E6 43 88 0B 07 1F 9B 90 00 [12:33:13]wFMCommunicate OK [12:33:13]SAM_PROTO_SignData done [12:33:13]FM_MakeSignedData done [12:33:13]CreateOFDProtocolMessage [12:33:13]wFMCommunicate request_size=4 [12:33:13]MH_SAM_APDU [12:33:13]CAPDU: 80 11 00 00 [12:33:13]Write to MH i2c: E2 08 00 B5 25 80 11 00 00 00 00 00 00 54 [12:33:13]Write i2c OK [12:33:13]MH_I2C_Read... [12:33:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:13]Read from MH i2c: E2 [12:33:13]MH_I2C_Read... [12:33:13]Read from MH i2c: E2 17 00 [12:33:13]MH_I2C_Read... [12:33:13]Read from MH i2c: E2 17 00 B5 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AF [12:33:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:33:13]wFMCommunicate OK [12:33:13]CreateOFDProtocolMessage done [12:33:13]OFDSenderStorePacket 118477 [12:33:13]StoreOFDPacket docnum=118477 [12:33:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 6B 0A 07 01 49 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 36 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8B 6E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 6E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 26 00 00 00 00 07 04 06 00 68 6E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 8A 3A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CD CE 01 00 35 04 06 00 5F 40 02 08 7E 31 A4 E6 43 88 0B 07 1F 9B [12:33:13]CheckFolder [12:33:13]dirname=/storage/ofd_packets [12:33:13]CheckFolder done [12:33:13]ProducePacketName [12:33:13]name=ofd_packets/00118477 [12:33:13]NVStorageSaveData ofd_packets/00118477 [12:33:13]File name is /storage/ofd_packets/00118477 [12:33:13]Write 301 bytes [12:33:13]NVStorageSaveData done [12:33:13]OFDSenderStorePacket done [12:33:13]KKMCreateOFDPacket done [12:33:13]NVStorageSaveData kkm_last_timestamp [12:33:13]File name is /storage/kkm_last_timestamp [12:33:13]Write 4 bytes [12:33:13]NVStorageSaveData done [12:33:13]ExternCall_PrintAddStr [12:33:13]wPrintStart [12:33:13]Write to MH i2c: 01 00 00 B6 25 DB [12:33:13]Write i2c OK [12:33:13]MH_I2C_Read... [12:33:13]Read from MH i2c: 01 [12:33:13]MH_I2C_Read... [12:33:13]Read from MH i2c: 01 07 00 [12:33:13]MH_I2C_Read... [12:33:13]Read from MH i2c: 01 07 00 B6 25 00 00 00 00 00 FF 0F F0 [12:33:13]RasterBufferAndPrint [12:33:13]line Счет N : (1)949347 [12:33:13]line ИНН: 02508201610067 [12:33:13]line Контрольно-Кассовый Чек [12:33:13]line ПРОДАЖА [12:33:13]line ТРК (МРК, ГНК) : 41 [12:33:13]line Товар: 2710124130 [12:33:13]line Аи-92-К-4 [12:33:13]line 13.840 * 67.80 [12:33:13]line = 938.35 [12:33:13]line НДС 12% НСП 1% [12:33:13]line > о реализуемом товаре [12:33:13]line ОКРУГЛЕНИЕ: -0.35 [12:33:13]line ИТОГО: 938.00 [12:33:13]line Внесено: 938.00 [12:33:13]line СДАЧА: 0.00 [12:33:13]line НСП 1% : 8.30 [12:33:13]line НДС 12% : 99.65 [12:33:13]line Наличными: 938.00 [12:33:13]line Безнал.: 0.00 [12:33:13]line Место: АЗС № 134 "Партнер Нефть" [12:33:13]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:33:13]line СНО: Общий режим [12:33:13]line Чек 146 28.07.2024 12:33 [12:33:13]line Смена: 433 ФФД: 1.0 [12:33:13]line ЗНМ: 0300000044 [12:33:13]line РНМ: 0000000000092660 [12:33:13]line Версия ККМ: 001 [12:33:13]line ФМ: 0000000000874939 [12:33:13]line ФД: 118477 [12:33:13]line ФПД: 104728516656689 [12:33:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123314&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118477&fm=104728516656689&tin=02508201610067®Number=0000000000092660&sum=93800 [12:33:13]OFD Sender: Processing packet 118477 [packets to send 86, broken 85] [12:33:13]ProducePacketName [12:33:13]name=ofd_packets/00118477 [12:33:13]OFD Sender: To server: pG, [12:33:13]CommunicateWithHost lk.salyk.kg:30040 [12:33:13]ConnectInit lk.salyk.kg [12:33:13]written 0, free lines is 4095 [12:33:13]Connected sock=10 [12:33:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 6B 0A 07 01 49 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 36 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8B 6E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 6E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 26 00 00 00 00 07 04 06 00 68 6E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 8A 3A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CD CE 01 00 35 04 06 00 5F 40 02 08 7E 31 A4 E6 43 88 0B 07 1F 9B [12:33:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9A 57 47 00 DB 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 39 33 39 10 04 04 00 CD CE 01 00 F4 03 04 00 1A E8 A5 66 B6 04 01 00 00 4F 7B 8D 2F F5 2E 00 06 [12:33:13]CommunicateWithHost err = 0 [12:33:13]CheckOFDResponse [12:33:13]1017 (14) - 77093643461234 [12:33:13]1041 (16) - 0000000000874939 [12:33:13]1040 (4) - 118477 [12:33:13]1012 (4) - 28.07.2024 06:41 [12:33:13]1206 (1) - 0 [12:33:13]OFD Sender: Remove packet 118477 [12:33:13]ProducePacketName [12:33:13]name=ofd_packets/00118477 [12:33:13]NVStorageDeleteData [12:33:14]Write to MH i2c: 01 00 00 E0 25 05 [12:33:14]Write i2c OK [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: 01 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: 01 07 00 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: 01 07 00 E0 25 00 00 00 00 00 F1 0C 09 [12:33:14]RasterBufferAndPrint [12:33:14]line [12:33:14]line [12:33:14]line [12:33:14]line [12:33:14]line [12:33:14]written 0, free lines is 3323 [12:33:14]MH_Cut [12:33:14]Write to MH i2c: D1 01 00 E7 25 01 DE [12:33:14]Write i2c OK [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: D1 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: D1 01 00 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: D1 01 00 E7 25 00 DD [12:33:14]Write to MH i2c: 01 00 00 E8 25 0D [12:33:14]Write i2c OK [12:33:14]MH_I2C_Read... [12:33:14]OFD Sender: No OFD packet to send [12:33:14]*** Cut start [12:33:14]*** Partial cut [12:33:14]*** CUTSNS_PIN = 1 [12:33:14]*** CUTSNS_PIN = 0 [12:33:15]*** Brake cut motor [12:33:15]Read from MH i2c: 01 [12:33:15]MH_I2C_Read... [12:33:15]*** Stop cut motor [12:33:15]*** Cut end [12:33:15]Read from MH i2c: 01 07 00 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: 01 07 00 E8 25 00 00 00 00 00 FF 0F 22 [12:33:15]process_action close_receipt done [12:33:15]requested_data is exist [12:33:15]produce_requested_data [12:33:15]requested_item fm.sn is exist - process it [12:33:15]wFMCommunicate request_size=4 [12:33:15]MH_SAM_APDU [12:33:15]CAPDU: 80 11 00 00 [12:33:15]Write to MH i2c: E2 08 00 E9 25 80 11 00 00 00 00 00 00 88 [12:33:15]Write i2c OK [12:33:15]MH_I2C_Read... [12:33:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:15]Read from MH i2c: E2 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 17 00 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 17 00 E9 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E3 [12:33:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:33:15]wFMCommunicate OK [12:33:15]requested_item fd.num is exist - process it [12:33:15]SAM_PROTO_GetFieldsCounters [12:33:15]wFMCommunicate request_size=4 [12:33:15]MH_SAM_APDU [12:33:15]CAPDU: 80 13 00 00 [12:33:15]Write to MH i2c: E2 08 00 EA 25 80 13 00 00 00 00 00 00 8B [12:33:15]Write i2c OK [12:33:15]MH_I2C_Read... [12:33:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:15]Read from MH i2c: E2 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 62 00 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 62 00 EA 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CD CE 01 00 0E 04 04 00 B1 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 B6 [12:33: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CD CE 01 00 0E 04 04 00 B1 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 [12:33:15]wFMCommunicate OK [12:33:15]SAM_PROTO_GetFieldsCounters done [12:33:15]requested_item shift.num is exist - process it [12:33:15]requested_item shift.opened is exist - process it [12:33:15]req_shift_opened [12:33:15]FM_GetShiftState [12:33:15]SAM_PROTO_GetShiftState [12:33:15]wFMCommunicate request_size=4 [12:33:15]MH_SAM_APDU [12:33:15]CAPDU: 80 13 01 00 [12:33:15]Write to MH i2c: E2 08 00 EB 25 80 13 01 00 00 00 00 00 8D [12:33:15]Write i2c OK [12:33:15]MH_I2C_Read... [12:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:15]Read from MH i2c: E2 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 0E 00 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 0E 00 EB 25 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 64 [12:33:15]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [12:33:15]wFMCommunicate OK [12:33:15]SAM_PROTO_GetShiftState done [12:33:15]FM_GetShiftState done [12:33:15]req_shift_opened done [12:33:15]requested_item shift.open_date is exist - process it [12:33:15]req_shift_open_date [12:33:15]req_shift_open_date done [12:33:15]produce_requested_data done [12:33:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118477,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [12:33:15]process_action_free close_receipt [12:33:15]json_value_free [12:33:15]json_value_free done [12:33:15]process_json_proto returns [12:33:15]Send response to host [12:33:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118477,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [12:33:15]free response buf [12:33:15]execute_script done [12:33:15]execute_script returns [12:33:15]free content buf [12:33:15]Sock 7.Close socket [12:33:15]Sock 7.Thread stoped [12:33:19]OFD Sender: No OFD packet to send [12:33:24]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:39]OFD Sender: No OFD packet to send [12:33:44]OFD Sender: No OFD packet to send [12:33:49]OFD Sender: No OFD packet to send [12:33:54]OFD Sender: No OFD packet to send [12:33:59]OFD Sender: No OFD packet to send [12:34:04]OFD Sender: No OFD packet to send [12:34:09]OFD Sender: No OFD packet to send [12:34:14]OFD Sender: No OFD packet to send [12:34:19]OFD Sender: No OFD packet to send [12:34:24]OFD Sender: No OFD packet to send [12:34:29]OFD Sender: No OFD packet to send [12:34:34]OFD Sender: No OFD packet to send [12:34:39]OFD Sender: No OFD packet to send [12:34:44]OFD Sender: No OFD packet to send [12:34:49]OFD Sender: No OFD packet to send [12:34:54]OFD Sender: No OFD packet to send [12:34:59]OFD Sender: No OFD packet to send [12:35:04]OFD Sender: No OFD packet to send [12:35:09]OFD Sender: No OFD packet to send [12:35:14]OFD Sender: No OFD packet to send [12:35:19]OFD Sender: No OFD packet to send [12:35:24]OFD Sender: No OFD packet to send [12:35:29]OFD Sender: No OFD packet to send [12:35:34]OFD Sender: No OFD packet to send [12:35:39]OFD Sender: No OFD packet to send [12:35:44]OFD Sender: No OFD packet to send [12:35:49]OFD Sender: No OFD packet to send [12:35:54]OFD Sender: No OFD packet to send [12:35:59]OFD Sender: No OFD packet to send [12:36:04]OFD Sender: No OFD packet to send [12:36:09]OFD Sender: No OFD packet to send [12:36:14]OFD Sender: No OFD packet to send [12:36:19]OFD Sender: No OFD packet to send [12:36:24]OFD Sender: No OFD packet to send [12:36:29]OFD Sender: No OFD packet to send [12:36:34]OFD Sender: No OFD packet to send [12:36:38]accept exits with 9 [12:36:38]New connection [12:36:38]New thread 3067067748 created [12:36:38]Thread 3066924388 joined [12:36:38]Waiting for new connection... [12:36:38] Sock 9.Parse request [12:36:38]Sock 9.Check first char [12:36:38]Sock 9.First char is OK [12:36:38]request: POST /json_proto HTTP/1.0 [12:36:38]Method: POST [12:36:38]URL: /json_proto [12:36:38]Method is POST - this is cgi request [12:36:38]url: /json_proto [12:36:38]query_string will be loaded in cgi processing [12:36:38]execute_cgi json_proto POST (null) [12:36:38]execute_cgi path=json_proto method=POST [12:36:38]POST find Content-Length [12:36:38]Host: 172.17.45.7:8080 [12:36:38]Content-Length: 819 [12:36:38]Content-Type: application/json [12:36:38] [12:36:38]POST finish read [12:36:38]Found Content-Length = 819 [12:36:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:38]execute_script... [12:36: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)949348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:38]POST & json_proto [12:36:38]process_json_proto [12:36:38]json parsed OK: [12:36:38]protocol is kg_v1.0 [12:36:38]action value=close_receipt [12:36:38]process_action close_receipt [12:36:38]cmd_close_receipt [12:36:38]MH_GetDate [12:36:38]Write to MH i2c: F0 00 00 EC 25 00 [12:36:38]Write i2c OK [12:36:38]MH_I2C_Read... [12:36:38]Read from MH i2c: F0 [12:36:38]MH_I2C_Read... [12:36:38]Read from MH i2c: F0 09 00 [12:36:38]MH_I2C_Read... [12:36:38]Read from MH i2c: F0 09 00 EC 25 00 58 3B A6 66 90 0F 3E 66 EB [12:36:38]GetLastDocTimeStamp 1722169994 [12:36:38]current date 1722170200 [12:36:38]FM_GetShiftState [12:36:38]SAM_PROTO_GetShiftState [12:36:38]wFMCommunicate request_size=4 [12:36:38]MH_SAM_APDU [12:36:38]CAPDU: 80 13 01 00 [12:36:38]Write to MH i2c: E2 08 00 ED 25 80 13 01 00 00 00 00 00 8F [12:36:38]Write i2c OK [12:36:38]MH_I2C_Read... [12:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:38]Read from MH i2c: E2 [12:36:38]MH_I2C_Read... [12:36:38]Read from MH i2c: E2 0E 00 [12:36:38]MH_I2C_Read... [12:36:38]Read from MH i2c: E2 0E 00 ED 25 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 66 [12:36:38]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [12:36:38]wFMCommunicate OK [12:36:38]SAM_PROTO_GetShiftState done [12:36:38]FM_GetShiftState done [12:36:38]opened in 1722125364 [12:36:38]opened+sec_in_day 1722211764 [12:36:38]quantity*price = 300075 [12:36:38]sum+1 = 300077 [12:36:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 147 28.07.2024 12:36 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118478 ФПД: 231057628457717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123640&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118478&fm=231057628457717&tin=02508201610067®Number=0000000000092660&sum=300000 [12:36:39]StoreToDocumentArchive [12:36:39]shift 433 fd 118478 [12:36:39]save to /storage/0433/doc_00118478 [12:36:39]save last doc name /storage/0433/doc_00118478 to /storage/kkm_last_doc_name [12:36:39]save OK [12:36:39]Clear old archive folders... [12:36:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:36:39]tlvbuf is 0012C3E0 [12:36:39]SAM_PROTO_ClearQueue [12:36:39]wFMCommunicate request_size=4 [12:36:39]MH_SAM_APDU [12:36:39]CAPDU: 80 09 00 00 [12:36:39]Write to MH i2c: E2 08 00 FA 25 80 09 00 00 00 00 00 00 91 [12:36:39]Write i2c OK [12:36:39]MH_I2C_Read... [12:36:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:39]Read from MH i2c: E2 [12:36:39]MH_I2C_Read... [12:36:39]Read from MH i2c: E2 03 00 [12:36:39]MH_I2C_Read... [12:36:39]Read from MH i2c: E2 03 00 FA 25 00 90 00 93 [12:36:39]RAPDU: 90 00 [12:36:39]wFMCommunicate OK [12:36:39]SAM_PROTO_ClearQueue done [12:36:39]KKMCreateOFDPacket [12:36:39]OFDProtocolAddRootSTLVToBuf [12:36:39]FM_MakeSignedData [12:36:39]FM_MakeSignedData [12:36:39]SAM_PROTO_SignData [12:36:39]wFMCommunicate request_size=4 [12:36:39]MH_SAM_APDU [12:36:39]CAPDU: 80 0D 01 02 [12:36:39]Write to MH i2c: E2 08 00 FB 25 80 0D 01 02 00 00 00 00 99 [12:36:39]Write i2c OK [12:36:39]MH_I2C_Read... [12:36:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:39]Read from MH i2c: E2 [12:36:39]MH_I2C_Read... [12:36:39]Read from MH i2c: E2 03 00 [12:36:39]MH_I2C_Read... [12:36:39]Read from MH i2c: E2 03 00 FB 25 00 90 00 94 [12:36:39]RAPDU: 90 00 [12:36:39]wFMCommunicate OK [12:36:39]wFMCommunicate request_size=255 [12:36:39]MH_SAM_APDU [12:36:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 58 3B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CE CE 01 00 35 04 06 00 D2 25 4B DD [12:36:39]Write to MH i2c: E2 02 01 FC 25 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 58 3B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CE CE 01 00 35 04 06 00 D2 25 4B DD 00 00 00 [12:36:39]Write i2c OK [12:36:39]MH_I2C_Read... [12:36:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:39]Read from MH i2c: E2 [12:36:39]MH_I2C_Read... [12:36:39]Read from MH i2c: E2 03 00 [12:36:39]MH_I2C_Read... [12:36:39]Read from MH i2c: E2 03 00 FC 25 00 90 00 95 [12:36:39]RAPDU: 90 00 [12:36:39]wFMCommunicate OK [12:36:39]wFMCommunicate request_size=7 [12:36:39]MH_SAM_APDU [12:36:39]CAPDU: 80 0D 02 02 02 EA F5 [12:36:39]Write to MH i2c: E2 0A 00 FD 25 80 0D 02 02 02 00 EA F5 00 00 7F [12:36:39]Write i2c OK [12:36:39]MH_I2C_Read... [12:36:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:39]Read from MH i2c: E2 [12:36:39]MH_I2C_Read... [12:36:39]Read from MH i2c: E2 03 00 [12:36:39]MH_I2C_Read... [12:36:39]Read from MH i2c: E2 03 00 FD 25 00 90 00 96 [12:36:39]RAPDU: 90 00 [12:36:39]wFMCommunicate OK [12:36:39]wFMCommunicate request_size=4 [12:36:39]MH_SAM_APDU [12:36:39]CAPDU: 80 0D 03 02 [12:36:39]Write to MH i2c: E2 08 00 FE 25 80 0D 03 02 00 00 00 00 9E [12:36:39]Write i2c OK [12:36:39]MH_I2C_Read... [12:36:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:39]Read from MH i2c: E2 [12:36:39]MH_I2C_Read... [12:36:39]Read from MH i2c: E2 0B 00 [12:36:39]MH_I2C_Read... [12:36:39]Read from MH i2c: E2 0B 00 FE 25 00 70 59 F0 61 E9 4B 37 62 90 00 86 [12:36:39]RAPDU: 70 59 F0 61 E9 4B 37 62 90 00 [12:36:39]wFMCommunicate OK [12:36:39]SAM_PROTO_SignData done [12:36:39]FM_MakeSignedData done [12:36:39]CreateOFDProtocolMessage [12:36:39]wFMCommunicate request_size=4 [12:36:39]MH_SAM_APDU [12:36:39]CAPDU: 80 11 00 00 [12:36:39]Write to MH i2c: E2 08 00 FF 25 80 11 00 00 00 00 00 00 9E [12:36:39]Write i2c OK [12:36:39]MH_I2C_Read... [12:36:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:39]Read from MH i2c: E2 [12:36:39]MH_I2C_Read... [12:36:39]Read from MH i2c: E2 17 00 [12:36:39]MH_I2C_Read... [12:36:39]Read from MH i2c: E2 17 00 FF 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F9 [12:36:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:36:39]wFMCommunicate OK [12:36:39]CreateOFDProtocolMessage done [12:36:39]OFDSenderStorePacket 118478 [12:36:39]StoreOFDPacket docnum=118478 [12:36:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 02 7B 04 01 62 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 58 3B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CE CE 01 00 35 04 06 00 D2 25 4B DD EA F5 70 59 F0 61 E9 4B 37 62 [12:36:39]CheckFolder [12:36:39]dirname=/storage/ofd_packets [12:36:39]CheckFolder done [12:36:39]ProducePacketName [12:36:39]name=ofd_packets/00118478 [12:36:39]NVStorageSaveData ofd_packets/00118478 [12:36:39]File name is /storage/ofd_packets/00118478 [12:36:39]Write 298 bytes [12:36:39]NVStorageSaveData done [12:36:39]OFDSenderStorePacket done [12:36:39]KKMCreateOFDPacket done [12:36:39]NVStorageSaveData kkm_last_timestamp [12:36:39]File name is /storage/kkm_last_timestamp [12:36:39]Write 4 bytes [12:36:39]NVStorageSaveData done [12:36:39]ExternCall_PrintAddStr [12:36:39]wPrintStart [12:36:39]Write to MH i2c: 01 00 00 00 26 26 [12:36:39]Write i2c OK [12:36:39]MH_I2C_Read... [12:36:39]Read from MH i2c: 01 [12:36:39]MH_I2C_Read... [12:36:39]Read from MH i2c: 01 07 00 [12:36:39]MH_I2C_Read... [12:36:39]Read from MH i2c: 01 07 00 00 26 00 00 00 00 00 FF 0F 3B [12:36:39]RasterBufferAndPrint [12:36:39]line Счет N : (1)949348 [12:36:39]line ИНН: 02508201610067 [12:36:39]line Контрольно-Кассовый Чек [12:36:39]line ПРОДАЖА [12:36:39]line ТРК (МРК, ГНК) : 11 [12:36:39]line Товар: 2710194800 [12:36:39]line ДТ-К-5 [12:36:39]line 39.380 * 76.20 [12:36:39]line = 3000.76 [12:36:39]line НДС 12% НСП 1% [12:36:39]line > о реализуемом товаре [12:36:39]line ОКРУГЛЕНИЕ: -0.76 [12:36:39]line ИТОГО: 3000.00 [12:36:39]line НСП 1% : 26.55 [12:36:39]line НДС 12% : 318.66 [12:36:39]line Наличными: 0.00 [12:36:39]line Безнал.: 3000.00 [12:36:39]line Место: АЗС № 134 "Партнер Нефть" [12:36:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:36:39]line СНО: Общий режим [12:36:39]line Чек 147 28.07.2024 12:36 [12:36:39]line Смена: 433 ФФД: 1.0 [12:36:39]line ЗНМ: 0300000044 [12:36:39]line РНМ: 0000000000092660 [12:36:39]line Версия ККМ: 001 [12:36:39]line Платежная система: O! деньги [12:36:39]line ФМ: 0000000000874939 [12:36:39]line ФД: 118478 [12:36:39]line ФПД: 231057628457717 [12:36:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123640&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118478&fm=231057628457717&tin=02508201610067®Number=0000000000092660&sum=300000 [12:36:40]OFD Sender: Processing packet 118478 [packets to send 86, broken 85] [12:36:40]ProducePacketName [12:36:40]name=ofd_packets/00118478 [12:36:40]OFD Sender: To server: pG, [12:36:40]CommunicateWithHost lk.salyk.kg:30040 [12:36:40]ConnectInit lk.salyk.kg [12:36:40]written 0, free lines is 4095 [12:36:40]Connected sock=10 [12:36: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 39 33 39 0C 01 00 00 02 7B 04 01 62 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 58 3B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CE CE 01 00 35 04 06 00 D2 25 4B DD EA F5 70 59 F0 61 E9 4B 37 62 [12:36:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C7 CA 47 00 E3 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 39 33 39 10 04 04 00 CE CE 01 00 F4 03 04 00 E9 E8 A5 66 B6 04 01 00 00 F2 86 91 BF C0 01 7B 14 [12:36:40]CommunicateWithHost err = 0 [12:36:40]CheckOFDResponse [12:36:40]1017 (14) - 77093643461234 [12:36:40]1041 (16) - 0000000000874939 [12:36:40]1040 (4) - 118478 [12:36:40]1012 (4) - 28.07.2024 06:44 [12:36:40]1206 (1) - 0 [12:36:40]OFD Sender: Remove packet 118478 [12:36:40]ProducePacketName [12:36:40]name=ofd_packets/00118478 [12:36:40]NVStorageDeleteData [12:36:40]Write to MH i2c: 01 00 00 2A 26 50 [12:36:40]Write i2c OK [12:36:40]MH_I2C_Read... [12:36:40]Read from MH i2c: 01 [12:36:40]MH_I2C_Read... [12:36:40]Read from MH i2c: 01 07 00 [12:36:40]MH_I2C_Read... [12:36:40]Read from MH i2c: 01 07 00 2A 26 00 00 00 00 00 D6 0C 39 [12:36:40]RasterBufferAndPrint [12:36:40]line [12:36:40]line [12:36:40]line [12:36:40]line [12:36:40]line [12:36:40]written 0, free lines is 3294 [12:36:40]MH_Cut [12:36:40]Write to MH i2c: D1 01 00 31 26 01 29 [12:36:40]Write i2c OK [12:36:40]MH_I2C_Read... [12:36:40]Read from MH i2c: D1 [12:36:40]MH_I2C_Read... [12:36:40]Read from MH i2c: D1 01 00 [12:36:40]MH_I2C_Read... [12:36:40]Read from MH i2c: D1 01 00 31 26 00 28 [12:36:40]Write to MH i2c: 01 00 00 32 26 58 [12:36:40]Write i2c OK [12:36:40]MH_I2C_Read... [12:36:40]OFD Sender: No OFD packet to send [12:36:41]*** Cut start [12:36:41]*** Partial cut [12:36:41]*** CUTSNS_PIN = 1 [12:36:41]*** CUTSNS_PIN = 0 [12:36:41]*** Brake cut motor [12:36:41]Read from MH i2c: 01 [12:36:41]MH_I2C_Read... [12:36:41]*** Stop cut motor [12:36:41]*** Cut end [12:36:41]Read from MH i2c: 01 07 00 [12:36:41]MH_I2C_Read... [12:36:41]Read from MH i2c: 01 07 00 32 26 00 00 00 00 00 FF 0F 6D [12:36:41]process_action close_receipt done [12:36:41]requested_data is exist [12:36:41]produce_requested_data [12:36:41]requested_item fm.sn is exist - process it [12:36:41]wFMCommunicate request_size=4 [12:36:41]MH_SAM_APDU [12:36:41]CAPDU: 80 11 00 00 [12:36:41]Write to MH i2c: E2 08 00 33 26 80 11 00 00 00 00 00 00 D3 [12:36:41]Write i2c OK [12:36:41]MH_I2C_Read... [12:36:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:41]Read from MH i2c: E2 [12:36:41]MH_I2C_Read... [12:36:41]Read from MH i2c: E2 17 00 [12:36:41]MH_I2C_Read... [12:36:41]Read from MH i2c: E2 17 00 33 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2E [12:36:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:36:41]wFMCommunicate OK [12:36:41]requested_item fd.num is exist - process it [12:36:41]SAM_PROTO_GetFieldsCounters [12:36:41]wFMCommunicate request_size=4 [12:36:41]MH_SAM_APDU [12:36:41]CAPDU: 80 13 00 00 [12:36:41]Write to MH i2c: E2 08 00 34 26 80 13 00 00 00 00 00 00 D6 [12:36:41]Write i2c OK [12:36:41]MH_I2C_Read... [12:36:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:42]Read from MH i2c: E2 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: E2 62 00 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: E2 62 00 34 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CE CE 01 00 0E 04 04 00 B1 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 05 [12: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CE CE 01 00 0E 04 04 00 B1 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 [12:36:42]wFMCommunicate OK [12:36:42]SAM_PROTO_GetFieldsCounters done [12:36:42]requested_item shift.num is exist - process it [12:36:42]requested_item shift.opened is exist - process it [12:36:42]req_shift_opened [12:36:42]FM_GetShiftState [12:36:42]SAM_PROTO_GetShiftState [12:36:42]wFMCommunicate request_size=4 [12:36:42]MH_SAM_APDU [12:36:42]CAPDU: 80 13 01 00 [12:36:42]Write to MH i2c: E2 08 00 35 26 80 13 01 00 00 00 00 00 D8 [12:36:42]Write i2c OK [12:36:42]MH_I2C_Read... [12:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:42]Read from MH i2c: E2 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: E2 0E 00 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: E2 0E 00 35 26 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 AF [12:36:42]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [12:36:42]wFMCommunicate OK [12:36:42]SAM_PROTO_GetShiftState done [12:36:42]FM_GetShiftState done [12:36:42]req_shift_opened done [12:36:42]requested_item shift.open_date is exist - process it [12:36:42]req_shift_open_date [12:36:42]req_shift_open_date done [12:36:42]produce_requested_data done [12:36:42]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118478,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [12:36:42]process_action_free close_receipt [12:36:42]json_value_free [12:36:42]json_value_free done [12:36:42]process_json_proto returns [12:36:42]Send response to host [12:36:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118478,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [12:36:42]free response buf [12:36:42]execute_script done [12:36:42]execute_script returns [12:36:42]free content buf [12:36:42]Sock 9.Close socket [12:36:42]Sock 9.Thread stoped [12:36:45]OFD Sender: No OFD packet to send [12:36:50]OFD Sender: No OFD packet to send [12:36:55]OFD Sender: No OFD packet to send [12:37:00]OFD Sender: No OFD packet to send [12:37:05]OFD Sender: No OFD packet to send [12:37:10]OFD Sender: No OFD packet to send [12:37:15]OFD Sender: No OFD packet to send [12:37:20]OFD Sender: No OFD packet to send [12:37:25]OFD Sender: No OFD packet to send [12:37:30]accept exits with 7 [12:37:30]New connection [12:37:30]New thread 3066924388 created [12:37:30]Thread 3067067748 joined [12:37:30]Waiting for new connection... [12:37:30] Sock 7.Parse request [12:37:30]Sock 7.Check first char [12:37:30]Sock 7.First char is OK [12:37:30]request: POST /json_proto HTTP/1.0 [12:37:30]Method: POST [12:37:30]URL: /json_proto [12:37:30]Method is POST - this is cgi request [12:37:30]url: /json_proto [12:37:30]query_string will be loaded in cgi processing [12:37:30]execute_cgi json_proto POST (null) [12:37:30]execute_cgi path=json_proto method=POST [12:37:30]POST find Content-Length [12:37:30]Host: 172.17.45.7:8080 [12:37:30]Content-Length: 679 [12:37:30]Content-Type: application/json [12:37:30] [12:37:30]POST finish read [12:37:30]Found Content-Length = 679 [12:37:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:30]execute_script... [12:37: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)949349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:30]POST & json_proto [12:37:30]process_json_proto [12:37:30]json parsed OK: [12:37:30]protocol is kg_v1.0 [12:37:30]action value=close_receipt [12:37:30]process_action close_receipt [12:37:30]cmd_close_receipt [12:37:30]MH_GetDate [12:37:30]Write to MH i2c: F0 00 00 36 26 4B [12:37:30]Write i2c OK [12:37:30]MH_I2C_Read... [12:37:30]Read from MH i2c: F0 [12:37:30]MH_I2C_Read... [12:37:30]Read from MH i2c: F0 09 00 [12:37:30]MH_I2C_Read... [12:37:30]Read from MH i2c: F0 09 00 36 26 00 8D 3B A6 66 90 0F 3E 66 6B [12:37:30]GetLastDocTimeStamp 1722170200 [12:37:30]current date 1722170253 [12:37:30]FM_GetShiftState [12:37:30]SAM_PROTO_GetShiftState [12:37:30]wFMCommunicate request_size=4 [12:37:30]MH_SAM_APDU [12:37:30]CAPDU: 80 13 01 00 [12:37:30]Write to MH i2c: E2 08 00 37 26 80 13 01 00 00 00 00 00 DA [12:37:30]Write i2c OK [12:37:30]MH_I2C_Read... [12:37:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:30]Read from MH i2c: E2 [12:37:30]MH_I2C_Read... [12:37:30]Read from MH i2c: E2 0E 00 [12:37:30]MH_I2C_Read... [12:37:30]Read from MH i2c: E2 0E 00 37 26 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 B1 [12:37:30]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [12:37:30]wFMCommunicate OK [12:37:30]SAM_PROTO_GetShiftState done [12:37:30]FM_GetShiftState done [12:37:30]opened in 1722125364 [12:37:30]opened+sec_in_day 1722211764 [12:37:30]quantity*price = 100050 [12:37:30]sum+1 = 100052 [12:37:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 148 28.07.2024 12:37 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118479 ФПД: 240827631837741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123733&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118479&fm=240827631837741&tin=02508201610067®Number=0000000000092660&sum=100000 [12:37:31]StoreToDocumentArchive [12:37:31]shift 433 fd 118479 [12:37:31]save to /storage/0433/doc_00118479 [12:37:31]save last doc name /storage/0433/doc_00118479 to /storage/kkm_last_doc_name [12:37:31]save OK [12:37:31]Clear old archive folders... [12:37:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:37:31]tlvbuf is B6EDD510 [12:37:31]SAM_PROTO_ClearQueue [12:37:31]wFMCommunicate request_size=4 [12:37:31]MH_SAM_APDU [12:37:31]CAPDU: 80 09 00 00 [12:37:31]Write to MH i2c: E2 08 00 44 26 80 09 00 00 00 00 00 00 DC [12:37:31]Write i2c OK [12:37:31]MH_I2C_Read... [12:37:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:31]Read from MH i2c: E2 [12:37:31]MH_I2C_Read... [12:37:31]Read from MH i2c: E2 03 00 [12:37:31]MH_I2C_Read... [12:37:31]Read from MH i2c: E2 03 00 44 26 00 90 00 DE [12:37:31]RAPDU: 90 00 [12:37:31]wFMCommunicate OK [12:37:31]SAM_PROTO_ClearQueue done [12:37:31]KKMCreateOFDPacket [12:37:31]OFDProtocolAddRootSTLVToBuf [12:37:31]FM_MakeSignedData [12:37:31]FM_MakeSignedData [12:37:31]SAM_PROTO_SignData [12:37:31]wFMCommunicate request_size=4 [12:37:31]MH_SAM_APDU [12:37:31]CAPDU: 80 0D 01 02 [12:37:31]Write to MH i2c: E2 08 00 45 26 80 0D 01 02 00 00 00 00 E4 [12:37:31]Write i2c OK [12:37:31]MH_I2C_Read... [12:37:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:32]Read from MH i2c: E2 [12:37:32]MH_I2C_Read... [12:37:32]Read from MH i2c: E2 03 00 [12:37:32]MH_I2C_Read... [12:37:32]Read from MH i2c: E2 03 00 45 26 00 90 00 DF [12:37:32]RAPDU: 90 00 [12:37:32]wFMCommunicate OK [12:37:32]wFMCommunicate request_size=255 [12:37:32]MH_SAM_APDU [12:37:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 8D 3B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CF CE 01 00 35 04 06 00 DB 08 0D 72 [12:37:32]Write to MH i2c: E2 02 01 46 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 8D 3B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CF CE 01 00 35 04 06 00 DB 08 0D 72 00 00 8E [12:37:32]Write i2c OK [12:37:32]MH_I2C_Read... [12:37:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:32]Read from MH i2c: E2 [12:37:32]MH_I2C_Read... [12:37:32]Read from MH i2c: E2 03 00 [12:37:32]MH_I2C_Read... [12:37:32]Read from MH i2c: E2 03 00 46 26 00 90 00 E0 [12:37:32]RAPDU: 90 00 [12:37:32]wFMCommunicate OK [12:37:32]wFMCommunicate request_size=7 [12:37:32]MH_SAM_APDU [12:37:32]CAPDU: 80 0D 02 02 02 A2 2D [12:37:32]Write to MH i2c: E2 0A 00 47 26 80 0D 02 02 02 00 A2 2D 00 00 BA [12:37:32]Write i2c OK [12:37:32]MH_I2C_Read... [12:37:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:32]Read from MH i2c: E2 [12:37:32]MH_I2C_Read... [12:37:32]Read from MH i2c: E2 03 00 [12:37:32]MH_I2C_Read... [12:37:32]Read from MH i2c: E2 03 00 47 26 00 90 00 E1 [12:37:32]RAPDU: 90 00 [12:37:32]wFMCommunicate OK [12:37:32]wFMCommunicate request_size=4 [12:37:32]MH_SAM_APDU [12:37:32]CAPDU: 80 0D 03 02 [12:37:32]Write to MH i2c: E2 08 00 48 26 80 0D 03 02 00 00 00 00 E9 [12:37:32]Write i2c OK [12:37:32]MH_I2C_Read... [12:37:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:32]Read from MH i2c: E2 [12:37:32]MH_I2C_Read... [12:37:32]Read from MH i2c: E2 0B 00 [12:37:32]MH_I2C_Read... [12:37:32]Read from MH i2c: E2 0B 00 48 26 00 BE 06 9E 15 89 3A 66 AC 90 00 36 [12:37:32]RAPDU: BE 06 9E 15 89 3A 66 AC 90 00 [12:37:32]wFMCommunicate OK [12:37:32]SAM_PROTO_SignData done [12:37:32]FM_MakeSignedData done [12:37:32]CreateOFDProtocolMessage [12:37:32]wFMCommunicate request_size=4 [12:37:32]MH_SAM_APDU [12:37:32]CAPDU: 80 11 00 00 [12:37:32]Write to MH i2c: E2 08 00 49 26 80 11 00 00 00 00 00 00 E9 [12:37:32]Write i2c OK [12:37:32]MH_I2C_Read... [12:37:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:32]Read from MH i2c: E2 [12:37:32]MH_I2C_Read... [12:37:32]Read from MH i2c: E2 17 00 [12:37:32]MH_I2C_Read... [12:37:32]Read from MH i2c: E2 17 00 49 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 44 [12:37:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:37:32]wFMCommunicate OK [12:37:32]CreateOFDProtocolMessage done [12:37:32]OFDSenderStorePacket 118479 [12:37:32]StoreOFDPacket docnum=118479 [12:37:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 49 AF 04 01 3C F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 8D 3B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CF CE 01 00 35 04 06 00 DB 08 0D 72 A2 2D BE 06 9E 15 89 3A 66 AC [12:37:32]CheckFolder [12:37:32]dirname=/storage/ofd_packets [12:37:32]CheckFolder done [12:37:32]ProducePacketName [12:37:32]name=ofd_packets/00118479 [12:37:32]NVStorageSaveData ofd_packets/00118479 [12:37:32]File name is /storage/ofd_packets/00118479 [12:37:32]Write 298 bytes [12:37:32]NVStorageSaveData done [12:37:32]OFDSenderStorePacket done [12:37:32]KKMCreateOFDPacket done [12:37:32]NVStorageSaveData kkm_last_timestamp [12:37:32]File name is /storage/kkm_last_timestamp [12:37:32]Write 4 bytes [12:37:32]NVStorageSaveData done [12:37:32]ExternCall_PrintAddStr [12:37:32]wPrintStart [12:37:32]Write to MH i2c: 01 00 00 4A 26 70 [12:37:32]Write i2c OK [12:37:32]MH_I2C_Read... [12:37:32]Read from MH i2c: 01 [12:37:32]MH_I2C_Read... [12:37:32]Read from MH i2c: 01 07 00 [12:37:32]MH_I2C_Read... [12:37:32]Read from MH i2c: 01 07 00 4A 26 00 00 00 00 00 FF 0F 85 [12:37:32]RasterBufferAndPrint [12:37:32]line Счет N : (1)949349 [12:37:32]line ИНН: 02508201610067 [12:37:32]line Контрольно-Кассовый Чек [12:37:32]line ПРОДАЖА [12:37:32]line ТРК (МРК, ГНК) : 44 [12:37:32]line Товар: 2710194800 [12:37:32]line ДТ-К-5 [12:37:32]line 13.130 * 76.20 [12:37:32]line = 1000.51 [12:37:32]line НДС 12% НСП 1% [12:37:32]line > о реализуемом товаре [12:37:32]line ОКРУГЛЕНИЕ: -0.51 [12:37:32]line ИТОГО: 1000.00 [12:37:32]line Внесено: 1000.00 [12:37:32]line СДАЧА: 0.00 [12:37:32]line НСП 1% : 8.85 [12:37:32]line НДС 12% : 106.25 [12:37:32]line Наличными: 1000.00 [12:37:32]line Безнал.: 0.00 [12:37:32]line Место: АЗС № 134 "Партнер Нефть" [12:37:32]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:37:32]line СНО: Общий режим [12:37:32]line Чек 148 28.07.2024 12:37 [12:37:32]line Смена: 433 ФФД: 1.0 [12:37:32]line ЗНМ: 0300000044 [12:37:32]line РНМ: 0000000000092660 [12:37:32]line Версия ККМ: 001 [12:37:32]line ФМ: 0000000000874939 [12:37:32]line ФД: 118479 [12:37:32]line ФПД: 240827631837741 [12:37:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123733&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118479&fm=240827631837741&tin=02508201610067®Number=0000000000092660&sum=100000 [12:37:32]written 0, free lines is 4095 [12:37:32]OFD Sender: Processing packet 118479 [packets to send 86, broken 85] [12:37:32]ProducePacketName [12:37:32]name=ofd_packets/00118479 [12:37:32]OFD Sender: To server: pG, [12:37:32]CommunicateWithHost lk.salyk.kg:30040 [12:37:32]ConnectInit lk.salyk.kg [12:37:32]Connected sock=10 [12:37:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 49 AF 04 01 3C F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 8D 3B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CF CE 01 00 35 04 06 00 DB 08 0D 72 A2 2D BE 06 9E 15 89 3A 66 AC [12:37:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 DC 14 47 00 86 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 39 33 39 10 04 04 00 CF CE 01 00 F4 03 04 00 1D E9 A5 66 B6 04 01 00 00 0E D5 FF 05 4E 96 8D 87 [12:37:32]CommunicateWithHost err = 0 [12:37:32]CheckOFDResponse [12:37:32]1017 (14) - 77093643461234 [12:37:32]1041 (16) - 0000000000874939 [12:37:32]1040 (4) - 118479 [12:37:32]1012 (4) - 28.07.2024 06:45 [12:37:32]1206 (1) - 0 [12:37:32]OFD Sender: Remove packet 118479 [12:37:32]ProducePacketName [12:37:32]name=ofd_packets/00118479 [12:37:32]NVStorageDeleteData [12:37:32]Write to MH i2c: 01 00 00 74 26 9A [12:37:32]Write i2c OK [12:37:32]MH_I2C_Read... [12:37:32]Read from MH i2c: 01 [12:37:32]MH_I2C_Read... [12:37:32]Read from MH i2c: 01 07 00 [12:37:32]MH_I2C_Read... [12:37:32]Read from MH i2c: 01 07 00 74 26 00 00 00 00 00 D8 0C 85 [12:37:32]RasterBufferAndPrint [12:37:32]line [12:37:32]line [12:37:32]line [12:37:32]line [12:37:32]line [12:37:32]written 0, free lines is 3295 [12:37:32]MH_Cut [12:37:32]Write to MH i2c: D1 01 00 7B 26 01 73 [12:37:32]Write i2c OK [12:37:32]MH_I2C_Read... [12:37:32]Read from MH i2c: D1 [12:37:32]MH_I2C_Read... [12:37:32]Read from MH i2c: D1 01 00 [12:37:32]MH_I2C_Read... [12:37:32]Read from MH i2c: D1 01 00 7B 26 00 72 [12:37:32]Write to MH i2c: 01 00 00 7C 26 A2 [12:37:32]Write i2c OK [12:37:32]MH_I2C_Read... [12:37:33]OFD Sender: No OFD packet to send [12:37:33]*** Cut start [12:37:33]*** Partial cut [12:37:33]*** CUTSNS_PIN = 1 [12:37:33]*** CUTSNS_PIN = 0 [12:37:33]*** Brake cut motor [12:37:34]Read from MH i2c: 01 [12:37:34]MH_I2C_Read... [12:37:34]*** Stop cut motor [12:37:34]*** Cut end [12:37:34]Read from MH i2c: 01 07 00 [12:37:34]MH_I2C_Read... [12:37:34]Read from MH i2c: 01 07 00 7C 26 00 00 00 00 00 FF 0F B7 [12:37:34]process_action close_receipt done [12:37:34]requested_data is exist [12:37:34]produce_requested_data [12:37:34]requested_item fm.sn is exist - process it [12:37:34]wFMCommunicate request_size=4 [12:37:34]MH_SAM_APDU [12:37:34]CAPDU: 80 11 00 00 [12:37:34]Write to MH i2c: E2 08 00 7D 26 80 11 00 00 00 00 00 00 1D [12:37:34]Write i2c OK [12:37:34]MH_I2C_Read... [12:37:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:34]Read from MH i2c: E2 [12:37:34]MH_I2C_Read... [12:37:34]Read from MH i2c: E2 17 00 [12:37:34]MH_I2C_Read... [12:37:34]Read from MH i2c: E2 17 00 7D 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 78 [12:37:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:37:34]wFMCommunicate OK [12:37:34]requested_item fd.num is exist - process it [12:37:34]SAM_PROTO_GetFieldsCounters [12:37:34]wFMCommunicate request_size=4 [12:37:34]MH_SAM_APDU [12:37:34]CAPDU: 80 13 00 00 [12:37:34]Write to MH i2c: E2 08 00 7E 26 80 13 00 00 00 00 00 00 20 [12:37:34]Write i2c OK [12:37:34]MH_I2C_Read... [12:37:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:34]Read from MH i2c: E2 [12:37:34]MH_I2C_Read... [12:37:34]Read from MH i2c: E2 62 00 [12:37:34]MH_I2C_Read... [12:37:34]Read from MH i2c: E2 62 00 7E 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CF CE 01 00 0E 04 04 00 B1 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 53 [12:37:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CF CE 01 00 0E 04 04 00 B1 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 [12:37:34]wFMCommunicate OK [12:37:34]SAM_PROTO_GetFieldsCounters done [12:37:34]requested_item shift.num is exist - process it [12:37:34]requested_item shift.opened is exist - process it [12:37:34]req_shift_opened [12:37:34]FM_GetShiftState [12:37:34]SAM_PROTO_GetShiftState [12:37:34]wFMCommunicate request_size=4 [12:37:34]MH_SAM_APDU [12:37:34]CAPDU: 80 13 01 00 [12:37:34]Write to MH i2c: E2 08 00 7F 26 80 13 01 00 00 00 00 00 22 [12:37:34]Write i2c OK [12:37:34]MH_I2C_Read... [12:37:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:34]Read from MH i2c: E2 [12:37:34]MH_I2C_Read... [12:37:34]Read from MH i2c: E2 0E 00 [12:37:34]MH_I2C_Read... [12:37:34]Read from MH i2c: E2 0E 00 7F 26 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 F9 [12:37:34]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [12:37:34]wFMCommunicate OK [12:37:34]SAM_PROTO_GetShiftState done [12:37:34]FM_GetShiftState done [12:37:34]req_shift_opened done [12:37:34]requested_item shift.open_date is exist - process it [12:37:34]req_shift_open_date [12:37:34]req_shift_open_date done [12:37:34]produce_requested_data done [12:37:34]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118479,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [12:37:34]process_action_free close_receipt [12:37:34]json_value_free [12:37:34]json_value_free done [12:37:34]process_json_proto returns [12:37:34]Send response to host [12:37:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118479,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [12:37:34]free response buf [12:37:34]execute_script done [12:37:34]execute_script returns [12:37:34]free content buf [12:37:34]Sock 7.Close socket [12:37:34]Sock 7.Thread stoped [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:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:11]accept exits with 9 [12:40:11]New connection [12:40:11]New thread 3067067748 created [12:40:11]Thread 3066924388 joined [12:40:11]Waiting for new connection... [12:40:11] Sock 9.Parse request [12:40:11]Sock 9.Check first char [12:40:11]Sock 9.First char is OK [12:40:11]request: POST /json_proto HTTP/1.0 [12:40:11]Method: POST [12:40:11]URL: /json_proto [12:40:11]Method is POST - this is cgi request [12:40:11]url: /json_proto [12:40:11]query_string will be loaded in cgi processing [12:40:11]execute_cgi json_proto POST (null) [12:40:11]execute_cgi path=json_proto method=POST [12:40:11]POST find Content-Length [12:40:11]Host: 172.17.45.7:8080 [12:40:11]Content-Length: 677 [12:40:11]Content-Type: application/json [12:40:11] [12:40:11]POST finish read [12:40:11]Found Content-Length = 677 [12:40:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:11]execute_script... [12:40: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)949350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:11]POST & json_proto [12:40:11]process_json_proto [12:40:11]json parsed OK: [12:40:11]protocol is kg_v1.0 [12:40:11]action value=close_receipt [12:40:11]process_action close_receipt [12:40:11]cmd_close_receipt [12:40:11]MH_GetDate [12:40:11]Write to MH i2c: F0 00 00 80 26 95 [12:40:11]Write i2c OK [12:40:11]MH_I2C_Read... [12:40:11]Read from MH i2c: F0 [12:40:11]MH_I2C_Read... [12:40:11]Read from MH i2c: F0 09 00 [12:40:11]MH_I2C_Read... [12:40:11]Read from MH i2c: F0 09 00 80 26 00 2E 3C A6 66 90 0F 3E 66 57 [12:40:11]GetLastDocTimeStamp 1722170253 [12:40:11]current date 1722170414 [12:40:11]FM_GetShiftState [12:40:11]SAM_PROTO_GetShiftState [12:40:11]wFMCommunicate request_size=4 [12:40:11]MH_SAM_APDU [12:40:11]CAPDU: 80 13 01 00 [12:40:11]Write to MH i2c: E2 08 00 81 26 80 13 01 00 00 00 00 00 24 [12:40:11]Write i2c OK [12:40:11]MH_I2C_Read... [12:40:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:11]Read from MH i2c: E2 [12:40:11]MH_I2C_Read... [12:40:11]Read from MH i2c: E2 0E 00 [12:40:11]MH_I2C_Read... [12:40:11]Read from MH i2c: E2 0E 00 81 26 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 FB [12:40:11]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [12:40:11]wFMCommunicate OK [12:40:11]SAM_PROTO_GetShiftState done [12:40:11]FM_GetShiftState done [12:40:11]opened in 1722125364 [12:40:11]opened+sec_in_day 1722211764 [12:40:11]quantity*price = 50036 [12:40:11]sum+1 = 50037 [12:40:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 149 28.07.2024 12:40 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118480 ФПД: 148551343161676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T124014&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118480&fm=148551343161676&tin=02508201610067®Number=0000000000092660&sum=50000 [12:40:12]StoreToDocumentArchive [12:40:12]shift 433 fd 118480 [12:40:12]save to /storage/0433/doc_00118480 [12:40:12]save last doc name /storage/0433/doc_00118480 to /storage/kkm_last_doc_name [12:40:12]save OK [12:40:12]Clear old archive folders... [12:40:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:40:12]tlvbuf is 0015CAE0 [12:40:12]SAM_PROTO_ClearQueue [12:40:12]wFMCommunicate request_size=4 [12:40:12]MH_SAM_APDU [12:40:12]CAPDU: 80 09 00 00 [12:40:12]Write to MH i2c: E2 08 00 8E 26 80 09 00 00 00 00 00 00 26 [12:40:12]Write i2c OK [12:40:12]MH_I2C_Read... [12:40:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:12]Read from MH i2c: E2 [12:40:12]MH_I2C_Read... [12:40:12]Read from MH i2c: E2 03 00 [12:40:12]MH_I2C_Read... [12:40:12]Read from MH i2c: E2 03 00 8E 26 00 90 00 28 [12:40:12]RAPDU: 90 00 [12:40:12]wFMCommunicate OK [12:40:12]SAM_PROTO_ClearQueue done [12:40:12]KKMCreateOFDPacket [12:40:12]OFDProtocolAddRootSTLVToBuf [12:40:12]FM_MakeSignedData [12:40:12]FM_MakeSignedData [12:40:12]SAM_PROTO_SignData [12:40:12]wFMCommunicate request_size=4 [12:40:12]MH_SAM_APDU [12:40:12]CAPDU: 80 0D 01 02 [12:40:12]Write to MH i2c: E2 08 00 8F 26 80 0D 01 02 00 00 00 00 2E [12:40:12]Write i2c OK [12:40:12]MH_I2C_Read... [12:40:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:12]Read from MH i2c: E2 [12:40:12]MH_I2C_Read... [12:40:12]Read from MH i2c: E2 03 00 [12:40:12]MH_I2C_Read... [12:40:12]Read from MH i2c: E2 03 00 8F 26 00 90 00 29 [12:40:12]RAPDU: 90 00 [12:40:12]wFMCommunicate OK [12:40:12]wFMCommunicate request_size=255 [12:40:12]MH_SAM_APDU [12:40: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 2E 3C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D0 CE 01 00 35 04 06 00 87 [12:40:12]Write to MH i2c: E2 02 01 90 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 2E 3C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D0 CE 01 00 35 04 06 00 87 00 00 95 [12:40:12]Write i2c OK [12:40:12]MH_I2C_Read... [12:40:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:13]Read from MH i2c: E2 [12:40:13]MH_I2C_Read... [12:40:13]Read from MH i2c: E2 03 00 [12:40:13]MH_I2C_Read... [12:40:13]Read from MH i2c: E2 03 00 90 26 00 90 00 2A [12:40:13]RAPDU: 90 00 [12:40:13]wFMCommunicate OK [12:40:13]wFMCommunicate request_size=10 [12:40:13]MH_SAM_APDU [12:40:13]CAPDU: 80 0D 02 02 05 1B 4E 0A 41 4C [12:40:13]Write to MH i2c: E2 0D 00 91 26 80 0D 02 02 05 00 1B 4E 0A 41 4C 00 00 3B [12:40:13]Write i2c OK [12:40:13]MH_I2C_Read... [12:40:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:13]Read from MH i2c: E2 [12:40:13]MH_I2C_Read... [12:40:13]Read from MH i2c: E2 03 00 [12:40:13]MH_I2C_Read... [12:40:13]Read from MH i2c: E2 03 00 91 26 00 90 00 2B [12:40:13]RAPDU: 90 00 [12:40:13]wFMCommunicate OK [12:40:13]wFMCommunicate request_size=4 [12:40:13]MH_SAM_APDU [12:40:13]CAPDU: 80 0D 03 02 [12:40:13]Write to MH i2c: E2 08 00 92 26 80 0D 03 02 00 00 00 00 33 [12:40:13]Write i2c OK [12:40:13]MH_I2C_Read... [12:40:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:13]Read from MH i2c: E2 [12:40:13]MH_I2C_Read... [12:40:13]Read from MH i2c: E2 0B 00 [12:40:13]MH_I2C_Read... [12:40:13]Read from MH i2c: E2 0B 00 92 26 00 47 9B FB 1B A8 16 C1 9F 90 00 4A [12:40:13]RAPDU: 47 9B FB 1B A8 16 C1 9F 90 00 [12:40:13]wFMCommunicate OK [12:40:13]SAM_PROTO_SignData done [12:40:13]FM_MakeSignedData done [12:40:13]CreateOFDProtocolMessage [12:40:13]wFMCommunicate request_size=4 [12:40:13]MH_SAM_APDU [12:40:13]CAPDU: 80 11 00 00 [12:40:13]Write to MH i2c: E2 08 00 93 26 80 11 00 00 00 00 00 00 33 [12:40:13]Write i2c OK [12:40:13]MH_I2C_Read... [12:40:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:13]Read from MH i2c: E2 [12:40:13]MH_I2C_Read... [12:40:13]Read from MH i2c: E2 17 00 [12:40:13]MH_I2C_Read... [12:40:13]Read from MH i2c: E2 17 00 93 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8E [12:40:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:40:13]wFMCommunicate OK [12:40:13]CreateOFDProtocolMessage done [12:40:13]OFDSenderStorePacket 118480 [12:40:13]StoreOFDPacket docnum=118480 [12:40:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C4 D8 07 01 C2 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 2E 3C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D0 CE 01 00 35 04 06 00 87 1B 4E 0A 41 4C 47 9B FB 1B A8 16 C1 9F [12:40:13]CheckFolder [12:40:13]dirname=/storage/ofd_packets [12:40:13]CheckFolder done [12:40:13]ProducePacketName [12:40:13]name=ofd_packets/00118480 [12:40:13]NVStorageSaveData ofd_packets/00118480 [12:40:13]File name is /storage/ofd_packets/00118480 [12:40:13]Write 301 bytes [12:40:13]NVStorageSaveData done [12:40:13]OFDSenderStorePacket done [12:40:13]KKMCreateOFDPacket done [12:40:13]NVStorageSaveData kkm_last_timestamp [12:40:13]File name is /storage/kkm_last_timestamp [12:40:13]Write 4 bytes [12:40:13]NVStorageSaveData done [12:40:13]ExternCall_PrintAddStr [12:40:13]wPrintStart [12:40:13]Write to MH i2c: 01 00 00 94 26 BA [12:40:13]Write i2c OK [12:40:13]MH_I2C_Read... [12:40:13]Read from MH i2c: 01 [12:40:13]MH_I2C_Read... [12:40:13]Read from MH i2c: 01 07 00 [12:40:13]MH_I2C_Read... [12:40:13]Read from MH i2c: 01 07 00 94 26 00 00 00 00 00 FF 0F CF [12:40:13]RasterBufferAndPrint [12:40:13]line Счет N : (1)949350 [12:40:13]line ИНН: 02508201610067 [12:40:13]line Контрольно-Кассовый Чек [12:40:13]line ПРОДАЖА [12:40:13]line ТРК (МРК, ГНК) : 51 [12:40:13]line Товар: 2710124130 [12:40:13]line Аи-92-К-4 [12:40:13]line 7.380 * 67.80 [12:40:13]line = 500.36 [12:40:13]line НДС 12% НСП 1% [12:40:13]line > о реализуемом товаре [12:40:13]line ОКРУГЛЕНИЕ: -0.36 [12:40:13]line ИТОГО: 500.00 [12:40:13]line Внесено: 500.00 [12:40:13]line СДАЧА: 0.00 [12:40:13]line НСП 1% : 4.43 [12:40:13]line НДС 12% : 53.14 [12:40:13]line Наличными: 500.00 [12:40:13]line Безнал.: 0.00 [12:40:13]line Место: АЗС № 134 "Партнер Нефть" [12:40:13]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:40:13]line СНО: Общий режим [12:40:13]line Чек 149 28.07.2024 12:40 [12:40:13]line Смена: 433 ФФД: 1.0 [12:40:13]line ЗНМ: 0300000044 [12:40:13]line РНМ: 0000000000092660 [12:40:13]line Версия ККМ: 001 [12:40:13]line ФМ: 0000000000874939 [12:40:13]line ФД: 118480 [12:40:13]line ФПД: 148551343161676 [12:40:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T124014&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118480&fm=148551343161676&tin=02508201610067®Number=0000000000092660&sum=50000 [12:40:13]written 0, free lines is 4095 [12:40:13]OFD Sender: Processing packet 118480 [packets to send 86, broken 85] [12:40:13]ProducePacketName [12:40:13]name=ofd_packets/00118480 [12:40:13]OFD Sender: To server: pG, [12:40:13]CommunicateWithHost lk.salyk.kg:30040 [12:40:13]ConnectInit lk.salyk.kg [12:40:13]Connected sock=10 [12:40:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C4 D8 07 01 C2 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 2E 3C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D0 CE 01 00 35 04 06 00 87 1B 4E 0A 41 4C 47 9B FB 1B A8 16 C1 9F [12:40:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B3 77 47 00 22 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 39 33 39 10 04 04 00 D0 CE 01 00 F4 03 04 00 BE E9 A5 66 B6 04 01 00 00 3C 7B 4A E4 7D A3 64 C7 [12:40:13]CommunicateWithHost err = 0 [12:40:13]CheckOFDResponse [12:40:13]1017 (14) - 77093643461234 [12:40:13]1041 (16) - 0000000000874939 [12:40:13]1040 (4) - 118480 [12:40:13]1012 (4) - 28.07.2024 06:48 [12:40:13]1206 (1) - 0 [12:40:13]OFD Sender: Remove packet 118480 [12:40:13]ProducePacketName [12:40:13]name=ofd_packets/00118480 [12:40:13]NVStorageDeleteData [12:40:14]Write to MH i2c: 01 00 00 BE 26 E4 [12:40:14]Write i2c OK [12:40:14]MH_I2C_Read... [12:40:14]Read from MH i2c: 01 [12:40:14]MH_I2C_Read... [12:40:14]Read from MH i2c: 01 07 00 [12:40:14]MH_I2C_Read... [12:40:14]Read from MH i2c: 01 07 00 BE 26 00 00 00 00 00 D3 0C CA [12:40:14]RasterBufferAndPrint [12:40:14]line [12:40:14]line [12:40:14]line [12:40:14]line [12:40:14]line [12:40:14]written 0, free lines is 3289 [12:40:14]MH_Cut [12:40:14]Write to MH i2c: D1 01 00 C5 26 01 BD [12:40:14]Write i2c OK [12:40:14]MH_I2C_Read... [12:40:14]Read from MH i2c: D1 [12:40:14]MH_I2C_Read... [12:40:14]Read from MH i2c: D1 01 00 [12:40:14]MH_I2C_Read... [12:40:14]Read from MH i2c: D1 01 00 C5 26 00 BC [12:40:14]Write to MH i2c: 01 00 00 C6 26 EC [12:40:14]Write i2c OK [12:40:14]MH_I2C_Read... [12:40:14]OFD Sender: No OFD packet to send [12:40:14]*** Cut start [12:40:14]*** Partial cut [12:40:14]*** CUTSNS_PIN = 1 [12:40:14]*** CUTSNS_PIN = 0 [12:40:15]*** Brake cut motor [12:40:15]Read from MH i2c: 01 [12:40:15]MH_I2C_Read... [12:40:15]*** Stop cut motor [12:40:15]*** Cut end [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 C6 26 00 00 00 00 00 FF 0F 01 [12:40:15]process_action close_receipt done [12:40:15]requested_data is exist [12:40:15]produce_requested_data [12:40:15]requested_item fm.sn is exist - process it [12:40:15]wFMCommunicate request_size=4 [12:40:15]MH_SAM_APDU [12:40:15]CAPDU: 80 11 00 00 [12:40:15]Write to MH i2c: E2 08 00 C7 26 80 11 00 00 00 00 00 00 67 [12:40:15]Write i2c OK [12:40:15]MH_I2C_Read... [12:40:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:15]Read from MH i2c: E2 [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: E2 17 00 [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: E2 17 00 C7 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C2 [12:40:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:40:15]wFMCommunicate OK [12:40:15]requested_item fd.num is exist - process it [12:40:15]SAM_PROTO_GetFieldsCounters [12:40:15]wFMCommunicate request_size=4 [12:40:15]MH_SAM_APDU [12:40:15]CAPDU: 80 13 00 00 [12:40:15]Write to MH i2c: E2 08 00 C8 26 80 13 00 00 00 00 00 00 6A [12:40:15]Write i2c OK [12:40:15]MH_I2C_Read... [12:40:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:15]Read from MH i2c: E2 [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: E2 62 00 [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: E2 62 00 C8 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D0 CE 01 00 0E 04 04 00 B1 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 A1 [12:40: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D0 CE 01 00 0E 04 04 00 B1 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 [12:40:15]wFMCommunicate OK [12:40:15]SAM_PROTO_GetFieldsCounters done [12:40:15]requested_item shift.num is exist - process it [12:40:15]requested_item shift.opened is exist - process it [12:40:15]req_shift_opened [12:40:15]FM_GetShiftState [12:40:15]SAM_PROTO_GetShiftState [12:40:15]wFMCommunicate request_size=4 [12:40:15]MH_SAM_APDU [12:40:15]CAPDU: 80 13 01 00 [12:40:15]Write to MH i2c: E2 08 00 C9 26 80 13 01 00 00 00 00 00 6C [12:40:15]Write i2c OK [12:40:15]MH_I2C_Read... [12:40:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:15]Read from MH i2c: E2 [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: E2 0E 00 [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: E2 0E 00 C9 26 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 43 [12:40:15]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [12:40:15]wFMCommunicate OK [12:40:15]SAM_PROTO_GetShiftState done [12:40:15]FM_GetShiftState done [12:40:15]req_shift_opened done [12:40:15]requested_item shift.open_date is exist - process it [12:40:15]req_shift_open_date [12:40:15]req_shift_open_date done [12:40:15]produce_requested_data done [12:40:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118480,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [12:40:15]process_action_free close_receipt [12:40:15]json_value_free [12:40:15]json_value_free done [12:40:15]process_json_proto returns [12:40:15]Send response to host [12:40:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118480,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [12:40:15]free response buf [12:40:15]execute_script done [12:40:15]execute_script returns [12:40:15]free content buf [12:40:15]Sock 9.Close socket [12:40:15]Sock 9.Thread stoped [12:40:19]OFD Sender: No OFD packet to send [12:40:24]OFD Sender: No OFD packet to send [12:40:29]OFD Sender: No OFD packet to send [12:40:34]OFD Sender: No OFD packet to send [12:40:39]OFD Sender: No OFD packet to send [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:14]OFD Sender: No OFD packet to send [12:41:19]OFD Sender: No OFD packet to send [12:41:24]OFD Sender: No OFD packet to send [12:41:29]OFD Sender: No OFD packet to send [12:41:34]OFD Sender: No OFD packet to send [12:41:39]OFD Sender: No OFD packet to send [12:41:44]OFD Sender: No OFD packet to send [12:41:49]OFD Sender: No OFD packet to send [12:41:54]OFD Sender: No OFD packet to send [12:41:59]OFD Sender: No OFD packet to send [12:42:04]OFD Sender: No OFD packet to send [12:42:09]OFD Sender: No OFD packet to send [12:42:14]OFD Sender: No OFD packet to send [12:42:19]OFD Sender: No OFD packet to send [12:42:24]OFD Sender: No OFD packet to send [12:42:29]OFD Sender: No OFD packet to send [12:42:34]OFD Sender: No OFD packet to send [12:42:39]OFD Sender: No OFD packet to send [12:42:44]OFD Sender: No OFD packet to send [12:42:49]OFD Sender: No OFD packet to send [12:42:54]OFD Sender: No OFD packet to send [12:42:59]OFD Sender: No OFD packet to send [12:43:04]OFD Sender: No OFD packet to send [12:43:09]OFD Sender: No OFD packet to send [12:43:14]OFD Sender: No OFD packet to send [12:43:19]OFD Sender: No OFD packet to send [12:43:24]OFD Sender: No OFD packet to send [12:43:25]accept exits with 7 [12:43:25]New connection [12:43:25]New thread 3066924388 created [12:43:25]Thread 3067067748 joined [12:43:25]Waiting for new connection... [12:43:25] Sock 7.Parse request [12:43:25]Sock 7.Check first char [12:43:25]Sock 7.First char is OK [12:43:25]request: POST /json_proto HTTP/1.0 [12:43:25]Method: POST [12:43:25]URL: /json_proto [12:43:25]Method is POST - this is cgi request [12:43:25]url: /json_proto [12:43:25]query_string will be loaded in cgi processing [12:43:25]execute_cgi json_proto POST (null) [12:43:25]execute_cgi path=json_proto method=POST [12:43:25]POST find Content-Length [12:43:25]Host: 172.17.45.7:8080 [12:43:25]Content-Length: 677 [12:43:25]Content-Type: application/json [12:43:25] [12:43:25]POST finish read [12:43:25]Found Content-Length = 677 [12:43:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:25]execute_script... [12:43: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)949351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:25]POST & json_proto [12:43:25]process_json_proto [12:43:25]json parsed OK: [12:43:25]protocol is kg_v1.0 [12:43:25]action value=close_receipt [12:43:25]process_action close_receipt [12:43:25]cmd_close_receipt [12:43:25]MH_GetDate [12:43:25]Write to MH i2c: F0 00 00 CA 26 DF [12:43:25]Write i2c OK [12:43:25]MH_I2C_Read... [12:43:25]Read from MH i2c: F0 [12:43:25]MH_I2C_Read... [12:43:25]Read from MH i2c: F0 09 00 [12:43:25]MH_I2C_Read... [12:43:25]Read from MH i2c: F0 09 00 CA 26 00 F0 3C A6 66 90 0F 3E 66 63 [12:43:25]GetLastDocTimeStamp 1722170414 [12:43:25]current date 1722170608 [12:43:25]FM_GetShiftState [12:43:25]SAM_PROTO_GetShiftState [12:43:25]wFMCommunicate request_size=4 [12:43:25]MH_SAM_APDU [12:43:25]CAPDU: 80 13 01 00 [12:43:25]Write to MH i2c: E2 08 00 CB 26 80 13 01 00 00 00 00 00 6E [12:43:25]Write i2c OK [12:43:25]MH_I2C_Read... [12:43:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:25]Read from MH i2c: E2 [12:43:25]MH_I2C_Read... [12:43:25]Read from MH i2c: E2 0E 00 [12:43:25]MH_I2C_Read... [12:43:25]Read from MH i2c: E2 0E 00 CB 26 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 45 [12:43:25]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [12:43:25]wFMCommunicate OK [12:43:25]SAM_PROTO_GetShiftState done [12:43:25]FM_GetShiftState done [12:43:25]opened in 1722125364 [12:43:25]opened+sec_in_day 1722211764 [12:43:25]quantity*price = 50036 [12:43:25]sum+1 = 50037 [12:43:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 150 28.07.2024 12:43 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118481 ФПД: 87835998351112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T124328&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118481&fm=87835998351112&tin=02508201610067®Number=0000000000092660&sum=50000 [12:43:26]StoreToDocumentArchive [12:43:26]shift 433 fd 118481 [12:43:26]save to /storage/0433/doc_00118481 [12:43:26]save last doc name /storage/0433/doc_00118481 to /storage/kkm_last_doc_name [12:43:26]save OK [12:43:26]Clear old archive folders... [12:43:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:43:26]tlvbuf is 0015C920 [12:43:26]SAM_PROTO_ClearQueue [12:43:26]wFMCommunicate request_size=4 [12:43:26]MH_SAM_APDU [12:43:26]CAPDU: 80 09 00 00 [12:43:26]Write to MH i2c: E2 08 00 D8 26 80 09 00 00 00 00 00 00 70 [12:43:26]Write i2c OK [12:43:26]MH_I2C_Read... [12:43:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:26]Read from MH i2c: E2 [12:43:26]MH_I2C_Read... [12:43:26]Read from MH i2c: E2 03 00 [12:43:26]MH_I2C_Read... [12:43:26]Read from MH i2c: E2 03 00 D8 26 00 90 00 72 [12:43:26]RAPDU: 90 00 [12:43:26]wFMCommunicate OK [12:43:26]SAM_PROTO_ClearQueue done [12:43:26]KKMCreateOFDPacket [12:43:26]OFDProtocolAddRootSTLVToBuf [12:43:26]FM_MakeSignedData [12:43:26]FM_MakeSignedData [12:43:26]SAM_PROTO_SignData [12:43:26]wFMCommunicate request_size=4 [12:43:26]MH_SAM_APDU [12:43:26]CAPDU: 80 0D 01 02 [12:43:26]Write to MH i2c: E2 08 00 D9 26 80 0D 01 02 00 00 00 00 78 [12:43:26]Write i2c OK [12:43:26]MH_I2C_Read... [12:43:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:26]Read from MH i2c: E2 [12:43:26]MH_I2C_Read... [12:43:26]Read from MH i2c: E2 03 00 [12:43:26]MH_I2C_Read... [12:43:26]Read from MH i2c: E2 03 00 D9 26 00 90 00 73 [12:43:26]RAPDU: 90 00 [12:43:26]wFMCommunicate OK [12:43:26]wFMCommunicate request_size=255 [12:43:26]MH_SAM_APDU [12:43: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 F0 3C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D1 CE 01 00 35 04 06 00 4F [12:43:26]Write to MH i2c: E2 02 01 DA 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 F0 3C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D1 CE 01 00 35 04 06 00 4F 00 00 6B [12:43:26]Write i2c OK [12:43:26]MH_I2C_Read... [12:43:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:27]Read from MH i2c: E2 [12:43:27]MH_I2C_Read... [12:43:27]Read from MH i2c: E2 03 00 [12:43:27]MH_I2C_Read... [12:43:27]Read from MH i2c: E2 03 00 DA 26 00 90 00 74 [12:43:27]RAPDU: 90 00 [12:43:27]wFMCommunicate OK [12:43:27]wFMCommunicate request_size=10 [12:43:27]MH_SAM_APDU [12:43:27]CAPDU: 80 0D 02 02 05 E2 E9 7A EF 08 [12:43:27]Write to MH i2c: E2 0D 00 DB 26 80 0D 02 02 05 00 E2 E9 7A EF 08 00 00 C1 [12:43:27]Write i2c OK [12:43:27]MH_I2C_Read... [12:43:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:27]Read from MH i2c: E2 [12:43:27]MH_I2C_Read... [12:43:27]Read from MH i2c: E2 03 00 [12:43:27]MH_I2C_Read... [12:43:27]Read from MH i2c: E2 03 00 DB 26 00 90 00 75 [12:43:27]RAPDU: 90 00 [12:43:27]wFMCommunicate OK [12:43:27]wFMCommunicate request_size=4 [12:43:27]MH_SAM_APDU [12:43:27]CAPDU: 80 0D 03 02 [12:43:27]Write to MH i2c: E2 08 00 DC 26 80 0D 03 02 00 00 00 00 7D [12:43:27]Write i2c OK [12:43:27]MH_I2C_Read... [12:43:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:27]Read from MH i2c: E2 [12:43:27]MH_I2C_Read... [12:43:27]Read from MH i2c: E2 0B 00 [12:43:27]MH_I2C_Read... [12:43:27]Read from MH i2c: E2 0B 00 DC 26 00 19 89 42 23 5D 17 AD 16 90 00 BC [12:43:27]RAPDU: 19 89 42 23 5D 17 AD 16 90 00 [12:43:27]wFMCommunicate OK [12:43:27]SAM_PROTO_SignData done [12:43:27]FM_MakeSignedData done [12:43:27]CreateOFDProtocolMessage [12:43:27]wFMCommunicate request_size=4 [12:43:27]MH_SAM_APDU [12:43:27]CAPDU: 80 11 00 00 [12:43:27]Write to MH i2c: E2 08 00 DD 26 80 11 00 00 00 00 00 00 7D [12:43:27]Write i2c OK [12:43:27]MH_I2C_Read... [12:43:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:27]Read from MH i2c: E2 [12:43:27]MH_I2C_Read... [12:43:27]Read from MH i2c: E2 17 00 [12:43:27]MH_I2C_Read... [12:43:27]Read from MH i2c: E2 17 00 DD 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D8 [12:43:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:43:27]wFMCommunicate OK [12:43:27]CreateOFDProtocolMessage done [12:43:27]OFDSenderStorePacket 118481 [12:43:27]StoreOFDPacket docnum=118481 [12:43:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 53 DA 07 01 A3 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 F0 3C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D1 CE 01 00 35 04 06 00 4F E2 E9 7A EF 08 19 89 42 23 5D 17 AD 16 [12:43:27]CheckFolder [12:43:27]dirname=/storage/ofd_packets [12:43:27]CheckFolder done [12:43:27]ProducePacketName [12:43:27]name=ofd_packets/00118481 [12:43:27]NVStorageSaveData ofd_packets/00118481 [12:43:27]File name is /storage/ofd_packets/00118481 [12:43:27]Write 301 bytes [12:43:27]NVStorageSaveData done [12:43:27]OFDSenderStorePacket done [12:43:27]KKMCreateOFDPacket done [12:43:27]NVStorageSaveData kkm_last_timestamp [12:43:27]File name is /storage/kkm_last_timestamp [12:43:27]Write 4 bytes [12:43:27]NVStorageSaveData done [12:43:27]ExternCall_PrintAddStr [12:43:27]wPrintStart [12:43:27]Write to MH i2c: 01 00 00 DE 26 04 [12:43:27]Write i2c OK [12:43:27]MH_I2C_Read... [12:43:27]Read from MH i2c: 01 [12:43:27]MH_I2C_Read... [12:43:27]Read from MH i2c: 01 07 00 [12:43:27]MH_I2C_Read... [12:43:27]Read from MH i2c: 01 07 00 DE 26 00 00 00 00 00 FF 0F 19 [12:43:27]RasterBufferAndPrint [12:43:27]line Счет N : (1)949351 [12:43:27]line ИНН: 02508201610067 [12:43:27]line Контрольно-Кассовый Чек [12:43:27]line ПРОДАЖА [12:43:27]line ТРК (МРК, ГНК) : 31 [12:43:27]line Товар: 2710124130 [12:43:27]line Аи-92-К-4 [12:43:27]line 7.380 * 67.80 [12:43:27]line = 500.36 [12:43:27]line НДС 12% НСП 1% [12:43:27]line > о реализуемом товаре [12:43:27]line ОКРУГЛЕНИЕ: -0.36 [12:43:27]line ИТОГО: 500.00 [12:43:27]line Внесено: 500.00 [12:43:27]line СДАЧА: 0.00 [12:43:27]line НСП 1% : 4.43 [12:43:27]line НДС 12% : 53.14 [12:43:27]line Наличными: 500.00 [12:43:27]line Безнал.: 0.00 [12:43:27]line Место: АЗС № 134 "Партнер Нефть" [12:43:27]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:43:27]line СНО: Общий режим [12:43:27]line Чек 150 28.07.2024 12:43 [12:43:27]line Смена: 433 ФФД: 1.0 [12:43:27]line ЗНМ: 0300000044 [12:43:27]line РНМ: 0000000000092660 [12:43:27]line Версия ККМ: 001 [12:43:27]line ФМ: 0000000000874939 [12:43:27]line ФД: 118481 [12:43:27]line ФПД: 87835998351112 [12:43:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T124328&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118481&fm=87835998351112&tin=02508201610067®Number=0000000000092660&sum=50000 [12:43:27]OFD Sender: Processing packet 118481 [packets to send 86, broken 85] [12:43:27]ProducePacketName [12:43:27]name=ofd_packets/00118481 [12:43:27]OFD Sender: To server: pG, [12:43:27]CommunicateWithHost lk.salyk.kg:30040 [12:43:27]ConnectInit lk.salyk.kg [12:43:27]written 0, free lines is 4095 [12:43:27]Connected sock=10 [12:43:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 53 DA 07 01 A3 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 F0 3C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D1 CE 01 00 35 04 06 00 4F E2 E9 7A EF 08 19 89 42 23 5D 17 AD 16 [12:43:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BB 76 47 00 29 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 39 33 39 10 04 04 00 D1 CE 01 00 F4 03 04 00 80 EA A5 66 B6 04 01 00 00 51 CF 7A 6A 98 45 BA C6 [12:43:27]CommunicateWithHost err = 0 [12:43:27]CheckOFDResponse [12:43:27]1017 (14) - 77093643461234 [12:43:27]1041 (16) - 0000000000874939 [12:43:27]1040 (4) - 118481 [12:43:27]1012 (4) - 28.07.2024 06:51 [12:43:27]1206 (1) - 0 [12:43:27]OFD Sender: Remove packet 118481 [12:43:27]ProducePacketName [12:43:27]name=ofd_packets/00118481 [12:43:27]NVStorageDeleteData [12:43:28]Write to MH i2c: 01 00 00 08 27 2F [12:43:28]Write i2c OK [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: 01 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: 01 07 00 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: 01 07 00 08 27 00 00 00 00 00 D4 0C 16 [12:43:28]RasterBufferAndPrint [12:43:28]line [12:43:28]line [12:43:28]line [12:43:28]line [12:43:28]line [12:43:28]written 0, free lines is 3292 [12:43:28]MH_Cut [12:43:28]Write to MH i2c: D1 01 00 0F 27 01 08 [12:43:28]Write i2c OK [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: D1 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: D1 01 00 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: D1 01 00 0F 27 00 07 [12:43:28]Write to MH i2c: 01 00 00 10 27 37 [12:43:28]Write i2c OK [12:43:28]MH_I2C_Read... [12:43:28]OFD Sender: No OFD packet to send [12:43:28]*** Cut start [12:43:28]*** Partial cut [12:43:28]*** CUTSNS_PIN = 1 [12:43:28]*** CUTSNS_PIN = 0 [12:43:29]*** Brake cut motor [12:43:29]Read from MH i2c: 01 [12:43:29]MH_I2C_Read... [12:43:29]*** Stop cut motor [12:43:29]*** Cut end [12:43:29]Read from MH i2c: 01 07 00 [12:43:29]MH_I2C_Read... [12:43:29]Read from MH i2c: 01 07 00 10 27 00 00 00 00 00 FF 0F 4C [12:43:29]process_action close_receipt done [12:43:29]requested_data is exist [12:43:29]produce_requested_data [12:43:29]requested_item fm.sn is exist - process it [12:43:29]wFMCommunicate request_size=4 [12:43:29]MH_SAM_APDU [12:43:29]CAPDU: 80 11 00 00 [12:43:29]Write to MH i2c: E2 08 00 11 27 80 11 00 00 00 00 00 00 B2 [12:43:29]Write i2c OK [12:43:29]MH_I2C_Read... [12:43:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:29]Read from MH i2c: E2 [12:43:29]MH_I2C_Read... [12:43:29]Read from MH i2c: E2 17 00 [12:43:29]MH_I2C_Read... [12:43:29]Read from MH i2c: E2 17 00 11 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0D [12:43:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:43:29]wFMCommunicate OK [12:43:29]requested_item fd.num is exist - process it [12:43:29]SAM_PROTO_GetFieldsCounters [12:43:29]wFMCommunicate request_size=4 [12:43:29]MH_SAM_APDU [12:43:29]CAPDU: 80 13 00 00 [12:43:29]Write to MH i2c: E2 08 00 12 27 80 13 00 00 00 00 00 00 B5 [12:43:29]Write i2c OK [12:43:29]MH_I2C_Read... [12:43:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:29]Read from MH i2c: E2 [12:43:29]MH_I2C_Read... [12:43:29]Read from MH i2c: E2 62 00 [12:43:29]MH_I2C_Read... [12:43:29]Read from MH i2c: E2 62 00 12 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D1 CE 01 00 0E 04 04 00 B1 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 F0 [12:43:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D1 CE 01 00 0E 04 04 00 B1 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 [12:43:29]wFMCommunicate OK [12:43:29]SAM_PROTO_GetFieldsCounters done [12:43:29]requested_item shift.num is exist - process it [12:43:29]requested_item shift.opened is exist - process it [12:43:29]req_shift_opened [12:43:29]FM_GetShiftState [12:43:29]SAM_PROTO_GetShiftState [12:43:29]wFMCommunicate request_size=4 [12:43:29]MH_SAM_APDU [12:43:29]CAPDU: 80 13 01 00 [12:43:29]Write to MH i2c: E2 08 00 13 27 80 13 01 00 00 00 00 00 B7 [12:43:29]Write i2c OK [12:43:29]MH_I2C_Read... [12:43:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:29]Read from MH i2c: E2 [12:43:29]MH_I2C_Read... [12:43:29]Read from MH i2c: E2 0E 00 [12:43:29]MH_I2C_Read... [12:43:29]Read from MH i2c: E2 0E 00 13 27 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 8E [12:43:29]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [12:43:29]wFMCommunicate OK [12:43:29]SAM_PROTO_GetShiftState done [12:43:29]FM_GetShiftState done [12:43:29]req_shift_opened done [12:43:29]requested_item shift.open_date is exist - process it [12:43:29]req_shift_open_date [12:43:29]req_shift_open_date done [12:43:29]produce_requested_data done [12:43:29]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118481,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [12:43:29]process_action_free close_receipt [12:43:29]json_value_free [12:43:29]json_value_free done [12:43:29]process_json_proto returns [12:43:29]Send response to host [12:43:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118481,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [12:43:29]free response buf [12:43:29]execute_script done [12:43:29]execute_script returns [12:43:29]free content buf [12:43:29]Sock 7.Close socket [12:43:29]Sock 7.Thread stoped [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [12:44:48]OFD Sender: No OFD packet to send [12:44:53]OFD Sender: No OFD packet to send [12:44:58]OFD Sender: No OFD packet to send [12:45:03]OFD Sender: No OFD packet to send [12:45:08]OFD Sender: No OFD packet to send [12:45:13]OFD Sender: No OFD packet to send [12:45:18]OFD Sender: No OFD packet to send [12:45:23]OFD Sender: No OFD packet to send [12:45:28]OFD Sender: No OFD packet to send [12:45:33]OFD Sender: No OFD packet to send [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:03]OFD Sender: No OFD packet to send [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:38]OFD Sender: No OFD packet to send [12:48:43]OFD Sender: No OFD packet to send [12:48:48]OFD Sender: No OFD packet to send [12:48:53]OFD Sender: No OFD packet to send [12:48:58]OFD Sender: No OFD packet to send [12:49:03]OFD Sender: No OFD packet to send [12:49:08]OFD Sender: No OFD packet to send [12:49:13]OFD Sender: No OFD packet to send [12:49:18]OFD Sender: No OFD packet to send [12:49:23]OFD Sender: No OFD packet to send [12:49:28]OFD Sender: No OFD packet to send [12:49:33]OFD Sender: No OFD packet to send [12:49:38]OFD Sender: No OFD packet to send [12:49:43]OFD Sender: No OFD packet to send [12:49:48]OFD Sender: No OFD packet to send [12:49:53]OFD Sender: No OFD packet to send [12:49:58]OFD Sender: No OFD packet to send [12:50:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:43]OFD Sender: No OFD packet to send [12:50:48]OFD Sender: No OFD packet to send [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:09]OFD Sender: No OFD packet to send [12:52:14]OFD Sender: No OFD packet to send [12:52:19]OFD Sender: No OFD packet to send [12:52:24]OFD Sender: No OFD packet to send [12:52:29]OFD Sender: No OFD packet to send [12:52:34]OFD Sender: No OFD packet to send [12:52:39]OFD Sender: No OFD packet to send [12:52:44]OFD Sender: No OFD packet to send [12:52:49]OFD Sender: No OFD packet to send [12:52:54]OFD Sender: No OFD packet to send [12:52:59]OFD Sender: No OFD packet to send [12:53:04]OFD Sender: No OFD packet to send [12:53:09]OFD Sender: No OFD packet to send [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:34]OFD Sender: No OFD packet to send [12:55:39]OFD Sender: No OFD packet to send [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:34]OFD Sender: No OFD packet to send [12:56:39]OFD Sender: No OFD packet to send [12:56:44]OFD Sender: No OFD packet to send [12:56:49]OFD Sender: No OFD packet to send [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:04]OFD Sender: No OFD packet to send [12:57:09]OFD Sender: No OFD packet to send [12:57:14]OFD Sender: No OFD packet to send [12:57:19]OFD Sender: No OFD packet to send [12:57:24]OFD Sender: No OFD packet to send [12:57:29]OFD Sender: No OFD packet to send [12:57:34]OFD Sender: No OFD packet to send [12:57:39]OFD Sender: No OFD packet to send [12:57:44]OFD Sender: No OFD packet to send [12:57:49]OFD Sender: No OFD packet to send [12:57:54]OFD Sender: No OFD packet to send [12:57:59]OFD Sender: No OFD packet to send [12:58:04]OFD Sender: No OFD packet to send [12:58:09]OFD Sender: No OFD packet to send [12:58:14]OFD Sender: No OFD packet to send [12:58:19]OFD Sender: No OFD packet to send [12:58:24]OFD Sender: No OFD packet to send [12:58:29]OFD Sender: No OFD packet to send [12:58:34]OFD Sender: No OFD packet to send [12:58:39]OFD Sender: No OFD packet to send [12:58:44]OFD Sender: No OFD packet to send [12:58:49]OFD Sender: No OFD packet to send [12:58:54]OFD Sender: No OFD packet to send [12:58:59]OFD Sender: No OFD packet to send [12:59:04]OFD Sender: No OFD packet to send [12:59:09]OFD Sender: No OFD packet to send [12:59:14]OFD Sender: No OFD packet to send [12:59:19]OFD Sender: No OFD packet to send [12:59:24]OFD Sender: No OFD packet to send [12:59:29]OFD Sender: No OFD packet to send [12:59:34]OFD Sender: No OFD packet to send [12:59:39]OFD Sender: No OFD packet to send [12:59:44]OFD Sender: No OFD packet to send [12:59:49]OFD Sender: No OFD packet to send [12:59:54]OFD Sender: No OFD packet to send [12:59:59]OFD Sender: No OFD packet to send [13:00:04]OFD Sender: No OFD packet to send [13:00:09]OFD Sender: No OFD packet to send [13:00:14]OFD Sender: No OFD packet to send [13:00:19]OFD Sender: No OFD packet to send [13:00:24]OFD Sender: No OFD packet to send [13:00:29]OFD Sender: No OFD packet to send [13:00:34]OFD Sender: No OFD packet to send [13:00:39]OFD Sender: No OFD packet to send [13:00:44]OFD Sender: No OFD packet to send [13:00:49]OFD Sender: No OFD packet to send [13:00:54]OFD Sender: No OFD packet to send [13:00:59]OFD Sender: No OFD packet to send [13:01:04]OFD Sender: No OFD packet to send [13:01:09]OFD Sender: No OFD packet to send [13:01:14]OFD Sender: No OFD packet to send [13:01:19]OFD Sender: No OFD packet to send [13:01:24]OFD Sender: No OFD packet to send [13:01:29]OFD Sender: No OFD packet to send [13:01:34]OFD Sender: No OFD packet to send [13:01:39]OFD Sender: No OFD packet to send [13:01:44]OFD Sender: No OFD packet to send [13:01:49]OFD Sender: No OFD packet to send [13:01:54]OFD Sender: No OFD packet to send [13:01:59]OFD Sender: No OFD packet to send [13:02:04]OFD Sender: No OFD packet to send [13:02:09]OFD Sender: No OFD packet to send [13:02:14]OFD Sender: No OFD packet to send [13:02:19]OFD Sender: No OFD packet to send [13:02:24]OFD Sender: No OFD packet to send [13:02:29]OFD Sender: No OFD packet to send [13:02:34]OFD Sender: No OFD packet to send [13:02:39]OFD Sender: No OFD packet to send [13:02:44]OFD Sender: No OFD packet to send [13:02:49]OFD Sender: No OFD packet to send [13:02:54]OFD Sender: No OFD packet to send [13:02:59]OFD Sender: No OFD packet to send [13:03:04]OFD Sender: No OFD packet to send [13:03:09]OFD Sender: No OFD packet to send [13:03:14]OFD Sender: No OFD packet to send [13:03:19]OFD Sender: No OFD packet to send [13:03:24]OFD Sender: No OFD packet to send [13:03:29]OFD Sender: No OFD packet to send [13:03:34]OFD Sender: No OFD packet to send [13:03:39]OFD Sender: No OFD packet to send [13:03:44]OFD Sender: No OFD packet to send [13:03:49]OFD Sender: No OFD packet to send [13:03:54]OFD Sender: No OFD packet to send [13:03:59]OFD Sender: No OFD packet to send [13:04:04]OFD Sender: No OFD packet to send [13:04:09]OFD Sender: No OFD packet to send [13:04:14]OFD Sender: No OFD packet to send [13:04:19]OFD Sender: No OFD packet to send [13:04:24]OFD Sender: No OFD packet to send [13:04:29]OFD Sender: No OFD packet to send [13:04:34]OFD Sender: No OFD packet to send [13:04:39]OFD Sender: No OFD packet to send [13:04:44]OFD Sender: No OFD packet to send [13:04:49]OFD Sender: No OFD packet to send [13:04:54]OFD Sender: No OFD packet to send [13:04:59]OFD Sender: No OFD packet to send [13:05:04]OFD Sender: No OFD packet to send [13:05:09]OFD Sender: No OFD packet to send [13:05:14]OFD Sender: No OFD packet to send [13:05:19]OFD Sender: No OFD packet to send [13:05:24]OFD Sender: No OFD packet to send [13:05:29]OFD Sender: No OFD packet to send [13:05:34]OFD Sender: No OFD packet to send [13:05:39]OFD Sender: No OFD packet to send [13:05:44]OFD Sender: No OFD packet to send [13:05:49]OFD Sender: No OFD packet to send [13:05:54]OFD Sender: No OFD packet to send [13:05:59]OFD Sender: No OFD packet to send [13:06:04]OFD Sender: No OFD packet to send [13:06:09]OFD Sender: No OFD packet to send [13:06:14]OFD Sender: No OFD packet to send [13:06:19]OFD Sender: No OFD packet to send [13:06:24]OFD Sender: No OFD packet to send [13:06:29]OFD Sender: No OFD packet to send [13:06:34]OFD Sender: No OFD packet to send [13:06:39]OFD Sender: No OFD packet to send [13:06:44]OFD Sender: No OFD packet to send [13:06:49]OFD Sender: No OFD packet to send [13:06:54]OFD Sender: No OFD packet to send [13:06:59]OFD Sender: No OFD packet to send [13:07:04]OFD Sender: No OFD packet to send [13:07:09]OFD Sender: No OFD packet to send [13:07:14]OFD Sender: No OFD packet to send [13:07:19]OFD Sender: No OFD packet to send [13:07:24]OFD Sender: No OFD packet to send [13:07:29]OFD Sender: No OFD packet to send [13:07:34]OFD Sender: No OFD packet to send [13:07:39]OFD Sender: No OFD packet to send [13:07:44]OFD Sender: No OFD packet to send [13:07:49]OFD Sender: No OFD packet to send [13:07:54]OFD Sender: No OFD packet to send [13:07:59]OFD Sender: No OFD packet to send [13:08:04]OFD Sender: No OFD packet to send [13:08:09]OFD Sender: No OFD packet to send [13:08:15]OFD Sender: No OFD packet to send [13:08:20]OFD Sender: No OFD packet to send [13:08:25]OFD Sender: No OFD packet to send [13:08:30]OFD Sender: No OFD packet to send [13:08:35]OFD Sender: No OFD packet to send [13:08:40]OFD Sender: No OFD packet to send [13:08:45]OFD Sender: No OFD packet to send [13:08:50]OFD Sender: No OFD packet to send [13:08:55]OFD Sender: No OFD packet to send [13:09:00]OFD Sender: No OFD packet to send [13:09:05]OFD Sender: No OFD packet to send [13:09:10]OFD Sender: No OFD packet to send [13:09:15]OFD Sender: No OFD packet to send [13:09:20]OFD Sender: No OFD packet to send [13:09:25]OFD Sender: No OFD packet to send [13:09:30]OFD Sender: No OFD packet to send [13:09:35]OFD Sender: No OFD packet to send [13:09:40]OFD Sender: No OFD packet to send [13:09:45]OFD Sender: No OFD packet to send [13:09:50]OFD Sender: No OFD packet to send [13:09:55]OFD Sender: No OFD packet to send [13:10:00]OFD Sender: No OFD packet to send [13:10:05]OFD Sender: No OFD packet to send [13:10:10]OFD Sender: No OFD packet to send [13:10:15]OFD Sender: No OFD packet to send [13:10:20]OFD Sender: No OFD packet to send [13:10:25]OFD Sender: No OFD packet to send [13:10:30]OFD Sender: No OFD packet to send [13:10:35]OFD Sender: No OFD packet to send [13:10:40]OFD Sender: No OFD packet to send [13:10:45]OFD Sender: No OFD packet to send [13:10:50]OFD Sender: No OFD packet to send [13:10:55]OFD Sender: No OFD packet to send [13:11:00]OFD Sender: No OFD packet to send [13:11:05]OFD Sender: No OFD packet to send [13:11:10]OFD Sender: No OFD packet to send [13:11:15]OFD Sender: No OFD packet to send [13:11:20]OFD Sender: No OFD packet to send [13:11:25]OFD Sender: No OFD packet to send [13:11:30]OFD Sender: No OFD packet to send [13:11:35]OFD Sender: No OFD packet to send [13:11:40]OFD Sender: No OFD packet to send [13:11:45]OFD Sender: No OFD packet to send [13:11:50]OFD Sender: No OFD packet to send [13:11:55]OFD Sender: No OFD packet to send [13:12:00]OFD Sender: No OFD packet to send [13:12:05]OFD Sender: No OFD packet to send [13:12:10]OFD Sender: No OFD packet to send [13:12:15]OFD Sender: No OFD packet to send [13:12:20]OFD Sender: No OFD packet to send [13:12:25]OFD Sender: No OFD packet to send [13:12:30]accept exits with 9 [13:12:30]New connection [13:12:30]New thread 3067067748 created [13:12:30]Thread 3066924388 joined [13:12:30]Waiting for new connection... [13:12:30] Sock 9.Parse request [13:12:30]Sock 9.Check first char [13:12:30]Sock 9.First char is OK [13:12:30]request: POST /json_proto HTTP/1.0 [13:12:30]Method: POST [13:12:30]URL: /json_proto [13:12:30]Method is POST - this is cgi request [13:12:30]url: /json_proto [13:12:30]query_string will be loaded in cgi processing [13:12:30]execute_cgi json_proto POST (null) [13:12:30]execute_cgi path=json_proto method=POST [13:12:30]POST find Content-Length [13:12:30]Host: 172.17.45.7:8080 [13:12:30]Content-Length: 677 [13:12:30]Content-Type: application/json [13:12:30] [13:12:30]POST finish read [13:12:30]Found Content-Length = 677 [13:12:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:12:30]execute_script... [13:12:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:12:30]POST & json_proto [13:12:30]process_json_proto [13:12:30]json parsed OK: [13:12:30]protocol is kg_v1.0 [13:12:30]action value=close_receipt [13:12:30]process_action close_receipt [13:12:30]cmd_close_receipt [13:12:30]MH_GetDate [13:12:30]Write to MH i2c: F0 00 00 14 27 2A [13:12:30]Write i2c OK [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: F0 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: F0 09 00 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: F0 09 00 14 27 00 C0 43 A6 66 90 0F 3E 66 85 [13:12:30]GetLastDocTimeStamp 1722170608 [13:12:30]current date 1722172352 [13:12:30]FM_GetShiftState [13:12:30]SAM_PROTO_GetShiftState [13:12:30]wFMCommunicate request_size=4 [13:12:30]MH_SAM_APDU [13:12:30]CAPDU: 80 13 01 00 [13:12:30]Write to MH i2c: E2 08 00 15 27 80 13 01 00 00 00 00 00 B9 [13:12:30]Write i2c OK [13:12:30]MH_I2C_Read... [13:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:30]Read from MH i2c: E2 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: E2 0E 00 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: E2 0E 00 15 27 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 90 [13:12:30]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [13:12:30]wFMCommunicate OK [13:12:30]SAM_PROTO_GetShiftState done [13:12:30]FM_GetShiftState done [13:12:30]opened in 1722125364 [13:12:30]opened+sec_in_day 1722211764 [13:12:30]quantity*price = 40002 [13:12:30]sum+1 = 40003 [13:12:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 151 28.07.2024 13:12 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118482 ФПД: 130040809054653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T131232&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118482&fm=130040809054653&tin=02508201610067®Number=0000000000092660&sum=40000 [13:12:31]StoreToDocumentArchive [13:12:31]shift 433 fd 118482 [13:12:31]save to /storage/0433/doc_00118482 [13:12:31]save last doc name /storage/0433/doc_00118482 to /storage/kkm_last_doc_name [13:12:31]save OK [13:12:31]Clear old archive folders... [13:12:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:31]tlvbuf is 001AA3D0 [13:12:31]SAM_PROTO_ClearQueue [13:12:31]wFMCommunicate request_size=4 [13:12:31]MH_SAM_APDU [13:12:31]CAPDU: 80 09 00 00 [13:12:31]Write to MH i2c: E2 08 00 22 27 80 09 00 00 00 00 00 00 BB [13:12:31]Write i2c OK [13:12:31]MH_I2C_Read... [13:12:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:31]Read from MH i2c: E2 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 03 00 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 03 00 22 27 00 90 00 BD [13:12:31]RAPDU: 90 00 [13:12:31]wFMCommunicate OK [13:12:31]SAM_PROTO_ClearQueue done [13:12:31]KKMCreateOFDPacket [13:12:31]OFDProtocolAddRootSTLVToBuf [13:12:31]FM_MakeSignedData [13:12:31]FM_MakeSignedData [13:12:31]SAM_PROTO_SignData [13:12:31]wFMCommunicate request_size=4 [13:12:31]MH_SAM_APDU [13:12:31]CAPDU: 80 0D 01 02 [13:12:31]Write to MH i2c: E2 08 00 23 27 80 0D 01 02 00 00 00 00 C3 [13:12:31]Write i2c OK [13:12:31]MH_I2C_Read... [13:12:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:31]Read from MH i2c: E2 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 03 00 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 03 00 23 27 00 90 00 BE [13:12:31]RAPDU: 90 00 [13:12:31]wFMCommunicate OK [13:12:31]wFMCommunicate request_size=255 [13:12:31]MH_SAM_APDU [13:12: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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 97 00 00 00 F4 03 04 00 C0 43 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D2 CE 01 00 35 04 06 00 76 [13:12:31]Write to MH i2c: E2 02 01 24 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 97 00 00 00 F4 03 04 00 C0 43 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D2 CE 01 00 35 04 06 00 76 00 00 9B [13:12:31]Write i2c OK [13:12:31]MH_I2C_Read... [13:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:31]Read from MH i2c: E2 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 03 00 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 03 00 24 27 00 90 00 BF [13:12:31]RAPDU: 90 00 [13:12:31]wFMCommunicate OK [13:12:31]wFMCommunicate request_size=10 [13:12:31]MH_SAM_APDU [13:12:31]CAPDU: 80 0D 02 02 05 45 7C 3A E1 BD [13:12:31]Write to MH i2c: E2 0D 00 25 27 80 0D 02 02 05 00 45 7C 3A E1 BD 00 00 69 [13:12:31]Write i2c OK [13:12:31]MH_I2C_Read... [13:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:31]Read from MH i2c: E2 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 03 00 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 03 00 25 27 00 90 00 C0 [13:12:31]RAPDU: 90 00 [13:12:31]wFMCommunicate OK [13:12:31]wFMCommunicate request_size=4 [13:12:31]MH_SAM_APDU [13:12:31]CAPDU: 80 0D 03 02 [13:12:31]Write to MH i2c: E2 08 00 26 27 80 0D 03 02 00 00 00 00 C8 [13:12:31]Write i2c OK [13:12:31]MH_I2C_Read... [13:12:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:31]Read from MH i2c: E2 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 0B 00 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 0B 00 26 27 00 94 70 18 8D 8A B1 D4 F8 90 00 79 [13:12:31]RAPDU: 94 70 18 8D 8A B1 D4 F8 90 00 [13:12:31]wFMCommunicate OK [13:12:31]SAM_PROTO_SignData done [13:12:31]FM_MakeSignedData done [13:12:31]CreateOFDProtocolMessage [13:12:31]wFMCommunicate request_size=4 [13:12:31]MH_SAM_APDU [13:12:31]CAPDU: 80 11 00 00 [13:12:31]Write to MH i2c: E2 08 00 27 27 80 11 00 00 00 00 00 00 C8 [13:12:31]Write i2c OK [13:12:31]MH_I2C_Read... [13:12:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:31]Read from MH i2c: E2 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 17 00 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 17 00 27 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 23 [13:12:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:12:31]wFMCommunicate OK [13:12:31]CreateOFDProtocolMessage done [13:12:31]OFDSenderStorePacket 118482 [13:12:31]StoreOFDPacket docnum=118482 [13:12:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 74 8A 07 01 28 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 97 00 00 00 F4 03 04 00 C0 43 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D2 CE 01 00 35 04 06 00 76 45 7C 3A E1 BD 94 70 18 8D 8A B1 D4 F8 [13:12:31]CheckFolder [13:12:31]dirname=/storage/ofd_packets [13:12:31]CheckFolder done [13:12:31]ProducePacketName [13:12:31]name=ofd_packets/00118482 [13:12:31]NVStorageSaveData ofd_packets/00118482 [13:12:31]File name is /storage/ofd_packets/00118482 [13:12:31]Write 301 bytes [13:12:31]NVStorageSaveData done [13:12:31]OFDSenderStorePacket done [13:12:31]KKMCreateOFDPacket done [13:12:31]NVStorageSaveData kkm_last_timestamp [13:12:31]File name is /storage/kkm_last_timestamp [13:12:31]Write 4 bytes [13:12:31]NVStorageSaveData done [13:12:31]ExternCall_PrintAddStr [13:12:31]wPrintStart [13:12:31]Write to MH i2c: 01 00 00 28 27 4F [13:12:31]Write i2c OK [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: 01 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: 01 07 00 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: 01 07 00 28 27 00 00 00 00 00 FF 0F 64 [13:12:31]RasterBufferAndPrint [13:12:31]line Счет N : (1)949352 [13:12:31]line ИНН: 02508201610067 [13:12:31]line Контрольно-Кассовый Чек [13:12:31]line ПРОДАЖА [13:12:31]line ТРК (МРК, ГНК) : 31 [13:12:31]line Товар: 2710124130 [13:12:31]line Аи-92-К-4 [13:12:31]line 5.900 * 67.80 [13:12:31]line = 400.02 [13:12:31]line НДС 12% НСП 1% [13:12:31]line > о реализуемом товаре [13:12:31]line ОКРУГЛЕНИЕ: -0.02 [13:12:31]line ИТОГО: 400.00 [13:12:31]line Внесено: 400.00 [13:12:31]line СДАЧА: 0.00 [13:12:31]line НСП 1% : 3.54 [13:12:31]line НДС 12% : 42.48 [13:12:31]line Наличными: 400.00 [13:12:31]line Безнал.: 0.00 [13:12:31]line Место: АЗС № 134 "Партнер Нефть" [13:12:31]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:12:31]line СНО: Общий режим [13:12:31]line Чек 151 28.07.2024 13:12 [13:12:31]line Смена: 433 ФФД: 1.0 [13:12:31]line ЗНМ: 0300000044 [13:12:31]line РНМ: 0000000000092660 [13:12:31]line Версия ККМ: 001 [13:12:31]line ФМ: 0000000000874939 [13:12:31]line ФД: 118482 [13:12:31]line ФПД: 130040809054653 [13:12:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T131232&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118482&fm=130040809054653&tin=02508201610067®Number=0000000000092660&sum=40000 [13:12:32]written 0, free lines is 4095 [13:12:32]OFD Sender: Processing packet 118482 [packets to send 86, broken 85] [13:12:32]ProducePacketName [13:12:32]name=ofd_packets/00118482 [13:12:32]OFD Sender: To server: pG, [13:12:32]CommunicateWithHost lk.salyk.kg:30040 [13:12:32]ConnectInit lk.salyk.kg [13:12:32]Connected sock=11 [13:12:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 74 8A 07 01 28 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 97 00 00 00 F4 03 04 00 C0 43 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D2 CE 01 00 35 04 06 00 76 45 7C 3A E1 BD 94 70 18 8D 8A B1 D4 F8 [13:12:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 2A D1 47 00 22 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 39 33 39 10 04 04 00 D2 CE 01 00 F4 03 04 00 51 F1 A5 66 B6 04 01 00 00 39 7E 07 95 13 24 B7 BC [13:12:32]CommunicateWithHost err = 0 [13:12:32]CheckOFDResponse [13:12:32]1017 (14) - 77093643461234 [13:12:32]1041 (16) - 0000000000874939 [13:12:32]1040 (4) - 118482 [13:12:32]1012 (4) - 28.07.2024 07:20 [13:12:32]1206 (1) - 0 [13:12:32]OFD Sender: Remove packet 118482 [13:12:32]ProducePacketName [13:12:32]name=ofd_packets/00118482 [13:12:32]NVStorageDeleteData [13:12:32]Write to MH i2c: 01 00 00 52 27 79 [13:12:32]Write i2c OK [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: 01 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: 01 07 00 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: 01 07 00 52 27 00 00 00 00 00 DE 0C 6A [13:12:32]RasterBufferAndPrint [13:12:32]line [13:12:32]line [13:12:32]line [13:12:32]line [13:12:32]line [13:12:32]written 0, free lines is 3300 [13:12:32]MH_Cut [13:12:32]Write to MH i2c: D1 01 00 59 27 01 52 [13:12:32]Write i2c OK [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: D1 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: D1 01 00 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: D1 01 00 59 27 00 51 [13:12:32]Write to MH i2c: 01 00 00 5A 27 81 [13:12:32]Write i2c OK [13:12:32]MH_I2C_Read... [13:12:32]OFD Sender: No OFD packet to send [13:12:33]*** Cut start [13:12:33]*** Partial cut [13:12:33]*** CUTSNS_PIN = 1 [13:12:33]*** CUTSNS_PIN = 0 [13:12:33]*** Brake cut motor [13:12:33]Read from MH i2c: 01 [13:12:33]MH_I2C_Read... [13:12:33]*** Stop cut motor [13:12:33]*** Cut end [13:12:33]Read from MH i2c: 01 07 00 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: 01 07 00 5A 27 00 00 00 00 00 FF 0F 96 [13:12:33]process_action close_receipt done [13:12:33]requested_data is exist [13:12:33]produce_requested_data [13:12:33]requested_item fm.sn is exist - process it [13:12:33]wFMCommunicate request_size=4 [13:12:33]MH_SAM_APDU [13:12:33]CAPDU: 80 11 00 00 [13:12:33]Write to MH i2c: E2 08 00 5B 27 80 11 00 00 00 00 00 00 FC [13:12:33]Write i2c OK [13:12:33]MH_I2C_Read... [13:12:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:33]Read from MH i2c: E2 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 17 00 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 17 00 5B 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 57 [13:12:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:12:33]wFMCommunicate OK [13:12:33]requested_item fd.num is exist - process it [13:12:33]SAM_PROTO_GetFieldsCounters [13:12:33]wFMCommunicate request_size=4 [13:12:33]MH_SAM_APDU [13:12:33]CAPDU: 80 13 00 00 [13:12:33]Write to MH i2c: E2 08 00 5C 27 80 13 00 00 00 00 00 00 FF [13:12:33]Write i2c OK [13:12:33]MH_I2C_Read... [13:12:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:34]Read from MH i2c: E2 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: E2 62 00 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: E2 62 00 5C 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D2 CE 01 00 0E 04 04 00 B1 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 3E [13:12:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D2 CE 01 00 0E 04 04 00 B1 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 [13:12:34]wFMCommunicate OK [13:12:34]SAM_PROTO_GetFieldsCounters done [13:12:34]requested_item shift.num is exist - process it [13:12:34]requested_item shift.opened is exist - process it [13:12:34]req_shift_opened [13:12:34]FM_GetShiftState [13:12:34]SAM_PROTO_GetShiftState [13:12:34]wFMCommunicate request_size=4 [13:12:34]MH_SAM_APDU [13:12:34]CAPDU: 80 13 01 00 [13:12:34]Write to MH i2c: E2 08 00 5D 27 80 13 01 00 00 00 00 00 01 [13:12:34]Write i2c OK [13:12:34]MH_I2C_Read... [13:12:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:34]Read from MH i2c: E2 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: E2 0E 00 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: E2 0E 00 5D 27 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 D8 [13:12:34]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [13:12:34]wFMCommunicate OK [13:12:34]SAM_PROTO_GetShiftState done [13:12:34]FM_GetShiftState done [13:12:34]req_shift_opened done [13:12:34]requested_item shift.open_date is exist - process it [13:12:34]req_shift_open_date [13:12:34]req_shift_open_date done [13:12:34]produce_requested_data done [13:12:34]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118482,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [13:12:34]process_action_free close_receipt [13:12:34]json_value_free [13:12:34]json_value_free done [13:12:34]process_json_proto returns [13:12:34]Send response to host [13:12:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118482,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [13:12:34]free response buf [13:12:34]execute_script done [13:12:34]execute_script returns [13:12:34]free content buf [13:12:34]Sock 9.Close socket [13:12:34]Sock 9.Thread stoped [13:12:37]OFD Sender: No OFD packet to send [13:12:42]OFD Sender: No OFD packet to send [13:12:47]OFD Sender: No OFD packet to send [13:12:52]OFD Sender: No OFD packet to send [13:12:57]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]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:38]accept exits with 7 [13:13:38]New connection [13:13:38]New thread 3066924388 created [13:13:38]Thread 3067067748 joined [13:13:38]Waiting for new connection... [13:13:38] Sock 7.Parse request [13:13:38]Sock 7.Check first char [13:13:38]Sock 7.First char is OK [13:13:38]request: POST /json_proto HTTP/1.0 [13:13:38]Method: POST [13:13:38]URL: /json_proto [13:13:38]Method is POST - this is cgi request [13:13:38]url: /json_proto [13:13:38]query_string will be loaded in cgi processing [13:13:38]execute_cgi json_proto POST (null) [13:13:38]execute_cgi path=json_proto method=POST [13:13:38]POST find Content-Length [13:13:38]Host: 172.17.45.7:8080 [13:13:38]Content-Length: 674 [13:13:38]Content-Type: application/json [13:13:38] [13:13:38]POST finish read [13:13:38]Found Content-Length = 674 [13:13:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 1.320, "sum" : 100.58, "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" ] } } [13:13:38]execute_script... [13:13:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 1.320, "sum" : 100.58, "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" ] } } [13:13:38]POST & json_proto [13:13:38]process_json_proto [13:13:38]json parsed OK: [13:13:38]protocol is kg_v1.0 [13:13:38]action value=close_receipt [13:13:38]process_action close_receipt [13:13:38]cmd_close_receipt [13:13:38]MH_GetDate [13:13:38]Write to MH i2c: F0 00 00 5E 27 74 [13:13:38]Write i2c OK [13:13:38]MH_I2C_Read... [13:13:38]Read from MH i2c: F0 [13:13:38]MH_I2C_Read... [13:13:38]Read from MH i2c: F0 09 00 [13:13:38]MH_I2C_Read... [13:13:38]Read from MH i2c: F0 09 00 5E 27 00 04 44 A6 66 90 0F 3E 66 14 [13:13:38]GetLastDocTimeStamp 1722172352 [13:13:38]current date 1722172420 [13:13:38]FM_GetShiftState [13:13:38]SAM_PROTO_GetShiftState [13:13:38]wFMCommunicate request_size=4 [13:13:38]MH_SAM_APDU [13:13:38]CAPDU: 80 13 01 00 [13:13:38]Write to MH i2c: E2 08 00 5F 27 80 13 01 00 00 00 00 00 03 [13:13:38]Write i2c OK [13:13:38]MH_I2C_Read... [13:13:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:38]Read from MH i2c: E2 [13:13:38]MH_I2C_Read... [13:13:38]Read from MH i2c: E2 0E 00 [13:13:38]MH_I2C_Read... [13:13:38]Read from MH i2c: E2 0E 00 5F 27 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 DA [13:13:38]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [13:13:38]wFMCommunicate OK [13:13:38]SAM_PROTO_GetShiftState done [13:13:38]FM_GetShiftState done [13:13:38]opened in 1722125364 [13:13:38]opened+sec_in_day 1722211764 [13:13:38]quantity*price = 10058 [13:13:38]sum+1 = 10059 [13:13:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.68 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 152 28.07.2024 13:13 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118483 ФПД: 208798191606960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T131340&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118483&fm=208798191606960&tin=02508201610067®Number=0000000000092660&sum=10000 [13:13:39]StoreToDocumentArchive [13:13:39]shift 433 fd 118483 [13:13:39]save to /storage/0433/doc_00118483 [13:13:39]save last doc name /storage/0433/doc_00118483 to /storage/kkm_last_doc_name [13:13:39]save OK [13:13:39]Clear old archive folders... [13:13:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:13:39]tlvbuf is 00108D50 [13:13:39]SAM_PROTO_ClearQueue [13:13:39]wFMCommunicate request_size=4 [13:13:39]MH_SAM_APDU [13:13:39]CAPDU: 80 09 00 00 [13:13:39]Write to MH i2c: E2 08 00 6C 27 80 09 00 00 00 00 00 00 05 [13:13:39]Write i2c OK [13:13:39]MH_I2C_Read... [13:13:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:39]Read from MH i2c: E2 [13:13:39]MH_I2C_Read... [13:13:39]Read from MH i2c: E2 03 00 [13:13:39]MH_I2C_Read... [13:13:39]Read from MH i2c: E2 03 00 6C 27 00 90 00 07 [13:13:39]RAPDU: 90 00 [13:13:39]wFMCommunicate OK [13:13:39]SAM_PROTO_ClearQueue done [13:13:39]KKMCreateOFDPacket [13:13:39]OFDProtocolAddRootSTLVToBuf [13:13:39]FM_MakeSignedData [13:13:39]FM_MakeSignedData [13:13:39]SAM_PROTO_SignData [13:13:39]wFMCommunicate request_size=4 [13:13:39]MH_SAM_APDU [13:13:39]CAPDU: 80 0D 01 02 [13:13:39]Write to MH i2c: E2 08 00 6D 27 80 0D 01 02 00 00 00 00 0D [13:13:39]Write i2c OK [13:13:39]MH_I2C_Read... [13:13:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:39]Read from MH i2c: E2 [13:13:39]MH_I2C_Read... [13:13:39]Read from MH i2c: E2 03 00 [13:13:39]MH_I2C_Read... [13:13:39]Read from MH i2c: E2 03 00 6D 27 00 90 00 08 [13:13:39]RAPDU: 90 00 [13:13:39]wFMCommunicate OK [13:13:39]wFMCommunicate request_size=255 [13:13:39]MH_SAM_APDU [13:13:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 98 00 00 00 F4 03 04 00 04 44 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D3 CE 01 00 35 04 06 00 BD E6 9E 0A [13:13:39]Write to MH i2c: E2 02 01 6E 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 98 00 00 00 F4 03 04 00 04 44 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D3 CE 01 00 35 04 06 00 BD E6 9E 0A 00 00 76 [13:13:39]Write i2c OK [13:13:39]MH_I2C_Read... [13:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:39]Read from MH i2c: E2 [13:13:39]MH_I2C_Read... [13:13:39]Read from MH i2c: E2 03 00 [13:13:39]MH_I2C_Read... [13:13:39]Read from MH i2c: E2 03 00 6E 27 00 90 00 09 [13:13:39]RAPDU: 90 00 [13:13:39]wFMCommunicate OK [13:13:39]wFMCommunicate request_size=7 [13:13:39]MH_SAM_APDU [13:13:39]CAPDU: 80 0D 02 02 02 5C B0 [13:13:39]Write to MH i2c: E2 0A 00 6F 27 80 0D 02 02 02 00 5C B0 00 00 20 [13:13:39]Write i2c OK [13:13:39]MH_I2C_Read... [13:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:39]Read from MH i2c: E2 [13:13:39]MH_I2C_Read... [13:13:39]Read from MH i2c: E2 03 00 [13:13:39]MH_I2C_Read... [13:13:39]Read from MH i2c: E2 03 00 6F 27 00 90 00 0A [13:13:39]RAPDU: 90 00 [13:13:39]wFMCommunicate OK [13:13:39]wFMCommunicate request_size=4 [13:13:39]MH_SAM_APDU [13:13:39]CAPDU: 80 0D 03 02 [13:13:39]Write to MH i2c: E2 08 00 70 27 80 0D 03 02 00 00 00 00 12 [13:13:39]Write i2c OK [13:13:39]MH_I2C_Read... [13:13:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:39]Read from MH i2c: E2 [13:13:39]MH_I2C_Read... [13:13:39]Read from MH i2c: E2 0B 00 [13:13:39]MH_I2C_Read... [13:13:39]Read from MH i2c: E2 0B 00 70 27 00 31 C7 5A 24 EE BB F4 40 90 00 66 [13:13:39]RAPDU: 31 C7 5A 24 EE BB F4 40 90 00 [13:13:39]wFMCommunicate OK [13:13:39]SAM_PROTO_SignData done [13:13:39]FM_MakeSignedData done [13:13:39]CreateOFDProtocolMessage [13:13:39]wFMCommunicate request_size=4 [13:13:39]MH_SAM_APDU [13:13:39]CAPDU: 80 11 00 00 [13:13:39]Write to MH i2c: E2 08 00 71 27 80 11 00 00 00 00 00 00 12 [13:13:39]Write i2c OK [13:13:39]MH_I2C_Read... [13:13:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:39]Read from MH i2c: E2 [13:13:39]MH_I2C_Read... [13:13:39]Read from MH i2c: E2 17 00 [13:13:39]MH_I2C_Read... [13:13:39]Read from MH i2c: E2 17 00 71 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6D [13:13:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:13:39]wFMCommunicate OK [13:13:39]CreateOFDProtocolMessage done [13:13:39]OFDSenderStorePacket 118483 [13:13:39]StoreOFDPacket docnum=118483 [13:13:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 0D E1 04 01 B4 05 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 98 00 00 00 F4 03 04 00 04 44 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D3 CE 01 00 35 04 06 00 BD E6 9E 0A 5C B0 31 C7 5A 24 EE BB F4 40 [13:13:39]CheckFolder [13:13:39]dirname=/storage/ofd_packets [13:13:39]CheckFolder done [13:13:39]ProducePacketName [13:13:39]name=ofd_packets/00118483 [13:13:39]NVStorageSaveData ofd_packets/00118483 [13:13:39]File name is /storage/ofd_packets/00118483 [13:13:39]Write 298 bytes [13:13:39]NVStorageSaveData done [13:13:39]OFDSenderStorePacket done [13:13:39]KKMCreateOFDPacket done [13:13:39]NVStorageSaveData kkm_last_timestamp [13:13:39]File name is /storage/kkm_last_timestamp [13:13:39]Write 4 bytes [13:13:39]NVStorageSaveData done [13:13:39]ExternCall_PrintAddStr [13:13:39]wPrintStart [13:13:39]Write to MH i2c: 01 00 00 72 27 99 [13:13:39]Write i2c OK [13:13:39]MH_I2C_Read... [13:13:39]Read from MH i2c: 01 [13:13:39]MH_I2C_Read... [13:13:39]Read from MH i2c: 01 07 00 [13:13:39]MH_I2C_Read... [13:13:39]Read from MH i2c: 01 07 00 72 27 00 00 00 00 00 FF 0F AE [13:13:39]RasterBufferAndPrint [13:13:39]line Счет N : (1)949353 [13:13:39]line ИНН: 02508201610067 [13:13:39]line Контрольно-Кассовый Чек [13:13:39]line ПРОДАЖА [13:13:39]line ТРК (МРК, ГНК) : 34 [13:13:39]line Товар: 2710194800 [13:13:39]line ДТ-К-5 [13:13:39]line 1.320 * 76.20 [13:13:39]line = 100.58 [13:13:39]line НДС 12% НСП 1% [13:13:39]line > о реализуемом товаре [13:13:39]line ОКРУГЛЕНИЕ: -0.58 [13:13:39]line ИТОГО: 100.00 [13:13:39]line Внесено: 100.00 [13:13:39]line СДАЧА: 0.00 [13:13:39]line НСП 1% : 0.89 [13:13:39]line НДС 12% : 10.68 [13:13:39]line Наличными: 100.00 [13:13:39]line Безнал.: 0.00 [13:13:39]line Место: АЗС № 134 "Партнер Нефть" [13:13:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:13:39]line СНО: Общий режим [13:13:39]line Чек 152 28.07.2024 13:13 [13:13:39]line Смена: 433 ФФД: 1.0 [13:13:39]line ЗНМ: 0300000044 [13:13:39]line РНМ: 0000000000092660 [13:13:39]line Версия ККМ: 001 [13:13:39]line ФМ: 0000000000874939 [13:13:39]line ФД: 118483 [13:13:39]line ФПД: 208798191606960 [13:13:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T131340&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118483&fm=208798191606960&tin=02508201610067®Number=0000000000092660&sum=10000 [13:13:40]OFD Sender: Processing packet 118483 [packets to send 86, broken 85] [13:13:40]ProducePacketName [13:13:40]name=ofd_packets/00118483 [13:13:40]OFD Sender: To server: pG, [13:13:40]CommunicateWithHost lk.salyk.kg:30040 [13:13:40]ConnectInit lk.salyk.kg [13:13:40]written 0, free lines is 4095 [13:13:40]Connected sock=10 [13:13:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 0D E1 04 01 B4 05 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 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 2C 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 98 00 00 00 F4 03 04 00 04 44 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D3 CE 01 00 35 04 06 00 BD E6 9E 0A 5C B0 31 C7 5A 24 EE BB F4 40 [13:13:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E0 F9 47 00 F9 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 39 33 39 10 04 04 00 D3 CE 01 00 F4 03 04 00 95 F1 A5 66 B6 04 01 00 00 F3 27 12 59 5A 59 BC 15 [13:13:40]CommunicateWithHost err = 0 [13:13:40]CheckOFDResponse [13:13:40]1017 (14) - 77093643461234 [13:13:40]1041 (16) - 0000000000874939 [13:13:40]1040 (4) - 118483 [13:13:40]1012 (4) - 28.07.2024 07:21 [13:13:40]1206 (1) - 0 [13:13:40]OFD Sender: Remove packet 118483 [13:13:40]ProducePacketName [13:13:40]name=ofd_packets/00118483 [13:13:40]NVStorageDeleteData [13:13:40]Write to MH i2c: 01 00 00 9C 27 C3 [13:13:40]Write i2c OK [13:13:40]MH_I2C_Read... [13:13:40]Read from MH i2c: 01 [13:13:40]MH_I2C_Read... [13:13:40]Read from MH i2c: 01 07 00 [13:13:40]MH_I2C_Read... [13:13:40]Read from MH i2c: 01 07 00 9C 27 00 00 00 00 00 D8 0C AE [13:13:40]RasterBufferAndPrint [13:13:40]line [13:13:40]line [13:13:40]line [13:13:40]line [13:13:40]line [13:13:40]written 0, free lines is 3293 [13:13:40]MH_Cut [13:13:40]Write to MH i2c: D1 01 00 A3 27 01 9C [13:13:40]Write i2c OK [13:13:40]MH_I2C_Read... [13:13:40]Read from MH i2c: D1 [13:13:40]MH_I2C_Read... [13:13:40]Read from MH i2c: D1 01 00 [13:13:40]MH_I2C_Read... [13:13:40]Read from MH i2c: D1 01 00 A3 27 00 9B [13:13:40]Write to MH i2c: 01 00 00 A4 27 CB [13:13:40]Write i2c OK [13:13:40]MH_I2C_Read... [13:13:40]OFD Sender: No OFD packet to send [13:13:41]*** Cut start [13:13:41]*** Partial cut [13:13:41]*** CUTSNS_PIN = 1 [13:13:41]*** CUTSNS_PIN = 0 [13:13:41]*** Brake cut motor [13:13:41]Read from MH i2c: 01 [13:13:41]MH_I2C_Read... [13:13:41]*** Stop cut motor [13:13:41]*** Cut end [13:13:41]Read from MH i2c: 01 07 00 [13:13:41]MH_I2C_Read... [13:13:41]Read from MH i2c: 01 07 00 A4 27 00 00 00 00 00 FF 0F E0 [13:13:41]process_action close_receipt done [13:13:41]requested_data is exist [13:13:41]produce_requested_data [13:13:41]requested_item fm.sn is exist - process it [13:13:41]wFMCommunicate request_size=4 [13:13:41]MH_SAM_APDU [13:13:41]CAPDU: 80 11 00 00 [13:13:41]Write to MH i2c: E2 08 00 A5 27 80 11 00 00 00 00 00 00 46 [13:13:41]Write i2c OK [13:13:41]MH_I2C_Read... [13:13:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:41]Read from MH i2c: E2 [13:13:41]MH_I2C_Read... [13:13:41]Read from MH i2c: E2 17 00 [13:13:41]MH_I2C_Read... [13:13:41]Read from MH i2c: E2 17 00 A5 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A1 [13:13:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:13:41]wFMCommunicate OK [13:13:41]requested_item fd.num is exist - process it [13:13:41]SAM_PROTO_GetFieldsCounters [13:13:41]wFMCommunicate request_size=4 [13:13:41]MH_SAM_APDU [13:13:41]CAPDU: 80 13 00 00 [13:13:41]Write to MH i2c: E2 08 00 A6 27 80 13 00 00 00 00 00 00 49 [13:13:41]Write i2c OK [13:13:41]MH_I2C_Read... [13:13:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:42]Read from MH i2c: E2 [13:13:42]MH_I2C_Read... [13:13:42]Read from MH i2c: E2 62 00 [13:13:42]MH_I2C_Read... [13:13:42]Read from MH i2c: E2 62 00 A6 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D3 CE 01 00 0E 04 04 00 B1 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 8C [13:13:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D3 CE 01 00 0E 04 04 00 B1 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 [13:13:42]wFMCommunicate OK [13:13:42]SAM_PROTO_GetFieldsCounters done [13:13:42]requested_item shift.num is exist - process it [13:13:42]requested_item shift.opened is exist - process it [13:13:42]req_shift_opened [13:13:42]FM_GetShiftState [13:13:42]SAM_PROTO_GetShiftState [13:13:42]wFMCommunicate request_size=4 [13:13:42]MH_SAM_APDU [13:13:42]CAPDU: 80 13 01 00 [13:13:42]Write to MH i2c: E2 08 00 A7 27 80 13 01 00 00 00 00 00 4B [13:13:42]Write i2c OK [13:13:42]MH_I2C_Read... [13:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:42]Read from MH i2c: E2 [13:13:42]MH_I2C_Read... [13:13:42]Read from MH i2c: E2 0E 00 [13:13:42]MH_I2C_Read... [13:13:42]Read from MH i2c: E2 0E 00 A7 27 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 22 [13:13:42]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [13:13:42]wFMCommunicate OK [13:13:42]SAM_PROTO_GetShiftState done [13:13:42]FM_GetShiftState done [13:13:42]req_shift_opened done [13:13:42]requested_item shift.open_date is exist - process it [13:13:42]req_shift_open_date [13:13:42]req_shift_open_date done [13:13:42]produce_requested_data done [13:13:42]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118483,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [13:13:42]process_action_free close_receipt [13:13:42]json_value_free [13:13:42]json_value_free done [13:13:42]process_json_proto returns [13:13:42]Send response to host [13:13:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118483,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [13:13:42]free response buf [13:13:42]execute_script done [13:13:42]execute_script returns [13:13:42]free content buf [13:13:42]Sock 7.Close socket [13:13:42]Sock 7.Thread stoped [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:16]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:30]accept exits with 9 [13:14:30]New connection [13:14:30]New thread 3067067748 created [13:14:30]Thread 3066924388 joined [13:14:30]Waiting for new connection... [13:14:30] Sock 9.Parse request [13:14:30]Sock 9.Check first char [13:14:30]Sock 9.First char is OK [13:14:30]request: POST /json_proto HTTP/1.0 [13:14:30]Method: POST [13:14:30]URL: /json_proto [13:14:30]Method is POST - this is cgi request [13:14:30]url: /json_proto [13:14:30]query_string will be loaded in cgi processing [13:14:30]execute_cgi json_proto POST (null) [13:14:30]execute_cgi path=json_proto method=POST [13:14:30]POST find Content-Length [13:14:30]Host: 172.17.45.7:8080 [13:14:30]Content-Length: 682 [13:14:30]Content-Type: application/json [13:14:30] [13:14:30]POST finish read [13:14:30]Found Content-Length = 682 [13:14:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:30]execute_script... [13:14: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)949354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:30]POST & json_proto [13:14:30]process_json_proto [13:14:30]json parsed OK: [13:14:30]protocol is kg_v1.0 [13:14:30]action value=close_receipt [13:14:30]process_action close_receipt [13:14:30]cmd_close_receipt [13:14:30]MH_GetDate [13:14:30]Write to MH i2c: F0 00 00 A8 27 BE [13:14:30]Write i2c OK [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: F0 [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: F0 09 00 [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: F0 09 00 A8 27 00 39 44 A6 66 90 0F 3E 66 93 [13:14:30]GetLastDocTimeStamp 1722172420 [13:14:30]current date 1722172473 [13:14:30]FM_GetShiftState [13:14:30]SAM_PROTO_GetShiftState [13:14:30]wFMCommunicate request_size=4 [13:14:30]MH_SAM_APDU [13:14:30]CAPDU: 80 13 01 00 [13:14:30]Write to MH i2c: E2 08 00 A9 27 80 13 01 00 00 00 00 00 4D [13:14:30]Write i2c OK [13:14:30]MH_I2C_Read... [13:14:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:30]Read from MH i2c: E2 [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: E2 0E 00 [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: E2 0E 00 A9 27 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 24 [13:14:30]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [13:14:30]wFMCommunicate OK [13:14:30]SAM_PROTO_GetShiftState done [13:14:30]FM_GetShiftState done [13:14:30]opened in 1722125364 [13:14:30]opened+sec_in_day 1722211764 [13:14:30]quantity*price = 100021 [13:14:30]sum+1 = 100023 [13:14:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 153 28.07.2024 13:14 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118484 ФПД: 226734726797063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T131433&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118484&fm=226734726797063&tin=02508201610067®Number=0000000000092660&sum=100000 [13:14:31]StoreToDocumentArchive [13:14:31]shift 433 fd 118484 [13:14:31]save to /storage/0433/doc_00118484 [13:14:31]save last doc name /storage/0433/doc_00118484 to /storage/kkm_last_doc_name [13:14:31]save OK [13:14:31]Clear old archive folders... [13:14:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:14:31]tlvbuf is 0012C6D0 [13:14:31]SAM_PROTO_ClearQueue [13:14:31]wFMCommunicate request_size=4 [13:14:31]MH_SAM_APDU [13:14:31]CAPDU: 80 09 00 00 [13:14:31]Write to MH i2c: E2 08 00 B6 27 80 09 00 00 00 00 00 00 4F [13:14:31]Write i2c OK [13:14:31]MH_I2C_Read... [13:14:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:31]Read from MH i2c: E2 [13:14:31]MH_I2C_Read... [13:14:31]Read from MH i2c: E2 03 00 [13:14:31]MH_I2C_Read... [13:14:31]Read from MH i2c: E2 03 00 B6 27 00 90 00 51 [13:14:31]RAPDU: 90 00 [13:14:31]wFMCommunicate OK [13:14:31]SAM_PROTO_ClearQueue done [13:14:31]KKMCreateOFDPacket [13:14:31]OFDProtocolAddRootSTLVToBuf [13:14:31]FM_MakeSignedData [13:14:31]FM_MakeSignedData [13:14:31]SAM_PROTO_SignData [13:14:31]wFMCommunicate request_size=4 [13:14:31]MH_SAM_APDU [13:14:31]CAPDU: 80 0D 01 02 [13:14:31]Write to MH i2c: E2 08 00 B7 27 80 0D 01 02 00 00 00 00 57 [13:14:31]Write i2c OK [13:14:31]MH_I2C_Read... [13:14:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:31]Read from MH i2c: E2 [13:14:31]MH_I2C_Read... [13:14:31]Read from MH i2c: E2 03 00 [13:14:31]MH_I2C_Read... [13:14:31]Read from MH i2c: E2 03 00 B7 27 00 90 00 52 [13:14:31]RAPDU: 90 00 [13:14:31]wFMCommunicate OK [13:14:31]wFMCommunicate request_size=255 [13:14:31]MH_SAM_APDU [13:14: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 39 44 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D4 CE 01 00 35 04 06 00 CE [13:14:31]Write to MH i2c: E2 02 01 B8 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 39 44 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D4 CE 01 00 35 04 06 00 CE 00 00 4C [13:14:31]Write i2c OK [13:14:31]MH_I2C_Read... [13:14:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:32]Read from MH i2c: E2 [13:14:32]MH_I2C_Read... [13:14:32]Read from MH i2c: E2 03 00 [13:14:32]MH_I2C_Read... [13:14:32]Read from MH i2c: E2 03 00 B8 27 00 90 00 53 [13:14:32]RAPDU: 90 00 [13:14:32]wFMCommunicate OK [13:14:32]wFMCommunicate request_size=10 [13:14:32]MH_SAM_APDU [13:14:32]CAPDU: 80 0D 02 02 05 36 CA D9 57 07 [13:14:32]Write to MH i2c: E2 0D 00 B9 27 80 0D 02 02 05 00 36 CA D9 57 07 00 00 9B [13:14:32]Write i2c OK [13:14:32]MH_I2C_Read... [13:14:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:32]Read from MH i2c: E2 [13:14:32]MH_I2C_Read... [13:14:32]Read from MH i2c: E2 03 00 [13:14:32]MH_I2C_Read... [13:14:32]Read from MH i2c: E2 03 00 B9 27 00 90 00 54 [13:14:32]RAPDU: 90 00 [13:14:32]wFMCommunicate OK [13:14:32]wFMCommunicate request_size=4 [13:14:32]MH_SAM_APDU [13:14:32]CAPDU: 80 0D 03 02 [13:14:32]Write to MH i2c: E2 08 00 BA 27 80 0D 03 02 00 00 00 00 5C [13:14:32]Write i2c OK [13:14:32]MH_I2C_Read... [13:14:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:32]Read from MH i2c: E2 [13:14:32]MH_I2C_Read... [13:14:32]Read from MH i2c: E2 0B 00 [13:14:32]MH_I2C_Read... [13:14:32]Read from MH i2c: E2 0B 00 BA 27 00 CB 3B E8 97 B0 4B 0A E0 90 00 C7 [13:14:32]RAPDU: CB 3B E8 97 B0 4B 0A E0 90 00 [13:14:32]wFMCommunicate OK [13:14:32]SAM_PROTO_SignData done [13:14:32]FM_MakeSignedData done [13:14:32]CreateOFDProtocolMessage [13:14:32]wFMCommunicate request_size=4 [13:14:32]MH_SAM_APDU [13:14:32]CAPDU: 80 11 00 00 [13:14:32]Write to MH i2c: E2 08 00 BB 27 80 11 00 00 00 00 00 00 5C [13:14:32]Write i2c OK [13:14:32]MH_I2C_Read... [13:14:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:32]Read from MH i2c: E2 [13:14:32]MH_I2C_Read... [13:14:32]Read from MH i2c: E2 17 00 [13:14:32]MH_I2C_Read... [13:14:32]Read from MH i2c: E2 17 00 BB 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B7 [13:14:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:14:32]wFMCommunicate OK [13:14:32]CreateOFDProtocolMessage done [13:14:32]OFDSenderStorePacket 118484 [13:14:32]StoreOFDPacket docnum=118484 [13:14:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2E 9B 07 01 1F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 39 44 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D4 CE 01 00 35 04 06 00 CE 36 CA D9 57 07 CB 3B E8 97 B0 4B 0A E0 [13:14:32]CheckFolder [13:14:32]dirname=/storage/ofd_packets [13:14:32]CheckFolder done [13:14:32]ProducePacketName [13:14:32]name=ofd_packets/00118484 [13:14:32]NVStorageSaveData ofd_packets/00118484 [13:14:32]File name is /storage/ofd_packets/00118484 [13:14:32]Write 301 bytes [13:14:32]NVStorageSaveData done [13:14:32]OFDSenderStorePacket done [13:14:32]KKMCreateOFDPacket done [13:14:32]NVStorageSaveData kkm_last_timestamp [13:14:32]File name is /storage/kkm_last_timestamp [13:14:32]Write 4 bytes [13:14:32]NVStorageSaveData done [13:14:32]OFD Sender: Processing packet 118484 [packets to send 86, broken 85] [13:14:32]ProducePacketName [13:14:32]name=ofd_packets/00118484 [13:14:32]OFD Sender: To server: pG, [13:14:32]CommunicateWithHost lk.salyk.kg:30040 [13:14:32]ConnectInit lk.salyk.kg [13:14:32]ExternCall_PrintAddStr [13:14:32]wPrintStart [13:14:32]Write to MH i2c: 01 00 00 BC 27 E3 [13:14:32]Write i2c OK [13:14:32]MH_I2C_Read... [13:14:32]Read from MH i2c: 01 [13:14:32]MH_I2C_Read... [13:14:32]Read from MH i2c: 01 07 00 [13:14:32]MH_I2C_Read... [13:14:32]Read from MH i2c: 01 07 00 BC 27 00 00 00 00 00 FF 0F F8 [13:14:32]RasterBufferAndPrint [13:14:32]line Счет N : (1)949354 [13:14:32]line ИНН: 02508201610067 [13:14:32]line Контрольно-Кассовый Чек [13:14:32]line ПРОДАЖА [13:14:32]line ТРК (МРК, ГНК) : 43 [13:14:32]line Товар: 2710124500 [13:14:32]line Аи-95-К-3 [13:14:32]line 13.480 * 74.20 [13:14:32]line = 1000.22 [13:14:32]line НДС 12% НСП 1% [13:14:32]line > о реализуемом товаре [13:14:32]line ОКРУГЛЕНИЕ: -0.22 [13:14:32]line ИТОГО: 1000.00 [13:14:32]line Внесено: 1000.00 [13:14:32]line СДАЧА: 0.00 [13:14:32]line НСП 1% : 8.85 [13:14:32]line НДС 12% : 106.22 [13:14:32]line Наличными: 1000.00 [13:14:32]line Безнал.: 0.00 [13:14:32]line Место: АЗС № 134 "Партнер Нефть" [13:14:32]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:14:32]line СНО: Общий режим [13:14:32]line Чек 153 28.07.2024 13:14 [13:14:32]line Смена: 433 ФФД: 1.0 [13:14:32]line ЗНМ: 0300000044 [13:14:32]line РНМ: 0000000000092660 [13:14:32]line Версия ККМ: 001 [13:14:32]line ФМ: 0000000000874939 [13:14:32]line ФД: 118484 [13:14:32]line ФПД: 226734726797063 [13:14:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T131433&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118484&fm=226734726797063&tin=02508201610067®Number=0000000000092660&sum=100000 [13:14:32]Connected sock=11 [13:14:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2E 9B 07 01 1F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 39 44 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D4 CE 01 00 35 04 06 00 CE 36 CA D9 57 07 CB 3B E8 97 B0 4B 0A E0 [13:14:32]written 0, free lines is 4095 [13:14:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 7F 05 47 00 D5 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 39 33 39 10 04 04 00 D4 CE 01 00 F4 03 04 00 C9 F1 A5 66 B6 04 01 00 00 62 48 13 FC 2A 2D B1 87 [13:14:32]CommunicateWithHost err = 0 [13:14:32]CheckOFDResponse [13:14:32]1017 (14) - 77093643461234 [13:14:32]1041 (16) - 0000000000874939 [13:14:32]1040 (4) - 118484 [13:14:32]1012 (4) - 28.07.2024 07:22 [13:14:32]1206 (1) - 0 [13:14:32]OFD Sender: Remove packet 118484 [13:14:32]ProducePacketName [13:14:32]name=ofd_packets/00118484 [13:14:32]NVStorageDeleteData [13:14:33]Write to MH i2c: 01 00 00 E6 27 0D [13:14:33]Write i2c OK [13:14:33]MH_I2C_Read... [13:14:33]Read from MH i2c: 01 [13:14:33]MH_I2C_Read... [13:14:33]Read from MH i2c: 01 07 00 [13:14:33]MH_I2C_Read... [13:14:33]Read from MH i2c: 01 07 00 E6 27 00 00 00 00 00 E3 0C 03 [13:14:33]RasterBufferAndPrint [13:14:33]line [13:14:33]line [13:14:33]line [13:14:33]line [13:14:33]line [13:14:33]written 0, free lines is 3305 [13:14:33]MH_Cut [13:14:33]Write to MH i2c: D1 01 00 ED 27 01 E6 [13:14:33]Write i2c OK [13:14:33]MH_I2C_Read... [13:14:33]Read from MH i2c: D1 [13:14:33]MH_I2C_Read... [13:14:33]Read from MH i2c: D1 01 00 [13:14:33]MH_I2C_Read... [13:14:33]Read from MH i2c: D1 01 00 ED 27 00 E5 [13:14:33]Write to MH i2c: 01 00 00 EE 27 15 [13:14:33]Write i2c OK [13:14:33]MH_I2C_Read... [13:14:33]OFD Sender: No OFD packet to send [13:14:33]*** Cut start [13:14:33]*** Partial cut [13:14:33]*** CUTSNS_PIN = 1 [13:14:33]*** CUTSNS_PIN = 0 [13:14:34]*** Brake cut motor [13:14:34]Read from MH i2c: 01 [13:14:34]MH_I2C_Read... [13:14:34]*** Stop cut motor [13:14:34]*** Cut end [13:14:34]Read from MH i2c: 01 07 00 [13:14:34]MH_I2C_Read... [13:14:34]Read from MH i2c: 01 07 00 EE 27 00 00 00 00 00 FF 0F 2A [13:14:34]process_action close_receipt done [13:14:34]requested_data is exist [13:14:34]produce_requested_data [13:14:34]requested_item fm.sn is exist - process it [13:14:34]wFMCommunicate request_size=4 [13:14:34]MH_SAM_APDU [13:14:34]CAPDU: 80 11 00 00 [13:14:34]Write to MH i2c: E2 08 00 EF 27 80 11 00 00 00 00 00 00 90 [13:14:34]Write i2c OK [13:14:34]MH_I2C_Read... [13:14:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:34]Read from MH i2c: E2 [13:14:34]MH_I2C_Read... [13:14:34]Read from MH i2c: E2 17 00 [13:14:34]MH_I2C_Read... [13:14:34]Read from MH i2c: E2 17 00 EF 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EB [13:14:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:14:34]wFMCommunicate OK [13:14:34]requested_item fd.num is exist - process it [13:14:34]SAM_PROTO_GetFieldsCounters [13:14:34]wFMCommunicate request_size=4 [13:14:34]MH_SAM_APDU [13:14:34]CAPDU: 80 13 00 00 [13:14:34]Write to MH i2c: E2 08 00 F0 27 80 13 00 00 00 00 00 00 93 [13:14:34]Write i2c OK [13:14:34]MH_I2C_Read... [13:14:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:34]Read from MH i2c: E2 [13:14:34]MH_I2C_Read... [13:14:34]Read from MH i2c: E2 62 00 [13:14:34]MH_I2C_Read... [13:14:34]Read from MH i2c: E2 62 00 F0 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D4 CE 01 00 0E 04 04 00 B1 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 DA [13:14:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D4 CE 01 00 0E 04 04 00 B1 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 [13:14:34]wFMCommunicate OK [13:14:34]SAM_PROTO_GetFieldsCounters done [13:14:34]requested_item shift.num is exist - process it [13:14:34]requested_item shift.opened is exist - process it [13:14:34]req_shift_opened [13:14:34]FM_GetShiftState [13:14:34]SAM_PROTO_GetShiftState [13:14:34]wFMCommunicate request_size=4 [13:14:34]MH_SAM_APDU [13:14:34]CAPDU: 80 13 01 00 [13:14:34]Write to MH i2c: E2 08 00 F1 27 80 13 01 00 00 00 00 00 95 [13:14:34]Write i2c OK [13:14:34]MH_I2C_Read... [13:14:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:34]Read from MH i2c: E2 [13:14:34]MH_I2C_Read... [13:14:34]Read from MH i2c: E2 0E 00 [13:14:34]MH_I2C_Read... [13:14:34]Read from MH i2c: E2 0E 00 F1 27 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 6C [13:14:34]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [13:14:34]wFMCommunicate OK [13:14:34]SAM_PROTO_GetShiftState done [13:14:34]FM_GetShiftState done [13:14:34]req_shift_opened done [13:14:34]requested_item shift.open_date is exist - process it [13:14:34]req_shift_open_date [13:14:34]req_shift_open_date done [13:14:34]produce_requested_data done [13:14:34]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118484,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [13:14:34]process_action_free close_receipt [13:14:34]json_value_free [13:14:34]json_value_free done [13:14:34]process_json_proto returns [13:14:34]Send response to host [13:14:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118484,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [13:14:34]free response buf [13:14:34]execute_script done [13:14:34]execute_script returns [13:14:34]free content buf [13:14:34]Sock 9.Close socket [13:14:34]Sock 9.Thread stoped [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:38]OFD Sender: No OFD packet to send [13:15:43]OFD Sender: No OFD packet to send [13:15:48]OFD Sender: No OFD packet to send [13:15:53]OFD Sender: No OFD packet to send [13:15:58]OFD Sender: No OFD packet to send [13:16:03]OFD Sender: No OFD packet to send [13:16:07]accept exits with 7 [13:16:07]New connection [13:16:07]New thread 3066924388 created [13:16:07]Thread 3067067748 joined [13:16:07]Waiting for new connection... [13:16:07] Sock 7.Parse request [13:16:07]Sock 7.Check first char [13:16:07]Sock 7.First char is OK [13:16:07]request: POST /json_proto HTTP/1.0 [13:16:07]Method: POST [13:16:07]URL: /json_proto [13:16:07]Method is POST - this is cgi request [13:16:07]url: /json_proto [13:16:07]query_string will be loaded in cgi processing [13:16:07]execute_cgi json_proto POST (null) [13:16:07]execute_cgi path=json_proto method=POST [13:16:07]POST find Content-Length [13:16:07]Host: 172.17.45.7:8080 [13:16:07]Content-Length: 677 [13:16:07]Content-Type: application/json [13:16:07] [13:16:07]POST finish read [13:16:07]Found Content-Length = 677 [13:16:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:07]execute_script... [13:16:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:07]POST & json_proto [13:16:07]process_json_proto [13:16:07]json parsed OK: [13:16:07]protocol is kg_v1.0 [13:16:07]action value=close_receipt [13:16:07]process_action close_receipt [13:16:07]cmd_close_receipt [13:16:07]MH_GetDate [13:16:07]Write to MH i2c: F0 00 00 F2 27 08 [13:16:07]Write i2c OK [13:16:07]MH_I2C_Read... [13:16:07]Read from MH i2c: F0 [13:16:07]MH_I2C_Read... [13:16:07]Read from MH i2c: F0 09 00 [13:16:07]MH_I2C_Read... [13:16:07]Read from MH i2c: F0 09 00 F2 27 00 9A 44 A6 66 90 0F 3E 66 3E [13:16:07]GetLastDocTimeStamp 1722172473 [13:16:07]current date 1722172570 [13:16:07]FM_GetShiftState [13:16:07]SAM_PROTO_GetShiftState [13:16:07]wFMCommunicate request_size=4 [13:16:07]MH_SAM_APDU [13:16:07]CAPDU: 80 13 01 00 [13:16:07]Write to MH i2c: E2 08 00 F3 27 80 13 01 00 00 00 00 00 97 [13:16:07]Write i2c OK [13:16:07]MH_I2C_Read... [13:16:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:07]Read from MH i2c: E2 [13:16:07]MH_I2C_Read... [13:16:07]Read from MH i2c: E2 0E 00 [13:16:07]MH_I2C_Read... [13:16:07]Read from MH i2c: E2 0E 00 F3 27 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 6E [13:16:07]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [13:16:07]wFMCommunicate OK [13:16:07]SAM_PROTO_GetShiftState done [13:16:07]FM_GetShiftState done [13:16:07]opened in 1722125364 [13:16:07]opened+sec_in_day 1722211764 [13:16:07]quantity*price = 20001 [13:16:07]sum+1 = 20002 [13:16:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 154 28.07.2024 13:16 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118485 ФПД: 204797384306461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T131610&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118485&fm=204797384306461&tin=02508201610067®Number=0000000000092660&sum=20000 [13:16:08]StoreToDocumentArchive [13:16:08]shift 433 fd 118485 [13:16:08]save to /storage/0433/doc_00118485 [13:16:08]save last doc name /storage/0433/doc_00118485 to /storage/kkm_last_doc_name [13:16:08]save OK [13:16:08]Clear old archive folders... [13:16:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:16:08]tlvbuf is 0015CAF0 [13:16:08]SAM_PROTO_ClearQueue [13:16:08]wFMCommunicate request_size=4 [13:16:08]MH_SAM_APDU [13:16:08]CAPDU: 80 09 00 00 [13:16:08]Write to MH i2c: E2 08 00 00 28 80 09 00 00 00 00 00 00 9A [13:16:08]Write i2c OK [13:16:08]MH_I2C_Read... [13:16:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:09]Read from MH i2c: E2 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: E2 03 00 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: E2 03 00 00 28 00 90 00 9C [13:16:09]RAPDU: 90 00 [13:16:09]wFMCommunicate OK [13:16:09]SAM_PROTO_ClearQueue done [13:16:09]KKMCreateOFDPacket [13:16:09]OFDProtocolAddRootSTLVToBuf [13:16:09]FM_MakeSignedData [13:16:09]FM_MakeSignedData [13:16:09]SAM_PROTO_SignData [13:16:09]wFMCommunicate request_size=4 [13:16:09]MH_SAM_APDU [13:16:09]CAPDU: 80 0D 01 02 [13:16:09]Write to MH i2c: E2 08 00 01 28 80 0D 01 02 00 00 00 00 A2 [13:16:09]Write i2c OK [13:16:09]MH_I2C_Read... [13:16:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:09]Read from MH i2c: E2 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: E2 03 00 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: E2 03 00 01 28 00 90 00 9D [13:16:09]RAPDU: 90 00 [13:16:09]wFMCommunicate OK [13:16:09]wFMCommunicate request_size=255 [13:16:09]MH_SAM_APDU [13:16:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 9A 44 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D5 CE 01 00 35 04 06 00 BA [13:16:09]Write to MH i2c: E2 02 01 02 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 9A 44 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D5 CE 01 00 35 04 06 00 BA 00 00 BC [13:16:09]Write i2c OK [13:16:09]MH_I2C_Read... [13:16:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:09]Read from MH i2c: E2 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: E2 03 00 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: E2 03 00 02 28 00 90 00 9E [13:16:09]RAPDU: 90 00 [13:16:09]wFMCommunicate OK [13:16:09]wFMCommunicate request_size=10 [13:16:09]MH_SAM_APDU [13:16:09]CAPDU: 80 0D 02 02 05 43 1B 57 AF 1D [13:16:09]Write to MH i2c: E2 0D 00 03 28 80 0D 02 02 05 00 43 1B 57 AF 1D 00 00 30 [13:16:09]Write i2c OK [13:16:09]MH_I2C_Read... [13:16:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:09]Read from MH i2c: E2 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: E2 03 00 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: E2 03 00 03 28 00 90 00 9F [13:16:09]RAPDU: 90 00 [13:16:09]wFMCommunicate OK [13:16:09]wFMCommunicate request_size=4 [13:16:09]MH_SAM_APDU [13:16:09]CAPDU: 80 0D 03 02 [13:16:09]Write to MH i2c: E2 08 00 04 28 80 0D 03 02 00 00 00 00 A7 [13:16:09]Write i2c OK [13:16:09]MH_I2C_Read... [13:16:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:09]Read from MH i2c: E2 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: E2 0B 00 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: E2 0B 00 04 28 00 24 9C E5 BA 30 9D A8 62 90 00 DE [13:16:09]RAPDU: 24 9C E5 BA 30 9D A8 62 90 00 [13:16:09]wFMCommunicate OK [13:16:09]SAM_PROTO_SignData done [13:16:09]FM_MakeSignedData done [13:16:09]CreateOFDProtocolMessage [13:16:09]wFMCommunicate request_size=4 [13:16:09]MH_SAM_APDU [13:16:09]CAPDU: 80 11 00 00 [13:16:09]Write to MH i2c: E2 08 00 05 28 80 11 00 00 00 00 00 00 A7 [13:16:09]Write i2c OK [13:16:09]MH_I2C_Read... [13:16:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:09]Read from MH i2c: E2 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: E2 17 00 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: E2 17 00 05 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 02 [13:16:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:16:09]wFMCommunicate OK [13:16:09]CreateOFDProtocolMessage done [13:16:09]OFDSenderStorePacket 118485 [13:16:09]StoreOFDPacket docnum=118485 [13:16:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 81 94 07 01 AC E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 9A 44 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D5 CE 01 00 35 04 06 00 BA 43 1B 57 AF 1D 24 9C E5 BA 30 9D A8 62 [13:16:09]CheckFolder [13:16:09]dirname=/storage/ofd_packets [13:16:09]CheckFolder done [13:16:09]ProducePacketName [13:16:09]name=ofd_packets/00118485 [13:16:09]NVStorageSaveData ofd_packets/00118485 [13:16:09]File name is /storage/ofd_packets/00118485 [13:16:09]Write 301 bytes [13:16:09]NVStorageSaveData done [13:16:09]OFDSenderStorePacket done [13:16:09]KKMCreateOFDPacket done [13:16:09]NVStorageSaveData kkm_last_timestamp [13:16:09]File name is /storage/kkm_last_timestamp [13:16:09]Write 4 bytes [13:16:09]NVStorageSaveData done [13:16:09]ExternCall_PrintAddStr [13:16:09]wPrintStart [13:16:09]Write to MH i2c: 01 00 00 06 28 2E [13:16:09]Write i2c OK [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: 01 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: 01 07 00 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: 01 07 00 06 28 00 00 00 00 00 FF 0F 43 [13:16:09]RasterBufferAndPrint [13:16:09]line Счет N : (1)949355 [13:16:09]line ИНН: 02508201610067 [13:16:09]line Контрольно-Кассовый Чек [13:16:09]line ПРОДАЖА [13:16:09]line ТРК (МРК, ГНК) : 61 [13:16:09]line Товар: 2710124130 [13:16:09]line Аи-92-К-4 [13:16:09]line 2.950 * 67.80 [13:16:09]line = 200.01 [13:16:09]line НДС 12% НСП 1% [13:16:09]line > о реализуемом товаре [13:16:09]line ОКРУГЛЕНИЕ: -0.01 [13:16:09]line ИТОГО: 200.00 [13:16:09]line Внесено: 200.00 [13:16:09]line СДАЧА: 0.00 [13:16:09]line НСП 1% : 1.77 [13:16:09]line НДС 12% : 21.24 [13:16:09]line Наличными: 200.00 [13:16:09]line Безнал.: 0.00 [13:16:09]line Место: АЗС № 134 "Партнер Нефть" [13:16:09]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:16:09]line СНО: Общий режим [13:16:09]line Чек 154 28.07.2024 13:16 [13:16:09]line Смена: 433 ФФД: 1.0 [13:16:09]line ЗНМ: 0300000044 [13:16:09]line РНМ: 0000000000092660 [13:16:09]line Версия ККМ: 001 [13:16:09]line ФМ: 0000000000874939 [13:16:09]line ФД: 118485 [13:16:09]line ФПД: 204797384306461 [13:16:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T131610&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118485&fm=204797384306461&tin=02508201610067®Number=0000000000092660&sum=20000 [13:16:09]OFD Sender: Processing packet 118485 [packets to send 86, broken 85] [13:16:09]ProducePacketName [13:16:09]name=ofd_packets/00118485 [13:16:09]OFD Sender: To server: pG, [13:16:09]CommunicateWithHost lk.salyk.kg:30040 [13:16:09]ConnectInit lk.salyk.kg [13:16:09]written 0, free lines is 4095 [13:16:09]Connected sock=10 [13:16:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 81 94 07 01 AC E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 9A 44 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D5 CE 01 00 35 04 06 00 BA 43 1B 57 AF 1D 24 9C E5 BA 30 9D A8 62 [13:16:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B5 65 47 00 AF 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 39 33 39 10 04 04 00 D5 CE 01 00 F4 03 04 00 2A F2 A5 66 B6 04 01 00 00 0E 0F A7 75 3A F5 70 9C [13:16:10]CommunicateWithHost err = 0 [13:16:10]CheckOFDResponse [13:16:10]1017 (14) - 77093643461234 [13:16:10]1041 (16) - 0000000000874939 [13:16:10]1040 (4) - 118485 [13:16:10]1012 (4) - 28.07.2024 07:24 [13:16:10]1206 (1) - 0 [13:16:10]OFD Sender: Remove packet 118485 [13:16:10]ProducePacketName [13:16:10]name=ofd_packets/00118485 [13:16:10]NVStorageDeleteData [13:16:10]Write to MH i2c: 01 00 00 30 28 58 [13:16:10]Write i2c OK [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: 01 [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: 01 07 00 [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: 01 07 00 30 28 00 00 00 00 00 DD 0C 48 [13:16:10]RasterBufferAndPrint [13:16:10]line [13:16:10]line [13:16:10]line [13:16:10]line [13:16:10]line [13:16:10]written 0, free lines is 3299 [13:16:10]MH_Cut [13:16:10]Write to MH i2c: D1 01 00 37 28 01 31 [13:16:10]Write i2c OK [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: D1 [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: D1 01 00 [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: D1 01 00 37 28 00 30 [13:16:10]Write to MH i2c: 01 00 00 38 28 60 [13:16:10]Write i2c OK [13:16:10]MH_I2C_Read... [13:16:10]OFD Sender: No OFD packet to send [13:16:10]*** Cut start [13:16:11]*** Partial cut [13:16:11]*** CUTSNS_PIN = 1 [13:16:11]*** CUTSNS_PIN = 0 [13:16:11]*** Brake cut motor [13:16:11]Read from MH i2c: 01 [13:16:11]MH_I2C_Read... [13:16:11]*** Stop cut motor [13:16:11]*** Cut end [13:16:11]Read from MH i2c: 01 07 00 [13:16:11]MH_I2C_Read... [13:16:11]Read from MH i2c: 01 07 00 38 28 00 00 00 00 00 FF 0F 75 [13:16:11]process_action close_receipt done [13:16:11]requested_data is exist [13:16:11]produce_requested_data [13:16:11]requested_item fm.sn is exist - process it [13:16:11]wFMCommunicate request_size=4 [13:16:11]MH_SAM_APDU [13:16:11]CAPDU: 80 11 00 00 [13:16:11]Write to MH i2c: E2 08 00 39 28 80 11 00 00 00 00 00 00 DB [13:16:11]Write i2c OK [13:16:11]MH_I2C_Read... [13:16:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:11]Read from MH i2c: E2 [13:16:11]MH_I2C_Read... [13:16:11]Read from MH i2c: E2 17 00 [13:16:11]MH_I2C_Read... [13:16:11]Read from MH i2c: E2 17 00 39 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 36 [13:16:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:16:11]wFMCommunicate OK [13:16:11]requested_item fd.num is exist - process it [13:16:11]SAM_PROTO_GetFieldsCounters [13:16:11]wFMCommunicate request_size=4 [13:16:11]MH_SAM_APDU [13:16:11]CAPDU: 80 13 00 00 [13:16:11]Write to MH i2c: E2 08 00 3A 28 80 13 00 00 00 00 00 00 DE [13:16:11]Write i2c OK [13:16:11]MH_I2C_Read... [13:16:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:11]Read from MH i2c: E2 [13:16:11]MH_I2C_Read... [13:16:11]Read from MH i2c: E2 62 00 [13:16:11]MH_I2C_Read... [13:16:11]Read from MH i2c: E2 62 00 3A 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D5 CE 01 00 0E 04 04 00 B1 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 29 [13:16:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D5 CE 01 00 0E 04 04 00 B1 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 [13:16:11]wFMCommunicate OK [13:16:11]SAM_PROTO_GetFieldsCounters done [13:16:11]requested_item shift.num is exist - process it [13:16:11]requested_item shift.opened is exist - process it [13:16:11]req_shift_opened [13:16:11]FM_GetShiftState [13:16:11]SAM_PROTO_GetShiftState [13:16:11]wFMCommunicate request_size=4 [13:16:11]MH_SAM_APDU [13:16:11]CAPDU: 80 13 01 00 [13:16:11]Write to MH i2c: E2 08 00 3B 28 80 13 01 00 00 00 00 00 E0 [13:16:11]Write i2c OK [13:16:11]MH_I2C_Read... [13:16:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:11]Read from MH i2c: E2 [13:16:11]MH_I2C_Read... [13:16:11]Read from MH i2c: E2 0E 00 [13:16:11]MH_I2C_Read... [13:16:11]Read from MH i2c: E2 0E 00 3B 28 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 B7 [13:16:11]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [13:16:11]wFMCommunicate OK [13:16:11]SAM_PROTO_GetShiftState done [13:16:11]FM_GetShiftState done [13:16:11]req_shift_opened done [13:16:11]requested_item shift.open_date is exist - process it [13:16:11]req_shift_open_date [13:16:11]req_shift_open_date done [13:16:11]produce_requested_data done [13:16:11]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118485,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [13:16:11]process_action_free close_receipt [13:16:11]json_value_free [13:16:11]json_value_free done [13:16:11]process_json_proto returns [13:16:11]Send response to host [13:16:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118485,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [13:16:11]free response buf [13:16:11]execute_script done [13:16:11]execute_script returns [13:16:11]free content buf [13:16:11]Sock 7.Close socket [13:16:11]Sock 7.Thread stoped [13:16:15]OFD Sender: No OFD packet to send [13:16:20]OFD Sender: No OFD packet to send [13:16:25]OFD Sender: No OFD packet to send [13:16:30]OFD Sender: No OFD packet to send [13:16:35]OFD Sender: No OFD packet to send [13:16:40]OFD Sender: No OFD packet to send [13:16:42]accept exits with 9 [13:16:42]New connection [13:16:42]New thread 3067067748 created [13:16:42]Thread 3066924388 joined [13:16:42]Waiting for new connection... [13:16:42] Sock 9.Parse request [13:16:42]Sock 9.Check first char [13:16:42]Sock 9.First char is OK [13:16:42]request: POST /json_proto HTTP/1.0 [13:16:42]Method: POST [13:16:42]URL: /json_proto [13:16:42]Method is POST - this is cgi request [13:16:42]url: /json_proto [13:16:42]query_string will be loaded in cgi processing [13:16:42]execute_cgi json_proto POST (null) [13:16:42]execute_cgi path=json_proto method=POST [13:16:42]POST find Content-Length [13:16:42]Host: 172.17.45.7:8080 [13:16:42]Content-Length: 679 [13:16:42]Content-Type: application/json [13:16:42] [13:16:42]POST finish read [13:16:42]Found Content-Length = 679 [13:16:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:42]execute_script... [13:16: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)949356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:42]POST & json_proto [13:16:42]process_json_proto [13:16:42]json parsed OK: [13:16:42]protocol is kg_v1.0 [13:16:42]action value=close_receipt [13:16:42]process_action close_receipt [13:16:42]cmd_close_receipt [13:16:42]MH_GetDate [13:16:42]Write to MH i2c: F0 00 00 3C 28 53 [13:16:42]Write i2c OK [13:16:42]MH_I2C_Read... [13:16:42]Read from MH i2c: F0 [13:16:42]MH_I2C_Read... [13:16:42]Read from MH i2c: F0 09 00 [13:16:42]MH_I2C_Read... [13:16:42]Read from MH i2c: F0 09 00 3C 28 00 BD 44 A6 66 90 0F 3E 66 AC [13:16:42]GetLastDocTimeStamp 1722172570 [13:16:42]current date 1722172605 [13:16:42]FM_GetShiftState [13:16:42]SAM_PROTO_GetShiftState [13:16:42]wFMCommunicate request_size=4 [13:16:42]MH_SAM_APDU [13:16:42]CAPDU: 80 13 01 00 [13:16:42]Write to MH i2c: E2 08 00 3D 28 80 13 01 00 00 00 00 00 E2 [13:16:42]Write i2c OK [13:16:42]MH_I2C_Read... [13:16:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:42]Read from MH i2c: E2 [13:16:42]MH_I2C_Read... [13:16:42]Read from MH i2c: E2 0E 00 [13:16:42]MH_I2C_Read... [13:16:42]Read from MH i2c: E2 0E 00 3D 28 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 B9 [13:16:42]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [13:16:42]wFMCommunicate OK [13:16:42]SAM_PROTO_GetShiftState done [13:16:42]FM_GetShiftState done [13:16:42]opened in 1722125364 [13:16:42]opened+sec_in_day 1722211764 [13:16:42]quantity*price = 100050 [13:16:42]sum+1 = 100052 [13:16:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 155 28.07.2024 13:16 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118486 ФПД: 211551190700229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T131645&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118486&fm=211551190700229&tin=02508201610067®Number=0000000000092660&sum=100000 [13:16:44]StoreToDocumentArchive [13:16:44]shift 433 fd 118486 [13:16:44]save to /storage/0433/doc_00118486 [13:16:44]save last doc name /storage/0433/doc_00118486 to /storage/kkm_last_doc_name [13:16:44]save OK [13:16:44]Clear old archive folders... [13:16:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:16:44]tlvbuf is 001BB710 [13:16:44]SAM_PROTO_ClearQueue [13:16:44]wFMCommunicate request_size=4 [13:16:44]MH_SAM_APDU [13:16:44]CAPDU: 80 09 00 00 [13:16:44]Write to MH i2c: E2 08 00 4A 28 80 09 00 00 00 00 00 00 E4 [13:16:44]Write i2c OK [13:16:44]MH_I2C_Read... [13:16:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:44]Read from MH i2c: E2 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: E2 03 00 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: E2 03 00 4A 28 00 90 00 E6 [13:16:44]RAPDU: 90 00 [13:16:44]wFMCommunicate OK [13:16:44]SAM_PROTO_ClearQueue done [13:16:44]KKMCreateOFDPacket [13:16:44]OFDProtocolAddRootSTLVToBuf [13:16:44]FM_MakeSignedData [13:16:44]FM_MakeSignedData [13:16:44]SAM_PROTO_SignData [13:16:44]wFMCommunicate request_size=4 [13:16:44]MH_SAM_APDU [13:16:44]CAPDU: 80 0D 01 02 [13:16:44]Write to MH i2c: E2 08 00 4B 28 80 0D 01 02 00 00 00 00 EC [13:16:44]Write i2c OK [13:16:44]MH_I2C_Read... [13:16:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:44]Read from MH i2c: E2 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: E2 03 00 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: E2 03 00 4B 28 00 90 00 E7 [13:16:44]RAPDU: 90 00 [13:16:44]wFMCommunicate OK [13:16:44]wFMCommunicate request_size=255 [13:16:44]MH_SAM_APDU [13:16:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 BD 44 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D6 CE 01 00 35 04 06 00 C0 67 99 92 [13:16:44]Write to MH i2c: E2 02 01 4C 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 BD 44 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D6 CE 01 00 35 04 06 00 C0 67 99 92 00 00 CD [13:16:44]Write i2c OK [13:16:44]MH_I2C_Read... [13:16:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:44]Read from MH i2c: E2 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: E2 03 00 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: E2 03 00 4C 28 00 90 00 E8 [13:16:44]RAPDU: 90 00 [13:16:44]wFMCommunicate OK [13:16:44]wFMCommunicate request_size=7 [13:16:44]MH_SAM_APDU [13:16:44]CAPDU: 80 0D 02 02 02 D0 C5 [13:16:44]Write to MH i2c: E2 0A 00 4D 28 80 0D 02 02 02 00 D0 C5 00 00 88 [13:16:44]Write i2c OK [13:16:44]MH_I2C_Read... [13:16:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:44]Read from MH i2c: E2 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: E2 03 00 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: E2 03 00 4D 28 00 90 00 E9 [13:16:44]RAPDU: 90 00 [13:16:44]wFMCommunicate OK [13:16:44]wFMCommunicate request_size=4 [13:16:44]MH_SAM_APDU [13:16:44]CAPDU: 80 0D 03 02 [13:16:44]Write to MH i2c: E2 08 00 4E 28 80 0D 03 02 00 00 00 00 F1 [13:16:44]Write i2c OK [13:16:44]MH_I2C_Read... [13:16:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:44]Read from MH i2c: E2 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: E2 0B 00 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: E2 0B 00 4E 28 00 A5 E9 E8 F0 A1 ED 61 92 90 00 D9 [13:16:44]RAPDU: A5 E9 E8 F0 A1 ED 61 92 90 00 [13:16:44]wFMCommunicate OK [13:16:44]SAM_PROTO_SignData done [13:16:44]FM_MakeSignedData done [13:16:44]CreateOFDProtocolMessage [13:16:44]wFMCommunicate request_size=4 [13:16:44]MH_SAM_APDU [13:16:44]CAPDU: 80 11 00 00 [13:16:44]Write to MH i2c: E2 08 00 4F 28 80 11 00 00 00 00 00 00 F1 [13:16:44]Write i2c OK [13:16:44]MH_I2C_Read... [13:16:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:44]Read from MH i2c: E2 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: E2 17 00 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: E2 17 00 4F 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4C [13:16:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:16:44]wFMCommunicate OK [13:16:44]CreateOFDProtocolMessage done [13:16:44]OFDSenderStorePacket 118486 [13:16:44]StoreOFDPacket docnum=118486 [13:16:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E1 57 04 01 1F AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 BD 44 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D6 CE 01 00 35 04 06 00 C0 67 99 92 D0 C5 A5 E9 E8 F0 A1 ED 61 92 [13:16:44]CheckFolder [13:16:44]dirname=/storage/ofd_packets [13:16:44]CheckFolder done [13:16:44]ProducePacketName [13:16:44]name=ofd_packets/00118486 [13:16:44]NVStorageSaveData ofd_packets/00118486 [13:16:44]File name is /storage/ofd_packets/00118486 [13:16:44]Write 298 bytes [13:16:44]NVStorageSaveData done [13:16:44]OFDSenderStorePacket done [13:16:44]KKMCreateOFDPacket done [13:16:44]NVStorageSaveData kkm_last_timestamp [13:16:44]File name is /storage/kkm_last_timestamp [13:16:44]Write 4 bytes [13:16:44]NVStorageSaveData done [13:16:44]ExternCall_PrintAddStr [13:16:44]wPrintStart [13:16:44]Write to MH i2c: 01 00 00 50 28 78 [13:16:44]Write i2c OK [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: 01 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: 01 07 00 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: 01 07 00 50 28 00 00 00 00 00 FF 0F 8D [13:16:44]RasterBufferAndPrint [13:16:44]line Счет N : (1)949356 [13:16:44]line ИНН: 02508201610067 [13:16:44]line Контрольно-Кассовый Чек [13:16:44]line ПРОДАЖА [13:16:44]line ТРК (МРК, ГНК) : 44 [13:16:44]line Товар: 2710194800 [13:16:44]line ДТ-К-5 [13:16:44]line 13.130 * 76.20 [13:16:44]line = 1000.51 [13:16:44]line НДС 12% НСП 1% [13:16:44]line > о реализуемом товаре [13:16:44]line ОКРУГЛЕНИЕ: -0.51 [13:16:44]line ИТОГО: 1000.00 [13:16:44]line Внесено: 1000.00 [13:16:44]line СДАЧА: 0.00 [13:16:44]line НСП 1% : 8.85 [13:16:44]line НДС 12% : 106.25 [13:16:44]line Наличными: 1000.00 [13:16:44]line Безнал.: 0.00 [13:16:44]line Место: АЗС № 134 "Партнер Нефть" [13:16:44]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:16:44]line СНО: Общий режим [13:16:44]line Чек 155 28.07.2024 13:16 [13:16:44]line Смена: 433 ФФД: 1.0 [13:16:44]line ЗНМ: 0300000044 [13:16:44]line РНМ: 0000000000092660 [13:16:44]line Версия ККМ: 001 [13:16:44]line ФМ: 0000000000874939 [13:16:44]line ФД: 118486 [13:16:44]line ФПД: 211551190700229 [13:16:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T131645&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118486&fm=211551190700229&tin=02508201610067®Number=0000000000092660&sum=100000 [13:16:44]OFD Sender: Processing packet 118486 [packets to send 86, broken 85] [13:16:44]ProducePacketName [13:16:44]name=ofd_packets/00118486 [13:16:44]OFD Sender: To server: pG, [13:16:44]CommunicateWithHost lk.salyk.kg:30040 [13:16:44]ConnectInit lk.salyk.kg [13:16:44]written 0, free lines is 4095 [13:16:44]Connected sock=10 [13:16:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E1 57 04 01 1F AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 BD 44 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D6 CE 01 00 35 04 06 00 C0 67 99 92 D0 C5 A5 E9 E8 F0 A1 ED 61 92 [13:16:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B1 26 47 00 44 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 39 33 39 10 04 04 00 D6 CE 01 00 F4 03 04 00 4D F2 A5 66 B6 04 01 00 00 6D 37 E3 D4 F4 26 AC DE [13:16:45]CommunicateWithHost err = 0 [13:16:45]CheckOFDResponse [13:16:45]1017 (14) - 77093643461234 [13:16:45]1041 (16) - 0000000000874939 [13:16:45]1040 (4) - 118486 [13:16:45]1012 (4) - 28.07.2024 07:25 [13:16:45]1206 (1) - 0 [13:16:45]OFD Sender: Remove packet 118486 [13:16:45]ProducePacketName [13:16:45]name=ofd_packets/00118486 [13:16:45]NVStorageDeleteData [13:16:45]Write to MH i2c: 01 00 00 7A 28 A2 [13:16:45]Write i2c OK [13:16:45]MH_I2C_Read... [13:16:45]Read from MH i2c: 01 [13:16:45]MH_I2C_Read... [13:16:45]Read from MH i2c: 01 07 00 [13:16:45]MH_I2C_Read... [13:16:45]Read from MH i2c: 01 07 00 7A 28 00 00 00 00 00 D3 0C 88 [13:16:45]RasterBufferAndPrint [13:16:45]line [13:16:45]line [13:16:45]line [13:16:45]line [13:16:45]line [13:16:45]written 0, free lines is 3290 [13:16:45]MH_Cut [13:16:45]Write to MH i2c: D1 01 00 81 28 01 7B [13:16:45]Write i2c OK [13:16:45]MH_I2C_Read... [13:16:45]Read from MH i2c: D1 [13:16:45]MH_I2C_Read... [13:16:45]Read from MH i2c: D1 01 00 [13:16:45]MH_I2C_Read... [13:16:45]Read from MH i2c: D1 01 00 81 28 00 7A [13:16:45]Write to MH i2c: 01 00 00 82 28 AA [13:16:45]Write i2c OK [13:16:45]MH_I2C_Read... [13:16:45]OFD Sender: No OFD packet to send [13:16:46]*** Cut start [13:16:46]*** Partial cut [13:16:46]*** CUTSNS_PIN = 1 [13:16:46]*** CUTSNS_PIN = 0 [13:16:46]*** Brake cut motor [13:16:46]Read from MH i2c: 01 [13:16:46]MH_I2C_Read... [13:16:46]*** Stop cut motor [13:16:46]*** Cut end [13:16:46]Read from MH i2c: 01 07 00 [13:16:46]MH_I2C_Read... [13:16:46]Read from MH i2c: 01 07 00 82 28 00 00 00 00 00 FF 0F BF [13:16:46]process_action close_receipt done [13:16:46]requested_data is exist [13:16:46]produce_requested_data [13:16:46]requested_item fm.sn is exist - process it [13:16:46]wFMCommunicate request_size=4 [13:16:46]MH_SAM_APDU [13:16:46]CAPDU: 80 11 00 00 [13:16:46]Write to MH i2c: E2 08 00 83 28 80 11 00 00 00 00 00 00 25 [13:16:46]Write i2c OK [13:16:46]MH_I2C_Read... [13:16:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:46]Read from MH i2c: E2 [13:16:46]MH_I2C_Read... [13:16:46]Read from MH i2c: E2 17 00 [13:16:46]MH_I2C_Read... [13:16:46]Read from MH i2c: E2 17 00 83 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 80 [13:16:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:16:46]wFMCommunicate OK [13:16:46]requested_item fd.num is exist - process it [13:16:46]SAM_PROTO_GetFieldsCounters [13:16:46]wFMCommunicate request_size=4 [13:16:46]MH_SAM_APDU [13:16:46]CAPDU: 80 13 00 00 [13:16:46]Write to MH i2c: E2 08 00 84 28 80 13 00 00 00 00 00 00 28 [13:16:46]Write i2c OK [13:16:46]MH_I2C_Read... [13:16:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:46]Read from MH i2c: E2 [13:16:46]MH_I2C_Read... [13:16:46]Read from MH i2c: E2 62 00 [13:16:46]MH_I2C_Read... [13:16:46]Read from MH i2c: E2 62 00 84 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D6 CE 01 00 0E 04 04 00 B1 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 77 [13:16:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D6 CE 01 00 0E 04 04 00 B1 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 [13:16:46]wFMCommunicate OK [13:16:46]SAM_PROTO_GetFieldsCounters done [13:16:46]requested_item shift.num is exist - process it [13:16:46]requested_item shift.opened is exist - process it [13:16:46]req_shift_opened [13:16:46]FM_GetShiftState [13:16:46]SAM_PROTO_GetShiftState [13:16:46]wFMCommunicate request_size=4 [13:16:46]MH_SAM_APDU [13:16:46]CAPDU: 80 13 01 00 [13:16:46]Write to MH i2c: E2 08 00 85 28 80 13 01 00 00 00 00 00 2A [13:16:46]Write i2c OK [13:16:46]MH_I2C_Read... [13:16:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:46]Read from MH i2c: E2 [13:16:46]MH_I2C_Read... [13:16:46]Read from MH i2c: E2 0E 00 [13:16:46]MH_I2C_Read... [13:16:46]Read from MH i2c: E2 0E 00 85 28 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 01 [13:16:46]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [13:16:46]wFMCommunicate OK [13:16:46]SAM_PROTO_GetShiftState done [13:16:46]FM_GetShiftState done [13:16:46]req_shift_opened done [13:16:46]requested_item shift.open_date is exist - process it [13:16:46]req_shift_open_date [13:16:46]req_shift_open_date done [13:16:46]produce_requested_data done [13:16:46]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118486,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [13:16:46]process_action_free close_receipt [13:16:46]json_value_free [13:16:46]json_value_free done [13:16:46]process_json_proto returns [13:16:46]Send response to host [13:16:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118486,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [13:16:46]free response buf [13:16:46]execute_script done [13:16:46]execute_script returns [13:16:46]free content buf [13:16:46]Sock 9.Close socket [13:16:46]Sock 9.Thread stoped [13:16:50]OFD Sender: No OFD packet to send [13:16:55]OFD Sender: No OFD packet to send [13:17:00]OFD Sender: No OFD packet to send [13:17:05]OFD Sender: No OFD packet to send [13:17:10]OFD Sender: No OFD packet to send [13:17:15]OFD Sender: No OFD packet to send [13:17:20]OFD Sender: No OFD packet to send [13:17:25]OFD Sender: No OFD packet to send [13:17:30]OFD Sender: No OFD packet to send [13:17:35]OFD Sender: No OFD packet to send [13:17:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:06]OFD Sender: No OFD packet to send [13:21:11]OFD Sender: No OFD packet to send [13:21:16]OFD Sender: No OFD packet to send [13:21:21]OFD Sender: No OFD packet to send [13:21:26]OFD Sender: No OFD packet to send [13:21:31]OFD Sender: No OFD packet to send [13:21:36]OFD Sender: No OFD packet to send [13:21:41]OFD Sender: No OFD packet to send [13:21:46]OFD Sender: No OFD packet to send [13:21:51]OFD Sender: No OFD packet to send [13:21:56]OFD Sender: No OFD packet to send [13:22:01]OFD Sender: No OFD packet to send [13:22:06]OFD Sender: No OFD packet to send [13:22:11]OFD Sender: No OFD packet to send [13:22:16]OFD Sender: No OFD packet to send [13:22:21]OFD Sender: No OFD packet to send [13:22:26]OFD Sender: No OFD packet to send [13:22:31]OFD Sender: No OFD packet to send [13:22:36]OFD Sender: No OFD packet to send [13:22:41]OFD Sender: No OFD packet to send [13:22:46]OFD Sender: No OFD packet to send [13:22:51]OFD Sender: No OFD packet to send [13:22:56]OFD Sender: No OFD packet to send [13:23:01]OFD Sender: No OFD packet to send [13:23:06]OFD Sender: No OFD packet to send [13:23:11]OFD Sender: No OFD packet to send [13:23:16]OFD Sender: No OFD packet to send [13:23:21]OFD Sender: No OFD packet to send [13:23:26]OFD Sender: No OFD packet to send [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:51]OFD Sender: No OFD packet to send [13:23:56]OFD Sender: No OFD packet to send [13:24:01]OFD Sender: No OFD packet to send [13:24:06]OFD Sender: No OFD packet to send [13:24:11]OFD Sender: No OFD packet to send [13:24:16]OFD Sender: No OFD packet to send [13:24:21]OFD Sender: No OFD packet to send [13:24:26]OFD Sender: No OFD packet to send [13:24:31]OFD Sender: No OFD packet to send [13:24:36]OFD Sender: No OFD packet to send [13:24:41]OFD Sender: No OFD packet to send [13:24:46]OFD Sender: No OFD packet to send [13:24:51]OFD Sender: No OFD packet to send [13:24:56]OFD Sender: No OFD packet to send [13:25:01]OFD Sender: No OFD packet to send [13:25:06]OFD Sender: No OFD packet to send [13:25:11]OFD Sender: No OFD packet to send [13:25:16]OFD Sender: No OFD packet to send [13:25:21]OFD Sender: No OFD packet to send [13:25:26]OFD Sender: No OFD packet to send [13:25:31]OFD Sender: No OFD packet to send [13:25:36]OFD Sender: No OFD packet to send [13:25:41]OFD Sender: No OFD packet to send [13:25:46]OFD Sender: No OFD packet to send [13:25:51]OFD Sender: No OFD packet to send [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:01]accept exits with 7 [13:26:01]New connection [13:26:01]New thread 3066924388 created [13:26:01]Thread 3067067748 joined [13:26:01]Waiting for new connection... [13:26:01] Sock 7.Parse request [13:26:01]Sock 7.Check first char [13:26:01]Sock 7.First char is OK [13:26:01]request: POST /json_proto HTTP/1.0 [13:26:01]Method: POST [13:26:01]URL: /json_proto [13:26:01]Method is POST - this is cgi request [13:26:01]url: /json_proto [13:26:01]query_string will be loaded in cgi processing [13:26:01]execute_cgi json_proto POST (null) [13:26:01]execute_cgi path=json_proto method=POST [13:26:01]POST find Content-Length [13:26:01]Host: 172.17.45.7:8080 [13:26:01]Content-Length: 677 [13:26:01]Content-Type: application/json [13:26:01] [13:26:01]POST finish read [13:26:01]Found Content-Length = 677 [13:26:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:26:01]execute_script... [13:26: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)949357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:26:01]POST & json_proto [13:26:01]process_json_proto [13:26:01]json parsed OK: [13:26:01]protocol is kg_v1.0 [13:26:01]action value=close_receipt [13:26:01]process_action close_receipt [13:26:01]cmd_close_receipt [13:26:01]MH_GetDate [13:26:01]Write to MH i2c: F0 00 00 86 28 9D [13:26:01]Write i2c OK [13:26:01]MH_I2C_Read... [13:26:01]Read from MH i2c: F0 [13:26:01]MH_I2C_Read... [13:26:01]Read from MH i2c: F0 09 00 [13:26:01]MH_I2C_Read... [13:26:01]Read from MH i2c: F0 09 00 86 28 00 EC 46 A6 66 90 0F 3E 66 27 [13:26:01]GetLastDocTimeStamp 1722172605 [13:26:01]current date 1722173164 [13:26:01]FM_GetShiftState [13:26:01]SAM_PROTO_GetShiftState [13:26:01]wFMCommunicate request_size=4 [13:26:01]MH_SAM_APDU [13:26:01]CAPDU: 80 13 01 00 [13:26:01]Write to MH i2c: E2 08 00 87 28 80 13 01 00 00 00 00 00 2C [13:26:01]Write i2c OK [13:26:01]MH_I2C_Read... [13:26:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:01]Read from MH i2c: E2 [13:26:01]MH_I2C_Read... [13:26:01]Read from MH i2c: E2 0E 00 [13:26:01]MH_I2C_Read... [13:26:01]Read from MH i2c: E2 0E 00 87 28 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 03 [13:26:01]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [13:26:01]wFMCommunicate OK [13:26:01]SAM_PROTO_GetShiftState done [13:26:01]FM_GetShiftState done [13:26:01]opened in 1722125364 [13:26:01]opened+sec_in_day 1722211764 [13:26:01]quantity*price = 60003 [13:26:01]sum+1 = 60004 [13:26:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 156 28.07.2024 13:26 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118487 ФПД: 242117720257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T132604&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118487&fm=242117720257&tin=02508201610067®Number=0000000000092660&sum=60000 [13:26:02]StoreToDocumentArchive [13:26:02]shift 433 fd 118487 [13:26:02]save to /storage/0433/doc_00118487 [13:26:02]save last doc name /storage/0433/doc_00118487 to /storage/kkm_last_doc_name [13:26:02]save OK [13:26:02]Clear old archive folders... [13:26:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:26:02]tlvbuf is 001235B0 [13:26:02]SAM_PROTO_ClearQueue [13:26:02]wFMCommunicate request_size=4 [13:26:02]MH_SAM_APDU [13:26:02]CAPDU: 80 09 00 00 [13:26:02]Write to MH i2c: E2 08 00 94 28 80 09 00 00 00 00 00 00 2E [13:26:02]Write i2c OK [13:26:02]MH_I2C_Read... [13:26:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:02]Read from MH i2c: E2 [13:26:02]MH_I2C_Read... [13:26:02]Read from MH i2c: E2 03 00 [13:26:02]MH_I2C_Read... [13:26:02]Read from MH i2c: E2 03 00 94 28 00 90 00 30 [13:26:02]RAPDU: 90 00 [13:26:02]wFMCommunicate OK [13:26:02]SAM_PROTO_ClearQueue done [13:26:02]KKMCreateOFDPacket [13:26:02]OFDProtocolAddRootSTLVToBuf [13:26:02]FM_MakeSignedData [13:26:02]FM_MakeSignedData [13:26:02]SAM_PROTO_SignData [13:26:02]wFMCommunicate request_size=4 [13:26:02]MH_SAM_APDU [13:26:02]CAPDU: 80 0D 01 02 [13:26:02]Write to MH i2c: E2 08 00 95 28 80 0D 01 02 00 00 00 00 36 [13:26:02]Write i2c OK [13:26:02]MH_I2C_Read... [13:26:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:02]Read from MH i2c: E2 [13:26:02]MH_I2C_Read... [13:26:02]Read from MH i2c: E2 03 00 [13:26:02]MH_I2C_Read... [13:26:02]Read from MH i2c: E2 03 00 95 28 00 90 00 31 [13:26:02]RAPDU: 90 00 [13:26:02]wFMCommunicate OK [13:26:02]wFMCommunicate request_size=255 [13:26:02]MH_SAM_APDU [13:26: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 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 9C 00 00 00 F4 03 04 00 EC 46 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D7 CE 01 00 35 04 06 00 00 [13:26:02]Write to MH i2c: E2 02 01 96 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 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 9C 00 00 00 F4 03 04 00 EC 46 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D7 CE 01 00 35 04 06 00 00 00 00 B3 [13:26:02]Write i2c OK [13:26:02]MH_I2C_Read... [13:26:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:02]Read from MH i2c: E2 [13:26:02]MH_I2C_Read... [13:26:02]Read from MH i2c: E2 03 00 [13:26:02]MH_I2C_Read... [13:26:02]Read from MH i2c: E2 03 00 96 28 00 90 00 32 [13:26:02]RAPDU: 90 00 [13:26:02]wFMCommunicate OK [13:26:02]wFMCommunicate request_size=10 [13:26:02]MH_SAM_APDU [13:26:02]CAPDU: 80 0D 02 02 05 38 5F 57 38 C1 [13:26:02]Write to MH i2c: E2 0D 00 97 28 80 0D 02 02 05 00 38 5F 57 38 C1 00 00 2A [13:26:02]Write i2c OK [13:26:02]MH_I2C_Read... [13:26:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:03]Read from MH i2c: E2 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 03 00 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 03 00 97 28 00 90 00 33 [13:26:03]RAPDU: 90 00 [13:26:03]wFMCommunicate OK [13:26:03]wFMCommunicate request_size=4 [13:26:03]MH_SAM_APDU [13:26:03]CAPDU: 80 0D 03 02 [13:26:03]Write to MH i2c: E2 08 00 98 28 80 0D 03 02 00 00 00 00 3B [13:26:03]Write i2c OK [13:26:03]MH_I2C_Read... [13:26:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:03]Read from MH i2c: E2 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 0B 00 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 0B 00 98 28 00 A2 78 10 7A 59 2F 28 15 90 00 A5 [13:26:03]RAPDU: A2 78 10 7A 59 2F 28 15 90 00 [13:26:03]wFMCommunicate OK [13:26:03]SAM_PROTO_SignData done [13:26:03]FM_MakeSignedData done [13:26:03]CreateOFDProtocolMessage [13:26:03]wFMCommunicate request_size=4 [13:26:03]MH_SAM_APDU [13:26:03]CAPDU: 80 11 00 00 [13:26:03]Write to MH i2c: E2 08 00 99 28 80 11 00 00 00 00 00 00 3B [13:26:03]Write i2c OK [13:26:03]MH_I2C_Read... [13:26:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:03]Read from MH i2c: E2 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 17 00 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 17 00 99 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 96 [13:26:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:26:03]wFMCommunicate OK [13:26:03]CreateOFDProtocolMessage done [13:26:03]OFDSenderStorePacket 118487 [13:26:03]StoreOFDPacket docnum=118487 [13:26:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FD 21 07 01 4F 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 9C 00 00 00 F4 03 04 00 EC 46 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D7 CE 01 00 35 04 06 00 00 38 5F 57 38 C1 A2 78 10 7A 59 2F 28 15 [13:26:03]CheckFolder [13:26:03]dirname=/storage/ofd_packets [13:26:03]CheckFolder done [13:26:03]ProducePacketName [13:26:03]name=ofd_packets/00118487 [13:26:03]NVStorageSaveData ofd_packets/00118487 [13:26:03]File name is /storage/ofd_packets/00118487 [13:26:03]Write 301 bytes [13:26:03]NVStorageSaveData done [13:26:03]OFDSenderStorePacket done [13:26:03]KKMCreateOFDPacket done [13:26:03]NVStorageSaveData kkm_last_timestamp [13:26:03]File name is /storage/kkm_last_timestamp [13:26:03]Write 4 bytes [13:26:03]NVStorageSaveData done [13:26:03]ExternCall_PrintAddStr [13:26:03]wPrintStart [13:26:03]Write to MH i2c: 01 00 00 9A 28 C2 [13:26:03]Write i2c OK [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: 01 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: 01 07 00 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: 01 07 00 9A 28 00 00 00 00 00 FF 0F D7 [13:26:03]RasterBufferAndPrint [13:26:03]line Счет N : (1)949357 [13:26:03]line ИНН: 02508201610067 [13:26:03]line Контрольно-Кассовый Чек [13:26:03]line ПРОДАЖА [13:26:03]line ТРК (МРК, ГНК) : 51 [13:26:03]line Товар: 2710124130 [13:26:03]line Аи-92-К-4 [13:26:03]line 8.850 * 67.80 [13:26:03]line = 600.03 [13:26:03]line НДС 12% НСП 1% [13:26:03]line > о реализуемом товаре [13:26:03]line ОКРУГЛЕНИЕ: -0.03 [13:26:03]line ИТОГО: 600.00 [13:26:03]line Внесено: 600.00 [13:26:03]line СДАЧА: 0.00 [13:26:03]line НСП 1% : 5.31 [13:26:03]line НДС 12% : 63.72 [13:26:03]line Наличными: 600.00 [13:26:03]line Безнал.: 0.00 [13:26:03]line Место: АЗС № 134 "Партнер Нефть" [13:26:03]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:26:03]line СНО: Общий режим [13:26:03]line Чек 156 28.07.2024 13:26 [13:26:03]line Смена: 433 ФФД: 1.0 [13:26:03]line ЗНМ: 0300000044 [13:26:03]line РНМ: 0000000000092660 [13:26:03]line Версия ККМ: 001 [13:26:03]line ФМ: 0000000000874939 [13:26:03]line ФД: 118487 [13:26:03]line ФПД: 242117720257 [13:26:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T132604&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118487&fm=242117720257&tin=02508201610067®Number=0000000000092660&sum=60000 [13:26:03]written 0, free lines is 4095 [13:26:03]OFD Sender: Processing packet 118487 [packets to send 86, broken 85] [13:26:03]ProducePacketName [13:26:03]name=ofd_packets/00118487 [13:26:03]OFD Sender: To server: pG, [13:26:03]CommunicateWithHost lk.salyk.kg:30040 [13:26:03]ConnectInit lk.salyk.kg [13:26:03]Connected sock=10 [13:26:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FD 21 07 01 4F 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 9C 00 00 00 F4 03 04 00 EC 46 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D7 CE 01 00 35 04 06 00 00 38 5F 57 38 C1 A2 78 10 7A 59 2F 28 15 [13:26:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 27 10 47 00 75 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 39 33 39 10 04 04 00 D7 CE 01 00 F4 03 04 00 7C F4 A5 66 B6 04 01 00 00 11 5E 83 A8 1E 25 9E 13 [13:26:03]CommunicateWithHost err = 0 [13:26:03]CheckOFDResponse [13:26:03]1017 (14) - 77093643461234 [13:26:03]1041 (16) - 0000000000874939 [13:26:03]1040 (4) - 118487 [13:26:03]1012 (4) - 28.07.2024 07:34 [13:26:03]1206 (1) - 0 [13:26:03]OFD Sender: Remove packet 118487 [13:26:03]ProducePacketName [13:26:03]name=ofd_packets/00118487 [13:26:03]NVStorageDeleteData [13:26:03]Write to MH i2c: 01 00 00 C4 28 EC [13:26:03]Write i2c OK [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: 01 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: 01 07 00 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: 01 07 00 C4 28 00 00 00 00 00 E2 0C E1 [13:26:03]RasterBufferAndPrint [13:26:03]line [13:26:03]line [13:26:03]line [13:26:03]line [13:26:03]line [13:26:03]written 0, free lines is 3304 [13:26:03]MH_Cut [13:26:03]Write to MH i2c: D1 01 00 CB 28 01 C5 [13:26:03]Write i2c OK [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: D1 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: D1 01 00 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: D1 01 00 CB 28 00 C4 [13:26:03]Write to MH i2c: 01 00 00 CC 28 F4 [13:26:03]Write i2c OK [13:26:03]MH_I2C_Read... [13:26:03]OFD Sender: No OFD packet to send [13:26:04]*** Cut start [13:26:04]*** Partial cut [13:26:04]*** CUTSNS_PIN = 1 [13:26:04]*** CUTSNS_PIN = 0 [13:26:04]*** Brake cut motor [13:26:04]Read from MH i2c: 01 [13:26:04]MH_I2C_Read... [13:26:04]*** Stop cut motor [13:26:04]*** Cut end [13:26:04]Read from MH i2c: 01 07 00 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: 01 07 00 CC 28 00 00 00 00 00 FF 0F 09 [13:26:04]process_action close_receipt done [13:26:04]requested_data is exist [13:26:04]produce_requested_data [13:26:04]requested_item fm.sn is exist - process it [13:26:04]wFMCommunicate request_size=4 [13:26:04]MH_SAM_APDU [13:26:04]CAPDU: 80 11 00 00 [13:26:04]Write to MH i2c: E2 08 00 CD 28 80 11 00 00 00 00 00 00 6F [13:26:04]Write i2c OK [13:26:04]MH_I2C_Read... [13:26:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:04]Read from MH i2c: E2 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 17 00 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 17 00 CD 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CA [13:26:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:26:04]wFMCommunicate OK [13:26:04]requested_item fd.num is exist - process it [13:26:04]SAM_PROTO_GetFieldsCounters [13:26:04]wFMCommunicate request_size=4 [13:26:04]MH_SAM_APDU [13:26:04]CAPDU: 80 13 00 00 [13:26:04]Write to MH i2c: E2 08 00 CE 28 80 13 00 00 00 00 00 00 72 [13:26:04]Write i2c OK [13:26:04]MH_I2C_Read... [13:26:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:05]Read from MH i2c: E2 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: E2 62 00 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: E2 62 00 CE 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D7 CE 01 00 0E 04 04 00 B1 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 C5 [13:26:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D7 CE 01 00 0E 04 04 00 B1 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 [13:26:05]wFMCommunicate OK [13:26:05]SAM_PROTO_GetFieldsCounters done [13:26:05]requested_item shift.num is exist - process it [13:26:05]requested_item shift.opened is exist - process it [13:26:05]req_shift_opened [13:26:05]FM_GetShiftState [13:26:05]SAM_PROTO_GetShiftState [13:26:05]wFMCommunicate request_size=4 [13:26:05]MH_SAM_APDU [13:26:05]CAPDU: 80 13 01 00 [13:26:05]Write to MH i2c: E2 08 00 CF 28 80 13 01 00 00 00 00 00 74 [13:26:05]Write i2c OK [13:26:05]MH_I2C_Read... [13:26:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:05]Read from MH i2c: E2 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: E2 0E 00 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: E2 0E 00 CF 28 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 4B [13:26:05]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [13:26:05]wFMCommunicate OK [13:26:05]SAM_PROTO_GetShiftState done [13:26:05]FM_GetShiftState done [13:26:05]req_shift_opened done [13:26:05]requested_item shift.open_date is exist - process it [13:26:05]req_shift_open_date [13:26:05]req_shift_open_date done [13:26:05]produce_requested_data done [13:26:05]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118487,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [13:26:05]process_action_free close_receipt [13:26:05]json_value_free [13:26:05]json_value_free done [13:26:05]process_json_proto returns [13:26:05]Send response to host [13:26:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118487,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [13:26:05]free response buf [13:26:05]execute_script done [13:26:05]execute_script returns [13:26:05]free content buf [13:26:05]Sock 7.Close socket [13:26:05]Sock 7.Thread stoped [13:26:08]OFD Sender: No OFD packet to send [13:26:10]accept exits with 9 [13:26:10]New connection [13:26:10]New thread 3067067748 created [13:26:10]Thread 3066924388 joined [13:26:10]Waiting for new connection... [13:26:10] Sock 9.Parse request [13:26:10]Sock 9.Check first char [13:26:10]Sock 9.First char is OK [13:26:10]request: POST /json_proto HTTP/1.0 [13:26:10]Method: POST [13:26:10]URL: /json_proto [13:26:10]Method is POST - this is cgi request [13:26:10]url: /json_proto [13:26:10]query_string will be loaded in cgi processing [13:26:10]execute_cgi json_proto POST (null) [13:26:10]execute_cgi path=json_proto method=POST [13:26:10]POST find Content-Length [13:26:10]Host: 172.17.45.7:8080 [13:26:10]Content-Length: 674 [13:26:10]Content-Type: application/json [13:26:10] [13:26:10]POST finish read [13:26:10]Found Content-Length = 674 [13:26:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:10]execute_script... [13:26: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)949358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:10]POST & json_proto [13:26:10]process_json_proto [13:26:10]json parsed OK: [13:26:10]protocol is kg_v1.0 [13:26:10]action value=close_receipt [13:26:10]process_action close_receipt [13:26:10]cmd_close_receipt [13:26:10]MH_GetDate [13:26:10]Write to MH i2c: F0 00 00 D0 28 E7 [13:26:10]Write i2c OK [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: F0 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: F0 09 00 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: F0 09 00 D0 28 00 F5 46 A6 66 90 0F 3E 66 7A [13:26:10]GetLastDocTimeStamp 1722173164 [13:26:10]current date 1722173173 [13:26:10]FM_GetShiftState [13:26:10]SAM_PROTO_GetShiftState [13:26:10]wFMCommunicate request_size=4 [13:26:10]MH_SAM_APDU [13:26:10]CAPDU: 80 13 01 00 [13:26:10]Write to MH i2c: E2 08 00 D1 28 80 13 01 00 00 00 00 00 76 [13:26:10]Write i2c OK [13:26:10]MH_I2C_Read... [13:26:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:10]Read from MH i2c: E2 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 0E 00 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 0E 00 D1 28 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 4D [13:26:10]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [13:26:10]wFMCommunicate OK [13:26:10]SAM_PROTO_GetShiftState done [13:26:10]FM_GetShiftState done [13:26:10]opened in 1722125364 [13:26:10]opened+sec_in_day 1722211764 [13:26:10]quantity*price = 50063 [13:26:10]sum+1 = 50064 [13:26:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 157 28.07.2024 13:26 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118488 ФПД: 230713953877376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T132613&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118488&fm=230713953877376&tin=02508201610067®Number=0000000000092660&sum=50000 [13:26:11]StoreToDocumentArchive [13:26:11]shift 433 fd 118488 [13:26:11]save to /storage/0433/doc_00118488 [13:26:11]save last doc name /storage/0433/doc_00118488 to /storage/kkm_last_doc_name [13:26:11]save OK [13:26:11]Clear old archive folders... [13:26:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:26:11]tlvbuf is 001AA020 [13:26:11]SAM_PROTO_ClearQueue [13:26:11]wFMCommunicate request_size=4 [13:26:11]MH_SAM_APDU [13:26:11]CAPDU: 80 09 00 00 [13:26:11]Write to MH i2c: E2 08 00 DE 28 80 09 00 00 00 00 00 00 78 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:11]Read from MH i2c: E2 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 DE 28 00 90 00 7A [13:26:11]RAPDU: 90 00 [13:26:11]wFMCommunicate OK [13:26:11]SAM_PROTO_ClearQueue done [13:26:11]KKMCreateOFDPacket [13:26:11]OFDProtocolAddRootSTLVToBuf [13:26:11]FM_MakeSignedData [13:26:11]FM_MakeSignedData [13:26:11]SAM_PROTO_SignData [13:26:11]wFMCommunicate request_size=4 [13:26:11]MH_SAM_APDU [13:26:11]CAPDU: 80 0D 01 02 [13:26:11]Write to MH i2c: E2 08 00 DF 28 80 0D 01 02 00 00 00 00 80 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:11]Read from MH i2c: E2 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 DF 28 00 90 00 7B [13:26:11]RAPDU: 90 00 [13:26:11]wFMCommunicate OK [13:26:11]wFMCommunicate request_size=255 [13:26:11]MH_SAM_APDU [13:26:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 F5 46 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D8 CE 01 00 35 04 06 00 D1 D5 47 43 [13:26:11]Write to MH i2c: E2 02 01 E0 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 F5 46 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D8 CE 01 00 35 04 06 00 D1 D5 47 43 00 00 05 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:12]Read from MH i2c: E2 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 03 00 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 03 00 E0 28 00 90 00 7C [13:26:12]RAPDU: 90 00 [13:26:12]wFMCommunicate OK [13:26:12]wFMCommunicate request_size=7 [13:26:12]MH_SAM_APDU [13:26:12]CAPDU: 80 0D 02 02 02 FD 80 [13:26:12]Write to MH i2c: E2 0A 00 E1 28 80 0D 02 02 02 00 FD 80 00 00 04 [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:12]Read from MH i2c: E2 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 03 00 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 03 00 E1 28 00 90 00 7D [13:26:12]RAPDU: 90 00 [13:26:12]wFMCommunicate OK [13:26:12]wFMCommunicate request_size=4 [13:26:12]MH_SAM_APDU [13:26:12]CAPDU: 80 0D 03 02 [13:26:12]Write to MH i2c: E2 08 00 E2 28 80 0D 03 02 00 00 00 00 85 [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:12]Read from MH i2c: E2 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 0B 00 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 0B 00 E2 28 00 16 A1 A4 C9 85 E5 04 B2 90 00 CA [13:26:12]RAPDU: 16 A1 A4 C9 85 E5 04 B2 90 00 [13:26:12]wFMCommunicate OK [13:26:12]SAM_PROTO_SignData done [13:26:12]FM_MakeSignedData done [13:26:12]CreateOFDProtocolMessage [13:26:12]wFMCommunicate request_size=4 [13:26:12]MH_SAM_APDU [13:26:12]CAPDU: 80 11 00 00 [13:26:12]Write to MH i2c: E2 08 00 E3 28 80 11 00 00 00 00 00 00 85 [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:12]Read from MH i2c: E2 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 17 00 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 17 00 E3 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E0 [13:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:26:12]wFMCommunicate OK [13:26:12]CreateOFDProtocolMessage done [13:26:12]OFDSenderStorePacket 118488 [13:26:12]StoreOFDPacket docnum=118488 [13:26:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F7 F9 04 01 D0 F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 F5 46 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D8 CE 01 00 35 04 06 00 D1 D5 47 43 FD 80 16 A1 A4 C9 85 E5 04 B2 [13:26:12]CheckFolder [13:26:12]dirname=/storage/ofd_packets [13:26:12]CheckFolder done [13:26:12]ProducePacketName [13:26:12]name=ofd_packets/00118488 [13:26:12]NVStorageSaveData ofd_packets/00118488 [13:26:12]File name is /storage/ofd_packets/00118488 [13:26:12]Write 298 bytes [13:26:12]NVStorageSaveData done [13:26:12]OFDSenderStorePacket done [13:26:12]KKMCreateOFDPacket done [13:26:12]NVStorageSaveData kkm_last_timestamp [13:26:12]File name is /storage/kkm_last_timestamp [13:26:12]Write 4 bytes [13:26:12]NVStorageSaveData done [13:26:12]ExternCall_PrintAddStr [13:26:12]wPrintStart [13:26:12]Write to MH i2c: 01 00 00 E4 28 0C [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: 01 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: 01 07 00 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: 01 07 00 E4 28 00 00 00 00 00 FF 0F 21 [13:26:12]RasterBufferAndPrint [13:26:12]line Счет N : (1)949358 [13:26:12]line ИНН: 02508201610067 [13:26:12]line Контрольно-Кассовый Чек [13:26:12]line ПРОДАЖА [13:26:12]line ТРК (МРК, ГНК) : 44 [13:26:12]line Товар: 2710194800 [13:26:12]line ДТ-К-5 [13:26:12]line 6.570 * 76.20 [13:26:12]line = 500.63 [13:26:12]line НДС 12% НСП 1% [13:26:12]line > о реализуемом товаре [13:26:12]line ОКРУГЛЕНИЕ: -0.63 [13:26:12]line ИТОГО: 500.00 [13:26:12]line Внесено: 500.00 [13:26:12]line СДАЧА: 0.00 [13:26:12]line НСП 1% : 4.43 [13:26:12]line НДС 12% : 53.16 [13:26:12]line Наличными: 500.00 [13:26:12]line Безнал.: 0.00 [13:26:12]line Место: АЗС № 134 "Партнер Нефть" [13:26:12]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:26:12]line СНО: Общий режим [13:26:12]line Чек 157 28.07.2024 13:26 [13:26:12]line Смена: 433 ФФД: 1.0 [13:26:12]line ЗНМ: 0300000044 [13:26:12]line РНМ: 0000000000092660 [13:26:12]line Версия ККМ: 001 [13:26:12]line ФМ: 0000000000874939 [13:26:12]line ФД: 118488 [13:26:12]line ФПД: 230713953877376 [13:26:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T132613&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118488&fm=230713953877376&tin=02508201610067®Number=0000000000092660&sum=50000 [13:26:12]written 0, free lines is 4095 [13:26:12]OFD Sender: Processing packet 118488 [packets to send 86, broken 85] [13:26:12]ProducePacketName [13:26:12]name=ofd_packets/00118488 [13:26:12]OFD Sender: To server: pG, [13:26:12]CommunicateWithHost lk.salyk.kg:30040 [13:26:12]ConnectInit lk.salyk.kg [13:26:12]Connected sock=10 [13:26: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 39 33 39 0C 01 00 00 F7 F9 04 01 D0 F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 F5 46 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D8 CE 01 00 35 04 06 00 D1 D5 47 43 FD 80 16 A1 A4 C9 85 E5 04 B2 [13:26:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 61 99 47 00 48 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 39 33 39 10 04 04 00 D8 CE 01 00 F4 03 04 00 85 F4 A5 66 B6 04 01 00 00 3A 82 53 B0 6C 59 D5 D3 [13:26:12]CommunicateWithHost err = 0 [13:26:12]CheckOFDResponse [13:26:12]1017 (14) - 77093643461234 [13:26:12]1041 (16) - 0000000000874939 [13:26:12]1040 (4) - 118488 [13:26:12]1012 (4) - 28.07.2024 07:34 [13:26:12]1206 (1) - 0 [13:26:12]OFD Sender: Remove packet 118488 [13:26:12]ProducePacketName [13:26:12]name=ofd_packets/00118488 [13:26:12]NVStorageDeleteData [13:26:12]Write to MH i2c: 01 00 00 0E 29 37 [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: 01 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: 01 07 00 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: 01 07 00 0E 29 00 00 00 00 00 DD 0C 27 [13:26:12]RasterBufferAndPrint [13:26:12]line [13:26:12]line [13:26:12]line [13:26:12]line [13:26:12]line [13:26:12]written 0, free lines is 3302 [13:26:12]MH_Cut [13:26:12]Write to MH i2c: D1 01 00 15 29 01 10 [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: D1 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: D1 01 00 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: D1 01 00 15 29 00 0F [13:26:12]Write to MH i2c: 01 00 00 16 29 3F [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:13]OFD Sender: No OFD packet to send [13:26:13]*** Cut start [13:26:13]*** Partial cut [13:26:13]*** CUTSNS_PIN = 1 [13:26:13]*** CUTSNS_PIN = 0 [13:26:13]*** Brake cut motor [13:26:13]Read from MH i2c: 01 [13:26:13]MH_I2C_Read... [13:26:13]*** Stop cut motor [13:26:13]*** Cut end [13:26:13]Read from MH i2c: 01 07 00 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: 01 07 00 16 29 00 00 00 00 00 FF 0F 54 [13:26:13]process_action close_receipt done [13:26:13]requested_data is exist [13:26:13]produce_requested_data [13:26:13]requested_item fm.sn is exist - process it [13:26:13]wFMCommunicate request_size=4 [13:26:13]MH_SAM_APDU [13:26:13]CAPDU: 80 11 00 00 [13:26:13]Write to MH i2c: E2 08 00 17 29 80 11 00 00 00 00 00 00 BA [13:26:13]Write i2c OK [13:26:13]MH_I2C_Read... [13:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:14]Read from MH i2c: E2 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 17 00 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 17 00 17 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 15 [13:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:26:14]wFMCommunicate OK [13:26:14]requested_item fd.num is exist - process it [13:26:14]SAM_PROTO_GetFieldsCounters [13:26:14]wFMCommunicate request_size=4 [13:26:14]MH_SAM_APDU [13:26:14]CAPDU: 80 13 00 00 [13:26:14]Write to MH i2c: E2 08 00 18 29 80 13 00 00 00 00 00 00 BD [13:26:14]Write i2c OK [13:26:14]MH_I2C_Read... [13:26:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:14]Read from MH i2c: E2 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 62 00 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 62 00 18 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D8 CE 01 00 0E 04 04 00 B1 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 14 [13:26:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D8 CE 01 00 0E 04 04 00 B1 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 [13:26:14]wFMCommunicate OK [13:26:14]SAM_PROTO_GetFieldsCounters done [13:26:14]requested_item shift.num is exist - process it [13:26:14]requested_item shift.opened is exist - process it [13:26:14]req_shift_opened [13:26:14]FM_GetShiftState [13:26:14]SAM_PROTO_GetShiftState [13:26:14]wFMCommunicate request_size=4 [13:26:14]MH_SAM_APDU [13:26:14]CAPDU: 80 13 01 00 [13:26:14]Write to MH i2c: E2 08 00 19 29 80 13 01 00 00 00 00 00 BF [13:26:14]Write i2c OK [13:26:14]MH_I2C_Read... [13:26:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:14]Read from MH i2c: E2 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 0E 00 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 0E 00 19 29 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 96 [13:26:14]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [13:26:14]wFMCommunicate OK [13:26:14]SAM_PROTO_GetShiftState done [13:26:14]FM_GetShiftState done [13:26:14]req_shift_opened done [13:26:14]requested_item shift.open_date is exist - process it [13:26:14]req_shift_open_date [13:26:14]req_shift_open_date done [13:26:14]produce_requested_data done [13:26:14]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118488,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [13:26:14]process_action_free close_receipt [13:26:14]json_value_free [13:26:14]json_value_free done [13:26:14]process_json_proto returns [13:26:14]Send response to host [13:26:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118488,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [13:26:14]free response buf [13:26:14]execute_script done [13:26:14]execute_script returns [13:26:14]free content buf [13:26:14]Sock 9.Close socket [13:26:14]Sock 9.Thread stoped [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:53]OFD Sender: No OFD packet to send [13:30:58]OFD Sender: No OFD packet to send [13:31:03]OFD Sender: No OFD packet to send [13:31:08]OFD Sender: No OFD packet to send [13:31:13]OFD Sender: No OFD packet to send [13:31:18]OFD Sender: No OFD packet to send [13:31:23]OFD Sender: No OFD packet to send [13:31:28]OFD Sender: No OFD packet to send [13:31:33]OFD Sender: No OFD packet to send [13:31:38]OFD Sender: No OFD packet to send [13:31:43]OFD Sender: No OFD packet to send [13:31:48]OFD Sender: No OFD packet to send [13:31:53]OFD Sender: No OFD packet to send [13:31:58]OFD Sender: No OFD packet to send [13:32:03]OFD Sender: No OFD packet to send [13:32:08]OFD Sender: No OFD packet to send [13:32:13]OFD Sender: No OFD packet to send [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:38:04]ConnectInit Can't connect to host [13:38:08]OFD Sender: No OFD packet to send [13:38:13]OFD Sender: No OFD packet to send [13:38:18]OFD Sender: No OFD packet to send [13:38:23]OFD Sender: No OFD packet to send [13:38:28]OFD Sender: No OFD packet to send [13:38:33]OFD Sender: No OFD packet to send [13:38:38]OFD Sender: No OFD packet to send [13:38:38]accept exits with 8 [13:38:38]New connection [13:38:38]New thread 3066797412 created [13:38:38]Waiting for new connection... [13:38:38] Sock 8.Parse request [13:38:38]Sock 8.Check first char [13:38:38]Sock 8.First char is OK [13:38:38]request: POST /json_proto HTTP/1.0 [13:38:38]Method: POST [13:38:38]URL: /json_proto [13:38:38]Method is POST - this is cgi request [13:38:38]url: /json_proto [13:38:38]query_string will be loaded in cgi processing [13:38:38]execute_cgi json_proto POST (null) [13:38:38]execute_cgi path=json_proto method=POST [13:38:38]POST find Content-Length [13:38:38]Host: 172.17.45.7:8080 [13:38:38]Content-Length: 215 [13:38:38]Content-Type: application/json [13:38:38] [13:38:38]POST finish read [13:38:38]Found Content-Length = 215 [13:38: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" ] } } [13:38:38]execute_script... [13:38: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" ] } } [13:38:38]POST & json_proto [13:38:38]process_json_proto [13:38:38]json parsed OK: [13:38:38]protocol is kg_v1.0 [13:38:38]action value=get_value [13:38:38]process_action get_value [13:38:38]cmd_get_value [13:38:38]process_action get_value done [13:38:38]requested_data is exist [13:38:38]produce_requested_data [13:38:38]requested_item kkm.sn is exist - process it [13:38:38]requested_item kkm.ver is exist - process it [13:38:38]requested_item fm.sn is exist - process it [13:38:38]wFMCommunicate request_size=4 [13:38:38]MH_SAM_APDU [13:38:38]CAPDU: 80 11 00 00 [13:38:38]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [13:38:38]Write i2c OK [13:38:38]MH_I2C_Read... [13:38:39]Read from MH i2c: E2 [13:38:39]MH_I2C_Read... [13:38:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:39]Read from MH i2c: E2 17 00 [13:38:39]MH_I2C_Read... [13:38:39]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E5 [13:38:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:38:39]wFMCommunicate OK [13:38:39]requested_item fd.num is exist - process it [13:38:39]SAM_PROTO_GetFieldsCounters [13:38:39]wFMCommunicate request_size=4 [13:38:39]MH_SAM_APDU [13:38:39]CAPDU: 80 13 00 00 [13:38:39]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [13:38:39]Write i2c OK [13:38:39]MH_I2C_Read... [13:38:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:39]Read from MH i2c: E2 [13:38:39]MH_I2C_Read... [13:38:39]Read from MH i2c: E2 62 00 [13:38:39]MH_I2C_Read... [13:38:39]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D8 CE 01 00 0E 04 04 00 B1 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 E4 [13:38:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D8 CE 01 00 0E 04 04 00 B1 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 [13:38:39]wFMCommunicate OK [13:38:39]SAM_PROTO_GetFieldsCounters done [13:38:39]requested_item shift.num is exist - process it [13:38:39]requested_item shift.opened is exist - process it [13:38:39]req_shift_opened [13:38:39]FM_GetShiftState [13:38:39]SAM_PROTO_GetShiftState [13:38:39]wFMCommunicate request_size=4 [13:38:39]MH_SAM_APDU [13:38:39]CAPDU: 80 13 01 00 [13:38:39]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [13:38:39]Write i2c OK [13:38:39]MH_I2C_Read... [13:38:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:39]Read from MH i2c: E2 [13:38:39]MH_I2C_Read... [13:38:39]Read from MH i2c: E2 0E 00 [13:38:39]MH_I2C_Read... [13:38:39]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 66 [13:38:39]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [13:38:39]wFMCommunicate OK [13:38:39]SAM_PROTO_GetShiftState done [13:38:39]FM_GetShiftState done [13:38:39]req_shift_opened done [13:38:39]requested_item shift.open_date is exist - process it [13:38:39]req_shift_open_date [13:38:39]req_shift_open_date done [13:38:39]produce_requested_data done [13:38:39]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118488,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [13:38:39]process_action_free get_value [13:38:39]json_value_free [13:38:39]json_value_free done [13:38:39]process_json_proto returns [13:38:39]Send response to host [13:38:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118488,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [13:38:39]free response buf [13:38:39]execute_script done [13:38:39]execute_script returns [13:38:39]free content buf [13:38:39]Sock 8.Close socket [13:38:39]Sock 8.Thread stoped [13:38:39]accept exits with 9 [13:38:39]New connection [13:38:39]New thread 3066654052 created [13:38:39]Thread 3066797412 joined [13:38:39]Waiting for new connection... [13:38:39] Sock 9.Parse request [13:38:39]Sock 9.Check first char [13:38:39]Sock 9.First char is OK [13:38:39]request: POST /json_proto HTTP/1.0 [13:38:39]Method: POST [13:38:39]URL: /json_proto [13:38:39]Method is POST - this is cgi request [13:38:39]url: /json_proto [13:38:39]query_string will be loaded in cgi processing [13:38:39]execute_cgi json_proto POST (null) [13:38:39]execute_cgi path=json_proto method=POST [13:38:39]POST find Content-Length [13:38:39]Host: 172.17.45.7:8080 [13:38:39]Content-Length: 331 [13:38:39]Content-Type: application/json [13:38:39] [13:38:39]POST finish read [13:38:39]Found Content-Length = 331 [13:38: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" ] } } [13:38:39]execute_script... [13:38: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" ] } } [13:38:39]POST & json_proto [13:38:39]process_json_proto [13:38:39]json parsed OK: [13:38:39]protocol is kg_v1.0 [13:38:39]action value=get_value [13:38:39]process_action get_value [13:38:39]cmd_get_value [13:38:39]process_action get_value done [13:38:39]requested_data is exist [13:38:39]produce_requested_data [13:38:39]requested_item fm.sale.total is exist - process it [13:38:39]SAM_PROTO_GetFMData [13:38:39]wFMCommunicate request_size=4 [13:38:39]MH_SAM_APDU [13:38:39]CAPDU: 80 13 03 00 [13:38:39]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [13:38:39]Write i2c OK [13:38:39]MH_I2C_Read... [13:38:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:38:39]Read from MH i2c: E2 [13:38:39]MH_I2C_Read... [13:38:39]Read from MH i2c: E2 FD 00 [13:38:39]MH_I2C_Read... [13:38:39]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 76 CB 01 00 69 04 A3 00 6F 04 04 00 F0 BD 01 00 B1 04 05 00 98 2C 41 74 03 70 04 05 00 3C 22 34 A7 02 72 04 04 00 5C 0A 0D CD 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 F9 6F ED 5D 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 14 A8 D3 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 9C 00 6F 04 04 00 86 0D 00 00 B1 04 04 00 BC BC 0F 3B 70 04 04 00 BC BC 0F 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2F D3 45 06 EF 03 09 90 00 49 [13:38:39]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 76 CB 01 00 69 04 A3 00 6F 04 04 00 F0 BD 01 00 B1 04 05 00 98 2C 41 74 03 70 04 05 00 3C 22 34 A7 02 72 04 04 00 5C 0A 0D CD 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 F9 6F ED 5D 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 14 A8 D3 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 9C 00 6F 04 04 00 86 0D 00 00 B1 04 04 00 BC BC 0F 3B 70 04 04 00 BC BC 0F 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2F D3 45 06 EF 03 09 90 00 [13:38:39]wFMCommunicate OK [13:38:39]wFMCommunicate request_size=4 [13:38:39]MH_SAM_APDU [13:38:39]CAPDU: 80 17 00 00 [13:38:39]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [13:38:39]Write i2c OK [13:38:39]MH_I2C_Read... [13:38:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:38:40]Read from MH i2c: E2 [13:38:40]MH_I2C_Read... [13:38:40]Read from MH i2c: E2 FD 00 [13:38:40]MH_I2C_Read... [13:38:40]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B7 D0 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 56 [13:38:40]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B7 D0 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [13:38:40]wFMCommunicate OK [13:38:40]wFMCommunicate request_size=4 [13:38:40]MH_SAM_APDU [13:38:40]CAPDU: 80 17 00 00 [13:38:40]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [13:38:40]Write i2c OK [13:38:40]MH_I2C_Read... [13:38:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:38:40]Read from MH i2c: E2 [13:38:40]MH_I2C_Read... [13:38:40]Read from MH i2c: E2 FD 00 [13:38:40]MH_I2C_Read... [13:38:40]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [13:38:40]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [13:38:40]wFMCommunicate OK [13:38:40]wFMCommunicate request_size=4 [13:38:40]MH_SAM_APDU [13:38:40]CAPDU: 80 17 00 00 [13:38:40]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [13:38:40]Write i2c OK [13:38:40]MH_I2C_Read... [13:38:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:38:40]Read from MH i2c: E2 [13:38:40]MH_I2C_Read... [13:38:40]Read from MH i2c: E2 FD 00 [13:38:40]MH_I2C_Read... [13:38:40]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 22 [13:38:40]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [13:38:40]wFMCommunicate OK [13:38:40]wFMCommunicate request_size=4 [13:38:40]MH_SAM_APDU [13:38:40]CAPDU: 80 17 00 00 [13:38:40]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [13:38:40]Write i2c OK [13:38:40]MH_I2C_Read... [13:38:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [13:38:40]Read from MH i2c: E2 [13:38:40]MH_I2C_Read... [13:38:40]Read from MH i2c: E2 E2 00 [13:38:40]MH_I2C_Read... [13:38:40]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 75 [13:38:40]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:38:40]wFMCommunicate OK [13:38:40]SAM_PROTO_GetFMData done [13:38:40]requested_item fm.sale_refund.total is exist - process it [13:38:40]requested_item fm.buy.total is exist - process it [13:38:40]requested_item shift.sale.total is exist - process it [13:38:40]SAM_PROTO_GetShiftData [13:38:40]wFMCommunicate request_size=4 [13:38:40]MH_SAM_APDU [13:38:40]CAPDU: 80 13 02 00 [13:38:40]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [13:38:40]Write i2c OK [13:38:40]MH_I2C_Read... [13:38:41]Read from MH i2c: E2 [13:38:41]MH_I2C_Read... [13:38:41]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:38:41]Read from MH i2c: E2 FD 00 [13:38:41]MH_I2C_Read... [13:38:41]Read from MH i2c: E2 FD 00 18 00 00 BB 04 AA 04 B7 04 6E 04 04 00 9D 00 00 00 69 04 9E 00 6F 04 04 00 99 00 00 00 B1 04 04 00 74 8B A9 01 70 04 03 00 84 27 77 72 04 04 00 F0 63 32 01 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 AF 32 2D 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 2D C4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 E0 8D 05 70 04 03 00 E0 8D 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 03 97 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 AF [13:38:41]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 9D 00 00 00 69 04 9E 00 6F 04 04 00 99 00 00 00 B1 04 04 00 74 8B A9 01 70 04 03 00 84 27 77 72 04 04 00 F0 63 32 01 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 AF 32 2D 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 2D C4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 E0 8D 05 70 04 03 00 E0 8D 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 03 97 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [13:38:41]wFMCommunicate OK [13:38:41]wFMCommunicate request_size=4 [13:38:41]MH_SAM_APDU [13:38:41]CAPDU: 80 17 00 00 [13:38:41]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [13:38:41]Write i2c OK [13:38:41]MH_I2C_Read... [13:38:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:38:41]Read from MH i2c: E2 [13:38:41]MH_I2C_Read... [13:38:41]Read from MH i2c: E2 FD 00 [13:38:41]MH_I2C_Read... [13:38:41]Read from MH i2c: E2 FD 00 19 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 95 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 E4 [13:38:41]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 95 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 [13:38:41]wFMCommunicate OK [13:38:41]wFMCommunicate request_size=4 [13:38:41]MH_SAM_APDU [13:38:41]CAPDU: 80 17 00 00 [13:38:41]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [13:38:41]Write i2c OK [13:38:41]MH_I2C_Read... [13:38:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:38:41]Read from MH i2c: E2 [13:38:41]MH_I2C_Read... [13:38:41]Read from MH i2c: E2 FD 00 [13:38:41]MH_I2C_Read... [13:38:41]Read from MH i2c: E2 FD 00 1A 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 C6 [13:38:41]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [13:38:41]wFMCommunicate OK [13:38:41]wFMCommunicate request_size=4 [13:38:41]MH_SAM_APDU [13:38:41]CAPDU: 80 17 00 00 [13:38:41]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [13:38:41]Write i2c OK [13:38:41]MH_I2C_Read... [13:38:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:38:42]Read from MH i2c: E2 [13:38:42]MH_I2C_Read... [13:38:42]Read from MH i2c: E2 FD 00 [13:38:42]MH_I2C_Read... [13:38:42]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 10 [13:38:42]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [13:38:42]wFMCommunicate OK [13:38:42]wFMCommunicate request_size=4 [13:38:42]MH_SAM_APDU [13:38:42]CAPDU: 80 17 00 00 [13:38:42]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [13:38:42]Write i2c OK [13:38:42]MH_I2C_Read... [13:38:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [13:38:42]Read from MH i2c: E2 [13:38:42]MH_I2C_Read... [13:38:42]Read from MH i2c: E2 D8 00 [13:38:42]MH_I2C_Read... [13:38:42]Read from MH i2c: E2 D8 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 83 [13:38:42]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:38:42]wFMCommunicate OK [13:38:42]SAM_PROTO_GetShiftData done [13:38:42]requested_item shift.sale.total_cash is exist - process it [13:38:42]requested_item shift.sale_refund.total is exist - process it [13:38:42]requested_item shift.sale_refund.total_cash is exist - process it [13:38:42]requested_item shift.buy.total is exist - process it [13:38:42]requested_item shift.buy.total_cash is exist - process it [13:38:42]produce_requested_data done [13:38:42]produce_requested_data return {"fm.sale.total":148353302.00,"fm.sale_refund.total":9908871.00,"fm.buy.total":0.00,"shift.sale.total":278885.00,"shift.sale.total_cash":78089.00,"shift.sale_refund.total":3640.00,"shift.sale_refund.total_cash":3640.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [13:38:42]process_action_free get_value [13:38:42]json_value_free [13:38:42]json_value_free done [13:38:42]process_json_proto returns [13:38:42]Send response to host [13:38:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148353302.00,"fm.sale_refund.total":9908871.00,"fm.buy.total":0.00,"shift.sale.total":278885.00,"shift.sale.total_cash":78089.00,"shift.sale_refund.total":3640.00,"shift.sale_refund.total_cash":3640.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [13:38:42]free response buf [13:38:42]execute_script done [13:38:42]execute_script returns [13:38:42]free content buf [13:38:42]Sock 9.Close socket [13:38:42]Sock 9.Thread stoped [13:38:43]OFD Sender: No OFD packet to send [13:38:48]OFD Sender: No OFD packet to send [13:38:53]OFD Sender: No OFD packet to send [13:38:58]OFD Sender: No OFD packet to send [13:39:03]OFD Sender: No OFD packet to send [13:39:08]OFD Sender: No OFD packet to send [13:39:13]OFD Sender: No OFD packet to send [13:39:18]OFD Sender: No OFD packet to send [13:39:23]OFD Sender: No OFD packet to send [13:39:28]OFD Sender: No OFD packet to send [13:39:33]OFD Sender: No OFD packet to send [13:39:38]OFD Sender: No OFD packet to send [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:53]OFD Sender: No OFD packet to send [13:39:58]OFD Sender: No OFD packet to send [13:40:03]OFD Sender: No OFD packet to send [13:40:08]OFD Sender: No OFD packet to send [13:40:13]OFD Sender: No OFD packet to send [13:40:18]OFD Sender: No OFD packet to send [13:40:23]OFD Sender: No OFD packet to send [13:40:28]OFD Sender: No OFD packet to send [13:40:33]OFD Sender: No OFD packet to send [13:40:38]OFD Sender: No OFD packet to send [13:40:43]OFD Sender: No OFD packet to send [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:44]accept exits with 8 [13:45:44]New connection [13:45:44]New thread 3066797412 created [13:45:44]Thread 3066654052 joined [13:45:44]Waiting for new connection... [13:45:44] Sock 8.Parse request [13:45:44]Sock 8.Check first char [13:45:44]Sock 8.First char is OK [13:45:44]request: POST /json_proto HTTP/1.0 [13:45:44]Method: POST [13:45:44]URL: /json_proto [13:45:44]Method is POST - this is cgi request [13:45:44]url: /json_proto [13:45:44]query_string will be loaded in cgi processing [13:45:44]execute_cgi json_proto POST (null) [13:45:44]execute_cgi path=json_proto method=POST [13:45:44]POST find Content-Length [13:45:44]Host: 172.17.45.7:8080 [13:45:44]Content-Length: 677 [13:45:44]Content-Type: application/json [13:45:44] [13:45:44]POST finish read [13:45:44]Found Content-Length = 677 [13:45:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:44]execute_script... [13:45: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)949359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:44]POST & json_proto [13:45:44]process_json_proto [13:45:44]json parsed OK: [13:45:44]protocol is kg_v1.0 [13:45:44]action value=close_receipt [13:45:44]process_action close_receipt [13:45:44]cmd_close_receipt [13:45:44]MH_GetDate [13:45:44]Write to MH i2c: F0 00 00 1D 00 0C [13:45:44]Write i2c OK [13:45:44]MH_I2C_Read... [13:45:44]Read from MH i2c: F0 [13:45:44]MH_I2C_Read... [13:45:44]Read from MH i2c: F0 09 00 [13:45:44]MH_I2C_Read... [13:45:44]Read from MH i2c: F0 09 00 1D 00 00 89 4B A6 66 90 0F 3E 66 38 [13:45:44]GetLastDocTimeStamp 1722173173 [13:45:44]current date 1722174345 [13:45:44]FM_GetShiftState [13:45:44]SAM_PROTO_GetShiftState [13:45:44]wFMCommunicate request_size=4 [13:45:44]MH_SAM_APDU [13:45:44]CAPDU: 80 13 01 00 [13:45:44]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [13:45:44]Write i2c OK [13:45:44]MH_I2C_Read... [13:45:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:44]Read from MH i2c: E2 [13:45:44]MH_I2C_Read... [13:45:44]Read from MH i2c: E2 0E 00 [13:45:44]MH_I2C_Read... [13:45:44]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 72 [13:45:44]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [13:45:44]wFMCommunicate OK [13:45:44]SAM_PROTO_GetShiftState done [13:45:44]FM_GetShiftState done [13:45:44]opened in 1722125364 [13:45:44]opened+sec_in_day 1722211764 [13:45:44]quantity*price = 20001 [13:45:44]sum+1 = 20002 [13:45:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 158 28.07.2024 13:45 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118489 ФПД: 167687476651020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T134545&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118489&fm=167687476651020&tin=02508201610067®Number=0000000000092660&sum=20000 [13:45:46]StoreToDocumentArchive [13:45:46]shift 433 fd 118489 [13:45:46]save to /storage/0433/doc_00118489 [13:45:46]save last doc name /storage/0433/doc_00118489 to /storage/kkm_last_doc_name [13:45:46]save OK [13:45:46]Clear old archive folders... [13:45:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:45:46]tlvbuf is 01DFDA90 [13:45:46]SAM_PROTO_ClearQueue [13:45:46]wFMCommunicate request_size=4 [13:45:46]MH_SAM_APDU [13:45:46]CAPDU: 80 09 00 00 [13:45:46]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [13:45:46]Write i2c OK [13:45:46]MH_I2C_Read... [13:45:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:46]Read from MH i2c: E2 [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: E2 03 00 [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [13:45:46]RAPDU: 90 00 [13:45:46]wFMCommunicate OK [13:45:46]SAM_PROTO_ClearQueue done [13:45:46]KKMCreateOFDPacket [13:45:46]OFDProtocolAddRootSTLVToBuf [13:45:46]FM_MakeSignedData [13:45:46]FM_MakeSignedData [13:45:46]SAM_PROTO_SignData [13:45:46]wFMCommunicate request_size=4 [13:45:46]MH_SAM_APDU [13:45:46]CAPDU: 80 0D 01 02 [13:45:46]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [13:45:46]Write i2c OK [13:45:46]MH_I2C_Read... [13:45:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:46]Read from MH i2c: E2 [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: E2 03 00 [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [13:45:46]RAPDU: 90 00 [13:45:46]wFMCommunicate OK [13:45:46]wFMCommunicate request_size=255 [13:45:46]MH_SAM_APDU [13:45: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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 89 4B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D9 CE 01 00 35 04 06 00 98 [13:45:46]Write to MH i2c: E2 02 01 2D 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 89 4B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D9 CE 01 00 35 04 06 00 98 00 00 9B [13:45:46]Write i2c OK [13:45:46]MH_I2C_Read... [13:45:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:46]Read from MH i2c: E2 [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: E2 03 00 [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [13:45:46]RAPDU: 90 00 [13:45:46]wFMCommunicate OK [13:45:46]wFMCommunicate request_size=10 [13:45:46]MH_SAM_APDU [13:45:46]CAPDU: 80 0D 02 02 05 82 C8 7A A4 0C [13:45:46]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 82 C8 7A A4 0C 00 00 26 [13:45:46]Write i2c OK [13:45:46]MH_I2C_Read... [13:45:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:46]Read from MH i2c: E2 [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: E2 03 00 [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [13:45:46]RAPDU: 90 00 [13:45:46]wFMCommunicate OK [13:45:46]wFMCommunicate request_size=4 [13:45:46]MH_SAM_APDU [13:45:46]CAPDU: 80 0D 03 02 [13:45:46]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [13:45:46]Write i2c OK [13:45:46]MH_I2C_Read... [13:45:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:46]Read from MH i2c: E2 [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: E2 0B 00 [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: E2 0B 00 2F 00 00 00 78 98 5C F9 FD 0E 55 90 00 70 [13:45:46]RAPDU: 00 78 98 5C F9 FD 0E 55 90 00 [13:45:46]wFMCommunicate OK [13:45:46]SAM_PROTO_SignData done [13:45:46]FM_MakeSignedData done [13:45:46]CreateOFDProtocolMessage [13:45:46]wFMCommunicate request_size=4 [13:45:46]MH_SAM_APDU [13:45:46]CAPDU: 80 11 00 00 [13:45:46]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [13:45:46]Write i2c OK [13:45:46]MH_I2C_Read... [13:45:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:46]Read from MH i2c: E2 [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: E2 17 00 [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 05 [13:45:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:45:46]wFMCommunicate OK [13:45:46]CreateOFDProtocolMessage done [13:45:46]OFDSenderStorePacket 118489 [13:45:46]StoreOFDPacket docnum=118489 [13:45:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 46 99 07 01 EF DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 89 4B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D9 CE 01 00 35 04 06 00 98 82 C8 7A A4 0C 00 78 98 5C F9 FD 0E 55 [13:45:46]CheckFolder [13:45:46]dirname=/storage/ofd_packets [13:45:46]CheckFolder done [13:45:46]ProducePacketName [13:45:46]name=ofd_packets/00118489 [13:45:46]NVStorageSaveData ofd_packets/00118489 [13:45:46]File name is /storage/ofd_packets/00118489 [13:45:46]Write 301 bytes [13:45:46]NVStorageSaveData done [13:45:46]OFDSenderStorePacket done [13:45:46]KKMCreateOFDPacket done [13:45:46]NVStorageSaveData kkm_last_timestamp [13:45:46]File name is /storage/kkm_last_timestamp [13:45:46]Write 4 bytes [13:45:46]NVStorageSaveData done [13:45:46]ExternCall_PrintAddStr [13:45:46]wPrintStart [13:45:46]Write to MH i2c: 01 00 00 31 00 31 [13:45:46]Write i2c OK [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: 01 [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: 01 07 00 [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [13:45:46]RasterBufferAndPrint [13:45:46]line Счет N : (1)949359 [13:45:46]line ИНН: 02508201610067 [13:45:46]line Контрольно-Кассовый Чек [13:45:46]line ПРОДАЖА [13:45:46]line ТРК (МРК, ГНК) : 41 [13:45:46]line Товар: 2710124130 [13:45:46]line Аи-92-К-4 [13:45:46]line 2.950 * 67.80 [13:45:46]line = 200.01 [13:45:46]line НДС 12% НСП 1% [13:45:46]line > о реализуемом товаре [13:45:46]line ОКРУГЛЕНИЕ: -0.01 [13:45:46]line ИТОГО: 200.00 [13:45:46]line Внесено: 200.00 [13:45:46]line СДАЧА: 0.00 [13:45:46]line НСП 1% : 1.77 [13:45:46]line НДС 12% : 21.24 [13:45:46]line Наличными: 200.00 [13:45:46]line Безнал.: 0.00 [13:45:46]line Место: АЗС № 134 "Партнер Нефть" [13:45:46]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:45:46]line СНО: Общий режим [13:45:46]line Чек 158 28.07.2024 13:45 [13:45:46]line Смена: 433 ФФД: 1.0 [13:45:46]line ЗНМ: 0300000044 [13:45:46]line РНМ: 0000000000092660 [13:45:46]line Версия ККМ: 001 [13:45:46]line ФМ: 0000000000874939 [13:45:46]line ФД: 118489 [13:45:46]line ФПД: 167687476651020 [13:45:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T134545&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118489&fm=167687476651020&tin=02508201610067®Number=0000000000092660&sum=20000 [13:45:46]written 0, free lines is 4095 [13:45:46]OFD Sender: Processing packet 118489 [packets to send 86, broken 85] [13:45:46]ProducePacketName [13:45:46]name=ofd_packets/00118489 [13:45:46]OFD Sender: To server: pG, [13:45:46]CommunicateWithHost lk.salyk.kg:30040 [13:45:46]ConnectInit lk.salyk.kg [13:45:46]Connected sock=10 [13:45: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 39 33 39 0F 01 00 00 46 99 07 01 EF DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 89 4B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D9 CE 01 00 35 04 06 00 98 82 C8 7A A4 0C 00 78 98 5C F9 FD 0E 55 [13:45:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 02 C0 47 00 E2 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D9 CE 01 00 F4 03 04 00 19 F9 A5 66 B6 04 01 00 00 D2 64 F3 72 82 6A 05 71 [13:45:46]CommunicateWithHost err = 0 [13:45:46]CheckOFDResponse [13:45:46]1017 (14) - 77093643461234 [13:45:46]1041 (16) - 0000000000874939 [13:45:46]1040 (4) - 118489 [13:45:46]1012 (4) - 28.07.2024 07:54 [13:45:46]1206 (1) - 0 [13:45:46]OFD Sender: Remove packet 118489 [13:45:46]ProducePacketName [13:45:46]name=ofd_packets/00118489 [13:45:46]NVStorageDeleteData [13:45:47]Write to MH i2c: 01 00 00 5B 00 5B [13:45:47]Write i2c OK [13:45:47]MH_I2C_Read... [13:45:47]Read from MH i2c: 01 [13:45:47]MH_I2C_Read... [13:45:47]Read from MH i2c: 01 07 00 [13:45:47]MH_I2C_Read... [13:45:47]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 EC 0C 5A [13:45:47]RasterBufferAndPrint [13:45:47]line [13:45:47]line [13:45:47]line [13:45:47]line [13:45:47]line [13:45:47]written 0, free lines is 3314 [13:45:47]MH_Cut [13:45:47]Write to MH i2c: D1 01 00 62 00 01 34 [13:45:47]Write i2c OK [13:45:47]MH_I2C_Read... [13:45:47]Read from MH i2c: D1 [13:45:47]MH_I2C_Read... [13:45:47]Read from MH i2c: D1 01 00 [13:45:47]MH_I2C_Read... [13:45:47]Read from MH i2c: D1 01 00 62 00 00 33 [13:45:47]Write to MH i2c: 01 00 00 63 00 63 [13:45:47]Write i2c OK [13:45:47]MH_I2C_Read... [13:45:47]OFD Sender: No OFD packet to send [13:45:47]*** Cut start [13:45:47]*** Partial cut [13:45:47]*** CUTSNS_PIN = 1 [13:45:47]*** CUTSNS_PIN = 0 [13:45:48]*** Brake cut motor [13:45:48]Read from MH i2c: 01 [13:45:48]MH_I2C_Read... [13:45:48]*** Stop cut motor [13:45:48]*** Cut end [13:45:48]Read from MH i2c: 01 07 00 [13:45:48]MH_I2C_Read... [13:45:48]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [13:45:48]process_action close_receipt done [13:45:48]requested_data is exist [13:45:48]produce_requested_data [13:45:48]requested_item fm.sn is exist - process it [13:45:48]wFMCommunicate request_size=4 [13:45:48]MH_SAM_APDU [13:45:48]CAPDU: 80 11 00 00 [13:45:48]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [13:45:48]Write i2c OK [13:45:48]MH_I2C_Read... [13:45:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:48]Read from MH i2c: E2 [13:45:48]MH_I2C_Read... [13:45:48]Read from MH i2c: E2 17 00 [13:45:48]MH_I2C_Read... [13:45:48]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 39 [13:45:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:45:48]wFMCommunicate OK [13:45:48]requested_item fd.num is exist - process it [13:45:48]SAM_PROTO_GetFieldsCounters [13:45:48]wFMCommunicate request_size=4 [13:45:48]MH_SAM_APDU [13:45:48]CAPDU: 80 13 00 00 [13:45:48]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [13:45:48]Write i2c OK [13:45:48]MH_I2C_Read... [13:45:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:48]Read from MH i2c: E2 [13:45:48]MH_I2C_Read... [13:45:48]Read from MH i2c: E2 62 00 [13:45:48]MH_I2C_Read... [13:45:48]Read from MH i2c: E2 62 00 65 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D9 CE 01 00 0E 04 04 00 B1 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 3C [13:45:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D9 CE 01 00 0E 04 04 00 B1 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 [13:45:48]wFMCommunicate OK [13:45:48]SAM_PROTO_GetFieldsCounters done [13:45:48]requested_item shift.num is exist - process it [13:45:48]requested_item shift.opened is exist - process it [13:45:48]req_shift_opened [13:45:48]FM_GetShiftState [13:45:48]SAM_PROTO_GetShiftState [13:45:48]wFMCommunicate request_size=4 [13:45:48]MH_SAM_APDU [13:45:48]CAPDU: 80 13 01 00 [13:45:48]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [13:45:48]Write i2c OK [13:45:48]MH_I2C_Read... [13:45:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:48]Read from MH i2c: E2 [13:45:48]MH_I2C_Read... [13:45:48]Read from MH i2c: E2 0E 00 [13:45:48]MH_I2C_Read... [13:45:48]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 BA [13:45:48]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [13:45:48]wFMCommunicate OK [13:45:48]SAM_PROTO_GetShiftState done [13:45:48]FM_GetShiftState done [13:45:48]req_shift_opened done [13:45:48]requested_item shift.open_date is exist - process it [13:45:48]req_shift_open_date [13:45:48]req_shift_open_date done [13:45:48]produce_requested_data done [13:45:48]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118489,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [13:45:48]process_action_free close_receipt [13:45:48]json_value_free [13:45:48]json_value_free done [13:45:48]process_json_proto returns [13:45:48]Send response to host [13:45:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118489,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [13:45:48]free response buf [13:45:48]execute_script done [13:45:48]execute_script returns [13:45:48]free content buf [13:45:48]Sock 8.Close socket [13:45:48]Sock 8.Thread stoped [13:45:52]OFD Sender: No OFD packet to send [13:45:57]OFD Sender: No OFD packet to send [13:46:02]OFD Sender: No OFD packet to send [13:46:07]OFD Sender: No OFD packet to send [13:46:12]OFD Sender: No OFD packet to send [13:46:17]OFD Sender: No OFD packet to send [13:46:22]OFD Sender: No OFD packet to send [13:46:27]OFD Sender: No OFD packet to send [13:46:32]OFD Sender: No OFD packet to send [13:46:37]OFD Sender: No OFD packet to send [13:46:42]OFD Sender: No OFD packet to send [13:46:47]OFD Sender: No OFD packet to send [13:46:52]OFD Sender: No OFD packet to send [13:46:57]OFD Sender: No OFD packet to send [13:47:02]OFD Sender: No OFD packet to send [13:47:07]OFD Sender: No OFD packet to send [13:47:12]OFD Sender: No OFD packet to send [13:47:17]OFD Sender: No OFD packet to send [13:47:22]OFD Sender: No OFD packet to send [13:47:27]OFD Sender: No OFD packet to send [13:47:32]OFD Sender: No OFD packet to send [13:47:37]OFD Sender: No OFD packet to send [13:47:42]OFD Sender: No OFD packet to send [13:47:47]OFD Sender: No OFD packet to send [13:47:52]OFD Sender: No OFD packet to send [13:47:57]OFD Sender: No OFD packet to send [13:48:02]OFD Sender: No OFD packet to send [13:48:07]OFD Sender: No OFD packet to send [13:48:12]OFD Sender: No OFD packet to send [13:48:17]OFD Sender: No OFD packet to send [13:48:19]accept exits with 9 [13:48:19]New connection [13:48:19]New thread 3066654052 created [13:48:19]Thread 3066797412 joined [13:48:19]Waiting for new connection... [13:48:19] Sock 9.Parse request [13:48:19]Sock 9.Check first char [13:48:19]Sock 9.First char is OK [13:48:19]request: POST /json_proto HTTP/1.0 [13:48:19]Method: POST [13:48:19]URL: /json_proto [13:48:19]Method is POST - this is cgi request [13:48:19]url: /json_proto [13:48:19]query_string will be loaded in cgi processing [13:48:19]execute_cgi json_proto POST (null) [13:48:19]execute_cgi path=json_proto method=POST [13:48:19]POST find Content-Length [13:48:19]Host: 172.17.45.7:8080 [13:48:19]Content-Length: 677 [13:48:19]Content-Type: application/json [13:48:19] [13:48:19]POST finish read [13:48:19]Found Content-Length = 677 [13:48:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:19]execute_script... [13:48: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)949360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:19]POST & json_proto [13:48:19]process_json_proto [13:48:19]json parsed OK: [13:48:19]protocol is kg_v1.0 [13:48:19]action value=close_receipt [13:48:19]process_action close_receipt [13:48:19]cmd_close_receipt [13:48:19]MH_GetDate [13:48:19]Write to MH i2c: F0 00 00 67 00 56 [13:48:19]Write i2c OK [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: F0 [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: F0 09 00 [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: F0 09 00 67 00 00 23 4C A6 66 90 0F 3E 66 1D [13:48:19]GetLastDocTimeStamp 1722174345 [13:48:19]current date 1722174499 [13:48:19]FM_GetShiftState [13:48:19]SAM_PROTO_GetShiftState [13:48:19]wFMCommunicate request_size=4 [13:48:19]MH_SAM_APDU [13:48:19]CAPDU: 80 13 01 00 [13:48:19]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [13:48:19]Write i2c OK [13:48:19]MH_I2C_Read... [13:48:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:19]Read from MH i2c: E2 [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: E2 0E 00 [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 BC [13:48:19]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [13:48:19]wFMCommunicate OK [13:48:19]SAM_PROTO_GetShiftState done [13:48:19]FM_GetShiftState done [13:48:19]opened in 1722125364 [13:48:19]opened+sec_in_day 1722211764 [13:48:19]quantity*price = 20001 [13:48:19]sum+1 = 20002 [13:48:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 159 28.07.2024 13:48 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118490 ФПД: 212747235303281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T134819&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118490&fm=212747235303281&tin=02508201610067®Number=0000000000092660&sum=20000 [13:48:20]StoreToDocumentArchive [13:48:20]shift 433 fd 118490 [13:48:20]save to /storage/0433/doc_00118490 [13:48:20]save last doc name /storage/0433/doc_00118490 to /storage/kkm_last_doc_name [13:48:20]save OK [13:48:20]Clear old archive folders... [13:48:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:48:20]tlvbuf is 01DF4610 [13:48:20]SAM_PROTO_ClearQueue [13:48:20]wFMCommunicate request_size=4 [13:48:20]MH_SAM_APDU [13:48:20]CAPDU: 80 09 00 00 [13:48:20]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [13:48:20]Write i2c OK [13:48:20]MH_I2C_Read... [13:48:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:20]Read from MH i2c: E2 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 03 00 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [13:48:20]RAPDU: 90 00 [13:48:20]wFMCommunicate OK [13:48:20]SAM_PROTO_ClearQueue done [13:48:20]KKMCreateOFDPacket [13:48:20]OFDProtocolAddRootSTLVToBuf [13:48:20]FM_MakeSignedData [13:48:20]FM_MakeSignedData [13:48:20]SAM_PROTO_SignData [13:48:20]wFMCommunicate request_size=4 [13:48:20]MH_SAM_APDU [13:48:20]CAPDU: 80 0D 01 02 [13:48:20]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [13:48:20]Write i2c OK [13:48:20]MH_I2C_Read... [13:48:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:20]Read from MH i2c: E2 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 03 00 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [13:48:20]RAPDU: 90 00 [13:48:20]wFMCommunicate OK [13:48:20]wFMCommunicate request_size=255 [13:48:20]MH_SAM_APDU [13:48: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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 23 4C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DA CE 01 00 35 04 06 00 C1 [13:48:20]Write to MH i2c: E2 02 01 77 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 23 4C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DA CE 01 00 35 04 06 00 C1 00 00 AB [13:48:20]Write i2c OK [13:48:20]MH_I2C_Read... [13:48:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:20]Read from MH i2c: E2 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 03 00 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [13:48:20]RAPDU: 90 00 [13:48:20]wFMCommunicate OK [13:48:20]wFMCommunicate request_size=10 [13:48:20]MH_SAM_APDU [13:48:20]CAPDU: 80 0D 02 02 05 7E 13 63 1F 71 [13:48:20]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 7E 13 63 1F 71 00 00 80 [13:48:20]Write i2c OK [13:48:20]MH_I2C_Read... [13:48:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:20]Read from MH i2c: E2 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 03 00 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [13:48:20]RAPDU: 90 00 [13:48:20]wFMCommunicate OK [13:48:20]wFMCommunicate request_size=4 [13:48:20]MH_SAM_APDU [13:48:20]CAPDU: 80 0D 03 02 [13:48:20]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [13:48:20]Write i2c OK [13:48:20]MH_I2C_Read... [13:48:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:20]Read from MH i2c: E2 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 0B 00 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 0B 00 79 00 00 5F 45 85 A4 55 25 EB 53 90 00 7A [13:48:20]RAPDU: 5F 45 85 A4 55 25 EB 53 90 00 [13:48:20]wFMCommunicate OK [13:48:20]SAM_PROTO_SignData done [13:48:20]FM_MakeSignedData done [13:48:20]CreateOFDProtocolMessage [13:48:20]wFMCommunicate request_size=4 [13:48:20]MH_SAM_APDU [13:48:20]CAPDU: 80 11 00 00 [13:48:20]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [13:48:20]Write i2c OK [13:48:20]MH_I2C_Read... [13:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:20]Read from MH i2c: E2 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 17 00 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4F [13:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:48:20]wFMCommunicate OK [13:48:20]CreateOFDProtocolMessage done [13:48:20]OFDSenderStorePacket 118490 [13:48:20]StoreOFDPacket docnum=118490 [13:48:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CD 2E 07 01 44 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 23 4C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DA CE 01 00 35 04 06 00 C1 7E 13 63 1F 71 5F 45 85 A4 55 25 EB 53 [13:48:20]CheckFolder [13:48:20]dirname=/storage/ofd_packets [13:48:20]CheckFolder done [13:48:20]ProducePacketName [13:48:20]name=ofd_packets/00118490 [13:48:20]NVStorageSaveData ofd_packets/00118490 [13:48:20]File name is /storage/ofd_packets/00118490 [13:48:20]Write 301 bytes [13:48:20]NVStorageSaveData done [13:48:20]OFDSenderStorePacket done [13:48:20]KKMCreateOFDPacket done [13:48:20]NVStorageSaveData kkm_last_timestamp [13:48:20]File name is /storage/kkm_last_timestamp [13:48:20]Write 4 bytes [13:48:20]NVStorageSaveData done [13:48:20]ExternCall_PrintAddStr [13:48:20]wPrintStart [13:48:20]Write to MH i2c: 01 00 00 7B 00 7B [13:48:20]Write i2c OK [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: 01 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: 01 07 00 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [13:48:20]RasterBufferAndPrint [13:48:20]line Счет N : (1)949360 [13:48:20]line ИНН: 02508201610067 [13:48:20]line Контрольно-Кассовый Чек [13:48:20]line ПРОДАЖА [13:48:20]line ТРК (МРК, ГНК) : 61 [13:48:20]line Товар: 2710124130 [13:48:20]line Аи-92-К-4 [13:48:20]line 2.950 * 67.80 [13:48:20]line = 200.01 [13:48:20]line НДС 12% НСП 1% [13:48:20]line > о реализуемом товаре [13:48:20]line ОКРУГЛЕНИЕ: -0.01 [13:48:20]line ИТОГО: 200.00 [13:48:20]line Внесено: 200.00 [13:48:20]line СДАЧА: 0.00 [13:48:20]line НСП 1% : 1.77 [13:48:20]line НДС 12% : 21.24 [13:48:20]line Наличными: 200.00 [13:48:20]line Безнал.: 0.00 [13:48:20]line Место: АЗС № 134 "Партнер Нефть" [13:48:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:48:20]line СНО: Общий режим [13:48:20]line Чек 159 28.07.2024 13:48 [13:48:20]line Смена: 433 ФФД: 1.0 [13:48:20]line ЗНМ: 0300000044 [13:48:20]line РНМ: 0000000000092660 [13:48:20]line Версия ККМ: 001 [13:48:20]line ФМ: 0000000000874939 [13:48:20]line ФД: 118490 [13:48:20]line ФПД: 212747235303281 [13:48:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T134819&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118490&fm=212747235303281&tin=02508201610067®Number=0000000000092660&sum=20000 [13:48:21]written 0, free lines is 4095 [13:48:21]OFD Sender: Processing packet 118490 [packets to send 86, broken 85] [13:48:21]ProducePacketName [13:48:21]name=ofd_packets/00118490 [13:48:21]OFD Sender: To server: pG, [13:48:21]CommunicateWithHost lk.salyk.kg:30040 [13:48:21]ConnectInit lk.salyk.kg [13:48:21]Connected sock=11 [13:48: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 39 33 39 0F 01 00 00 CD 2E 07 01 44 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 23 4C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DA CE 01 00 35 04 06 00 C1 7E 13 63 1F 71 5F 45 85 A4 55 25 EB 53 [13:48:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 91 22 47 00 A2 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DA CE 01 00 F4 03 04 00 B3 F9 A5 66 B6 04 01 00 00 40 AE 6A 3F 80 C2 E3 09 [13:48:21]CommunicateWithHost err = 0 [13:48:21]CheckOFDResponse [13:48:21]1017 (14) - 77093643461234 [13:48:21]1041 (16) - 0000000000874939 [13:48:21]1040 (4) - 118490 [13:48:21]1012 (4) - 28.07.2024 07:56 [13:48:21]1206 (1) - 0 [13:48:21]OFD Sender: Remove packet 118490 [13:48:21]ProducePacketName [13:48:21]name=ofd_packets/00118490 [13:48:21]NVStorageDeleteData [13:48:21]Write to MH i2c: 01 00 00 A5 00 A5 [13:48:21]Write i2c OK [13:48:21]MH_I2C_Read... [13:48:21]Read from MH i2c: 01 [13:48:21]MH_I2C_Read... [13:48:21]Read from MH i2c: 01 07 00 [13:48:21]MH_I2C_Read... [13:48:21]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 DC 0C 94 [13:48:21]RasterBufferAndPrint [13:48:21]line [13:48:21]line [13:48:21]line [13:48:21]line [13:48:21]line [13:48:21]written 0, free lines is 3299 [13:48:21]MH_Cut [13:48:21]Write to MH i2c: D1 01 00 AC 00 01 7E [13:48:21]Write i2c OK [13:48:21]MH_I2C_Read... [13:48:21]Read from MH i2c: D1 [13:48:21]MH_I2C_Read... [13:48:21]Read from MH i2c: D1 01 00 [13:48:21]MH_I2C_Read... [13:48:21]Read from MH i2c: D1 01 00 AC 00 00 7D [13:48:21]Write to MH i2c: 01 00 00 AD 00 AD [13:48:21]Write i2c OK [13:48:21]MH_I2C_Read... [13:48:21]OFD Sender: No OFD packet to send [13:48:22]*** Cut start [13:48:22]*** Partial cut [13:48:22]*** CUTSNS_PIN = 1 [13:48:22]*** CUTSNS_PIN = 0 [13:48:22]*** Brake cut motor [13:48:22]Read from MH i2c: 01 [13:48:22]MH_I2C_Read... [13:48:22]*** Stop cut motor [13:48:22]*** Cut end [13:48:22]Read from MH i2c: 01 07 00 [13:48:22]MH_I2C_Read... [13:48:22]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [13:48:22]process_action close_receipt done [13:48:22]requested_data is exist [13:48:22]produce_requested_data [13:48:22]requested_item fm.sn is exist - process it [13:48:22]wFMCommunicate request_size=4 [13:48:22]MH_SAM_APDU [13:48:22]CAPDU: 80 11 00 00 [13:48:22]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [13:48:22]Write i2c OK [13:48:22]MH_I2C_Read... [13:48:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:22]Read from MH i2c: E2 [13:48:22]MH_I2C_Read... [13:48:22]Read from MH i2c: E2 17 00 [13:48:22]MH_I2C_Read... [13:48:22]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 83 [13:48:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:48:22]wFMCommunicate OK [13:48:22]requested_item fd.num is exist - process it [13:48:22]SAM_PROTO_GetFieldsCounters [13:48:22]wFMCommunicate request_size=4 [13:48:22]MH_SAM_APDU [13:48:22]CAPDU: 80 13 00 00 [13:48:22]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [13:48:22]Write i2c OK [13:48:22]MH_I2C_Read... [13:48:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:23]Read from MH i2c: E2 [13:48:23]MH_I2C_Read... [13:48:23]Read from MH i2c: E2 62 00 [13:48:23]MH_I2C_Read... [13:48:23]Read from MH i2c: E2 62 00 AF 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DA CE 01 00 0E 04 04 00 B1 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 8A [13:48:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DA CE 01 00 0E 04 04 00 B1 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 [13:48:23]wFMCommunicate OK [13:48:23]SAM_PROTO_GetFieldsCounters done [13:48:23]requested_item shift.num is exist - process it [13:48:23]requested_item shift.opened is exist - process it [13:48:23]req_shift_opened [13:48:23]FM_GetShiftState [13:48:23]SAM_PROTO_GetShiftState [13:48:23]wFMCommunicate request_size=4 [13:48:23]MH_SAM_APDU [13:48:23]CAPDU: 80 13 01 00 [13:48:23]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [13:48:23]Write i2c OK [13:48:23]MH_I2C_Read... [13:48:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:23]Read from MH i2c: E2 [13:48:23]MH_I2C_Read... [13:48:23]Read from MH i2c: E2 0E 00 [13:48:23]MH_I2C_Read... [13:48:23]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 04 [13:48:23]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [13:48:23]wFMCommunicate OK [13:48:23]SAM_PROTO_GetShiftState done [13:48:23]FM_GetShiftState done [13:48:23]req_shift_opened done [13:48:23]requested_item shift.open_date is exist - process it [13:48:23]req_shift_open_date [13:48:23]req_shift_open_date done [13:48:23]produce_requested_data done [13:48:23]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118490,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [13:48:23]process_action_free close_receipt [13:48:23]json_value_free [13:48:23]json_value_free done [13:48:23]process_json_proto returns [13:48:23]Send response to host [13:48:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118490,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [13:48:23]free response buf [13:48:23]execute_script done [13:48:23]execute_script returns [13:48:23]free content buf [13:48:23]Sock 9.Close socket [13:48:23]Sock 9.Thread stoped [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:12]accept exits with 8 [13:49:12]New connection [13:49:12]New thread 3066797412 created [13:49:12]Thread 3066654052 joined [13:49:12]Waiting for new connection... [13:49:12] Sock 8.Parse request [13:49:12]Sock 8.Check first char [13:49:12]Sock 8.First char is OK [13:49:12]request: POST /json_proto HTTP/1.0 [13:49:12]Method: POST [13:49:12]URL: /json_proto [13:49:12]Method is POST - this is cgi request [13:49:12]url: /json_proto [13:49:12]query_string will be loaded in cgi processing [13:49:12]execute_cgi json_proto POST (null) [13:49:12]execute_cgi path=json_proto method=POST [13:49:12]POST find Content-Length [13:49:12]Host: 172.17.45.7:8080 [13:49:12]Content-Length: 682 [13:49:12]Content-Type: application/json [13:49:12] [13:49:12]POST finish read [13:49:12]Found Content-Length = 682 [13:49:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:12]execute_script... [13:49: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)949361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:12]POST & json_proto [13:49:12]process_json_proto [13:49:12]json parsed OK: [13:49:12]protocol is kg_v1.0 [13:49:12]action value=close_receipt [13:49:12]process_action close_receipt [13:49:12]cmd_close_receipt [13:49:12]MH_GetDate [13:49:12]Write to MH i2c: F0 00 00 B1 00 A0 [13:49:12]Write i2c OK [13:49:12]MH_I2C_Read... [13:49:12]Read from MH i2c: F0 [13:49:12]MH_I2C_Read... [13:49:12]Read from MH i2c: F0 09 00 [13:49:12]MH_I2C_Read... [13:49:12]Read from MH i2c: F0 09 00 B1 00 00 58 4C A6 66 90 0F 3E 66 9C [13:49:12]GetLastDocTimeStamp 1722174499 [13:49:12]current date 1722174552 [13:49:12]FM_GetShiftState [13:49:12]SAM_PROTO_GetShiftState [13:49:12]wFMCommunicate request_size=4 [13:49:12]MH_SAM_APDU [13:49:12]CAPDU: 80 13 01 00 [13:49:12]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [13:49:12]Write i2c OK [13:49:12]MH_I2C_Read... [13:49:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:12]Read from MH i2c: E2 [13:49:12]MH_I2C_Read... [13:49:12]Read from MH i2c: E2 0E 00 [13:49:12]MH_I2C_Read... [13:49:12]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 06 [13:49:12]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [13:49:12]wFMCommunicate OK [13:49:12]SAM_PROTO_GetShiftState done [13:49:12]FM_GetShiftState done [13:49:12]opened in 1722125364 [13:49:12]opened+sec_in_day 1722211764 [13:49:12]quantity*price = 100005 [13:49:12]sum+1 = 100006 [13:49:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 160 28.07.2024 13:49 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118491 ФПД: 195902546313321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T134912&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118491&fm=195902546313321&tin=02508201610067®Number=0000000000092660&sum=100000 [13:49:13]StoreToDocumentArchive [13:49:13]shift 433 fd 118491 [13:49:13]save to /storage/0433/doc_00118491 [13:49:13]save last doc name /storage/0433/doc_00118491 to /storage/kkm_last_doc_name [13:49:13]save OK [13:49:13]Clear old archive folders... [13:49:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:49:13]tlvbuf is 01DED430 [13:49:13]SAM_PROTO_ClearQueue [13:49:13]wFMCommunicate request_size=4 [13:49:13]MH_SAM_APDU [13:49:13]CAPDU: 80 09 00 00 [13:49:13]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [13:49:13]Write i2c OK [13:49:13]MH_I2C_Read... [13:49:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:13]Read from MH i2c: E2 [13:49:13]MH_I2C_Read... [13:49:13]Read from MH i2c: E2 03 00 [13:49:13]MH_I2C_Read... [13:49:13]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [13:49:13]RAPDU: 90 00 [13:49:13]wFMCommunicate OK [13:49:13]SAM_PROTO_ClearQueue done [13:49:13]KKMCreateOFDPacket [13:49:13]OFDProtocolAddRootSTLVToBuf [13:49:13]FM_MakeSignedData [13:49:13]FM_MakeSignedData [13:49:13]SAM_PROTO_SignData [13:49:13]wFMCommunicate request_size=4 [13:49:13]MH_SAM_APDU [13:49:13]CAPDU: 80 0D 01 02 [13:49:13]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [13:49:13]Write i2c OK [13:49:13]MH_I2C_Read... [13:49:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:13]Read from MH i2c: E2 [13:49:13]MH_I2C_Read... [13:49:13]Read from MH i2c: E2 03 00 [13:49:13]MH_I2C_Read... [13:49:13]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [13:49:13]RAPDU: 90 00 [13:49:13]wFMCommunicate OK [13:49:13]wFMCommunicate request_size=255 [13:49:13]MH_SAM_APDU [13:49: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 58 4C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DB CE 01 00 35 04 06 00 B2 [13:49:13]Write to MH i2c: E2 02 01 C1 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 58 4C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DB CE 01 00 35 04 06 00 B2 00 00 AA [13:49:13]Write i2c OK [13:49:13]MH_I2C_Read... [13:49:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:13]Read from MH i2c: E2 [13:49:13]MH_I2C_Read... [13:49:13]Read from MH i2c: E2 03 00 [13:49:13]MH_I2C_Read... [13:49:13]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [13:49:13]RAPDU: 90 00 [13:49:13]wFMCommunicate OK [13:49:13]wFMCommunicate request_size=10 [13:49:13]MH_SAM_APDU [13:49:13]CAPDU: 80 0D 02 02 05 2C 1D AF 00 69 [13:49:13]Write to MH i2c: E2 0D 00 C2 00 80 0D 02 02 05 00 2C 1D AF 00 69 00 00 A7 [13:49:13]Write i2c OK [13:49:13]MH_I2C_Read... [13:49:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:13]Read from MH i2c: E2 [13:49:13]MH_I2C_Read... [13:49:13]Read from MH i2c: E2 03 00 [13:49:13]MH_I2C_Read... [13:49:13]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [13:49:13]RAPDU: 90 00 [13:49:13]wFMCommunicate OK [13:49:13]wFMCommunicate request_size=4 [13:49:13]MH_SAM_APDU [13:49:13]CAPDU: 80 0D 03 02 [13:49:13]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [13:49:13]Write i2c OK [13:49:13]MH_I2C_Read... [13:49:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:13]Read from MH i2c: E2 [13:49:13]MH_I2C_Read... [13:49:13]Read from MH i2c: E2 0B 00 [13:49:13]MH_I2C_Read... [13:49:13]Read from MH i2c: E2 0B 00 C3 00 00 1E A8 FA 95 DB E6 5D 05 90 00 B7 [13:49:13]RAPDU: 1E A8 FA 95 DB E6 5D 05 90 00 [13:49:13]wFMCommunicate OK [13:49:13]SAM_PROTO_SignData done [13:49:13]FM_MakeSignedData done [13:49:13]CreateOFDProtocolMessage [13:49:13]wFMCommunicate request_size=4 [13:49:13]MH_SAM_APDU [13:49:13]CAPDU: 80 11 00 00 [13:49:13]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [13:49:13]Write i2c OK [13:49:13]MH_I2C_Read... [13:49:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:13]Read from MH i2c: E2 [13:49:13]MH_I2C_Read... [13:49:13]Read from MH i2c: E2 17 00 [13:49:13]MH_I2C_Read... [13:49:13]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 99 [13:49:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:49:13]wFMCommunicate OK [13:49:13]CreateOFDProtocolMessage done [13:49:13]OFDSenderStorePacket 118491 [13:49:13]StoreOFDPacket docnum=118491 [13:49:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FD D8 07 01 7E 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 58 4C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DB CE 01 00 35 04 06 00 B2 2C 1D AF 00 69 1E A8 FA 95 DB E6 5D 05 [13:49:13]CheckFolder [13:49:13]dirname=/storage/ofd_packets [13:49:13]CheckFolder done [13:49:13]ProducePacketName [13:49:13]name=ofd_packets/00118491 [13:49:13]NVStorageSaveData ofd_packets/00118491 [13:49:13]File name is /storage/ofd_packets/00118491 [13:49:13]Write 301 bytes [13:49:13]NVStorageSaveData done [13:49:13]OFDSenderStorePacket done [13:49:13]KKMCreateOFDPacket done [13:49:13]NVStorageSaveData kkm_last_timestamp [13:49:13]File name is /storage/kkm_last_timestamp [13:49:13]Write 4 bytes [13:49:13]NVStorageSaveData done [13:49:13]ExternCall_PrintAddStr [13:49:13]wPrintStart [13:49:13]Write to MH i2c: 01 00 00 C5 00 C5 [13:49:13]Write i2c OK [13:49:13]MH_I2C_Read... [13:49:13]Read from MH i2c: 01 [13:49:13]MH_I2C_Read... [13:49:13]Read from MH i2c: 01 07 00 [13:49:13]MH_I2C_Read... [13:49:13]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [13:49:13]RasterBufferAndPrint [13:49:13]line Счет N : (1)949361 [13:49:13]line ИНН: 02508201610067 [13:49:13]line Контрольно-Кассовый Чек [13:49:13]line ПРОДАЖА [13:49:13]line ТРК (МРК, ГНК) : 51 [13:49:13]line Товар: 2710124130 [13:49:13]line Аи-92-К-4 [13:49:13]line 14.750 * 67.80 [13:49:13]line = 1000.05 [13:49:13]line НДС 12% НСП 1% [13:49:13]line > о реализуемом товаре [13:49:13]line ОКРУГЛЕНИЕ: -0.05 [13:49:13]line ИТОГО: 1000.00 [13:49:13]line Внесено: 1000.00 [13:49:13]line СДАЧА: 0.00 [13:49:13]line НСП 1% : 8.85 [13:49:13]line НДС 12% : 106.20 [13:49:13]line Наличными: 1000.00 [13:49:13]line Безнал.: 0.00 [13:49:13]line Место: АЗС № 134 "Партнер Нефть" [13:49:13]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:49:13]line СНО: Общий режим [13:49:13]line Чек 160 28.07.2024 13:49 [13:49:13]line Смена: 433 ФФД: 1.0 [13:49:13]line ЗНМ: 0300000044 [13:49:13]line РНМ: 0000000000092660 [13:49:13]line Версия ККМ: 001 [13:49:13]line ФМ: 0000000000874939 [13:49:13]line ФД: 118491 [13:49:13]line ФПД: 195902546313321 [13:49:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T134912&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118491&fm=195902546313321&tin=02508201610067®Number=0000000000092660&sum=100000 [13:49:14]OFD Sender: Processing packet 118491 [packets to send 86, broken 85] [13:49:14]ProducePacketName [13:49:14]name=ofd_packets/00118491 [13:49:14]OFD Sender: To server: pG, [13:49:14]CommunicateWithHost lk.salyk.kg:30040 [13:49:14]ConnectInit lk.salyk.kg [13:49:14]written 0, free lines is 4095 [13:49:14]Connected sock=10 [13:49:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FD D8 07 01 7E 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 58 4C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DB CE 01 00 35 04 06 00 B2 2C 1D AF 00 69 1E A8 FA 95 DB E6 5D 05 [13:49:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 81 92 47 00 5F 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DB CE 01 00 F4 03 04 00 E8 F9 A5 66 B6 04 01 00 00 F4 7C D6 D8 C5 A3 D2 B4 [13:49:14]CommunicateWithHost err = 0 [13:49:14]CheckOFDResponse [13:49:14]1017 (14) - 77093643461234 [13:49:14]1041 (16) - 0000000000874939 [13:49:14]1040 (4) - 118491 [13:49:14]1012 (4) - 28.07.2024 07:57 [13:49:14]1206 (1) - 0 [13:49:14]OFD Sender: Remove packet 118491 [13:49:14]ProducePacketName [13:49:14]name=ofd_packets/00118491 [13:49:14]NVStorageDeleteData [13:49:14]Write to MH i2c: 01 00 00 EF 00 EF [13:49:14]Write i2c OK [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: 01 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: 01 07 00 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 D0 0C D2 [13:49:14]RasterBufferAndPrint [13:49:14]line [13:49:14]line [13:49:14]line [13:49:14]line [13:49:14]line [13:49:14]written 0, free lines is 3286 [13:49:14]MH_Cut [13:49:14]Write to MH i2c: D1 01 00 F6 00 01 C8 [13:49:14]Write i2c OK [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: D1 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: D1 01 00 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: D1 01 00 F6 00 00 C7 [13:49:14]Write to MH i2c: 01 00 00 F7 00 F7 [13:49:14]Write i2c OK [13:49:14]MH_I2C_Read... [13:49:14]OFD Sender: No OFD packet to send [13:49:15]*** Cut start [13:49:15]*** Partial cut [13:49:15]*** CUTSNS_PIN = 1 [13:49:15]*** CUTSNS_PIN = 0 [13:49:15]*** Brake cut motor [13:49:15]Read from MH i2c: 01 [13:49:15]MH_I2C_Read... [13:49:15]*** Stop cut motor [13:49:15]*** Cut end [13:49:15]Read from MH i2c: 01 07 00 [13:49:15]MH_I2C_Read... [13:49:15]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [13:49:15]process_action close_receipt done [13:49:15]requested_data is exist [13:49:15]produce_requested_data [13:49:15]requested_item fm.sn is exist - process it [13:49:15]wFMCommunicate request_size=4 [13:49:15]MH_SAM_APDU [13:49:15]CAPDU: 80 11 00 00 [13:49:15]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [13:49:15]Write i2c OK [13:49:15]MH_I2C_Read... [13:49:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:16]Read from MH i2c: E2 [13:49:16]MH_I2C_Read... [13:49:16]Read from MH i2c: E2 17 00 [13:49:16]MH_I2C_Read... [13:49:16]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CD [13:49:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:49:16]wFMCommunicate OK [13:49:16]requested_item fd.num is exist - process it [13:49:16]SAM_PROTO_GetFieldsCounters [13:49:16]wFMCommunicate request_size=4 [13:49:16]MH_SAM_APDU [13:49:16]CAPDU: 80 13 00 00 [13:49:16]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [13:49:16]Write i2c OK [13:49:16]MH_I2C_Read... [13:49:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:16]Read from MH i2c: E2 [13:49:16]MH_I2C_Read... [13:49:16]Read from MH i2c: E2 62 00 [13:49:16]MH_I2C_Read... [13:49:16]Read from MH i2c: E2 62 00 F9 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DB CE 01 00 0E 04 04 00 B1 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 D8 [13:49:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DB CE 01 00 0E 04 04 00 B1 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 [13:49:16]wFMCommunicate OK [13:49:16]SAM_PROTO_GetFieldsCounters done [13:49:16]requested_item shift.num is exist - process it [13:49:16]requested_item shift.opened is exist - process it [13:49:16]req_shift_opened [13:49:16]FM_GetShiftState [13:49:16]SAM_PROTO_GetShiftState [13:49:16]wFMCommunicate request_size=4 [13:49:16]MH_SAM_APDU [13:49:16]CAPDU: 80 13 01 00 [13:49:16]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [13:49:16]Write i2c OK [13:49:16]MH_I2C_Read... [13:49:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:16]Read from MH i2c: E2 [13:49:16]MH_I2C_Read... [13:49:16]Read from MH i2c: E2 0E 00 [13:49:16]MH_I2C_Read... [13:49:16]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 4E [13:49:16]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [13:49:16]wFMCommunicate OK [13:49:16]SAM_PROTO_GetShiftState done [13:49:16]FM_GetShiftState done [13:49:16]req_shift_opened done [13:49:16]requested_item shift.open_date is exist - process it [13:49:16]req_shift_open_date [13:49:16]req_shift_open_date done [13:49:16]produce_requested_data done [13:49:16]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118491,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [13:49:16]process_action_free close_receipt [13:49:16]json_value_free [13:49:16]json_value_free done [13:49:16]process_json_proto returns [13:49:16]Send response to host [13:49:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118491,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [13:49:16]free response buf [13:49:16]execute_script done [13:49:16]execute_script returns [13:49:16]free content buf [13:49:16]Sock 8.Close socket [13:49:16]Sock 8.Thread stoped [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:50:00]OFD Sender: No OFD packet to send [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:40]OFD Sender: No OFD packet to send [13:50:45]OFD Sender: No OFD packet to send [13:50:50]OFD Sender: No OFD packet to send [13:50:55]OFD Sender: No OFD packet to send [13:51:00]OFD Sender: No OFD packet to send [13:51:05]OFD Sender: No OFD packet to send [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:35]OFD Sender: No OFD packet to send [13:51:40]OFD Sender: No OFD packet to send [13:51:45]OFD Sender: No OFD packet to send [13:51:50]OFD Sender: No OFD packet to send [13:51:55]OFD Sender: No OFD packet to send [13:52:00]OFD Sender: No OFD packet to send [13:52:05]OFD Sender: No OFD packet to send [13:52:10]OFD Sender: No OFD packet to send [13:52:15]OFD Sender: No OFD packet to send [13:52:20]OFD Sender: No OFD packet to send [13:52:25]OFD Sender: No OFD packet to send [13:52:30]OFD Sender: No OFD packet to send [13:52:35]OFD Sender: No OFD packet to send [13:52:40]OFD Sender: No OFD packet to send [13:52:45]OFD Sender: No OFD packet to send [13:52:50]OFD Sender: No OFD packet to send [13:52:55]OFD Sender: No OFD packet to send [13:53:00]OFD Sender: No OFD packet to send [13:53:05]OFD Sender: No OFD packet to send [13:53:10]OFD Sender: No OFD packet to send [13:53:15]OFD Sender: No OFD packet to send [13:53:20]OFD Sender: No OFD packet to send [13:53:25]OFD Sender: No OFD packet to send [13:53:30]OFD Sender: No OFD packet to send [13:53:35]OFD Sender: No OFD packet to send [13:53:40]OFD Sender: No OFD packet to send [13:53:45]OFD Sender: No OFD packet to send [13:53:50]OFD Sender: No OFD packet to send [13:53:55]OFD Sender: No OFD packet to send [13:54:00]OFD Sender: No OFD packet to send [13:54:05]OFD Sender: No OFD packet to send [13:54:10]OFD Sender: No OFD packet to send [13:54:15]OFD Sender: No OFD packet to send [13:54:20]OFD Sender: No OFD packet to send [13:54:25]OFD Sender: No OFD packet to send [13:54:30]OFD Sender: No OFD packet to send [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:50]OFD Sender: No OFD packet to send [13:55:55]OFD Sender: No OFD packet to send [13:56:00]OFD Sender: No OFD packet to send [13:56:05]OFD Sender: No OFD packet to send [13:56:10]OFD Sender: No OFD packet to send [13:56:15]OFD Sender: No OFD packet to send [13:56:20]OFD Sender: No OFD packet to send [13:56:25]OFD Sender: No OFD packet to send [13:56:30]OFD Sender: No OFD packet to send [13:56:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:45]OFD Sender: No OFD packet to send [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:25]OFD Sender: No OFD packet to send [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:10]OFD Sender: No OFD packet to send [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:50]OFD Sender: No OFD packet to send [13:58:55]OFD Sender: No OFD packet to send [13:59:00]OFD Sender: No OFD packet to send [13:59:05]OFD Sender: No OFD packet to send [13:59:10]OFD Sender: No OFD packet to send [13:59:15]OFD Sender: No OFD packet to send [13:59:20]OFD Sender: No OFD packet to send [13:59:25]OFD Sender: No OFD packet to send [13:59:30]OFD Sender: No OFD packet to send [13:59:35]OFD Sender: No OFD packet to send [13:59:40]OFD Sender: No OFD packet to send [13:59:45]OFD Sender: No OFD packet to send [13:59:50]OFD Sender: No OFD packet to send [13:59:55]OFD Sender: No OFD packet to send [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:10]OFD Sender: No OFD packet to send [14:01:15]OFD Sender: No OFD packet to send [14:01:20]OFD Sender: No OFD packet to send [14:01:25]OFD Sender: No OFD packet to send [14:01:30]OFD Sender: No OFD packet to send [14:01:35]OFD Sender: No OFD packet to send [14:01:40]OFD Sender: No OFD packet to send [14:01:45]OFD Sender: No OFD packet to send [14:01:50]OFD Sender: No OFD packet to send [14:01:55]OFD Sender: No OFD packet to send [14:02:00]OFD Sender: No OFD packet to send [14:02:05]OFD Sender: No OFD packet to send [14:02:10]OFD Sender: No OFD packet to send [14:02:15]OFD Sender: No OFD packet to send [14:02:20]OFD Sender: No OFD packet to send [14:02:25]OFD Sender: No OFD packet to send [14:02:30]OFD Sender: No OFD packet to send [14:02:35]OFD Sender: No OFD packet to send [14:02:40]OFD Sender: No OFD packet to send [14:02:45]OFD Sender: No OFD packet to send [14:02:50]OFD Sender: No OFD packet to send [14:02:55]OFD Sender: No OFD packet to send [14:03:00]OFD Sender: No OFD packet to send [14:03:05]OFD Sender: No OFD packet to send [14:03:10]OFD Sender: No OFD packet to send [14:03:15]OFD Sender: No OFD packet to send [14:03:20]OFD Sender: No OFD packet to send [14:03:25]OFD Sender: No OFD packet to send [14:03:30]OFD Sender: No OFD packet to send [14:03:35]OFD Sender: No OFD packet to send [14:03:40]OFD Sender: No OFD packet to send [14:03:45]OFD Sender: No OFD packet to send [14:03:50]OFD Sender: No OFD packet to send [14:03:55]OFD Sender: No OFD packet to send [14:04:00]OFD Sender: No OFD packet to send [14:04:05]OFD Sender: No OFD packet to send [14:04:10]OFD Sender: No OFD packet to send [14:04:15]OFD Sender: No OFD packet to send [14:04:20]OFD Sender: No OFD packet to send [14:04:25]OFD Sender: No OFD packet to send [14:04:30]OFD Sender: No OFD packet to send [14:04:35]OFD Sender: No OFD packet to send [14:04:40]OFD Sender: No OFD packet to send [14:04:45]OFD Sender: No OFD packet to send [14:04:50]OFD Sender: No OFD packet to send [14:04:55]OFD Sender: No OFD packet to send [14:05:00]OFD Sender: No OFD packet to send [14:05:05]OFD Sender: No OFD packet to send [14:05:10]OFD Sender: No OFD packet to send [14:05:15]OFD Sender: No OFD packet to send [14:05:20]OFD Sender: No OFD packet to send [14:05:26]OFD Sender: No OFD packet to send [14:05:31]OFD Sender: No OFD packet to send [14:05:36]OFD Sender: No OFD packet to send [14:05:41]OFD Sender: No OFD packet to send [14:05:46]OFD Sender: No OFD packet to send [14:05:51]OFD Sender: No OFD packet to send [14:05:56]OFD Sender: No OFD packet to send [14:06:01]OFD Sender: No OFD packet to send [14:06:06]OFD Sender: No OFD packet to send [14:06:11]OFD Sender: No OFD packet to send [14:06:16]OFD Sender: No OFD packet to send [14:06:21]OFD Sender: No OFD packet to send [14:06:26]OFD Sender: No OFD packet to send [14:06:31]OFD Sender: No OFD packet to send [14:06:36]OFD Sender: No OFD packet to send [14:06:41]OFD Sender: No OFD packet to send [14:06:46]OFD Sender: No OFD packet to send [14:06:51]OFD Sender: No OFD packet to send [14:06:56]OFD Sender: No OFD packet to send [14:07:01]OFD Sender: No OFD packet to send [14:07:06]OFD Sender: No OFD packet to send [14:07:11]OFD Sender: No OFD packet to send [14:07:16]OFD Sender: No OFD packet to send [14:07:21]OFD Sender: No OFD packet to send [14:07:26]OFD Sender: No OFD packet to send [14:07:31]OFD Sender: No OFD packet to send [14:07:36]OFD Sender: No OFD packet to send [14:07:41]OFD Sender: No OFD packet to send [14:07:46]OFD Sender: No OFD packet to send [14:07:51]OFD Sender: No OFD packet to send [14:07:56]OFD Sender: No OFD packet to send [14:08:01]OFD Sender: No OFD packet to send [14:08:06]OFD Sender: No OFD packet to send [14:08:11]OFD Sender: No OFD packet to send [14:08:16]OFD Sender: No OFD packet to send [14:08:21]OFD Sender: No OFD packet to send [14:08:26]OFD Sender: No OFD packet to send [14:08:31]OFD Sender: No OFD packet to send [14:08:36]OFD Sender: No OFD packet to send [14:08:41]OFD Sender: No OFD packet to send [14:08:46]OFD Sender: No OFD packet to send [14:08:51]OFD Sender: No OFD packet to send [14:08:56]OFD Sender: No OFD packet to send [14:09:01]OFD Sender: No OFD packet to send [14:09:06]OFD Sender: No OFD packet to send [14:09:11]OFD Sender: No OFD packet to send [14:09:16]OFD Sender: No OFD packet to send [14:09:21]OFD Sender: No OFD packet to send [14:09:26]OFD Sender: No OFD packet to send [14:09:31]OFD Sender: No OFD packet to send [14:09:36]OFD Sender: No OFD packet to send [14:09:41]OFD Sender: No OFD packet to send [14:09:46]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:56]OFD Sender: No OFD packet to send [14:10:01]OFD Sender: No OFD packet to send [14:10:06]OFD Sender: No OFD packet to send [14:10:11]OFD Sender: No OFD packet to send [14:10:16]OFD Sender: No OFD packet to send [14:10:21]OFD Sender: No OFD packet to send [14:10:26]OFD Sender: No OFD packet to send [14:10:31]OFD Sender: No OFD packet to send [14:10:36]OFD Sender: No OFD packet to send [14:10:41]OFD Sender: No OFD packet to send [14:10:46]OFD Sender: No OFD packet to send [14:10:51]OFD Sender: No OFD packet to send [14:10:56]OFD Sender: No OFD packet to send [14:11:01]OFD Sender: No OFD packet to send [14:11:06]OFD Sender: No OFD packet to send [14:11:11]OFD Sender: No OFD packet to send [14:11:16]OFD Sender: No OFD packet to send [14:11:21]OFD Sender: No OFD packet to send [14:11:26]OFD Sender: No OFD packet to send [14:11:31]OFD Sender: No OFD packet to send [14:11:36]OFD Sender: No OFD packet to send [14:11:41]OFD Sender: No OFD packet to send [14:11:46]OFD Sender: No OFD packet to send [14:11:51]OFD Sender: No OFD packet to send [14:11:56]OFD Sender: No OFD packet to send [14:12:01]OFD Sender: No OFD packet to send [14:12:06]OFD Sender: No OFD packet to send [14:12:11]OFD Sender: No OFD packet to send [14:12:16]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:21]accept exits with 9 [14:12:21]New connection [14:12:21]New thread 3066654052 created [14:12:21]Thread 3066797412 joined [14:12:21]Waiting for new connection... [14:12:21] Sock 9.Parse request [14:12:21]Sock 9.Check first char [14:12:21]Sock 9.First char is OK [14:12:21]request: POST /json_proto HTTP/1.0 [14:12:21]Method: POST [14:12:21]URL: /json_proto [14:12:21]Method is POST - this is cgi request [14:12:21]url: /json_proto [14:12:21]query_string will be loaded in cgi processing [14:12:21]execute_cgi json_proto POST (null) [14:12:21]execute_cgi path=json_proto method=POST [14:12:21]POST find Content-Length [14:12:21]Host: 172.17.45.7:8080 [14:12:21]Content-Length: 677 [14:12:21]Content-Type: application/json [14:12:21] [14:12:21]POST finish read [14:12:21]Found Content-Length = 677 [14:12:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:21]execute_script... [14:12: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)949363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:21]POST & json_proto [14:12:21]process_json_proto [14:12:21]json parsed OK: [14:12:21]protocol is kg_v1.0 [14:12:21]action value=close_receipt [14:12:21]process_action close_receipt [14:12:21]cmd_close_receipt [14:12:21]MH_GetDate [14:12:21]Write to MH i2c: F0 00 00 FB 00 EA [14:12:21]Write i2c OK [14:12:21]MH_I2C_Read... [14:12:21]Read from MH i2c: F0 [14:12:21]MH_I2C_Read... [14:12:21]Read from MH i2c: F0 09 00 [14:12:21]MH_I2C_Read... [14:12:21]Read from MH i2c: F0 09 00 FB 00 00 C6 51 A6 66 90 0F 3E 66 59 [14:12:21]GetLastDocTimeStamp 1722174552 [14:12:21]current date 1722175942 [14:12:21]FM_GetShiftState [14:12:21]SAM_PROTO_GetShiftState [14:12:21]wFMCommunicate request_size=4 [14:12:21]MH_SAM_APDU [14:12:21]CAPDU: 80 13 01 00 [14:12:21]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [14:12:21]Write i2c OK [14:12:21]MH_I2C_Read... [14:12:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:21]Read from MH i2c: E2 [14:12:21]MH_I2C_Read... [14:12:21]Read from MH i2c: E2 0E 00 [14:12:21]MH_I2C_Read... [14:12:21]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 50 [14:12:21]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [14:12:21]wFMCommunicate OK [14:12:21]SAM_PROTO_GetShiftState done [14:12:21]FM_GetShiftState done [14:12:21]opened in 1722125364 [14:12:21]opened+sec_in_day 1722211764 [14:12:21]quantity*price = 30035 [14:12:21]sum+1 = 30036 [14:12:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 161 28.07.2024 14:12 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118492 ФПД: 195279132698444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T141222&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118492&fm=195279132698444&tin=02508201610067®Number=0000000000092660&sum=30000 [14:12:22]StoreToDocumentArchive [14:12:22]shift 433 fd 118492 [14:12:22]save to /storage/0433/doc_00118492 [14:12:22]save last doc name /storage/0433/doc_00118492 to /storage/kkm_last_doc_name [14:12:22]save OK [14:12:22]Clear old archive folders... [14:12:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:12:22]tlvbuf is 01E26A00 [14:12:22]SAM_PROTO_ClearQueue [14:12:22]wFMCommunicate request_size=4 [14:12:22]MH_SAM_APDU [14:12:22]CAPDU: 80 09 00 00 [14:12:22]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [14:12:22]Write i2c OK [14:12:22]MH_I2C_Read... [14:12:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:22]Read from MH i2c: E2 [14:12:22]MH_I2C_Read... [14:12:22]Read from MH i2c: E2 03 00 [14:12:22]MH_I2C_Read... [14:12:22]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [14:12:22]RAPDU: 90 00 [14:12:22]wFMCommunicate OK [14:12:22]SAM_PROTO_ClearQueue done [14:12:22]KKMCreateOFDPacket [14:12:22]OFDProtocolAddRootSTLVToBuf [14:12:22]FM_MakeSignedData [14:12:22]FM_MakeSignedData [14:12:22]SAM_PROTO_SignData [14:12:22]wFMCommunicate request_size=4 [14:12:22]MH_SAM_APDU [14:12:22]CAPDU: 80 0D 01 02 [14:12:22]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [14:12:22]Write i2c OK [14:12:22]MH_I2C_Read... [14:12:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:23]Read from MH i2c: E2 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: E2 03 00 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [14:12:23]RAPDU: 90 00 [14:12:23]wFMCommunicate OK [14:12:23]wFMCommunicate request_size=255 [14:12:23]MH_SAM_APDU [14:12:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 C6 51 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DC CE 01 00 35 04 06 00 B1 [14:12:23]Write to MH i2c: E2 02 01 0B 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 C6 51 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DC CE 01 00 35 04 06 00 B1 00 00 F9 [14:12:23]Write i2c OK [14:12:23]MH_I2C_Read... [14:12:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:23]Read from MH i2c: E2 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: E2 03 00 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [14:12:23]RAPDU: 90 00 [14:12:23]wFMCommunicate OK [14:12:23]wFMCommunicate request_size=10 [14:12:23]MH_SAM_APDU [14:12:23]CAPDU: 80 0D 02 02 05 9A F7 56 27 4C [14:12:23]Write to MH i2c: E2 0D 00 0C 01 80 0D 02 02 05 00 9A F7 56 27 4C 00 00 EB [14:12:23]Write i2c OK [14:12:23]MH_I2C_Read... [14:12:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:23]Read from MH i2c: E2 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: E2 03 00 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [14:12:23]RAPDU: 90 00 [14:12:23]wFMCommunicate OK [14:12:23]wFMCommunicate request_size=4 [14:12:23]MH_SAM_APDU [14:12:23]CAPDU: 80 0D 03 02 [14:12:23]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [14:12:23]Write i2c OK [14:12:23]MH_I2C_Read... [14:12:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:23]Read from MH i2c: E2 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: E2 0B 00 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: E2 0B 00 0D 01 00 B6 67 C8 A5 83 B7 DA 35 90 00 5D [14:12:23]RAPDU: B6 67 C8 A5 83 B7 DA 35 90 00 [14:12:23]wFMCommunicate OK [14:12:23]SAM_PROTO_SignData done [14:12:23]FM_MakeSignedData done [14:12:23]CreateOFDProtocolMessage [14:12:23]wFMCommunicate request_size=4 [14:12:23]MH_SAM_APDU [14:12:23]CAPDU: 80 11 00 00 [14:12:23]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [14:12:23]Write i2c OK [14:12:23]MH_I2C_Read... [14:12:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:23]Read from MH i2c: E2 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: E2 17 00 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: E2 17 00 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E4 [14:12:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:12:23]wFMCommunicate OK [14:12:23]CreateOFDProtocolMessage done [14:12:23]OFDSenderStorePacket 118492 [14:12:23]StoreOFDPacket docnum=118492 [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]/dev/ttyS4 opened [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 38 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 DD [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 5400000000572538 (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: 6832803+1715343248=1722176051 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:10]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [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 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 38 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 DE [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 34 52 A6 66 90 0F 3E 66 D4 [14:14:12]Current date/time: 28.07.2024 14:14 [14:14:12]FM_Init [14:14:12]wFMConnect [14:14:12]MH_SAM_On [14:14:12]Write to MH i2c: E0 00 00 08 00 E7 [14:14:12]Write i2c OK [14:14:12]MH_I2C_Read... [14:14:12]*** iso7816_init finished! [14:14:12]*** atr: [14:14:12]*** 0F 3B D5 18 FF 81 91 FE [14:14:12]*** 1F C3 80 73 C8 21 10 0A [14:14:12]*** 00 00 00 00 00 00 00 00 [14:14:12]*** 00 00 00 00 00 00 00 00 [14:14:12]*** 00 00 00 00 00 00 00 00 [14:14:12]*** 00 00 00 00 00 00 00 00 [14:14:12]*** 00 00 00 00 00 00 00 00 [14:14:12]*** 00 00 00 00 00 00 00 00 [14:14:12]Read from MH i2c: E0 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E0 10 00 [14:14:12]MH_I2C_Read... [14:14:12]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 [14:14:12]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [14:14:12]wFMCommunicate request_size=10 [14:14:12]MH_SAM_APDU [14:14:12]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [14:14:12]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [14:14:12]Write i2c OK [14:14:12]MH_I2C_Read... [14:14:12]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [14:14:12]Read from MH i2c: E2 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 03 00 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [14:14:12]RAPDU: 90 00 [14:14:12]wFMCommunicate OK [14:14:12]wFMCommunicate request_size=4 [14:14:12]MH_SAM_APDU [14:14:12]CAPDU: 80 11 00 00 [14:14:12]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [14:14:12]Write i2c OK [14:14:12]MH_I2C_Read... [14:14:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:12]Read from MH i2c: E2 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 17 00 [14:14:12]MH_I2C_Read... [14:14:12]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 39 33 39 90 00 DF [14:14:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:14:12]wFMCommunicate OK [14:14:12]Detected FM SN is 0000000000874939 [14:14:12]Stored FM SN is 0000000000874939 [14:14:12]wFMCommunicate request_size=9 [14:14:12]MH_SAM_APDU [14:14:12]CAPDU: 80 16 00 00 04 38 32 00 00 [14:14:12]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 38 32 00 00 00 00 FC [14:14:12]Write i2c OK [14:14:12]MH_I2C_Read... [14:14:12]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [14:14:12]Read from MH i2c: E2 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 03 00 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [14:14:12]RAPDU: 90 00 [14:14:12]wFMCommunicate OK [14:14:12]FM PIN OK [14:14:12]wFMCommunicate request_size=8 [14:14:12]MH_SAM_APDU [14:14:12]CAPDU: 80 14 04 00 03 02 00 01 [14:14:12]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [14:14:12]Write i2c OK [14:14:12]MH_I2C_Read... [14:14:12]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [14:14:12]Read from MH i2c: E2 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 03 00 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [14:14:12]RAPDU: 90 00 [14:14:12]wFMCommunicate OK [14:14:12]wFMCommunicate request_size=13 [14:14:12]MH_SAM_APDU [14:14:12]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [14:14:12]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 [14:14:12]Write i2c OK [14:14:12]MH_I2C_Read... [14:14:12]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [14:14:12]Read from MH i2c: E2 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 03 00 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [14:14:12]RAPDU: 90 00 [14:14:12]wFMCommunicate OK [14:14:12]wFMCommunicate request_size=4 [14:14:12]MH_SAM_APDU [14:14:12]CAPDU: 80 11 00 00 [14:14:12]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [14:14:12]Write i2c OK [14:14:12]MH_I2C_Read... [14:14:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:12]Read from MH i2c: E2 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 17 00 [14:14:12]MH_I2C_Read... [14:14:12]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 39 33 39 90 00 E3 [14:14:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:14:12]wFMCommunicate OK [14:14:12]DocumentArchiveInit [14:14:12]Start Httpd... [14:14:12]Httpd thread 3067112804 created [14:14:12]Write to MH i2c: 01 00 00 0F 00 0F [14:14:12]Write i2c OK [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: 01 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: 01 07 00 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [14:14:12]MH Int Process started [14:14:12]Allocated Socket 8 [14:14:12]Bind OK [14:14:12]Listen OK [14:14:12]httpd running on port 8080 [14:14:12]Waiting for new connection... [14:14:12]OFD Sender: Processing packet 118493 [packets to send 86, broken 85] [14:14:12]ProducePacketName [14:14:12]name=ofd_packets/00118493 [14:14:12]OFD Sender: To server: pG, [14:14:12]CommunicateWithHost lk.salyk.kg:30040 [14:14:12]ConnectInit lk.salyk.kg [14:14:12]Connected sock=6 [14:14: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 39 33 39 0C 01 00 00 CC 08 04 01 37 E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 CE 51 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DD CE 01 00 35 04 06 00 DE 55 85 AB 08 96 E7 11 EB 9C 49 B0 3B 34 [14:14:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5E 5F 47 00 1E D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DD CE 01 00 F4 03 04 00 C3 FF A5 66 B6 04 01 00 00 7A 5A 54 70 A9 91 51 0C [14:14:12]CommunicateWithHost err = 0 [14:14:12]CheckOFDResponse [14:14:12]1017 (14) - 77093643461234 [14:14:12]1041 (16) - 0000000000874939 [14:14:12]1040 (4) - 118493 [14:14:12]1012 (4) - 28.07.2024 08:22 [14:14:12]1206 (1) - 0 [14:14:12]OFD Sender: Remove packet 118493 [14:14:12]ProducePacketName [14:14:12]name=ofd_packets/00118493 [14:14:12]NVStorageDeleteData [14:14:13]OFD Sender: No OFD packet to send [14:14:17]accept exits with 9 [14:14:17]New connection [14:14:17]New thread 3066826084 created [14:14:17]Waiting for new connection... [14:14:17] Sock 9.Parse request [14:14:17]Sock 9.Check first char [14:14:17]Sock 9.First char is OK [14:14:17]request: POST /json_proto HTTP/1.0 [14:14:17]Method: POST [14:14:17]URL: /json_proto [14:14:17]Method is POST - this is cgi request [14:14:17]url: /json_proto [14:14:17]query_string will be loaded in cgi processing [14:14:17]execute_cgi json_proto POST (null) [14:14:17]execute_cgi path=json_proto method=POST [14:14:17]POST find Content-Length [14:14:17]Host: 172.17.45.7:8080 [14:14:17]Content-Length: 215 [14:14:17]Content-Type: application/json [14:14:17] [14:14:17]POST finish read [14:14:17]Found Content-Length = 215 [14:14:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:17]execute_script... [14:14:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:17]POST & json_proto [14:14:17]process_json_proto [14:14:17]json parsed OK: [14:14:17]protocol is kg_v1.0 [14:14:17]action value=get_value [14:14:17]process_action get_value [14:14:17]cmd_get_value [14:14:17]process_action get_value done [14:14:17]requested_data is exist [14:14:17]produce_requested_data [14:14:17]requested_item kkm.sn is exist - process it [14:14:17]requested_item kkm.ver is exist - process it [14:14:17]requested_item fm.sn is exist - process it [14:14:17]wFMCommunicate request_size=4 [14:14:17]MH_SAM_APDU [14:14:17]CAPDU: 80 11 00 00 [14:14:17]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [14:14:17]Write i2c OK [14:14:17]MH_I2C_Read... [14:14:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:17]Read from MH i2c: E2 [14:14:17]MH_I2C_Read... [14:14:17]Read from MH i2c: E2 17 00 [14:14:17]MH_I2C_Read... [14:14:17]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E5 [14:14:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:14:17]wFMCommunicate OK [14:14:17]requested_item fd.num is exist - process it [14:14:17]SAM_PROTO_GetFieldsCounters [14:14:17]wFMCommunicate request_size=4 [14:14:17]MH_SAM_APDU [14:14:17]CAPDU: 80 13 00 00 [14:14:17]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [14:14:17]Write i2c OK [14:14:17]MH_I2C_Read... [14:14:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:17]Read from MH i2c: E2 [14:14:17]MH_I2C_Read... [14:14:17]Read from MH i2c: E2 62 00 [14:14:17]MH_I2C_Read... [14:14:17]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DD CE 01 00 0E 04 04 00 B1 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 F8 [14:14:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DD CE 01 00 0E 04 04 00 B1 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 [14:14:17]wFMCommunicate OK [14:14:17]SAM_PROTO_GetFieldsCounters done [14:14:17]requested_item shift.num is exist - process it [14:14:17]requested_item shift.opened is exist - process it [14:14:17]req_shift_opened [14:14:17]FM_GetShiftState [14:14:17]SAM_PROTO_GetShiftState [14:14:17]wFMCommunicate request_size=4 [14:14:17]MH_SAM_APDU [14:14:17]CAPDU: 80 13 01 00 [14:14:17]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [14:14:17]Write i2c OK [14:14:17]MH_I2C_Read... [14:14:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:17]Read from MH i2c: E2 [14:14:17]MH_I2C_Read... [14:14:17]Read from MH i2c: E2 0E 00 [14:14:17]MH_I2C_Read... [14:14:17]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 66 [14:14:17]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [14:14:17]wFMCommunicate OK [14:14:17]SAM_PROTO_GetShiftState done [14:14:17]FM_GetShiftState done [14:14:17]req_shift_opened done [14:14:17]requested_item shift.open_date is exist - process it [14:14:17]req_shift_open_date [14:14:17]req_shift_open_date done [14:14:17]produce_requested_data done [14:14:17]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118493,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [14:14:17]process_action_free get_value [14:14:17]json_value_free [14:14:17]json_value_free done [14:14:17]process_json_proto returns [14:14:17]Send response to host [14:14:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118493,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [14:14:17]free response buf [14:14:17]execute_script done [14:14:17]execute_script returns [14:14:17]free content buf [14:14:17]Sock 9.Close socket [14:14:17]Sock 9.Thread stoped [14:14:17]accept exits with 7 [14:14:17]New connection [14:14:17]New thread 3066682724 created [14:14:17]Thread 3066826084 joined [14:14:17]Waiting for new connection... [14:14:17] Sock 7.Parse request [14:14:17]Sock 7.Check first char [14:14:17]Sock 7.First char is OK [14:14:17]request: POST /json_proto HTTP/1.0 [14:14:17]Method: POST [14:14:17]URL: /json_proto [14:14:17]Method is POST - this is cgi request [14:14:17]url: /json_proto [14:14:17]query_string will be loaded in cgi processing [14:14:17]execute_cgi json_proto POST (null) [14:14:17]execute_cgi path=json_proto method=POST [14:14:17]POST find Content-Length [14:14:17]Host: 172.17.45.7:8080 [14:14:17]Content-Length: 331 [14:14:17]Content-Type: application/json [14:14:17] [14:14:17]POST finish read [14:14:17]Found Content-Length = 331 [14:14:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:14:17]execute_script... [14:14:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:14:17]POST & json_proto [14:14:17]process_json_proto [14:14:17]json parsed OK: [14:14:17]protocol is kg_v1.0 [14:14:17]action value=get_value [14:14:17]process_action get_value [14:14:17]cmd_get_value [14:14:17]process_action get_value done [14:14:17]requested_data is exist [14:14:17]produce_requested_data [14:14:17]requested_item fm.sale.total is exist - process it [14:14:17]SAM_PROTO_GetFMData [14:14:17]wFMCommunicate request_size=4 [14:14:17]MH_SAM_APDU [14:14:17]CAPDU: 80 13 03 00 [14:14:17]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [14:14:18]Write i2c OK [14:14:18]MH_I2C_Read... [14:14:18]OFD Sender: No OFD packet to send [14:14:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:14:18]Read from MH i2c: E2 [14:14:18]MH_I2C_Read... [14:14:18]Read from MH i2c: E2 FD 00 [14:14:18]MH_I2C_Read... [14:14:18]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 7B CB 01 00 69 04 A3 00 6F 04 04 00 F5 BD 01 00 B1 04 05 00 68 99 45 74 03 70 04 05 00 0C 8F 38 A7 02 72 04 04 00 5C 0A 0D CD 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 4C E8 ED 5D 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 1B B2 D3 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 9C 00 6F 04 04 00 86 0D 00 00 B1 04 04 00 BC BC 0F 3B 70 04 04 00 BC BC 0F 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2F D3 45 06 EF 03 09 90 00 B2 [14:14:18]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 7B CB 01 00 69 04 A3 00 6F 04 04 00 F5 BD 01 00 B1 04 05 00 68 99 45 74 03 70 04 05 00 0C 8F 38 A7 02 72 04 04 00 5C 0A 0D CD 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 4C E8 ED 5D 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 1B B2 D3 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 9C 00 6F 04 04 00 86 0D 00 00 B1 04 04 00 BC BC 0F 3B 70 04 04 00 BC BC 0F 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2F D3 45 06 EF 03 09 90 00 [14:14:18]wFMCommunicate OK [14:14:18]wFMCommunicate request_size=4 [14:14:18]MH_SAM_APDU [14:14:18]CAPDU: 80 17 00 00 [14:14:18]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [14:14:18]Write i2c OK [14:14:18]MH_I2C_Read... [14:14:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:14:18]Read from MH i2c: E2 [14:14:18]MH_I2C_Read... [14:14:18]Read from MH i2c: E2 FD 00 [14:14:18]MH_I2C_Read... [14:14:18]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B7 D0 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 56 [14:14:18]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B7 D0 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [14:14:18]wFMCommunicate OK [14:14:18]wFMCommunicate request_size=4 [14:14:18]MH_SAM_APDU [14:14:18]CAPDU: 80 17 00 00 [14:14:18]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [14:14:18]Write i2c OK [14:14:18]MH_I2C_Read... [14:14:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:14:19]Read from MH i2c: E2 [14:14:19]MH_I2C_Read... [14:14:19]Read from MH i2c: E2 FD 00 [14:14:19]MH_I2C_Read... [14:14:19]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [14:14:19]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [14:14:19]wFMCommunicate OK [14:14:19]wFMCommunicate request_size=4 [14:14:19]MH_SAM_APDU [14:14:19]CAPDU: 80 17 00 00 [14:14:19]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [14:14:19]Write i2c OK [14:14:19]MH_I2C_Read... [14:14:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:14:19]Read from MH i2c: E2 [14:14:19]MH_I2C_Read... [14:14:19]Read from MH i2c: E2 FD 00 [14:14:19]MH_I2C_Read... [14:14:19]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 22 [14:14:19]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [14:14:19]wFMCommunicate OK [14:14:19]wFMCommunicate request_size=4 [14:14:19]MH_SAM_APDU [14:14:19]CAPDU: 80 17 00 00 [14:14:19]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [14:14:19]Write i2c OK [14:14:19]MH_I2C_Read... [14:14:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [14:14:19]Read from MH i2c: E2 [14:14:19]MH_I2C_Read... [14:14:19]Read from MH i2c: E2 E2 00 [14:14:19]MH_I2C_Read... [14:14:19]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 75 [14:14:19]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:14:19]wFMCommunicate OK [14:14:19]SAM_PROTO_GetFMData done [14:14:19]requested_item fm.sale_refund.total is exist - process it [14:14:19]requested_item fm.buy.total is exist - process it [14:14:19]requested_item shift.sale.total is exist - process it [14:14:19]SAM_PROTO_GetShiftData [14:14:19]wFMCommunicate request_size=4 [14:14:19]MH_SAM_APDU [14:14:19]CAPDU: 80 13 02 00 [14:14:19]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [14:14:19]Write i2c OK [14:14:19]MH_I2C_Read... [14:14:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:14:20]Read from MH i2c: E2 [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: E2 FD 00 [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: E2 FD 00 18 00 00 BB 04 AA 04 B7 04 6E 04 04 00 A2 00 00 00 69 04 9E 00 6F 04 04 00 9E 00 00 00 B1 04 04 00 44 F8 AD 01 70 04 03 00 54 94 7B 72 04 04 00 F0 63 32 01 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 02 AB 2D 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 34 CE 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 E0 8D 05 70 04 03 00 E0 8D 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 03 97 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 18 [14:14:20]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 A2 00 00 00 69 04 9E 00 6F 04 04 00 9E 00 00 00 B1 04 04 00 44 F8 AD 01 70 04 03 00 54 94 7B 72 04 04 00 F0 63 32 01 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 02 AB 2D 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 34 CE 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 E0 8D 05 70 04 03 00 E0 8D 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 03 97 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [14:14:20]wFMCommunicate OK [14:14:20]wFMCommunicate request_size=4 [14:14:20]MH_SAM_APDU [14:14:20]CAPDU: 80 17 00 00 [14:14:20]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [14:14:20]Write i2c OK [14:14:20]MH_I2C_Read... [14:14:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:14:20]Read from MH i2c: E2 [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: E2 FD 00 [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: E2 FD 00 19 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 95 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 E4 [14:14:20]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 95 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 [14:14:20]wFMCommunicate OK [14:14:20]wFMCommunicate request_size=4 [14:14:20]MH_SAM_APDU [14:14:20]CAPDU: 80 17 00 00 [14:14:20]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [14:14:20]Write i2c OK [14:14:20]MH_I2C_Read... [14:14:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:14:20]Read from MH i2c: E2 [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: E2 FD 00 [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: E2 FD 00 1A 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 C6 [14:14:20]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [14:14:20]wFMCommunicate OK [14:14:20]wFMCommunicate request_size=4 [14:14:20]MH_SAM_APDU [14:14:20]CAPDU: 80 17 00 00 [14:14:20]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [14:14:20]Write i2c OK [14:14:20]MH_I2C_Read... [14:14:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:14:20]Read from MH i2c: E2 [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: E2 FD 00 [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 10 [14:14:21]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [14:14:21]wFMCommunicate OK [14:14:21]wFMCommunicate request_size=4 [14:14:21]MH_SAM_APDU [14:14:21]CAPDU: 80 17 00 00 [14:14:21]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [14:14:21]Write i2c OK [14:14:21]MH_I2C_Read... [14:14:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [14:14:21]Read from MH i2c: E2 [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: E2 D8 00 [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: E2 D8 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 83 [14:14:21]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:14:21]wFMCommunicate OK [14:14:21]SAM_PROTO_GetShiftData done [14:14:21]requested_item shift.sale.total_cash is exist - process it [14:14:21]requested_item shift.sale_refund.total is exist - process it [14:14:21]requested_item shift.sale_refund.total_cash is exist - process it [14:14:21]requested_item shift.buy.total is exist - process it [14:14:21]requested_item shift.buy.total_cash is exist - process it [14:14:21]produce_requested_data done [14:14:21]produce_requested_data return {"fm.sale.total":148356202.00,"fm.sale_refund.total":9908871.00,"fm.buy.total":0.00,"shift.sale.total":281785.00,"shift.sale.total_cash":80989.00,"shift.sale_refund.total":3640.00,"shift.sale_refund.total_cash":3640.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [14:14:21]process_action_free get_value [14:14:21]json_value_free [14:14:21]json_value_free done [14:14:21]process_json_proto returns [14:14:21]Send response to host [14:14:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148356202.00,"fm.sale_refund.total":9908871.00,"fm.buy.total":0.00,"shift.sale.total":281785.00,"shift.sale.total_cash":80989.00,"shift.sale_refund.total":3640.00,"shift.sale_refund.total_cash":3640.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [14:14:21]free response buf [14:14:21]execute_script done [14:14:21]execute_script returns [14:14:21]free content buf [14:14:21]Sock 7.Close socket [14:14:21]Sock 7.Thread stoped [14:14:21]accept exits with 9 [14:14:21]New connection [14:14:21]New thread 3066826084 created [14:14:21]Thread 3066682724 joined [14:14:21]Waiting for new connection... [14:14:21] Sock 9.Parse request [14:14:21]Sock 9.Check first char [14:14:21]Sock 9.First char is OK [14:14:21]request: POST /json_proto HTTP/1.0 [14:14:21]Method: POST [14:14:21]URL: /json_proto [14:14:21]Method is POST - this is cgi request [14:14:21]url: /json_proto [14:14:21]query_string will be loaded in cgi processing [14:14:21]execute_cgi json_proto POST (null) [14:14:21]execute_cgi path=json_proto method=POST [14:14:21]POST find Content-Length [14:14:21]Host: 172.17.45.7:8080 [14:14:21]Content-Length: 144 [14:14:21]Content-Type: application/json [14:14:21] [14:14:21]POST finish read [14:14:21]Found Content-Length = 144 [14:14:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [14:14:21]execute_script... [14:14:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [14:14:21]POST & json_proto [14:14:21]process_json_proto [14:14:21]json parsed OK: [14:14:21]protocol is kg_v1.0 [14:14:21]action value=print_doc [14:14:21]process_action print_doc [14:14:21]ExternCall_PrintAddStr [14:14:21]wPrintStart [14:14:21]Write to MH i2c: 01 00 00 1D 00 1D [14:14:21]Write i2c OK [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: 01 [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: 01 07 00 [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [14:14:21]RasterBufferAndPrint [14:14:21]line Счет N : (1)949364 [14:14:21]line ИНН: 02508201610067 [14:14:21]line Контрольно-Кассовый Чек [14:14:21]line ПРОДАЖА [14:14:21]line ТРК (МРК, ГНК) : 44 [14:14:21]line Товар: 2710194800 [14:14:21]line ДТ-К-5 [14:14:21]line 15.750 * 76.20 [14:14:21]line = 1200.15 [14:14:21]line НДС 12% НСП 1% [14:14:21]line > о реализуемом товаре [14:14:21]line ОКРУГЛЕНИЕ: -0.15 [14:14:21]line ИТОГО: 1200.00 [14:14:21]line Внесено: 1200.00 [14:14:21]line СДАЧА: 0.00 [14:14:21]line НСП 1% : 10.62 [14:14:21]line НДС 12% : 127.45 [14:14:21]line Наличными: 1200.00 [14:14:21]line Безнал.: 0.00 [14:14:21]line Место: АЗС № 134 "Партнер Нефть" [14:14:21]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:14:21]line СНО: Общий режим [14:14:21]line Чек 162 28.07.2024 14:12 [14:14:21]line Смена: 433 ФФД: 1.0 [14:14:21]line ЗНМ: 0300000044 [14:14:21]line РНМ: 0000000000092660 [14:14:21]line Версия ККМ: 001 [14:14:21]line ФМ: 0000000000874939 [14:14:21]line ФД: 118493 [14:14:21]line ФПД: 244458896165014 [14:14:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T141230&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118493&fm=244458896165014&tin=02508201610067®Number=0000000000092660&sum=120000 [14:14:21]written 0, free lines is 4095 [14:14:21]Write to MH i2c: 01 00 00 47 00 47 [14:14:21]Write i2c OK [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: 01 [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: 01 07 00 [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: 01 07 00 47 00 00 00 00 00 00 E1 0C 3B [14:14:21]RasterBufferAndPrint [14:14:21]line [14:14:21]line [14:14:21]line [14:14:21]line [14:14:21]line [14:14:21]written 0, free lines is 3308 [14:14:21]MH_Cut [14:14:21]Write to MH i2c: D1 01 00 4E 00 01 20 [14:14:21]Write i2c OK [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: D1 [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: D1 01 00 [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: D1 01 00 4E 00 00 1F [14:14:21]Write to MH i2c: 01 00 00 4F 00 4F [14:14:21]Write i2c OK [14:14:21]MH_I2C_Read... [14:14:22]*** Cut start [14:14:22]*** Partial cut [14:14:22]*** CUTSNS_PIN = 1 [14:14:22]*** CUTSNS_PIN = 0 [14:14:22]*** Brake cut motor [14:14:23]Read from MH i2c: 01 *** Stop cut motor [14:14:23] [14:14:23]*** Cut end [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: 01 07 00 [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 FF 0F 64 [14:14:23]process_action print_doc done [14:14:23]requested_data is exist [14:14:23]produce_requested_data [14:14:23]produce_requested_data return (null) [14:14:23]process_action_free print_doc [14:14:23]json_value_free [14:14:23]json_value_free done [14:14:23]process_json_proto returns [14:14:23]Send response to host [14:14:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [14:14:23]free response buf [14:14:23]execute_script done [14:14:23]execute_script returns [14:14:23]free content buf [14:14:23]Sock 9.Close socket [14:14:23]Sock 9.Thread stoped [14:14:23]accept exits with 7 [14:14:23]New connection [14:14:23]New thread 3066682724 created [14:14:23]Thread 3066826084 joined [14:14:23]Waiting for new connection... [14:14:23] Sock 7.Parse request [14:14:23]Sock 7.Check first char [14:14:23]Sock 7.First char is OK [14:14:23]request: POST /json_proto HTTP/1.0 [14:14:23]Method: POST [14:14:23]URL: /json_proto [14:14:23]Method is POST - this is cgi request [14:14:23]url: /json_proto [14:14:23]query_string will be loaded in cgi processing [14:14:23]execute_cgi json_proto POST (null) [14:14:23]execute_cgi path=json_proto method=POST [14:14:23]POST find Content-Length [14:14:23]Host: 172.17.45.7:8080 [14:14:23]Content-Length: 819 [14:14:23]Content-Type: application/json [14:14:23] [14:14:23]POST finish read [14:14:23]Found Content-Length = 819 [14:14:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.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", "total" : 4000.00, "payments": [ { "type": 1, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:23]execute_script... [14:14:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.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", "total" : 4000.00, "payments": [ { "type": 1, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:23]POST & json_proto [14:14:23]process_json_proto [14:14:23]json parsed OK: [14:14:23]protocol is kg_v1.0 [14:14:23]action value=close_receipt [14:14:23]process_action close_receipt [14:14:23]cmd_close_receipt [14:14:23]MH_GetDate [14:14:23]Write to MH i2c: F0 00 00 50 00 3F [14:14:23]Write i2c OK [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: F0 [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: F0 09 00 [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: F0 09 00 50 00 00 3F 52 A6 66 90 0F 3E 66 28 [14:14:23]GetLastDocTimeStamp 1722175950 [14:14:23]current date 1722176063 [14:14:23]FM_GetShiftState [14:14:23]SAM_PROTO_GetShiftState [14:14:23]wFMCommunicate request_size=4 [14:14:23]MH_SAM_APDU [14:14:23]CAPDU: 80 13 01 00 [14:14:23]Write to MH i2c: E2 08 00 51 00 80 13 01 00 00 00 00 00 CE [14:14:23]OFD Sender: No OFD packet to send [14:14:23]Write i2c OK [14:14:23]MH_I2C_Read... [14:14:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:23]Read from MH i2c: E2 [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: E2 0E 00 [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: E2 0E 00 51 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A5 [14:14:23]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [14:14:23]wFMCommunicate OK [14:14:23]SAM_PROTO_GetShiftState done [14:14:23]FM_GetShiftState done [14:14:23]opened in 1722125364 [14:14:23]opened+sec_in_day 1722211764 [14:14:23]quantity*price = 400050 [14:14:23]sum+1 = 400051 [14:14:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 163 28.07.2024 14:14 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118494 ФПД: 138680300397388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T141423&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118494&fm=138680300397388&tin=02508201610067®Number=0000000000092660&sum=400000 [14:14:24]StoreToDocumentArchive [14:14:24]shift 433 fd 118494 [14:14:24]save to /storage/0433/doc_00118494 [14:14:24]save last doc name /storage/0433/doc_00118494 to /storage/kkm_last_doc_name [14:14:24]save OK [14:14:24]Clear old archive folders... [14:14:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:14:24]tlvbuf is 01B15A90 [14:14:24]SAM_PROTO_ClearQueue [14:14:24]wFMCommunicate request_size=4 [14:14:24]MH_SAM_APDU [14:14:24]CAPDU: 80 09 00 00 [14:14:24]Write to MH i2c: E2 08 00 5E 00 80 09 00 00 00 00 00 00 D0 [14:14:24]Write i2c OK [14:14:24]MH_I2C_Read... [14:14:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:24]Read from MH i2c: E2 [14:14:24]MH_I2C_Read... [14:14:24]Read from MH i2c: E2 03 00 [14:14:24]MH_I2C_Read... [14:14:24]Read from MH i2c: E2 03 00 5E 00 00 90 00 D2 [14:14:24]RAPDU: 90 00 [14:14:24]wFMCommunicate OK [14:14:24]SAM_PROTO_ClearQueue done [14:14:24]KKMCreateOFDPacket [14:14:24]OFDProtocolAddRootSTLVToBuf [14:14:24]FM_MakeSignedData [14:14:24]FM_MakeSignedData [14:14:24]SAM_PROTO_SignData [14:14:24]wFMCommunicate request_size=4 [14:14:24]MH_SAM_APDU [14:14:24]CAPDU: 80 0D 01 02 [14:14:24]Write to MH i2c: E2 08 00 5F 00 80 0D 01 02 00 00 00 00 D8 [14:14:24]Write i2c OK [14:14:24]MH_I2C_Read... [14:14:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:24]Read from MH i2c: E2 [14:14:24]MH_I2C_Read... [14:14:24]Read from MH i2c: E2 03 00 [14:14:24]MH_I2C_Read... [14:14:24]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [14:14:24]RAPDU: 90 00 [14:14:24]wFMCommunicate OK [14:14:24]wFMCommunicate request_size=255 [14:14:24]MH_SAM_APDU [14:14:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 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 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 3F 52 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DE CE 01 00 35 04 06 00 7E 21 06 0A [14:14:24]Write to MH i2c: E2 02 01 60 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 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 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 3F 52 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DE CE 01 00 35 04 06 00 7E 21 06 0A 00 00 DB [14:14:25]Write i2c OK [14:14:25]MH_I2C_Read... [14:14:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:25]Read from MH i2c: E2 [14:14:25]MH_I2C_Read... [14:14:25]Read from MH i2c: E2 03 00 [14:14:25]MH_I2C_Read... [14:14:25]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [14:14:25]RAPDU: 90 00 [14:14:25]wFMCommunicate OK [14:14:25]wFMCommunicate request_size=7 [14:14:25]MH_SAM_APDU [14:14:25]CAPDU: 80 0D 02 02 02 E3 4C [14:14:25]Write to MH i2c: E2 0A 00 61 00 80 0D 02 02 02 00 E3 4C 00 00 0E [14:14:25]Write i2c OK [14:14:25]MH_I2C_Read... [14:14:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:25]Read from MH i2c: E2 [14:14:25]MH_I2C_Read... [14:14:25]Read from MH i2c: E2 03 00 [14:14:25]MH_I2C_Read... [14:14:25]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [14:14:25]RAPDU: 90 00 [14:14:25]wFMCommunicate OK [14:14:25]wFMCommunicate request_size=4 [14:14:25]MH_SAM_APDU [14:14:25]CAPDU: 80 0D 03 02 [14:14:25]Write to MH i2c: E2 08 00 62 00 80 0D 03 02 00 00 00 00 DD [14:14:25]Write i2c OK [14:14:25]MH_I2C_Read... [14:14:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:25]Read from MH i2c: E2 [14:14:25]MH_I2C_Read... [14:14:25]Read from MH i2c: E2 0B 00 [14:14:25]MH_I2C_Read... [14:14:25]Read from MH i2c: E2 0B 00 62 00 00 C7 8A 08 FD 3D 89 22 CD 90 00 E9 [14:14:25]RAPDU: C7 8A 08 FD 3D 89 22 CD 90 00 [14:14:25]wFMCommunicate OK [14:14:25]SAM_PROTO_SignData done [14:14:25]FM_MakeSignedData done [14:14:25]CreateOFDProtocolMessage [14:14:25]wFMCommunicate request_size=4 [14:14:25]MH_SAM_APDU [14:14:25]CAPDU: 80 11 00 00 [14:14:25]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [14:14:25]Write i2c OK [14:14:25]MH_I2C_Read... [14:14:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:25]Read from MH i2c: E2 [14:14:25]MH_I2C_Read... [14:14:25]Read from MH i2c: E2 17 00 [14:14:25]MH_I2C_Read... [14:14:25]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 39 33 39 90 00 38 [14:14:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:14:25]wFMCommunicate OK [14:14:25]CreateOFDProtocolMessage done [14:14:25]OFDSenderStorePacket 118494 [14:14:25]StoreOFDPacket docnum=118494 [14:14:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 D7 F1 04 01 45 1A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 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 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 3F 52 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DE CE 01 00 35 04 06 00 7E 21 06 0A E3 4C C7 8A 08 FD 3D 89 22 CD [14:14:25]CheckFolder [14:14:25]dirname=/storage/ofd_packets [14:14:25]CheckFolder done [14:14:25]ProducePacketName [14:14:25]name=ofd_packets/00118494 [14:14:25]NVStorageSaveData ofd_packets/00118494 [14:14:25]File name is /storage/ofd_packets/00118494 [14:14:25]Write 298 bytes [14:14:25]NVStorageSaveData done [14:14:25]OFDSenderStorePacket done [14:14:25]KKMCreateOFDPacket done [14:14:25]NVStorageSaveData kkm_last_timestamp [14:14:25]File name is /storage/kkm_last_timestamp [14:14:25]Write 4 bytes [14:14:25]NVStorageSaveData done [14:14:25]ExternCall_PrintAddStr [14:14:25]wPrintStart [14:14:25]Write to MH i2c: 01 00 00 64 00 64 [14:14:25]Write i2c OK [14:14:25]MH_I2C_Read... [14:14:25]Read from MH i2c: 01 [14:14:25]MH_I2C_Read... [14:14:25]Read from MH i2c: 01 07 00 [14:14:25]MH_I2C_Read... [14:14:25]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [14:14:25]RasterBufferAndPrint [14:14:25]line Счет N : (1)949362 [14:14:25]line ИНН: 02508201610067 [14:14:25]line Контрольно-Кассовый Чек [14:14:25]line ПРОДАЖА [14:14:25]line ТРК (МРК, ГНК) : 34 [14:14:25]line Товар: 2710194800 [14:14:25]line ДТ-К-5 [14:14:25]line 52.500 * 76.20 [14:14:25]line = 4000.50 [14:14:25]line НДС 12% НСП 1% [14:14:25]line > о реализуемом товаре [14:14:25]line ОКРУГЛЕНИЕ: -0.50 [14:14:25]line ИТОГО: 4000.00 [14:14:25]line НСП 1% : 35.40 [14:14:25]line НДС 12% : 424.83 [14:14:25]line Наличными: 0.00 [14:14:25]line Безнал.: 4000.00 [14:14:25]line Место: АЗС № 134 "Партнер Нефть" [14:14:25]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:14:25]line СНО: Общий режим [14:14:25]line Чек 163 28.07.2024 14:14 [14:14:25]line Смена: 433 ФФД: 1.0 [14:14:25]line ЗНМ: 0300000044 [14:14:25]line РНМ: 0000000000092660 [14:14:25]line Версия ККМ: 001 [14:14:25]line Платежная система: O! деньги [14:14:25]line ФМ: 0000000000874939 [14:14:25]line ФД: 118494 [14:14:25]line ФПД: 138680300397388 [14:14:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T141423&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118494&fm=138680300397388&tin=02508201610067®Number=0000000000092660&sum=400000 [14:14:25]OFD Sender: Processing packet 118494 [packets to send 86, broken 85] [14:14:25]ProducePacketName [14:14:25]name=ofd_packets/00118494 [14:14:25]OFD Sender: To server: pG, [14:14:25]CommunicateWithHost lk.salyk.kg:30040 [14:14:25]ConnectInit lk.salyk.kg [14:14:25]written 0, free lines is 4095 [14:14:25]Connected sock=10 [14:14:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 D7 F1 04 01 45 1A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 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 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 3F 52 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DE CE 01 00 35 04 06 00 7E 21 06 0A E3 4C C7 8A 08 FD 3D 89 22 CD [14:14:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 FF 37 47 00 37 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 39 33 39 10 04 04 00 DE CE 01 00 F4 03 04 00 D0 FF A5 66 B6 04 01 00 00 63 D1 76 8E 14 CE 33 03 [14:14:26]CommunicateWithHost err = 0 [14:14:26]CheckOFDResponse [14:14:26]1017 (14) - 77093643461234 [14:14:26]1041 (16) - 0000000000874939 [14:14:26]1040 (4) - 118494 [14:14:26]1012 (4) - 28.07.2024 08:22 [14:14:26]1206 (1) - 0 [14:14:26]OFD Sender: Remove packet 118494 [14:14:26]ProducePacketName [14:14:26]name=ofd_packets/00118494 [14:14:26]NVStorageDeleteData [14:14:26]Write to MH i2c: 01 00 00 8E 00 8E [14:14:26]Write i2c OK [14:14:26]MH_I2C_Read... [14:14:26]Read from MH i2c: 01 [14:14:26]MH_I2C_Read... [14:14:26]Read from MH i2c: 01 07 00 [14:14:26]MH_I2C_Read... [14:14:26]Read from MH i2c: 01 07 00 8E 00 00 00 00 00 00 F5 0C 96 [14:14:26]RasterBufferAndPrint [14:14:26]line [14:14:26]line [14:14:26]line [14:14:26]line [14:14:26]line [14:14:26]written 0, free lines is 3339 [14:14:26]MH_Cut [14:14:26]Write to MH i2c: D1 01 00 95 00 01 67 [14:14:26]Write i2c OK [14:14:26]MH_I2C_Read... [14:14:26]Read from MH i2c: D1 [14:14:26]MH_I2C_Read... [14:14:26]Read from MH i2c: D1 01 00 [14:14:26]MH_I2C_Read... [14:14:26]Read from MH i2c: D1 01 00 95 00 00 66 [14:14:26]Write to MH i2c: 01 00 00 96 00 96 [14:14:26]Write i2c OK [14:14:26]MH_I2C_Read... [14:14:26]OFD Sender: No OFD packet to send [14:14:26]*** Cut start [14:14:26]*** Partial cut [14:14:26]*** CUTSNS_PIN = 1 [14:14:26]*** CUTSNS_PIN = 0 [14:14:27]*** Brake cut motor [14:14:27]Read from MH i2c: 01 *** Stop cut motor [14:14:27] [14:14:27]*** Cut end [14:14:27]MH_I2C_Read... [14:14:27]Read from MH i2c: 01 07 00 [14:14:27]MH_I2C_Read... [14:14:27]Read from MH i2c: 01 07 00 96 00 00 00 00 00 00 FF 0F AB [14:14:27]process_action close_receipt done [14:14:27]requested_data is exist [14:14:27]produce_requested_data [14:14:27]requested_item fm.sn is exist - process it [14:14:27]wFMCommunicate request_size=4 [14:14:27]MH_SAM_APDU [14:14:27]CAPDU: 80 11 00 00 [14:14:27]Write to MH i2c: E2 08 00 97 00 80 11 00 00 00 00 00 00 11 [14:14:27]Write i2c OK [14:14:27]MH_I2C_Read... [14:14:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:27]Read from MH i2c: E2 [14:14:27]MH_I2C_Read... [14:14:27]Read from MH i2c: E2 17 00 [14:14:27]MH_I2C_Read... [14:14:27]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 39 33 39 90 00 6C [14:14:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:14:27]wFMCommunicate OK [14:14:27]requested_item fd.num is exist - process it [14:14:27]SAM_PROTO_GetFieldsCounters [14:14:27]wFMCommunicate request_size=4 [14:14:27]MH_SAM_APDU [14:14:27]CAPDU: 80 13 00 00 [14:14:27]Write to MH i2c: E2 08 00 98 00 80 13 00 00 00 00 00 00 14 [14:14:27]Write i2c OK [14:14:27]MH_I2C_Read... [14:14:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:27]Read from MH i2c: E2 [14:14:27]MH_I2C_Read... [14:14:27]Read from MH i2c: E2 62 00 [14:14:27]MH_I2C_Read... [14:14:27]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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DE CE 01 00 0E 04 04 00 B1 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 83 [14:14:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DE CE 01 00 0E 04 04 00 B1 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 [14:14:27]wFMCommunicate OK [14:14:27]SAM_PROTO_GetFieldsCounters done [14:14:27]requested_item shift.num is exist - process it [14:14:27]requested_item shift.opened is exist - process it [14:14:27]req_shift_opened [14:14:27]FM_GetShiftState [14:14:27]SAM_PROTO_GetShiftState [14:14:27]wFMCommunicate request_size=4 [14:14:27]MH_SAM_APDU [14:14:27]CAPDU: 80 13 01 00 [14:14:27]Write to MH i2c: E2 08 00 99 00 80 13 01 00 00 00 00 00 16 [14:14:27]Write i2c OK [14:14:27]MH_I2C_Read... [14:14:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:27]Read from MH i2c: E2 [14:14:27]MH_I2C_Read... [14:14:27]Read from MH i2c: E2 0E 00 [14:14:27]MH_I2C_Read... [14:14:27]Read from MH i2c: E2 0E 00 99 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 ED [14:14:27]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [14:14:27]wFMCommunicate OK [14:14:27]SAM_PROTO_GetShiftState done [14:14:27]FM_GetShiftState done [14:14:27]req_shift_opened done [14:14:27]requested_item shift.open_date is exist - process it [14:14:27]req_shift_open_date [14:14:27]req_shift_open_date done [14:14:27]produce_requested_data done [14:14:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118494,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [14:14:27]process_action_free close_receipt [14:14:27]json_value_free [14:14:27]json_value_free done [14:14:27]process_json_proto returns [14:14:27]Send response to host [14:14:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118494,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [14:14:27]free response buf [14:14:27]execute_script done [14:14:27]execute_script returns [14:14:27]free content buf [14:14:27]Sock 7.Close socket [14:14:27]Sock 7.Thread stoped [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:16]OFD Sender: No OFD packet to send [14:16:21]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:41]OFD Sender: No OFD packet to send [14:16:43]int [14:16:43]Write to MH i2c: 01 00 00 9A 00 9A [14:16:43]*** FLAG_PRN_PAP1 set [14:16:43]Write i2c OK [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: 01 [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: 01 07 00 [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: 01 07 00 9A 00 00 01 00 00 00 FF 0F B0 [14:16:43]state=0 [14:16:43]No paper [14:16:43]int line is 0 - check status [14:16:43]Write to MH i2c: 01 00 00 9B 00 9B [14:16:43]*** FLAG_PRN_PAP1 reset [14:16:43]Write i2c OK [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: 01 [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: 01 07 00 [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: 01 07 00 9B 00 00 00 00 00 00 FF 0F B0 [14:16:43]state=0 [14:16:43]int [14:16:43]Write to MH i2c: 01 00 00 9C 00 9C [14:16:43]*** FLAG_PRN_PAP1 set [14:16:43]Write i2c OK [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: 01 [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: 01 07 00 [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: 01 07 00 9C 00 00 01 00 00 00 FF 0F B2 [14:16:43]state=0 [14:16:43]No paper [14:16:43]int [14:16:43]Write to MH i2c: 01 00 00 9D 00 9D [14:16:43]*** FLAG_PRN_PAP2 set [14:16:43]Write i2c OK [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: 01 [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: 01 07 00 [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: 01 07 00 9D 00 00 03 00 00 00 FF 0F B5 [14:16:43]state=0 [14:16:43]No paper [14:16:43]Cover opened [14:16:43]int [14:16:43]Write to MH i2c: 01 00 00 9E 00 9E [14:16:43]*** FLAG_PRN_PAP2 reset [14:16:43]Write i2c OK [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: 01 [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: 01 07 00 [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: 01 07 00 9E 00 00 01 00 00 00 FF 0F B4 [14:16:43]state=3 [14:16:43]No paper [14:16:43]Cover closed [14:16:43]int [14:16:43]Write to MH i2c: 01 00 00 9F 00 9F [14:16:43]*** FLAG_PRN_PAP2 set [14:16:43]Write i2c OK [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: 01 [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: 01 07 00 [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: 01 07 00 9F 00 00 03 00 00 00 FF 0F B7 [14:16:43]state=0 [14:16:43]No paper [14:16:43]Cover opened [14:16:46]OFD Sender: No OFD packet to send [14:16:48]Write to MH i2c: 01 00 00 A0 00 A0 [14:16:48]Write i2c OK [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: 01 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: 01 07 00 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: 01 07 00 A0 00 00 03 00 00 00 FF 0F B8 [14:16:48]state=3 [14:16:48]No paper [14:16:48]Cover opened [14:16:50]int [14:16:50]Write to MH i2c: 01 00 00 A1 00 A1 [14:16:50]*** FLAG_PRN_PAP2 reset [14:16:50]Write i2c OK [14:16:50]MH_I2C_Read... [14:16:50]Read from MH i2c: 01 [14:16:50]MH_I2C_Read... [14:16:50]Read from MH i2c: 01 07 00 [14:16:50]MH_I2C_Read... [14:16:50]Read from MH i2c: 01 07 00 A1 00 00 01 00 00 00 FF 0F B7 [14:16:50]state=3 [14:16:50]No paper [14:16:50]Cover closed [14:16:50]*** FLAG_PRN_PAP1 reset [14:16:51]OFD Sender: No OFD packet to send [14:16:55]int line is 0 - check status [14:16:55]Write to MH i2c: 01 00 00 A2 00 A2 [14:16:55]Write i2c OK [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: 01 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: 01 07 00 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: 01 07 00 A2 00 00 00 00 00 00 FF 0F B7 [14:16:55]state=0 [14:16:56]OFD Sender: No OFD packet to send [14:16:57]accept exits with 9 [14:16:57]New connection [14:16:57]New thread 3066826084 created [14:16:57]Thread 3066682724 joined [14:16:57]Waiting for new connection... [14:16:57] Sock 9.Parse request [14:16:57]Sock 9.Check first char [14:16:57]Sock 9.First char is OK [14:16:57]request: POST /json_proto HTTP/1.0 [14:16:57]Method: POST [14:16:57]URL: /json_proto [14:16:57]Method is POST - this is cgi request [14:16:57]url: /json_proto [14:16:57]query_string will be loaded in cgi processing [14:16:57]execute_cgi json_proto POST (null) [14:16:57]execute_cgi path=json_proto method=POST [14:16:57]POST find Content-Length [14:16:57]Host: 172.17.45.7:8080 [14:16:57]Content-Length: 674 [14:16:57]Content-Type: application/json [14:16:57] [14:16:57]POST finish read [14:16:57]Found Content-Length = 674 [14:16:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:57]execute_script... [14:16: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)949365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:57]POST & json_proto [14:16:57]process_json_proto [14:16:57]json parsed OK: [14:16:57]protocol is kg_v1.0 [14:16:57]action value=close_receipt [14:16:57]process_action close_receipt [14:16:57]cmd_close_receipt [14:16:57]MH_GetDate [14:16:57]Write to MH i2c: F0 00 00 A3 00 92 [14:16:57]Write i2c OK [14:16:57]MH_I2C_Read... [14:16:57]Read from MH i2c: F0 [14:16:57]MH_I2C_Read... [14:16:57]Read from MH i2c: F0 09 00 [14:16:57]MH_I2C_Read... [14:16:57]Read from MH i2c: F0 09 00 A3 00 00 D9 52 A6 66 90 0F 3E 66 15 [14:16:57]GetLastDocTimeStamp 1722176063 [14:16:57]current date 1722176217 [14:16:57]FM_GetShiftState [14:16:57]SAM_PROTO_GetShiftState [14:16:57]wFMCommunicate request_size=4 [14:16:57]MH_SAM_APDU [14:16:57]CAPDU: 80 13 01 00 [14:16:57]Write to MH i2c: E2 08 00 A4 00 80 13 01 00 00 00 00 00 21 [14:16:57]Write i2c OK [14:16:57]MH_I2C_Read... [14:16:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:57]Read from MH i2c: E2 [14:16:57]MH_I2C_Read... [14:16:57]Read from MH i2c: E2 0E 00 [14:16:57]MH_I2C_Read... [14:16:57]Read from MH i2c: E2 0E 00 A4 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 F8 [14:16:57]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [14:16:57]wFMCommunicate OK [14:16:57]SAM_PROTO_GetShiftState done [14:16:57]FM_GetShiftState done [14:16:57]opened in 1722125364 [14:16:57]opened+sec_in_day 1722211764 [14:16:57]quantity*price = 50063 [14:16:57]sum+1 = 50064 [14:16:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 164 28.07.2024 14:16 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118495 ФПД: 208861459286252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T141657&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118495&fm=208861459286252&tin=02508201610067®Number=0000000000092660&sum=50000 [14:16:58]StoreToDocumentArchive [14:16:58]shift 433 fd 118495 [14:16:58]save to /storage/0433/doc_00118495 [14:16:58]save last doc name /storage/0433/doc_00118495 to /storage/kkm_last_doc_name [14:16:58]save OK [14:16:58]Clear old archive folders... [14:16:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:16:58]tlvbuf is 01ACEAB0 [14:16:58]SAM_PROTO_ClearQueue [14:16:58]wFMCommunicate request_size=4 [14:16:58]MH_SAM_APDU [14:16:58]CAPDU: 80 09 00 00 [14:16:58]Write to MH i2c: E2 08 00 B1 00 80 09 00 00 00 00 00 00 23 [14:16:58]Write i2c OK [14:16:58]MH_I2C_Read... [14:16:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:58]Read from MH i2c: E2 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 03 00 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 03 00 B1 00 00 90 00 25 [14:16:58]RAPDU: 90 00 [14:16:58]wFMCommunicate OK [14:16:58]SAM_PROTO_ClearQueue done [14:16:58]KKMCreateOFDPacket [14:16:58]OFDProtocolAddRootSTLVToBuf [14:16:58]FM_MakeSignedData [14:16:58]FM_MakeSignedData [14:16:58]SAM_PROTO_SignData [14:16:58]wFMCommunicate request_size=4 [14:16:58]MH_SAM_APDU [14:16:58]CAPDU: 80 0D 01 02 [14:16:58]Write to MH i2c: E2 08 00 B2 00 80 0D 01 02 00 00 00 00 2B [14:16:58]Write i2c OK [14:16:58]MH_I2C_Read... [14:16:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:58]Read from MH i2c: E2 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 03 00 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 03 00 B2 00 00 90 00 26 [14:16:58]RAPDU: 90 00 [14:16:58]wFMCommunicate OK [14:16:58]wFMCommunicate request_size=255 [14:16:58]MH_SAM_APDU [14:16:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 D9 52 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DF CE 01 00 35 04 06 00 BD F5 59 16 [14:16:58]Write to MH i2c: E2 02 01 B3 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 D9 52 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DF CE 01 00 35 04 06 00 BD F5 59 16 00 00 9F [14:16:58]Write i2c OK [14:16:58]MH_I2C_Read... [14:16:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:58]Read from MH i2c: E2 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 03 00 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 03 00 B3 00 00 90 00 27 [14:16:58]RAPDU: 90 00 [14:16:58]wFMCommunicate OK [14:16:58]wFMCommunicate request_size=7 [14:16:58]MH_SAM_APDU [14:16:58]CAPDU: 80 0D 02 02 02 88 EC [14:16:58]Write to MH i2c: E2 0A 00 B4 00 80 0D 02 02 02 00 88 EC 00 00 A6 [14:16:58]Write i2c OK [14:16:58]MH_I2C_Read... [14:16:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:58]Read from MH i2c: E2 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 03 00 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [14:16:58]RAPDU: 90 00 [14:16:58]wFMCommunicate OK [14:16:58]wFMCommunicate request_size=4 [14:16:58]MH_SAM_APDU [14:16:58]CAPDU: 80 0D 03 02 [14:16:58]Write to MH i2c: E2 08 00 B5 00 80 0D 03 02 00 00 00 00 30 [14:16:58]Write i2c OK [14:16:58]MH_I2C_Read... [14:16:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:58]Read from MH i2c: E2 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 0B 00 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 0B 00 B5 00 00 34 8D E1 B9 64 2C 8E C8 90 00 72 [14:16:58]RAPDU: 34 8D E1 B9 64 2C 8E C8 90 00 [14:16:58]wFMCommunicate OK [14:16:58]SAM_PROTO_SignData done [14:16:58]FM_MakeSignedData done [14:16:58]CreateOFDProtocolMessage [14:16:58]wFMCommunicate request_size=4 [14:16:58]MH_SAM_APDU [14:16:58]CAPDU: 80 11 00 00 [14:16:58]Write to MH i2c: E2 08 00 B6 00 80 11 00 00 00 00 00 00 30 [14:16:58]Write i2c OK [14:16:58]MH_I2C_Read... [14:16:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:58]Read from MH i2c: E2 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 17 00 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 17 00 B6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8B [14:16:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:16:58]wFMCommunicate OK [14:16:58]CreateOFDProtocolMessage done [14:16:58]OFDSenderStorePacket 118495 [14:16:58]StoreOFDPacket docnum=118495 [14:16:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 06 1A 04 01 51 F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 D9 52 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DF CE 01 00 35 04 06 00 BD F5 59 16 88 EC 34 8D E1 B9 64 2C 8E C8 [14:16:58]CheckFolder [14:16:58]dirname=/storage/ofd_packets [14:16:58]CheckFolder done [14:16:58]ProducePacketName [14:16:58]name=ofd_packets/00118495 [14:16:58]NVStorageSaveData ofd_packets/00118495 [14:16:58]File name is /storage/ofd_packets/00118495 [14:16:58]Write 298 bytes [14:16:58]NVStorageSaveData done [14:16:58]OFDSenderStorePacket done [14:16:58]KKMCreateOFDPacket done [14:16:58]NVStorageSaveData kkm_last_timestamp [14:16:58]File name is /storage/kkm_last_timestamp [14:16:58]Write 4 bytes [14:16:58]NVStorageSaveData done [14:16:58]ExternCall_PrintAddStr [14:16:58]wPrintStart [14:16:58]Write to MH i2c: 01 00 00 B7 00 B7 [14:16:58]Write i2c OK [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: 01 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: 01 07 00 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: 01 07 00 B7 00 00 00 00 00 00 FF 0F CC [14:16:58]RasterBufferAndPrint [14:16:58]line Счет N : (1)949365 [14:16:58]line ИНН: 02508201610067 [14:16:58]line Контрольно-Кассовый Чек [14:16:58]line ПРОДАЖА [14:16:58]line ТРК (МРК, ГНК) : 54 [14:16:58]line Товар: 2710194800 [14:16:58]line ДТ-К-5 [14:16:58]line 6.570 * 76.20 [14:16:58]line = 500.63 [14:16:58]line НДС 12% НСП 1% [14:16:58]line > о реализуемом товаре [14:16:58]line ОКРУГЛЕНИЕ: -0.63 [14:16:58]line ИТОГО: 500.00 [14:16:58]line Внесено: 500.00 [14:16:58]line СДАЧА: 0.00 [14:16:58]line НСП 1% : 4.43 [14:16:58]line НДС 12% : 53.16 [14:16:58]line Наличными: 500.00 [14:16:58]line Безнал.: 0.00 [14:16:58]line Место: АЗС № 134 "Партнер Нефть" [14:16:58]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:16:58]line СНО: Общий режим [14:16:58]line Чек 164 28.07.2024 14:16 [14:16:58]line Смена: 433 ФФД: 1.0 [14:16:58]line ЗНМ: 0300000044 [14:16:58]line РНМ: 0000000000092660 [14:16:58]line Версия ККМ: 001 [14:16:58]line ФМ: 0000000000874939 [14:16:58]line ФД: 118495 [14:16:58]line ФПД: 208861459286252 [14:16:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T141657&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118495&fm=208861459286252&tin=02508201610067®Number=0000000000092660&sum=50000 [14:16:59]OFD Sender: Processing packet 118495 [packets to send 86, broken 85] [14:16:59]ProducePacketName [14:16:59]name=ofd_packets/00118495 [14:16:59]OFD Sender: To server: pG, [14:16:59]CommunicateWithHost lk.salyk.kg:30040 [14:16:59]ConnectInit lk.salyk.kg [14:16:59]written 0, free lines is 4095 [14:16:59]Connected sock=10 [14:16:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 06 1A 04 01 51 F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 D9 52 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DF CE 01 00 35 04 06 00 BD F5 59 16 88 EC 34 8D E1 B9 64 2C 8E C8 [14:16:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 51 35 47 00 46 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 39 33 39 10 04 04 00 DF CE 01 00 F4 03 04 00 69 00 A6 66 B6 04 01 00 00 C5 10 4E FC C9 B5 1E F3 [14:16:59]CommunicateWithHost err = 0 [14:16:59]CheckOFDResponse [14:16:59]1017 (14) - 77093643461234 [14:16:59]1041 (16) - 0000000000874939 [14:16:59]1040 (4) - 118495 [14:16:59]1012 (4) - 28.07.2024 08:25 [14:16:59]1206 (1) - 0 [14:16:59]OFD Sender: Remove packet 118495 [14:16:59]ProducePacketName [14:16:59]name=ofd_packets/00118495 [14:16:59]NVStorageDeleteData [14:16:59]Write to MH i2c: 01 00 00 E1 00 E1 [14:16:59]Write i2c OK [14:16:59]MH_I2C_Read... [14:16:59]Read from MH i2c: 01 [14:16:59]MH_I2C_Read... [14:16:59]Read from MH i2c: 01 07 00 [14:16:59]MH_I2C_Read... [14:16:59]Read from MH i2c: 01 07 00 E1 00 00 00 00 00 00 D3 0C C7 [14:16:59]RasterBufferAndPrint [14:16:59]line [14:16:59]line [14:16:59]line [14:16:59]line [14:16:59]line [14:16:59]written 0, free lines is 3289 [14:16:59]MH_Cut [14:16:59]Write to MH i2c: D1 01 00 E8 00 01 BA [14:16:59]Write i2c OK [14:16:59]MH_I2C_Read... [14:16:59]Read from MH i2c: D1 [14:16:59]MH_I2C_Read... [14:16:59]Read from MH i2c: D1 01 00 [14:16:59]MH_I2C_Read... [14:16:59]Read from MH i2c: D1 01 00 E8 00 00 B9 [14:16:59]Write to MH i2c: 01 00 00 E9 00 E9 [14:16:59]Write i2c OK [14:16:59]MH_I2C_Read... [14:16:59]OFD Sender: No OFD packet to send [14:17:00]*** Cut start [14:17:00]*** Partial cut [14:17:00]*** CUTSNS_PIN = 1 [14:17:00]*** CUTSNS_PIN = 0 [14:17:00]*** Brake cut motor [14:17:00]Read from MH i2c: 01 [14:17:00]MH_I2C_Read... [14:17:00]*** Stop cut motor [14:17:00]*** Cut end [14:17:00]Read from MH i2c: 01 07 00 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: 01 07 00 E9 00 00 00 00 00 00 FF 0F FE [14:17:00]process_action close_receipt done [14:17:00]requested_data is exist [14:17:00]produce_requested_data [14:17:00]requested_item fm.sn is exist - process it [14:17:00]wFMCommunicate request_size=4 [14:17:00]MH_SAM_APDU [14:17:00]CAPDU: 80 11 00 00 [14:17:00]Write to MH i2c: E2 08 00 EA 00 80 11 00 00 00 00 00 00 64 [14:17:00]Write i2c OK [14:17:00]MH_I2C_Read... [14:17:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:00]Read from MH i2c: E2 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: E2 17 00 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: E2 17 00 EA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BF [14:17:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:17:00]wFMCommunicate OK [14:17:00]requested_item fd.num is exist - process it [14:17:00]SAM_PROTO_GetFieldsCounters [14:17:00]wFMCommunicate request_size=4 [14:17:00]MH_SAM_APDU [14:17:00]CAPDU: 80 13 00 00 [14:17:01]Write to MH i2c: E2 08 00 EB 00 80 13 00 00 00 00 00 00 67 [14:17:01]Write i2c OK [14:17:01]MH_I2C_Read... [14:17:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:01]Read from MH i2c: E2 [14:17:01]MH_I2C_Read... [14:17:01]Read from MH i2c: E2 62 00 [14:17:01]MH_I2C_Read... [14:17:01]Read from MH i2c: E2 62 00 EB 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DF CE 01 00 0E 04 04 00 B1 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 DA [14:17:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DF CE 01 00 0E 04 04 00 B1 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 [14:17:01]wFMCommunicate OK [14:17:01]SAM_PROTO_GetFieldsCounters done [14:17:01]requested_item shift.num is exist - process it [14:17:01]requested_item shift.opened is exist - process it [14:17:01]req_shift_opened [14:17:01]FM_GetShiftState [14:17:01]SAM_PROTO_GetShiftState [14:17:01]wFMCommunicate request_size=4 [14:17:01]MH_SAM_APDU [14:17:01]CAPDU: 80 13 01 00 [14:17:01]Write to MH i2c: E2 08 00 EC 00 80 13 01 00 00 00 00 00 69 [14:17:01]Write i2c OK [14:17:01]MH_I2C_Read... [14:17:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:01]Read from MH i2c: E2 [14:17:01]MH_I2C_Read... [14:17:01]Read from MH i2c: E2 0E 00 [14:17:01]MH_I2C_Read... [14:17:01]Read from MH i2c: E2 0E 00 EC 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 40 [14:17:01]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [14:17:01]wFMCommunicate OK [14:17:01]SAM_PROTO_GetShiftState done [14:17:01]FM_GetShiftState done [14:17:01]req_shift_opened done [14:17:01]requested_item shift.open_date is exist - process it [14:17:01]req_shift_open_date [14:17:01]req_shift_open_date done [14:17:01]produce_requested_data done [14:17:01]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118495,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [14:17:01]process_action_free close_receipt [14:17:01]json_value_free [14:17:01]json_value_free done [14:17:01]process_json_proto returns [14:17:01]Send response to host [14:17:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118495,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [14:17:01]free response buf [14:17:01]execute_script done [14:17:01]execute_script returns [14:17:01]free content buf [14:17:01]Sock 9.Close socket [14:17:01]Sock 9.Thread stoped [14:17:04]OFD Sender: No OFD packet to send [14:17:09]OFD Sender: No OFD packet to send [14:17:14]OFD Sender: No OFD packet to send [14:17:19]OFD Sender: No OFD packet to send [14:17:24]OFD Sender: No OFD packet to send [14:17:29]OFD Sender: No OFD packet to send [14:17:34]OFD Sender: No OFD packet to send [14:17:40]OFD Sender: No OFD packet to send [14:17:45]OFD Sender: No OFD packet to send [14:17:50]OFD Sender: No OFD packet to send [14:17:55]OFD Sender: No OFD packet to send [14:18:00]OFD Sender: No OFD packet to send [14:18:05]OFD Sender: No OFD packet to send [14:18:10]OFD Sender: No OFD packet to send [14:18:15]OFD Sender: No OFD packet to send [14:18:20]OFD Sender: No OFD packet to send [14:18:25]OFD Sender: No OFD packet to send [14:18:30]OFD Sender: No OFD packet to send [14:18:35]OFD Sender: No OFD packet to send [14:18:40]OFD Sender: No OFD packet to send [14:18:45]OFD Sender: No OFD packet to send [14:18:50]OFD Sender: No OFD packet to send [14:18:55]OFD Sender: No OFD packet to send [14:19:00]OFD Sender: No OFD packet to send [14:19:05]OFD Sender: No OFD packet to send [14:19:10]OFD Sender: No OFD packet to send [14:19:15]OFD Sender: No OFD packet to send [14:19:20]OFD Sender: No OFD packet to send [14:19:25]OFD Sender: No OFD packet to send [14:19:30]OFD Sender: No OFD packet to send [14:19:35]OFD Sender: No OFD packet to send [14:19:40]OFD Sender: No OFD packet to send [14:19:45]OFD Sender: No OFD packet to send [14:19:50]OFD Sender: No OFD packet to send [14:19:55]OFD Sender: No OFD packet to send [14:20:00]OFD Sender: No OFD packet to send [14:20:05]OFD Sender: No OFD packet to send [14:20:10]OFD Sender: No OFD packet to send [14:20:15]OFD Sender: No OFD packet to send [14:20:20]OFD Sender: No OFD packet to send [14:20:25]OFD Sender: No OFD packet to send [14:20:30]OFD Sender: No OFD packet to send [14:23:18]ConnectInit Can't connect to host [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:42]OFD Sender: No OFD packet to send [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:34]accept exits with 9 [14:24:34]New connection [14:24:34]New thread 3067383140 created [14:24:34]Thread 3067239780 joined [14:24:34]Waiting for new connection... [14:24:34] Sock 9.Parse request [14:24:34]Sock 9.Check first char [14:24:34]Sock 9.First char is OK [14:24:34]request: POST /json_proto HTTP/1.0 [14:24:34]Method: POST [14:24:34]URL: /json_proto [14:24:34]Method is POST - this is cgi request [14:24:34]url: /json_proto [14:24:34]query_string will be loaded in cgi processing [14:24:34]execute_cgi json_proto POST (null) [14:24:34]execute_cgi path=json_proto method=POST [14:24:34]POST find Content-Length [14:24:34]Host: 172.17.45.7:8080 [14:24:34]Content-Length: 819 [14:24:34]Content-Type: application/json [14:24:34] [14:24:34]POST finish read [14:24:34]Found Content-Length = 819 [14:24:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:34]execute_script... [14:24: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)949367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:34]POST & json_proto [14:24:34]process_json_proto [14:24:34]json parsed OK: [14:24:34]protocol is kg_v1.0 [14:24:34]action value=close_receipt [14:24:34]process_action close_receipt [14:24:34]cmd_close_receipt [14:24:34]MH_GetDate [14:24:34]Write to MH i2c: F0 00 00 1D 00 0C [14:24:34]Write i2c OK [14:24:34]MH_I2C_Read... [14:24:34]Read from MH i2c: F0 [14:24:34]MH_I2C_Read... [14:24:34]Read from MH i2c: F0 09 00 [14:24:34]MH_I2C_Read... [14:24:34]Read from MH i2c: F0 09 00 1D 00 00 A3 54 A6 66 90 0F 3E 66 5B [14:24:34]GetLastDocTimeStamp 1722176217 [14:24:34]current date 1722176675 [14:24:34]FM_GetShiftState [14:24:34]SAM_PROTO_GetShiftState [14:24:34]wFMCommunicate request_size=4 [14:24:34]MH_SAM_APDU [14:24:34]CAPDU: 80 13 01 00 [14:24:34]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [14:24:34]Write i2c OK [14:24:34]MH_I2C_Read... [14:24:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:35]Read from MH i2c: E2 [14:24:35]MH_I2C_Read... [14:24:35]Read from MH i2c: E2 0E 00 [14:24:35]MH_I2C_Read... [14:24:35]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 72 [14:24:35]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [14:24:35]wFMCommunicate OK [14:24:35]SAM_PROTO_GetShiftState done [14:24:35]FM_GetShiftState done [14:24:35]opened in 1722125364 [14:24:35]opened+sec_in_day 1722211764 [14:24:35]quantity*price = 200025 [14:24:35]sum+1 = 200026 [14:24:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 165 28.07.2024 14:24 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118496 ФПД: 249959907663615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T142435&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118496&fm=249959907663615&tin=02508201610067®Number=0000000000092660&sum=200000 [14:24:36]StoreToDocumentArchive [14:24:36]shift 433 fd 118496 [14:24:36]save to /storage/0433/doc_00118496 [14:24:36]save last doc name /storage/0433/doc_00118496 to /storage/kkm_last_doc_name [14:24:36]save OK [14:24:36]Clear old archive folders... [14:24:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:24:36]tlvbuf is 01E58CB0 [14:24:36]SAM_PROTO_ClearQueue [14:24:36]wFMCommunicate request_size=4 [14:24:36]MH_SAM_APDU [14:24:36]CAPDU: 80 09 00 00 [14:24:36]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [14:24:36]Write i2c OK [14:24:36]MH_I2C_Read... [14:24:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:36]Read from MH i2c: E2 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 03 00 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [14:24:36]RAPDU: 90 00 [14:24:36]wFMCommunicate OK [14:24:36]SAM_PROTO_ClearQueue done [14:24:36]KKMCreateOFDPacket [14:24:36]OFDProtocolAddRootSTLVToBuf [14:24:36]FM_MakeSignedData [14:24:36]FM_MakeSignedData [14:24:36]SAM_PROTO_SignData [14:24:36]wFMCommunicate request_size=4 [14:24:36]MH_SAM_APDU [14:24:36]CAPDU: 80 0D 01 02 [14:24:36]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [14:24:36]Write i2c OK [14:24:36]MH_I2C_Read... [14:24:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:36]Read from MH i2c: E2 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 03 00 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [14:24:36]RAPDU: 90 00 [14:24:36]wFMCommunicate OK [14:24:36]wFMCommunicate request_size=255 [14:24:36]MH_SAM_APDU [14:24:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 A3 54 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E0 CE 01 00 35 04 06 00 E3 56 53 81 [14:24:36]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 A3 54 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E0 CE 01 00 35 04 06 00 E3 56 53 81 00 00 39 [14:24:36]Write i2c OK [14:24:36]MH_I2C_Read... [14:24:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:36]Read from MH i2c: E2 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 03 00 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [14:24:36]RAPDU: 90 00 [14:24:36]wFMCommunicate OK [14:24:36]wFMCommunicate request_size=7 [14:24:36]MH_SAM_APDU [14:24:36]CAPDU: 80 0D 02 02 02 1E FF [14:24:36]Write to MH i2c: E2 0A 00 2E 00 80 0D 02 02 02 00 1E FF 00 00 C9 [14:24:36]Write i2c OK [14:24:36]MH_I2C_Read... [14:24:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:36]Read from MH i2c: E2 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 03 00 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [14:24:36]RAPDU: 90 00 [14:24:36]wFMCommunicate OK [14:24:36]wFMCommunicate request_size=4 [14:24:36]MH_SAM_APDU [14:24:36]CAPDU: 80 0D 03 02 [14:24:36]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [14:24:36]Write i2c OK [14:24:36]MH_I2C_Read... [14:24:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:36]Read from MH i2c: E2 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 0B 00 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 0B 00 2F 00 00 24 36 CF 79 3A F2 67 C2 90 00 A2 [14:24:36]RAPDU: 24 36 CF 79 3A F2 67 C2 90 00 [14:24:36]wFMCommunicate OK [14:24:36]SAM_PROTO_SignData done [14:24:36]FM_MakeSignedData done [14:24:36]CreateOFDProtocolMessage [14:24:36]wFMCommunicate request_size=4 [14:24:36]MH_SAM_APDU [14:24:36]CAPDU: 80 11 00 00 [14:24:36]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [14:24:36]Write i2c OK [14:24:36]MH_I2C_Read... [14:24:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:36]Read from MH i2c: E2 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 17 00 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 05 [14:24:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:24:36]wFMCommunicate OK [14:24:36]CreateOFDProtocolMessage done [14:24:36]OFDSenderStorePacket 118496 [14:24:36]StoreOFDPacket docnum=118496 [14:24:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 45 96 04 01 21 C6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 A3 54 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E0 CE 01 00 35 04 06 00 E3 56 53 81 1E FF 24 36 CF 79 3A F2 67 C2 [14:24:36]CheckFolder [14:24:36]dirname=/storage/ofd_packets [14:24:36]CheckFolder done [14:24:36]ProducePacketName [14:24:36]name=ofd_packets/00118496 [14:24:36]NVStorageSaveData ofd_packets/00118496 [14:24:36]File name is /storage/ofd_packets/00118496 [14:24:36]Write 298 bytes [14:24:36]NVStorageSaveData done [14:24:36]OFDSenderStorePacket done [14:24:36]KKMCreateOFDPacket done [14:24:36]NVStorageSaveData kkm_last_timestamp [14:24:36]File name is /storage/kkm_last_timestamp [14:24:36]Write 4 bytes [14:24:36]NVStorageSaveData done [14:24:36]ExternCall_PrintAddStr [14:24:36]wPrintStart [14:24:36]Write to MH i2c: 01 00 00 31 00 31 [14:24:36]Write i2c OK [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: 01 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: 01 07 00 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [14:24:36]RasterBufferAndPrint [14:24:36]line Счет N : (1)949367 [14:24:36]line ИНН: 02508201610067 [14:24:36]line Контрольно-Кассовый Чек [14:24:36]line ПРОДАЖА [14:24:36]line ТРК (МРК, ГНК) : 54 [14:24:36]line Товар: 2710194800 [14:24:36]line ДТ-К-5 [14:24:36]line 26.250 * 76.20 [14:24:36]line = 2000.25 [14:24:36]line НДС 12% НСП 1% [14:24:36]line > о реализуемом товаре [14:24:36]line ОКРУГЛЕНИЕ: -0.25 [14:24:36]line ИТОГО: 2000.00 [14:24:36]line НСП 1% : 17.70 [14:24:36]line НДС 12% : 212.42 [14:24:36]line Наличными: 0.00 [14:24:36]line Безнал.: 2000.00 [14:24:36]line Место: АЗС № 134 "Партнер Нефть" [14:24:36]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:24:36]line СНО: Общий режим [14:24:36]line Чек 165 28.07.2024 14:24 [14:24:36]line Смена: 433 ФФД: 1.0 [14:24:36]line ЗНМ: 0300000044 [14:24:36]line РНМ: 0000000000092660 [14:24:36]line Версия ККМ: 001 [14:24:36]line Платежная система: O! деньги [14:24:36]line ФМ: 0000000000874939 [14:24:36]line ФД: 118496 [14:24:36]line ФПД: 249959907663615 [14:24:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T142435&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118496&fm=249959907663615&tin=02508201610067®Number=0000000000092660&sum=200000 [14:24:36]written 0, free lines is 4095 [14:24:36]OFD Sender: Processing packet 118496 [packets to send 86, broken 85] [14:24:36]ProducePacketName [14:24:36]name=ofd_packets/00118496 [14:24:36]OFD Sender: To server: pG, [14:24:36]CommunicateWithHost lk.salyk.kg:30040 [14:24:36]ConnectInit lk.salyk.kg [14:24:36]Connected sock=11 [14:24:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 45 96 04 01 21 C6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 A3 54 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E0 CE 01 00 35 04 06 00 E3 56 53 81 1E FF 24 36 CF 79 3A F2 67 C2 [14:24:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 63 97 47 00 10 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E0 CE 01 00 F4 03 04 00 33 02 A6 66 B6 04 01 00 00 AD 1A A7 00 B7 79 38 03 [14:24:37]CommunicateWithHost err = 0 [14:24:37]CheckOFDResponse [14:24:37]1017 (14) - 77093643461234 [14:24:37]1041 (16) - 0000000000874939 [14:24:37]1040 (4) - 118496 [14:24:37]1012 (4) - 28.07.2024 08:32 [14:24:37]1206 (1) - 0 [14:24:37]OFD Sender: Remove packet 118496 [14:24:37]ProducePacketName [14:24:37]name=ofd_packets/00118496 [14:24:37]NVStorageDeleteData [14:24:37]Write to MH i2c: 01 00 00 5B 00 5B [14:24:37]Write i2c OK [14:24:37]MH_I2C_Read... [14:24:37]Read from MH i2c: 01 [14:24:37]MH_I2C_Read... [14:24:37]Read from MH i2c: 01 07 00 [14:24:37]MH_I2C_Read... [14:24:37]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 DD 0C 4B [14:24:37]RasterBufferAndPrint [14:24:37]line [14:24:37]line [14:24:37]line [14:24:37]line [14:24:37]line [14:24:37]written 0, free lines is 3298 [14:24:37]MH_Cut [14:24:37]Write to MH i2c: D1 01 00 62 00 01 34 [14:24:37]Write i2c OK [14:24:37]MH_I2C_Read... [14:24:37]Read from MH i2c: D1 [14:24:37]MH_I2C_Read... [14:24:37]Read from MH i2c: D1 01 00 [14:24:37]MH_I2C_Read... [14:24:37]Read from MH i2c: D1 01 00 62 00 00 33 [14:24:37]Write to MH i2c: 01 00 00 63 00 63 [14:24:37]Write i2c OK [14:24:37]MH_I2C_Read... [14:24:37]OFD Sender: No OFD packet to send [14:24:37]*** Cut start [14:24:37]*** Partial cut [14:24:37]*** CUTSNS_PIN = 1 [14:24:37]*** CUTSNS_PIN = 0 [14:24:38]*** Brake cut motor [14:24:38]Read from MH i2c: 01 [14:24:38]MH_I2C_Read... [14:24:38]*** Stop cut motor [14:24:38]*** Cut end [14:24:38]Read from MH i2c: 01 07 00 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [14:24:38]process_action close_receipt done [14:24:38]requested_data is exist [14:24:38]produce_requested_data [14:24:38]requested_item fm.sn is exist - process it [14:24:38]wFMCommunicate request_size=4 [14:24:38]MH_SAM_APDU [14:24:38]CAPDU: 80 11 00 00 [14:24:38]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [14:24:38]Write i2c OK [14:24:38]MH_I2C_Read... [14:24:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:38]Read from MH i2c: E2 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 17 00 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 39 [14:24:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:24:38]wFMCommunicate OK [14:24:38]requested_item fd.num is exist - process it [14:24:38]SAM_PROTO_GetFieldsCounters [14:24:38]wFMCommunicate request_size=4 [14:24:38]MH_SAM_APDU [14:24:38]CAPDU: 80 13 00 00 [14:24:38]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [14:24:38]Write i2c OK [14:24:38]MH_I2C_Read... [14:24:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:38]Read from MH i2c: E2 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 62 00 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 62 00 65 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E0 CE 01 00 0E 04 04 00 B1 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 58 [14:24:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E0 CE 01 00 0E 04 04 00 B1 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 [14:24:38]wFMCommunicate OK [14:24:38]SAM_PROTO_GetFieldsCounters done [14:24:38]requested_item shift.num is exist - process it [14:24:38]requested_item shift.opened is exist - process it [14:24:38]req_shift_opened [14:24:38]FM_GetShiftState [14:24:38]SAM_PROTO_GetShiftState [14:24:38]wFMCommunicate request_size=4 [14:24:38]MH_SAM_APDU [14:24:38]CAPDU: 80 13 01 00 [14:24:38]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [14:24:38]Write i2c OK [14:24:38]MH_I2C_Read... [14:24:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:38]Read from MH i2c: E2 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 0E 00 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 BA [14:24:38]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [14:24:38]wFMCommunicate OK [14:24:38]SAM_PROTO_GetShiftState done [14:24:38]FM_GetShiftState done [14:24:38]req_shift_opened done [14:24:38]requested_item shift.open_date is exist - process it [14:24:38]req_shift_open_date [14:24:38]req_shift_open_date done [14:24:38]produce_requested_data done [14:24:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118496,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [14:24:38]process_action_free close_receipt [14:24:38]json_value_free [14:24:38]json_value_free done [14:24:38]process_json_proto returns [14:24:38]Send response to host [14:24:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118496,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [14:24:38]free response buf [14:24:38]execute_script done [14:24:38]execute_script returns [14:24:38]free content buf [14:24:38]Sock 9.Close socket [14:24:38]Sock 9.Thread stoped [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:24]accept exits with 7 [14:25:24]New connection [14:25:24]New thread 3067239780 created [14:25:24]Thread 3067383140 joined [14:25:24]Waiting for new connection... [14:25:24] Sock 7.Parse request [14:25:24]Sock 7.Check first char [14:25:24]Sock 7.First char is OK [14:25:24]request: POST /json_proto HTTP/1.0 [14:25:24]Method: POST [14:25:24]URL: /json_proto [14:25:24]Method is POST - this is cgi request [14:25:24]url: /json_proto [14:25:24]query_string will be loaded in cgi processing [14:25:24]execute_cgi json_proto POST (null) [14:25:24]execute_cgi path=json_proto method=POST [14:25:24]POST find Content-Length [14:25:24]Host: 172.17.45.7:8080 [14:25:24]Content-Length: 819 [14:25:24]Content-Type: application/json [14:25:24] [14:25:24]POST finish read [14:25:24]Found Content-Length = 819 [14:25:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:24]execute_script... [14:25: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)949368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:24]POST & json_proto [14:25:24]process_json_proto [14:25:24]json parsed OK: [14:25:24]protocol is kg_v1.0 [14:25:24]action value=close_receipt [14:25:24]process_action close_receipt [14:25:24]cmd_close_receipt [14:25:24]MH_GetDate [14:25:24]Write to MH i2c: F0 00 00 67 00 56 [14:25:24]Write i2c OK [14:25:24]MH_I2C_Read... [14:25:24]Read from MH i2c: F0 [14:25:24]MH_I2C_Read... [14:25:24]Read from MH i2c: F0 09 00 [14:25:24]MH_I2C_Read... [14:25:24]Read from MH i2c: F0 09 00 67 00 00 D5 54 A6 66 90 0F 3E 66 D7 [14:25:24]GetLastDocTimeStamp 1722176675 [14:25:24]current date 1722176725 [14:25:24]FM_GetShiftState [14:25:24]SAM_PROTO_GetShiftState [14:25:24]wFMCommunicate request_size=4 [14:25:24]MH_SAM_APDU [14:25:24]CAPDU: 80 13 01 00 [14:25:24]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [14:25:24]Write i2c OK [14:25:24]MH_I2C_Read... [14:25:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:24]Read from MH i2c: E2 [14:25:24]MH_I2C_Read... [14:25:24]Read from MH i2c: E2 0E 00 [14:25:24]MH_I2C_Read... [14:25:24]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 BC [14:25:24]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [14:25:24]wFMCommunicate OK [14:25:24]SAM_PROTO_GetShiftState done [14:25:24]FM_GetShiftState done [14:25:24]opened in 1722125364 [14:25:24]opened+sec_in_day 1722211764 [14:25:24]quantity*price = 300075 [14:25:24]sum+1 = 300077 [14:25:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 166 28.07.2024 14:25 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118497 ФПД: 269670131419627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T142525&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118497&fm=269670131419627&tin=02508201610067®Number=0000000000092660&sum=300000 [14:25:26]StoreToDocumentArchive [14:25:26]shift 433 fd 118497 [14:25:26]save to /storage/0433/doc_00118497 [14:25:26]save last doc name /storage/0433/doc_00118497 to /storage/kkm_last_doc_name [14:25:26]save OK [14:25:26]Clear old archive folders... [14:25:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:25:26]tlvbuf is 01E4F830 [14:25:26]SAM_PROTO_ClearQueue [14:25:26]wFMCommunicate request_size=4 [14:25:26]MH_SAM_APDU [14:25:26]CAPDU: 80 09 00 00 [14:25:26]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [14:25:26]Write i2c OK [14:25:26]MH_I2C_Read... [14:25:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:26]Read from MH i2c: E2 [14:25:26]MH_I2C_Read... [14:25:26]Read from MH i2c: E2 03 00 [14:25:26]MH_I2C_Read... [14:25:26]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [14:25:26]RAPDU: 90 00 [14:25:26]wFMCommunicate OK [14:25:26]SAM_PROTO_ClearQueue done [14:25:26]KKMCreateOFDPacket [14:25:26]OFDProtocolAddRootSTLVToBuf [14:25:26]FM_MakeSignedData [14:25:26]FM_MakeSignedData [14:25:26]SAM_PROTO_SignData [14:25:26]wFMCommunicate request_size=4 [14:25:26]MH_SAM_APDU [14:25:26]CAPDU: 80 0D 01 02 [14:25:26]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [14:25:26]Write i2c OK [14:25:26]MH_I2C_Read... [14:25:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:26]Read from MH i2c: E2 [14:25:26]MH_I2C_Read... [14:25:26]Read from MH i2c: E2 03 00 [14:25:26]MH_I2C_Read... [14:25:26]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [14:25:26]RAPDU: 90 00 [14:25:26]wFMCommunicate OK [14:25:26]wFMCommunicate request_size=255 [14:25:26]MH_SAM_APDU [14:25:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 D5 54 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E1 CE 01 00 35 04 06 00 F5 43 78 63 [14:25:26]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 D5 54 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E1 CE 01 00 35 04 06 00 F5 43 78 63 00 00 06 [14:25:26]Write i2c OK [14:25:26]MH_I2C_Read... [14:25:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:26]Read from MH i2c: E2 [14:25:26]MH_I2C_Read... [14:25:26]Read from MH i2c: E2 03 00 [14:25:26]MH_I2C_Read... [14:25:26]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [14:25:26]RAPDU: 90 00 [14:25:26]wFMCommunicate OK [14:25:26]wFMCommunicate request_size=7 [14:25:26]MH_SAM_APDU [14:25:26]CAPDU: 80 0D 02 02 02 C9 EB [14:25:26]Write to MH i2c: E2 0A 00 78 00 80 0D 02 02 02 00 C9 EB 00 00 AA [14:25:26]Write i2c OK [14:25:26]MH_I2C_Read... [14:25:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:26]Read from MH i2c: E2 [14:25:26]MH_I2C_Read... [14:25:26]Read from MH i2c: E2 03 00 [14:25:26]MH_I2C_Read... [14:25:26]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [14:25:26]RAPDU: 90 00 [14:25:26]wFMCommunicate OK [14:25:26]wFMCommunicate request_size=4 [14:25:26]MH_SAM_APDU [14:25:26]CAPDU: 80 0D 03 02 [14:25:26]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [14:25:26]Write i2c OK [14:25:26]MH_I2C_Read... [14:25:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:26]Read from MH i2c: E2 [14:25:26]MH_I2C_Read... [14:25:26]Read from MH i2c: E2 0B 00 [14:25:26]MH_I2C_Read... [14:25:26]Read from MH i2c: E2 0B 00 79 00 00 3B BC EF 90 6D 4B 8A 35 90 00 E2 [14:25:26]RAPDU: 3B BC EF 90 6D 4B 8A 35 90 00 [14:25:26]wFMCommunicate OK [14:25:26]SAM_PROTO_SignData done [14:25:26]FM_MakeSignedData done [14:25:26]CreateOFDProtocolMessage [14:25:26]wFMCommunicate request_size=4 [14:25:26]MH_SAM_APDU [14:25:26]CAPDU: 80 11 00 00 [14:25:26]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [14:25:26]Write i2c OK [14:25:26]MH_I2C_Read... [14:25:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:26]Read from MH i2c: E2 [14:25:26]MH_I2C_Read... [14:25:26]Read from MH i2c: E2 17 00 [14:25:26]MH_I2C_Read... [14:25:26]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4F [14:25:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:25:26]wFMCommunicate OK [14:25:26]CreateOFDProtocolMessage done [14:25:26]OFDSenderStorePacket 118497 [14:25:26]StoreOFDPacket docnum=118497 [14:25:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 39 B3 04 01 21 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 D5 54 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E1 CE 01 00 35 04 06 00 F5 43 78 63 C9 EB 3B BC EF 90 6D 4B 8A 35 [14:25:26]CheckFolder [14:25:26]dirname=/storage/ofd_packets [14:25:26]CheckFolder done [14:25:26]ProducePacketName [14:25:26]name=ofd_packets/00118497 [14:25:26]NVStorageSaveData ofd_packets/00118497 [14:25:26]File name is /storage/ofd_packets/00118497 [14:25:26]Write 298 bytes [14:25:26]NVStorageSaveData done [14:25:26]OFDSenderStorePacket done [14:25:26]KKMCreateOFDPacket done [14:25:26]NVStorageSaveData kkm_last_timestamp [14:25:26]File name is /storage/kkm_last_timestamp [14:25:26]Write 4 bytes [14:25:26]NVStorageSaveData done [14:25:26]ExternCall_PrintAddStr [14:25:26]wPrintStart [14:25:26]Write to MH i2c: 01 00 00 7B 00 7B [14:25:26]Write i2c OK [14:25:26]MH_I2C_Read... [14:25:26]Read from MH i2c: 01 [14:25:26]MH_I2C_Read... [14:25:26]Read from MH i2c: 01 07 00 [14:25:26]MH_I2C_Read... [14:25:26]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [14:25:26]RasterBufferAndPrint [14:25:26]line Счет N : (1)949368 [14:25:26]line ИНН: 02508201610067 [14:25:26]line Контрольно-Кассовый Чек [14:25:26]line ПРОДАЖА [14:25:26]line ТРК (МРК, ГНК) : 34 [14:25:26]line Товар: 2710194800 [14:25:26]line ДТ-К-5 [14:25:26]line 39.380 * 76.20 [14:25:26]line = 3000.76 [14:25:26]line НДС 12% НСП 1% [14:25:26]line > о реализуемом товаре [14:25:26]line ОКРУГЛЕНИЕ: -0.76 [14:25:26]line ИТОГО: 3000.00 [14:25:26]line НСП 1% : 26.55 [14:25:26]line НДС 12% : 318.66 [14:25:26]line Наличными: 0.00 [14:25:26]line Безнал.: 3000.00 [14:25:26]line Место: АЗС № 134 "Партнер Нефть" [14:25:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:25:26]line СНО: Общий режим [14:25:26]line Чек 166 28.07.2024 14:25 [14:25:26]line Смена: 433 ФФД: 1.0 [14:25:26]line ЗНМ: 0300000044 [14:25:26]line РНМ: 0000000000092660 [14:25:26]line Версия ККМ: 001 [14:25:26]line Платежная система: O! деньги [14:25:26]line ФМ: 0000000000874939 [14:25:26]line ФД: 118497 [14:25:26]line ФПД: 269670131419627 [14:25:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T142525&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118497&fm=269670131419627&tin=02508201610067®Number=0000000000092660&sum=300000 [14:25:26]OFD Sender: Processing packet 118497 [packets to send 86, broken 85] [14:25:26]ProducePacketName [14:25:26]name=ofd_packets/00118497 [14:25:26]OFD Sender: To server: pG, [14:25:26]CommunicateWithHost lk.salyk.kg:30040 [14:25:26]ConnectInit lk.salyk.kg [14:25:26]written 0, free lines is 4095 [14:25:27]Connected sock=10 [14:25:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 39 B3 04 01 21 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 D5 54 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E1 CE 01 00 35 04 06 00 F5 43 78 63 C9 EB 3B BC EF 90 6D 4B 8A 35 [14:25:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 47 E0 47 00 37 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E1 CE 01 00 F4 03 04 00 66 02 A6 66 B6 04 01 00 00 C2 55 A5 3F AC 21 C2 28 [14:25:27]CommunicateWithHost err = 0 [14:25:27]CheckOFDResponse [14:25:27]1017 (14) - 77093643461234 [14:25:27]1041 (16) - 0000000000874939 [14:25:27]1040 (4) - 118497 [14:25:27]1012 (4) - 28.07.2024 08:33 [14:25:27]1206 (1) - 0 [14:25:27]OFD Sender: Remove packet 118497 [14:25:27]ProducePacketName [14:25:27]name=ofd_packets/00118497 [14:25:27]NVStorageDeleteData [14:25:27]Write to MH i2c: 01 00 00 A5 00 A5 [14:25:27]Write i2c OK [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: 01 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: 01 07 00 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 E3 0C 9B [14:25:27]RasterBufferAndPrint [14:25:27]line [14:25:27]line [14:25:27]line [14:25:27]line [14:25:27]line [14:25:27]written 0, free lines is 3306 [14:25:27]MH_Cut [14:25:27]Write to MH i2c: D1 01 00 AC 00 01 7E [14:25:27]Write i2c OK [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: D1 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: D1 01 00 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: D1 01 00 AC 00 00 7D [14:25:27]Write to MH i2c: 01 00 00 AD 00 AD [14:25:27]Write i2c OK [14:25:27]MH_I2C_Read... [14:25:27]OFD Sender: No OFD packet to send [14:25:28]*** Cut start [14:25:28]*** Partial cut [14:25:28]*** CUTSNS_PIN = 1 [14:25:28]*** CUTSNS_PIN = 0 [14:25:28]*** Brake cut motor [14:25:28]Read from MH i2c: 01 [14:25:28]MH_I2C_Read... [14:25:28]*** Stop cut motor [14:25:28]*** Cut end [14:25:28]Read from MH i2c: 01 07 00 [14:25:28]MH_I2C_Read... [14:25:28]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [14:25:28]process_action close_receipt done [14:25:28]requested_data is exist [14:25:28]produce_requested_data [14:25:28]requested_item fm.sn is exist - process it [14:25:28]wFMCommunicate request_size=4 [14:25:28]MH_SAM_APDU [14:25:28]CAPDU: 80 11 00 00 [14:25:28]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [14:25:28]Write i2c OK [14:25:28]MH_I2C_Read... [14:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:28]Read from MH i2c: E2 [14:25:28]MH_I2C_Read... [14:25:28]Read from MH i2c: E2 17 00 [14:25:28]MH_I2C_Read... [14:25:28]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 83 [14:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:25:28]wFMCommunicate OK [14:25:28]requested_item fd.num is exist - process it [14:25:28]SAM_PROTO_GetFieldsCounters [14:25:28]wFMCommunicate request_size=4 [14:25:28]MH_SAM_APDU [14:25:28]CAPDU: 80 13 00 00 [14:25:28]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [14:25:28]Write i2c OK [14:25:28]MH_I2C_Read... [14:25:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:28]Read from MH i2c: E2 [14:25:28]MH_I2C_Read... [14:25:28]Read from MH i2c: E2 62 00 [14:25:28]MH_I2C_Read... [14:25:28]Read from MH i2c: E2 62 00 AF 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E1 CE 01 00 0E 04 04 00 B1 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 A6 [14:25:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E1 CE 01 00 0E 04 04 00 B1 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 [14:25:28]wFMCommunicate OK [14:25:28]SAM_PROTO_GetFieldsCounters done [14:25:28]requested_item shift.num is exist - process it [14:25:28]requested_item shift.opened is exist - process it [14:25:28]req_shift_opened [14:25:28]FM_GetShiftState [14:25:28]SAM_PROTO_GetShiftState [14:25:28]wFMCommunicate request_size=4 [14:25:28]MH_SAM_APDU [14:25:28]CAPDU: 80 13 01 00 [14:25:28]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [14:25:28]Write i2c OK [14:25:28]MH_I2C_Read... [14:25:29]Read from MH i2c: E2 [14:25:29]MH_I2C_Read... [14:25:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:29]Read from MH i2c: E2 0E 00 [14:25:29]MH_I2C_Read... [14:25:29]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 04 [14:25:29]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [14:25:29]wFMCommunicate OK [14:25:29]SAM_PROTO_GetShiftState done [14:25:29]FM_GetShiftState done [14:25:29]req_shift_opened done [14:25:29]requested_item shift.open_date is exist - process it [14:25:29]req_shift_open_date [14:25:29]req_shift_open_date done [14:25:29]produce_requested_data done [14:25:29]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118497,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [14:25:29]process_action_free close_receipt [14:25:29]json_value_free [14:25:29]json_value_free done [14:25:29]process_json_proto returns [14:25:29]Send response to host [14:25:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118497,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [14:25:29]free response buf [14:25:29]execute_script done [14:25:29]execute_script returns [14:25:29]free content buf [14:25:29]Sock 7.Close socket [14:25:29]Sock 7.Thread stoped [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:26:02]OFD Sender: No OFD packet to send [14:26:07]OFD Sender: No OFD packet to send [14:26:12]OFD Sender: No OFD packet to send [14:26:17]OFD Sender: No OFD packet to send [14:26:22]OFD Sender: No OFD packet to send [14:26:27]OFD Sender: No OFD packet to send [14:26:32]OFD Sender: No OFD packet to send [14:26:37]OFD Sender: No OFD packet to send [14:26:42]OFD Sender: No OFD packet to send [14:26:47]OFD Sender: No OFD packet to send [14:26:52]OFD Sender: No OFD packet to send [14:26:57]OFD Sender: No OFD packet to send [14:27:02]OFD Sender: No OFD packet to send [14:27:07]OFD Sender: No OFD packet to send [14:27:12]OFD Sender: No OFD packet to send [14:27:17]OFD Sender: No OFD packet to send [14:27:22]OFD Sender: No OFD packet to send [14:27:27]OFD Sender: No OFD packet to send [14:27:32]OFD Sender: No OFD packet to send [14:27:37]OFD Sender: No OFD packet to send [14:27:42]OFD Sender: No OFD packet to send [14:27:47]OFD Sender: No OFD packet to send [14:27:52]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:53]OFD Sender: No OFD packet to send [14:28:58]OFD Sender: No OFD packet to send [14:29:03]OFD Sender: No OFD packet to send [14:29:08]OFD Sender: No OFD packet to send [14:29:13]OFD Sender: No OFD packet to send [14:29:18]OFD Sender: No OFD packet to send [14:29:23]OFD Sender: No OFD packet to send [14:29:28]OFD Sender: No OFD packet to send [14:29:33]OFD Sender: No OFD packet to send [14:29:38]OFD Sender: No OFD packet to send [14:29:43]OFD Sender: No OFD packet to send [14:29:48]OFD Sender: No OFD packet to send [14:29:53]OFD Sender: No OFD packet to send [14:29:58]OFD Sender: No OFD packet to send [14:30:03]OFD Sender: No OFD packet to send [14:30:08]OFD Sender: No OFD packet to send [14:30:13]OFD Sender: No OFD packet to send [14:30:18]OFD Sender: No OFD packet to send [14:30:23]OFD Sender: No OFD packet to send [14:30:28]OFD Sender: No OFD packet to send [14:30:33]OFD Sender: No OFD packet to send [14:30:38]OFD Sender: No OFD packet to send [14:30:43]OFD Sender: No OFD packet to send [14:30:48]OFD Sender: No OFD packet to send [14:30:53]OFD Sender: No OFD packet to send [14:30:58]OFD Sender: No OFD packet to send [14:31:03]OFD Sender: No OFD packet to send [14:31:08]OFD Sender: No OFD packet to send [14:31:13]OFD Sender: No OFD packet to send [14:31:18]OFD Sender: No OFD packet to send [14:31:23]OFD Sender: No OFD packet to send [14:31:28]OFD Sender: No OFD packet to send [14:31:28]accept exits with 9 [14:31:28]New connection [14:31:28]New thread 3067383140 created [14:31:28]Thread 3067239780 joined [14:31:28]Waiting for new connection... [14:31:28] Sock 9.Parse request [14:31:28]Sock 9.Check first char [14:31:28]Sock 9.First char is OK [14:31:28]request: POST /json_proto HTTP/1.0 [14:31:28]Method: POST [14:31:28]URL: /json_proto [14:31:28]Method is POST - this is cgi request [14:31:28]url: /json_proto [14:31:28]query_string will be loaded in cgi processing [14:31:28]execute_cgi json_proto POST (null) [14:31:28]execute_cgi path=json_proto method=POST [14:31:28]POST find Content-Length [14:31:28]Host: 172.17.45.7:8080 [14:31:28]Content-Length: 677 [14:31:28]Content-Type: application/json [14:31:28] [14:31:28]POST finish read [14:31:28]Found Content-Length = 677 [14:31:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:28]execute_script... [14:31: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)949369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:28]POST & json_proto [14:31:28]process_json_proto [14:31:28]json parsed OK: [14:31:28]protocol is kg_v1.0 [14:31:28]action value=close_receipt [14:31:28]process_action close_receipt [14:31:28]cmd_close_receipt [14:31:28]MH_GetDate [14:31:28]Write to MH i2c: F0 00 00 B1 00 A0 [14:31:28]Write i2c OK [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: F0 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: F0 09 00 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: F0 09 00 B1 00 00 41 56 A6 66 90 0F 3E 66 8F [14:31:28]GetLastDocTimeStamp 1722176725 [14:31:28]current date 1722177089 [14:31:28]FM_GetShiftState [14:31:28]SAM_PROTO_GetShiftState [14:31:28]wFMCommunicate request_size=4 [14:31:28]MH_SAM_APDU [14:31:28]CAPDU: 80 13 01 00 [14:31:28]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [14:31:28]Write i2c OK [14:31:28]MH_I2C_Read... [14:31:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:28]Read from MH i2c: E2 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 0E 00 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 06 [14:31:28]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [14:31:28]wFMCommunicate OK [14:31:28]SAM_PROTO_GetShiftState done [14:31:28]FM_GetShiftState done [14:31:28]opened in 1722125364 [14:31:28]opened+sec_in_day 1722211764 [14:31:28]quantity*price = 40002 [14:31:28]sum+1 = 40003 [14:31:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 167 28.07.2024 14:31 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118498 ФПД: 93675831689076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T143129&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118498&fm=93675831689076&tin=02508201610067®Number=0000000000092660&sum=40000 [14:31:29]StoreToDocumentArchive [14:31:29]shift 433 fd 118498 [14:31:29]save to /storage/0433/doc_00118498 [14:31:29]save last doc name /storage/0433/doc_00118498 to /storage/kkm_last_doc_name [14:31:29]save OK [14:31:29]Clear old archive folders... [14:31:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:31:29]tlvbuf is 01E7AB10 [14:31:29]SAM_PROTO_ClearQueue [14:31:29]wFMCommunicate request_size=4 [14:31:29]MH_SAM_APDU [14:31:29]CAPDU: 80 09 00 00 [14:31:29]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [14:31:29]Write i2c OK [14:31:29]MH_I2C_Read... [14:31:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:29]Read from MH i2c: E2 [14:31:29]MH_I2C_Read... [14:31:29]Read from MH i2c: E2 03 00 [14:31:29]MH_I2C_Read... [14:31:29]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [14:31:29]RAPDU: 90 00 [14:31:29]wFMCommunicate OK [14:31:29]SAM_PROTO_ClearQueue done [14:31:29]KKMCreateOFDPacket [14:31:29]OFDProtocolAddRootSTLVToBuf [14:31:29]FM_MakeSignedData [14:31:29]FM_MakeSignedData [14:31:29]SAM_PROTO_SignData [14:31:29]wFMCommunicate request_size=4 [14:31:29]MH_SAM_APDU [14:31:29]CAPDU: 80 0D 01 02 [14:31:29]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [14:31:29]Write i2c OK [14:31:29]MH_I2C_Read... [14:31:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:29]Read from MH i2c: E2 [14:31:29]MH_I2C_Read... [14:31:29]Read from MH i2c: E2 03 00 [14:31:29]MH_I2C_Read... [14:31:29]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [14:31:29]RAPDU: 90 00 [14:31:29]wFMCommunicate OK [14:31:29]wFMCommunicate request_size=255 [14:31:29]MH_SAM_APDU [14:31: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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 A7 00 00 00 F4 03 04 00 41 56 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E2 CE 01 00 35 04 06 00 55 [14:31:29]Write to MH i2c: E2 02 01 C1 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 A7 00 00 00 F4 03 04 00 41 56 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E2 CE 01 00 35 04 06 00 55 00 00 A4 [14:31:29]Write i2c OK [14:31:29]MH_I2C_Read... [14:31:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:29]Read from MH i2c: E2 [14:31:29]MH_I2C_Read... [14:31:29]Read from MH i2c: E2 03 00 [14:31:29]MH_I2C_Read... [14:31:29]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [14:31:29]RAPDU: 90 00 [14:31:29]wFMCommunicate OK [14:31:29]wFMCommunicate request_size=10 [14:31:29]MH_SAM_APDU [14:31:29]CAPDU: 80 0D 02 02 05 32 9A AB FF 74 [14:31:29]Write to MH i2c: E2 0D 00 C2 00 80 0D 02 02 05 00 32 9A AB FF 74 00 00 30 [14:31:29]Write i2c OK [14:31:29]MH_I2C_Read... [14:31:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:29]Read from MH i2c: E2 [14:31:29]MH_I2C_Read... [14:31:29]Read from MH i2c: E2 03 00 [14:31:29]MH_I2C_Read... [14:31:29]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [14:31:29]RAPDU: 90 00 [14:31:29]wFMCommunicate OK [14:31:29]wFMCommunicate request_size=4 [14:31:29]MH_SAM_APDU [14:31:29]CAPDU: 80 0D 03 02 [14:31:29]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [14:31:29]Write i2c OK [14:31:29]MH_I2C_Read... [14:31:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:29]Read from MH i2c: E2 [14:31:29]MH_I2C_Read... [14:31:29]Read from MH i2c: E2 0B 00 [14:31:29]MH_I2C_Read... [14:31:29]Read from MH i2c: E2 0B 00 C3 00 00 7A 3A B8 FB B4 01 06 77 90 00 D8 [14:31:29]RAPDU: 7A 3A B8 FB B4 01 06 77 90 00 [14:31:29]wFMCommunicate OK [14:31:29]SAM_PROTO_SignData done [14:31:29]FM_MakeSignedData done [14:31:29]CreateOFDProtocolMessage [14:31:29]wFMCommunicate request_size=4 [14:31:29]MH_SAM_APDU [14:31:29]CAPDU: 80 11 00 00 [14:31:29]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [14:31:29]Write i2c OK [14:31:29]MH_I2C_Read... [14:31:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:29]Read from MH i2c: E2 [14:31:29]MH_I2C_Read... [14:31:29]Read from MH i2c: E2 17 00 [14:31:29]MH_I2C_Read... [14:31:29]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 99 [14:31:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:31:29]wFMCommunicate OK [14:31:29]CreateOFDProtocolMessage done [14:31:29]OFDSenderStorePacket 118498 [14:31:29]StoreOFDPacket docnum=118498 [14:31:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AF F4 07 01 2F 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 A7 00 00 00 F4 03 04 00 41 56 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E2 CE 01 00 35 04 06 00 55 32 9A AB FF 74 7A 3A B8 FB B4 01 06 77 [14:31:29]CheckFolder [14:31:29]dirname=/storage/ofd_packets [14:31:29]CheckFolder done [14:31:29]ProducePacketName [14:31:29]name=ofd_packets/00118498 [14:31:29]NVStorageSaveData ofd_packets/00118498 [14:31:29]File name is /storage/ofd_packets/00118498 [14:31:29]Write 301 bytes [14:31:29]NVStorageSaveData done [14:31:29]OFDSenderStorePacket done [14:31:29]KKMCreateOFDPacket done [14:31:29]NVStorageSaveData kkm_last_timestamp [14:31:29]File name is /storage/kkm_last_timestamp [14:31:29]Write 4 bytes [14:31:29]NVStorageSaveData done [14:31:29]ExternCall_PrintAddStr [14:31:29]wPrintStart [14:31:29]Write to MH i2c: 01 00 00 C5 00 C5 [14:31:29]Write i2c OK [14:31:29]MH_I2C_Read... [14:31:29]Read from MH i2c: 01 [14:31:29]MH_I2C_Read... [14:31:29]Read from MH i2c: 01 07 00 [14:31:29]MH_I2C_Read... [14:31:29]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [14:31:29]RasterBufferAndPrint [14:31:29]line Счет N : (1)949369 [14:31:29]line ИНН: 02508201610067 [14:31:29]line Контрольно-Кассовый Чек [14:31:29]line ПРОДАЖА [14:31:29]line ТРК (МРК, ГНК) : 31 [14:31:29]line Товар: 2710124130 [14:31:29]line Аи-92-К-4 [14:31:29]line 5.900 * 67.80 [14:31:29]line = 400.02 [14:31:29]line НДС 12% НСП 1% [14:31:29]line > о реализуемом товаре [14:31:29]line ОКРУГЛЕНИЕ: -0.02 [14:31:29]line ИТОГО: 400.00 [14:31:29]line Внесено: 400.00 [14:31:29]line СДАЧА: 0.00 [14:31:29]line НСП 1% : 3.54 [14:31:29]line НДС 12% : 42.48 [14:31:29]line Наличными: 400.00 [14:31:29]line Безнал.: 0.00 [14:31:29]line Место: АЗС № 134 "Партнер Нефть" [14:31:29]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:31:29]line СНО: Общий режим [14:31:29]line Чек 167 28.07.2024 14:31 [14:31:29]line Смена: 433 ФФД: 1.0 [14:31:29]line ЗНМ: 0300000044 [14:31:29]line РНМ: 0000000000092660 [14:31:29]line Версия ККМ: 001 [14:31:29]line ФМ: 0000000000874939 [14:31:29]line ФД: 118498 [14:31:29]line ФПД: 93675831689076 [14:31:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T143129&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118498&fm=93675831689076&tin=02508201610067®Number=0000000000092660&sum=40000 [14:31:30]OFD Sender: Processing packet 118498 [packets to send 86, broken 85] [14:31:30]ProducePacketName [14:31:30]name=ofd_packets/00118498 [14:31:30]OFD Sender: To server: pG, [14:31:30]CommunicateWithHost lk.salyk.kg:30040 [14:31:30]ConnectInit lk.salyk.kg [14:31:30]written 0, free lines is 4095 [14:31:30]Connected sock=10 [14:31:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AF F4 07 01 2F 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 A7 00 00 00 F4 03 04 00 41 56 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E2 CE 01 00 35 04 06 00 55 32 9A AB FF 74 7A 3A B8 FB B4 01 06 77 [14:31:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 7D 9E 47 00 95 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 39 33 39 10 04 04 00 E2 CE 01 00 F4 03 04 00 D1 03 A6 66 B6 04 01 00 00 5D 0C 3E E6 81 81 29 1C [14:31:30]CommunicateWithHost err = 0 [14:31:30]CheckOFDResponse [14:31:30]1017 (14) - 77093643461234 [14:31:30]1041 (16) - 0000000000874939 [14:31:30]1040 (4) - 118498 [14:31:30]1012 (4) - 28.07.2024 08:39 [14:31:30]1206 (1) - 0 [14:31:30]OFD Sender: Remove packet 118498 [14:31:30]ProducePacketName [14:31:30]name=ofd_packets/00118498 [14:31:30]NVStorageDeleteData [14:31:30]Write to MH i2c: 01 00 00 EF 00 EF [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: 01 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: 01 07 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 E4 0C E6 [14:31:30]RasterBufferAndPrint [14:31:30]line [14:31:30]line [14:31:30]line [14:31:30]line [14:31:30]line [14:31:30]written 0, free lines is 3306 [14:31:30]MH_Cut [14:31:30]Write to MH i2c: D1 01 00 F6 00 01 C8 [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: D1 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: D1 01 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: D1 01 00 F6 00 00 C7 [14:31:30]Write to MH i2c: 01 00 00 F7 00 F7 [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:31]OFD Sender: No OFD packet to send [14:31:31]*** Cut start [14:31:31]*** Partial cut [14:31:31]*** CUTSNS_PIN = 1 [14:31:31]*** CUTSNS_PIN = 0 [14:31:31]*** Brake cut motor [14:31:31]Read from MH i2c: 01 [14:31:31]MH_I2C_Read... [14:31:31]*** Stop cut motor [14:31:31]*** Cut end [14:31:31]Read from MH i2c: 01 07 00 [14:31:31]MH_I2C_Read... [14:31:31]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [14:31:31]process_action close_receipt done [14:31:31]requested_data is exist [14:31:31]produce_requested_data [14:31:31]requested_item fm.sn is exist - process it [14:31:31]wFMCommunicate request_size=4 [14:31:31]MH_SAM_APDU [14:31:31]CAPDU: 80 11 00 00 [14:31:31]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [14:31:31]Write i2c OK [14:31:31]MH_I2C_Read... [14:31:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:32]Read from MH i2c: E2 [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: E2 17 00 [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CD [14:31:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:31:32]wFMCommunicate OK [14:31:32]requested_item fd.num is exist - process it [14:31:32]SAM_PROTO_GetFieldsCounters [14:31:32]wFMCommunicate request_size=4 [14:31:32]MH_SAM_APDU [14:31:32]CAPDU: 80 13 00 00 [14:31:32]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [14:31:32]Write i2c OK [14:31:32]MH_I2C_Read... [14:31:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:32]Read from MH i2c: E2 [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: E2 62 00 [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: E2 62 00 F9 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E2 CE 01 00 0E 04 04 00 B1 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 F4 [14:31:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E2 CE 01 00 0E 04 04 00 B1 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 [14:31:32]wFMCommunicate OK [14:31:32]SAM_PROTO_GetFieldsCounters done [14:31:32]requested_item shift.num is exist - process it [14:31:32]requested_item shift.opened is exist - process it [14:31:32]req_shift_opened [14:31:32]FM_GetShiftState [14:31:32]SAM_PROTO_GetShiftState [14:31:32]wFMCommunicate request_size=4 [14:31:32]MH_SAM_APDU [14:31:32]CAPDU: 80 13 01 00 [14:31:32]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [14:31:32]Write i2c OK [14:31:32]MH_I2C_Read... [14:31:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:32]Read from MH i2c: E2 [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: E2 0E 00 [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 4E [14:31:32]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [14:31:32]wFMCommunicate OK [14:31:32]SAM_PROTO_GetShiftState done [14:31:32]FM_GetShiftState done [14:31:32]req_shift_opened done [14:31:32]requested_item shift.open_date is exist - process it [14:31:32]req_shift_open_date [14:31:32]req_shift_open_date done [14:31:32]produce_requested_data done [14:31:32]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118498,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [14:31:32]process_action_free close_receipt [14:31:32]json_value_free [14:31:32]json_value_free done [14:31:32]process_json_proto returns [14:31:32]Send response to host [14:31:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118498,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [14:31:32]free response buf [14:31:32]execute_script done [14:31:32]execute_script returns [14:31:32]free content buf [14:31:32]Sock 9.Close socket [14:31:32]Sock 9.Thread stoped [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:26]OFD Sender: No OFD packet to send [14:33:31]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:41]OFD Sender: No OFD packet to send [14:35:46]OFD Sender: No OFD packet to send [14:35:51]OFD Sender: No OFD packet to send [14:35:56]OFD Sender: No OFD packet to send [14:36:01]OFD Sender: No OFD packet to send [14:36:06]OFD Sender: No OFD packet to send [14:36:11]OFD Sender: No OFD packet to send [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [14:36:41]OFD Sender: No OFD packet to send [14:36:46]OFD Sender: No OFD packet to send [14:36:51]OFD Sender: No OFD packet to send [14:36:56]OFD Sender: No OFD packet to send [14:37:01]OFD Sender: No OFD packet to send [14:37:06]OFD Sender: No OFD packet to send [14:37:11]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [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:11]OFD Sender: No OFD packet to send [14:41:16]OFD Sender: No OFD packet to send [14:41:21]OFD Sender: No OFD packet to send [14:41:26]OFD Sender: No OFD packet to send [14:41:31]OFD Sender: No OFD packet to send [14:41: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:16]OFD Sender: No OFD packet to send [14:44:21]OFD Sender: No OFD packet to send [14:44:26]OFD Sender: No OFD packet to send [14:44:31]OFD Sender: No OFD packet to send [14:44:36]OFD Sender: No OFD packet to send [14:44:41]OFD Sender: No OFD packet to send [14:44:46]OFD Sender: No OFD packet to send [14:44:51]OFD Sender: No OFD packet to send [14:44:56]OFD Sender: No OFD packet to send [14:45:01]OFD Sender: No OFD packet to send [14:45:06]OFD Sender: No OFD packet to send [14:45:11]OFD Sender: No OFD packet to send [14:45:16]OFD Sender: No OFD packet to send [14:45:21]OFD Sender: No OFD packet to send [14:45:26]OFD Sender: No OFD packet to send [14:45:31]OFD Sender: No OFD packet to send [14:45:36]OFD Sender: No OFD packet to send [14:45:41]OFD Sender: No OFD packet to send [14:45:46]OFD Sender: No OFD packet to send [14:45:51]OFD Sender: No OFD packet to send [14:45:56]OFD Sender: No OFD packet to send [14:46:01]OFD Sender: No OFD packet to send [14:46:06]OFD Sender: No OFD packet to send [14:46:11]OFD Sender: No OFD packet to send [14:46:16]OFD Sender: No OFD packet to send [14:46:21]OFD Sender: No OFD packet to send [14:46:26]OFD Sender: No OFD packet to send [14:46:31]OFD Sender: No OFD packet to send [14:46:36]OFD Sender: No OFD packet to send [14:46:41]OFD Sender: No OFD packet to send [14:46:46]OFD Sender: No OFD packet to send [14:46:51]OFD Sender: No OFD packet to send [14:46:56]OFD Sender: No OFD packet to send [14:47:01]OFD Sender: No OFD packet to send [14:47:06]OFD Sender: No OFD packet to send [14:47:11]OFD Sender: No OFD packet to send [14:47:16]OFD Sender: No OFD packet to send [14:47:21]OFD Sender: No OFD packet to send [14:47:27]OFD Sender: No OFD packet to send [14:47:32]OFD Sender: No OFD packet to send [14:47:37]OFD Sender: No OFD packet to send [14:47:42]OFD Sender: No OFD packet to send [14:47:47]OFD Sender: No OFD packet to send [14:47:52]OFD Sender: No OFD packet to send [14:47:57]OFD Sender: No OFD packet to send [14:48:02]OFD Sender: No OFD packet to send [14:48:07]OFD Sender: No OFD packet to send [14:48:12]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]OFD Sender: No OFD packet to send [14:48:47]OFD Sender: No OFD packet to send [14:48:52]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:12]OFD Sender: No OFD packet to send [14:49:17]OFD Sender: No OFD packet to send [14:49:22]OFD Sender: No OFD packet to send [14:49:27]OFD Sender: No OFD packet to send [14:49:32]OFD Sender: No OFD packet to send [14:49:37]OFD Sender: No OFD packet to send [14:49:42]OFD Sender: No OFD packet to send [14:49:47]OFD Sender: No OFD packet to send [14:49:52]OFD Sender: No OFD packet to send [14:49:57]OFD Sender: No OFD packet to send [14:50:02]OFD Sender: No OFD packet to send [14:50:07]OFD Sender: No OFD packet to send [14:50:12]OFD Sender: No OFD packet to send [14:50:17]OFD Sender: No OFD packet to send [14:50:22]OFD Sender: No OFD packet to send [14:50:27]OFD Sender: No OFD packet to send [14:50:32]OFD Sender: No OFD packet to send [14:50:37]OFD Sender: No OFD packet to send [14:50:42]OFD Sender: No OFD packet to send [14:50:47]OFD Sender: No OFD packet to send [14:50:52]OFD Sender: No OFD packet to send [14:50:57]OFD Sender: No OFD packet to send [14:51:02]OFD Sender: No OFD packet to send [14:51:07]OFD Sender: No OFD packet to send [14:51:12]OFD Sender: No OFD packet to send [14:51:17]OFD Sender: No OFD packet to send [14:51:22]OFD Sender: No OFD packet to send [14:51:27]OFD Sender: No OFD packet to send [14:51:32]OFD Sender: No OFD packet to send [14:51:37]OFD Sender: No OFD packet to send [14:51:42]OFD Sender: No OFD packet to send [14:51:47]OFD Sender: No OFD packet to send [14:51:52]OFD Sender: No OFD packet to send [14:51:57]OFD Sender: No OFD packet to send [14:52:02]OFD Sender: No OFD packet to send [14:52:07]OFD Sender: No OFD packet to send [14:52:12]OFD Sender: No OFD packet to send [14:52:17]OFD Sender: No OFD packet to send [14:52:22]OFD Sender: No OFD packet to send [14:52:27]OFD Sender: No OFD packet to send [14:52:32]OFD Sender: No OFD packet to send [14:52:37]OFD Sender: No OFD packet to send [14:52:42]OFD Sender: No OFD packet to send [14:52:47]OFD Sender: No OFD packet to send [14:52:52]OFD Sender: No OFD packet to send [14:52:57]OFD Sender: No OFD packet to send [14:53:02]OFD Sender: No OFD packet to send [14:53:07]OFD Sender: No OFD packet to send [14:53:12]OFD Sender: No OFD packet to send [14:53:17]OFD Sender: No OFD packet to send [14:53:22]OFD Sender: No OFD packet to send [14:53:27]OFD Sender: No OFD packet to send [14:53:32]OFD Sender: No OFD packet to send [14:53:37]OFD Sender: No OFD packet to send [14:53:42]OFD Sender: No OFD packet to send [14:53:47]OFD Sender: No OFD packet to send [14:53:52]OFD Sender: No OFD packet to send [14:53:52]accept exits with 7 [14:53:52]New connection [14:53:52]New thread 3067239780 created [14:53:52]Thread 3067383140 joined [14:53:52]Waiting for new connection... [14:53:52] Sock 7.Parse request [14:53:52]Sock 7.Check first char [14:53:52]Sock 7.First char is OK [14:53:52]request: POST /json_proto HTTP/1.0 [14:53:52]Method: POST [14:53:52]URL: /json_proto [14:53:52]Method is POST - this is cgi request [14:53:52]url: /json_proto [14:53:52]query_string will be loaded in cgi processing [14:53:52]execute_cgi json_proto POST (null) [14:53:52]execute_cgi path=json_proto method=POST [14:53:52]POST find Content-Length [14:53:52]Host: 172.17.45.7:8080 [14:53:52]Content-Length: 677 [14:53:52]Content-Type: application/json [14:53:52] [14:53:52]POST finish read [14:53:52]Found Content-Length = 677 [14:53:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:52]execute_script... [14: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)949371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:52]POST & json_proto [14:53:52]process_json_proto [14:53:52]json parsed OK: [14:53:52]protocol is kg_v1.0 [14:53:52]action value=close_receipt [14:53:52]process_action close_receipt [14:53:52]cmd_close_receipt [14:53:52]MH_GetDate [14:53:52]Write to MH i2c: F0 00 00 FB 00 EA [14:53:52]Write i2c OK [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: F0 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: F0 09 00 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: F0 09 00 FB 00 00 81 5B A6 66 90 0F 3E 66 1E [14:53:52]GetLastDocTimeStamp 1722177089 [14:53:52]current date 1722178433 [14:53:52]FM_GetShiftState [14:53:52]SAM_PROTO_GetShiftState [14:53:52]wFMCommunicate request_size=4 [14:53:52]MH_SAM_APDU [14:53:52]CAPDU: 80 13 01 00 [14:53:52]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [14:53:52]Write i2c OK [14:53:52]MH_I2C_Read... [14:53:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:52]Read from MH i2c: E2 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: E2 0E 00 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 50 [14:53:52]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [14:53:52]wFMCommunicate OK [14:53:52]SAM_PROTO_GetShiftState done [14:53:52]FM_GetShiftState done [14:53:52]opened in 1722125364 [14:53:52]opened+sec_in_day 1722211764 [14:53:52]quantity*price = 50036 [14:53:52]sum+1 = 50037 [14:53:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 168 28.07.2024 14:53 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118499 ФПД: 84663730818618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T145353&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118499&fm=84663730818618&tin=02508201610067®Number=0000000000092660&sum=50000 [14:53:54]StoreToDocumentArchive [14:53:54]shift 433 fd 118499 [14:53:54]save to /storage/0433/doc_00118499 [14:53:54]save last doc name /storage/0433/doc_00118499 to /storage/kkm_last_doc_name [14:53:54]save OK [14:53:54]Clear old archive folders... [14:53:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:53:54]tlvbuf is B6FC17F0 [14:53:54]SAM_PROTO_ClearQueue [14:53:54]wFMCommunicate request_size=4 [14:53:54]MH_SAM_APDU [14:53:54]CAPDU: 80 09 00 00 [14:53:54]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [14:53:54]Write i2c OK [14:53:54]MH_I2C_Read... [14:53:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:54]Read from MH i2c: E2 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: E2 03 00 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [14:53:54]RAPDU: 90 00 [14:53:54]wFMCommunicate OK [14:53:54]SAM_PROTO_ClearQueue done [14:53:54]KKMCreateOFDPacket [14:53:54]OFDProtocolAddRootSTLVToBuf [14:53:54]FM_MakeSignedData [14:53:54]FM_MakeSignedData [14:53:54]SAM_PROTO_SignData [14:53:54]wFMCommunicate request_size=4 [14:53:54]MH_SAM_APDU [14:53:54]CAPDU: 80 0D 01 02 [14:53:54]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [14:53:54]Write i2c OK [14:53:54]MH_I2C_Read... [14:53:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:54]Read from MH i2c: E2 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: E2 03 00 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [14:53:54]RAPDU: 90 00 [14:53:54]wFMCommunicate OK [14:53:54]wFMCommunicate request_size=255 [14:53:54]MH_SAM_APDU [14:53: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 81 5B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E3 CE 01 00 35 04 06 00 4D [14:53:54]Write to MH i2c: E2 02 01 0B 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 81 5B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E3 CE 01 00 35 04 06 00 4D 00 00 49 [14:53:54]Write i2c OK [14:53:54]MH_I2C_Read... [14:53:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:54]Read from MH i2c: E2 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: E2 03 00 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [14:53:54]RAPDU: 90 00 [14:53:54]wFMCommunicate OK [14:53:54]wFMCommunicate request_size=10 [14:53:54]MH_SAM_APDU [14:53:54]CAPDU: 80 0D 02 02 05 00 4F 99 CE 3A [14:53:54]Write to MH i2c: E2 0D 00 0C 01 80 0D 02 02 05 00 00 4F 99 CE 3A 00 00 81 [14:53:54]Write i2c OK [14:53:54]MH_I2C_Read... [14:53:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:54]Read from MH i2c: E2 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: E2 03 00 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [14:53:54]RAPDU: 90 00 [14:53:54]wFMCommunicate OK [14:53:54]wFMCommunicate request_size=4 [14:53:54]MH_SAM_APDU [14:53:54]CAPDU: 80 0D 03 02 [14:53:54]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [14:53:54]Write i2c OK [14:53:54]MH_I2C_Read... [14:53:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:54]Read from MH i2c: E2 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: E2 0B 00 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: E2 0B 00 0D 01 00 1F 7D 74 C2 C3 5B 73 15 90 00 02 [14:53:54]RAPDU: 1F 7D 74 C2 C3 5B 73 15 90 00 [14:53:54]wFMCommunicate OK [14:53:54]SAM_PROTO_SignData done [14:53:54]FM_MakeSignedData done [14:53:54]CreateOFDProtocolMessage [14:53:54]wFMCommunicate request_size=4 [14:53:54]MH_SAM_APDU [14:53:54]CAPDU: 80 11 00 00 [14:53:54]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [14:53:54]Write i2c OK [14:53:54]MH_I2C_Read... [14:53:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:54]Read from MH i2c: E2 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: E2 17 00 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: E2 17 00 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E4 [14:53:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:53:54]wFMCommunicate OK [14:53:54]CreateOFDProtocolMessage done [14:53:54]OFDSenderStorePacket 118499 [14:53:54]StoreOFDPacket docnum=118499 [14:53:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 27 5E 07 01 F5 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 81 5B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E3 CE 01 00 35 04 06 00 4D 00 4F 99 CE 3A 1F 7D 74 C2 C3 5B 73 15 [14:53:54]CheckFolder [14:53:54]dirname=/storage/ofd_packets [14:53:54]CheckFolder done [14:53:54]ProducePacketName [14:53:54]name=ofd_packets/00118499 [14:53:54]NVStorageSaveData ofd_packets/00118499 [14:53:54]File name is /storage/ofd_packets/00118499 [14:53:54]Write 301 bytes [14:53:54]NVStorageSaveData done [14:53:54]OFDSenderStorePacket done [14:53:54]KKMCreateOFDPacket done [14:53:54]NVStorageSaveData kkm_last_timestamp [14:53:54]File name is /storage/kkm_last_timestamp [14:53:54]Write 4 bytes [14:53:54]NVStorageSaveData done [14:53:54]ExternCall_PrintAddStr [14:53:54]wPrintStart [14:53:54]Write to MH i2c: 01 00 00 0F 01 10 [14:53:54]Write i2c OK [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: 01 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: 01 07 00 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [14:53:54]RasterBufferAndPrint [14:53:54]line Счет N : (1)949371 [14:53:54]line ИНН: 02508201610067 [14:53:54]line Контрольно-Кассовый Чек [14:53:54]line ПРОДАЖА [14:53:54]line ТРК (МРК, ГНК) : 31 [14:53:54]line Товар: 2710124130 [14:53:54]line Аи-92-К-4 [14:53:54]line 7.380 * 67.80 [14:53:54]line = 500.36 [14:53:54]line НДС 12% НСП 1% [14:53:54]line > о реализуемом товаре [14:53:54]line ОКРУГЛЕНИЕ: -0.36 [14:53:54]line ИТОГО: 500.00 [14:53:54]line Внесено: 500.00 [14:53:54]line СДАЧА: 0.00 [14:53:54]line НСП 1% : 4.43 [14:53:54]line НДС 12% : 53.14 [14:53:54]line Наличными: 500.00 [14:53:54]line Безнал.: 0.00 [14:53:54]line Место: АЗС № 134 "Партнер Нефть" [14:53:54]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:53:54]line СНО: Общий режим [14:53:54]line Чек 168 28.07.2024 14:53 [14:53:54]line Смена: 433 ФФД: 1.0 [14:53:54]line ЗНМ: 0300000044 [14:53:54]line РНМ: 0000000000092660 [14:53:54]line Версия ККМ: 001 [14:53:54]line ФМ: 0000000000874939 [14:53:54]line ФД: 118499 [14:53:54]line ФПД: 84663730818618 [14:53:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T145353&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118499&fm=84663730818618&tin=02508201610067®Number=0000000000092660&sum=50000 [14:53:54]OFD Sender: Processing packet 118499 [packets to send 86, broken 85] [14:53:54]ProducePacketName [14:53:54]name=ofd_packets/00118499 [14:53:54]OFD Sender: To server: pG, [14:53:54]CommunicateWithHost lk.salyk.kg:30040 [14:53:54]ConnectInit lk.salyk.kg [14:53:54]written 0, free lines is 4095 [14:53:55]Connected sock=10 [14:53:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 27 5E 07 01 F5 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 81 5B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E3 CE 01 00 35 04 06 00 4D 00 4F 99 CE 3A 1F 7D 74 C2 C3 5B 73 15 [14:53:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AA 98 47 00 BF 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 39 33 39 10 04 04 00 E3 CE 01 00 F4 03 04 00 12 09 A6 66 B6 04 01 00 00 2F 20 16 C7 B5 95 B6 74 [14:53:55]CommunicateWithHost err = 0 [14:53:55]CheckOFDResponse [14:53:55]1017 (14) - 77093643461234 [14:53:55]1041 (16) - 0000000000874939 [14:53:55]1040 (4) - 118499 [14:53:55]1012 (4) - 28.07.2024 09:02 [14:53:55]1206 (1) - 0 [14:53:55]OFD Sender: Remove packet 118499 [14:53:55]ProducePacketName [14:53:55]name=ofd_packets/00118499 [14:53:55]NVStorageDeleteData [14:53:55]Write to MH i2c: 01 00 00 39 01 3A [14:53:55]Write i2c OK [14:53:55]MH_I2C_Read... [14:53:55]Read from MH i2c: 01 [14:53:55]MH_I2C_Read... [14:53:55]Read from MH i2c: 01 07 00 [14:53:55]MH_I2C_Read... [14:53:55]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 D3 0C 20 [14:53:55]RasterBufferAndPrint [14:53:55]line [14:53:55]line [14:53:55]line [14:53:55]line [14:53:55]line [14:53:55]written 0, free lines is 3289 [14:53:55]MH_Cut [14:53:55]Write to MH i2c: D1 01 00 40 01 01 13 [14:53:55]Write i2c OK [14:53:55]MH_I2C_Read... [14:53:55]Read from MH i2c: D1 [14:53:55]MH_I2C_Read... [14:53:55]Read from MH i2c: D1 01 00 [14:53:55]MH_I2C_Read... [14:53:55]Read from MH i2c: D1 01 00 40 01 00 12 [14:53:55]Write to MH i2c: 01 00 00 41 01 42 [14:53:55]Write i2c OK [14:53:55]MH_I2C_Read... [14:53:55]OFD Sender: No OFD packet to send [14:53:56]*** Cut start [14:53:56]*** Partial cut [14:53:56]*** CUTSNS_PIN = 1 [14:53:56]*** CUTSNS_PIN = 0 [14:53:56]*** Brake cut motor [14:53:56]Read from MH i2c: 01 [14:53:56]MH_I2C_Read... [14:53:56]*** Stop cut motor [14:53:56]*** Cut end [14:53:56]Read from MH i2c: 01 07 00 [14:53:56]MH_I2C_Read... [14:53:56]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [14:53:56]process_action close_receipt done [14:53:56]requested_data is exist [14:53:56]produce_requested_data [14:53:56]requested_item fm.sn is exist - process it [14:53:56]wFMCommunicate request_size=4 [14:53:56]MH_SAM_APDU [14:53:56]CAPDU: 80 11 00 00 [14:53:56]Write to MH i2c: E2 08 00 42 01 80 11 00 00 00 00 00 00 BD [14:53:56]Write i2c OK [14:53:56]MH_I2C_Read... [14:53:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:56]Read from MH i2c: E2 [14:53:56]MH_I2C_Read... [14:53:56]Read from MH i2c: E2 17 00 [14:53:56]MH_I2C_Read... [14:53:56]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 39 33 39 90 00 18 [14:53:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:53:56]wFMCommunicate OK [14:53:56]requested_item fd.num is exist - process it [14:53:56]SAM_PROTO_GetFieldsCounters [14:53:56]wFMCommunicate request_size=4 [14:53:56]MH_SAM_APDU [14:53:56]CAPDU: 80 13 00 00 [14:53:56]Write to MH i2c: E2 08 00 43 01 80 13 00 00 00 00 00 00 C0 [14:53:56]Write i2c OK [14:53:56]MH_I2C_Read... [14:53:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:56]Read from MH i2c: E2 [14:53:56]MH_I2C_Read... [14:53:56]Read from MH i2c: E2 62 00 [14:53:56]MH_I2C_Read... [14:53:56]Read from MH i2c: E2 62 00 43 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E3 CE 01 00 0E 04 04 00 B1 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 43 [14:53:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E3 CE 01 00 0E 04 04 00 B1 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 [14:53:56]wFMCommunicate OK [14:53:56]SAM_PROTO_GetFieldsCounters done [14:53:56]requested_item shift.num is exist - process it [14:53:56]requested_item shift.opened is exist - process it [14:53:56]req_shift_opened [14:53:56]FM_GetShiftState [14:53:56]SAM_PROTO_GetShiftState [14:53:56]wFMCommunicate request_size=4 [14:53:56]MH_SAM_APDU [14:53:56]CAPDU: 80 13 01 00 [14:53:56]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [14:53:56]Write i2c OK [14:53:56]MH_I2C_Read... [14:53:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:56]Read from MH i2c: E2 [14:53:56]MH_I2C_Read... [14:53:56]Read from MH i2c: E2 0E 00 [14:53:56]MH_I2C_Read... [14:53:56]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 99 [14:53:56]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [14:53:56]wFMCommunicate OK [14:53:56]SAM_PROTO_GetShiftState done [14:53:56]FM_GetShiftState done [14:53:56]req_shift_opened done [14:53:56]requested_item shift.open_date is exist - process it [14:53:56]req_shift_open_date [14:53:56]req_shift_open_date done [14:53:56]produce_requested_data done [14:53:56]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118499,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [14:53:56]process_action_free close_receipt [14:53:56]json_value_free [14:53:56]json_value_free done [14:53:56]process_json_proto returns [14:53:56]Send response to host [14:53:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118499,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [14:53:56]free response buf [14:53:56]execute_script done [14:53:56]execute_script returns [14:53:56]free content buf [14:53:56]Sock 7.Close socket [14:53:56]Sock 7.Thread stoped [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:28]accept exits with 9 [14:55:28]New connection [14:55:28]New thread 3067383140 created [14:55:28]Thread 3067239780 joined [14:55:28]Waiting for new connection... [14:55:28] Sock 9.Parse request [14:55:28]Sock 9.Check first char [14:55:28]Sock 9.First char is OK [14:55:28]request: POST /json_proto HTTP/1.0 [14:55:28]Method: POST [14:55:28]URL: /json_proto [14:55:28]Method is POST - this is cgi request [14:55:28]url: /json_proto [14:55:28]query_string will be loaded in cgi processing [14:55:28]execute_cgi json_proto POST (null) [14:55:28]execute_cgi path=json_proto method=POST [14:55:28]POST find Content-Length [14:55:28]Host: 172.17.45.7:8080 [14:55:28]Content-Length: 819 [14:55:28]Content-Type: application/json [14:55:28] [14:55:28]POST finish read [14:55:28]Found Content-Length = 819 [14:55:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.520, "sum" : 4002.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 4002.00, "payments": [ { "type": 1, "sum" : 4002.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:28]execute_script... [14:55: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)949370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.520, "sum" : 4002.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 4002.00, "payments": [ { "type": 1, "sum" : 4002.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:28]POST & json_proto [14:55:28]process_json_proto [14:55:28]json parsed OK: [14:55:28]protocol is kg_v1.0 [14:55:28]action value=close_receipt [14:55:28]process_action close_receipt [14:55:28]cmd_close_receipt [14:55:28]MH_GetDate [14:55:28]Write to MH i2c: F0 00 00 45 01 35 [14:55:28]Write i2c OK [14:55:28]MH_I2C_Read... [14:55:28]Read from MH i2c: F0 [14:55:28]MH_I2C_Read... [14:55:28]Read from MH i2c: F0 09 00 [14:55:28]MH_I2C_Read... [14:55:28]Read from MH i2c: F0 09 00 45 01 00 E1 5B A6 66 90 0F 3E 66 C9 [14:55:28]GetLastDocTimeStamp 1722178433 [14:55:28]current date 1722178529 [14:55:28]FM_GetShiftState [14:55:28]SAM_PROTO_GetShiftState [14:55:28]wFMCommunicate request_size=4 [14:55:28]MH_SAM_APDU [14:55:28]CAPDU: 80 13 01 00 [14:55:28]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [14:55:28]Write i2c OK [14:55:28]MH_I2C_Read... [14:55:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:28]Read from MH i2c: E2 [14:55:28]MH_I2C_Read... [14:55:28]Read from MH i2c: E2 0E 00 [14:55:28]MH_I2C_Read... [14:55:28]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 9B [14:55:28]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [14:55:28]wFMCommunicate OK [14:55:28]SAM_PROTO_GetShiftState done [14:55:28]FM_GetShiftState done [14:55:28]opened in 1722125364 [14:55:28]opened+sec_in_day 1722211764 [14:55:28]quantity*price = 400202 [14:55:28]sum+1 = 400203 [14:55:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 4002.00 НСП 1% : 35.42 НДС 12% : 424.99 Наличными: 0.00 Безнал.: 4002.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 169 28.07.2024 14:55 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118500 ФПД: 231775655001834 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T145529&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118500&fm=231775655001834&tin=02508201610067®Number=0000000000092660&sum=400200 [14:55:30]StoreToDocumentArchive [14:55:30]shift 433 fd 118500 [14:55:30]save to /storage/0433/doc_00118500 [14:55:30]save last doc name /storage/0433/doc_00118500 to /storage/kkm_last_doc_name [14:55:30]save OK [14:55:30]Clear old archive folders... [14:55:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:55:30]tlvbuf is 01E6FBA0 [14:55:30]SAM_PROTO_ClearQueue [14:55:30]wFMCommunicate request_size=4 [14:55:30]MH_SAM_APDU [14:55:30]CAPDU: 80 09 00 00 [14:55:30]Write to MH i2c: E2 08 00 53 01 80 09 00 00 00 00 00 00 C6 [14:55:30]Write i2c OK [14:55:30]MH_I2C_Read... [14:55:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:30]Read from MH i2c: E2 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: E2 03 00 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [14:55:30]RAPDU: 90 00 [14:55:30]wFMCommunicate OK [14:55:30]SAM_PROTO_ClearQueue done [14:55:30]KKMCreateOFDPacket [14:55:30]OFDProtocolAddRootSTLVToBuf [14:55:30]FM_MakeSignedData [14:55:30]FM_MakeSignedData [14:55:30]SAM_PROTO_SignData [14:55:30]wFMCommunicate request_size=4 [14:55:30]MH_SAM_APDU [14:55:30]CAPDU: 80 0D 01 02 [14:55:30]Write to MH i2c: E2 08 00 54 01 80 0D 01 02 00 00 00 00 CE [14:55:30]Write i2c OK [14:55:30]MH_I2C_Read... [14:55:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:30]Read from MH i2c: E2 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: E2 03 00 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [14:55:30]RAPDU: 90 00 [14:55:30]wFMCommunicate OK [14:55:30]wFMCommunicate request_size=255 [14:55:30]MH_SAM_APDU [14:55:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 1B 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 1B 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 A6 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 1B 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 E1 5B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E4 CE 01 00 35 04 06 00 D2 CC 79 95 [14:55:30]Write to MH i2c: E2 02 01 55 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 1B 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 1B 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 A6 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 1B 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 E1 5B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E4 CE 01 00 35 04 06 00 D2 CC 79 95 00 00 D7 [14:55:30]Write i2c OK [14:55:30]MH_I2C_Read... [14:55:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:30]Read from MH i2c: E2 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: E2 03 00 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [14:55:30]RAPDU: 90 00 [14:55:30]wFMCommunicate OK [14:55:30]wFMCommunicate request_size=7 [14:55:30]MH_SAM_APDU [14:55:30]CAPDU: 80 0D 02 02 02 7E EA [14:55:30]Write to MH i2c: E2 0A 00 56 01 80 0D 02 02 02 00 7E EA 00 00 3D [14:55:30]Write i2c OK [14:55:30]MH_I2C_Read... [14:55:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:30]Read from MH i2c: E2 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: E2 03 00 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [14:55:30]RAPDU: 90 00 [14:55:30]wFMCommunicate OK [14:55:30]wFMCommunicate request_size=4 [14:55:30]MH_SAM_APDU [14:55:30]CAPDU: 80 0D 03 02 [14:55:30]Write to MH i2c: E2 08 00 57 01 80 0D 03 02 00 00 00 00 D3 [14:55:30]Write i2c OK [14:55:30]MH_I2C_Read... [14:55:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:30]Read from MH i2c: E2 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: E2 0B 00 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: E2 0B 00 57 01 00 9F 69 B6 87 D9 CB B8 FE 90 00 73 [14:55:30]RAPDU: 9F 69 B6 87 D9 CB B8 FE 90 00 [14:55:30]wFMCommunicate OK [14:55:30]SAM_PROTO_SignData done [14:55:30]FM_MakeSignedData done [14:55:30]CreateOFDProtocolMessage [14:55:30]wFMCommunicate request_size=4 [14:55:30]MH_SAM_APDU [14:55:30]CAPDU: 80 11 00 00 [14:55:30]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [14:55:30]Write i2c OK [14:55:30]MH_I2C_Read... [14:55:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:30]Read from MH i2c: E2 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: E2 17 00 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: E2 17 00 58 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2E [14:55:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:55:30]wFMCommunicate OK [14:55:30]CreateOFDProtocolMessage done [14:55:30]OFDSenderStorePacket 118500 [14:55:30]StoreOFDPacket docnum=118500 [14:55:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 35 64 04 01 CC D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 1B 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 1B 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 A6 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 1B 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 E1 5B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E4 CE 01 00 35 04 06 00 D2 CC 79 95 7E EA 9F 69 B6 87 D9 CB B8 FE [14:55:30]CheckFolder [14:55:30]dirname=/storage/ofd_packets [14:55:30]CheckFolder done [14:55:30]ProducePacketName [14:55:30]name=ofd_packets/00118500 [14:55:30]NVStorageSaveData ofd_packets/00118500 [14:55:30]File name is /storage/ofd_packets/00118500 [14:55:30]Write 298 bytes [14:55:30]NVStorageSaveData done [14:55:30]OFDSenderStorePacket done [14:55:30]KKMCreateOFDPacket done [14:55:30]NVStorageSaveData kkm_last_timestamp [14:55:30]File name is /storage/kkm_last_timestamp [14:55:30]Write 4 bytes [14:55:30]NVStorageSaveData done [14:55:30]ExternCall_PrintAddStr [14:55:30]wPrintStart [14:55:30]Write to MH i2c: 01 00 00 59 01 5A [14:55:30]Write i2c OK [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: 01 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: 01 07 00 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 FF 0F 6F [14:55:30]RasterBufferAndPrint [14:55:30]line Счет N : (1)949370 [14:55:30]line ИНН: 02508201610067 [14:55:30]line Контрольно-Кассовый Чек [14:55:30]line ПРОДАЖА [14:55:30]line ТРК (МРК, ГНК) : 54 [14:55:30]line Товар: 2710194800 [14:55:30]line ДТ-К-5 [14:55:30]line 52.520 * 76.20 [14:55:30]line = 4002.02 [14:55:30]line НДС 12% НСП 1% [14:55:30]line > о реализуемом товаре [14:55:30]line ОКРУГЛЕНИЕ: -0.02 [14:55:30]line ИТОГО: 4002.00 [14:55:30]line НСП 1% : 35.42 [14:55:30]line НДС 12% : 424.99 [14:55:30]line Наличными: 0.00 [14:55:30]line Безнал.: 4002.00 [14:55:30]line Место: АЗС № 134 "Партнер Нефть" [14:55:30]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:55:30]line СНО: Общий режим [14:55:30]line Чек 169 28.07.2024 14:55 [14:55:30]line Смена: 433 ФФД: 1.0 [14:55:30]line ЗНМ: 0300000044 [14:55:30]line РНМ: 0000000000092660 [14:55:30]line Версия ККМ: 001 [14:55:30]line Платежная система: O! деньги [14:55:30]line ФМ: 0000000000874939 [14:55:30]line ФД: 118500 [14:55:30]line ФПД: 231775655001834 [14:55:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T145529&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118500&fm=231775655001834&tin=02508201610067®Number=0000000000092660&sum=400200 [14:55:30]OFD Sender: Processing packet 118500 [packets to send 86, broken 85] [14:55:30]ProducePacketName [14:55:30]name=ofd_packets/00118500 [14:55:30]OFD Sender: To server: pG, [14:55:30]CommunicateWithHost lk.salyk.kg:30040 [14:55:30]ConnectInit lk.salyk.kg [14:55:30]written 0, free lines is 4095 [14:55:30]Connected sock=10 [14:55:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 35 64 04 01 CC D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 1B 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 1B 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 A6 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 1B 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 E1 5B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E4 CE 01 00 35 04 06 00 D2 CC 79 95 7E EA 9F 69 B6 87 D9 CB B8 FE [14:55:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 17 01 47 00 5C 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E4 CE 01 00 F4 03 04 00 71 09 A6 66 B6 04 01 00 00 3D 7B 39 B6 DE 94 C0 A3 [14:55:31]CommunicateWithHost err = 0 [14:55:31]CheckOFDResponse [14:55:31]1017 (14) - 77093643461234 [14:55:31]1041 (16) - 0000000000874939 [14:55:31]1040 (4) - 118500 [14:55:31]1012 (4) - 28.07.2024 09:03 [14:55:31]1206 (1) - 0 [14:55:31]OFD Sender: Remove packet 118500 [14:55:31]ProducePacketName [14:55:31]name=ofd_packets/00118500 [14:55:31]NVStorageDeleteData [14:55:31]Write to MH i2c: 01 00 00 83 01 84 [14:55:31]Write i2c OK [14:55:31]MH_I2C_Read... [14:55:31]Read from MH i2c: 01 [14:55:31]MH_I2C_Read... [14:55:31]Read from MH i2c: 01 07 00 [14:55:31]MH_I2C_Read... [14:55:31]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 DF 0C 76 [14:55:31]RasterBufferAndPrint [14:55:31]line [14:55:31]line [14:55:31]line [14:55:31]line [14:55:31]line [14:55:31]written 0, free lines is 3301 [14:55:31]MH_Cut [14:55:31]Write to MH i2c: D1 01 00 8A 01 01 5D [14:55:31]Write i2c OK [14:55:31]MH_I2C_Read... [14:55:31]Read from MH i2c: D1 [14:55:31]MH_I2C_Read... [14:55:31]Read from MH i2c: D1 01 00 [14:55:31]MH_I2C_Read... [14:55:31]Read from MH i2c: D1 01 00 8A 01 00 5C [14:55:31]Write to MH i2c: 01 00 00 8B 01 8C [14:55:31]Write i2c OK [14:55:31]MH_I2C_Read... [14:55:31]OFD Sender: No OFD packet to send [14:55:32]*** Cut start [14:55:32]*** Partial cut [14:55:32]*** CUTSNS_PIN = 1 [14:55:32]*** CUTSNS_PIN = 0 [14:55:32]*** Brake cut motor [14:55:32]Read from MH i2c: 01 [14:55:32]MH_I2C_Read... [14:55:32]*** Stop cut motor [14:55:32]*** Cut end [14:55:32]Read from MH i2c: 01 07 00 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 FF 0F A1 [14:55:32]process_action close_receipt done [14:55:32]requested_data is exist [14:55:32]produce_requested_data [14:55:32]requested_item fm.sn is exist - process it [14:55:32]wFMCommunicate request_size=4 [14:55:32]MH_SAM_APDU [14:55:32]CAPDU: 80 11 00 00 [14:55:32]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [14:55:32]Write i2c OK [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 [14:55:32]MH_I2C_Read... [14:55:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:32]Read from MH i2c: E2 17 00 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 17 00 8C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 62 [14:55:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:55:32]wFMCommunicate OK [14:55:32]requested_item fd.num is exist - process it [14:55:32]SAM_PROTO_GetFieldsCounters [14:55:32]wFMCommunicate request_size=4 [14:55:32]MH_SAM_APDU [14:55:32]CAPDU: 80 13 00 00 [14:55:32]Write to MH i2c: E2 08 00 8D 01 80 13 00 00 00 00 00 00 0A [14:55:32]Write i2c OK [14:55:32]MH_I2C_Read... [14:55:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:32]Read from MH i2c: E2 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 62 00 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 62 00 8D 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E4 CE 01 00 0E 04 04 00 B1 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 91 [14:55:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E4 CE 01 00 0E 04 04 00 B1 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 [14:55:32]wFMCommunicate OK [14:55:32]SAM_PROTO_GetFieldsCounters done [14:55:32]requested_item shift.num is exist - process it [14:55:32]requested_item shift.opened is exist - process it [14:55:32]req_shift_opened [14:55:32]FM_GetShiftState [14:55:32]SAM_PROTO_GetShiftState [14:55:32]wFMCommunicate request_size=4 [14:55:32]MH_SAM_APDU [14:55:32]CAPDU: 80 13 01 00 [14:55:32]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [14:55:32]Write i2c OK [14:55:32]MH_I2C_Read... [14:55:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:32]Read from MH i2c: E2 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 0E 00 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 E3 [14:55:32]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [14:55:32]wFMCommunicate OK [14:55:32]SAM_PROTO_GetShiftState done [14:55:32]FM_GetShiftState done [14:55:32]req_shift_opened done [14:55:32]requested_item shift.open_date is exist - process it [14:55:32]req_shift_open_date [14:55:32]req_shift_open_date done [14:55:32]produce_requested_data done [14:55:32]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118500,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [14:55:32]process_action_free close_receipt [14:55:32]json_value_free [14:55:32]json_value_free done [14:55:32]process_json_proto returns [14:55:32]Send response to host [14:55:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118500,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [14:55:32]free response buf [14:55:32]execute_script done [14:55:32]execute_script returns [14:55:32]free content buf [14:55:32]Sock 9.Close socket [14:55:32]Sock 9.Thread stoped [14:55:36]OFD Sender: No OFD packet to send [14:55:41]OFD Sender: No OFD packet to send [14:55:46]OFD Sender: No OFD packet to send [14:55:51]OFD Sender: No OFD packet to send [14:55:56]OFD Sender: No OFD packet to send [14:56:01]OFD Sender: No OFD packet to send [14:56:06]OFD Sender: No OFD packet to send [14:56:11]OFD Sender: No OFD packet to send [14:56:16]OFD Sender: No OFD packet to send [14:56:21]OFD Sender: No OFD packet to send [14:56:26]OFD Sender: No OFD packet to send [14:56:31]OFD Sender: No OFD packet to send [14:56:36]OFD Sender: No OFD packet to send [14:56:41]OFD Sender: No OFD packet to send [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:56]OFD Sender: No OFD packet to send [14:57:01]OFD Sender: No OFD packet to send [14:57:06]OFD Sender: No OFD packet to send [14:57:11]OFD Sender: No OFD packet to send [14:57:13]accept exits with 7 [14:57:13]New connection [14:57:13]New thread 3067239780 created [14:57:13]Thread 3067383140 joined [14:57:13]Waiting for new connection... [14:57:13] Sock 7.Parse request [14:57:13]Sock 7.Check first char [14:57:13]Sock 7.First char is OK [14:57:13]request: POST /json_proto HTTP/1.0 [14:57:13]Method: POST [14:57:13]URL: /json_proto [14:57:13]Method is POST - this is cgi request [14:57:13]url: /json_proto [14:57:13]query_string will be loaded in cgi processing [14:57:13]execute_cgi json_proto POST (null) [14:57:13]execute_cgi path=json_proto method=POST [14:57:13]POST find Content-Length [14:57:13]Host: 172.17.45.7:8080 [14:57:13]Content-Length: 677 [14:57:13]Content-Type: application/json [14:57:13] [14:57:13]POST finish read [14:57:13]Found Content-Length = 677 [14:57:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:13]execute_script... [14:57: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)949372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:13]POST & json_proto [14:57:13]process_json_proto [14:57:13]json parsed OK: [14:57:13]protocol is kg_v1.0 [14:57:13]action value=close_receipt [14:57:13]process_action close_receipt [14:57:13]cmd_close_receipt [14:57:13]MH_GetDate [14:57:13]Write to MH i2c: F0 00 00 8F 01 7F [14:57:13]Write i2c OK [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: F0 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: F0 09 00 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: F0 09 00 8F 01 00 4A 5C A6 66 90 0F 3E 66 7D [14:57:13]GetLastDocTimeStamp 1722178529 [14:57:13]current date 1722178634 [14:57:13]FM_GetShiftState [14:57:13]SAM_PROTO_GetShiftState [14:57:13]wFMCommunicate request_size=4 [14:57:13]MH_SAM_APDU [14:57:13]CAPDU: 80 13 01 00 [14:57:13]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [14:57:13]Write i2c OK [14:57:13]MH_I2C_Read... [14:57:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:13]Read from MH i2c: E2 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: E2 0E 00 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 E5 [14:57:13]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [14:57:13]wFMCommunicate OK [14:57:13]SAM_PROTO_GetShiftState done [14:57:13]FM_GetShiftState done [14:57:13]opened in 1722125364 [14:57:13]opened+sec_in_day 1722211764 [14:57:13]quantity*price = 30035 [14:57:13]sum+1 = 30036 [14:57:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 170 28.07.2024 14:57 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118501 ФПД: 106433188247682 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T145714&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118501&fm=106433188247682&tin=02508201610067®Number=0000000000092660&sum=30000 [14:57:14]StoreToDocumentArchive [14:57:14]shift 433 fd 118501 [14:57:14]save to /storage/0433/doc_00118501 [14:57:14]save last doc name /storage/0433/doc_00118501 to /storage/kkm_last_doc_name [14:57:14]save OK [14:57:14]Clear old archive folders... [14:57:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:57:14]tlvbuf is B6E118B0 [14:57:14]SAM_PROTO_ClearQueue [14:57:14]wFMCommunicate request_size=4 [14:57:14]MH_SAM_APDU [14:57:14]CAPDU: 80 09 00 00 [14:57:14]Write to MH i2c: E2 08 00 9D 01 80 09 00 00 00 00 00 00 10 [14:57:14]Write i2c OK [14:57:14]MH_I2C_Read... [14:57:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:15]Read from MH i2c: E2 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: E2 03 00 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [14:57:15]RAPDU: 90 00 [14:57:15]wFMCommunicate OK [14:57:15]SAM_PROTO_ClearQueue done [14:57:15]KKMCreateOFDPacket [14:57:15]OFDProtocolAddRootSTLVToBuf [14:57:15]FM_MakeSignedData [14:57:15]FM_MakeSignedData [14:57:15]SAM_PROTO_SignData [14:57:15]wFMCommunicate request_size=4 [14:57:15]MH_SAM_APDU [14:57:15]CAPDU: 80 0D 01 02 [14:57:15]Write to MH i2c: E2 08 00 9E 01 80 0D 01 02 00 00 00 00 18 [14:57:15]Write i2c OK [14:57:15]MH_I2C_Read... [14:57:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:15]Read from MH i2c: E2 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: E2 03 00 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [14:57:15]RAPDU: 90 00 [14:57:15]wFMCommunicate OK [14:57:15]wFMCommunicate request_size=255 [14:57:15]MH_SAM_APDU [14:57:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 4A 5C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E5 CE 01 00 35 04 06 00 60 [14:57:15]Write to MH i2c: E2 02 01 9F 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 4A 5C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E5 CE 01 00 35 04 06 00 60 00 00 DD [14:57:15]Write i2c OK [14:57:15]MH_I2C_Read... [14:57:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:15]Read from MH i2c: E2 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: E2 03 00 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [14:57:15]RAPDU: 90 00 [14:57:15]wFMCommunicate OK [14:57:15]wFMCommunicate request_size=10 [14:57:15]MH_SAM_APDU [14:57:15]CAPDU: 80 0D 02 02 05 CC E8 60 B8 82 [14:57:15]Write to MH i2c: E2 0D 00 A0 01 80 0D 02 02 05 00 CC E8 60 B8 82 00 00 73 [14:57:15]Write i2c OK [14:57:15]MH_I2C_Read... [14:57:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:15]Read from MH i2c: E2 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: E2 03 00 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [14:57:15]RAPDU: 90 00 [14:57:15]wFMCommunicate OK [14:57:15]wFMCommunicate request_size=4 [14:57:15]MH_SAM_APDU [14:57:15]CAPDU: 80 0D 03 02 [14:57:15]Write to MH i2c: E2 08 00 A1 01 80 0D 03 02 00 00 00 00 1D [14:57:15]Write i2c OK [14:57:15]MH_I2C_Read... [14:57:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:15]Read from MH i2c: E2 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: E2 0B 00 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: E2 0B 00 A1 01 00 FF BF C7 1C 51 25 3E 7C 90 00 EF [14:57:15]RAPDU: FF BF C7 1C 51 25 3E 7C 90 00 [14:57:15]wFMCommunicate OK [14:57:15]SAM_PROTO_SignData done [14:57:15]FM_MakeSignedData done [14:57:15]CreateOFDProtocolMessage [14:57:15]wFMCommunicate request_size=4 [14:57:15]MH_SAM_APDU [14:57:15]CAPDU: 80 11 00 00 [14:57:15]Write to MH i2c: E2 08 00 A2 01 80 11 00 00 00 00 00 00 1D [14:57:15]Write i2c OK [14:57:15]MH_I2C_Read... [14:57:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:15]Read from MH i2c: E2 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: E2 17 00 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: E2 17 00 A2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 78 [14:57:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:57:15]wFMCommunicate OK [14:57:15]CreateOFDProtocolMessage done [14:57:15]OFDSenderStorePacket 118501 [14:57:15]StoreOFDPacket docnum=118501 [14:57:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 81 5E 07 01 76 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 4A 5C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E5 CE 01 00 35 04 06 00 60 CC E8 60 B8 82 FF BF C7 1C 51 25 3E 7C [14:57:15]CheckFolder [14:57:15]dirname=/storage/ofd_packets [14:57:15]CheckFolder done [14:57:15]ProducePacketName [14:57:15]name=ofd_packets/00118501 [14:57:15]NVStorageSaveData ofd_packets/00118501 [14:57:15]File name is /storage/ofd_packets/00118501 [14:57:15]Write 301 bytes [14:57:15]NVStorageSaveData done [14:57:15]OFDSenderStorePacket done [14:57:15]KKMCreateOFDPacket done [14:57:15]NVStorageSaveData kkm_last_timestamp [14:57:15]File name is /storage/kkm_last_timestamp [14:57:15]Write 4 bytes [14:57:15]NVStorageSaveData done [14:57:15]ExternCall_PrintAddStr [14:57:15]wPrintStart [14:57:15]Write to MH i2c: 01 00 00 A3 01 A4 [14:57:15]Write i2c OK [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: 01 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: 01 07 00 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: 01 07 00 A3 01 00 00 00 00 00 FF 0F B9 [14:57:15]RasterBufferAndPrint [14:57:15]line Счет N : (1)949372 [14:57:15]line ИНН: 02508201610067 [14:57:15]line Контрольно-Кассовый Чек [14:57:15]line ПРОДАЖА [14:57:15]line ТРК (МРК, ГНК) : 41 [14:57:15]line Товар: 2710124130 [14:57:15]line Аи-92-К-4 [14:57:15]line 4.430 * 67.80 [14:57:15]line = 300.35 [14:57:15]line НДС 12% НСП 1% [14:57:15]line > о реализуемом товаре [14:57:15]line ОКРУГЛЕНИЕ: -0.35 [14:57:15]line ИТОГО: 300.00 [14:57:15]line Внесено: 300.00 [14:57:15]line СДАЧА: 0.00 [14:57:15]line НСП 1% : 2.66 [14:57:15]line НДС 12% : 31.90 [14:57:15]line Наличными: 300.00 [14:57:15]line Безнал.: 0.00 [14:57:15]line Место: АЗС № 134 "Партнер Нефть" [14:57:15]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:57:15]line СНО: Общий режим [14:57:15]line Чек 170 28.07.2024 14:57 [14:57:15]line Смена: 433 ФФД: 1.0 [14:57:15]line ЗНМ: 0300000044 [14:57:15]line РНМ: 0000000000092660 [14:57:15]line Версия ККМ: 001 [14:57:15]line ФМ: 0000000000874939 [14:57:15]line ФД: 118501 [14:57:15]line ФПД: 106433188247682 [14:57:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T145714&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118501&fm=106433188247682&tin=02508201610067®Number=0000000000092660&sum=30000 [14:57:15]OFD Sender: Processing packet 118501 [packets to send 86, broken 85] [14:57:15]ProducePacketName [14:57:15]name=ofd_packets/00118501 [14:57:15]OFD Sender: To server: pG, [14:57:15]CommunicateWithHost lk.salyk.kg:30040 [14:57:15]ConnectInit lk.salyk.kg [14:57:15]written 0, free lines is 4095 [14:57:15]Connected sock=10 [14:57:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 81 5E 07 01 76 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 4A 5C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E5 CE 01 00 35 04 06 00 60 CC E8 60 B8 82 FF BF C7 1C 51 25 3E 7C [14:57:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C5 51 47 00 80 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 39 33 39 10 04 04 00 E5 CE 01 00 F4 03 04 00 DA 09 A6 66 B6 04 01 00 00 2A AB B0 F2 BF 4A E1 70 [14:57:16]CommunicateWithHost err = 0 [14:57:16]CheckOFDResponse [14:57:16]1017 (14) - 77093643461234 [14:57:16]1041 (16) - 0000000000874939 [14:57:16]1040 (4) - 118501 [14:57:16]1012 (4) - 28.07.2024 09:05 [14:57:16]1206 (1) - 0 [14:57:16]OFD Sender: Remove packet 118501 [14:57:16]ProducePacketName [14:57:16]name=ofd_packets/00118501 [14:57:16]NVStorageDeleteData [14:57:16]Write to MH i2c: 01 00 00 CD 01 CE [14:57:16]Write i2c OK [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: 01 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: 01 07 00 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: 01 07 00 CD 01 00 00 00 00 00 DC 0C BD [14:57:16]RasterBufferAndPrint [14:57:16]line [14:57:16]line [14:57:16]line [14:57:16]line [14:57:16]line [14:57:16]written 0, free lines is 3298 [14:57:16]MH_Cut [14:57:16]Write to MH i2c: D1 01 00 D4 01 01 A7 [14:57:16]Write i2c OK [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: D1 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: D1 01 00 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: D1 01 00 D4 01 00 A6 [14:57:16]Write to MH i2c: 01 00 00 D5 01 D6 [14:57:16]Write i2c OK [14:57:16]MH_I2C_Read... [14:57:16]OFD Sender: No OFD packet to send [14:57:17]*** Cut start [14:57:17]*** Partial cut [14:57:17]*** CUTSNS_PIN = 1 [14:57:17]*** CUTSNS_PIN = 0 [14:57:17]*** Brake cut motor [14:57:17]Read from MH i2c: 01 [14:57:17]MH_I2C_Read... [14:57:17]*** Stop cut motor [14:57:17]*** Cut end [14:57:17]Read from MH i2c: 01 07 00 [14:57:17]MH_I2C_Read... [14:57:17]Read from MH i2c: 01 07 00 D5 01 00 00 00 00 00 FF 0F EB [14:57:17]process_action close_receipt done [14:57:17]requested_data is exist [14:57:17]produce_requested_data [14:57:17]requested_item fm.sn is exist - process it [14:57:17]wFMCommunicate request_size=4 [14:57:17]MH_SAM_APDU [14:57:17]CAPDU: 80 11 00 00 [14:57:17]Write to MH i2c: E2 08 00 D6 01 80 11 00 00 00 00 00 00 51 [14:57:17]Write i2c OK [14:57:17]MH_I2C_Read... [14:57:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:17]Read from MH i2c: E2 [14:57:17]MH_I2C_Read... [14:57:17]Read from MH i2c: E2 17 00 [14:57:17]MH_I2C_Read... [14:57:17]Read from MH i2c: E2 17 00 D6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AC [14:57:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:57:17]wFMCommunicate OK [14:57:17]requested_item fd.num is exist - process it [14:57:17]SAM_PROTO_GetFieldsCounters [14:57:17]wFMCommunicate request_size=4 [14:57:17]MH_SAM_APDU [14:57:17]CAPDU: 80 13 00 00 [14:57:17]Write to MH i2c: E2 08 00 D7 01 80 13 00 00 00 00 00 00 54 [14:57:17]Write i2c OK [14:57:17]MH_I2C_Read... [14:57:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:17]Read from MH i2c: E2 [14:57:17]MH_I2C_Read... [14:57:17]Read from MH i2c: E2 62 00 [14:57:17]MH_I2C_Read... [14:57:17]Read from MH i2c: E2 62 00 D7 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E5 CE 01 00 0E 04 04 00 B1 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 DF [14:57:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E5 CE 01 00 0E 04 04 00 B1 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 [14:57:17]wFMCommunicate OK [14:57:17]SAM_PROTO_GetFieldsCounters done [14:57:17]requested_item shift.num is exist - process it [14:57:17]requested_item shift.opened is exist - process it [14:57:17]req_shift_opened [14:57:17]FM_GetShiftState [14:57:17]SAM_PROTO_GetShiftState [14:57:17]wFMCommunicate request_size=4 [14:57:17]MH_SAM_APDU [14:57:17]CAPDU: 80 13 01 00 [14:57:17]Write to MH i2c: E2 08 00 D8 01 80 13 01 00 00 00 00 00 56 [14:57:17]Write i2c OK [14:57:17]MH_I2C_Read... [14:57:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:17]Read from MH i2c: E2 [14:57:17]MH_I2C_Read... [14:57:17]Read from MH i2c: E2 0E 00 [14:57:17]MH_I2C_Read... [14:57:17]Read from MH i2c: E2 0E 00 D8 01 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 2D [14:57:17]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [14:57:17]wFMCommunicate OK [14:57:17]SAM_PROTO_GetShiftState done [14:57:17]FM_GetShiftState done [14:57:17]req_shift_opened done [14:57:17]requested_item shift.open_date is exist - process it [14:57:17]req_shift_open_date [14:57:17]req_shift_open_date done [14:57:17]produce_requested_data done [14:57:17]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118501,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [14:57:17]process_action_free close_receipt [14:57:17]json_value_free [14:57:17]json_value_free done [14:57:17]process_json_proto returns [14:57:17]Send response to host [14:57:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118501,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [14:57:17]free response buf [14:57:17]execute_script done [14:57:17]execute_script returns [14:57:17]free content buf [14:57:17]Sock 7.Close socket [14:57:17]Sock 7.Thread stoped [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:00]accept exits with 9 [14:59:00]New connection [14:59:00]New thread 3067383140 created [14:59:00]Thread 3067239780 joined [14:59:00]Waiting for new connection... [14:59:00] Sock 9.Parse request [14:59:00]Sock 9.Check first char [14:59:00]Sock 9.First char is OK [14:59:00]request: POST /json_proto HTTP/1.0 [14:59:00]Method: POST [14:59:00]URL: /json_proto [14:59:00]Method is POST - this is cgi request [14:59:00]url: /json_proto [14:59:00]query_string will be loaded in cgi processing [14:59:00]execute_cgi json_proto POST (null) [14:59:00]execute_cgi path=json_proto method=POST [14:59:00]POST find Content-Length [14:59:00]Host: 172.17.45.7:8080 [14:59:00]Content-Length: 822 [14:59:00]Content-Type: application/json [14:59:00] [14:59:00]POST finish read [14:59:00]Found Content-Length = 822 [14:59:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:00]execute_script... [14:59: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)949373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:00]POST & json_proto [14:59:00]process_json_proto [14:59:00]json parsed OK: [14:59:00]protocol is kg_v1.0 [14:59:00]action value=close_receipt [14:59:00]process_action close_receipt [14:59:00]cmd_close_receipt [14:59:00]MH_GetDate [14:59:00]Write to MH i2c: F0 00 00 D9 01 C9 [14:59:00]Write i2c OK [14:59:00]MH_I2C_Read... [14:59:00]Read from MH i2c: F0 [14:59:00]MH_I2C_Read... [14:59:00]Read from MH i2c: F0 09 00 [14:59:00]MH_I2C_Read... [14:59:00]Read from MH i2c: F0 09 00 D9 01 00 B5 5C A6 66 90 0F 3E 66 32 [14:59:00]GetLastDocTimeStamp 1722178634 [14:59:00]current date 1722178741 [14:59:00]FM_GetShiftState [14:59:00]SAM_PROTO_GetShiftState [14:59:00]wFMCommunicate request_size=4 [14:59:00]MH_SAM_APDU [14:59:00]CAPDU: 80 13 01 00 [14:59:00]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [14:59:00]Write i2c OK [14:59:00]MH_I2C_Read... [14:59:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:00]Read from MH i2c: E2 [14:59:00]MH_I2C_Read... [14:59:00]Read from MH i2c: E2 0E 00 [14:59:00]MH_I2C_Read... [14:59:00]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 2F [14:59:00]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [14:59:00]wFMCommunicate OK [14:59:00]SAM_PROTO_GetShiftState done [14:59:00]FM_GetShiftState done [14:59:00]opened in 1722125364 [14:59:00]opened+sec_in_day 1722211764 [14:59:00]quantity*price = 200010 [14:59:00]sum+1 = 200011 [14:59:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 171 28.07.2024 14:59 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118502 ФПД: 17470294171614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T145901&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118502&fm=17470294171614&tin=02508201610067®Number=0000000000092660&sum=200000 [14:59:01]StoreToDocumentArchive [14:59:01]shift 433 fd 118502 [14:59:01]save to /storage/0433/doc_00118502 [14:59:01]save last doc name /storage/0433/doc_00118502 to /storage/kkm_last_doc_name [14:59:01]save OK [14:59:01]Clear old archive folders... [14:59:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:59:01]tlvbuf is 01E49370 [14:59:01]SAM_PROTO_ClearQueue [14:59:01]wFMCommunicate request_size=4 [14:59:01]MH_SAM_APDU [14:59:01]CAPDU: 80 09 00 00 [14:59:01]Write to MH i2c: E2 08 00 E7 01 80 09 00 00 00 00 00 00 5A [14:59:01]Write i2c OK [14:59:01]MH_I2C_Read... [14:59:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:01]Read from MH i2c: E2 [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: E2 03 00 [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [14:59:01]RAPDU: 90 00 [14:59:01]wFMCommunicate OK [14:59:01]SAM_PROTO_ClearQueue done [14:59:01]KKMCreateOFDPacket [14:59:01]OFDProtocolAddRootSTLVToBuf [14:59:01]FM_MakeSignedData [14:59:01]FM_MakeSignedData [14:59:01]SAM_PROTO_SignData [14:59:01]wFMCommunicate request_size=4 [14:59:01]MH_SAM_APDU [14:59:01]CAPDU: 80 0D 01 02 [14:59:01]Write to MH i2c: E2 08 00 E8 01 80 0D 01 02 00 00 00 00 62 [14:59:01]Write i2c OK [14:59:01]MH_I2C_Read... [14:59:01]OFD Sender: No OFD packet to send [14:59:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:01]Read from MH i2c: E2 [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: E2 03 00 [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [14:59:01]RAPDU: 90 00 [14:59:01]wFMCommunicate OK [14:59:01]wFMCommunicate request_size=255 [14:59:01]MH_SAM_APDU [14:59:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 B5 5C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E6 CE 01 00 35 04 06 00 0F [14:59:01]Write to MH i2c: E2 02 01 E9 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 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 B5 5C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E6 CE 01 00 35 04 06 00 0F 00 00 28 [14:59:01]Write i2c OK [14:59:01]MH_I2C_Read... [14:59:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:02]Read from MH i2c: E2 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: E2 03 00 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [14:59:02]RAPDU: 90 00 [14:59:02]wFMCommunicate OK [14:59:02]wFMCommunicate request_size=10 [14:59:02]MH_SAM_APDU [14:59:02]CAPDU: 80 0D 02 02 05 E3 9E AD 9F DE [14:59:02]Write to MH i2c: E2 0D 00 EA 01 80 0D 02 02 05 00 E3 9E AD 9F DE 00 00 1A [14:59:02]Write i2c OK [14:59:02]MH_I2C_Read... [14:59:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:02]Read from MH i2c: E2 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: E2 03 00 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [14:59:02]RAPDU: 90 00 [14:59:02]wFMCommunicate OK [14:59:02]wFMCommunicate request_size=4 [14:59:02]MH_SAM_APDU [14:59:02]CAPDU: 80 0D 03 02 [14:59:02]Write to MH i2c: E2 08 00 EB 01 80 0D 03 02 00 00 00 00 67 [14:59:02]Write i2c OK [14:59:02]MH_I2C_Read... [14:59:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:02]Read from MH i2c: E2 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: E2 0B 00 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: E2 0B 00 EB 01 00 A3 22 7D 48 1C 00 43 A7 90 00 F8 [14:59:02]RAPDU: A3 22 7D 48 1C 00 43 A7 90 00 [14:59:02]wFMCommunicate OK [14:59:02]SAM_PROTO_SignData done [14:59:02]FM_MakeSignedData done [14:59:02]CreateOFDProtocolMessage [14:59:02]wFMCommunicate request_size=4 [14:59:02]MH_SAM_APDU [14:59:02]CAPDU: 80 11 00 00 [14:59:02]Write to MH i2c: E2 08 00 EC 01 80 11 00 00 00 00 00 00 67 [14:59:02]Write i2c OK [14:59:02]MH_I2C_Read... [14:59:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:02]Read from MH i2c: E2 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: E2 17 00 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: E2 17 00 EC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C2 [14:59:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:59:02]wFMCommunicate OK [14:59:02]CreateOFDProtocolMessage done [14:59:02]OFDSenderStorePacket 118502 [14:59:02]StoreOFDPacket docnum=118502 [14:59:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 04 66 07 01 7E E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 B5 5C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E6 CE 01 00 35 04 06 00 0F E3 9E AD 9F DE A3 22 7D 48 1C 00 43 A7 [14:59:02]CheckFolder [14:59:02]dirname=/storage/ofd_packets [14:59:02]CheckFolder done [14:59:02]ProducePacketName [14:59:02]name=ofd_packets/00118502 [14:59:02]NVStorageSaveData ofd_packets/00118502 [14:59:02]File name is /storage/ofd_packets/00118502 [14:59:02]Write 301 bytes [14:59:02]NVStorageSaveData done [14:59:02]OFDSenderStorePacket done [14:59:02]KKMCreateOFDPacket done [14:59:02]NVStorageSaveData kkm_last_timestamp [14:59:02]File name is /storage/kkm_last_timestamp [14:59:02]Write 4 bytes [14:59:02]NVStorageSaveData done [14:59:02]ExternCall_PrintAddStr [14:59:02]wPrintStart [14:59:02]Write to MH i2c: 01 00 00 ED 01 EE [14:59:02]Write i2c OK [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: 01 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: 01 07 00 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: 01 07 00 ED 01 00 00 00 00 00 FF 0F 03 [14:59:02]RasterBufferAndPrint [14:59:02]line Счет N : (1)949373 [14:59:02]line ИНН: 02508201610067 [14:59:02]line Контрольно-Кассовый Чек [14:59:02]line ПРОДАЖА [14:59:02]line ТРК (МРК, ГНК) : 31 [14:59:02]line Товар: 2710124130 [14:59:02]line Аи-92-К-4 [14:59:02]line 29.500 * 67.80 [14:59:02]line = 2000.10 [14:59:02]line НДС 12% НСП 1% [14:59:02]line > о реализуемом товаре [14:59:02]line ОКРУГЛЕНИЕ: -0.10 [14:59:02]line ИТОГО: 2000.00 [14:59:02]line НСП 1% : 17.70 [14:59:02]line НДС 12% : 212.40 [14:59:02]line Наличными: 0.00 [14:59:02]line Безнал.: 2000.00 [14:59:02]line Место: АЗС № 134 "Партнер Нефть" [14:59:02]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:59:02]line СНО: Общий режим [14:59:02]line Чек 171 28.07.2024 14:59 [14:59:02]line Смена: 433 ФФД: 1.0 [14:59:02]line ЗНМ: 0300000044 [14:59:02]line РНМ: 0000000000092660 [14:59:02]line Версия ККМ: 001 [14:59:02]line Платежная система: O! деньги [14:59:02]line ФМ: 0000000000874939 [14:59:02]line ФД: 118502 [14:59:02]line ФПД: 17470294171614 [14:59:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T145901&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118502&fm=17470294171614&tin=02508201610067®Number=0000000000092660&sum=200000 [14:59:02]written 0, free lines is 4095 [14:59:02]OFD Sender: Processing packet 118502 [packets to send 86, broken 85] [14:59:02]ProducePacketName [14:59:02]name=ofd_packets/00118502 [14:59:02]OFD Sender: To server: pG, [14:59:02]CommunicateWithHost lk.salyk.kg:30040 [14:59:02]ConnectInit lk.salyk.kg [14:59:02]Connected sock=7 [14:59:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 04 66 07 01 7E E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 B5 5C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E6 CE 01 00 35 04 06 00 0F E3 9E AD 9F DE A3 22 7D 48 1C 00 43 A7 [14:59:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 13 88 47 00 B2 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 39 33 39 10 04 04 00 E6 CE 01 00 F4 03 04 00 45 0A A6 66 B6 04 01 00 00 6C E7 2F 4E 13 C5 E4 9E [14:59:02]CommunicateWithHost err = 0 [14:59:02]CheckOFDResponse [14:59:02]1017 (14) - 77093643461234 [14:59:02]1041 (16) - 0000000000874939 [14:59:02]1040 (4) - 118502 [14:59:02]1012 (4) - 28.07.2024 09:07 [14:59:02]1206 (1) - 0 [14:59:02]OFD Sender: Remove packet 118502 [14:59:02]ProducePacketName [14:59:02]name=ofd_packets/00118502 [14:59:02]NVStorageDeleteData [14:59:02]Write to MH i2c: 01 00 00 17 02 19 [14:59:02]Write i2c OK [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: 01 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: 01 07 00 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: 01 07 00 17 02 00 00 00 00 00 E9 0C 15 [14:59:02]RasterBufferAndPrint [14:59:02]line [14:59:02]line [14:59:02]line [14:59:02]line [14:59:02]line [14:59:02]written 0, free lines is 3311 [14:59:02]MH_Cut [14:59:02]Write to MH i2c: D1 01 00 1E 02 01 F2 [14:59:02]Write i2c OK [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: D1 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: D1 01 00 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: D1 01 00 1E 02 00 F1 [14:59:02]Write to MH i2c: 01 00 00 1F 02 21 [14:59:02]Write i2c OK [14:59:02]MH_I2C_Read... [14:59:03]OFD Sender: No OFD packet to send [14:59:03]*** Cut start [14:59:03]*** Partial cut [14:59:03]*** CUTSNS_PIN = 1 [14:59:03]*** CUTSNS_PIN = 0 [14:59:03]*** Brake cut motor [14:59:04]Read from MH i2c: 01 [14:59:04]MH_I2C_Read... [14:59:04]*** Stop cut motor [14:59:04]*** Cut end [14:59:04]Read from MH i2c: 01 07 00 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: 01 07 00 1F 02 00 00 00 00 00 FF 0F 36 [14:59:04]process_action close_receipt done [14:59:04]requested_data is exist [14:59:04]produce_requested_data [14:59:04]requested_item fm.sn is exist - process it [14:59:04]wFMCommunicate request_size=4 [14:59:04]MH_SAM_APDU [14:59:04]CAPDU: 80 11 00 00 [14:59:04]Write to MH i2c: E2 08 00 20 02 80 11 00 00 00 00 00 00 9C [14:59:04]Write i2c OK [14:59:04]MH_I2C_Read... [14:59:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:04]Read from MH i2c: E2 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: E2 17 00 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: E2 17 00 20 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F7 [14:59:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:59:04]wFMCommunicate OK [14:59:04]requested_item fd.num is exist - process it [14:59:04]SAM_PROTO_GetFieldsCounters [14:59:04]wFMCommunicate request_size=4 [14:59:04]MH_SAM_APDU [14:59:04]CAPDU: 80 13 00 00 [14:59:04]Write to MH i2c: E2 08 00 21 02 80 13 00 00 00 00 00 00 9F [14:59:04]Write i2c OK [14:59:04]MH_I2C_Read... [14:59:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:04]Read from MH i2c: E2 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: E2 62 00 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: E2 62 00 21 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E6 CE 01 00 0E 04 04 00 B1 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 2E [14:59:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E6 CE 01 00 0E 04 04 00 B1 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 [14:59:04]wFMCommunicate OK [14:59:04]SAM_PROTO_GetFieldsCounters done [14:59:04]requested_item shift.num is exist - process it [14:59:04]requested_item shift.opened is exist - process it [14:59:04]req_shift_opened [14:59:04]FM_GetShiftState [14:59:04]SAM_PROTO_GetShiftState [14:59:04]wFMCommunicate request_size=4 [14:59:04]MH_SAM_APDU [14:59:04]CAPDU: 80 13 01 00 [14:59:04]Write to MH i2c: E2 08 00 22 02 80 13 01 00 00 00 00 00 A1 [14:59:04]Write i2c OK [14:59:04]MH_I2C_Read... [14:59:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:04]Read from MH i2c: E2 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: E2 0E 00 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: E2 0E 00 22 02 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 78 [14:59:04]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [14:59:04]wFMCommunicate OK [14:59:04]SAM_PROTO_GetShiftState done [14:59:04]FM_GetShiftState done [14:59:04]req_shift_opened done [14:59:04]requested_item shift.open_date is exist - process it [14:59:04]req_shift_open_date [14:59:04]req_shift_open_date done [14:59:04]produce_requested_data done [14:59:04]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118502,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [14:59:04]process_action_free close_receipt [14:59:04]json_value_free [14:59:04]json_value_free done [14:59:04]process_json_proto returns [14:59:04]Send response to host [14:59:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118502,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [14:59:04]free response buf [14:59:04]execute_script done [14:59:04]execute_script returns [14:59:04]free content buf [14:59:04]Sock 9.Close socket [14:59:04]Sock 9.Thread stoped [14:59:08]OFD Sender: No OFD packet to send [14:59:13]OFD Sender: No OFD packet to send [14:59:18]OFD Sender: No OFD packet to send [14:59:23]OFD Sender: No OFD packet to send [14:59:28]OFD Sender: No OFD packet to send [14:59:33]OFD Sender: No OFD packet to send [14:59:38]OFD Sender: No OFD packet to send [14:59:43]OFD Sender: No OFD packet to send [14:59:48]OFD Sender: No OFD packet to send [14:59:53]OFD Sender: No OFD packet to send [14:59:58]OFD Sender: No OFD packet to send [15:00:03]OFD Sender: No OFD packet to send [15:00:08]OFD Sender: No OFD packet to send [15:00:13]OFD Sender: No OFD packet to send [15:00:18]OFD Sender: No OFD packet to send [15:00:23]OFD Sender: No OFD packet to send [15:00:28]OFD Sender: No OFD packet to send [15:00:33]OFD Sender: No OFD packet to send [15:00:38]OFD Sender: No OFD packet to send [15:00:43]OFD Sender: No OFD packet to send [15:00:48]OFD Sender: No OFD packet to send [15:00:49]accept exits with 10 [15:00:49]New connection [15:00:49]New thread 3067239780 created [15:00:49]Thread 3067383140 joined [15:00:49]Waiting for new connection... [15:00:49] Sock 10.Parse request [15:00:49]Sock 10.Check first char [15:00:49]Sock 10.First char is OK [15:00:49]request: POST /json_proto HTTP/1.0 [15:00:49]Method: POST [15:00:49]URL: /json_proto [15:00:49]Method is POST - this is cgi request [15:00:49]url: /json_proto [15:00:49]query_string will be loaded in cgi processing [15:00:49]execute_cgi json_proto POST (null) [15:00:49]execute_cgi path=json_proto method=POST [15:00:49]POST find Content-Length [15:00:49]Host: 172.17.45.7:8080 [15:00:49]Content-Length: 679 [15:00:49]Content-Type: application/json [15:00:49] [15:00:49]POST finish read [15:00:49]Found Content-Length = 679 [15:00:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:49]execute_script... [15:00: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)949374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:49]POST & json_proto [15:00:49]process_json_proto [15:00:49]json parsed OK: [15:00:49]protocol is kg_v1.0 [15:00:49]action value=close_receipt [15:00:49]process_action close_receipt [15:00:49]cmd_close_receipt [15:00:49]MH_GetDate [15:00:49]Write to MH i2c: F0 00 00 23 02 14 [15:00:49]Write i2c OK [15:00:49]MH_I2C_Read... [15:00:49]Read from MH i2c: F0 [15:00:49]MH_I2C_Read... [15:00:49]Read from MH i2c: F0 09 00 [15:00:49]MH_I2C_Read... [15:00:49]Read from MH i2c: F0 09 00 23 02 00 22 5D A6 66 90 0F 3E 66 EB [15:00:49]GetLastDocTimeStamp 1722178741 [15:00:49]current date 1722178850 [15:00:49]FM_GetShiftState [15:00:49]SAM_PROTO_GetShiftState [15:00:49]wFMCommunicate request_size=4 [15:00:49]MH_SAM_APDU [15:00:49]CAPDU: 80 13 01 00 [15:00:49]Write to MH i2c: E2 08 00 24 02 80 13 01 00 00 00 00 00 A3 [15:00:49]Write i2c OK [15:00:49]MH_I2C_Read... [15:00:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:49]Read from MH i2c: E2 [15:00:49]MH_I2C_Read... [15:00:49]Read from MH i2c: E2 0E 00 [15:00:49]MH_I2C_Read... [15:00:49]Read from MH i2c: E2 0E 00 24 02 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 7A [15:00:49]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:00:49]wFMCommunicate OK [15:00:49]SAM_PROTO_GetShiftState done [15:00:49]FM_GetShiftState done [15:00:49]opened in 1722125364 [15:00:49]opened+sec_in_day 1722211764 [15:00:49]quantity*price = 100050 [15:00:49]sum+1 = 100052 [15:00:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 172 28.07.2024 15:00 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118503 ФПД: 75409574413038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T150050&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118503&fm=75409574413038&tin=02508201610067®Number=0000000000092660&sum=100000 [15:00:50]StoreToDocumentArchive [15:00:50]shift 433 fd 118503 [15:00:50]save to /storage/0433/doc_00118503 [15:00:50]save last doc name /storage/0433/doc_00118503 to /storage/kkm_last_doc_name [15:00:50]save OK [15:00:50]Clear old archive folders... [15:00:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:00:50]tlvbuf is 01E7C9E0 [15:00:50]SAM_PROTO_ClearQueue [15:00:50]wFMCommunicate request_size=4 [15:00:50]MH_SAM_APDU [15:00:50]CAPDU: 80 09 00 00 [15:00:50]Write to MH i2c: E2 08 00 31 02 80 09 00 00 00 00 00 00 A5 [15:00:50]Write i2c OK [15:00:50]MH_I2C_Read... [15:00:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:50]Read from MH i2c: E2 [15:00:50]MH_I2C_Read... [15:00:50]Read from MH i2c: E2 03 00 [15:00:50]MH_I2C_Read... [15:00:50]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [15:00:50]RAPDU: 90 00 [15:00:50]wFMCommunicate OK [15:00:50]SAM_PROTO_ClearQueue done [15:00:50]KKMCreateOFDPacket [15:00:50]OFDProtocolAddRootSTLVToBuf [15:00:50]FM_MakeSignedData [15:00:50]FM_MakeSignedData [15:00:50]SAM_PROTO_SignData [15:00:50]wFMCommunicate request_size=4 [15:00:50]MH_SAM_APDU [15:00:50]CAPDU: 80 0D 01 02 [15:00:50]Write to MH i2c: E2 08 00 32 02 80 0D 01 02 00 00 00 00 AD [15:00:50]Write i2c OK [15:00:50]MH_I2C_Read... [15:00:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:50]Read from MH i2c: E2 [15:00:50]MH_I2C_Read... [15:00:50]Read from MH i2c: E2 03 00 [15:00:50]MH_I2C_Read... [15:00:50]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [15:00:50]RAPDU: 90 00 [15:00:50]wFMCommunicate OK [15:00:50]wFMCommunicate request_size=255 [15:00:50]MH_SAM_APDU [15:00:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 22 5D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E7 CE 01 00 35 04 06 00 44 95 A8 E5 [15:00:50]Write to MH i2c: E2 02 01 33 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 22 5D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E7 CE 01 00 35 04 06 00 44 95 A8 E5 00 00 42 [15:00:50]Write i2c OK [15:00:50]MH_I2C_Read... [15:00:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:50]Read from MH i2c: E2 [15:00:50]MH_I2C_Read... [15:00:50]Read from MH i2c: E2 03 00 [15:00:50]MH_I2C_Read... [15:00:50]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [15:00:50]RAPDU: 90 00 [15:00:50]wFMCommunicate OK [15:00:50]wFMCommunicate request_size=7 [15:00:50]MH_SAM_APDU [15:00:50]CAPDU: 80 0D 02 02 02 42 EE [15:00:50]Write to MH i2c: E2 0A 00 34 02 80 0D 02 02 02 00 42 EE 00 00 E4 [15:00:50]Write i2c OK [15:00:50]MH_I2C_Read... [15:00:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:50]Read from MH i2c: E2 [15:00:50]MH_I2C_Read... [15:00:50]Read from MH i2c: E2 03 00 [15:00:50]MH_I2C_Read... [15:00:50]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [15:00:50]RAPDU: 90 00 [15:00:50]wFMCommunicate OK [15:00:50]wFMCommunicate request_size=4 [15:00:50]MH_SAM_APDU [15:00:50]CAPDU: 80 0D 03 02 [15:00:50]Write to MH i2c: E2 08 00 35 02 80 0D 03 02 00 00 00 00 B2 [15:00:50]Write i2c OK [15:00:50]MH_I2C_Read... [15:00:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:50]Read from MH i2c: E2 [15:00:50]MH_I2C_Read... [15:00:50]Read from MH i2c: E2 0B 00 [15:00:50]MH_I2C_Read... [15:00:50]Read from MH i2c: E2 0B 00 35 02 00 49 29 18 04 8A 94 8E 85 90 00 72 [15:00:50]RAPDU: 49 29 18 04 8A 94 8E 85 90 00 [15:00:50]wFMCommunicate OK [15:00:50]SAM_PROTO_SignData done [15:00:50]FM_MakeSignedData done [15:00:50]CreateOFDProtocolMessage [15:00:50]wFMCommunicate request_size=4 [15:00:50]MH_SAM_APDU [15:00:50]CAPDU: 80 11 00 00 [15:00:50]Write to MH i2c: E2 08 00 36 02 80 11 00 00 00 00 00 00 B2 [15:00:50]Write i2c OK [15:00:50]MH_I2C_Read... [15:00:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:50]Read from MH i2c: E2 [15:00:50]MH_I2C_Read... [15:00:50]Read from MH i2c: E2 17 00 [15:00:50]MH_I2C_Read... [15:00:50]Read from MH i2c: E2 17 00 36 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0D [15:00:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:00:50]wFMCommunicate OK [15:00:50]CreateOFDProtocolMessage done [15:00:50]OFDSenderStorePacket 118503 [15:00:50]StoreOFDPacket docnum=118503 [15:00:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 BF 22 04 01 E6 CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 22 5D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E7 CE 01 00 35 04 06 00 44 95 A8 E5 42 EE 49 29 18 04 8A 94 8E 85 [15:00:50]CheckFolder [15:00:50]dirname=/storage/ofd_packets [15:00:50]CheckFolder done [15:00:50]ProducePacketName [15:00:50]name=ofd_packets/00118503 [15:00:50]NVStorageSaveData ofd_packets/00118503 [15:00:50]File name is /storage/ofd_packets/00118503 [15:00:50]Write 298 bytes [15:00:50]NVStorageSaveData done [15:00:50]OFDSenderStorePacket done [15:00:50]KKMCreateOFDPacket done [15:00:50]NVStorageSaveData kkm_last_timestamp [15:00:50]File name is /storage/kkm_last_timestamp [15:00:50]Write 4 bytes [15:00:50]NVStorageSaveData done [15:00:50]ExternCall_PrintAddStr [15:00:50]wPrintStart [15:00:50]Write to MH i2c: 01 00 00 37 02 39 [15:00:50]Write i2c OK [15:00:50]MH_I2C_Read... [15:00:50]Read from MH i2c: 01 [15:00:50]MH_I2C_Read... [15:00:50]Read from MH i2c: 01 07 00 [15:00:50]MH_I2C_Read... [15:00:50]Read from MH i2c: 01 07 00 37 02 00 00 00 00 00 FF 0F 4E [15:00:50]RasterBufferAndPrint [15:00:50]line Счет N : (1)949374 [15:00:50]line ИНН: 02508201610067 [15:00:50]line Контрольно-Кассовый Чек [15:00:50]line ПРОДАЖА [15:00:50]line ТРК (МРК, ГНК) : 44 [15:00:50]line Товар: 2710194800 [15:00:50]line ДТ-К-5 [15:00:50]line 13.130 * 76.20 [15:00:50]line = 1000.51 [15:00:50]line НДС 12% НСП 1% [15:00:50]line > о реализуемом товаре [15:00:50]line ОКРУГЛЕНИЕ: -0.51 [15:00:50]line ИТОГО: 1000.00 [15:00:50]line Внесено: 1000.00 [15:00:50]line СДАЧА: 0.00 [15:00:50]line НСП 1% : 8.85 [15:00:50]line НДС 12% : 106.25 [15:00:50]line Наличными: 1000.00 [15:00:50]line Безнал.: 0.00 [15:00:50]line Место: АЗС № 134 "Партнер Нефть" [15:00:50]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:00:50]line СНО: Общий режим [15:00:50]line Чек 172 28.07.2024 15:00 [15:00:50]line Смена: 433 ФФД: 1.0 [15:00:50]line ЗНМ: 0300000044 [15:00:50]line РНМ: 0000000000092660 [15:00:50]line Версия ККМ: 001 [15:00:50]line ФМ: 0000000000874939 [15:00:50]line ФД: 118503 [15:00:50]line ФПД: 75409574413038 [15:00:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T150050&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118503&fm=75409574413038&tin=02508201610067®Number=0000000000092660&sum=100000 [15:00:50]written 0, free lines is 4095 [15:00:50]OFD Sender: Processing packet 118503 [packets to send 86, broken 85] [15:00:50]ProducePacketName [15:00:50]name=ofd_packets/00118503 [15:00:50]OFD Sender: To server: pG, [15:00:50]CommunicateWithHost lk.salyk.kg:30040 [15:00:50]ConnectInit lk.salyk.kg [15:00:50]Connected sock=9 [15:00: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 39 33 39 0C 01 00 00 BF 22 04 01 E6 CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 22 5D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E7 CE 01 00 35 04 06 00 44 95 A8 E5 42 EE 49 29 18 04 8A 94 8E 85 [15:00:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 54 F6 47 00 EE 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E7 CE 01 00 F4 03 04 00 B1 0A A6 66 B6 04 01 00 00 C9 E9 B0 71 6A 3B 4B AC [15:00:51]CommunicateWithHost err = 0 [15:00:51]CheckOFDResponse [15:00:51]1017 (14) - 77093643461234 [15:00:51]1041 (16) - 0000000000874939 [15:00:51]1040 (4) - 118503 [15:00:51]1012 (4) - 28.07.2024 09:09 [15:00:51]1206 (1) - 0 [15:00:51]OFD Sender: Remove packet 118503 [15:00:51]ProducePacketName [15:00:51]name=ofd_packets/00118503 [15:00:51]NVStorageDeleteData [15:00:51]Write to MH i2c: 01 00 00 61 02 63 [15:00:51]Write i2c OK [15:00:51]MH_I2C_Read... [15:00:51]Read from MH i2c: 01 [15:00:51]MH_I2C_Read... [15:00:51]Read from MH i2c: 01 07 00 [15:00:51]MH_I2C_Read... [15:00:51]Read from MH i2c: 01 07 00 61 02 00 00 00 00 00 D9 0C 4F [15:00:51]RasterBufferAndPrint [15:00:51]line [15:00:51]line [15:00:51]line [15:00:51]line [15:00:51]line [15:00:51]written 0, free lines is 3294 [15:00:51]MH_Cut [15:00:51]Write to MH i2c: D1 01 00 68 02 01 3C [15:00:51]Write i2c OK [15:00:51]MH_I2C_Read... [15:00:51]Read from MH i2c: D1 [15:00:51]MH_I2C_Read... [15:00:51]Read from MH i2c: D1 01 00 [15:00:51]MH_I2C_Read... [15:00:51]Read from MH i2c: D1 01 00 68 02 00 3B [15:00:51]Write to MH i2c: 01 00 00 69 02 6B [15:00:51]Write i2c OK [15:00:51]MH_I2C_Read... [15:00:51]OFD Sender: No OFD packet to send [15:00:51]*** Cut start [15:00:51]*** Partial cut [15:00:51]*** CUTSNS_PIN = 1 [15:00:51]*** CUTSNS_PIN = 0 [15:00:52]*** Brake cut motor [15:00:52]Read from MH i2c: 01 [15:00:52]MH_I2C_Read... [15:00:52]*** Stop cut motor [15:00:52]*** Cut end [15:00:52]Read from MH i2c: 01 07 00 [15:00:52]MH_I2C_Read... [15:00:52]Read from MH i2c: 01 07 00 69 02 00 00 00 00 00 FF 0F 80 [15:00:52]process_action close_receipt done [15:00:52]requested_data is exist [15:00:52]produce_requested_data [15:00:52]requested_item fm.sn is exist - process it [15:00:52]wFMCommunicate request_size=4 [15:00:52]MH_SAM_APDU [15:00:52]CAPDU: 80 11 00 00 [15:00:52]Write to MH i2c: E2 08 00 6A 02 80 11 00 00 00 00 00 00 E6 [15:00:52]Write i2c OK [15:00:52]MH_I2C_Read... [15:00:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:52]Read from MH i2c: E2 [15:00:52]MH_I2C_Read... [15:00:52]Read from MH i2c: E2 17 00 [15:00:52]MH_I2C_Read... [15:00:52]Read from MH i2c: E2 17 00 6A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 41 [15:00:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:00:52]wFMCommunicate OK [15:00:52]requested_item fd.num is exist - process it [15:00:52]SAM_PROTO_GetFieldsCounters [15:00:52]wFMCommunicate request_size=4 [15:00:52]MH_SAM_APDU [15:00:52]CAPDU: 80 13 00 00 [15:00:52]Write to MH i2c: E2 08 00 6B 02 80 13 00 00 00 00 00 00 E9 [15:00:52]Write i2c OK [15:00:52]MH_I2C_Read... [15:00:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:52]Read from MH i2c: E2 [15:00:52]MH_I2C_Read... [15:00:52]Read from MH i2c: E2 62 00 [15:00:52]MH_I2C_Read... [15:00:52]Read from MH i2c: E2 62 00 6B 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E7 CE 01 00 0E 04 04 00 B1 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 7C [15:00:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E7 CE 01 00 0E 04 04 00 B1 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 [15:00:52]wFMCommunicate OK [15:00:52]SAM_PROTO_GetFieldsCounters done [15:00:52]requested_item shift.num is exist - process it [15:00:52]requested_item shift.opened is exist - process it [15:00:52]req_shift_opened [15:00:52]FM_GetShiftState [15:00:52]SAM_PROTO_GetShiftState [15:00:52]wFMCommunicate request_size=4 [15:00:52]MH_SAM_APDU [15:00:52]CAPDU: 80 13 01 00 [15:00:52]Write to MH i2c: E2 08 00 6C 02 80 13 01 00 00 00 00 00 EB [15:00:52]Write i2c OK [15:00:52]MH_I2C_Read... [15:00:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:52]Read from MH i2c: E2 [15:00:52]MH_I2C_Read... [15:00:52]Read from MH i2c: E2 0E 00 [15:00:52]MH_I2C_Read... [15:00:52]Read from MH i2c: E2 0E 00 6C 02 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 C2 [15:00:52]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:00:52]wFMCommunicate OK [15:00:52]SAM_PROTO_GetShiftState done [15:00:52]FM_GetShiftState done [15:00:52]req_shift_opened done [15:00:52]requested_item shift.open_date is exist - process it [15:00:52]req_shift_open_date [15:00:52]req_shift_open_date done [15:00:52]produce_requested_data done [15:00:52]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118503,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [15:00:52]process_action_free close_receipt [15:00:52]json_value_free [15:00:52]json_value_free done [15:00:52]process_json_proto returns [15:00:52]Send response to host [15:00:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118503,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [15:00:52]free response buf [15:00:52]execute_script done [15:00:52]execute_script returns [15:00:52]free content buf [15:00:52]Sock 10.Close socket [15:00:52]Sock 10.Thread stoped [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:42]accept exits with 7 [15:02:42]New connection [15:02:42]New thread 3067383140 created [15:02:42]Thread 3067239780 joined [15:02:42]Waiting for new connection... [15:02:42] Sock 7.Parse request [15:02:42]Sock 7.Check first char [15:02:42]Sock 7.First char is OK [15:02:42]request: POST /json_proto HTTP/1.0 [15:02:42]Method: POST [15:02:42]URL: /json_proto [15:02:42]Method is POST - this is cgi request [15:02:42]url: /json_proto [15:02:42]query_string will be loaded in cgi processing [15:02:42]execute_cgi json_proto POST (null) [15:02:42]execute_cgi path=json_proto method=POST [15:02:42]POST find Content-Length [15:02:42]Host: 172.17.45.7:8080 [15:02:42]Content-Length: 674 [15:02:42]Content-Type: application/json [15:02:42] [15:02:42]POST finish read [15:02:42]Found Content-Length = 674 [15:02:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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:02:42]execute_script... [15:02: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)949375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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:02:42]POST & json_proto [15:02:42]process_json_proto [15:02:42]json parsed OK: [15:02:42]protocol is kg_v1.0 [15:02:42]action value=close_receipt [15:02:42]process_action close_receipt [15:02:42]cmd_close_receipt [15:02:42]MH_GetDate [15:02:42]Write to MH i2c: F0 00 00 6D 02 5E [15:02:42]Write i2c OK [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: F0 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: F0 09 00 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: F0 09 00 6D 02 00 93 5D A6 66 90 0F 3E 66 A6 [15:02:42]GetLastDocTimeStamp 1722178850 [15:02:42]current date 1722178963 [15:02:42]FM_GetShiftState [15:02:42]SAM_PROTO_GetShiftState [15:02:42]wFMCommunicate request_size=4 [15:02:42]MH_SAM_APDU [15:02:42]CAPDU: 80 13 01 00 [15:02:42]Write to MH i2c: E2 08 00 6E 02 80 13 01 00 00 00 00 00 ED [15:02:42]Write i2c OK [15:02:42]MH_I2C_Read... [15:02:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:42]Read from MH i2c: E2 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: E2 0E 00 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: E2 0E 00 6E 02 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 C4 [15:02:42]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:02:42]wFMCommunicate OK [15:02:42]SAM_PROTO_GetShiftState done [15:02:42]FM_GetShiftState done [15:02:42]opened in 1722125364 [15:02:42]opened+sec_in_day 1722211764 [15:02:42]quantity*price = 40005 [15:02:42]sum+1 = 40006 [15:02:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 173 28.07.2024 15:02 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118504 ФПД: 108581587080262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T150243&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118504&fm=108581587080262&tin=02508201610067®Number=0000000000092660&sum=40000 [15:02:43]StoreToDocumentArchive [15:02:43]shift 433 fd 118504 [15:02:43]save to /storage/0433/doc_00118504 [15:02:43]save last doc name /storage/0433/doc_00118504 to /storage/kkm_last_doc_name [15:02:43]save OK [15:02:43]Clear old archive folders... [15:02:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:02:43]tlvbuf is 01E47290 [15:02:43]SAM_PROTO_ClearQueue [15:02:43]wFMCommunicate request_size=4 [15:02:43]MH_SAM_APDU [15:02:43]CAPDU: 80 09 00 00 [15:02:43]Write to MH i2c: E2 08 00 7B 02 80 09 00 00 00 00 00 00 EF [15:02:43]Write i2c OK [15:02:43]MH_I2C_Read... [15:02:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:02:43]Read from MH i2c: E2 [15:02:43]MH_I2C_Read... [15:02:43]Read from MH i2c: E2 03 00 [15:02:43]MH_I2C_Read... [15:02:43]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [15:02:43]RAPDU: 90 00 [15:02:43]wFMCommunicate OK [15:02:43]SAM_PROTO_ClearQueue done [15:02:43]KKMCreateOFDPacket [15:02:43]OFDProtocolAddRootSTLVToBuf [15:02:43]FM_MakeSignedData [15:02:43]FM_MakeSignedData [15:02:43]SAM_PROTO_SignData [15:02:43]wFMCommunicate request_size=4 [15:02:43]MH_SAM_APDU [15:02:43]CAPDU: 80 0D 01 02 [15:02:43]Write to MH i2c: E2 08 00 7C 02 80 0D 01 02 00 00 00 00 F7 [15:02:43]Write i2c OK [15:02:43]MH_I2C_Read... [15:02:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:02:43]Read from MH i2c: E2 [15:02:43]MH_I2C_Read... [15:02:43]Read from MH i2c: E2 03 00 [15:02:43]MH_I2C_Read... [15:02:43]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [15:02:43]RAPDU: 90 00 [15:02:43]wFMCommunicate OK [15:02:43]wFMCommunicate request_size=255 [15:02:43]MH_SAM_APDU [15:02:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 AD 00 00 00 F4 03 04 00 93 5D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E8 CE 01 00 35 04 06 00 62 C1 1E ED [15:02:43]Write to MH i2c: E2 02 01 7D 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 AD 00 00 00 F4 03 04 00 93 5D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E8 CE 01 00 35 04 06 00 62 C1 1E ED 00 00 BA [15:02:43]Write i2c OK [15:02:43]MH_I2C_Read... [15:02:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:44]Read from MH i2c: E2 [15:02:44]MH_I2C_Read... [15:02:44]Read from MH i2c: E2 03 00 [15:02:44]MH_I2C_Read... [15:02:44]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [15:02:44]RAPDU: 90 00 [15:02:44]wFMCommunicate OK [15:02:44]wFMCommunicate request_size=7 [15:02:44]MH_SAM_APDU [15:02:44]CAPDU: 80 0D 02 02 02 54 46 [15:02:44]Write to MH i2c: E2 0A 00 7E 02 80 0D 02 02 02 00 54 46 00 00 98 [15:02:44]Write i2c OK [15:02:44]MH_I2C_Read... [15:02:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:44]Read from MH i2c: E2 [15:02:44]MH_I2C_Read... [15:02:44]Read from MH i2c: E2 03 00 [15:02:44]MH_I2C_Read... [15:02:44]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [15:02:44]RAPDU: 90 00 [15:02:44]wFMCommunicate OK [15:02:44]wFMCommunicate request_size=4 [15:02:44]MH_SAM_APDU [15:02:44]CAPDU: 80 0D 03 02 [15:02:44]Write to MH i2c: E2 08 00 7F 02 80 0D 03 02 00 00 00 00 FC [15:02:44]Write i2c OK [15:02:44]MH_I2C_Read... [15:02:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:02:44]Read from MH i2c: E2 [15:02:44]MH_I2C_Read... [15:02:44]Read from MH i2c: E2 0B 00 [15:02:44]MH_I2C_Read... [15:02:44]Read from MH i2c: E2 0B 00 7F 02 00 2C 60 A6 13 0F EB D1 55 90 00 62 [15:02:44]RAPDU: 2C 60 A6 13 0F EB D1 55 90 00 [15:02:44]wFMCommunicate OK [15:02:44]SAM_PROTO_SignData done [15:02:44]FM_MakeSignedData done [15:02:44]CreateOFDProtocolMessage [15:02:44]wFMCommunicate request_size=4 [15:02:44]MH_SAM_APDU [15:02:44]CAPDU: 80 11 00 00 [15:02:44]Write to MH i2c: E2 08 00 80 02 80 11 00 00 00 00 00 00 FC [15:02:44]Write i2c OK [15:02:44]MH_I2C_Read... [15:02:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:44]Read from MH i2c: E2 [15:02:44]MH_I2C_Read... [15:02:44]Read from MH i2c: E2 17 00 [15:02:44]MH_I2C_Read... [15:02:44]Read from MH i2c: E2 17 00 80 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 57 [15:02:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:02:44]wFMCommunicate OK [15:02:44]CreateOFDProtocolMessage done [15:02:44]OFDSenderStorePacket 118504 [15:02:44]StoreOFDPacket docnum=118504 [15:02:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 0A CB 04 01 03 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 AD 00 00 00 F4 03 04 00 93 5D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E8 CE 01 00 35 04 06 00 62 C1 1E ED 54 46 2C 60 A6 13 0F EB D1 55 [15:02:44]CheckFolder [15:02:44]dirname=/storage/ofd_packets [15:02:44]CheckFolder done [15:02:44]ProducePacketName [15:02:44]name=ofd_packets/00118504 [15:02:44]NVStorageSaveData ofd_packets/00118504 [15:02:44]File name is /storage/ofd_packets/00118504 [15:02:44]Write 298 bytes [15:02:44]NVStorageSaveData done [15:02:44]OFDSenderStorePacket done [15:02:44]KKMCreateOFDPacket done [15:02:44]NVStorageSaveData kkm_last_timestamp [15:02:44]File name is /storage/kkm_last_timestamp [15:02:44]Write 4 bytes [15:02:44]NVStorageSaveData done [15:02:44]ExternCall_PrintAddStr [15:02:44]wPrintStart [15:02:44]Write to MH i2c: 01 00 00 81 02 83 [15:02:44]Write i2c OK [15:02:44]MH_I2C_Read... [15:02:44]Read from MH i2c: 01 [15:02:44]MH_I2C_Read... [15:02:44]Read from MH i2c: 01 07 00 [15:02:44]MH_I2C_Read... [15:02:44]Read from MH i2c: 01 07 00 81 02 00 00 00 00 00 FF 0F 98 [15:02:44]RasterBufferAndPrint [15:02:44]line Счет N : (1)949375 [15:02:44]line ИНН: 02508201610067 [15:02:44]line Контрольно-Кассовый Чек [15:02:44]line ПРОДАЖА [15:02:44]line ТРК (МРК, ГНК) : 21 [15:02:44]line Товар: 2710194800 [15:02:44]line ДТ-К-5 [15:02:44]line 5.250 * 76.20 [15:02:44]line = 400.05 [15:02:44]line НДС 12% НСП 1% [15:02:44]line > о реализуемом товаре [15:02:44]line ОКРУГЛЕНИЕ: -0.05 [15:02:44]line ИТОГО: 400.00 [15:02:44]line Внесено: 400.00 [15:02:44]line СДАЧА: 0.00 [15:02:44]line НСП 1% : 3.54 [15:02:44]line НДС 12% : 42.48 [15:02:44]line Наличными: 400.00 [15:02:44]line Безнал.: 0.00 [15:02:44]line Место: АЗС № 134 "Партнер Нефть" [15:02:44]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:02:44]line СНО: Общий режим [15:02:44]line Чек 173 28.07.2024 15:02 [15:02:44]line Смена: 433 ФФД: 1.0 [15:02:44]line ЗНМ: 0300000044 [15:02:44]line РНМ: 0000000000092660 [15:02:44]line Версия ККМ: 001 [15:02:44]line ФМ: 0000000000874939 [15:02:44]line ФД: 118504 [15:02:44]line ФПД: 108581587080262 [15:02:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T150243&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118504&fm=108581587080262&tin=02508201610067®Number=0000000000092660&sum=40000 [15:02:44]OFD Sender: Processing packet 118504 [packets to send 86, broken 85] [15:02:44]ProducePacketName [15:02:44]name=ofd_packets/00118504 [15:02:44]OFD Sender: To server: pG, [15:02:44]CommunicateWithHost lk.salyk.kg:30040 [15:02:44]ConnectInit lk.salyk.kg [15:02:44]written 0, free lines is 4095 [15:02:44]Connected sock=10 [15:02:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 0A CB 04 01 03 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 AD 00 00 00 F4 03 04 00 93 5D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E8 CE 01 00 35 04 06 00 62 C1 1E ED 54 46 2C 60 A6 13 0F EB D1 55 [15:02:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 62 99 47 00 EC 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 39 33 39 10 04 04 00 E8 CE 01 00 F4 03 04 00 23 0B A6 66 B6 04 01 00 00 E0 33 97 E5 8F F8 7D 58 [15:02:44]CommunicateWithHost err = 0 [15:02:44]CheckOFDResponse [15:02:44]1017 (14) - 77093643461234 [15:02:44]1041 (16) - 0000000000874939 [15:02:44]1040 (4) - 118504 [15:02:44]1012 (4) - 28.07.2024 09:10 [15:02:44]1206 (1) - 0 [15:02:44]OFD Sender: Remove packet 118504 [15:02:44]ProducePacketName [15:02:44]name=ofd_packets/00118504 [15:02:44]NVStorageDeleteData [15:02:44]Write to MH i2c: 01 00 00 AB 02 AD [15:02:44]Write i2c OK [15:02:44]MH_I2C_Read... [15:02:44]Read from MH i2c: 01 [15:02:44]MH_I2C_Read... [15:02:44]Read from MH i2c: 01 07 00 [15:02:44]MH_I2C_Read... [15:02:44]Read from MH i2c: 01 07 00 AB 02 00 00 00 00 00 D0 0C 90 [15:02:44]RasterBufferAndPrint [15:02:44]line [15:02:44]line [15:02:44]line [15:02:44]line [15:02:44]line [15:02:44]written 0, free lines is 3287 [15:02:44]MH_Cut [15:02:44]Write to MH i2c: D1 01 00 B2 02 01 86 [15:02:44]Write i2c OK [15:02:44]MH_I2C_Read... [15:02:44]Read from MH i2c: D1 [15:02:44]MH_I2C_Read... [15:02:44]Read from MH i2c: D1 01 00 [15:02:44]MH_I2C_Read... [15:02:44]Read from MH i2c: D1 01 00 B2 02 00 85 [15:02:44]Write to MH i2c: 01 00 00 B3 02 B5 [15:02:44]Write i2c OK [15:02:44]MH_I2C_Read... [15:02:45]OFD Sender: No OFD packet to send [15:02:45]*** Cut start [15:02:45]*** Partial cut [15:02:45]*** CUTSNS_PIN = 1 [15:02:45]*** CUTSNS_PIN = 0 [15:02:45]*** Brake cut motor [15:02:46]Read from MH i2c: 01 [15:02:46]MH_I2C_Read... [15:02:46]*** Stop cut motor [15:02:46]*** Cut end [15:02:46]Read from MH i2c: 01 07 00 [15:02:46]MH_I2C_Read... [15:02:46]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 FF 0F CA [15:02:46]process_action close_receipt done [15:02:46]requested_data is exist [15:02:46]produce_requested_data [15:02:46]requested_item fm.sn is exist - process it [15:02:46]wFMCommunicate request_size=4 [15:02:46]MH_SAM_APDU [15:02:46]CAPDU: 80 11 00 00 [15:02:46]Write to MH i2c: E2 08 00 B4 02 80 11 00 00 00 00 00 00 30 [15:02:46]Write i2c OK [15:02:46]MH_I2C_Read... [15:02:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:46]Read from MH i2c: E2 [15:02:46]MH_I2C_Read... [15:02:46]Read from MH i2c: E2 17 00 [15:02:46]MH_I2C_Read... [15:02:46]Read from MH i2c: E2 17 00 B4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8B [15:02:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:02:46]wFMCommunicate OK [15:02:46]requested_item fd.num is exist - process it [15:02:46]SAM_PROTO_GetFieldsCounters [15:02:46]wFMCommunicate request_size=4 [15:02:46]MH_SAM_APDU [15:02:46]CAPDU: 80 13 00 00 [15:02:46]Write to MH i2c: E2 08 00 B5 02 80 13 00 00 00 00 00 00 33 [15:02:46]Write i2c OK [15:02:46]MH_I2C_Read... [15:02:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:46]Read from MH i2c: E2 [15:02:46]MH_I2C_Read... [15:02:46]Read from MH i2c: E2 62 00 [15:02:46]MH_I2C_Read... [15:02:46]Read from MH i2c: E2 62 00 B5 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E8 CE 01 00 0E 04 04 00 B1 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 CA [15:02:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E8 CE 01 00 0E 04 04 00 B1 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 [15:02:46]wFMCommunicate OK [15:02:46]SAM_PROTO_GetFieldsCounters done [15:02:46]requested_item shift.num is exist - process it [15:02:46]requested_item shift.opened is exist - process it [15:02:46]req_shift_opened [15:02:46]FM_GetShiftState [15:02:46]SAM_PROTO_GetShiftState [15:02:46]wFMCommunicate request_size=4 [15:02:46]MH_SAM_APDU [15:02:46]CAPDU: 80 13 01 00 [15:02:46]Write to MH i2c: E2 08 00 B6 02 80 13 01 00 00 00 00 00 35 [15:02:46]Write i2c OK [15:02:46]MH_I2C_Read... [15:02:46]Read from MH i2c: E2 [15:02:46]MH_I2C_Read... [15:02:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:46]Read from MH i2c: E2 0E 00 [15:02:46]MH_I2C_Read... [15:02:46]Read from MH i2c: E2 0E 00 B6 02 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 0C [15:02:46]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:02:46]wFMCommunicate OK [15:02:46]SAM_PROTO_GetShiftState done [15:02:46]FM_GetShiftState done [15:02:46]req_shift_opened done [15:02:46]requested_item shift.open_date is exist - process it [15:02:46]req_shift_open_date [15:02:46]req_shift_open_date done [15:02:46]produce_requested_data done [15:02:46]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118504,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [15:02:46]process_action_free close_receipt [15:02:46]json_value_free [15:02:46]json_value_free done [15:02:46]process_json_proto returns [15:02:46]Send response to host [15:02:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118504,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [15:02:46]free response buf [15:02:46]execute_script done [15:02:46]execute_script returns [15:02:46]free content buf [15:02:46]Sock 7.Close socket [15:02:46]Sock 7.Thread stoped [15:02:50]OFD Sender: No OFD packet to send [15:02:55]OFD Sender: No OFD packet to send [15:03:00]OFD Sender: No OFD packet to send [15:03:05]OFD Sender: No OFD packet to send [15:03:10]OFD Sender: No OFD packet to send [15:03:15]OFD Sender: No OFD packet to send [15:03:20]OFD Sender: No OFD packet to send [15:03:25]OFD Sender: No OFD packet to send [15:03:30]OFD Sender: No OFD packet to send [15:03:35]OFD Sender: No OFD packet to send [15:03:40]OFD Sender: No OFD packet to send [15:03:45]OFD Sender: No OFD packet to send [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:20]OFD Sender: No OFD packet to send [15:04:25]OFD Sender: No OFD packet to send [15:04:30]OFD Sender: No OFD packet to send [15:04:35]OFD Sender: No OFD packet to send [15:04:40]OFD Sender: No OFD packet to send [15:04:45]OFD Sender: No OFD packet to send [15:04:50]OFD Sender: No OFD packet to send [15:04:55]OFD Sender: No OFD packet to send [15:05:00]OFD Sender: No OFD packet to send [15:05:05]OFD Sender: No OFD packet to send [15:05:10]OFD Sender: No OFD packet to send [15:05:15]OFD Sender: No OFD packet to send [15:05:20]OFD Sender: No OFD packet to send [15:05:25]OFD Sender: No OFD packet to send [15:05:30]OFD Sender: No OFD packet to send [15:05:35]OFD Sender: No OFD packet to send [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:27]accept exits with 9 [15:07:27]New connection [15:07:27]New thread 3067239780 created [15:07:27]Thread 3067383140 joined [15:07:27]Waiting for new connection... [15:07:27] Sock 9.Parse request [15:07:27]Sock 9.Check first char [15:07:27]Sock 9.First char is OK [15:07:27]request: POST /json_proto HTTP/1.0 [15:07:27]Method: POST [15:07:27]URL: /json_proto [15:07:27]Method is POST - this is cgi request [15:07:27]url: /json_proto [15:07:27]query_string will be loaded in cgi processing [15:07:27]execute_cgi json_proto POST (null) [15:07:27]execute_cgi path=json_proto method=POST [15:07:27]POST find Content-Length [15:07:27]Host: 172.17.45.7:8080 [15:07:27]Content-Length: 678 [15:07:27]Content-Type: application/json [15:07:27] [15:07:27]POST finish read [15:07:27]Found Content-Length = 678 [15:07:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:27]execute_script... [15:07:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:27]POST & json_proto [15:07:27]process_json_proto [15:07:27]json parsed OK: [15:07:27]protocol is kg_v1.0 [15:07:27]action value=close_receipt [15:07:27]process_action close_receipt [15:07:27]cmd_close_receipt [15:07:27]MH_GetDate [15:07:27]Write to MH i2c: F0 00 00 B7 02 A8 [15:07:27]Write i2c OK [15:07:27]MH_I2C_Read... [15:07:27]Read from MH i2c: F0 [15:07:27]MH_I2C_Read... [15:07:27]Read from MH i2c: F0 09 00 [15:07:27]MH_I2C_Read... [15:07:27]Read from MH i2c: F0 09 00 B7 02 00 B0 5E A6 66 90 0F 3E 66 0E [15:07:27]GetLastDocTimeStamp 1722178963 [15:07:27]current date 1722179248 [15:07:27]FM_GetShiftState [15:07:27]SAM_PROTO_GetShiftState [15:07:27]wFMCommunicate request_size=4 [15:07:27]MH_SAM_APDU [15:07:27]CAPDU: 80 13 01 00 [15:07:27]Write to MH i2c: E2 08 00 B8 02 80 13 01 00 00 00 00 00 37 [15:07:27]Write i2c OK [15:07:27]MH_I2C_Read... [15:07:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:27]Read from MH i2c: E2 [15:07:27]MH_I2C_Read... [15:07:27]Read from MH i2c: E2 0E 00 [15:07:27]MH_I2C_Read... [15:07:27]Read from MH i2c: E2 0E 00 B8 02 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 0E [15:07:27]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:07:27]wFMCommunicate OK [15:07:27]SAM_PROTO_GetShiftState done [15:07:27]FM_GetShiftState done [15:07:27]opened in 1722125364 [15:07:27]opened+sec_in_day 1722211764 [15:07:27]quantity*price = 70037 [15:07:27]sum+1 = 70038 [15:07:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 174 28.07.2024 15:07 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118505 ФПД: 15500019813543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T150728&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118505&fm=15500019813543&tin=02508201610067®Number=0000000000092660&sum=70000 [15:07:28]StoreToDocumentArchive [15:07:28]shift 433 fd 118505 [15:07:28]save to /storage/0433/doc_00118505 [15:07:28]save last doc name /storage/0433/doc_00118505 to /storage/kkm_last_doc_name [15:07:28]save OK [15:07:28]Clear old archive folders... [15:07:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:07:28]tlvbuf is 01E46220 [15:07:28]SAM_PROTO_ClearQueue [15:07:28]wFMCommunicate request_size=4 [15:07:28]MH_SAM_APDU [15:07:28]CAPDU: 80 09 00 00 [15:07:28]Write to MH i2c: E2 08 00 C5 02 80 09 00 00 00 00 00 00 39 [15:07:28]Write i2c OK [15:07:28]MH_I2C_Read... [15:07:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:28]Read from MH i2c: E2 [15:07:28]MH_I2C_Read... [15:07:28]Read from MH i2c: E2 03 00 [15:07:28]MH_I2C_Read... [15:07:28]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [15:07:28]RAPDU: 90 00 [15:07:28]wFMCommunicate OK [15:07:28]SAM_PROTO_ClearQueue done [15:07:28]KKMCreateOFDPacket [15:07:28]OFDProtocolAddRootSTLVToBuf [15:07:28]FM_MakeSignedData [15:07:28]FM_MakeSignedData [15:07:28]SAM_PROTO_SignData [15:07:28]wFMCommunicate request_size=4 [15:07:28]MH_SAM_APDU [15:07:28]CAPDU: 80 0D 01 02 [15:07:28]Write to MH i2c: E2 08 00 C6 02 80 0D 01 02 00 00 00 00 41 [15:07:28]Write i2c OK [15:07:28]MH_I2C_Read... [15:07:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:28]Read from MH i2c: E2 [15:07:28]MH_I2C_Read... [15:07:28]Read from MH i2c: E2 03 00 [15:07:28]MH_I2C_Read... [15:07:28]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [15:07:28]RAPDU: 90 00 [15:07:28]wFMCommunicate OK [15:07:28]wFMCommunicate request_size=255 [15:07:28]MH_SAM_APDU [15:07:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 B0 5E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E9 CE 01 00 35 04 06 00 0E [15:07:28]Write to MH i2c: E2 02 01 C7 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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 B0 5E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E9 CE 01 00 35 04 06 00 0E 00 00 EC [15:07:28]Write i2c OK [15:07:28]MH_I2C_Read... [15:07:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:28]Read from MH i2c: E2 [15:07:28]MH_I2C_Read... [15:07:28]Read from MH i2c: E2 03 00 [15:07:28]MH_I2C_Read... [15:07:28]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [15:07:28]RAPDU: 90 00 [15:07:28]wFMCommunicate OK [15:07:28]wFMCommunicate request_size=10 [15:07:28]MH_SAM_APDU [15:07:28]CAPDU: 80 0D 02 02 05 18 E1 2C CC A7 [15:07:28]Write to MH i2c: E2 0D 00 C8 02 80 0D 02 02 05 00 18 E1 2C CC A7 00 00 E6 [15:07:28]Write i2c OK [15:07:28]MH_I2C_Read... [15:07:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:28]Read from MH i2c: E2 [15:07:28]MH_I2C_Read... [15:07:28]Read from MH i2c: E2 03 00 [15:07:28]MH_I2C_Read... [15:07:28]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [15:07:28]RAPDU: 90 00 [15:07:28]wFMCommunicate OK [15:07:28]wFMCommunicate request_size=4 [15:07:28]MH_SAM_APDU [15:07:28]CAPDU: 80 0D 03 02 [15:07:28]Write to MH i2c: E2 08 00 C9 02 80 0D 03 02 00 00 00 00 46 [15:07:28]Write i2c OK [15:07:28]MH_I2C_Read... [15:07:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:28]Read from MH i2c: E2 [15:07:28]MH_I2C_Read... [15:07:28]Read from MH i2c: E2 0B 00 [15:07:28]MH_I2C_Read... [15:07:28]Read from MH i2c: E2 0B 00 C9 02 00 DB 3A C5 C1 44 94 4C 51 90 00 57 [15:07:28]RAPDU: DB 3A C5 C1 44 94 4C 51 90 00 [15:07:28]wFMCommunicate OK [15:07:28]SAM_PROTO_SignData done [15:07:28]FM_MakeSignedData done [15:07:28]CreateOFDProtocolMessage [15:07:28]wFMCommunicate request_size=4 [15:07:28]MH_SAM_APDU [15:07:28]CAPDU: 80 11 00 00 [15:07:28]Write to MH i2c: E2 08 00 CA 02 80 11 00 00 00 00 00 00 46 [15:07:28]Write i2c OK [15:07:28]MH_I2C_Read... [15:07:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:28]Read from MH i2c: E2 [15:07:28]MH_I2C_Read... [15:07:28]Read from MH i2c: E2 17 00 [15:07:28]MH_I2C_Read... [15:07:28]Read from MH i2c: E2 17 00 CA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A1 [15:07:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:07:28]wFMCommunicate OK [15:07:28]CreateOFDProtocolMessage done [15:07:28]OFDSenderStorePacket 118505 [15:07:28]StoreOFDPacket docnum=118505 [15:07:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CF 76 07 01 CE 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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 B0 5E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E9 CE 01 00 35 04 06 00 0E 18 E1 2C CC A7 DB 3A C5 C1 44 94 4C 51 [15:07:28]CheckFolder [15:07:28]dirname=/storage/ofd_packets [15:07:28]CheckFolder done [15:07:28]ProducePacketName [15:07:28]name=ofd_packets/00118505 [15:07:28]NVStorageSaveData ofd_packets/00118505 [15:07:28]File name is /storage/ofd_packets/00118505 [15:07:28]Write 301 bytes [15:07:28]NVStorageSaveData done [15:07:28]OFDSenderStorePacket done [15:07:28]KKMCreateOFDPacket done [15:07:28]NVStorageSaveData kkm_last_timestamp [15:07:28]File name is /storage/kkm_last_timestamp [15:07:28]Write 4 bytes [15:07:28]NVStorageSaveData done [15:07:28]ExternCall_PrintAddStr [15:07:28]wPrintStart [15:07:28]Write to MH i2c: 01 00 00 CB 02 CD [15:07:28]Write i2c OK [15:07:28]MH_I2C_Read... [15:07:28]Read from MH i2c: 01 [15:07:28]MH_I2C_Read... [15:07:28]Read from MH i2c: 01 07 00 [15:07:28]MH_I2C_Read... [15:07:28]Read from MH i2c: 01 07 00 CB 02 00 00 00 00 00 FF 0F E2 [15:07:28]RasterBufferAndPrint [15:07:28]line Счет N : (1)949376 [15:07:28]line ИНН: 02508201610067 [15:07:28]line Контрольно-Кассовый Чек [15:07:28]line ПРОДАЖА [15:07:28]line ТРК (МРК, ГНК) : 61 [15:07:28]line Товар: 2710124130 [15:07:28]line Аи-92-К-4 [15:07:28]line 10.330 * 67.80 [15:07:28]line = 700.37 [15:07:28]line НДС 12% НСП 1% [15:07:28]line > о реализуемом товаре [15:07:28]line ОКРУГЛЕНИЕ: -0.37 [15:07:28]line ИТОГО: 700.00 [15:07:28]line Внесено: 700.00 [15:07:28]line СДАЧА: 0.00 [15:07:28]line НСП 1% : 6.20 [15:07:28]line НДС 12% : 74.38 [15:07:28]line Наличными: 700.00 [15:07:28]line Безнал.: 0.00 [15:07:28]line Место: АЗС № 134 "Партнер Нефть" [15:07:28]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:07:28]line СНО: Общий режим [15:07:28]line Чек 174 28.07.2024 15:07 [15:07:28]line Смена: 433 ФФД: 1.0 [15:07:28]line ЗНМ: 0300000044 [15:07:28]line РНМ: 0000000000092660 [15:07:28]line Версия ККМ: 001 [15:07:28]line ФМ: 0000000000874939 [15:07:28]line ФД: 118505 [15:07:28]line ФПД: 15500019813543 [15:07:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T150728&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118505&fm=15500019813543&tin=02508201610067®Number=0000000000092660&sum=70000 [15:07:29]OFD Sender: Processing packet 118505 [packets to send 86, broken 85] [15:07:29]ProducePacketName [15:07:29]name=ofd_packets/00118505 [15:07:29]OFD Sender: To server: pG, [15:07:29]CommunicateWithHost lk.salyk.kg:30040 [15:07:29]ConnectInit lk.salyk.kg [15:07:29]written 0, free lines is 4095 [15:07:29]Connected sock=10 [15:07:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CF 76 07 01 CE 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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 B0 5E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E9 CE 01 00 35 04 06 00 0E 18 E1 2C CC A7 DB 3A C5 C1 44 94 4C 51 [15:07:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C4 24 47 00 66 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E9 CE 01 00 F4 03 04 00 40 0C A6 66 B6 04 01 00 00 1D DD 45 FA AD A8 24 AC [15:07:29]CommunicateWithHost err = 0 [15:07:29]CheckOFDResponse [15:07:29]1017 (14) - 77093643461234 [15:07:29]1041 (16) - 0000000000874939 [15:07:29]1040 (4) - 118505 [15:07:29]1012 (4) - 28.07.2024 09:15 [15:07:29]1206 (1) - 0 [15:07:29]OFD Sender: Remove packet 118505 [15:07:29]ProducePacketName [15:07:29]name=ofd_packets/00118505 [15:07:29]NVStorageDeleteData [15:07:29]Write to MH i2c: 01 00 00 F5 02 F7 [15:07:29]Write i2c OK [15:07:29]MH_I2C_Read... [15:07:29]Read from MH i2c: 01 [15:07:29]MH_I2C_Read... [15:07:29]Read from MH i2c: 01 07 00 [15:07:29]MH_I2C_Read... [15:07:29]Read from MH i2c: 01 07 00 F5 02 00 00 00 00 00 CC 0C D6 [15:07:29]RasterBufferAndPrint [15:07:29]line [15:07:29]line [15:07:29]line [15:07:29]line [15:07:29]line [15:07:29]written 0, free lines is 3283 [15:07:29]MH_Cut [15:07:29]Write to MH i2c: D1 01 00 FC 02 01 D0 [15:07:29]Write i2c OK [15:07:29]MH_I2C_Read... [15:07:29]Read from MH i2c: D1 [15:07:29]MH_I2C_Read... [15:07:29]Read from MH i2c: D1 01 00 [15:07:29]MH_I2C_Read... [15:07:29]Read from MH i2c: D1 01 00 FC 02 00 CF [15:07:29]Write to MH i2c: 01 00 00 FD 02 FF [15:07:29]Write i2c OK [15:07:29]MH_I2C_Read... [15:07:30]OFD Sender: No OFD packet to send [15:07:30]*** Cut start [15:07:30]*** Partial cut [15:07:30]*** CUTSNS_PIN = 1 [15:07:30]*** CUTSNS_PIN = 0 [15:07:30]*** Brake cut motor [15:07:30]Read from MH i2c: 01 [15:07:30]MH_I2C_Read... [15:07:30]*** Stop cut motor [15:07:30]*** Cut end [15:07:30]Read from MH i2c: 01 07 00 [15:07:30]MH_I2C_Read... [15:07:30]Read from MH i2c: 01 07 00 FD 02 00 00 00 00 00 FF 0F 14 [15:07:30]process_action close_receipt done [15:07:30]requested_data is exist [15:07:30]produce_requested_data [15:07:30]requested_item fm.sn is exist - process it [15:07:30]wFMCommunicate request_size=4 [15:07:30]MH_SAM_APDU [15:07:30]CAPDU: 80 11 00 00 [15:07:30]Write to MH i2c: E2 08 00 FE 02 80 11 00 00 00 00 00 00 7A [15:07:30]Write i2c OK [15:07:30]MH_I2C_Read... [15:07:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:31]Read from MH i2c: E2 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: E2 17 00 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: E2 17 00 FE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D5 [15:07:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:07:31]wFMCommunicate OK [15:07:31]requested_item fd.num is exist - process it [15:07:31]SAM_PROTO_GetFieldsCounters [15:07:31]wFMCommunicate request_size=4 [15:07:31]MH_SAM_APDU [15:07:31]CAPDU: 80 13 00 00 [15:07:31]Write to MH i2c: E2 08 00 FF 02 80 13 00 00 00 00 00 00 7D [15:07:31]Write i2c OK [15:07:31]MH_I2C_Read... [15:07:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:31]Read from MH i2c: E2 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: E2 62 00 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: E2 62 00 FF 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E9 CE 01 00 0E 04 04 00 B1 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 18 [15:07:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E9 CE 01 00 0E 04 04 00 B1 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 [15:07:31]wFMCommunicate OK [15:07:31]SAM_PROTO_GetFieldsCounters done [15:07:31]requested_item shift.num is exist - process it [15:07:31]requested_item shift.opened is exist - process it [15:07:31]req_shift_opened [15:07:31]FM_GetShiftState [15:07:31]SAM_PROTO_GetShiftState [15:07:31]wFMCommunicate request_size=4 [15:07:31]MH_SAM_APDU [15:07:31]CAPDU: 80 13 01 00 [15:07:31]Write to MH i2c: E2 08 00 00 03 80 13 01 00 00 00 00 00 80 [15:07:31]Write i2c OK [15:07:31]MH_I2C_Read... [15:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:31]Read from MH i2c: E2 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: E2 0E 00 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: E2 0E 00 00 03 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 57 [15:07:31]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:07:31]wFMCommunicate OK [15:07:31]SAM_PROTO_GetShiftState done [15:07:31]FM_GetShiftState done [15:07:31]req_shift_opened done [15:07:31]requested_item shift.open_date is exist - process it [15:07:31]req_shift_open_date [15:07:31]req_shift_open_date done [15:07:31]produce_requested_data done [15:07:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118505,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [15:07:31]process_action_free close_receipt [15:07:31]json_value_free [15:07:31]json_value_free done [15:07:31]process_json_proto returns [15:07:31]Send response to host [15:07:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118505,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [15:07:31]free response buf [15:07:31]execute_script done [15:07:31]execute_script returns [15:07:31]free content buf [15:07:31]Sock 9.Close socket [15:07:31]Sock 9.Thread stoped [15:07:35]OFD Sender: No OFD packet to send [15:07:35]accept exits with 7 [15:07:35]New connection [15:07:35]New thread 3067383140 created [15:07:35]Thread 3067239780 joined [15:07:35]Waiting for new connection... [15:07:35] Sock 7.Parse request [15:07:35]Sock 7.Check first char [15:07:35]Sock 7.First char is OK [15:07:35]request: POST /json_proto HTTP/1.0 [15:07:35]Method: POST [15:07:35]URL: /json_proto [15:07:35]Method is POST - this is cgi request [15:07:35]url: /json_proto [15:07:35]query_string will be loaded in cgi processing [15:07:35]execute_cgi json_proto POST (null) [15:07:35]execute_cgi path=json_proto method=POST [15:07:35]POST find Content-Length [15:07:35]Host: 172.17.45.7:8080 [15:07:35]Content-Length: 679 [15:07:35]Content-Type: application/json [15:07:35] [15:07:35]POST finish read [15:07:35]Found Content-Length = 679 [15:07:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:35]execute_script... [15: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)949377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:35]POST & json_proto [15:07:35]process_json_proto [15:07:35]json parsed OK: [15:07:35]protocol is kg_v1.0 [15:07:35]action value=close_receipt [15:07:35]process_action close_receipt [15:07:35]cmd_close_receipt [15:07:35]MH_GetDate [15:07:35]Write to MH i2c: F0 00 00 01 03 F3 [15:07:35]Write i2c OK [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: F0 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: F0 09 00 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: F0 09 00 01 03 00 B8 5E A6 66 90 0F 3E 66 61 [15:07:35]GetLastDocTimeStamp 1722179248 [15:07:35]current date 1722179256 [15:07:35]FM_GetShiftState [15:07:35]SAM_PROTO_GetShiftState [15:07:35]wFMCommunicate request_size=4 [15:07:35]MH_SAM_APDU [15:07:35]CAPDU: 80 13 01 00 [15:07:35]Write to MH i2c: E2 08 00 02 03 80 13 01 00 00 00 00 00 82 [15:07:35]Write i2c OK [15:07:35]MH_I2C_Read... [15:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:35]Read from MH i2c: E2 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: E2 0E 00 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: E2 0E 00 02 03 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 59 [15:07:35]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:07:35]wFMCommunicate OK [15:07:35]SAM_PROTO_GetShiftState done [15:07:35]FM_GetShiftState done [15:07:35]opened in 1722125364 [15:07:35]opened+sec_in_day 1722211764 [15:07:35]quantity*price = 100050 [15:07:35]sum+1 = 100052 [15:07:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 175 28.07.2024 15:07 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118506 ФПД: 242160390883169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T150736&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118506&fm=242160390883169&tin=02508201610067®Number=0000000000092660&sum=100000 [15:07:36]StoreToDocumentArchive [15:07:36]shift 433 fd 118506 [15:07:36]save to /storage/0433/doc_00118506 [15:07:36]save last doc name /storage/0433/doc_00118506 to /storage/kkm_last_doc_name [15:07:36]save OK [15:07:36]Clear old archive folders... [15:07:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:07:37]tlvbuf is 01E64320 [15:07:37]SAM_PROTO_ClearQueue [15:07:37]wFMCommunicate request_size=4 [15:07:37]MH_SAM_APDU [15:07:37]CAPDU: 80 09 00 00 [15:07:37]Write to MH i2c: E2 08 00 0F 03 80 09 00 00 00 00 00 00 84 [15:07:37]Write i2c OK [15:07:37]MH_I2C_Read... [15:07:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:37]Read from MH i2c: E2 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: E2 03 00 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: E2 03 00 0F 03 00 90 00 86 [15:07:37]RAPDU: 90 00 [15:07:37]wFMCommunicate OK [15:07:37]SAM_PROTO_ClearQueue done [15:07:37]KKMCreateOFDPacket [15:07:37]OFDProtocolAddRootSTLVToBuf [15:07:37]FM_MakeSignedData [15:07:37]FM_MakeSignedData [15:07:37]SAM_PROTO_SignData [15:07:37]wFMCommunicate request_size=4 [15:07:37]MH_SAM_APDU [15:07:37]CAPDU: 80 0D 01 02 [15:07:37]Write to MH i2c: E2 08 00 10 03 80 0D 01 02 00 00 00 00 8C [15:07:37]Write i2c OK [15:07:37]MH_I2C_Read... [15:07:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:37]Read from MH i2c: E2 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: E2 03 00 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: E2 03 00 10 03 00 90 00 87 [15:07:37]RAPDU: 90 00 [15:07:37]wFMCommunicate OK [15:07:37]wFMCommunicate request_size=255 [15:07:37]MH_SAM_APDU [15:07:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 B8 5E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EA CE 01 00 35 04 06 00 DC 3E 5C 13 [15:07:37]Write to MH i2c: E2 02 01 11 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 B8 5E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EA CE 01 00 35 04 06 00 DC 3E 5C 13 00 00 E1 [15:07:37]Write i2c OK [15:07:37]MH_I2C_Read... [15:07:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:37]Read from MH i2c: E2 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: E2 03 00 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [15:07:37]RAPDU: 90 00 [15:07:37]wFMCommunicate OK [15:07:37]wFMCommunicate request_size=7 [15:07:37]MH_SAM_APDU [15:07:37]CAPDU: 80 0D 02 02 02 C7 61 [15:07:37]Write to MH i2c: E2 0A 00 12 03 80 0D 02 02 02 00 C7 61 00 00 BB [15:07:37]Write i2c OK [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: E2 [15:07:37]MH_I2C_Read... [15:07:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:37]Read from MH i2c: E2 03 00 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [15:07:37]RAPDU: 90 00 [15:07:37]wFMCommunicate OK [15:07:37]wFMCommunicate request_size=4 [15:07:37]MH_SAM_APDU [15:07:37]CAPDU: 80 0D 03 02 [15:07:37]Write to MH i2c: E2 08 00 13 03 80 0D 03 02 00 00 00 00 91 [15:07:37]Write i2c OK [15:07:37]MH_I2C_Read... [15:07:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:37]Read from MH i2c: E2 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: E2 0B 00 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: E2 0B 00 13 03 00 4F B3 BF AC 05 DD 83 8A 90 00 EE [15:07:37]RAPDU: 4F B3 BF AC 05 DD 83 8A 90 00 [15:07:37]wFMCommunicate OK [15:07:37]SAM_PROTO_SignData done [15:07:37]FM_MakeSignedData done [15:07:37]CreateOFDProtocolMessage [15:07:37]wFMCommunicate request_size=4 [15:07:37]MH_SAM_APDU [15:07:37]CAPDU: 80 11 00 00 [15:07:37]Write to MH i2c: E2 08 00 14 03 80 11 00 00 00 00 00 00 91 [15:07:37]Write i2c OK [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: E2 [15:07:37]MH_I2C_Read... [15:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:37]Read from MH i2c: E2 17 00 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: E2 17 00 14 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EC [15:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:07:37]wFMCommunicate OK [15:07:37]CreateOFDProtocolMessage done [15:07:37]OFDSenderStorePacket 118506 [15:07:37]StoreOFDPacket docnum=118506 [15:07:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 AC 6E 04 01 77 5D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 B8 5E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EA CE 01 00 35 04 06 00 DC 3E 5C 13 C7 61 4F B3 BF AC 05 DD 83 8A [15:07:37]CheckFolder [15:07:37]dirname=/storage/ofd_packets [15:07:37]CheckFolder done [15:07:37]ProducePacketName [15:07:37]name=ofd_packets/00118506 [15:07:37]NVStorageSaveData ofd_packets/00118506 [15:07:37]File name is /storage/ofd_packets/00118506 [15:07:37]Write 298 bytes [15:07:37]NVStorageSaveData done [15:07:37]OFDSenderStorePacket done [15:07:37]KKMCreateOFDPacket done [15:07:37]NVStorageSaveData kkm_last_timestamp [15:07:37]File name is /storage/kkm_last_timestamp [15:07:37]Write 4 bytes [15:07:37]NVStorageSaveData done [15:07:37]ExternCall_PrintAddStr [15:07:37]wPrintStart [15:07:37]Write to MH i2c: 01 00 00 15 03 18 [15:07:37]Write i2c OK [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: 01 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: 01 07 00 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: 01 07 00 15 03 00 00 00 00 00 FF 0F 2D [15:07:37]RasterBufferAndPrint [15:07:37]line Счет N : (1)949377 [15:07:37]line ИНН: 02508201610067 [15:07:37]line Контрольно-Кассовый Чек [15:07:37]line ПРОДАЖА [15:07:37]line ТРК (МРК, ГНК) : 21 [15:07:37]line Товар: 2710194800 [15:07:37]line ДТ-К-5 [15:07:37]line 13.130 * 76.20 [15:07:37]line = 1000.51 [15:07:37]line НДС 12% НСП 1% [15:07:37]line > о реализуемом товаре [15:07:37]line ОКРУГЛЕНИЕ: -0.51 [15:07:37]line ИТОГО: 1000.00 [15:07:37]line Внесено: 1000.00 [15:07:37]line СДАЧА: 0.00 [15:07:37]line НСП 1% : 8.85 [15:07:37]line НДС 12% : 106.25 [15:07:37]line Наличными: 1000.00 [15:07:37]line Безнал.: 0.00 [15:07:37]line Место: АЗС № 134 "Партнер Нефть" [15:07:37]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:07:37]line СНО: Общий режим [15:07:37]line Чек 175 28.07.2024 15:07 [15:07:37]line Смена: 433 ФФД: 1.0 [15:07:37]line ЗНМ: 0300000044 [15:07:37]line РНМ: 0000000000092660 [15:07:37]line Версия ККМ: 001 [15:07:37]line ФМ: 0000000000874939 [15:07:37]line ФД: 118506 [15:07:37]line ФПД: 242160390883169 [15:07:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T150736&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118506&fm=242160390883169&tin=02508201610067®Number=0000000000092660&sum=100000 [15:07:37]written 0, free lines is 4095 [15:07:37]OFD Sender: Processing packet 118506 [packets to send 86, broken 85] [15:07:37]ProducePacketName [15:07:37]name=ofd_packets/00118506 [15:07:37]OFD Sender: To server: pG, [15:07:37]CommunicateWithHost lk.salyk.kg:30040 [15:07:37]ConnectInit lk.salyk.kg [15:07:37]Connected sock=10 [15:07:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 AC 6E 04 01 77 5D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 B8 5E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EA CE 01 00 35 04 06 00 DC 3E 5C 13 C7 61 4F B3 BF AC 05 DD 83 8A [15: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 39 33 39 4F 00 00 00 E4 68 47 00 21 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EA CE 01 00 F4 03 04 00 48 0C A6 66 B6 04 01 00 00 58 B1 5F C2 E1 42 39 06 [15:07:37]CommunicateWithHost err = 0 [15:07:37]CheckOFDResponse [15:07:37]1017 (14) - 77093643461234 [15:07:37]1041 (16) - 0000000000874939 [15:07:37]1040 (4) - 118506 [15:07:37]1012 (4) - 28.07.2024 09:15 [15:07:37]1206 (1) - 0 [15:07:37]OFD Sender: Remove packet 118506 [15:07:37]ProducePacketName [15:07:37]name=ofd_packets/00118506 [15:07:37]NVStorageDeleteData [15:07:38]Write to MH i2c: 01 00 00 3F 03 42 [15:07:38]Write i2c OK [15:07:38]MH_I2C_Read... [15:07:38]Read from MH i2c: 01 [15:07:38]MH_I2C_Read... [15:07:38]Read from MH i2c: 01 07 00 [15:07:38]MH_I2C_Read... [15:07:38]Read from MH i2c: 01 07 00 3F 03 00 00 00 00 00 D8 0C 2D [15:07:38]RasterBufferAndPrint [15:07:38]line [15:07:38]line [15:07:38]line [15:07:38]line [15:07:38]line [15:07:38]written 0, free lines is 3300 [15:07:38]MH_Cut [15:07:38]Write to MH i2c: D1 01 00 46 03 01 1B [15:07:38]Write i2c OK [15:07:38]MH_I2C_Read... [15:07:38]Read from MH i2c: D1 [15:07:38]MH_I2C_Read... [15:07:38]Read from MH i2c: D1 01 00 [15:07:38]MH_I2C_Read... [15:07:38]Read from MH i2c: D1 01 00 46 03 00 1A [15:07:38]Write to MH i2c: 01 00 00 47 03 4A [15:07:38]Write i2c OK [15:07:38]MH_I2C_Read... [15:07:38]OFD Sender: No OFD packet to send [15:07:38]*** Cut start [15:07:38]*** Partial cut [15:07:38]*** CUTSNS_PIN = 1 [15:07:38]*** CUTSNS_PIN = 0 [15:07:39]*** Brake cut motor [15:07:39]Read from MH i2c: 01 [15:07:39]MH_I2C_Read... [15:07:39]*** Stop cut motor [15:07:39]*** Cut end [15:07:39]Read from MH i2c: 01 07 00 [15:07:39]MH_I2C_Read... [15:07:39]Read from MH i2c: 01 07 00 47 03 00 00 00 00 00 FF 0F 5F [15:07:39]process_action close_receipt done [15:07:39]requested_data is exist [15:07:39]produce_requested_data [15:07:39]requested_item fm.sn is exist - process it [15:07:39]wFMCommunicate request_size=4 [15:07:39]MH_SAM_APDU [15:07:39]CAPDU: 80 11 00 00 [15:07:39]Write to MH i2c: E2 08 00 48 03 80 11 00 00 00 00 00 00 C5 [15:07:39]Write i2c OK [15:07:39]MH_I2C_Read... [15:07:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:39]Read from MH i2c: E2 [15:07:39]MH_I2C_Read... [15:07:39]Read from MH i2c: E2 17 00 [15:07:39]MH_I2C_Read... [15:07:39]Read from MH i2c: E2 17 00 48 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 20 [15:07:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:07:39]wFMCommunicate OK [15:07:39]requested_item fd.num is exist - process it [15:07:39]SAM_PROTO_GetFieldsCounters [15:07:39]wFMCommunicate request_size=4 [15:07:39]MH_SAM_APDU [15:07:39]CAPDU: 80 13 00 00 [15:07:39]Write to MH i2c: E2 08 00 49 03 80 13 00 00 00 00 00 00 C8 [15:07:39]Write i2c OK [15:07:39]MH_I2C_Read... [15:07:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:39]Read from MH i2c: E2 [15:07:39]MH_I2C_Read... [15:07:39]Read from MH i2c: E2 62 00 [15:07:39]MH_I2C_Read... [15:07:39]Read from MH i2c: E2 62 00 49 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EA CE 01 00 0E 04 04 00 B1 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 67 [15:07:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EA CE 01 00 0E 04 04 00 B1 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 [15:07:39]wFMCommunicate OK [15:07:39]SAM_PROTO_GetFieldsCounters done [15:07:39]requested_item shift.num is exist - process it [15:07:39]requested_item shift.opened is exist - process it [15:07:39]req_shift_opened [15:07:39]FM_GetShiftState [15:07:39]SAM_PROTO_GetShiftState [15:07:39]wFMCommunicate request_size=4 [15:07:39]MH_SAM_APDU [15:07:39]CAPDU: 80 13 01 00 [15:07:39]Write to MH i2c: E2 08 00 4A 03 80 13 01 00 00 00 00 00 CA [15:07:39]Write i2c OK [15:07:39]MH_I2C_Read... [15:07:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:39]Read from MH i2c: E2 [15:07:39]MH_I2C_Read... [15:07:39]Read from MH i2c: E2 0E 00 [15:07:39]MH_I2C_Read... [15:07:39]Read from MH i2c: E2 0E 00 4A 03 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A1 [15:07:39]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:07:39]wFMCommunicate OK [15:07:39]SAM_PROTO_GetShiftState done [15:07:39]FM_GetShiftState done [15:07:39]req_shift_opened done [15:07:39]requested_item shift.open_date is exist - process it [15:07:39]req_shift_open_date [15:07:39]req_shift_open_date done [15:07:39]produce_requested_data done [15:07:39]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118506,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [15:07:39]process_action_free close_receipt [15:07:39]json_value_free [15:07:39]json_value_free done [15:07:39]process_json_proto returns [15:07:39]Send response to host [15:07:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118506,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [15:07:39]free response buf [15:07:39]execute_script done [15:07:39]execute_script returns [15:07:39]free content buf [15:07:39]Sock 7.Close socket [15:07:39]Sock 7.Thread stoped [15:07:43]OFD Sender: No OFD packet to send [15:07:48]OFD Sender: No OFD packet to send [15:07:53]OFD Sender: No OFD packet to send [15:07:58]OFD Sender: No OFD packet to send [15:08:03]OFD Sender: No OFD packet to send [15:08:08]OFD Sender: No OFD packet to send [15:08:13]OFD Sender: No OFD packet to send [15:08:18]OFD Sender: No OFD packet to send [15:08:23]OFD Sender: No OFD packet to send [15:08:28]OFD Sender: No OFD packet to send [15:08:33]OFD Sender: No OFD packet to send [15:08:38]OFD Sender: No OFD packet to send [15:08:43]OFD Sender: No OFD packet to send [15:08:48]OFD Sender: No OFD packet to send [15:08:53]OFD Sender: No OFD packet to send [15:08:58]OFD Sender: No OFD packet to send [15:09:01]accept exits with 9 [15:09:01]New connection [15:09:01]New thread 3067239780 created [15:09:01]Thread 3067383140 joined [15:09:01]Waiting for new connection... [15:09:01] Sock 9.Parse request [15:09:01]Sock 9.Check first char [15:09:01]Sock 9.First char is OK [15:09:01]request: POST /json_proto HTTP/1.0 [15:09:01]Method: POST [15:09:01]URL: /json_proto [15:09:01]Method is POST - this is cgi request [15:09:01]url: /json_proto [15:09:01]query_string will be loaded in cgi processing [15:09:01]execute_cgi json_proto POST (null) [15:09:01]execute_cgi path=json_proto method=POST [15:09:01]POST find Content-Length [15:09:01]Host: 172.17.45.7:8080 [15:09:01]Content-Length: 677 [15:09:01]Content-Type: application/json [15:09:01] [15:09:01]POST finish read [15:09:01]Found Content-Length = 677 [15:09:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:01]execute_script... [15: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)949379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:01]POST & json_proto [15:09:01]process_json_proto [15:09:01]json parsed OK: [15:09:01]protocol is kg_v1.0 [15:09:01]action value=close_receipt [15:09:01]process_action close_receipt [15:09:01]cmd_close_receipt [15:09:01]MH_GetDate [15:09:01]Write to MH i2c: F0 00 00 4B 03 3D [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: F0 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: F0 09 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: F0 09 00 4B 03 00 0E 5F A6 66 90 0F 3E 66 02 [15:09:01]GetLastDocTimeStamp 1722179256 [15:09:01]current date 1722179342 [15:09:01]FM_GetShiftState [15:09:01]SAM_PROTO_GetShiftState [15:09:01]wFMCommunicate request_size=4 [15:09:01]MH_SAM_APDU [15:09:01]CAPDU: 80 13 01 00 [15:09:01]Write to MH i2c: E2 08 00 4C 03 80 13 01 00 00 00 00 00 CC [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:01]Read from MH i2c: E2 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 0E 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 0E 00 4C 03 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A3 [15:09:01]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:09:01]wFMCommunicate OK [15:09:01]SAM_PROTO_GetShiftState done [15:09:01]FM_GetShiftState done [15:09:01]opened in 1722125364 [15:09:01]opened+sec_in_day 1722211764 [15:09:01]quantity*price = 50036 [15:09:01]sum+1 = 50037 [15:09:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 176 28.07.2024 15:09 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118507 ФПД: 159249699113482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T150902&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118507&fm=159249699113482&tin=02508201610067®Number=0000000000092660&sum=50000 [15:09:02]StoreToDocumentArchive [15:09:02]shift 433 fd 118507 [15:09:02]save to /storage/0433/doc_00118507 [15:09:02]save last doc name /storage/0433/doc_00118507 to /storage/kkm_last_doc_name [15:09:02]save OK [15:09:02]Clear old archive folders... [15:09:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:09:02]tlvbuf is 01E51D80 [15:09:02]SAM_PROTO_ClearQueue [15:09:02]wFMCommunicate request_size=4 [15:09:02]MH_SAM_APDU [15:09:02]CAPDU: 80 09 00 00 [15:09:02]Write to MH i2c: E2 08 00 59 03 80 09 00 00 00 00 00 00 CE [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:02]Read from MH i2c: E2 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 03 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 03 00 59 03 00 90 00 D0 [15:09:02]RAPDU: 90 00 [15:09:02]wFMCommunicate OK [15:09:02]SAM_PROTO_ClearQueue done [15:09:02]KKMCreateOFDPacket [15:09:02]OFDProtocolAddRootSTLVToBuf [15:09:02]FM_MakeSignedData [15:09:02]FM_MakeSignedData [15:09:02]SAM_PROTO_SignData [15:09:02]wFMCommunicate request_size=4 [15:09:02]MH_SAM_APDU [15:09:02]CAPDU: 80 0D 01 02 [15:09:02]Write to MH i2c: E2 08 00 5A 03 80 0D 01 02 00 00 00 00 D6 [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:02]Read from MH i2c: E2 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 03 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 03 00 5A 03 00 90 00 D1 [15:09:02]RAPDU: 90 00 [15:09:02]wFMCommunicate OK [15:09:02]wFMCommunicate request_size=255 [15:09:02]MH_SAM_APDU [15:09: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 0E 5F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EB CE 01 00 35 04 06 00 90 [15:09:02]Write to MH i2c: E2 02 01 5B 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 0E 5F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EB CE 01 00 35 04 06 00 90 00 00 7F [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:02]Read from MH i2c: E2 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 03 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [15:09:02]RAPDU: 90 00 [15:09:02]wFMCommunicate OK [15:09:02]wFMCommunicate request_size=10 [15:09:02]MH_SAM_APDU [15:09:02]CAPDU: 80 0D 02 02 05 D6 35 BF 0A 0A [15:09:02]Write to MH i2c: E2 0D 00 5C 03 80 0D 02 02 05 00 D6 35 BF 0A 0A 00 00 C1 [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:02]Read from MH i2c: E2 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 03 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [15:09:02]RAPDU: 90 00 [15:09:02]wFMCommunicate OK [15:09:02]wFMCommunicate request_size=4 [15:09:02]MH_SAM_APDU [15:09:02]CAPDU: 80 0D 03 02 [15:09:02]Write to MH i2c: E2 08 00 5D 03 80 0D 03 02 00 00 00 00 DB [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:02]Read from MH i2c: E2 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 0B 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 0B 00 5D 03 00 5F 9E EC 10 7B FE 08 78 90 00 CE [15:09:02]RAPDU: 5F 9E EC 10 7B FE 08 78 90 00 [15:09:02]wFMCommunicate OK [15:09:02]SAM_PROTO_SignData done [15:09:02]FM_MakeSignedData done [15:09:02]CreateOFDProtocolMessage [15:09:02]wFMCommunicate request_size=4 [15:09:02]MH_SAM_APDU [15:09:02]CAPDU: 80 11 00 00 [15:09:02]Write to MH i2c: E2 08 00 5E 03 80 11 00 00 00 00 00 00 DB [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:02]Read from MH i2c: E2 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 17 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 17 00 5E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 36 [15:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:09:02]wFMCommunicate OK [15:09:02]CreateOFDProtocolMessage done [15:09:02]OFDSenderStorePacket 118507 [15:09:02]StoreOFDPacket docnum=118507 [15:09:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 41 02 07 01 4D 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 0E 5F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EB CE 01 00 35 04 06 00 90 D6 35 BF 0A 0A 5F 9E EC 10 7B FE 08 78 [15:09:02]CheckFolder [15:09:02]dirname=/storage/ofd_packets [15:09:02]CheckFolder done [15:09:02]ProducePacketName [15:09:02]name=ofd_packets/00118507 [15:09:02]NVStorageSaveData ofd_packets/00118507 [15:09:02]File name is /storage/ofd_packets/00118507 [15:09:02]Write 301 bytes [15:09:02]NVStorageSaveData done [15:09:02]OFDSenderStorePacket done [15:09:02]KKMCreateOFDPacket done [15:09:02]NVStorageSaveData kkm_last_timestamp [15:09:02]File name is /storage/kkm_last_timestamp [15:09:02]Write 4 bytes [15:09:02]NVStorageSaveData done [15:09:02]ExternCall_PrintAddStr [15:09:02]wPrintStart [15:09:02]Write to MH i2c: 01 00 00 5F 03 62 [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: 01 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: 01 07 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: 01 07 00 5F 03 00 00 00 00 00 FF 0F 77 [15:09:02]RasterBufferAndPrint [15:09:02]line Счет N : (1)949379 [15:09:02]line ИНН: 02508201610067 [15:09:02]line Контрольно-Кассовый Чек [15:09:02]line ПРОДАЖА [15:09:02]line ТРК (МРК, ГНК) : 31 [15:09:02]line Товар: 2710124130 [15:09:02]line Аи-92-К-4 [15:09:02]line 7.380 * 67.80 [15:09:02]line = 500.36 [15:09:02]line НДС 12% НСП 1% [15:09:02]line > о реализуемом товаре [15:09:02]line ОКРУГЛЕНИЕ: -0.36 [15:09:02]line ИТОГО: 500.00 [15:09:02]line Внесено: 500.00 [15:09:02]line СДАЧА: 0.00 [15:09:02]line НСП 1% : 4.43 [15:09:02]line НДС 12% : 53.14 [15:09:02]line Наличными: 500.00 [15:09:02]line Безнал.: 0.00 [15:09:02]line Место: АЗС № 134 "Партнер Нефть" [15:09:02]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:09:02]line СНО: Общий режим [15:09:02]line Чек 176 28.07.2024 15:09 [15:09:02]line Смена: 433 ФФД: 1.0 [15:09:02]line ЗНМ: 0300000044 [15:09:02]line РНМ: 0000000000092660 [15:09:02]line Версия ККМ: 001 [15:09:02]line ФМ: 0000000000874939 [15:09:02]line ФД: 118507 [15:09:02]line ФПД: 159249699113482 [15:09:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T150902&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118507&fm=159249699113482&tin=02508201610067®Number=0000000000092660&sum=50000 [15:09:03]OFD Sender: Processing packet 118507 [packets to send 86, broken 85] [15:09:03]ProducePacketName [15:09:03]name=ofd_packets/00118507 [15:09:03]OFD Sender: To server: pG, [15:09:03]CommunicateWithHost lk.salyk.kg:30040 [15:09:03]ConnectInit lk.salyk.kg [15:09:03]written 0, free lines is 4095 [15:09:03]Connected sock=10 [15: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 39 33 39 0F 01 00 00 41 02 07 01 4D 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 0E 5F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EB CE 01 00 35 04 06 00 90 D6 35 BF 0A 0A 5F 9E EC 10 7B FE 08 78 [15: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 39 33 39 4F 00 00 00 BF 12 47 00 77 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EB CE 01 00 F4 03 04 00 9E 0C A6 66 B6 04 01 00 00 35 FD B5 6F AB 3A ED 8F [15:09:03]CommunicateWithHost err = 0 [15:09:03]CheckOFDResponse [15:09:03]1017 (14) - 77093643461234 [15:09:03]1041 (16) - 0000000000874939 [15:09:03]1040 (4) - 118507 [15:09:03]1012 (4) - 28.07.2024 09:17 [15:09:03]1206 (1) - 0 [15:09:03]OFD Sender: Remove packet 118507 [15:09:03]ProducePacketName [15:09:03]name=ofd_packets/00118507 [15:09:03]NVStorageDeleteData [15:09:03]Write to MH i2c: 01 00 00 89 03 8C [15:09:03]Write i2c OK [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: 01 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: 01 07 00 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: 01 07 00 89 03 00 00 00 00 00 D0 0C 6F [15:09:03]RasterBufferAndPrint [15:09:03]line [15:09:03]line [15:09:03]line [15:09:03]line [15:09:03]line [15:09:03]written 0, free lines is 3287 [15:09:03]MH_Cut [15:09:03]Write to MH i2c: D1 01 00 90 03 01 65 [15:09:03]Write i2c OK [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: D1 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: D1 01 00 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: D1 01 00 90 03 00 64 [15:09:03]Write to MH i2c: 01 00 00 91 03 94 [15:09:03]Write i2c OK [15:09:03]MH_I2C_Read... [15:09:04]OFD Sender: No OFD packet to send [15:09:04]*** Cut start [15:09:04]*** Partial cut [15:09:04]*** CUTSNS_PIN = 1 [15:09:04]*** CUTSNS_PIN = 0 [15:09:04]*** Brake cut motor [15:09:05]Read from MH i2c: 01 [15:09:05]MH_I2C_Read... [15:09:05]*** Stop cut motor [15:09:05]*** Cut end [15:09:05]Read from MH i2c: 01 07 00 [15:09:05]MH_I2C_Read... [15:09:05]Read from MH i2c: 01 07 00 91 03 00 00 00 00 00 FF 0F A9 [15:09:05]process_action close_receipt done [15:09:05]requested_data is exist [15:09:05]produce_requested_data [15:09:05]requested_item fm.sn is exist - process it [15:09:05]wFMCommunicate request_size=4 [15:09:05]MH_SAM_APDU [15:09:05]CAPDU: 80 11 00 00 [15:09:05]Write to MH i2c: E2 08 00 92 03 80 11 00 00 00 00 00 00 0F [15:09:05]Write i2c OK [15:09:05]MH_I2C_Read... [15:09:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:05]Read from MH i2c: E2 [15:09:05]MH_I2C_Read... [15:09:05]Read from MH i2c: E2 17 00 [15:09:05]MH_I2C_Read... [15:09:05]Read from MH i2c: E2 17 00 92 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6A [15:09:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:09:05]wFMCommunicate OK [15:09:05]requested_item fd.num is exist - process it [15:09:05]SAM_PROTO_GetFieldsCounters [15:09:05]wFMCommunicate request_size=4 [15:09:05]MH_SAM_APDU [15:09:05]CAPDU: 80 13 00 00 [15:09:05]Write to MH i2c: E2 08 00 93 03 80 13 00 00 00 00 00 00 12 [15:09:05]Write i2c OK [15:09:05]MH_I2C_Read... [15:09:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:05]Read from MH i2c: E2 [15:09:05]MH_I2C_Read... [15:09:05]Read from MH i2c: E2 62 00 [15:09:05]MH_I2C_Read... [15:09:05]Read from MH i2c: E2 62 00 93 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EB CE 01 00 0E 04 04 00 B1 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 B5 [15: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EB CE 01 00 0E 04 04 00 B1 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 [15:09:05]wFMCommunicate OK [15:09:05]SAM_PROTO_GetFieldsCounters done [15:09:05]requested_item shift.num is exist - process it [15:09:05]requested_item shift.opened is exist - process it [15:09:05]req_shift_opened [15:09:05]FM_GetShiftState [15:09:05]SAM_PROTO_GetShiftState [15:09:05]wFMCommunicate request_size=4 [15:09:05]MH_SAM_APDU [15:09:05]CAPDU: 80 13 01 00 [15:09:05]Write to MH i2c: E2 08 00 94 03 80 13 01 00 00 00 00 00 14 [15:09:05]Write i2c OK [15:09:05]MH_I2C_Read... [15:09:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:05]Read from MH i2c: E2 [15:09:05]MH_I2C_Read... [15:09:05]Read from MH i2c: E2 0E 00 [15:09:05]MH_I2C_Read... [15:09:05]Read from MH i2c: E2 0E 00 94 03 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 EB [15:09:05]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:09:05]wFMCommunicate OK [15:09:05]SAM_PROTO_GetShiftState done [15:09:05]FM_GetShiftState done [15:09:05]req_shift_opened done [15:09:05]requested_item shift.open_date is exist - process it [15:09:05]req_shift_open_date [15:09:05]req_shift_open_date done [15:09:05]produce_requested_data done [15:09:05]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118507,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [15:09:05]process_action_free close_receipt [15:09:05]json_value_free [15:09:05]json_value_free done [15:09:05]process_json_proto returns [15:09:05]Send response to host [15:09:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118507,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [15:09:05]free response buf [15:09:05]execute_script done [15:09:05]execute_script returns [15:09:05]free content buf [15:09:05]Sock 9.Close socket [15:09:05]Sock 9.Thread stoped [15:09:09]OFD Sender: No OFD packet to send [15:09:14]OFD Sender: No OFD packet to send [15:09:19]OFD Sender: No OFD packet to send [15:09:24]OFD Sender: No OFD packet to send [15:09:29]OFD Sender: No OFD packet to send [15:09:34]OFD Sender: No OFD packet to send [15:09:39]OFD Sender: No OFD packet to send [15:09:44]OFD Sender: No OFD packet to send [15:09:49]OFD Sender: No OFD packet to send [15:09:54]OFD Sender: No OFD packet to send [15:09:59]OFD Sender: No OFD packet to send [15:10:04]OFD Sender: No OFD packet to send [15:10:09]OFD Sender: No OFD packet to send [15:10:14]OFD Sender: No OFD packet to send [15:10:19]OFD Sender: No OFD packet to send [15:10:24]OFD Sender: No OFD packet to send [15:10:29]OFD Sender: No OFD packet to send [15:10:34]accept exits with 7 [15:10:34]New connection [15:10:34]New thread 3067383140 created [15:10:34]Thread 3067239780 joined [15:10:34]Waiting for new connection... [15:10:34] Sock 7.Parse request [15:10:34]Sock 7.Check first char [15:10:34]Sock 7.First char is OK [15:10:34]request: POST /json_proto HTTP/1.0 [15:10:34]Method: POST [15:10:34]URL: /json_proto [15:10:34]Method is POST - this is cgi request [15:10:34]url: /json_proto [15:10:34]query_string will be loaded in cgi processing [15:10:34]execute_cgi json_proto POST (null) [15:10:34]execute_cgi path=json_proto method=POST [15:10:34]POST find Content-Length [15:10:34]Host: 172.17.45.7:8080 [15:10:34]Content-Length: 677 [15:10:34]Content-Type: application/json [15:10:34] [15:10:34]POST finish read [15:10:34]Found Content-Length = 677 [15:10:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:34]execute_script... [15:10: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)949380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:34]POST & json_proto [15:10:34]process_json_proto [15:10:34]json parsed OK: [15:10:34]protocol is kg_v1.0 [15:10:34]action value=close_receipt [15:10:34]process_action close_receipt [15:10:34]cmd_close_receipt [15:10:34]MH_GetDate [15:10:34]Write to MH i2c: F0 00 00 95 03 87 [15:10:34]Write i2c OK [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: F0 [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: F0 09 00 [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: F0 09 00 95 03 00 6B 5F A6 66 90 0F 3E 66 A9 [15:10:34]GetLastDocTimeStamp 1722179342 [15:10:34]current date 1722179435 [15:10:34]FM_GetShiftState [15:10:34]SAM_PROTO_GetShiftState [15:10:34]wFMCommunicate request_size=4 [15:10:34]MH_SAM_APDU [15:10:34]CAPDU: 80 13 01 00 [15:10:34]Write to MH i2c: E2 08 00 96 03 80 13 01 00 00 00 00 00 16 [15:10:34]Write i2c OK [15:10:34]MH_I2C_Read... [15:10:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:34]Read from MH i2c: E2 [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: E2 0E 00 [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: E2 0E 00 96 03 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 ED [15:10:34]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:10:34]wFMCommunicate OK [15:10:34]SAM_PROTO_GetShiftState done [15:10:34]FM_GetShiftState done [15:10:34]opened in 1722125364 [15:10:34]opened+sec_in_day 1722211764 [15:10:34]quantity*price = 50036 [15:10:34]sum+1 = 50037 [15:10:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 177 28.07.2024 15:10 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118508 ФПД: 109921096892787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T151035&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118508&fm=109921096892787&tin=02508201610067®Number=0000000000092660&sum=50000 [15:10:35]StoreToDocumentArchive [15:10:35]shift 433 fd 118508 [15:10:35]save to /storage/0433/doc_00118508 [15:10:35]save last doc name /storage/0433/doc_00118508 to /storage/kkm_last_doc_name [15:10:35]save OK [15:10:35]Clear old archive folders... [15:10:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:10:35]tlvbuf is 01E748B0 [15:10:35]SAM_PROTO_ClearQueue [15:10:35]wFMCommunicate request_size=4 [15:10:35]MH_SAM_APDU [15:10:35]CAPDU: 80 09 00 00 [15:10:35]Write to MH i2c: E2 08 00 A3 03 80 09 00 00 00 00 00 00 18 [15:10:35]Write i2c OK [15:10:35]MH_I2C_Read... [15:10:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:35]Read from MH i2c: E2 [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: E2 03 00 [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [15:10:35]RAPDU: 90 00 [15:10:35]wFMCommunicate OK [15:10:35]SAM_PROTO_ClearQueue done [15:10:35]KKMCreateOFDPacket [15:10:35]OFDProtocolAddRootSTLVToBuf [15:10:35]FM_MakeSignedData [15:10:35]FM_MakeSignedData [15:10:35]SAM_PROTO_SignData [15:10:35]wFMCommunicate request_size=4 [15:10:35]MH_SAM_APDU [15:10:35]CAPDU: 80 0D 01 02 [15:10:35]Write to MH i2c: E2 08 00 A4 03 80 0D 01 02 00 00 00 00 20 [15:10:35]Write i2c OK [15:10:35]MH_I2C_Read... [15:10:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:35]Read from MH i2c: E2 [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: E2 03 00 [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [15:10:35]RAPDU: 90 00 [15:10:35]wFMCommunicate OK [15:10:35]wFMCommunicate request_size=255 [15:10:35]MH_SAM_APDU [15:10: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 6B 5F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EC CE 01 00 35 04 06 00 63 [15:10:35]Write to MH i2c: E2 02 01 A5 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 6B 5F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EC CE 01 00 35 04 06 00 63 00 00 FB [15:10:35]Write i2c OK [15:10:35]MH_I2C_Read... [15:10:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:35]Read from MH i2c: E2 [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: E2 03 00 [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [15:10:35]RAPDU: 90 00 [15:10:35]wFMCommunicate OK [15:10:35]wFMCommunicate request_size=10 [15:10:35]MH_SAM_APDU [15:10:35]CAPDU: 80 0D 02 02 05 F8 FF EF 01 73 [15:10:35]Write to MH i2c: E2 0D 00 A6 03 80 0D 02 02 05 00 F8 FF EF 01 73 00 00 87 [15:10:35]Write i2c OK [15:10:35]MH_I2C_Read... [15:10:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:35]Read from MH i2c: E2 [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: E2 03 00 [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: E2 03 00 A6 03 00 90 00 1D [15:10:35]RAPDU: 90 00 [15:10:35]wFMCommunicate OK [15:10:35]wFMCommunicate request_size=4 [15:10:35]MH_SAM_APDU [15:10:35]CAPDU: 80 0D 03 02 [15:10:35]Write to MH i2c: E2 08 00 A7 03 80 0D 03 02 00 00 00 00 25 [15:10:35]Write i2c OK [15:10:35]MH_I2C_Read... [15:10:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:35]Read from MH i2c: E2 [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: E2 0B 00 [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: E2 0B 00 A7 03 00 81 54 8F BF 71 3E 87 C4 90 00 43 [15:10:35]RAPDU: 81 54 8F BF 71 3E 87 C4 90 00 [15:10:35]wFMCommunicate OK [15:10:35]SAM_PROTO_SignData done [15:10:35]FM_MakeSignedData done [15:10:35]CreateOFDProtocolMessage [15:10:35]wFMCommunicate request_size=4 [15:10:35]MH_SAM_APDU [15:10:35]CAPDU: 80 11 00 00 [15:10:35]Write to MH i2c: E2 08 00 A8 03 80 11 00 00 00 00 00 00 25 [15:10:35]Write i2c OK [15:10:35]MH_I2C_Read... [15:10:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:35]Read from MH i2c: E2 [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: E2 17 00 [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: E2 17 00 A8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 80 [15:10:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:10:35]wFMCommunicate OK [15:10:35]CreateOFDProtocolMessage done [15:10:35]OFDSenderStorePacket 118508 [15:10:35]StoreOFDPacket docnum=118508 [15:10:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F6 DA 07 01 5C 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 6B 5F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EC CE 01 00 35 04 06 00 63 F8 FF EF 01 73 81 54 8F BF 71 3E 87 C4 [15:10:35]CheckFolder [15:10:35]dirname=/storage/ofd_packets [15:10:35]CheckFolder done [15:10:35]ProducePacketName [15:10:35]name=ofd_packets/00118508 [15:10:35]NVStorageSaveData ofd_packets/00118508 [15:10:35]File name is /storage/ofd_packets/00118508 [15:10:35]Write 301 bytes [15:10:35]NVStorageSaveData done [15:10:35]OFDSenderStorePacket done [15:10:35]KKMCreateOFDPacket done [15:10:35]NVStorageSaveData kkm_last_timestamp [15:10:35]File name is /storage/kkm_last_timestamp [15:10:35]Write 4 bytes [15:10:35]NVStorageSaveData done [15:10:35]ExternCall_PrintAddStr [15:10:35]wPrintStart [15:10:35]Write to MH i2c: 01 00 00 A9 03 AC [15:10:35]Write i2c OK [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: 01 [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: 01 07 00 [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: 01 07 00 A9 03 00 00 00 00 00 FF 0F C1 [15:10:35]RasterBufferAndPrint [15:10:35]line Счет N : (1)949380 [15:10:35]line ИНН: 02508201610067 [15:10:35]line Контрольно-Кассовый Чек [15:10:35]line ПРОДАЖА [15:10:35]line ТРК (МРК, ГНК) : 61 [15:10:35]line Товар: 2710124130 [15:10:35]line Аи-92-К-4 [15:10:35]line 7.380 * 67.80 [15:10:35]line = 500.36 [15:10:35]line НДС 12% НСП 1% [15:10:35]line > о реализуемом товаре [15:10:35]line ОКРУГЛЕНИЕ: -0.36 [15:10:35]line ИТОГО: 500.00 [15:10:35]line Внесено: 500.00 [15:10:35]line СДАЧА: 0.00 [15:10:35]line НСП 1% : 4.43 [15:10:35]line НДС 12% : 53.14 [15:10:35]line Наличными: 500.00 [15:10:35]line Безнал.: 0.00 [15:10:35]line Место: АЗС № 134 "Партнер Нефть" [15:10:35]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:10:35]line СНО: Общий режим [15:10:35]line Чек 177 28.07.2024 15:10 [15:10:35]line Смена: 433 ФФД: 1.0 [15:10:35]line ЗНМ: 0300000044 [15:10:35]line РНМ: 0000000000092660 [15:10:35]line Версия ККМ: 001 [15:10:35]line ФМ: 0000000000874939 [15:10:35]line ФД: 118508 [15:10:35]line ФПД: 109921096892787 [15:10:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T151035&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118508&fm=109921096892787&tin=02508201610067®Number=0000000000092660&sum=50000 [15:10:36]written 0, free lines is 4095 [15:10:36]OFD Sender: Processing packet 118508 [packets to send 86, broken 85] [15:10:36]ProducePacketName [15:10:36]name=ofd_packets/00118508 [15:10:36]OFD Sender: To server: pG, [15:10:36]CommunicateWithHost lk.salyk.kg:30040 [15:10:36]ConnectInit lk.salyk.kg [15:10:36]Connected sock=10 [15:10:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F6 DA 07 01 5C 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 6B 5F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EC CE 01 00 35 04 06 00 63 F8 FF EF 01 73 81 54 8F BF 71 3E 87 C4 [15:10:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 CD 9A 47 00 8E 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 39 33 39 10 04 04 00 EC CE 01 00 F4 03 04 00 FB 0C A6 66 B6 04 01 00 00 F8 65 E1 4D 68 C4 27 12 [15:10:36]CommunicateWithHost err = 0 [15:10:36]CheckOFDResponse [15:10:36]1017 (14) - 77093643461234 [15:10:36]1041 (16) - 0000000000874939 [15:10:36]1040 (4) - 118508 [15:10:36]1012 (4) - 28.07.2024 09:18 [15:10:36]1206 (1) - 0 [15:10:36]OFD Sender: Remove packet 118508 [15:10:36]ProducePacketName [15:10:36]name=ofd_packets/00118508 [15:10:36]NVStorageDeleteData [15:10:36]Write to MH i2c: 01 00 00 D3 03 D6 [15:10:36]Write i2c OK [15:10:36]MH_I2C_Read... [15:10:36]Read from MH i2c: 01 [15:10:36]MH_I2C_Read... [15:10:36]Read from MH i2c: 01 07 00 [15:10:36]MH_I2C_Read... [15:10:36]Read from MH i2c: 01 07 00 D3 03 00 00 00 00 00 D2 0C BB [15:10:36]RasterBufferAndPrint [15:10:36]line [15:10:36]line [15:10:36]line [15:10:36]line [15:10:36]line [15:10:36]written 0, free lines is 3288 [15:10:36]MH_Cut [15:10:36]Write to MH i2c: D1 01 00 DA 03 01 AF [15:10:36]Write i2c OK [15:10:36]MH_I2C_Read... [15:10:36]Read from MH i2c: D1 [15:10:36]MH_I2C_Read... [15:10:36]Read from MH i2c: D1 01 00 [15:10:36]MH_I2C_Read... [15:10:36]Read from MH i2c: D1 01 00 DA 03 00 AE [15:10:36]Write to MH i2c: 01 00 00 DB 03 DE [15:10:36]Write i2c OK [15:10:36]MH_I2C_Read... [15:10:36]OFD Sender: No OFD packet to send [15:10:37]*** Cut start [15:10:37]*** Partial cut [15:10:37]*** CUTSNS_PIN = 1 [15:10:37]*** CUTSNS_PIN = 0 [15:10:37]*** Brake cut motor [15:10:37]Read from MH i2c: 01 [15:10:37]MH_I2C_Read... [15:10:37]*** Stop cut motor [15:10:37]*** Cut end [15:10:37]Read from MH i2c: 01 07 00 [15:10:37]MH_I2C_Read... [15:10:37]Read from MH i2c: 01 07 00 DB 03 00 00 00 00 00 FF 0F F3 [15:10:37]process_action close_receipt done [15:10:37]requested_data is exist [15:10:37]produce_requested_data [15:10:37]requested_item fm.sn is exist - process it [15:10:37]wFMCommunicate request_size=4 [15:10:37]MH_SAM_APDU [15:10:37]CAPDU: 80 11 00 00 [15:10:37]Write to MH i2c: E2 08 00 DC 03 80 11 00 00 00 00 00 00 59 [15:10:37]Write i2c OK [15:10:37]MH_I2C_Read... [15:10:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:37]Read from MH i2c: E2 [15:10:37]MH_I2C_Read... [15:10:37]Read from MH i2c: E2 17 00 [15:10:37]MH_I2C_Read... [15:10:37]Read from MH i2c: E2 17 00 DC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B4 [15:10:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:10:37]wFMCommunicate OK [15:10:37]requested_item fd.num is exist - process it [15:10:37]SAM_PROTO_GetFieldsCounters [15:10:37]wFMCommunicate request_size=4 [15:10:37]MH_SAM_APDU [15:10:37]CAPDU: 80 13 00 00 [15:10:37]Write to MH i2c: E2 08 00 DD 03 80 13 00 00 00 00 00 00 5C [15:10:37]Write i2c OK [15:10:37]MH_I2C_Read... [15:10:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:38]Read from MH i2c: E2 [15:10:38]MH_I2C_Read... [15:10:38]Read from MH i2c: E2 62 00 [15:10:38]MH_I2C_Read... [15:10:38]Read from MH i2c: E2 62 00 DD 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EC CE 01 00 0E 04 04 00 B1 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 03 [15:10:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EC CE 01 00 0E 04 04 00 B1 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 [15:10:38]wFMCommunicate OK [15:10:38]SAM_PROTO_GetFieldsCounters done [15:10:38]requested_item shift.num is exist - process it [15:10:38]requested_item shift.opened is exist - process it [15:10:38]req_shift_opened [15:10:38]FM_GetShiftState [15:10:38]SAM_PROTO_GetShiftState [15:10:38]wFMCommunicate request_size=4 [15:10:38]MH_SAM_APDU [15:10:38]CAPDU: 80 13 01 00 [15:10:38]Write to MH i2c: E2 08 00 DE 03 80 13 01 00 00 00 00 00 5E [15:10:38]Write i2c OK [15:10:38]MH_I2C_Read... [15:10:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:38]Read from MH i2c: E2 [15:10:38]MH_I2C_Read... [15:10:38]Read from MH i2c: E2 0E 00 [15:10:38]MH_I2C_Read... [15:10:38]Read from MH i2c: E2 0E 00 DE 03 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 35 [15:10:38]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:10:38]wFMCommunicate OK [15:10:38]SAM_PROTO_GetShiftState done [15:10:38]FM_GetShiftState done [15:10:38]req_shift_opened done [15:10:38]requested_item shift.open_date is exist - process it [15:10:38]req_shift_open_date [15:10:38]req_shift_open_date done [15:10:38]produce_requested_data done [15:10:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118508,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [15:10:38]process_action_free close_receipt [15:10:38]json_value_free [15:10:38]json_value_free done [15:10:38]process_json_proto returns [15:10:38]Send response to host [15:10:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118508,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [15:10:38]free response buf [15:10:38]execute_script done [15:10:38]execute_script returns [15:10:38]free content buf [15:10:38]Sock 7.Close socket [15:10:38]Sock 7.Thread stoped [15:10:41]OFD Sender: No OFD packet to send [15:10:46]OFD Sender: No OFD packet to send [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:12:02]OFD Sender: No OFD packet to send [15:12:07]OFD Sender: No OFD packet to send [15:12:12]OFD Sender: No OFD packet to send [15:12:17]OFD Sender: No OFD packet to send [15:12:22]OFD Sender: No OFD packet to send [15:12:27]OFD Sender: No OFD packet to send [15:12:32]OFD Sender: No OFD packet to send [15:12:37]OFD Sender: No OFD packet to send [15:12:42]OFD Sender: No OFD packet to send [15:12:47]OFD Sender: No OFD packet to send [15:12:52]OFD Sender: No OFD packet to send [15:12:57]OFD Sender: No OFD packet to send [15:13:02]OFD Sender: No OFD packet to send [15:13:02]accept exits with 9 [15:13:02]New connection [15:13:02]New thread 3067239780 created [15:13:02]Thread 3067383140 joined [15:13:02]Waiting for new connection... [15:13:02] Sock 9.Parse request [15:13:02]Sock 9.Check first char [15:13:02]Sock 9.First char is OK [15:13:02]request: POST /json_proto HTTP/1.0 [15:13:02]Method: POST [15:13:02]URL: /json_proto [15:13:02]Method is POST - this is cgi request [15:13:02]url: /json_proto [15:13:02]query_string will be loaded in cgi processing [15:13:02]execute_cgi json_proto POST (null) [15:13:02]execute_cgi path=json_proto method=POST [15:13:02]POST find Content-Length [15:13:02]Host: 172.17.45.7:8080 [15:13:02]Content-Length: 822 [15:13:02]Content-Type: application/json [15:13:02] [15:13:02]POST finish read [15:13:02]Found Content-Length = 822 [15:13:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 66.380, "sum" : 4500.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", "total" : 4500.00, "payments": [ { "type": 1, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:02]execute_script... [15:13:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 66.380, "sum" : 4500.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", "total" : 4500.00, "payments": [ { "type": 1, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:02]POST & json_proto [15:13:02]process_json_proto [15:13:02]json parsed OK: [15:13:02]protocol is kg_v1.0 [15:13:02]action value=close_receipt [15:13:02]process_action close_receipt [15:13:02]cmd_close_receipt [15:13:02]MH_GetDate [15:13:02]Write to MH i2c: F0 00 00 DF 03 D1 [15:13:02]Write i2c OK [15:13:02]MH_I2C_Read... [15:13:02]Read from MH i2c: F0 [15:13:02]MH_I2C_Read... [15:13:02]Read from MH i2c: F0 09 00 [15:13:02]MH_I2C_Read... [15:13:02]Read from MH i2c: F0 09 00 DF 03 00 FF 5F A6 66 90 0F 3E 66 87 [15:13:02]GetLastDocTimeStamp 1722179435 [15:13:02]current date 1722179583 [15:13:02]FM_GetShiftState [15:13:02]SAM_PROTO_GetShiftState [15:13:02]wFMCommunicate request_size=4 [15:13:02]MH_SAM_APDU [15:13:02]CAPDU: 80 13 01 00 [15:13:02]Write to MH i2c: E2 08 00 E0 03 80 13 01 00 00 00 00 00 60 [15:13:02]Write i2c OK [15:13:02]MH_I2C_Read... [15:13:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:02]Read from MH i2c: E2 [15:13:02]MH_I2C_Read... [15:13:02]Read from MH i2c: E2 0E 00 [15:13:02]MH_I2C_Read... [15:13:02]Read from MH i2c: E2 0E 00 E0 03 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 37 [15:13:02]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:13:02]wFMCommunicate OK [15:13:02]SAM_PROTO_GetShiftState done [15:13:02]FM_GetShiftState done [15:13:02]opened in 1722125364 [15:13:02]opened+sec_in_day 1722211764 [15:13:02]quantity*price = 450056 [15:13:02]sum+1 = 450057 [15:13:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 4500.00 НСП 1% : 39.83 НДС 12% : 477.94 Наличными: 0.00 Безнал.: 4500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 178 28.07.2024 15:13 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118509 ФПД: 226822579342136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T151304&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118509&fm=226822579342136&tin=02508201610067®Number=0000000000092660&sum=450000 [15:13:04]StoreToDocumentArchive [15:13:04]shift 433 fd 118509 [15:13:04]save to /storage/0433/doc_00118509 [15:13:04]save last doc name /storage/0433/doc_00118509 to /storage/kkm_last_doc_name [15:13:04]save OK [15:13:04]Clear old archive folders... [15:13:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:13:04]tlvbuf is 01E50C00 [15:13:04]SAM_PROTO_ClearQueue [15:13:04]wFMCommunicate request_size=4 [15:13:04]MH_SAM_APDU [15:13:04]CAPDU: 80 09 00 00 [15:13:04]Write to MH i2c: E2 08 00 ED 03 80 09 00 00 00 00 00 00 62 [15:13:04]Write i2c OK [15:13:04]MH_I2C_Read... [15:13:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:04]Read from MH i2c: E2 [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: E2 03 00 [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: E2 03 00 ED 03 00 90 00 64 [15:13:04]RAPDU: 90 00 [15:13:04]wFMCommunicate OK [15:13:04]SAM_PROTO_ClearQueue done [15:13:04]KKMCreateOFDPacket [15:13:04]OFDProtocolAddRootSTLVToBuf [15:13:04]FM_MakeSignedData [15:13:04]FM_MakeSignedData [15:13:04]SAM_PROTO_SignData [15:13:04]wFMCommunicate request_size=4 [15:13:04]MH_SAM_APDU [15:13:04]CAPDU: 80 0D 01 02 [15:13:04]Write to MH i2c: E2 08 00 EE 03 80 0D 01 02 00 00 00 00 6A [15:13:04]Write i2c OK [15:13:04]MH_I2C_Read... [15:13:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:04]Read from MH i2c: E2 [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: E2 03 00 [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: E2 03 00 EE 03 00 90 00 65 [15:13:04]RAPDU: 90 00 [15:13:04]wFMCommunicate OK [15:13:04]wFMCommunicate request_size=255 [15:13:04]MH_SAM_APDU [15:13: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 34 FF 03 08 00 03 4C 03 01 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 DE 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 B2 BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 00 60 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 ED CE 01 00 35 04 06 00 CE [15:13:04]Write to MH i2c: E2 02 01 EF 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 34 FF 03 08 00 03 4C 03 01 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 DE 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 B2 BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 00 60 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 ED CE 01 00 35 04 06 00 CE 00 00 15 [15:13:04]Write i2c OK [15:13:04]MH_I2C_Read... [15:13:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:04]Read from MH i2c: E2 [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: E2 03 00 [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: E2 03 00 EF 03 00 90 00 66 [15:13:04]RAPDU: 90 00 [15:13:04]wFMCommunicate OK [15:13:04]wFMCommunicate request_size=10 [15:13:04]MH_SAM_APDU [15:13:04]CAPDU: 80 0D 02 02 05 4B 3F 44 CB 38 [15:13:04]Write to MH i2c: E2 0D 00 F0 03 80 0D 02 02 05 00 4B 3F 44 CB 38 00 00 48 [15:13:04]Write i2c OK [15:13:04]MH_I2C_Read... [15:13:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:04]Read from MH i2c: E2 [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: E2 03 00 [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: E2 03 00 F0 03 00 90 00 67 [15:13:04]RAPDU: 90 00 [15:13:04]wFMCommunicate OK [15:13:04]wFMCommunicate request_size=4 [15:13:04]MH_SAM_APDU [15:13:04]CAPDU: 80 0D 03 02 [15:13:04]Write to MH i2c: E2 08 00 F1 03 80 0D 03 02 00 00 00 00 6F [15:13:04]Write i2c OK [15:13:04]MH_I2C_Read... [15:13:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:04]Read from MH i2c: E2 [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: E2 0B 00 [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: E2 0B 00 F1 03 00 B2 85 B3 0A 75 22 DB 70 90 00 46 [15:13:04]RAPDU: B2 85 B3 0A 75 22 DB 70 90 00 [15:13:04]wFMCommunicate OK [15:13:04]SAM_PROTO_SignData done [15:13:04]FM_MakeSignedData done [15:13:04]CreateOFDProtocolMessage [15:13:04]wFMCommunicate request_size=4 [15:13:04]MH_SAM_APDU [15:13:04]CAPDU: 80 11 00 00 [15:13:04]Write to MH i2c: E2 08 00 F2 03 80 11 00 00 00 00 00 00 6F [15:13:04]Write i2c OK [15:13:04]MH_I2C_Read... [15:13:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:04]Read from MH i2c: E2 [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: E2 17 00 [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: E2 17 00 F2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CA [15:13:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:13:04]wFMCommunicate OK [15:13:04]CreateOFDProtocolMessage done [15:13:04]OFDSenderStorePacket 118509 [15:13:04]StoreOFDPacket docnum=118509 [15:13:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 05 BC 07 01 40 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4C 03 01 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 DE 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 B2 BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 00 60 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 ED CE 01 00 35 04 06 00 CE 4B 3F 44 CB 38 B2 85 B3 0A 75 22 DB 70 [15:13:04]CheckFolder [15:13:04]dirname=/storage/ofd_packets [15:13:04]CheckFolder done [15:13:04]ProducePacketName [15:13:04]name=ofd_packets/00118509 [15:13:04]NVStorageSaveData ofd_packets/00118509 [15:13:04]File name is /storage/ofd_packets/00118509 [15:13:04]Write 301 bytes [15:13:04]NVStorageSaveData done [15:13:04]OFDSenderStorePacket done [15:13:04]KKMCreateOFDPacket done [15:13:04]NVStorageSaveData kkm_last_timestamp [15:13:04]File name is /storage/kkm_last_timestamp [15:13:04]Write 4 bytes [15:13:04]NVStorageSaveData done [15:13:04]ExternCall_PrintAddStr [15:13:04]wPrintStart [15:13:04]Write to MH i2c: 01 00 00 F3 03 F6 [15:13:04]Write i2c OK [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: 01 [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: 01 07 00 [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: 01 07 00 F3 03 00 00 00 00 00 FF 0F 0B [15:13:04]RasterBufferAndPrint [15:13:04]line Счет N : (1)949378 [15:13:04]line ИНН: 02508201610067 [15:13:04]line Контрольно-Кассовый Чек [15:13:04]line ПРОДАЖА [15:13:04]line ТРК (МРК, ГНК) : 41 [15:13:04]line Товар: 2710124130 [15:13:04]line Аи-92-К-4 [15:13:04]line 66.380 * 67.80 [15:13:04]line = 4500.56 [15:13:04]line НДС 12% НСП 1% [15:13:04]line > о реализуемом товаре [15:13:04]line ОКРУГЛЕНИЕ: -0.56 [15:13:04]line ИТОГО: 4500.00 [15:13:04]line НСП 1% : 39.83 [15:13:04]line НДС 12% : 477.94 [15:13:04]line Наличными: 0.00 [15:13:04]line Безнал.: 4500.00 [15:13:04]line Место: АЗС № 134 "Партнер Нефть" [15:13:04]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:13:04]line СНО: Общий режим [15:13:04]line Чек 178 28.07.2024 15:13 [15:13:04]line Смена: 433 ФФД: 1.0 [15:13:04]line ЗНМ: 0300000044 [15:13:04]line РНМ: 0000000000092660 [15:13:04]line Версия ККМ: 001 [15:13:04]line Платежная система: O! деньги [15:13:04]line ФМ: 0000000000874939 [15:13:04]line ФД: 118509 [15:13:04]line ФПД: 226822579342136 [15:13:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T151304&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118509&fm=226822579342136&tin=02508201610067®Number=0000000000092660&sum=450000 [15:13:04]OFD Sender: Processing packet 118509 [packets to send 86, broken 85] [15:13:04]ProducePacketName [15:13:04]name=ofd_packets/00118509 [15:13:04]OFD Sender: To server: pG, [15:13:04]CommunicateWithHost lk.salyk.kg:30040 [15:13:04]ConnectInit lk.salyk.kg [15:13:04]written 0, free lines is 4095 [15:13:05]Connected sock=10 [15:13:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 05 BC 07 01 40 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4C 03 01 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 DE 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 B2 BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 00 60 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 ED CE 01 00 35 04 06 00 CE 4B 3F 44 CB 38 B2 85 B3 0A 75 22 DB 70 [15:13:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B3 D2 47 00 56 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 39 33 39 10 04 04 00 ED CE 01 00 F4 03 04 00 90 0D A6 66 B6 04 01 00 00 D2 25 A3 62 7B BF D5 2D [15:13:05]CommunicateWithHost err = 0 [15:13:05]CheckOFDResponse [15:13:05]1017 (14) - 77093643461234 [15:13:05]1041 (16) - 0000000000874939 [15:13:05]1040 (4) - 118509 [15:13:05]1012 (4) - 28.07.2024 09:21 [15:13:05]1206 (1) - 0 [15:13:05]OFD Sender: Remove packet 118509 [15:13:05]ProducePacketName [15:13:05]name=ofd_packets/00118509 [15:13:05]NVStorageDeleteData [15:13:05]Write to MH i2c: 01 00 00 1D 04 21 [15:13:05]Write i2c OK [15:13:05]MH_I2C_Read... [15:13:05]Read from MH i2c: 01 [15:13:05]MH_I2C_Read... [15:13:05]Read from MH i2c: 01 07 00 [15:13:05]MH_I2C_Read... [15:13:05]Read from MH i2c: 01 07 00 1D 04 00 00 00 00 00 E5 0C 19 [15:13:05]RasterBufferAndPrint [15:13:05]line [15:13:05]line [15:13:05]line [15:13:05]line [15:13:05]line [15:13:05]written 0, free lines is 3307 [15:13:05]MH_Cut [15:13:05]Write to MH i2c: D1 01 00 24 04 01 FA [15:13:05]Write i2c OK [15:13:05]MH_I2C_Read... [15:13:05]Read from MH i2c: D1 [15:13:05]MH_I2C_Read... [15:13:05]Read from MH i2c: D1 01 00 [15:13:05]MH_I2C_Read... [15:13:05]Read from MH i2c: D1 01 00 24 04 00 F9 [15:13:05]Write to MH i2c: 01 00 00 25 04 29 [15:13:05]Write i2c OK [15:13:05]MH_I2C_Read... [15:13:05]OFD Sender: No OFD packet to send [15:13:06]*** Cut start [15:13:06]*** Partial cut [15:13:06]*** CUTSNS_PIN = 1 [15:13:06]*** CUTSNS_PIN = 0 [15:13:06]*** Brake cut motor [15:13:06]Read from MH i2c: 01 [15:13:06]MH_I2C_Read... [15:13:06]*** Stop cut motor [15:13:06]*** Cut end [15:13:06]Read from MH i2c: 01 07 00 [15:13:06]MH_I2C_Read... [15:13:06]Read from MH i2c: 01 07 00 25 04 00 00 00 00 00 FF 0F 3E [15:13:06]process_action close_receipt done [15:13:06]requested_data is exist [15:13:06]produce_requested_data [15:13:06]requested_item fm.sn is exist - process it [15:13:06]wFMCommunicate request_size=4 [15:13:06]MH_SAM_APDU [15:13:06]CAPDU: 80 11 00 00 [15:13:06]Write to MH i2c: E2 08 00 26 04 80 11 00 00 00 00 00 00 A4 [15:13:06]Write i2c OK [15:13:06]MH_I2C_Read... [15:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:06]Read from MH i2c: E2 [15:13:06]MH_I2C_Read... [15:13:06]Read from MH i2c: E2 17 00 [15:13:06]MH_I2C_Read... [15:13:06]Read from MH i2c: E2 17 00 26 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FF [15:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:13:06]wFMCommunicate OK [15:13:06]requested_item fd.num is exist - process it [15:13:06]SAM_PROTO_GetFieldsCounters [15:13:06]wFMCommunicate request_size=4 [15:13:06]MH_SAM_APDU [15:13:06]CAPDU: 80 13 00 00 [15:13:06]Write to MH i2c: E2 08 00 27 04 80 13 00 00 00 00 00 00 A7 [15:13:06]Write i2c OK [15:13:06]MH_I2C_Read... [15:13:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:06]Read from MH i2c: E2 [15:13:06]MH_I2C_Read... [15:13:06]Read from MH i2c: E2 62 00 [15:13:06]MH_I2C_Read... [15:13:06]Read from MH i2c: E2 62 00 27 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 ED CE 01 00 0E 04 04 00 B1 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 52 [15: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 ED CE 01 00 0E 04 04 00 B1 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 [15:13:06]wFMCommunicate OK [15:13:06]SAM_PROTO_GetFieldsCounters done [15:13:06]requested_item shift.num is exist - process it [15:13:06]requested_item shift.opened is exist - process it [15:13:06]req_shift_opened [15:13:06]FM_GetShiftState [15:13:06]SAM_PROTO_GetShiftState [15:13:06]wFMCommunicate request_size=4 [15:13:06]MH_SAM_APDU [15:13:06]CAPDU: 80 13 01 00 [15:13:06]Write to MH i2c: E2 08 00 28 04 80 13 01 00 00 00 00 00 A9 [15:13:06]Write i2c OK [15:13:06]MH_I2C_Read... [15:13:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:07]Read from MH i2c: E2 [15:13:07]MH_I2C_Read... [15:13:07]Read from MH i2c: E2 0E 00 [15:13:07]MH_I2C_Read... [15:13:07]Read from MH i2c: E2 0E 00 28 04 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 80 [15:13:07]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:13:07]wFMCommunicate OK [15:13:07]SAM_PROTO_GetShiftState done [15:13:07]FM_GetShiftState done [15:13:07]req_shift_opened done [15:13:07]requested_item shift.open_date is exist - process it [15:13:07]req_shift_open_date [15:13:07]req_shift_open_date done [15:13:07]produce_requested_data done [15:13:07]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118509,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [15:13:07]process_action_free close_receipt [15:13:07]json_value_free [15:13:07]json_value_free done [15:13:07]process_json_proto returns [15:13:07]Send response to host [15:13:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118509,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [15:13:07]free response buf [15:13:07]execute_script done [15:13:07]execute_script returns [15:13:07]free content buf [15:13:07]Sock 9.Close socket [15:13:07]Sock 9.Thread stoped [15:13:10]OFD Sender: No OFD packet to send [15:13:15]OFD Sender: No OFD packet to send [15:13:16]accept exits with 7 [15:13:16]New connection [15:13:16]New thread 3067383140 created [15:13:16]Thread 3067239780 joined [15:13:16]Waiting for new connection... [15:13:16] Sock 7.Parse request [15:13:16]Sock 7.Check first char [15:13:16]Sock 7.First char is OK [15:13:16]request: POST /json_proto HTTP/1.0 [15:13:16]Method: POST [15:13:16]URL: /json_proto [15:13:16]Method is POST - this is cgi request [15:13:16]url: /json_proto [15:13:16]query_string will be loaded in cgi processing [15:13:16]execute_cgi json_proto POST (null) [15:13:16]execute_cgi path=json_proto method=POST [15:13:16]POST find Content-Length [15:13:16]Host: 172.17.45.7:8080 [15:13:16]Content-Length: 822 [15:13:16]Content-Type: application/json [15:13:16] [15:13:16]POST finish read [15:13:16]Found Content-Length = 822 [15:13:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 25.080, "sum" : 1700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1700.00, "payments": [ { "type": 1, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:16]execute_script... [15:13: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)949381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 25.080, "sum" : 1700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1700.00, "payments": [ { "type": 1, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:16]POST & json_proto [15:13:16]process_json_proto [15:13:16]json parsed OK: [15:13:16]protocol is kg_v1.0 [15:13:16]action value=close_receipt [15:13:16]process_action close_receipt [15:13:16]cmd_close_receipt [15:13:16]MH_GetDate [15:13:16]Write to MH i2c: F0 00 00 29 04 1C [15:13:16]Write i2c OK [15:13:16]MH_I2C_Read... [15:13:16]Read from MH i2c: F0 [15:13:16]MH_I2C_Read... [15:13:16]Read from MH i2c: F0 09 00 [15:13:16]MH_I2C_Read... [15:13:16]Read from MH i2c: F0 09 00 29 04 00 0D 60 A6 66 90 0F 3E 66 E1 [15:13:16]GetLastDocTimeStamp 1722179584 [15:13:16]current date 1722179597 [15:13:16]FM_GetShiftState [15:13:16]SAM_PROTO_GetShiftState [15:13:16]wFMCommunicate request_size=4 [15:13:16]MH_SAM_APDU [15:13:16]CAPDU: 80 13 01 00 [15:13:16]Write to MH i2c: E2 08 00 2A 04 80 13 01 00 00 00 00 00 AB [15:13:16]Write i2c OK [15:13:16]MH_I2C_Read... [15:13:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:16]Read from MH i2c: E2 [15:13:16]MH_I2C_Read... [15:13:16]Read from MH i2c: E2 0E 00 [15:13:16]MH_I2C_Read... [15:13:16]Read from MH i2c: E2 0E 00 2A 04 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 82 [15:13:16]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:13:16]wFMCommunicate OK [15:13:16]SAM_PROTO_GetShiftState done [15:13:16]FM_GetShiftState done [15:13:16]opened in 1722125364 [15:13:16]opened+sec_in_day 1722211764 [15:13:16]quantity*price = 170042 [15:13:16]sum+1 = 170043 [15:13:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 1700.00 НСП 1% : 15.05 НДС 12% : 180.58 Наличными: 0.00 Безнал.: 1700.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 179 28.07.2024 15:13 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118510 ФПД: 183405470079205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T151317&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118510&fm=183405470079205&tin=02508201610067®Number=0000000000092660&sum=170000 [15:13:17]StoreToDocumentArchive [15:13:17]shift 433 fd 118510 [15:13:17]save to /storage/0433/doc_00118510 [15:13:17]save last doc name /storage/0433/doc_00118510 to /storage/kkm_last_doc_name [15:13:17]save OK [15:13:17]Clear old archive folders... [15:13:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:13:17]tlvbuf is 01E7C680 [15:13:17]SAM_PROTO_ClearQueue [15:13:17]wFMCommunicate request_size=4 [15:13:17]MH_SAM_APDU [15:13:17]CAPDU: 80 09 00 00 [15:13:17]Write to MH i2c: E2 08 00 37 04 80 09 00 00 00 00 00 00 AD [15:13:17]Write i2c OK [15:13:17]MH_I2C_Read... [15:13:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:17]Read from MH i2c: E2 [15:13:17]MH_I2C_Read... [15:13:17]Read from MH i2c: E2 03 00 [15:13:17]MH_I2C_Read... [15:13:17]Read from MH i2c: E2 03 00 37 04 00 90 00 AF [15:13:17]RAPDU: 90 00 [15:13:17]wFMCommunicate OK [15:13:17]SAM_PROTO_ClearQueue done [15:13:17]KKMCreateOFDPacket [15:13:17]OFDProtocolAddRootSTLVToBuf [15:13:17]FM_MakeSignedData [15:13:17]FM_MakeSignedData [15:13:17]SAM_PROTO_SignData [15:13:17]wFMCommunicate request_size=4 [15:13:17]MH_SAM_APDU [15:13:17]CAPDU: 80 0D 01 02 [15:13:17]Write to MH i2c: E2 08 00 38 04 80 0D 01 02 00 00 00 00 B5 [15:13:17]Write i2c OK [15:13:17]MH_I2C_Read... [15:13:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:17]Read from MH i2c: E2 [15:13:17]MH_I2C_Read... [15:13:17]Read from MH i2c: E2 03 00 [15:13:17]MH_I2C_Read... [15:13:17]Read from MH i2c: E2 03 00 38 04 00 90 00 B0 [15:13:17]RAPDU: 90 00 [15:13:17]wFMCommunicate OK [15:13:17]wFMCommunicate request_size=255 [15:13:17]MH_SAM_APDU [15:13: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 34 FF 03 08 00 03 F8 61 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3A 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 8A 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 0D 60 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EE CE 01 00 35 04 06 00 A6 [15:13:17]Write to MH i2c: E2 02 01 39 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 34 FF 03 08 00 03 F8 61 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3A 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 8A 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 0D 60 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EE CE 01 00 35 04 06 00 A6 00 00 D2 [15:13:17]Write i2c OK [15:13:17]MH_I2C_Read... [15:13:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:17]Read from MH i2c: E2 [15:13:17]MH_I2C_Read... [15:13:17]Read from MH i2c: E2 03 00 [15:13:17]MH_I2C_Read... [15:13:17]Read from MH i2c: E2 03 00 39 04 00 90 00 B1 [15:13:17]RAPDU: 90 00 [15:13:17]wFMCommunicate OK [15:13:17]wFMCommunicate request_size=10 [15:13:17]MH_SAM_APDU [15:13:17]CAPDU: 80 0D 02 02 05 CE 69 E4 D8 E5 [15:13:17]Write to MH i2c: E2 0D 00 3A 04 80 0D 02 02 05 00 CE 69 E4 D8 E5 00 00 9A [15:13:17]Write i2c OK [15:13:17]MH_I2C_Read... [15:13:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:17]Read from MH i2c: E2 [15:13:17]MH_I2C_Read... [15:13:17]Read from MH i2c: E2 03 00 [15:13:17]MH_I2C_Read... [15:13:17]Read from MH i2c: E2 03 00 3A 04 00 90 00 B2 [15:13:17]RAPDU: 90 00 [15:13:17]wFMCommunicate OK [15:13:17]wFMCommunicate request_size=4 [15:13:17]MH_SAM_APDU [15:13:17]CAPDU: 80 0D 03 02 [15:13:17]Write to MH i2c: E2 08 00 3B 04 80 0D 03 02 00 00 00 00 BA [15:13:17]Write i2c OK [15:13:17]MH_I2C_Read... [15:13:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:18]Read from MH i2c: E2 [15:13:18]MH_I2C_Read... [15:13:18]Read from MH i2c: E2 0B 00 [15:13:18]MH_I2C_Read... [15:13:18]Read from MH i2c: E2 0B 00 3B 04 00 B2 E9 FE 63 65 F2 7C A0 90 00 2A [15:13:18]RAPDU: B2 E9 FE 63 65 F2 7C A0 90 00 [15:13:18]wFMCommunicate OK [15:13:18]SAM_PROTO_SignData done [15:13:18]FM_MakeSignedData done [15:13:18]CreateOFDProtocolMessage [15:13:18]wFMCommunicate request_size=4 [15:13:18]MH_SAM_APDU [15:13:18]CAPDU: 80 11 00 00 [15:13:18]Write to MH i2c: E2 08 00 3C 04 80 11 00 00 00 00 00 00 BA [15:13:18]Write i2c OK [15:13:18]MH_I2C_Read... [15:13:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:18]Read from MH i2c: E2 [15:13:18]MH_I2C_Read... [15:13:18]Read from MH i2c: E2 17 00 [15:13:18]MH_I2C_Read... [15:13:18]Read from MH i2c: E2 17 00 3C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 15 [15:13:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:13:18]wFMCommunicate OK [15:13:18]CreateOFDProtocolMessage done [15:13:18]OFDSenderStorePacket 118510 [15:13:18]StoreOFDPacket docnum=118510 [15:13:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 70 7B 07 01 56 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 34 FF 03 08 00 03 F8 61 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3A 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 8A 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 0D 60 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EE CE 01 00 35 04 06 00 A6 CE 69 E4 D8 E5 B2 E9 FE 63 65 F2 7C A0 [15:13:18]CheckFolder [15:13:18]dirname=/storage/ofd_packets [15:13:18]CheckFolder done [15:13:18]ProducePacketName [15:13:18]name=ofd_packets/00118510 [15:13:18]NVStorageSaveData ofd_packets/00118510 [15:13:18]File name is /storage/ofd_packets/00118510 [15:13:18]Write 301 bytes [15:13:18]NVStorageSaveData done [15:13:18]OFDSenderStorePacket done [15:13:18]KKMCreateOFDPacket done [15:13:18]NVStorageSaveData kkm_last_timestamp [15:13:18]File name is /storage/kkm_last_timestamp [15:13:18]Write 4 bytes [15:13:18]NVStorageSaveData done [15:13:18]ExternCall_PrintAddStr [15:13:18]wPrintStart [15:13:18]Write to MH i2c: 01 00 00 3D 04 41 [15:13:18]Write i2c OK [15:13:18]MH_I2C_Read... [15:13:18]Read from MH i2c: 01 [15:13:18]MH_I2C_Read... [15:13:18]Read from MH i2c: 01 07 00 [15:13:18]MH_I2C_Read... [15:13:18]Read from MH i2c: 01 07 00 3D 04 00 00 00 00 00 FF 0F 56 [15:13:18]RasterBufferAndPrint [15:13:18]line Счет N : (1)949381 [15:13:18]line ИНН: 02508201610067 [15:13:18]line Контрольно-Кассовый Чек [15:13:18]line ПРОДАЖА [15:13:18]line ТРК (МРК, ГНК) : 51 [15:13:18]line Товар: 2710124130 [15:13:18]line Аи-92-К-4 [15:13:18]line 25.080 * 67.80 [15:13:18]line = 1700.42 [15:13:18]line НДС 12% НСП 1% [15:13:18]line > о реализуемом товаре [15:13:18]line ОКРУГЛЕНИЕ: -0.42 [15:13:18]line ИТОГО: 1700.00 [15:13:18]line НСП 1% : 15.05 [15:13:18]line НДС 12% : 180.58 [15:13:18]line Наличными: 0.00 [15:13:18]line Безнал.: 1700.00 [15:13:18]line Место: АЗС № 134 "Партнер Нефть" [15:13:18]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:13:18]line СНО: Общий режим [15:13:18]line Чек 179 28.07.2024 15:13 [15:13:18]line Смена: 433 ФФД: 1.0 [15:13:18]line ЗНМ: 0300000044 [15:13:18]line РНМ: 0000000000092660 [15:13:18]line Версия ККМ: 001 [15:13:18]line Платежная система: O! деньги [15:13:18]line ФМ: 0000000000874939 [15:13:18]line ФД: 118510 [15:13:18]line ФПД: 183405470079205 [15:13:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T151317&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118510&fm=183405470079205&tin=02508201610067®Number=0000000000092660&sum=170000 [15:13:18]OFD Sender: Processing packet 118510 [packets to send 86, broken 85] [15:13:18]ProducePacketName [15:13:18]name=ofd_packets/00118510 [15:13:18]OFD Sender: To server: pG, [15:13:18]CommunicateWithHost lk.salyk.kg:30040 [15:13:18]ConnectInit lk.salyk.kg [15:13:18]written 0, free lines is 4095 [15:13:18]Connected sock=10 [15:13:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 70 7B 07 01 56 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 34 FF 03 08 00 03 F8 61 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3A 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 8A 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 0D 60 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EE CE 01 00 35 04 06 00 A6 CE 69 E4 D8 E5 B2 E9 FE 63 65 F2 7C A0 [15:13:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4E 62 47 00 CD 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 39 33 39 10 04 04 00 EE CE 01 00 F4 03 04 00 9D 0D A6 66 B6 04 01 00 00 DA 87 16 BB C2 2B 61 45 [15:13:18]CommunicateWithHost err = 0 [15:13:18]CheckOFDResponse [15:13:18]1017 (14) - 77093643461234 [15:13:18]1041 (16) - 0000000000874939 [15:13:18]1040 (4) - 118510 [15:13:18]1012 (4) - 28.07.2024 09:21 [15:13:18]1206 (1) - 0 [15:13:18]OFD Sender: Remove packet 118510 [15:13:18]ProducePacketName [15:13:18]name=ofd_packets/00118510 [15:13:18]NVStorageDeleteData [15:13:18]Write to MH i2c: 01 00 00 67 04 6B [15:13:18]Write i2c OK [15:13:18]MH_I2C_Read... [15:13:18]Read from MH i2c: 01 [15:13:18]MH_I2C_Read... [15:13:18]Read from MH i2c: 01 07 00 [15:13:18]MH_I2C_Read... [15:13:18]Read from MH i2c: 01 07 00 67 04 00 00 00 00 00 DA 0C 58 [15:13:18]RasterBufferAndPrint [15:13:18]line [15:13:18]line [15:13:18]line [15:13:18]line [15:13:18]line [15:13:18]written 0, free lines is 3297 [15:13:18]MH_Cut [15:13:18]Write to MH i2c: D1 01 00 6E 04 01 44 [15:13:18]Write i2c OK [15:13:18]MH_I2C_Read... [15:13:18]Read from MH i2c: D1 [15:13:18]MH_I2C_Read... [15:13:18]Read from MH i2c: D1 01 00 [15:13:18]MH_I2C_Read... [15:13:18]Read from MH i2c: D1 01 00 6E 04 00 43 [15:13:18]Write to MH i2c: 01 00 00 6F 04 73 [15:13:18]Write i2c OK [15:13:18]MH_I2C_Read... [15:13:19]OFD Sender: No OFD packet to send [15:13:19]*** Cut start [15:13:19]*** Partial cut [15:13:19]*** CUTSNS_PIN = 1 [15:13:19]*** CUTSNS_PIN = 0 [15:13:19]*** Brake cut motor [15:13:20]Read from MH i2c: 01 [15:13:20]MH_I2C_Read... [15:13:20]*** Stop cut motor [15:13:20]*** Cut end [15:13:20]Read from MH i2c: 01 07 00 [15:13:20]MH_I2C_Read... [15:13:20]Read from MH i2c: 01 07 00 6F 04 00 00 00 00 00 FF 0F 88 [15:13:20]process_action close_receipt done [15:13:20]requested_data is exist [15:13:20]produce_requested_data [15:13:20]requested_item fm.sn is exist - process it [15:13:20]wFMCommunicate request_size=4 [15:13:20]MH_SAM_APDU [15:13:20]CAPDU: 80 11 00 00 [15:13:20]Write to MH i2c: E2 08 00 70 04 80 11 00 00 00 00 00 00 EE [15:13:20]Write i2c OK [15:13:20]MH_I2C_Read... [15:13:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:20]Read from MH i2c: E2 [15:13:20]MH_I2C_Read... [15:13:20]Read from MH i2c: E2 17 00 [15:13:20]MH_I2C_Read... [15:13:20]Read from MH i2c: E2 17 00 70 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 49 [15:13:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:13:20]wFMCommunicate OK [15:13:20]requested_item fd.num is exist - process it [15:13:20]SAM_PROTO_GetFieldsCounters [15:13:20]wFMCommunicate request_size=4 [15:13:20]MH_SAM_APDU [15:13:20]CAPDU: 80 13 00 00 [15:13:20]Write to MH i2c: E2 08 00 71 04 80 13 00 00 00 00 00 00 F1 [15:13:20]Write i2c OK [15:13:20]MH_I2C_Read... [15:13:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:20]Read from MH i2c: E2 [15:13:20]MH_I2C_Read... [15:13:20]Read from MH i2c: E2 62 00 [15:13:20]MH_I2C_Read... [15:13:20]Read from MH i2c: E2 62 00 71 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EE CE 01 00 0E 04 04 00 B1 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 A0 [15: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EE CE 01 00 0E 04 04 00 B1 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 [15:13:20]wFMCommunicate OK [15:13:20]SAM_PROTO_GetFieldsCounters done [15:13:20]requested_item shift.num is exist - process it [15:13:20]requested_item shift.opened is exist - process it [15:13:20]req_shift_opened [15:13:20]FM_GetShiftState [15:13:20]SAM_PROTO_GetShiftState [15:13:20]wFMCommunicate request_size=4 [15:13:20]MH_SAM_APDU [15:13:20]CAPDU: 80 13 01 00 [15:13:20]Write to MH i2c: E2 08 00 72 04 80 13 01 00 00 00 00 00 F3 [15:13:20]Write i2c OK [15:13:20]MH_I2C_Read... [15:13:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:20]Read from MH i2c: E2 [15:13:20]MH_I2C_Read... [15:13:20]Read from MH i2c: E2 0E 00 [15:13:20]MH_I2C_Read... [15:13:20]Read from MH i2c: E2 0E 00 72 04 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 CA [15:13:20]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:13:20]wFMCommunicate OK [15:13:20]SAM_PROTO_GetShiftState done [15:13:20]FM_GetShiftState done [15:13:20]req_shift_opened done [15:13:20]requested_item shift.open_date is exist - process it [15:13:20]req_shift_open_date [15:13:20]req_shift_open_date done [15:13:20]produce_requested_data done [15:13:20]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118510,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [15:13:20]process_action_free close_receipt [15:13:20]json_value_free [15:13:20]json_value_free done [15:13:20]process_json_proto returns [15:13:20]Send response to host [15:13:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118510,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [15:13:20]free response buf [15:13:20]execute_script done [15:13:20]execute_script returns [15:13:20]free content buf [15:13:20]Sock 7.Close socket [15:13:20]Sock 7.Thread stoped [15:13:24]OFD Sender: No OFD packet to send [15:13:29]OFD Sender: No OFD packet to send [15:13:34]OFD Sender: No OFD packet to send [15:13:39]OFD Sender: No OFD packet to send [15:13:44]OFD Sender: No OFD packet to send [15:13:49]OFD Sender: No OFD packet to send [15:13:54]OFD Sender: No OFD packet to send [15:13:59]OFD Sender: No OFD packet to send [15:14:04]OFD Sender: No OFD packet to send [15:14:09]OFD Sender: No OFD packet to send [15:14:14]OFD Sender: No OFD packet to send [15:14:19]OFD Sender: No OFD packet to send [15:14:24]OFD Sender: No OFD packet to send [15:14:29]OFD Sender: No OFD packet to send [15:14:34]OFD Sender: No OFD packet to send [15:14:39]OFD Sender: No OFD packet to send [15:14:42]accept exits with 9 [15:14:42]New connection [15:14:42]New thread 3067239780 created [15:14:42]Thread 3067383140 joined [15:14:42]Waiting for new connection... [15:14:42] Sock 9.Parse request [15:14:42]Sock 9.Check first char [15:14:42]Sock 9.First char is OK [15:14:42]request: POST /json_proto HTTP/1.0 [15:14:42]Method: POST [15:14:42]URL: /json_proto [15:14:42]Method is POST - this is cgi request [15:14:42]url: /json_proto [15:14:42]query_string will be loaded in cgi processing [15:14:42]execute_cgi json_proto POST (null) [15:14:42]execute_cgi path=json_proto method=POST [15:14:42]POST find Content-Length [15:14:42]Host: 172.17.45.7:8080 [15:14:42]Content-Length: 677 [15:14:42]Content-Type: application/json [15:14:42] [15:14:42]POST finish read [15:14:42]Found Content-Length = 677 [15:14:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:42]execute_script... [15: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)949382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:42]POST & json_proto [15:14:42]process_json_proto [15:14:42]json parsed OK: [15:14:42]protocol is kg_v1.0 [15:14:42]action value=close_receipt [15:14:42]process_action close_receipt [15:14:42]cmd_close_receipt [15:14:42]MH_GetDate [15:14:42]Write to MH i2c: F0 00 00 73 04 66 [15:14:42]Write i2c OK [15:14:42]MH_I2C_Read... [15:14:42]Read from MH i2c: F0 [15:14:42]MH_I2C_Read... [15:14:42]Read from MH i2c: F0 09 00 [15:14:42]MH_I2C_Read... [15:14:42]Read from MH i2c: F0 09 00 73 04 00 63 60 A6 66 90 0F 3E 66 81 [15:14:42]GetLastDocTimeStamp 1722179597 [15:14:42]current date 1722179683 [15:14:42]FM_GetShiftState [15:14:42]SAM_PROTO_GetShiftState [15:14:42]wFMCommunicate request_size=4 [15:14:42]MH_SAM_APDU [15:14:42]CAPDU: 80 13 01 00 [15:14:42]Write to MH i2c: E2 08 00 74 04 80 13 01 00 00 00 00 00 F5 [15:14:42]Write i2c OK [15:14:42]MH_I2C_Read... [15:14:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:42]Read from MH i2c: E2 [15:14:42]MH_I2C_Read... [15:14:42]Read from MH i2c: E2 0E 00 [15:14:42]MH_I2C_Read... [15:14:42]Read from MH i2c: E2 0E 00 74 04 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 CC [15:14:42]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:14:42]wFMCommunicate OK [15:14:42]SAM_PROTO_GetShiftState done [15:14:42]FM_GetShiftState done [15:14:42]opened in 1722125364 [15:14:42]opened+sec_in_day 1722211764 [15:14:42]quantity*price = 25018 [15:14:42]sum+1 = 25019 [15:14:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 180 28.07.2024 15:14 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118511 ФПД: 137819431389271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T151443&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118511&fm=137819431389271&tin=02508201610067®Number=0000000000092660&sum=25000 [15:14:43]StoreToDocumentArchive [15:14:43]shift 433 fd 118511 [15:14:43]save to /storage/0433/doc_00118511 [15:14:43]save last doc name /storage/0433/doc_00118511 to /storage/kkm_last_doc_name [15:14:43]save OK [15:14:43]Clear old archive folders... [15:14:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:14:43]tlvbuf is 01E7E0E0 [15:14:43]SAM_PROTO_ClearQueue [15:14:43]wFMCommunicate request_size=4 [15:14:43]MH_SAM_APDU [15:14:43]CAPDU: 80 09 00 00 [15:14:43]Write to MH i2c: E2 08 00 81 04 80 09 00 00 00 00 00 00 F7 [15:14:43]Write i2c OK [15:14:43]MH_I2C_Read... [15:14:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:43]Read from MH i2c: E2 [15:14:43]MH_I2C_Read... [15:14:43]Read from MH i2c: E2 03 00 [15:14:43]MH_I2C_Read... [15:14:43]Read from MH i2c: E2 03 00 81 04 00 90 00 F9 [15:14:43]RAPDU: 90 00 [15:14:43]wFMCommunicate OK [15:14:43]SAM_PROTO_ClearQueue done [15:14:43]KKMCreateOFDPacket [15:14:43]OFDProtocolAddRootSTLVToBuf [15:14:43]FM_MakeSignedData [15:14:43]FM_MakeSignedData [15:14:43]SAM_PROTO_SignData [15:14:43]wFMCommunicate request_size=4 [15:14:43]MH_SAM_APDU [15:14:43]CAPDU: 80 0D 01 02 [15:14:43]Write to MH i2c: E2 08 00 82 04 80 0D 01 02 00 00 00 00 FF [15:14:43]Write i2c OK [15:14:43]MH_I2C_Read... [15:14:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:43]Read from MH i2c: E2 [15:14:43]MH_I2C_Read... [15:14:43]Read from MH i2c: E2 03 00 [15:14:43]MH_I2C_Read... [15:14:43]Read from MH i2c: E2 03 00 82 04 00 90 00 FA [15:14:43]RAPDU: 90 00 [15:14:43]wFMCommunicate OK [15:14:43]wFMCommunicate request_size=255 [15:14:43]MH_SAM_APDU [15:14: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 34 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 63 60 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EF CE 01 00 35 04 06 00 7D [15:14:43]Write to MH i2c: E2 02 01 83 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 34 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 63 60 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EF CE 01 00 35 04 06 00 7D 00 00 01 [15:14:43]Write i2c OK [15:14:43]MH_I2C_Read... [15:14:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:44]Read from MH i2c: E2 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: E2 03 00 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: E2 03 00 83 04 00 90 00 FB [15:14:44]RAPDU: 90 00 [15:14:44]wFMCommunicate OK [15:14:44]wFMCommunicate request_size=10 [15:14:44]MH_SAM_APDU [15:14:44]CAPDU: 80 0D 02 02 05 58 96 40 48 57 [15:14:44]Write to MH i2c: E2 0D 00 84 04 80 0D 02 02 05 00 58 96 40 48 57 00 00 D9 [15:14:44]Write i2c OK [15:14:44]MH_I2C_Read... [15:14:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:44]Read from MH i2c: E2 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: E2 03 00 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: E2 03 00 84 04 00 90 00 FC [15:14:44]RAPDU: 90 00 [15:14:44]wFMCommunicate OK [15:14:44]wFMCommunicate request_size=4 [15:14:44]MH_SAM_APDU [15:14:44]CAPDU: 80 0D 03 02 [15:14:44]Write to MH i2c: E2 08 00 85 04 80 0D 03 02 00 00 00 00 04 [15:14:44]Write i2c OK [15:14:44]MH_I2C_Read... [15:14:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:44]Read from MH i2c: E2 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: E2 0B 00 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: E2 0B 00 85 04 00 37 9E DC DF 4C 0E 97 58 90 00 DE [15:14:44]RAPDU: 37 9E DC DF 4C 0E 97 58 90 00 [15:14:44]wFMCommunicate OK [15:14:44]SAM_PROTO_SignData done [15:14:44]FM_MakeSignedData done [15:14:44]CreateOFDProtocolMessage [15:14:44]wFMCommunicate request_size=4 [15:14:44]MH_SAM_APDU [15:14:44]CAPDU: 80 11 00 00 [15:14:44]Write to MH i2c: E2 08 00 86 04 80 11 00 00 00 00 00 00 04 [15:14:44]Write i2c OK [15:14:44]MH_I2C_Read... [15:14:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:44]Read from MH i2c: E2 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: E2 17 00 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: E2 17 00 86 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5F [15:14:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:14:44]wFMCommunicate OK [15:14:44]CreateOFDProtocolMessage done [15:14:44]OFDSenderStorePacket 118511 [15:14:44]StoreOFDPacket docnum=118511 [15:14:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 18 4A 07 01 4D 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 63 60 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EF CE 01 00 35 04 06 00 7D 58 96 40 48 57 37 9E DC DF 4C 0E 97 58 [15:14:44]CheckFolder [15:14:44]dirname=/storage/ofd_packets [15:14:44]CheckFolder done [15:14:44]ProducePacketName [15:14:44]name=ofd_packets/00118511 [15:14:44]NVStorageSaveData ofd_packets/00118511 [15:14:44]File name is /storage/ofd_packets/00118511 [15:14:44]Write 301 bytes [15:14:44]NVStorageSaveData done [15:14:44]OFDSenderStorePacket done [15:14:44]KKMCreateOFDPacket done [15:14:44]NVStorageSaveData kkm_last_timestamp [15:14:44]File name is /storage/kkm_last_timestamp [15:14:44]Write 4 bytes [15:14:44]NVStorageSaveData done [15:14:44]ExternCall_PrintAddStr [15:14:44]wPrintStart [15:14:44]Write to MH i2c: 01 00 00 87 04 8B [15:14:44]Write i2c OK [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: 01 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: 01 07 00 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: 01 07 00 87 04 00 00 00 00 00 FF 0F A0 [15:14:44]RasterBufferAndPrint [15:14:44]line Счет N : (1)949382 [15:14:44]line ИНН: 02508201610067 [15:14:44]line Контрольно-Кассовый Чек [15:14:44]line ПРОДАЖА [15:14:44]line ТРК (МРК, ГНК) : 61 [15:14:44]line Товар: 2710124130 [15:14:44]line Аи-92-К-4 [15:14:44]line 3.690 * 67.80 [15:14:44]line = 250.18 [15:14:44]line НДС 12% НСП 1% [15:14:44]line > о реализуемом товаре [15:14:44]line ОКРУГЛЕНИЕ: -0.18 [15:14:44]line ИТОГО: 250.00 [15:14:44]line Внесено: 250.00 [15:14:44]line СДАЧА: 0.00 [15:14:44]line НСП 1% : 2.21 [15:14:44]line НДС 12% : 26.57 [15:14:44]line Наличными: 250.00 [15:14:44]line Безнал.: 0.00 [15:14:44]line Место: АЗС № 134 "Партнер Нефть" [15:14:44]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:14:44]line СНО: Общий режим [15:14:44]line Чек 180 28.07.2024 15:14 [15:14:44]line Смена: 433 ФФД: 1.0 [15:14:44]line ЗНМ: 0300000044 [15:14:44]line РНМ: 0000000000092660 [15:14:44]line Версия ККМ: 001 [15:14:44]line ФМ: 0000000000874939 [15:14:44]line ФД: 118511 [15:14:44]line ФПД: 137819431389271 [15:14:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T151443&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118511&fm=137819431389271&tin=02508201610067®Number=0000000000092660&sum=25000 [15:14:44]OFD Sender: Processing packet 118511 [packets to send 86, broken 85] [15:14:44]ProducePacketName [15:14:44]name=ofd_packets/00118511 [15:14:44]OFD Sender: To server: pG, [15:14:44]CommunicateWithHost lk.salyk.kg:30040 [15:14:44]ConnectInit lk.salyk.kg [15:14:44]Connected sock=11 [15: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 39 33 39 0F 01 00 00 18 4A 07 01 4D 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 written 0, free lines is 4095 [15:14:44]30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 63 60 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EF CE 01 00 35 04 06 00 7D 58 96 40 48 57 37 9E DC DF 4C 0E 97 58 [15:14:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 75 E8 47 00 BC 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 39 33 39 10 04 04 00 EF CE 01 00 F4 03 04 00 F3 0D A6 66 B6 04 01 00 00 3B D3 26 BC 7C 00 38 42 [15:14:44]CommunicateWithHost err = 0 [15:14:44]CheckOFDResponse [15:14:44]1017 (14) - 77093643461234 [15:14:44]1041 (16) - 0000000000874939 [15:14:44]1040 (4) - 118511 [15:14:44]1012 (4) - 28.07.2024 09:22 [15:14:44]1206 (1) - 0 [15:14:44]OFD Sender: Remove packet 118511 [15:14:44]ProducePacketName [15:14:44]name=ofd_packets/00118511 [15:14:44]NVStorageDeleteData [15:14:45]Write to MH i2c: 01 00 00 B1 04 B5 [15:14:45]Write i2c OK [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: 01 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: 01 07 00 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: 01 07 00 B1 04 00 00 00 00 00 CF 0C 97 [15:14:45]RasterBufferAndPrint [15:14:45]line [15:14:45]line [15:14:45]line [15:14:45]line [15:14:45]line [15:14:45]written 0, free lines is 3283 [15:14:45]MH_Cut [15:14:45]Write to MH i2c: D1 01 00 B8 04 01 8E [15:14:45]Write i2c OK [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: D1 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: D1 01 00 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: D1 01 00 B8 04 00 8D [15:14:45]Write to MH i2c: 01 00 00 B9 04 BD [15:14:45]Write i2c OK [15:14:45]MH_I2C_Read... [15:14:45]OFD Sender: No OFD packet to send [15:14:45]*** Cut start [15:14:45]*** Partial cut [15:14:45]*** CUTSNS_PIN = 1 [15:14:45]*** CUTSNS_PIN = 0 [15:14:46]*** Brake cut motor [15:14:46]Read from MH i2c: 01 [15:14:46]MH_I2C_Read... [15:14:46]*** Stop cut motor [15:14:46]*** Cut end [15:14:46]Read from MH i2c: 01 07 00 [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: 01 07 00 B9 04 00 00 00 00 00 FF 0F D2 [15:14:46]process_action close_receipt done [15:14:46]requested_data is exist [15:14:46]produce_requested_data [15:14:46]requested_item fm.sn is exist - process it [15:14:46]wFMCommunicate request_size=4 [15:14:46]MH_SAM_APDU [15:14:46]CAPDU: 80 11 00 00 [15:14:46]Write to MH i2c: E2 08 00 BA 04 80 11 00 00 00 00 00 00 38 [15:14:46]Write i2c OK [15:14:46]MH_I2C_Read... [15:14:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:46]Read from MH i2c: E2 [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: E2 17 00 [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: E2 17 00 BA 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 93 [15:14:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:14:46]wFMCommunicate OK [15:14:46]requested_item fd.num is exist - process it [15:14:46]SAM_PROTO_GetFieldsCounters [15:14:46]wFMCommunicate request_size=4 [15:14:46]MH_SAM_APDU [15:14:46]CAPDU: 80 13 00 00 [15:14:46]Write to MH i2c: E2 08 00 BB 04 80 13 00 00 00 00 00 00 3B [15:14:46]Write i2c OK [15:14:46]MH_I2C_Read... [15:14:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:46]Read from MH i2c: E2 [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: E2 62 00 [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: E2 62 00 BB 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EF CE 01 00 0E 04 04 00 B1 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 EE [15: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EF CE 01 00 0E 04 04 00 B1 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 [15:14:46]wFMCommunicate OK [15:14:46]SAM_PROTO_GetFieldsCounters done [15:14:46]requested_item shift.num is exist - process it [15:14:46]requested_item shift.opened is exist - process it [15:14:46]req_shift_opened [15:14:46]FM_GetShiftState [15:14:46]SAM_PROTO_GetShiftState [15:14:46]wFMCommunicate request_size=4 [15:14:46]MH_SAM_APDU [15:14:46]CAPDU: 80 13 01 00 [15:14:46]Write to MH i2c: E2 08 00 BC 04 80 13 01 00 00 00 00 00 3D [15:14:46]Write i2c OK [15:14:46]MH_I2C_Read... [15:14:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:46]Read from MH i2c: E2 [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: E2 0E 00 [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: E2 0E 00 BC 04 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 14 [15:14:46]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:14:46]wFMCommunicate OK [15:14:46]SAM_PROTO_GetShiftState done [15:14:46]FM_GetShiftState done [15:14:46]req_shift_opened done [15:14:46]requested_item shift.open_date is exist - process it [15:14:46]req_shift_open_date [15:14:46]req_shift_open_date done [15:14:46]produce_requested_data done [15:14:46]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118511,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [15:14:46]process_action_free close_receipt [15:14:46]json_value_free [15:14:46]json_value_free done [15:14:46]process_json_proto returns [15:14:46]Send response to host [15:14:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118511,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [15:14:46]free response buf [15:14:46]execute_script done [15:14:46]execute_script returns [15:14:46]free content buf [15:14:46]Sock 9.Close socket [15:14:46]Sock 9.Thread stoped [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:15:00]OFD Sender: No OFD packet to send [15:15:05]OFD Sender: No OFD packet to send [15:15:10]OFD Sender: No OFD packet to send [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [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:31]accept exits with 7 [15:17:31]New connection [15:17:31]New thread 3067383140 created [15:17:31]Thread 3067239780 joined [15:17:31]Waiting for new connection... [15:17:31] Sock 7.Parse request [15:17:31]Sock 7.Check first char [15:17:31]Sock 7.First char is OK [15:17:31]request: POST /json_proto HTTP/1.0 [15:17:31]Method: POST [15:17:31]URL: /json_proto [15:17:31]Method is POST - this is cgi request [15:17:31]url: /json_proto [15:17:31]query_string will be loaded in cgi processing [15:17:31]execute_cgi json_proto POST (null) [15:17:31]execute_cgi path=json_proto method=POST [15:17:31]POST find Content-Length [15:17:31]Host: 172.17.45.7:8080 [15:17:31]Content-Length: 822 [15:17:31]Content-Type: application/json [15:17:31] [15:17:31]POST finish read [15:17:31]Found Content-Length = 822 [15:17:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 34.670, "sum" : 2572.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2572.00, "payments": [ { "type": 1, "sum" : 2572.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:31]execute_script... [15:17: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)949383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 34.670, "sum" : 2572.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2572.00, "payments": [ { "type": 1, "sum" : 2572.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:31]POST & json_proto [15:17:31]process_json_proto [15:17:31]json parsed OK: [15:17:31]protocol is kg_v1.0 [15:17:31]action value=close_receipt [15:17:31]process_action close_receipt [15:17:31]cmd_close_receipt [15:17:31]MH_GetDate [15:17:31]Write to MH i2c: F0 00 00 BD 04 B0 [15:17:31]Write i2c OK [15:17:31]MH_I2C_Read... [15:17:31]Read from MH i2c: F0 [15:17:31]MH_I2C_Read... [15:17:31]Read from MH i2c: F0 09 00 [15:17:31]MH_I2C_Read... [15:17:31]Read from MH i2c: F0 09 00 BD 04 00 0C 61 A6 66 90 0F 3E 66 75 [15:17:31]GetLastDocTimeStamp 1722179683 [15:17:31]current date 1722179852 [15:17:31]FM_GetShiftState [15:17:31]SAM_PROTO_GetShiftState [15:17:31]wFMCommunicate request_size=4 [15:17:31]MH_SAM_APDU [15:17:31]CAPDU: 80 13 01 00 [15:17:31]Write to MH i2c: E2 08 00 BE 04 80 13 01 00 00 00 00 00 3F [15:17:31]Write i2c OK [15:17:31]MH_I2C_Read... [15:17:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:31]Read from MH i2c: E2 [15:17:31]MH_I2C_Read... [15:17:31]Read from MH i2c: E2 0E 00 [15:17:31]MH_I2C_Read... [15:17:31]Read from MH i2c: E2 0E 00 BE 04 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 16 [15:17:31]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:17:31]wFMCommunicate OK [15:17:31]SAM_PROTO_GetShiftState done [15:17:31]FM_GetShiftState done [15:17:31]opened in 1722125364 [15:17:31]opened+sec_in_day 1722211764 [15:17:31]quantity*price = 257251 [15:17:31]sum+1 = 257252 [15:17:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 2572.00 НСП 1% : 22.77 НДС 12% : 273.19 Наличными: 0.00 Безнал.: 2572.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 181 28.07.2024 15:17 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118512 ФПД: 231082395893608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T151732&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118512&fm=231082395893608&tin=02508201610067®Number=0000000000092660&sum=257200 [15:17:32]StoreToDocumentArchive [15:17:32]shift 433 fd 118512 [15:17:32]save to /storage/0433/doc_00118512 [15:17:32]save last doc name /storage/0433/doc_00118512 to /storage/kkm_last_doc_name [15:17:32]save OK [15:17:32]Clear old archive folders... [15:17:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:17:32]tlvbuf is 01E4D3C0 [15:17:32]SAM_PROTO_ClearQueue [15:17:32]wFMCommunicate request_size=4 [15:17:32]MH_SAM_APDU [15:17:32]CAPDU: 80 09 00 00 [15:17:32]Write to MH i2c: E2 08 00 CB 04 80 09 00 00 00 00 00 00 41 [15:17:32]Write i2c OK [15:17:32]MH_I2C_Read... [15:17:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:32]Read from MH i2c: E2 [15:17:32]MH_I2C_Read... [15:17:32]Read from MH i2c: E2 03 00 [15:17:32]MH_I2C_Read... [15:17:32]Read from MH i2c: E2 03 00 CB 04 00 90 00 43 [15:17:32]RAPDU: 90 00 [15:17:32]wFMCommunicate OK [15:17:32]SAM_PROTO_ClearQueue done [15:17:32]KKMCreateOFDPacket [15:17:32]OFDProtocolAddRootSTLVToBuf [15:17:32]FM_MakeSignedData [15:17:32]FM_MakeSignedData [15:17:32]SAM_PROTO_SignData [15:17:32]wFMCommunicate request_size=4 [15:17:32]MH_SAM_APDU [15:17:32]CAPDU: 80 0D 01 02 [15:17:32]Write to MH i2c: E2 08 00 CC 04 80 0D 01 02 00 00 00 00 49 [15:17:32]Write i2c OK [15:17:32]MH_I2C_Read... [15:17:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:32]Read from MH i2c: E2 [15:17:32]MH_I2C_Read... [15:17:32]Read from MH i2c: E2 03 00 [15:17:32]MH_I2C_Read... [15:17:32]Read from MH i2c: E2 03 00 CC 04 00 90 00 44 [15:17:32]RAPDU: 90 00 [15:17:32]wFMCommunicate OK [15:17:32]wFMCommunicate request_size=255 [15:17:32]MH_SAM_APDU [15:17:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 6E 87 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E3 EC 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 EC 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 6A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 EC 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 0C 61 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F0 CE 01 00 35 04 06 00 D2 [15:17:32]Write to MH i2c: E2 02 01 CD 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 6E 87 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E3 EC 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 EC 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 6A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 EC 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 0C 61 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F0 CE 01 00 35 04 06 00 D2 00 00 F7 [15:17:32]Write i2c OK [15:17:32]MH_I2C_Read... [15:17:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:32]Read from MH i2c: E2 [15:17:32]MH_I2C_Read... [15:17:32]Read from MH i2c: E2 03 00 [15:17:32]MH_I2C_Read... [15:17:32]Read from MH i2c: E2 03 00 CD 04 00 90 00 45 [15:17:32]RAPDU: 90 00 [15:17:32]wFMCommunicate OK [15:17:32]wFMCommunicate request_size=10 [15:17:32]MH_SAM_APDU [15:17:32]CAPDU: 80 0D 02 02 05 2B 10 1E FF 68 [15:17:32]Write to MH i2c: E2 0D 00 CE 04 80 0D 02 02 05 00 2B 10 1E FF 68 00 00 16 [15:17:32]Write i2c OK [15:17:32]MH_I2C_Read... [15:17:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:32]Read from MH i2c: E2 [15:17:32]MH_I2C_Read... [15:17:32]Read from MH i2c: E2 03 00 [15:17:32]MH_I2C_Read... [15:17:32]Read from MH i2c: E2 03 00 CE 04 00 90 00 46 [15:17:32]RAPDU: 90 00 [15:17:32]wFMCommunicate OK [15:17:32]wFMCommunicate request_size=4 [15:17:32]MH_SAM_APDU [15:17:32]CAPDU: 80 0D 03 02 [15:17:32]Write to MH i2c: E2 08 00 CF 04 80 0D 03 02 00 00 00 00 4E [15:17:32]Write i2c OK [15:17:32]MH_I2C_Read... [15:17:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:32]Read from MH i2c: E2 [15:17:32]MH_I2C_Read... [15:17:32]Read from MH i2c: E2 0B 00 [15:17:32]MH_I2C_Read... [15:17:32]Read from MH i2c: E2 0B 00 CF 04 00 6F 50 C4 8E 99 7D E1 7A 90 00 D1 [15:17:32]RAPDU: 6F 50 C4 8E 99 7D E1 7A 90 00 [15:17:32]wFMCommunicate OK [15:17:32]SAM_PROTO_SignData done [15:17:32]FM_MakeSignedData done [15:17:32]CreateOFDProtocolMessage [15:17:32]wFMCommunicate request_size=4 [15:17:32]MH_SAM_APDU [15:17:32]CAPDU: 80 11 00 00 [15:17:32]Write to MH i2c: E2 08 00 D0 04 80 11 00 00 00 00 00 00 4E [15:17:32]Write i2c OK [15:17:32]MH_I2C_Read... [15:17:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:32]Read from MH i2c: E2 [15:17:32]MH_I2C_Read... [15:17:32]Read from MH i2c: E2 17 00 [15:17:32]MH_I2C_Read... [15:17:32]Read from MH i2c: E2 17 00 D0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A9 [15:17:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:17:32]wFMCommunicate OK [15:17:32]CreateOFDProtocolMessage done [15:17:32]OFDSenderStorePacket 118512 [15:17:32]StoreOFDPacket docnum=118512 [15:17:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 EF F3 07 01 C9 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 6E 87 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E3 EC 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 EC 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 6A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 EC 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 0C 61 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F0 CE 01 00 35 04 06 00 D2 2B 10 1E FF 68 6F 50 C4 8E 99 7D E1 7A [15:17:32]CheckFolder [15:17:32]dirname=/storage/ofd_packets [15:17:32]CheckFolder done [15:17:32]ProducePacketName [15:17:32]name=ofd_packets/00118512 [15:17:32]NVStorageSaveData ofd_packets/00118512 [15:17:32]File name is /storage/ofd_packets/00118512 [15:17:32]Write 301 bytes [15:17:32]NVStorageSaveData done [15:17:32]OFDSenderStorePacket done [15:17:32]KKMCreateOFDPacket done [15:17:32]NVStorageSaveData kkm_last_timestamp [15:17:32]File name is /storage/kkm_last_timestamp [15:17:32]Write 4 bytes [15:17:32]NVStorageSaveData done [15:17:32]ExternCall_PrintAddStr [15:17:32]wPrintStart [15:17:32]Write to MH i2c: 01 00 00 D1 04 D5 [15:17:32]Write i2c OK [15:17:32]MH_I2C_Read... [15:17:32]Read from MH i2c: 01 [15:17:32]MH_I2C_Read... [15:17:32]Read from MH i2c: 01 07 00 [15:17:32]MH_I2C_Read... [15:17:32]Read from MH i2c: 01 07 00 D1 04 00 00 00 00 00 FF 0F EA [15:17:32]RasterBufferAndPrint [15:17:32]line Счет N : (1)949383 [15:17:32]line ИНН: 02508201610067 [15:17:32]line Контрольно-Кассовый Чек [15:17:32]line ПРОДАЖА [15:17:32]line ТРК (МРК, ГНК) : 53 [15:17:32]line Товар: 2710124500 [15:17:32]line Аи-95-К-3 [15:17:32]line 34.670 * 74.20 [15:17:32]line = 2572.51 [15:17:32]line НДС 12% НСП 1% [15:17:32]line > о реализуемом товаре [15:17:32]line ОКРУГЛЕНИЕ: -0.51 [15:17:32]line ИТОГО: 2572.00 [15:17:32]line НСП 1% : 22.77 [15:17:32]line НДС 12% : 273.19 [15:17:32]line Наличными: 0.00 [15:17:32]line Безнал.: 2572.00 [15:17:32]line Место: АЗС № 134 "Партнер Нефть" [15:17:32]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:17:32]line СНО: Общий режим [15:17:32]line Чек 181 28.07.2024 15:17 [15:17:32]line Смена: 433 ФФД: 1.0 [15:17:32]line ЗНМ: 0300000044 [15:17:32]line РНМ: 0000000000092660 [15:17:32]line Версия ККМ: 001 [15:17:32]line Платежная система: O! деньги [15:17:32]line ФМ: 0000000000874939 [15:17:32]line ФД: 118512 [15:17:32]line ФПД: 231082395893608 [15:17:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T151732&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118512&fm=231082395893608&tin=02508201610067®Number=0000000000092660&sum=257200 [15:17:33]written 0, free lines is 4095 [15:17:33]OFD Sender: Processing packet 118512 [packets to send 86, broken 85] [15:17:33]ProducePacketName [15:17:33]name=ofd_packets/00118512 [15:17:33]OFD Sender: To server: pG, [15:17:33]CommunicateWithHost lk.salyk.kg:30040 [15:17:33]ConnectInit lk.salyk.kg [15:17:33]Connected sock=10 [15:17:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 EF F3 07 01 C9 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 6E 87 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E3 EC 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 EC 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 6A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 EC 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 0C 61 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F0 CE 01 00 35 04 06 00 D2 2B 10 1E FF 68 6F 50 C4 8E 99 7D E1 7A [15:17:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 78 A7 47 00 77 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F0 CE 01 00 F4 03 04 00 9C 0E A6 66 B6 04 01 00 00 EB 1C 5D 17 A3 06 6D 08 [15:17:33]CommunicateWithHost err = 0 [15:17:33]CheckOFDResponse [15:17:33]1017 (14) - 77093643461234 [15:17:33]1041 (16) - 0000000000874939 [15:17:33]1040 (4) - 118512 [15:17:33]1012 (4) - 28.07.2024 09:25 [15:17:33]1206 (1) - 0 [15:17:33]OFD Sender: Remove packet 118512 [15:17:33]ProducePacketName [15:17:33]name=ofd_packets/00118512 [15:17:33]NVStorageDeleteData [15:17:33]Write to MH i2c: 01 00 00 FB 04 FF [15:17:33]Write i2c OK [15:17:33]MH_I2C_Read... [15:17:33]Read from MH i2c: 01 [15:17:33]MH_I2C_Read... [15:17:33]Read from MH i2c: 01 07 00 [15:17:33]MH_I2C_Read... [15:17:33]Read from MH i2c: 01 07 00 FB 04 00 00 00 00 00 DE 0C F0 [15:17:33]RasterBufferAndPrint [15:17:33]line [15:17:33]line [15:17:33]line [15:17:33]line [15:17:33]line [15:17:33]written 0, free lines is 3300 [15:17:33]MH_Cut [15:17:33]Write to MH i2c: D1 01 00 02 05 01 D9 [15:17:33]Write i2c OK [15:17:33]MH_I2C_Read... [15:17:33]Read from MH i2c: D1 [15:17:33]MH_I2C_Read... [15:17:33]Read from MH i2c: D1 01 00 [15:17:33]MH_I2C_Read... [15:17:33]Read from MH i2c: D1 01 00 02 05 00 D8 [15:17:33]Write to MH i2c: 01 00 00 03 05 08 [15:17:33]Write i2c OK [15:17:33]MH_I2C_Read... [15:17:33]OFD Sender: No OFD packet to send [15:17:34]*** Cut start [15:17:34]*** Partial cut [15:17:34]*** CUTSNS_PIN = 1 [15:17:34]*** CUTSNS_PIN = 0 [15:17:34]*** Brake cut motor [15:17:34]Read from MH i2c: 01 [15:17:34]MH_I2C_Read... [15:17:34]*** Stop cut motor [15:17:34]*** Cut end [15:17:34]Read from MH i2c: 01 07 00 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: 01 07 00 03 05 00 00 00 00 00 FF 0F 1D [15:17:34]process_action close_receipt done [15:17:34]requested_data is exist [15:17:34]produce_requested_data [15:17:34]requested_item fm.sn is exist - process it [15:17:34]wFMCommunicate request_size=4 [15:17:34]MH_SAM_APDU [15:17:34]CAPDU: 80 11 00 00 [15:17:34]Write to MH i2c: E2 08 00 04 05 80 11 00 00 00 00 00 00 83 [15:17:34]Write i2c OK [15:17:34]MH_I2C_Read... [15:17:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:34]Read from MH i2c: E2 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: E2 17 00 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: E2 17 00 04 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DE [15:17:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:17:34]wFMCommunicate OK [15:17:34]requested_item fd.num is exist - process it [15:17:34]SAM_PROTO_GetFieldsCounters [15:17:34]wFMCommunicate request_size=4 [15:17:34]MH_SAM_APDU [15:17:34]CAPDU: 80 13 00 00 [15:17:34]Write to MH i2c: E2 08 00 05 05 80 13 00 00 00 00 00 00 86 [15:17:34]Write i2c OK [15:17:34]MH_I2C_Read... [15:17:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:35]Read from MH i2c: E2 [15:17:35]MH_I2C_Read... [15:17:35]Read from MH i2c: E2 62 00 [15:17:35]MH_I2C_Read... [15:17:35]Read from MH i2c: E2 62 00 05 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F0 CE 01 00 0E 04 04 00 B1 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 3D [15:17:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F0 CE 01 00 0E 04 04 00 B1 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 [15:17:35]wFMCommunicate OK [15:17:35]SAM_PROTO_GetFieldsCounters done [15:17:35]requested_item shift.num is exist - process it [15:17:35]requested_item shift.opened is exist - process it [15:17:35]req_shift_opened [15:17:35]FM_GetShiftState [15:17:35]SAM_PROTO_GetShiftState [15:17:35]wFMCommunicate request_size=4 [15:17:35]MH_SAM_APDU [15:17:35]CAPDU: 80 13 01 00 [15:17:35]Write to MH i2c: E2 08 00 06 05 80 13 01 00 00 00 00 00 88 [15:17:35]Write i2c OK [15:17:35]MH_I2C_Read... [15:17:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:35]Read from MH i2c: E2 [15:17:35]MH_I2C_Read... [15:17:35]Read from MH i2c: E2 0E 00 [15:17:35]MH_I2C_Read... [15:17:35]Read from MH i2c: E2 0E 00 06 05 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 5F [15:17:35]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:17:35]wFMCommunicate OK [15:17:35]SAM_PROTO_GetShiftState done [15:17:35]FM_GetShiftState done [15:17:35]req_shift_opened done [15:17:35]requested_item shift.open_date is exist - process it [15:17:35]req_shift_open_date [15:17:35]req_shift_open_date done [15:17:35]produce_requested_data done [15:17:35]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118512,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [15:17:35]process_action_free close_receipt [15:17:35]json_value_free [15:17:35]json_value_free done [15:17:35]process_json_proto returns [15:17:35]Send response to host [15:17:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118512,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [15:17:35]free response buf [15:17:35]execute_script done [15:17:35]execute_script returns [15:17:35]free content buf [15:17:35]Sock 7.Close socket [15:17:35]Sock 7.Thread stoped [15:17:38]OFD Sender: No OFD packet to send [15:17:43]OFD Sender: No OFD packet to send [15:17:48]OFD Sender: No OFD packet to send [15:17:53]OFD Sender: No OFD packet to send [15:17:58]OFD Sender: No OFD packet to send [15:18:03]OFD Sender: No OFD packet to send [15:18:08]OFD Sender: No OFD packet to send [15:18:13]OFD Sender: No OFD packet to send [15:18:18]OFD Sender: No OFD packet to send [15:18:23]OFD Sender: No OFD packet to send [15:18:28]OFD Sender: No OFD packet to send [15:18:33]OFD Sender: No OFD packet to send [15:18:38]OFD Sender: No OFD packet to send [15:18:43]OFD Sender: No OFD packet to send [15:18:48]OFD Sender: No OFD packet to send [15:18:53]OFD Sender: No OFD packet to send [15:18:58]OFD Sender: No OFD packet to send [15:19:03]OFD Sender: No OFD packet to send [15:19:08]OFD Sender: No OFD packet to send [15:19:13]accept exits with 9 [15:19:13]New connection [15:19:13]New thread 3067239780 created [15:19:13]Thread 3067383140 joined [15:19:13]Waiting for new connection... [15:19:13] Sock 9.Parse request [15:19:13]Sock 9.Check first char [15:19:13]Sock 9.First char is OK [15:19:13]request: POST /json_proto HTTP/1.0 [15:19:13]Method: POST [15:19:13]URL: /json_proto [15:19:13]Method is POST - this is cgi request [15:19:13]url: /json_proto [15:19:13]query_string will be loaded in cgi processing [15:19:13]execute_cgi json_proto POST (null) [15:19:13]execute_cgi path=json_proto method=POST [15:19:13]POST find Content-Length [15:19:13]Host: 172.17.45.7:8080 [15:19:13]Content-Length: 677 [15:19:13]Content-Type: application/json [15:19:13] [15:19:13]POST finish read [15:19:13]Found Content-Length = 677 [15:19:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:13]execute_script... [15:19: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)949384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:13]POST & json_proto [15:19:13]process_json_proto [15:19:13]json parsed OK: [15:19:13]protocol is kg_v1.0 [15:19:13]action value=close_receipt [15:19:13]process_action close_receipt [15:19:13]cmd_close_receipt [15:19:13]MH_GetDate [15:19:13]Write to MH i2c: F0 00 00 07 05 FB [15:19:13]Write i2c OK [15:19:13]MH_I2C_Read... [15:19:13]Read from MH i2c: F0 [15:19:13]MH_I2C_Read... [15:19:13]Read from MH i2c: F0 09 00 [15:19:13]MH_I2C_Read... [15:19:13]Read from MH i2c: F0 09 00 07 05 00 72 61 A6 66 90 0F 3E 66 26 [15:19:13]GetLastDocTimeStamp 1722179852 [15:19:13]current date 1722179954 [15:19:13]FM_GetShiftState [15:19:13]SAM_PROTO_GetShiftState [15:19:13]wFMCommunicate request_size=4 [15:19:13]MH_SAM_APDU [15:19:13]CAPDU: 80 13 01 00 [15:19:13]Write to MH i2c: E2 08 00 08 05 80 13 01 00 00 00 00 00 8A [15:19:13]Write i2c OK [15:19:13]MH_I2C_Read... [15:19:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:13]Read from MH i2c: E2 [15:19:13]MH_I2C_Read... [15:19:13]Read from MH i2c: E2 0E 00 [15:19:13]MH_I2C_Read... [15:19:13]Read from MH i2c: E2 0E 00 08 05 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 61 [15:19:13]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:19:13]wFMCommunicate OK [15:19:13]SAM_PROTO_GetShiftState done [15:19:13]FM_GetShiftState done [15:19:13]opened in 1722125364 [15:19:13]opened+sec_in_day 1722211764 [15:19:13]quantity*price = 20001 [15:19:13]sum+1 = 20002 [15:19:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 182 28.07.2024 15:19 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118513 ФПД: 45510929044284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T151914&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118513&fm=45510929044284&tin=02508201610067®Number=0000000000092660&sum=20000 [15:19:14]StoreToDocumentArchive [15:19:14]shift 433 fd 118513 [15:19:14]save to /storage/0433/doc_00118513 [15:19:14]save last doc name /storage/0433/doc_00118513 to /storage/kkm_last_doc_name [15:19:14]save OK [15:19:14]Clear old archive folders... [15:19:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:19:14]tlvbuf is B6F43350 [15:19:14]SAM_PROTO_ClearQueue [15:19:14]wFMCommunicate request_size=4 [15:19:14]MH_SAM_APDU [15:19:14]CAPDU: 80 09 00 00 [15:19:14]Write to MH i2c: E2 08 00 15 05 80 09 00 00 00 00 00 00 8C [15:19:14]Write i2c OK [15:19:14]MH_I2C_Read... [15:19:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:14]Read from MH i2c: E2 [15:19:14]MH_I2C_Read... [15:19:14]Read from MH i2c: E2 03 00 [15:19:14]MH_I2C_Read... [15:19:14]Read from MH i2c: E2 03 00 15 05 00 90 00 8E [15:19:14]RAPDU: 90 00 [15:19:14]wFMCommunicate OK [15:19:14]SAM_PROTO_ClearQueue done [15:19:14]KKMCreateOFDPacket [15:19:14]OFDProtocolAddRootSTLVToBuf [15:19:14]FM_MakeSignedData [15:19:14]FM_MakeSignedData [15:19:14]SAM_PROTO_SignData [15:19:14]wFMCommunicate request_size=4 [15:19:14]MH_SAM_APDU [15:19:14]CAPDU: 80 0D 01 02 [15:19:14]Write to MH i2c: E2 08 00 16 05 80 0D 01 02 00 00 00 00 94 [15:19:14]Write i2c OK [15:19:14]MH_I2C_Read... [15:19:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:14]Read from MH i2c: E2 [15:19:14]MH_I2C_Read... [15:19:14]Read from MH i2c: E2 03 00 [15:19:14]MH_I2C_Read... [15:19:14]Read from MH i2c: E2 03 00 16 05 00 90 00 8F [15:19:14]RAPDU: 90 00 [15:19:14]wFMCommunicate OK [15:19:14]wFMCommunicate request_size=255 [15:19:14]MH_SAM_APDU [15:19: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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 72 61 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F1 CE 01 00 35 04 06 00 29 [15:19:14]Write to MH i2c: E2 02 01 17 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 72 61 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F1 CE 01 00 35 04 06 00 29 00 00 4A [15:19:15]Write i2c OK [15:19:15]MH_I2C_Read... [15:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:15]Read from MH i2c: E2 [15:19:15]MH_I2C_Read... [15:19:15]Read from MH i2c: E2 03 00 [15:19:15]MH_I2C_Read... [15:19:15]Read from MH i2c: E2 03 00 17 05 00 90 00 90 [15:19:15]RAPDU: 90 00 [15:19:15]wFMCommunicate OK [15:19:15]wFMCommunicate request_size=10 [15:19:15]MH_SAM_APDU [15:19:15]CAPDU: 80 0D 02 02 05 64 56 C2 53 3C [15:19:15]Write to MH i2c: E2 0D 00 18 05 80 0D 02 02 05 00 64 56 C2 53 3C 00 00 AC [15:19:15]Write i2c OK [15:19:15]MH_I2C_Read... [15:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:15]Read from MH i2c: E2 [15:19:15]MH_I2C_Read... [15:19:15]Read from MH i2c: E2 03 00 [15:19:15]MH_I2C_Read... [15:19:15]Read from MH i2c: E2 03 00 18 05 00 90 00 91 [15:19:15]RAPDU: 90 00 [15:19:15]wFMCommunicate OK [15:19:15]wFMCommunicate request_size=4 [15:19:15]MH_SAM_APDU [15:19:15]CAPDU: 80 0D 03 02 [15:19:15]Write to MH i2c: E2 08 00 19 05 80 0D 03 02 00 00 00 00 99 [15:19:15]Write i2c OK [15:19:15]MH_I2C_Read... [15:19:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:15]Read from MH i2c: E2 [15:19:15]MH_I2C_Read... [15:19:15]Read from MH i2c: E2 0B 00 [15:19:15]MH_I2C_Read... [15:19:15]Read from MH i2c: E2 0B 00 19 05 00 25 95 82 75 B3 2E BE 0E 90 00 F8 [15:19:15]RAPDU: 25 95 82 75 B3 2E BE 0E 90 00 [15:19:15]wFMCommunicate OK [15:19:15]SAM_PROTO_SignData done [15:19:15]FM_MakeSignedData done [15:19:15]CreateOFDProtocolMessage [15:19:15]wFMCommunicate request_size=4 [15:19:15]MH_SAM_APDU [15:19:15]CAPDU: 80 11 00 00 [15:19:15]Write to MH i2c: E2 08 00 1A 05 80 11 00 00 00 00 00 00 99 [15:19:15]Write i2c OK [15:19:15]MH_I2C_Read... [15:19:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:15]Read from MH i2c: E2 [15:19:15]MH_I2C_Read... [15:19:15]Read from MH i2c: E2 17 00 [15:19:15]MH_I2C_Read... [15:19:15]Read from MH i2c: E2 17 00 1A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F4 [15:19:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:19:15]wFMCommunicate OK [15:19:15]CreateOFDProtocolMessage done [15:19:15]OFDSenderStorePacket 118513 [15:19:15]StoreOFDPacket docnum=118513 [15:19:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5B 63 07 01 31 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 72 61 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F1 CE 01 00 35 04 06 00 29 64 56 C2 53 3C 25 95 82 75 B3 2E BE 0E [15:19:15]CheckFolder [15:19:15]dirname=/storage/ofd_packets [15:19:15]CheckFolder done [15:19:15]ProducePacketName [15:19:15]name=ofd_packets/00118513 [15:19:15]NVStorageSaveData ofd_packets/00118513 [15:19:15]File name is /storage/ofd_packets/00118513 [15:19:15]Write 301 bytes [15:19:15]NVStorageSaveData done [15:19:15]OFDSenderStorePacket done [15:19:15]KKMCreateOFDPacket done [15:19:15]NVStorageSaveData kkm_last_timestamp [15:19:15]File name is /storage/kkm_last_timestamp [15:19:15]Write 4 bytes [15:19:15]NVStorageSaveData done [15:19:15]ExternCall_PrintAddStr [15:19:15]wPrintStart [15:19:15]Write to MH i2c: 01 00 00 1B 05 20 [15:19:15]Write i2c OK [15:19:15]MH_I2C_Read... [15:19:15]Read from MH i2c: 01 [15:19:15]MH_I2C_Read... [15:19:15]Read from MH i2c: 01 07 00 [15:19:15]MH_I2C_Read... [15:19:15]Read from MH i2c: 01 07 00 1B 05 00 00 00 00 00 FF 0F 35 [15:19:15]RasterBufferAndPrint [15:19:15]line Счет N : (1)949384 [15:19:15]line ИНН: 02508201610067 [15:19:15]line Контрольно-Кассовый Чек [15:19:15]line ПРОДАЖА [15:19:15]line ТРК (МРК, ГНК) : 31 [15:19:15]line Товар: 2710124130 [15:19:15]line Аи-92-К-4 [15:19:15]line 2.950 * 67.80 [15:19:15]line = 200.01 [15:19:15]line НДС 12% НСП 1% [15:19:15]line > о реализуемом товаре [15:19:15]line ОКРУГЛЕНИЕ: -0.01 [15:19:15]line ИТОГО: 200.00 [15:19:15]line Внесено: 200.00 [15:19:15]line СДАЧА: 0.00 [15:19:15]line НСП 1% : 1.77 [15:19:15]line НДС 12% : 21.24 [15:19:15]line Наличными: 200.00 [15:19:15]line Безнал.: 0.00 [15:19:15]line Место: АЗС № 134 "Партнер Нефть" [15:19:15]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:19:15]line СНО: Общий режим [15:19:15]line Чек 182 28.07.2024 15:19 [15:19:15]line Смена: 433 ФФД: 1.0 [15:19:15]line ЗНМ: 0300000044 [15:19:15]line РНМ: 0000000000092660 [15:19:15]line Версия ККМ: 001 [15:19:15]line ФМ: 0000000000874939 [15:19:15]line ФД: 118513 [15:19:15]line ФПД: 45510929044284 [15:19:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T151914&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118513&fm=45510929044284&tin=02508201610067®Number=0000000000092660&sum=20000 [15:19:15]OFD Sender: Processing packet 118513 [packets to send 86, broken 85] [15:19:15]ProducePacketName [15:19:15]name=ofd_packets/00118513 [15:19:15]OFD Sender: To server: pG, [15:19:15]CommunicateWithHost lk.salyk.kg:30040 [15:19:15]ConnectInit lk.salyk.kg [15:19:15]written 0, free lines is 4095 [15:19:15]Connected sock=10 [15:19:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5B 63 07 01 31 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 72 61 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F1 CE 01 00 35 04 06 00 29 64 56 C2 53 3C 25 95 82 75 B3 2E BE 0E [15:19:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 23 BE 47 00 2E DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F1 CE 01 00 F4 03 04 00 02 0F A6 66 B6 04 01 00 00 53 35 F0 83 67 C9 22 4B [15:19:16]CommunicateWithHost err = 0 [15:19:16]CheckOFDResponse [15:19:16]1017 (14) - 77093643461234 [15:19:16]1041 (16) - 0000000000874939 [15:19:16]1040 (4) - 118513 [15:19:16]1012 (4) - 28.07.2024 09:27 [15:19:16]1206 (1) - 0 [15:19:16]OFD Sender: Remove packet 118513 [15:19:16]ProducePacketName [15:19:16]name=ofd_packets/00118513 [15:19:16]NVStorageDeleteData [15:19:16]Write to MH i2c: 01 00 00 45 05 4A [15:19:16]Write i2c OK [15:19:16]MH_I2C_Read... [15:19:16]Read from MH i2c: 01 [15:19:16]MH_I2C_Read... [15:19:16]Read from MH i2c: 01 07 00 [15:19:16]MH_I2C_Read... [15:19:16]Read from MH i2c: 01 07 00 45 05 00 00 00 00 00 DD 0C 3A [15:19:16]RasterBufferAndPrint [15:19:16]line [15:19:16]line [15:19:16]line [15:19:16]line [15:19:16]line [15:19:16]written 0, free lines is 3299 [15:19:16]MH_Cut [15:19:16]Write to MH i2c: D1 01 00 4C 05 01 23 [15:19:16]Write i2c OK [15:19:16]MH_I2C_Read... [15:19:16]Read from MH i2c: D1 [15:19:16]MH_I2C_Read... [15:19:16]Read from MH i2c: D1 01 00 [15:19:16]MH_I2C_Read... [15:19:16]Read from MH i2c: D1 01 00 4C 05 00 22 [15:19:16]Write to MH i2c: 01 00 00 4D 05 52 [15:19:16]Write i2c OK [15:19:16]MH_I2C_Read... [15:19:16]OFD Sender: No OFD packet to send [15:19:16]*** Cut start [15:19:16]*** Partial cut [15:19:16]*** CUTSNS_PIN = 1 [15:19:16]*** CUTSNS_PIN = 0 [15:19:17]*** Brake cut motor [15:19:17]Read from MH i2c: 01 [15:19:17]MH_I2C_Read... [15:19:17]*** Stop cut motor [15:19:17]*** Cut end [15:19:17]Read from MH i2c: 01 07 00 [15:19:17]MH_I2C_Read... [15:19:17]Read from MH i2c: 01 07 00 4D 05 00 00 00 00 00 FF 0F 67 [15:19:17]process_action close_receipt done [15:19:17]requested_data is exist [15:19:17]produce_requested_data [15:19:17]requested_item fm.sn is exist - process it [15:19:17]wFMCommunicate request_size=4 [15:19:17]MH_SAM_APDU [15:19:17]CAPDU: 80 11 00 00 [15:19:17]Write to MH i2c: E2 08 00 4E 05 80 11 00 00 00 00 00 00 CD [15:19:17]Write i2c OK [15:19:17]MH_I2C_Read... [15:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:17]Read from MH i2c: E2 [15:19:17]MH_I2C_Read... [15:19:17]Read from MH i2c: E2 17 00 [15:19:17]MH_I2C_Read... [15:19:17]Read from MH i2c: E2 17 00 4E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 28 [15:19:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:19:17]wFMCommunicate OK [15:19:17]requested_item fd.num is exist - process it [15:19:17]SAM_PROTO_GetFieldsCounters [15:19:17]wFMCommunicate request_size=4 [15:19:17]MH_SAM_APDU [15:19:17]CAPDU: 80 13 00 00 [15:19:17]Write to MH i2c: E2 08 00 4F 05 80 13 00 00 00 00 00 00 D0 [15:19:17]Write i2c OK [15:19:17]MH_I2C_Read... [15:19:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:17]Read from MH i2c: E2 [15:19:17]MH_I2C_Read... [15:19:17]Read from MH i2c: E2 62 00 [15:19:17]MH_I2C_Read... [15:19:17]Read from MH i2c: E2 62 00 4F 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F1 CE 01 00 0E 04 04 00 B1 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 8B [15:19:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F1 CE 01 00 0E 04 04 00 B1 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 [15:19:17]wFMCommunicate OK [15:19:17]SAM_PROTO_GetFieldsCounters done [15:19:17]requested_item shift.num is exist - process it [15:19:17]requested_item shift.opened is exist - process it [15:19:17]req_shift_opened [15:19:17]FM_GetShiftState [15:19:17]SAM_PROTO_GetShiftState [15:19:17]wFMCommunicate request_size=4 [15:19:17]MH_SAM_APDU [15:19:17]CAPDU: 80 13 01 00 [15:19:17]Write to MH i2c: E2 08 00 50 05 80 13 01 00 00 00 00 00 D2 [15:19:17]Write i2c OK [15:19:17]MH_I2C_Read... [15:19:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:17]Read from MH i2c: E2 [15:19:17]MH_I2C_Read... [15:19:17]Read from MH i2c: E2 0E 00 [15:19:17]MH_I2C_Read... [15:19:17]Read from MH i2c: E2 0E 00 50 05 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A9 [15:19:17]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:19:17]wFMCommunicate OK [15:19:17]SAM_PROTO_GetShiftState done [15:19:17]FM_GetShiftState done [15:19:17]req_shift_opened done [15:19:17]requested_item shift.open_date is exist - process it [15:19:17]req_shift_open_date [15:19:17]req_shift_open_date done [15:19:17]produce_requested_data done [15:19:17]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118513,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [15:19:17]process_action_free close_receipt [15:19:17]json_value_free [15:19:17]json_value_free done [15:19:17]process_json_proto returns [15:19:17]Send response to host [15:19:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118513,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [15:19:17]free response buf [15:19:17]execute_script done [15:19:17]execute_script returns [15:19:17]free content buf [15:19:17]Sock 9.Close socket [15:19:17]Sock 9.Thread stoped [15:19:21]OFD Sender: No OFD packet to send [15:19:26]OFD Sender: No OFD packet to send [15:19:31]OFD Sender: No OFD packet to send [15:19:36]OFD Sender: No OFD packet to send [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:21]OFD Sender: No OFD packet to send [15:20:26]OFD Sender: No OFD packet to send [15:20:31]OFD Sender: No OFD packet to send [15:20:36]OFD Sender: No OFD packet to send [15:20:41]OFD Sender: No OFD packet to send [15:20:46]OFD Sender: No OFD packet to send [15:20:51]OFD Sender: No OFD packet to send [15:20:56]OFD Sender: No OFD packet to send [15:21:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:18]accept exits with 7 [15:22:18]New connection [15:22:18]New thread 3067383140 created [15:22:18]Thread 3067239780 joined [15:22:18]Waiting for new connection... [15:22:18] Sock 7.Parse request [15:22:18]Sock 7.Check first char [15:22:18]Sock 7.First char is OK [15:22:18]request: POST /json_proto HTTP/1.0 [15:22:18]Method: POST [15:22:18]URL: /json_proto [15:22:18]Method is POST - this is cgi request [15:22:18]url: /json_proto [15:22:18]query_string will be loaded in cgi processing [15:22:18]execute_cgi json_proto POST (null) [15:22:18]execute_cgi path=json_proto method=POST [15:22:18]POST find Content-Length [15:22:18]Host: 172.17.45.7:8080 [15:22:18]Content-Length: 679 [15:22:18]Content-Type: application/json [15:22:18] [15:22:18]POST finish read [15:22:18]Found Content-Length = 679 [15:22:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:18]execute_script... [15: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)949385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:18]POST & json_proto [15:22:18]process_json_proto [15:22:18]json parsed OK: [15:22:18]protocol is kg_v1.0 [15:22:18]action value=close_receipt [15:22:18]process_action close_receipt [15:22:18]cmd_close_receipt [15:22:18]MH_GetDate [15:22:18]Write to MH i2c: F0 00 00 51 05 45 [15:22:18]Write i2c OK [15:22:18]MH_I2C_Read... [15:22:18]Read from MH i2c: F0 [15:22:18]MH_I2C_Read... [15:22:18]Read from MH i2c: F0 09 00 [15:22:18]MH_I2C_Read... [15:22:18]Read from MH i2c: F0 09 00 51 05 00 2C 62 A6 66 90 0F 3E 66 2B [15:22:18]GetLastDocTimeStamp 1722179954 [15:22:18]current date 1722180140 [15:22:18]FM_GetShiftState [15:22:18]SAM_PROTO_GetShiftState [15:22:18]wFMCommunicate request_size=4 [15:22:18]MH_SAM_APDU [15:22:18]CAPDU: 80 13 01 00 [15:22:18]Write to MH i2c: E2 08 00 52 05 80 13 01 00 00 00 00 00 D4 [15:22:18]Write i2c OK [15:22:18]MH_I2C_Read... [15:22:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:18]Read from MH i2c: E2 [15:22:18]MH_I2C_Read... [15:22:18]Read from MH i2c: E2 0E 00 [15:22:18]MH_I2C_Read... [15:22:18]Read from MH i2c: E2 0E 00 52 05 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 AB [15:22:18]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:22:18]wFMCommunicate OK [15:22:18]SAM_PROTO_GetShiftState done [15:22:18]FM_GetShiftState done [15:22:18]opened in 1722125364 [15:22:18]opened+sec_in_day 1722211764 [15:22:18]quantity*price = 100050 [15:22:18]sum+1 = 100052 [15:22:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 183 28.07.2024 15:22 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118514 ФПД: 172112939589932 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T152220&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118514&fm=172112939589932&tin=02508201610067®Number=0000000000092660&sum=100000 [15:22:20]StoreToDocumentArchive [15:22:20]shift 433 fd 118514 [15:22:20]save to /storage/0433/doc_00118514 [15:22:20]save last doc name /storage/0433/doc_00118514 to /storage/kkm_last_doc_name [15:22:20]save OK [15:22:20]Clear old archive folders... [15:22:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:22:20]tlvbuf is 01E4D470 [15:22:20]SAM_PROTO_ClearQueue [15:22:20]wFMCommunicate request_size=4 [15:22:20]MH_SAM_APDU [15:22:20]CAPDU: 80 09 00 00 [15:22:20]Write to MH i2c: E2 08 00 5F 05 80 09 00 00 00 00 00 00 D6 [15:22:20]Write i2c OK [15:22:20]MH_I2C_Read... [15:22:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:20]Read from MH i2c: E2 [15:22:20]MH_I2C_Read... [15:22:20]Read from MH i2c: E2 03 00 [15:22:20]MH_I2C_Read... [15:22:20]Read from MH i2c: E2 03 00 5F 05 00 90 00 D8 [15:22:20]RAPDU: 90 00 [15:22:20]wFMCommunicate OK [15:22:20]SAM_PROTO_ClearQueue done [15:22:20]KKMCreateOFDPacket [15:22:20]OFDProtocolAddRootSTLVToBuf [15:22:20]FM_MakeSignedData [15:22:20]FM_MakeSignedData [15:22:20]SAM_PROTO_SignData [15:22:20]wFMCommunicate request_size=4 [15:22:20]MH_SAM_APDU [15:22:20]CAPDU: 80 0D 01 02 [15:22:20]Write to MH i2c: E2 08 00 60 05 80 0D 01 02 00 00 00 00 DE [15:22:20]Write i2c OK [15:22:20]MH_I2C_Read... [15:22:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:20]Read from MH i2c: E2 [15:22:20]MH_I2C_Read... [15:22:20]Read from MH i2c: E2 03 00 [15:22:20]MH_I2C_Read... [15:22:20]Read from MH i2c: E2 03 00 60 05 00 90 00 D9 [15:22:20]RAPDU: 90 00 [15:22:20]wFMCommunicate OK [15:22:20]wFMCommunicate request_size=255 [15:22:20]MH_SAM_APDU [15:22:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2C 62 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F2 CE 01 00 35 04 06 00 9C 89 2A A0 [15:22:20]Write to MH i2c: E2 02 01 61 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2C 62 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F2 CE 01 00 35 04 06 00 9C 89 2A A0 00 00 21 [15:22:20]Write i2c OK [15:22:20]MH_I2C_Read... [15:22:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:20]Read from MH i2c: E2 [15:22:20]MH_I2C_Read... [15:22:20]Read from MH i2c: E2 03 00 [15:22:20]MH_I2C_Read... [15:22:20]Read from MH i2c: E2 03 00 61 05 00 90 00 DA [15:22:20]RAPDU: 90 00 [15:22:20]wFMCommunicate OK [15:22:20]wFMCommunicate request_size=7 [15:22:20]MH_SAM_APDU [15:22:20]CAPDU: 80 0D 02 02 02 21 2C [15:22:20]Write to MH i2c: E2 0A 00 62 05 80 0D 02 02 02 00 21 2C 00 00 32 [15:22:20]Write i2c OK [15:22:20]MH_I2C_Read... [15:22:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:20]Read from MH i2c: E2 [15:22:20]MH_I2C_Read... [15:22:20]Read from MH i2c: E2 03 00 [15:22:20]MH_I2C_Read... [15:22:20]Read from MH i2c: E2 03 00 62 05 00 90 00 DB [15:22:20]RAPDU: 90 00 [15:22:20]wFMCommunicate OK [15:22:20]wFMCommunicate request_size=4 [15:22:20]MH_SAM_APDU [15:22:20]CAPDU: 80 0D 03 02 [15:22:20]Write to MH i2c: E2 08 00 63 05 80 0D 03 02 00 00 00 00 E3 [15:22:20]Write i2c OK [15:22:20]MH_I2C_Read... [15:22:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:20]Read from MH i2c: E2 [15:22:20]MH_I2C_Read... [15:22:20]Read from MH i2c: E2 0B 00 [15:22:20]MH_I2C_Read... [15:22:20]Read from MH i2c: E2 0B 00 63 05 00 6E 70 09 41 CF C8 38 E0 90 00 BB [15:22:20]RAPDU: 6E 70 09 41 CF C8 38 E0 90 00 [15:22:20]wFMCommunicate OK [15:22:20]SAM_PROTO_SignData done [15:22:20]FM_MakeSignedData done [15:22:20]CreateOFDProtocolMessage [15:22:20]wFMCommunicate request_size=4 [15:22:20]MH_SAM_APDU [15:22:20]CAPDU: 80 11 00 00 [15:22:20]Write to MH i2c: E2 08 00 64 05 80 11 00 00 00 00 00 00 E3 [15:22:20]Write i2c OK [15:22:20]MH_I2C_Read... [15:22:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:20]Read from MH i2c: E2 [15:22:20]MH_I2C_Read... [15:22:20]Read from MH i2c: E2 17 00 [15:22:20]MH_I2C_Read... [15:22:20]Read from MH i2c: E2 17 00 64 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3E [15:22:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:22:20]wFMCommunicate OK [15:22:20]CreateOFDProtocolMessage done [15:22:20]OFDSenderStorePacket 118514 [15:22:20]StoreOFDPacket docnum=118514 [15:22:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 6B 2E 04 01 6D D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2C 62 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F2 CE 01 00 35 04 06 00 9C 89 2A A0 21 2C 6E 70 09 41 CF C8 38 E0 [15:22:20]CheckFolder [15:22:20]dirname=/storage/ofd_packets [15:22:20]CheckFolder done [15:22:20]ProducePacketName [15:22:20]name=ofd_packets/00118514 [15:22:20]NVStorageSaveData ofd_packets/00118514 [15:22:20]File name is /storage/ofd_packets/00118514 [15:22:20]Write 298 bytes [15:22:20]NVStorageSaveData done [15:22:20]OFDSenderStorePacket done [15:22:20]KKMCreateOFDPacket done [15:22:20]NVStorageSaveData kkm_last_timestamp [15:22:20]File name is /storage/kkm_last_timestamp [15:22:20]Write 4 bytes [15:22:20]NVStorageSaveData done [15:22:20]ExternCall_PrintAddStr [15:22:20]wPrintStart [15:22:20]Write to MH i2c: 01 00 00 65 05 6A [15:22:20]Write i2c OK [15:22:20]MH_I2C_Read... [15:22:20]Read from MH i2c: 01 [15:22:20]MH_I2C_Read... [15:22:20]Read from MH i2c: 01 07 00 [15:22:20]MH_I2C_Read... [15:22:20]Read from MH i2c: 01 07 00 65 05 00 00 00 00 00 FF 0F 7F [15:22:20]RasterBufferAndPrint [15:22:20]line Счет N : (1)949385 [15:22:20]line ИНН: 02508201610067 [15:22:20]line Контрольно-Кассовый Чек [15:22:20]line ПРОДАЖА [15:22:20]line ТРК (МРК, ГНК) : 44 [15:22:20]line Товар: 2710194800 [15:22:20]line ДТ-К-5 [15:22:20]line 13.130 * 76.20 [15:22:20]line = 1000.51 [15:22:20]line НДС 12% НСП 1% [15:22:20]line > о реализуемом товаре [15:22:20]line ОКРУГЛЕНИЕ: -0.51 [15:22:20]line ИТОГО: 1000.00 [15:22:20]line Внесено: 1000.00 [15:22:20]line СДАЧА: 0.00 [15:22:20]line НСП 1% : 8.85 [15:22:20]line НДС 12% : 106.25 [15:22:20]line Наличными: 1000.00 [15:22:20]line Безнал.: 0.00 [15:22:20]line Место: АЗС № 134 "Партнер Нефть" [15:22:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:22:20]line СНО: Общий режим [15:22:20]line Чек 183 28.07.2024 15:22 [15:22:20]line Смена: 433 ФФД: 1.0 [15:22:20]line ЗНМ: 0300000044 [15:22:20]line РНМ: 0000000000092660 [15:22:20]line Версия ККМ: 001 [15:22:20]line ФМ: 0000000000874939 [15:22:20]line ФД: 118514 [15:22:20]line ФПД: 172112939589932 [15:22:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T152220&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118514&fm=172112939589932&tin=02508201610067®Number=0000000000092660&sum=100000 [15:22:20]OFD Sender: Processing packet 118514 [packets to send 86, broken 85] [15:22:20]ProducePacketName [15:22:20]name=ofd_packets/00118514 [15:22:20]OFD Sender: To server: pG, [15:22:20]CommunicateWithHost lk.salyk.kg:30040 [15:22:20]ConnectInit lk.salyk.kg [15:22:20]written 0, free lines is 4095 [15:22:21]Write to MH i2c: 01 00 00 8F 05 94 [15:22:21]Write i2c OK [15:22:21]MH_I2C_Read... [15:22:21]Read from MH i2c: 01 [15:22:21]MH_I2C_Read... [15:22:21]Read from MH i2c: 01 07 00 [15:22:21]MH_I2C_Read... [15:22:21]Read from MH i2c: 01 07 00 8F 05 00 00 00 00 00 D0 0C 77 [15:22:21]RasterBufferAndPrint [15:22:21]line [15:22:21]line [15:22:21]line [15:22:21]line [15:22:21]line [15:22:21]written 0, free lines is 3284 [15:22:21]MH_Cut [15:22:21]Write to MH i2c: D1 01 00 96 05 01 6D [15:22:21]Write i2c OK [15:22:21]MH_I2C_Read... [15:22:21]Read from MH i2c: D1 [15:22:21]MH_I2C_Read... [15:22:21]Read from MH i2c: D1 01 00 [15:22:21]MH_I2C_Read... [15:22:21]Read from MH i2c: D1 01 00 96 05 00 6C [15:22:21]Write to MH i2c: 01 00 00 97 05 9C [15:22:21]Write i2c OK [15:22:21]MH_I2C_Read... [15:22:22]*** Cut start [15:22:22]*** Partial cut [15:22:22]*** CUTSNS_PIN = 1 [15:22:22]*** CUTSNS_PIN = 0 [15:22:22]*** Brake cut motor [15:22:22]Read from MH i2c: 01 [15:22:22]MH_I2C_Read... [15:22:22]*** Stop cut motor [15:22:22]*** Cut end [15:22:22]Read from MH i2c: 01 07 00 [15:22:22]MH_I2C_Read... [15:22:22]Read from MH i2c: 01 07 00 97 05 00 00 00 00 00 FF 0F B1 [15:22:22]process_action close_receipt done [15:22:22]requested_data is exist [15:22:22]produce_requested_data [15:22:22]requested_item fm.sn is exist - process it [15:22:22]wFMCommunicate request_size=4 [15:22:22]MH_SAM_APDU [15:22:22]CAPDU: 80 11 00 00 [15:22:22]Write to MH i2c: E2 08 00 98 05 80 11 00 00 00 00 00 00 17 [15:22:22]Write i2c OK [15:22:22]MH_I2C_Read... [15:22:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:22]Read from MH i2c: E2 [15:22:22]MH_I2C_Read... [15:22:22]Read from MH i2c: E2 17 00 [15:22:22]MH_I2C_Read... [15:22:22]Read from MH i2c: E2 17 00 98 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 72 [15:22:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:22:22]wFMCommunicate OK [15:22:22]requested_item fd.num is exist - process it [15:22:22]SAM_PROTO_GetFieldsCounters [15:22:22]wFMCommunicate request_size=4 [15:22:22]MH_SAM_APDU [15:22:22]CAPDU: 80 13 00 00 [15:22:22]Write to MH i2c: E2 08 00 99 05 80 13 00 00 00 00 00 00 1A [15:22:22]Write i2c OK [15:22:22]MH_I2C_Read... [15:22:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:22]Read from MH i2c: E2 [15:22:22]MH_I2C_Read... [15:22:22]Read from MH i2c: E2 62 00 [15:22:22]MH_I2C_Read... [15:22:22]Read from MH i2c: E2 62 00 99 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F2 CE 01 00 0E 04 04 00 B1 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 D9 [15:22:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F2 CE 01 00 0E 04 04 00 B1 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 [15:22:22]wFMCommunicate OK [15:22:22]SAM_PROTO_GetFieldsCounters done [15:22:22]requested_item shift.num is exist - process it [15:22:22]requested_item shift.opened is exist - process it [15:22:22]req_shift_opened [15:22:22]FM_GetShiftState [15:22:22]SAM_PROTO_GetShiftState [15:22:22]wFMCommunicate request_size=4 [15:22:22]MH_SAM_APDU [15:22:22]CAPDU: 80 13 01 00 [15:22:22]Write to MH i2c: E2 08 00 9A 05 80 13 01 00 00 00 00 00 1C [15:22:22]Write i2c OK [15:22:22]MH_I2C_Read... [15:22:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:22]Read from MH i2c: E2 [15:22:22]MH_I2C_Read... [15:22:22]Read from MH i2c: E2 0E 00 [15:22:22]MH_I2C_Read... [15:22:22]Read from MH i2c: E2 0E 00 9A 05 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 F3 [15:22:22]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:22:22]wFMCommunicate OK [15:22:22]SAM_PROTO_GetShiftState done [15:22:22]FM_GetShiftState done [15:22:22]req_shift_opened done [15:22:22]requested_item shift.open_date is exist - process it [15:22:22]req_shift_open_date [15:22:22]req_shift_open_date done [15:22:22]produce_requested_data done [15:22:22]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118514,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [15:22:22]process_action_free close_receipt [15:22:22]json_value_free [15:22:22]json_value_free done [15:22:22]process_json_proto returns [15:22:22]Send response to host [15:22:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118514,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [15:22:22]free response buf [15:22:22]execute_script done [15:22:22]execute_script returns [15:22:22]free content buf [15:22:22]Sock 7.Close socket [15:22:22]Sock 7.Thread stoped [15:24:31]ConnectInit Can't connect to host [15:24:31]CommunicateWithHost connect error [15:24:31]CommunicateWithHost err = -1 [15:24:31]OFD Sender: Server communicate error [15:24:36]OFD Sender: Processing packet 118514 [packets to send 86, broken 85] [15:24:36]ProducePacketName [15:24:36]name=ofd_packets/00118514 [15:24:36]OFD Sender: To server: pG, [15:24:36]CommunicateWithHost lk.salyk.kg:30040 [15:24:36]ConnectInit lk.salyk.kg [15:24:36]Connected sock=7 [15:24:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 6B 2E 04 01 6D D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2C 62 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F2 CE 01 00 35 04 06 00 9C 89 2A A0 21 2C 6E 70 09 41 CF C8 38 E0 [15:24:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 38 50 47 00 04 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F2 CE 01 00 F4 03 04 00 43 10 A6 66 B6 04 01 00 00 15 AB 07 47 17 B6 8A AC [15:24:36]CommunicateWithHost err = 0 [15:24:36]CheckOFDResponse [15:24:36]1017 (14) - 77093643461234 [15:24:36]1041 (16) - 0000000000874939 [15:24:36]1040 (4) - 118514 [15:24:36]1012 (4) - 28.07.2024 09:32 [15:24:36]1206 (1) - 0 [15:24:36]OFD Sender: Remove packet 118514 [15:24:36]ProducePacketName [15:24:36]name=ofd_packets/00118514 [15:24:36]NVStorageDeleteData [15:24:37]OFD Sender: No OFD packet to send [15:24:42]OFD Sender: No OFD packet to send [15:24:47]OFD Sender: No OFD packet to send [15:24:52]OFD Sender: No OFD packet to send [15:24:57]OFD Sender: No OFD packet to send [15:25:02]OFD Sender: No OFD packet to send [15:25:07]OFD Sender: No OFD packet to send [15:25:12]OFD Sender: No OFD packet to send [15:25:17]OFD Sender: No OFD packet to send [15:25:22]OFD Sender: No OFD packet to send [15:25:27]OFD Sender: No OFD packet to send [15:25:32]OFD Sender: No OFD packet to send [15:25:37]OFD Sender: No OFD packet to send [15:25:42]OFD Sender: No OFD packet to send [15:25:47]OFD Sender: No OFD packet to send [15:25:52]OFD Sender: No OFD packet to send [15:25:57]OFD Sender: No OFD packet to send [15:26:02]OFD Sender: No OFD packet to send [15:26:07]OFD Sender: No OFD packet to send [15:26:12]OFD Sender: No OFD packet to send [15:26:17]OFD Sender: No OFD packet to send [15:26:22]OFD Sender: No OFD packet to send [15:26:27]OFD Sender: No OFD packet to send [15:26:32]OFD Sender: No OFD packet to send [15:26:37]OFD Sender: No OFD packet to send [15:26:42]OFD Sender: No OFD packet to send [15:26:47]OFD Sender: No OFD packet to send [15:26:52]OFD Sender: No OFD packet to send [15:26:57]OFD Sender: No OFD packet to send [15:27:02]OFD Sender: No OFD packet to send [15:27:07]OFD Sender: No OFD packet to send [15:27:12]OFD Sender: No OFD packet to send [15:27:17]OFD Sender: No OFD packet to send [15:27:22]OFD Sender: No OFD packet to send [15:27:27]OFD Sender: No OFD packet to send [15:27:32]OFD Sender: No OFD packet to send [15:27:37]OFD Sender: No OFD packet to send [15:27:42]OFD Sender: No OFD packet to send [15:27:47]OFD Sender: No OFD packet to send [15:27:52]OFD Sender: No OFD packet to send [15:27:57]OFD Sender: No OFD packet to send [15:28:02]OFD Sender: No OFD packet to send [15:28:07]OFD Sender: No OFD packet to send [15:28:12]OFD Sender: No OFD packet to send [15:28:17]OFD Sender: No OFD packet to send [15:28:22]OFD Sender: No OFD packet to send [15:28:24]accept exits with 9 [15:28:24]New connection [15:28:24]New thread 3067239780 created [15:28:24]Thread 3067383140 joined [15:28:24]Waiting for new connection... [15:28:24] Sock 9.Parse request [15:28:24]Sock 9.Check first char [15:28:24]Sock 9.First char is OK [15:28:24]request: POST /json_proto HTTP/1.0 [15:28:24]Method: POST [15:28:24]URL: /json_proto [15:28:24]Method is POST - this is cgi request [15:28:24]url: /json_proto [15:28:24]query_string will be loaded in cgi processing [15:28:24]execute_cgi json_proto POST (null) [15:28:24]execute_cgi path=json_proto method=POST [15:28:24]POST find Content-Length [15:28:24]Host: 172.17.45.7:8080 [15:28:24]Content-Length: 677 [15:28:24]Content-Type: application/json [15:28:24] [15:28:24]POST finish read [15:28:24]Found Content-Length = 677 [15:28:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.710, "sum" : 590.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 590.00, "total" : 590.00, "payments": [ { "type": 0, "sum" : 590.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:24]execute_script... [15:28: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)949386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.710, "sum" : 590.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 590.00, "total" : 590.00, "payments": [ { "type": 0, "sum" : 590.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:24]POST & json_proto [15:28:24]process_json_proto [15:28:24]json parsed OK: [15:28:24]protocol is kg_v1.0 [15:28:24]action value=close_receipt [15:28:24]process_action close_receipt [15:28:24]cmd_close_receipt [15:28:24]MH_GetDate [15:28:24]Write to MH i2c: F0 00 00 9B 05 8F [15:28:24]Write i2c OK [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: F0 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: F0 09 00 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: F0 09 00 9B 05 00 99 63 A6 66 90 0F 3E 66 E3 [15:28:24]GetLastDocTimeStamp 1722180140 [15:28:24]current date 1722180505 [15:28:24]FM_GetShiftState [15:28:24]SAM_PROTO_GetShiftState [15:28:24]wFMCommunicate request_size=4 [15:28:24]MH_SAM_APDU [15:28:24]CAPDU: 80 13 01 00 [15:28:24]Write to MH i2c: E2 08 00 9C 05 80 13 01 00 00 00 00 00 1E [15:28:24]Write i2c OK [15:28:24]MH_I2C_Read... [15:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:24]Read from MH i2c: E2 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: E2 0E 00 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: E2 0E 00 9C 05 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 F5 [15:28:24]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:28:24]wFMCommunicate OK [15:28:24]SAM_PROTO_GetShiftState done [15:28:24]FM_GetShiftState done [15:28:24]opened in 1722125364 [15:28:24]opened+sec_in_day 1722211764 [15:28:24]quantity*price = 59053 [15:28:24]sum+1 = 59055 [15:28:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 590.00 Внесено: 590.00 СДАЧА: 0.00 НСП 1% : 5.23 НДС 12% : 62.71 Наличными: 590.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 184 28.07.2024 15:28 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118515 ФПД: 272291832266943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T152825&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118515&fm=272291832266943&tin=02508201610067®Number=0000000000092660&sum=59000 [15:28:25]StoreToDocumentArchive [15:28:25]shift 433 fd 118515 [15:28:25]save to /storage/0433/doc_00118515 [15:28:25]save last doc name /storage/0433/doc_00118515 to /storage/kkm_last_doc_name [15:28:25]save OK [15:28:25]Clear old archive folders... [15:28:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:28:25]tlvbuf is 01E63350 [15:28:25]SAM_PROTO_ClearQueue [15:28:25]wFMCommunicate request_size=4 [15:28:25]MH_SAM_APDU [15:28:25]CAPDU: 80 09 00 00 [15:28:25]Write to MH i2c: E2 08 00 A9 05 80 09 00 00 00 00 00 00 20 [15:28:25]Write i2c OK [15:28:25]MH_I2C_Read... [15:28:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:25]Read from MH i2c: E2 [15:28:25]MH_I2C_Read... [15:28:25]Read from MH i2c: E2 03 00 [15:28:25]MH_I2C_Read... [15:28:25]Read from MH i2c: E2 03 00 A9 05 00 90 00 22 [15:28:25]RAPDU: 90 00 [15:28:25]wFMCommunicate OK [15:28:25]SAM_PROTO_ClearQueue done [15:28:25]KKMCreateOFDPacket [15:28:25]OFDProtocolAddRootSTLVToBuf [15:28:25]FM_MakeSignedData [15:28:25]FM_MakeSignedData [15:28:25]SAM_PROTO_SignData [15:28:25]wFMCommunicate request_size=4 [15:28:25]MH_SAM_APDU [15:28:25]CAPDU: 80 0D 01 02 [15:28:25]Write to MH i2c: E2 08 00 AA 05 80 0D 01 02 00 00 00 00 28 [15:28:25]Write i2c OK [15:28:25]MH_I2C_Read... [15:28:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:25]Read from MH i2c: E2 [15:28:25]MH_I2C_Read... [15:28:25]Read from MH i2c: E2 03 00 [15:28:25]MH_I2C_Read... [15:28:25]Read from MH i2c: E2 03 00 AA 05 00 90 00 23 [15:28:25]RAPDU: 90 00 [15:28:25]wFMCommunicate OK [15:28:25]wFMCommunicate request_size=255 [15:28:25]MH_SAM_APDU [15:28: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 34 FF 03 08 00 03 06 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 AE 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 0B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 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 B8 00 00 00 F4 03 04 00 99 63 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F3 CE 01 00 35 04 06 00 F7 [15:28:25]Write to MH i2c: E2 02 01 AB 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 34 FF 03 08 00 03 06 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 AE 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 0B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 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 B8 00 00 00 F4 03 04 00 99 63 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F3 CE 01 00 35 04 06 00 F7 00 00 14 [15:28:25]Write i2c OK [15:28:25]MH_I2C_Read... [15:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:26]Read from MH i2c: E2 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 03 00 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 03 00 AB 05 00 90 00 24 [15:28:26]RAPDU: 90 00 [15:28:26]wFMCommunicate OK [15:28:26]wFMCommunicate request_size=10 [15:28:26]MH_SAM_APDU [15:28:26]CAPDU: 80 0D 02 02 05 A5 E1 F0 00 BF [15:28:26]Write to MH i2c: E2 0D 00 AC 05 80 0D 02 02 05 00 A5 E1 F0 00 BF 00 00 6A [15:28:26]Write i2c OK [15:28:26]MH_I2C_Read... [15:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:26]Read from MH i2c: E2 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 03 00 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 03 00 AC 05 00 90 00 25 [15:28:26]RAPDU: 90 00 [15:28:26]wFMCommunicate OK [15:28:26]wFMCommunicate request_size=4 [15:28:26]MH_SAM_APDU [15:28:26]CAPDU: 80 0D 03 02 [15:28:26]Write to MH i2c: E2 08 00 AD 05 80 0D 03 02 00 00 00 00 2D [15:28:26]Write i2c OK [15:28:26]MH_I2C_Read... [15:28:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:26]Read from MH i2c: E2 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 0B 00 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 0B 00 AD 05 00 B0 03 E7 21 E1 BF 87 2D 90 00 3D [15:28:26]RAPDU: B0 03 E7 21 E1 BF 87 2D 90 00 [15:28:26]wFMCommunicate OK [15:28:26]SAM_PROTO_SignData done [15:28:26]FM_MakeSignedData done [15:28:26]CreateOFDProtocolMessage [15:28:26]wFMCommunicate request_size=4 [15:28:26]MH_SAM_APDU [15:28:26]CAPDU: 80 11 00 00 [15:28:26]Write to MH i2c: E2 08 00 AE 05 80 11 00 00 00 00 00 00 2D [15:28:26]Write i2c OK [15:28:26]MH_I2C_Read... [15:28:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:26]Read from MH i2c: E2 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 17 00 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 17 00 AE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 88 [15:28:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:28:26]wFMCommunicate OK [15:28:26]CreateOFDProtocolMessage done [15:28:26]OFDSenderStorePacket 118515 [15:28:26]StoreOFDPacket docnum=118515 [15:28:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F1 77 07 01 B0 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 06 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 AE 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 0B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 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 B8 00 00 00 F4 03 04 00 99 63 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F3 CE 01 00 35 04 06 00 F7 A5 E1 F0 00 BF B0 03 E7 21 E1 BF 87 2D [15:28:26]CheckFolder [15:28:26]dirname=/storage/ofd_packets [15:28:26]CheckFolder done [15:28:26]ProducePacketName [15:28:26]name=ofd_packets/00118515 [15:28:26]NVStorageSaveData ofd_packets/00118515 [15:28:26]File name is /storage/ofd_packets/00118515 [15:28:26]Write 301 bytes [15:28:26]NVStorageSaveData done [15:28:26]OFDSenderStorePacket done [15:28:26]KKMCreateOFDPacket done [15:28:26]NVStorageSaveData kkm_last_timestamp [15:28:26]File name is /storage/kkm_last_timestamp [15:28:26]Write 4 bytes [15:28:26]NVStorageSaveData done [15:28:26]ExternCall_PrintAddStr [15:28:26]wPrintStart [15:28:26]Write to MH i2c: 01 00 00 AF 05 B4 [15:28:26]Write i2c OK [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: 01 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: 01 07 00 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: 01 07 00 AF 05 00 00 00 00 00 FF 0F C9 [15:28:26]RasterBufferAndPrint [15:28:26]line Счет N : (1)949386 [15:28:26]line ИНН: 02508201610067 [15:28:26]line Контрольно-Кассовый Чек [15:28:26]line ПРОДАЖА [15:28:26]line ТРК (МРК, ГНК) : 51 [15:28:26]line Товар: 2710124130 [15:28:26]line Аи-92-К-4 [15:28:26]line 8.710 * 67.80 [15:28:26]line = 590.54 [15:28:26]line НДС 12% НСП 1% [15:28:26]line > о реализуемом товаре [15:28:26]line ОКРУГЛЕНИЕ: -0.54 [15:28:26]line ИТОГО: 590.00 [15:28:26]line Внесено: 590.00 [15:28:26]line СДАЧА: 0.00 [15:28:26]line НСП 1% : 5.23 [15:28:26]line НДС 12% : 62.71 [15:28:26]line Наличными: 590.00 [15:28:26]line Безнал.: 0.00 [15:28:26]line Место: АЗС № 134 "Партнер Нефть" [15:28:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:28:26]line СНО: Общий режим [15:28:26]line Чек 184 28.07.2024 15:28 [15:28:26]line Смена: 433 ФФД: 1.0 [15:28:26]line ЗНМ: 0300000044 [15:28:26]line РНМ: 0000000000092660 [15:28:26]line Версия ККМ: 001 [15:28:26]line ФМ: 0000000000874939 [15:28:26]line ФД: 118515 [15:28:26]line ФПД: 272291832266943 [15:28:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T152825&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118515&fm=272291832266943&tin=02508201610067®Number=0000000000092660&sum=59000 [15:28:26]written 0, free lines is 4095 [15:28:26]OFD Sender: Processing packet 118515 [packets to send 86, broken 85] [15:28:26]ProducePacketName [15:28:26]name=ofd_packets/00118515 [15:28:26]OFD Sender: To server: pG, [15:28:26]CommunicateWithHost lk.salyk.kg:30040 [15:28:26]ConnectInit lk.salyk.kg [15:28:26]Connected sock=10 [15:28:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F1 77 07 01 B0 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 06 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 AE 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 0B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 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 B8 00 00 00 F4 03 04 00 99 63 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F3 CE 01 00 35 04 06 00 F7 A5 E1 F0 00 BF B0 03 E7 21 E1 BF 87 2D [15:28:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 26 41 47 00 94 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F3 CE 01 00 F4 03 04 00 29 11 A6 66 B6 04 01 00 00 76 E7 22 E2 60 A2 90 61 [15:28:27]CommunicateWithHost err = 0 [15:28:27]CheckOFDResponse [15:28:27]1017 (14) - 77093643461234 [15:28:27]1041 (16) - 0000000000874939 [15:28:27]1040 (4) - 118515 [15:28:27]1012 (4) - 28.07.2024 09:36 [15:28:27]1206 (1) - 0 [15:28:27]OFD Sender: Remove packet 118515 [15:28:27]ProducePacketName [15:28:27]name=ofd_packets/00118515 [15:28:27]NVStorageDeleteData [15:28:27]Write to MH i2c: 01 00 00 D9 05 DE [15:28:27]Write i2c OK [15:28:27]MH_I2C_Read... [15:28:27]Read from MH i2c: 01 [15:28:27]MH_I2C_Read... [15:28:27]Read from MH i2c: 01 07 00 [15:28:27]MH_I2C_Read... [15:28:27]Read from MH i2c: 01 07 00 D9 05 00 00 00 00 00 D1 0C C2 [15:28:27]RasterBufferAndPrint [15:28:27]line [15:28:27]line [15:28:27]line [15:28:27]line [15:28:27]line [15:28:27]written 0, free lines is 3288 [15:28:27]MH_Cut [15:28:27]Write to MH i2c: D1 01 00 E0 05 01 B7 [15:28:27]Write i2c OK [15:28:27]MH_I2C_Read... [15:28:27]Read from MH i2c: D1 [15:28:27]MH_I2C_Read... [15:28:27]Read from MH i2c: D1 01 00 [15:28:27]MH_I2C_Read... [15:28:27]Read from MH i2c: D1 01 00 E0 05 00 B6 [15:28:27]Write to MH i2c: 01 00 00 E1 05 E6 [15:28:27]Write i2c OK [15:28:27]MH_I2C_Read... [15:28:27]OFD Sender: No OFD packet to send [15:28:27]*** Cut start [15:28:27]*** Partial cut [15:28:27]*** CUTSNS_PIN = 1 [15:28:27]*** CUTSNS_PIN = 0 [15:28:28]*** Brake cut motor [15:28:28]Read from MH i2c: 01 [15:28:28]MH_I2C_Read... [15:28:28]*** Stop cut motor [15:28:28]*** Cut end [15:28:28]Read from MH i2c: 01 07 00 [15:28:28]MH_I2C_Read... [15:28:28]Read from MH i2c: 01 07 00 E1 05 00 00 00 00 00 FF 0F FB [15:28:28]process_action close_receipt done [15:28:28]requested_data is exist [15:28:28]produce_requested_data [15:28:28]requested_item fm.sn is exist - process it [15:28:28]wFMCommunicate request_size=4 [15:28:28]MH_SAM_APDU [15:28:28]CAPDU: 80 11 00 00 [15:28:28]Write to MH i2c: E2 08 00 E2 05 80 11 00 00 00 00 00 00 61 [15:28:28]Write i2c OK [15:28:28]MH_I2C_Read... [15:28:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:28]Read from MH i2c: E2 [15:28:28]MH_I2C_Read... [15:28:28]Read from MH i2c: E2 17 00 [15:28:28]MH_I2C_Read... [15:28:28]Read from MH i2c: E2 17 00 E2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BC [15:28:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:28:28]wFMCommunicate OK [15:28:28]requested_item fd.num is exist - process it [15:28:28]SAM_PROTO_GetFieldsCounters [15:28:28]wFMCommunicate request_size=4 [15:28:28]MH_SAM_APDU [15:28:28]CAPDU: 80 13 00 00 [15:28:28]Write to MH i2c: E2 08 00 E3 05 80 13 00 00 00 00 00 00 64 [15:28:28]Write i2c OK [15:28:28]MH_I2C_Read... [15:28:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:28]Read from MH i2c: E2 [15:28:28]MH_I2C_Read... [15:28:28]Read from MH i2c: E2 62 00 [15:28:28]MH_I2C_Read... [15:28:28]Read from MH i2c: E2 62 00 E3 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F3 CE 01 00 0E 04 04 00 B1 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 27 [15:28:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F3 CE 01 00 0E 04 04 00 B1 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 [15:28:28]wFMCommunicate OK [15:28:28]SAM_PROTO_GetFieldsCounters done [15:28:28]requested_item shift.num is exist - process it [15:28:28]requested_item shift.opened is exist - process it [15:28:28]req_shift_opened [15:28:28]FM_GetShiftState [15:28:28]SAM_PROTO_GetShiftState [15:28:28]wFMCommunicate request_size=4 [15:28:28]MH_SAM_APDU [15:28:28]CAPDU: 80 13 01 00 [15:28:28]Write to MH i2c: E2 08 00 E4 05 80 13 01 00 00 00 00 00 66 [15:28:28]Write i2c OK [15:28:28]MH_I2C_Read... [15:28:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:28]Read from MH i2c: E2 [15:28:28]MH_I2C_Read... [15:28:28]Read from MH i2c: E2 0E 00 [15:28:28]MH_I2C_Read... [15:28:28]Read from MH i2c: E2 0E 00 E4 05 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 3D [15:28:28]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:28:28]wFMCommunicate OK [15:28:28]SAM_PROTO_GetShiftState done [15:28:28]FM_GetShiftState done [15:28:28]req_shift_opened done [15:28:28]requested_item shift.open_date is exist - process it [15:28:28]req_shift_open_date [15:28:28]req_shift_open_date done [15:28:28]produce_requested_data done [15:28:28]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118515,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [15:28:28]process_action_free close_receipt [15:28:28]json_value_free [15:28:28]json_value_free done [15:28:28]process_json_proto returns [15:28:28]Send response to host [15:28:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118515,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [15:28:28]free response buf [15:28:28]execute_script done [15:28:28]execute_script returns [15:28:28]free content buf [15:28:28]Sock 9.Close socket [15:28:28]Sock 9.Thread stoped [15:28:32]OFD Sender: No OFD packet to send [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]OFD Sender: No OFD packet to send [15:30:52]OFD Sender: No OFD packet to send [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:17]OFD Sender: No OFD packet to send [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:07]OFD Sender: No OFD packet to send [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:27]OFD Sender: No OFD packet to send [15:32:32]OFD Sender: No OFD packet to send [15:32:36]accept exits with 7 [15:32:36]New connection [15:32:36]New thread 3067383140 created [15:32:36]Thread 3067239780 joined [15:32:36]Waiting for new connection... [15:32:36] Sock 7.Parse request [15:32:36]Sock 7.Check first char [15:32:36]Sock 7.First char is OK [15:32:36]request: POST /json_proto HTTP/1.0 [15:32:36]Method: POST [15:32:36]URL: /json_proto [15:32:36]Method is POST - this is cgi request [15:32:36]url: /json_proto [15:32:36]query_string will be loaded in cgi processing [15:32:36]execute_cgi json_proto POST (null) [15:32:36]execute_cgi path=json_proto method=POST [15:32:36]POST find Content-Length [15:32:36]Host: 172.17.45.7:8080 [15:32:36]Content-Length: 674 [15:32:36]Content-Type: application/json [15:32:36] [15:32:36]POST finish read [15:32:36]Found Content-Length = 674 [15:32:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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:32:36]execute_script... [15:32: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)949387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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:32:36]POST & json_proto [15:32:36]process_json_proto [15:32:36]json parsed OK: [15:32:36]protocol is kg_v1.0 [15:32:36]action value=close_receipt [15:32:36]process_action close_receipt [15:32:36]cmd_close_receipt [15:32:36]MH_GetDate [15:32:36]Write to MH i2c: F0 00 00 E5 05 D9 [15:32:36]Write i2c OK [15:32:36]MH_I2C_Read... [15:32:36]Read from MH i2c: F0 [15:32:36]MH_I2C_Read... [15:32:36]Read from MH i2c: F0 09 00 [15:32:36]MH_I2C_Read... [15:32:36]Read from MH i2c: F0 09 00 E5 05 00 95 64 A6 66 90 0F 3E 66 2A [15:32:36]GetLastDocTimeStamp 1722180505 [15:32:36]current date 1722180757 [15:32:36]FM_GetShiftState [15:32:36]SAM_PROTO_GetShiftState [15:32:36]wFMCommunicate request_size=4 [15:32:36]MH_SAM_APDU [15:32:36]CAPDU: 80 13 01 00 [15:32:36]Write to MH i2c: E2 08 00 E6 05 80 13 01 00 00 00 00 00 68 [15:32:36]Write i2c OK [15:32:36]MH_I2C_Read... [15:32:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:36]Read from MH i2c: E2 [15:32:36]MH_I2C_Read... [15:32:36]Read from MH i2c: E2 0E 00 [15:32:36]MH_I2C_Read... [15:32:36]Read from MH i2c: E2 0E 00 E6 05 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 3F [15:32:36]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:32:36]wFMCommunicate OK [15:32:36]SAM_PROTO_GetShiftState done [15:32:36]FM_GetShiftState done [15:32:36]opened in 1722125364 [15:32:36]opened+sec_in_day 1722211764 [15:32:36]quantity*price = 60045 [15:32:36]sum+1 = 60047 [15:32:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 185 28.07.2024 15:32 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118516 ФПД: 208481759927456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T153237&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118516&fm=208481759927456&tin=02508201610067®Number=0000000000092660&sum=60000 [15:32:37]StoreToDocumentArchive [15:32:37]shift 433 fd 118516 [15:32:37]save to /storage/0433/doc_00118516 [15:32:37]save last doc name /storage/0433/doc_00118516 to /storage/kkm_last_doc_name [15:32:37]save OK [15:32:37]Clear old archive folders... [15:32:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:32:37]tlvbuf is 01E7E430 [15:32:37]SAM_PROTO_ClearQueue [15:32:37]wFMCommunicate request_size=4 [15:32:37]MH_SAM_APDU [15:32:37]CAPDU: 80 09 00 00 [15:32:37]Write to MH i2c: E2 08 00 F3 05 80 09 00 00 00 00 00 00 6A [15:32:37]Write i2c OK [15:32:37]MH_I2C_Read... [15:32:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:37]Read from MH i2c: E2 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: E2 03 00 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: E2 03 00 F3 05 00 90 00 6C [15:32:37]RAPDU: 90 00 [15:32:37]wFMCommunicate OK [15:32:37]SAM_PROTO_ClearQueue done [15:32:37]KKMCreateOFDPacket [15:32:37]OFDProtocolAddRootSTLVToBuf [15:32:37]FM_MakeSignedData [15:32:37]FM_MakeSignedData [15:32:37]SAM_PROTO_SignData [15:32:37]wFMCommunicate request_size=4 [15:32:37]MH_SAM_APDU [15:32:37]CAPDU: 80 0D 01 02 [15:32:37]Write to MH i2c: E2 08 00 F4 05 80 0D 01 02 00 00 00 00 72 [15:32:37]Write i2c OK [15:32:37]MH_I2C_Read... [15:32:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:37]Read from MH i2c: E2 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: E2 03 00 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: E2 03 00 F4 05 00 90 00 6D [15:32:37]RAPDU: 90 00 [15:32:37]wFMCommunicate OK [15:32:37]wFMCommunicate request_size=255 [15:32:37]MH_SAM_APDU [15:32:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E9 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 B9 00 00 00 F4 03 04 00 95 64 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F4 CE 01 00 35 04 06 00 BD 9C F1 3E [15:32:37]Write to MH i2c: E2 02 01 F5 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E9 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 B9 00 00 00 F4 03 04 00 95 64 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F4 CE 01 00 35 04 06 00 BD 9C F1 3E 00 00 7E [15:32:37]Write i2c OK [15:32:37]MH_I2C_Read... [15:32:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:37]Read from MH i2c: E2 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: E2 03 00 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: E2 03 00 F5 05 00 90 00 6E [15:32:37]RAPDU: 90 00 [15:32:37]wFMCommunicate OK [15:32:37]wFMCommunicate request_size=7 [15:32:37]MH_SAM_APDU [15:32:37]CAPDU: 80 0D 02 02 02 1C A0 [15:32:37]Write to MH i2c: E2 0A 00 F6 05 80 0D 02 02 02 00 1C A0 00 00 35 [15:32:37]Write i2c OK [15:32:37]MH_I2C_Read... [15:32:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:37]Read from MH i2c: E2 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: E2 03 00 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: E2 03 00 F6 05 00 90 00 6F [15:32:37]RAPDU: 90 00 [15:32:37]wFMCommunicate OK [15:32:37]wFMCommunicate request_size=4 [15:32:37]MH_SAM_APDU [15:32:37]CAPDU: 80 0D 03 02 [15:32:37]Write to MH i2c: E2 08 00 F7 05 80 0D 03 02 00 00 00 00 77 [15:32:37]Write i2c OK [15:32:37]MH_I2C_Read... [15:32:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:37]OFD Sender: No OFD packet to send [15:32:37]Read from MH i2c: E2 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: E2 0B 00 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: E2 0B 00 F7 05 00 AF FE A7 BE 0A A1 8B A2 90 00 62 [15:32:37]RAPDU: AF FE A7 BE 0A A1 8B A2 90 00 [15:32:37]wFMCommunicate OK [15:32:37]SAM_PROTO_SignData done [15:32:37]FM_MakeSignedData done [15:32:37]CreateOFDProtocolMessage [15:32:37]wFMCommunicate request_size=4 [15:32:37]MH_SAM_APDU [15:32:37]CAPDU: 80 11 00 00 [15:32:37]Write to MH i2c: E2 08 00 F8 05 80 11 00 00 00 00 00 00 77 [15:32:37]Write i2c OK [15:32:37]MH_I2C_Read... [15:32:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:37]Read from MH i2c: E2 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: E2 17 00 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: E2 17 00 F8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D2 [15:32:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:32:37]wFMCommunicate OK [15:32:37]CreateOFDProtocolMessage done [15:32:37]OFDSenderStorePacket 118516 [15:32:37]StoreOFDPacket docnum=118516 [15:32:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 4E 6E 04 01 3C 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E9 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 B9 00 00 00 F4 03 04 00 95 64 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F4 CE 01 00 35 04 06 00 BD 9C F1 3E 1C A0 AF FE A7 BE 0A A1 8B A2 [15:32:37]CheckFolder [15:32:37]dirname=/storage/ofd_packets [15:32:37]CheckFolder done [15:32:37]ProducePacketName [15:32:37]name=ofd_packets/00118516 [15:32:37]NVStorageSaveData ofd_packets/00118516 [15:32:37]File name is /storage/ofd_packets/00118516 [15:32:37]Write 298 bytes [15:32:37]NVStorageSaveData done [15:32:37]OFDSenderStorePacket done [15:32:37]KKMCreateOFDPacket done [15:32:37]NVStorageSaveData kkm_last_timestamp [15:32:37]File name is /storage/kkm_last_timestamp [15:32:37]Write 4 bytes [15:32:37]NVStorageSaveData done [15:32:37]ExternCall_PrintAddStr [15:32:37]wPrintStart [15:32:37]Write to MH i2c: 01 00 00 F9 05 FE [15:32:37]Write i2c OK [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: 01 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: 01 07 00 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: 01 07 00 F9 05 00 00 00 00 00 FF 0F 13 [15:32:37]RasterBufferAndPrint [15:32:37]line Счет N : (1)949387 [15:32:37]line ИНН: 02508201610067 [15:32:37]line Контрольно-Кассовый Чек [15:32:37]line ПРОДАЖА [15:32:37]line ТРК (МРК, ГНК) : 44 [15:32:37]line Товар: 2710194800 [15:32:37]line ДТ-К-5 [15:32:37]line 7.880 * 76.20 [15:32:37]line = 600.46 [15:32:37]line НДС 12% НСП 1% [15:32:37]line > о реализуемом товаре [15:32:37]line ОКРУГЛЕНИЕ: -0.46 [15:32:37]line ИТОГО: 600.00 [15:32:37]line Внесено: 600.00 [15:32:37]line СДАЧА: 0.00 [15:32:37]line НСП 1% : 5.31 [15:32:37]line НДС 12% : 63.77 [15:32:37]line Наличными: 600.00 [15:32:37]line Безнал.: 0.00 [15:32:37]line Место: АЗС № 134 "Партнер Нефть" [15:32:37]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:32:37]line СНО: Общий режим [15:32:37]line Чек 185 28.07.2024 15:32 [15:32:37]line Смена: 433 ФФД: 1.0 [15:32:37]line ЗНМ: 0300000044 [15:32:37]line РНМ: 0000000000092660 [15:32:38]line Версия ККМ: 001 [15:32:38]line ФМ: 0000000000874939 [15:32:38]line ФД: 118516 [15:32:38]line ФПД: 208481759927456 [15:32:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T153237&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118516&fm=208481759927456&tin=02508201610067®Number=0000000000092660&sum=60000 [15:32:38]OFD Sender: Processing packet 118516 [packets to send 86, broken 85] [15:32:38]ProducePacketName [15:32:38]name=ofd_packets/00118516 [15:32:38]OFD Sender: To server: pG, [15:32:38]CommunicateWithHost lk.salyk.kg:30040 [15:32:38]ConnectInit lk.salyk.kg [15:32:38]written 0, free lines is 4095 [15:32:38]Connected sock=10 [15:32: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 39 33 39 0C 01 00 00 4E 6E 04 01 3C 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E9 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 B9 00 00 00 F4 03 04 00 95 64 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F4 CE 01 00 35 04 06 00 BD 9C F1 3E 1C A0 AF FE A7 BE 0A A1 8B A2 [15:32:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 29 B2 47 00 EC 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 39 33 39 10 04 04 00 F4 CE 01 00 F4 03 04 00 25 12 A6 66 B6 04 01 00 00 6A C7 3E C0 F2 5B 2E 15 [15:32:38]CommunicateWithHost err = 0 [15:32:38]CheckOFDResponse [15:32:38]1017 (14) - 77093643461234 [15:32:38]1041 (16) - 0000000000874939 [15:32:38]1040 (4) - 118516 [15:32:38]1012 (4) - 28.07.2024 09:40 [15:32:38]1206 (1) - 0 [15:32:38]OFD Sender: Remove packet 118516 [15:32:38]ProducePacketName [15:32:38]name=ofd_packets/00118516 [15:32:38]NVStorageDeleteData [15:32:38]Write to MH i2c: 01 00 00 23 06 29 [15:32:38]Write i2c OK [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: 01 [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: 01 07 00 [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: 01 07 00 23 06 00 00 00 00 00 D7 0C 13 [15:32:38]RasterBufferAndPrint [15:32:38]line [15:32:38]line [15:32:38]line [15:32:38]line [15:32:38]line [15:32:38]written 0, free lines is 3295 [15:32:38]MH_Cut [15:32:38]Write to MH i2c: D1 01 00 2A 06 01 02 [15:32:38]Write i2c OK [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: D1 [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: D1 01 00 [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: D1 01 00 2A 06 00 01 [15:32:38]Write to MH i2c: 01 00 00 2B 06 31 [15:32:38]Write i2c OK [15:32:38]MH_I2C_Read... [15:32:39]OFD Sender: No OFD packet to send [15:32:39]*** Cut start [15:32:39]*** Partial cut [15:32:39]*** CUTSNS_PIN = 1 [15:32:39]*** CUTSNS_PIN = 0 [15:32:39]*** Brake cut motor [15:32:40]Read from MH i2c: 01 [15:32:40]MH_I2C_Read... [15:32:40]*** Stop cut motor [15:32:40]*** Cut end [15:32:40]Read from MH i2c: 01 07 00 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: 01 07 00 2B 06 00 00 00 00 00 FF 0F 46 [15:32:40]process_action close_receipt done [15:32:40]requested_data is exist [15:32:40]produce_requested_data [15:32:40]requested_item fm.sn is exist - process it [15:32:40]wFMCommunicate request_size=4 [15:32:40]MH_SAM_APDU [15:32:40]CAPDU: 80 11 00 00 [15:32:40]Write to MH i2c: E2 08 00 2C 06 80 11 00 00 00 00 00 00 AC [15:32:40]Write i2c OK [15:32:40]MH_I2C_Read... [15:32:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:40]Read from MH i2c: E2 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: E2 17 00 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: E2 17 00 2C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 07 [15:32:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:32:40]wFMCommunicate OK [15:32:40]requested_item fd.num is exist - process it [15:32:40]SAM_PROTO_GetFieldsCounters [15:32:40]wFMCommunicate request_size=4 [15:32:40]MH_SAM_APDU [15:32:40]CAPDU: 80 13 00 00 [15:32:40]Write to MH i2c: E2 08 00 2D 06 80 13 00 00 00 00 00 00 AF [15:32:40]Write i2c OK [15:32:40]MH_I2C_Read... [15:32:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:40]Read from MH i2c: E2 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: E2 62 00 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: E2 62 00 2D 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F4 CE 01 00 0E 04 04 00 B1 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 76 [15:32:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F4 CE 01 00 0E 04 04 00 B1 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 [15:32:40]wFMCommunicate OK [15:32:40]SAM_PROTO_GetFieldsCounters done [15:32:40]requested_item shift.num is exist - process it [15:32:40]requested_item shift.opened is exist - process it [15:32:40]req_shift_opened [15:32:40]FM_GetShiftState [15:32:40]SAM_PROTO_GetShiftState [15:32:40]wFMCommunicate request_size=4 [15:32:40]MH_SAM_APDU [15:32:40]CAPDU: 80 13 01 00 [15:32:40]Write to MH i2c: E2 08 00 2E 06 80 13 01 00 00 00 00 00 B1 [15:32:40]Write i2c OK [15:32:40]MH_I2C_Read... [15:32:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:40]Read from MH i2c: E2 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: E2 0E 00 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: E2 0E 00 2E 06 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 88 [15:32:40]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:32:40]wFMCommunicate OK [15:32:40]SAM_PROTO_GetShiftState done [15:32:40]FM_GetShiftState done [15:32:40]req_shift_opened done [15:32:40]requested_item shift.open_date is exist - process it [15:32:40]req_shift_open_date [15:32:40]req_shift_open_date done [15:32:40]produce_requested_data done [15:32:40]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118516,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [15:32:40]process_action_free close_receipt [15:32:40]json_value_free [15:32:40]json_value_free done [15:32:40]process_json_proto returns [15:32:40]Send response to host [15:32:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118516,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [15:32:40]free response buf [15:32:40]execute_script done [15:32:40]execute_script returns [15:32:40]free content buf [15:32:40]Sock 7.Close socket [15:32:40]Sock 7.Thread stoped [15:32:44]OFD Sender: No OFD packet to send [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:59]OFD Sender: No OFD packet to send [15:33:04]OFD Sender: No OFD packet to send [15:33:09]OFD Sender: No OFD packet to send [15:33:14]OFD Sender: No OFD packet to send [15:33:19]OFD Sender: No OFD packet to send [15:33:24]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [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:26]accept exits with 9 [15:34:26]New connection [15:34:26]New thread 3067239780 created [15:34:26]Thread 3067383140 joined [15:34:26]Waiting for new connection... [15:34:26] Sock 9.Parse request [15:34:26]Sock 9.Check first char [15:34:26]Sock 9.First char is OK [15:34:26]request: POST /json_proto HTTP/1.0 [15:34:26]Method: POST [15:34:26]URL: /json_proto [15:34:26]Method is POST - this is cgi request [15:34:26]url: /json_proto [15:34:26]query_string will be loaded in cgi processing [15:34:26]execute_cgi json_proto POST (null) [15:34:26]execute_cgi path=json_proto method=POST [15:34:26]POST find Content-Length [15:34:26]Host: 172.17.45.7:8080 [15:34:26]Content-Length: 677 [15:34:26]Content-Type: application/json [15:34:26] [15:34:26]POST finish read [15:34:26]Found Content-Length = 677 [15:34:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:26]execute_script... [15: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)949388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:26]POST & json_proto [15:34:26]process_json_proto [15:34:26]json parsed OK: [15:34:26]protocol is kg_v1.0 [15:34:26]action value=close_receipt [15:34:26]process_action close_receipt [15:34:26]cmd_close_receipt [15:34:26]MH_GetDate [15:34:26]Write to MH i2c: F0 00 00 2F 06 24 [15:34:26]Write i2c OK [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: F0 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: F0 09 00 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: F0 09 00 2F 06 00 03 65 A6 66 90 0F 3E 66 E4 [15:34:26]GetLastDocTimeStamp 1722180757 [15:34:26]current date 1722180867 [15:34:26]FM_GetShiftState [15:34:26]SAM_PROTO_GetShiftState [15:34:26]wFMCommunicate request_size=4 [15:34:26]MH_SAM_APDU [15:34:26]CAPDU: 80 13 01 00 [15:34:26]Write to MH i2c: E2 08 00 30 06 80 13 01 00 00 00 00 00 B3 [15:34:26]Write i2c OK [15:34:26]MH_I2C_Read... [15:34:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:26]Read from MH i2c: E2 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 0E 00 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 0E 00 30 06 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 8A [15:34:26]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:34:26]wFMCommunicate OK [15:34:26]SAM_PROTO_GetShiftState done [15:34:26]FM_GetShiftState done [15:34:26]opened in 1722125364 [15:34:26]opened+sec_in_day 1722211764 [15:34:26]quantity*price = 30035 [15:34:26]sum+1 = 30036 [15:34:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 186 28.07.2024 15:34 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118517 ФПД: 9538303672155 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T153427&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118517&fm=9538303672155&tin=02508201610067®Number=0000000000092660&sum=30000 [15:34:27]StoreToDocumentArchive [15:34:27]shift 433 fd 118517 [15:34:27]save to /storage/0433/doc_00118517 [15:34:27]save last doc name /storage/0433/doc_00118517 to /storage/kkm_last_doc_name [15:34:27]save OK [15:34:27]Clear old archive folders... [15:34:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:34:27]tlvbuf is 01E73100 [15:34:27]SAM_PROTO_ClearQueue [15:34:27]wFMCommunicate request_size=4 [15:34:27]MH_SAM_APDU [15:34:27]CAPDU: 80 09 00 00 [15:34:27]Write to MH i2c: E2 08 00 3D 06 80 09 00 00 00 00 00 00 B5 [15:34:27]Write i2c OK [15:34:27]MH_I2C_Read... [15:34:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:27]Read from MH i2c: E2 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 03 00 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 03 00 3D 06 00 90 00 B7 [15:34:27]RAPDU: 90 00 [15:34:27]wFMCommunicate OK [15:34:27]SAM_PROTO_ClearQueue done [15:34:27]KKMCreateOFDPacket [15:34:27]OFDProtocolAddRootSTLVToBuf [15:34:27]FM_MakeSignedData [15:34:27]FM_MakeSignedData [15:34:27]SAM_PROTO_SignData [15:34:27]wFMCommunicate request_size=4 [15:34:27]MH_SAM_APDU [15:34:27]CAPDU: 80 0D 01 02 [15:34:27]Write to MH i2c: E2 08 00 3E 06 80 0D 01 02 00 00 00 00 BD [15:34:27]Write i2c OK [15:34:27]MH_I2C_Read... [15:34:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:27]Read from MH i2c: E2 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 03 00 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 03 00 3E 06 00 90 00 B8 [15:34:27]RAPDU: 90 00 [15:34:27]wFMCommunicate OK [15:34:27]wFMCommunicate request_size=255 [15:34:27]MH_SAM_APDU [15:34: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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 03 65 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F5 CE 01 00 35 04 06 00 08 [15:34:27]Write to MH i2c: E2 02 01 3F 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 03 65 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F5 CE 01 00 35 04 06 00 08 00 00 0C [15:34:27]Write i2c OK [15:34:27]MH_I2C_Read... [15:34:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:28]Read from MH i2c: E2 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: E2 03 00 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: E2 03 00 3F 06 00 90 00 B9 [15:34:28]RAPDU: 90 00 [15:34:28]wFMCommunicate OK [15:34:28]wFMCommunicate request_size=10 [15:34:28]MH_SAM_APDU [15:34:28]CAPDU: 80 0D 02 02 05 AC CF 33 BF 5B [15:34:28]Write to MH i2c: E2 0D 00 40 06 80 0D 02 02 05 00 AC CF 33 BF 5B 00 00 92 [15:34:28]Write i2c OK [15:34:28]MH_I2C_Read... [15:34:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:28]Read from MH i2c: E2 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: E2 03 00 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: E2 03 00 40 06 00 90 00 BA [15:34:28]RAPDU: 90 00 [15:34:28]wFMCommunicate OK [15:34:28]wFMCommunicate request_size=4 [15:34:28]MH_SAM_APDU [15:34:28]CAPDU: 80 0D 03 02 [15:34:28]Write to MH i2c: E2 08 00 41 06 80 0D 03 02 00 00 00 00 C2 [15:34:28]Write i2c OK [15:34:28]MH_I2C_Read... [15:34:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:28]Read from MH i2c: E2 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: E2 0B 00 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: E2 0B 00 41 06 00 23 C4 D3 59 01 59 A4 79 90 00 4D [15:34:28]RAPDU: 23 C4 D3 59 01 59 A4 79 90 00 [15:34:28]wFMCommunicate OK [15:34:28]SAM_PROTO_SignData done [15:34:28]FM_MakeSignedData done [15:34:28]CreateOFDProtocolMessage [15:34:28]wFMCommunicate request_size=4 [15:34:28]MH_SAM_APDU [15:34:28]CAPDU: 80 11 00 00 [15:34:28]Write to MH i2c: E2 08 00 42 06 80 11 00 00 00 00 00 00 C2 [15:34:28]Write i2c OK [15:34:28]MH_I2C_Read... [15:34:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:28]Read from MH i2c: E2 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: E2 17 00 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: E2 17 00 42 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1D [15:34:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:34:28]wFMCommunicate OK [15:34:28]CreateOFDProtocolMessage done [15:34:28]OFDSenderStorePacket 118517 [15:34:28]StoreOFDPacket docnum=118517 [15:34:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F3 29 07 01 81 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 03 65 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F5 CE 01 00 35 04 06 00 08 AC CF 33 BF 5B 23 C4 D3 59 01 59 A4 79 [15:34:28]CheckFolder [15:34:28]dirname=/storage/ofd_packets [15:34:28]CheckFolder done [15:34:28]ProducePacketName [15:34:28]name=ofd_packets/00118517 [15:34:28]NVStorageSaveData ofd_packets/00118517 [15:34:28]File name is /storage/ofd_packets/00118517 [15:34:28]Write 301 bytes [15:34:28]NVStorageSaveData done [15:34:28]OFDSenderStorePacket done [15:34:28]KKMCreateOFDPacket done [15:34:28]NVStorageSaveData kkm_last_timestamp [15:34:28]File name is /storage/kkm_last_timestamp [15:34:28]Write 4 bytes [15:34:28]NVStorageSaveData done [15:34:28]ExternCall_PrintAddStr [15:34:28]wPrintStart [15:34:28]Write to MH i2c: 01 00 00 43 06 49 [15:34:28]Write i2c OK [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: 01 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: 01 07 00 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: 01 07 00 43 06 00 00 00 00 00 FF 0F 5E [15:34:28]RasterBufferAndPrint [15:34:28]line Счет N : (1)949388 [15:34:28]line ИНН: 02508201610067 [15:34:28]line Контрольно-Кассовый Чек [15:34:28]line ПРОДАЖА [15:34:28]line ТРК (МРК, ГНК) : 51 [15:34:28]line Товар: 2710124130 [15:34:28]line Аи-92-К-4 [15:34:28]line 4.430 * 67.80 [15:34:28]line = 300.35 [15:34:28]line НДС 12% НСП 1% [15:34:28]line > о реализуемом товаре [15:34:28]line ОКРУГЛЕНИЕ: -0.35 [15:34:28]line ИТОГО: 300.00 [15:34:28]line Внесено: 300.00 [15:34:28]line СДАЧА: 0.00 [15:34:28]line НСП 1% : 2.66 [15:34:28]line НДС 12% : 31.90 [15:34:28]line Наличными: 300.00 [15:34:28]line Безнал.: 0.00 [15:34:28]line Место: АЗС № 134 "Партнер Нефть" [15:34:28]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:34:28]line СНО: Общий режим [15:34:28]line Чек 186 28.07.2024 15:34 [15:34:28]line Смена: 433 ФФД: 1.0 [15:34:28]line ЗНМ: 0300000044 [15:34:28]line РНМ: 0000000000092660 [15:34:28]line Версия ККМ: 001 [15:34:28]line ФМ: 0000000000874939 [15:34:28]line ФД: 118517 [15:34:28]line ФПД: 9538303672155 [15:34:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T153427&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118517&fm=9538303672155&tin=02508201610067®Number=0000000000092660&sum=30000 [15:34:28]written 0, free lines is 4095 [15:34:28]OFD Sender: Processing packet 118517 [packets to send 86, broken 85] [15:34:28]ProducePacketName [15:34:28]name=ofd_packets/00118517 [15:34:28]OFD Sender: To server: pG, [15:34:28]CommunicateWithHost lk.salyk.kg:30040 [15:34:28]ConnectInit lk.salyk.kg [15:34:28]Connected sock=10 [15: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 39 33 39 0F 01 00 00 F3 29 07 01 81 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 03 65 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F5 CE 01 00 35 04 06 00 08 AC CF 33 BF 5B 23 C4 D3 59 01 59 A4 79 [15: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 39 33 39 4F 00 00 00 DB 6B 47 00 F8 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 39 33 39 10 04 04 00 F5 CE 01 00 F4 03 04 00 93 12 A6 66 B6 04 01 00 00 C7 3D 17 2E 50 CA 49 48 [15:34:28]CommunicateWithHost err = 0 [15:34:28]CheckOFDResponse [15:34:28]1017 (14) - 77093643461234 [15:34:28]1041 (16) - 0000000000874939 [15:34:28]1040 (4) - 118517 [15:34:28]1012 (4) - 28.07.2024 09:42 [15:34:28]1206 (1) - 0 [15:34:28]OFD Sender: Remove packet 118517 [15:34:28]ProducePacketName [15:34:28]name=ofd_packets/00118517 [15:34:28]NVStorageDeleteData [15:34:28]Write to MH i2c: 01 00 00 6D 06 73 [15:34:28]Write i2c OK [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: 01 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: 01 07 00 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: 01 07 00 6D 06 00 00 00 00 00 DC 0C 62 [15:34:28]RasterBufferAndPrint [15:34:28]line [15:34:28]line [15:34:28]line [15:34:28]line [15:34:28]line [15:34:28]written 0, free lines is 3298 [15:34:28]MH_Cut [15:34:28]Write to MH i2c: D1 01 00 74 06 01 4C [15:34:28]Write i2c OK [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: D1 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: D1 01 00 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: D1 01 00 74 06 00 4B [15:34:28]Write to MH i2c: 01 00 00 75 06 7B [15:34:28]Write i2c OK [15:34:28]MH_I2C_Read... [15:34:29]OFD Sender: No OFD packet to send [15:34:29]*** Cut start [15:34:29]*** Partial cut [15:34:29]*** CUTSNS_PIN = 1 [15:34:29]*** CUTSNS_PIN = 0 [15:34:29]*** Brake cut motor [15:34:30]Read from MH i2c: 01 [15:34:30]MH_I2C_Read... [15:34:30]*** Stop cut motor [15:34:30]*** Cut end [15:34:30]Read from MH i2c: 01 07 00 [15:34:30]MH_I2C_Read... [15:34:30]Read from MH i2c: 01 07 00 75 06 00 00 00 00 00 FF 0F 90 [15:34:30]process_action close_receipt done [15:34:30]requested_data is exist [15:34:30]produce_requested_data [15:34:30]requested_item fm.sn is exist - process it [15:34:30]wFMCommunicate request_size=4 [15:34:30]MH_SAM_APDU [15:34:30]CAPDU: 80 11 00 00 [15:34:30]Write to MH i2c: E2 08 00 76 06 80 11 00 00 00 00 00 00 F6 [15:34:30]Write i2c OK [15:34:30]MH_I2C_Read... [15:34:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:30]Read from MH i2c: E2 [15:34:30]MH_I2C_Read... [15:34:30]Read from MH i2c: E2 17 00 [15:34:30]MH_I2C_Read... [15:34:30]Read from MH i2c: E2 17 00 76 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 51 [15:34:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:34:30]wFMCommunicate OK [15:34:30]requested_item fd.num is exist - process it [15:34:30]SAM_PROTO_GetFieldsCounters [15:34:30]wFMCommunicate request_size=4 [15:34:30]MH_SAM_APDU [15:34:30]CAPDU: 80 13 00 00 [15:34:30]Write to MH i2c: E2 08 00 77 06 80 13 00 00 00 00 00 00 F9 [15:34:30]Write i2c OK [15:34:30]MH_I2C_Read... [15:34:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:30]Read from MH i2c: E2 [15:34:30]MH_I2C_Read... [15:34:30]Read from MH i2c: E2 62 00 [15:34:30]MH_I2C_Read... [15:34:30]Read from MH i2c: E2 62 00 77 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F5 CE 01 00 0E 04 04 00 B1 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 C4 [15: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F5 CE 01 00 0E 04 04 00 B1 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 [15:34:30]wFMCommunicate OK [15:34:30]SAM_PROTO_GetFieldsCounters done [15:34:30]requested_item shift.num is exist - process it [15:34:30]requested_item shift.opened is exist - process it [15:34:30]req_shift_opened [15:34:30]FM_GetShiftState [15:34:30]SAM_PROTO_GetShiftState [15:34:30]wFMCommunicate request_size=4 [15:34:30]MH_SAM_APDU [15:34:30]CAPDU: 80 13 01 00 [15:34:30]Write to MH i2c: E2 08 00 78 06 80 13 01 00 00 00 00 00 FB [15:34:30]Write i2c OK [15:34:30]MH_I2C_Read... [15:34:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:30]Read from MH i2c: E2 [15:34:30]MH_I2C_Read... [15:34:30]Read from MH i2c: E2 0E 00 [15:34:30]MH_I2C_Read... [15:34:30]Read from MH i2c: E2 0E 00 78 06 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 D2 [15:34:30]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:34:30]wFMCommunicate OK [15:34:30]SAM_PROTO_GetShiftState done [15:34:30]FM_GetShiftState done [15:34:30]req_shift_opened done [15:34:30]requested_item shift.open_date is exist - process it [15:34:30]req_shift_open_date [15:34:30]req_shift_open_date done [15:34:30]produce_requested_data done [15:34:30]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118517,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [15:34:30]process_action_free close_receipt [15:34:30]json_value_free [15:34:30]json_value_free done [15:34:30]process_json_proto returns [15:34:30]Send response to host [15:34:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118517,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [15:34:30]free response buf [15:34:30]execute_script done [15:34:30]execute_script returns [15:34:30]free content buf [15:34:30]Sock 9.Close socket [15:34:30]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [15:42:54]OFD Sender: No OFD packet to send [15:42:59]OFD Sender: No OFD packet to send [15:43:04]OFD Sender: No OFD packet to send [15:43:09]OFD Sender: No OFD packet to send [15:43:14]OFD Sender: No OFD packet to send [15:43:19]OFD Sender: No OFD packet to send [15:43:24]OFD Sender: No OFD packet to send [15:43:29]OFD Sender: No OFD packet to send [15:43:34]OFD Sender: No OFD packet to send [15:43:39]OFD Sender: No OFD packet to send [15:43:44]OFD Sender: No OFD packet to send [15:43:49]OFD Sender: No OFD packet to send [15:43:54]OFD Sender: No OFD packet to send [15:43:59]OFD Sender: No OFD packet to send [15:44:04]OFD Sender: No OFD packet to send [15:44:09]OFD Sender: No OFD packet to send [15:44:14]OFD Sender: No OFD packet to send [15:44:19]OFD Sender: No OFD packet to send [15:44:24]OFD Sender: No OFD packet to send [15:44:29]OFD Sender: No OFD packet to send [15:44:34]OFD Sender: No OFD packet to send [15:44:39]OFD Sender: No OFD packet to send [15:44:44]OFD Sender: No OFD packet to send [15:44:49]OFD Sender: No OFD packet to send [15:44:54]OFD Sender: No OFD packet to send [15:44:59]OFD Sender: No OFD packet to send [15:45:04]OFD Sender: No OFD packet to send [15:45:09]OFD Sender: No OFD packet to send [15:45:14]OFD Sender: No OFD packet to send [15:45:19]OFD Sender: No OFD packet to send [15:45:24]OFD Sender: No OFD packet to send [15:45:29]OFD Sender: No OFD packet to send [15:45:34]OFD Sender: No OFD packet to send [15:45:39]OFD Sender: No OFD packet to send [15:45:44]OFD Sender: No OFD packet to send [15:45:49]OFD Sender: No OFD packet to send [15:45:55]OFD Sender: No OFD packet to send [15:46:00]OFD Sender: No OFD packet to send [15:46:05]OFD Sender: No OFD packet to send [15:46:10]OFD Sender: No OFD packet to send [15:46:15]OFD Sender: No OFD packet to send [15:46:20]OFD Sender: No OFD packet to send [15:46:25]OFD Sender: No OFD packet to send [15:46:30]OFD Sender: No OFD packet to send [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:50]OFD Sender: No OFD packet to send [15:46:55]OFD Sender: No OFD packet to send [15:47:00]OFD Sender: No OFD packet to send [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:20]OFD Sender: No OFD packet to send [15:47:25]OFD Sender: No OFD packet to send [15:47:30]OFD Sender: No OFD packet to send [15:47:35]OFD Sender: No OFD packet to send [15:47:40]OFD Sender: No OFD packet to send [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:05]OFD Sender: No OFD packet to send [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]accept exits with 7 [15:50:45]New connection [15:50:45]New thread 3067383140 created [15:50:45]Thread 3067239780 joined [15:50:45]Waiting for new connection... [15:50:45] Sock 7.Parse request [15:50:45]Sock 7.Check first char [15:50:45]Sock 7.First char is OK [15:50:45]request: POST /json_proto HTTP/1.0 [15:50:45]Method: POST [15:50:45]URL: /json_proto [15:50:45]Method is POST - this is cgi request [15:50:45]url: /json_proto [15:50:45]query_string will be loaded in cgi processing [15:50:45]execute_cgi json_proto POST (null) [15:50:45]execute_cgi path=json_proto method=POST [15:50:45]POST find Content-Length [15:50:45]Host: 172.17.45.7:8080 [15:50:45]Content-Length: 682 [15:50:45]Content-Type: application/json [15:50:45] [15:50:45]POST finish read [15:50:45]Found Content-Length = 682 [15:50:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 19.180, "sum" : 1300.40, "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" ] } } [15:50:45]execute_script... [15:50: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)949389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 19.180, "sum" : 1300.40, "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" ] } } [15:50:45]POST & json_proto [15:50:45]process_json_proto [15:50:45]json parsed OK: [15:50:45]protocol is kg_v1.0 [15:50:45]action value=close_receipt [15:50:45]process_action close_receipt [15:50:45]cmd_close_receipt [15:50:45]MH_GetDate [15:50:45]Write to MH i2c: F0 00 00 79 06 6E [15:50:45]Write i2c OK [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: F0 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: F0 09 00 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: F0 09 00 79 06 00 D6 68 A6 66 90 0F 3E 66 04 [15:50:45]GetLastDocTimeStamp 1722180867 [15:50:45]current date 1722181846 [15:50:45]FM_GetShiftState [15:50:45]SAM_PROTO_GetShiftState [15:50:45]wFMCommunicate request_size=4 [15:50:45]MH_SAM_APDU [15:50:45]CAPDU: 80 13 01 00 [15:50:45]Write to MH i2c: E2 08 00 7A 06 80 13 01 00 00 00 00 00 FD [15:50:45]Write i2c OK [15:50:45]MH_I2C_Read... [15:50:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:45]Read from MH i2c: E2 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: E2 0E 00 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: E2 0E 00 7A 06 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 D4 [15:50:45]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:50:45]wFMCommunicate OK [15:50:45]SAM_PROTO_GetShiftState done [15:50:45]FM_GetShiftState done [15:50:45]opened in 1722125364 [15:50:45]opened+sec_in_day 1722211764 [15:50:45]quantity*price = 130040 [15:50:45]sum+1 = 130041 [15:50:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.10 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 187 28.07.2024 15:50 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118518 ФПД: 179833344481255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T155046&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118518&fm=179833344481255&tin=02508201610067®Number=0000000000092660&sum=130000 [15:50:46]StoreToDocumentArchive [15:50:46]shift 433 fd 118518 [15:50:46]save to /storage/0433/doc_00118518 [15:50:46]save last doc name /storage/0433/doc_00118518 to /storage/kkm_last_doc_name [15:50:46]save OK [15:50:46]Clear old archive folders... [15:50:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:50:46]tlvbuf is 01E62910 [15:50:46]SAM_PROTO_ClearQueue [15:50:46]wFMCommunicate request_size=4 [15:50:46]MH_SAM_APDU [15:50:46]CAPDU: 80 09 00 00 [15:50:46]Write to MH i2c: E2 08 00 87 06 80 09 00 00 00 00 00 00 FF [15:50:46]Write i2c OK [15:50:46]MH_I2C_Read... [15:50:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:46]Read from MH i2c: E2 [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: E2 03 00 [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: E2 03 00 87 06 00 90 00 01 [15:50:46]RAPDU: 90 00 [15:50:46]wFMCommunicate OK [15:50:46]SAM_PROTO_ClearQueue done [15:50:46]KKMCreateOFDPacket [15:50:46]OFDProtocolAddRootSTLVToBuf [15:50:46]FM_MakeSignedData [15:50:46]FM_MakeSignedData [15:50:46]SAM_PROTO_SignData [15:50:46]wFMCommunicate request_size=4 [15:50:46]MH_SAM_APDU [15:50:46]CAPDU: 80 0D 01 02 [15:50:46]Write to MH i2c: E2 08 00 88 06 80 0D 01 02 00 00 00 00 07 [15:50:46]Write i2c OK [15:50:46]MH_I2C_Read... [15:50:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:46]Read from MH i2c: E2 [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: E2 03 00 [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: E2 03 00 88 06 00 90 00 02 [15:50:46]RAPDU: 90 00 [15:50:46]wFMCommunicate OK [15:50:46]wFMCommunicate request_size=255 [15:50:46]MH_SAM_APDU [15:50: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 34 FF 03 08 00 03 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 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 F2 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 BB 00 00 00 F4 03 04 00 D6 68 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F6 CE 01 00 35 04 06 00 A3 [15:50:46]Write to MH i2c: E2 02 01 89 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 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 F2 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 BB 00 00 00 F4 03 04 00 D6 68 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F6 CE 01 00 35 04 06 00 A3 00 00 37 [15:50:46]Write i2c OK [15:50:46]MH_I2C_Read... [15:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:46]Read from MH i2c: E2 [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: E2 03 00 [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: E2 03 00 89 06 00 90 00 03 [15:50:46]RAPDU: 90 00 [15:50:46]wFMCommunicate OK [15:50:46]wFMCommunicate request_size=10 [15:50:46]MH_SAM_APDU [15:50:46]CAPDU: 80 0D 02 02 05 8E B6 9D D7 E7 [15:50:46]Write to MH i2c: E2 0D 00 8A 06 80 0D 02 02 05 00 8E B6 9D D7 E7 00 00 B3 [15:50:46]Write i2c OK [15:50:46]MH_I2C_Read... [15:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:46]Read from MH i2c: E2 [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: E2 03 00 [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: E2 03 00 8A 06 00 90 00 04 [15:50:46]RAPDU: 90 00 [15:50:46]wFMCommunicate OK [15:50:46]wFMCommunicate request_size=4 [15:50:46]MH_SAM_APDU [15:50:46]CAPDU: 80 0D 03 02 [15:50:46]Write to MH i2c: E2 08 00 8B 06 80 0D 03 02 00 00 00 00 0C [15:50:46]Write i2c OK [15:50:46]MH_I2C_Read... [15:50:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:46]Read from MH i2c: E2 [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: E2 0B 00 [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: E2 0B 00 8B 06 00 ED 42 28 2F D9 6B 9D 9F 90 00 13 [15:50:46]RAPDU: ED 42 28 2F D9 6B 9D 9F 90 00 [15:50:46]wFMCommunicate OK [15:50:46]SAM_PROTO_SignData done [15:50:46]FM_MakeSignedData done [15:50:46]CreateOFDProtocolMessage [15:50:46]wFMCommunicate request_size=4 [15:50:46]MH_SAM_APDU [15:50:46]CAPDU: 80 11 00 00 [15:50:46]Write to MH i2c: E2 08 00 8C 06 80 11 00 00 00 00 00 00 0C [15:50:46]Write i2c OK [15:50:46]MH_I2C_Read... [15:50:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:46]Read from MH i2c: E2 [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: E2 17 00 [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: E2 17 00 8C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 67 [15:50:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:50:46]wFMCommunicate OK [15:50:46]CreateOFDProtocolMessage done [15:50:46]OFDSenderStorePacket 118518 [15:50:46]StoreOFDPacket docnum=118518 [15:50:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7F D1 07 01 C6 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 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 F2 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 BB 00 00 00 F4 03 04 00 D6 68 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F6 CE 01 00 35 04 06 00 A3 8E B6 9D D7 E7 ED 42 28 2F D9 6B 9D 9F [15:50:46]CheckFolder [15:50:46]dirname=/storage/ofd_packets [15:50:46]CheckFolder done [15:50:46]ProducePacketName [15:50:46]name=ofd_packets/00118518 [15:50:46]NVStorageSaveData ofd_packets/00118518 [15:50:46]File name is /storage/ofd_packets/00118518 [15:50:46]Write 301 bytes [15:50:46]NVStorageSaveData done [15:50:46]OFDSenderStorePacket done [15:50:46]KKMCreateOFDPacket done [15:50:46]NVStorageSaveData kkm_last_timestamp [15:50:46]File name is /storage/kkm_last_timestamp [15:50:46]Write 4 bytes [15:50:46]NVStorageSaveData done [15:50:46]OFD Sender: Processing packet 118518 [packets to send 86, broken 85] [15:50:46]ProducePacketName [15:50:46]name=ofd_packets/00118518 [15:50:46]OFD Sender: To server: pG, [15:50:46]CommunicateWithHost lk.salyk.kg:30040 [15:50:46]ConnectInit lk.salyk.kg [15:50:46]ExternCall_PrintAddStr [15:50:46]wPrintStart [15:50:46]Write to MH i2c: 01 00 00 8D 06 93 [15:50:46]Write i2c OK [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: 01 [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: 01 07 00 [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: 01 07 00 8D 06 00 00 00 00 00 FF 0F A8 [15:50:46]RasterBufferAndPrint [15:50:46]line Счет N : (1)949389 [15:50:46]line ИНН: 02508201610067 [15:50:46]line Контрольно-Кассовый Чек [15:50:46]line ПРОДАЖА [15:50:46]line ТРК (МРК, ГНК) : 51 [15:50:46]line Товар: 2710124130 [15:50:46]line Аи-92-К-4 [15:50:46]line 19.180 * 67.80 [15:50:46]line = 1300.40 [15:50:46]line НДС 12% НСП 1% [15:50:46]line > о реализуемом товаре [15:50:46]line ОКРУГЛЕНИЕ: -0.40 [15:50:46]line ИТОГО: 1300.00 [15:50:46]line Внесено: 1300.00 [15:50:46]line СДАЧА: 0.00 [15:50:46]line НСП 1% : 11.51 [15:50:46]line НДС 12% : 138.10 [15:50:46]line Наличными: 1300.00 [15:50:46]line Безнал.: 0.00 [15:50:46]line Место: АЗС № 134 "Партнер Нефть" [15:50:46]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:50:46]line СНО: Общий режим [15:50:46]line Чек 187 28.07.2024 15:50 [15:50:46]line Смена: 433 ФФД: 1.0 [15:50:46]line ЗНМ: 0300000044 [15:50:46]line РНМ: 0000000000092660 [15:50:46]line Версия ККМ: 001 [15:50:46]line ФМ: 0000000000874939 [15:50:46]line ФД: 118518 [15:50:46]line ФПД: 179833344481255 [15:50:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T155046&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118518&fm=179833344481255&tin=02508201610067®Number=0000000000092660&sum=130000 [15:50:47]Connected sock=11 [15:50: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 39 33 39 0F 01 00 00 7F D1 07 01 C6 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 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 F2 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 BB 00 00 00 F4 03 04 00 D6 68 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F6 CE 01 00 35 04 06 00 A3 8E B6 9D D7 E7 ED 42 28 2F D9 6B 9D 9F [15:50:47]written 0, free lines is 4095 [15:50:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 89 93 47 00 12 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F6 CE 01 00 F4 03 04 00 66 16 A6 66 B6 04 01 00 00 7D 5E 20 22 7D FB 41 24 [15:50:47]CommunicateWithHost err = 0 [15:50:47]CheckOFDResponse [15:50:47]1017 (14) - 77093643461234 [15:50:47]1041 (16) - 0000000000874939 [15:50:47]1040 (4) - 118518 [15:50:47]1012 (4) - 28.07.2024 09:59 [15:50:47]1206 (1) - 0 [15:50:47]OFD Sender: Remove packet 118518 [15:50:47]ProducePacketName [15:50:47]name=ofd_packets/00118518 [15:50:47]NVStorageDeleteData [15:50:47]Write to MH i2c: 01 00 00 B7 06 BD [15:50:47]Write i2c OK [15:50:47]MH_I2C_Read... [15:50:47]Read from MH i2c: 01 [15:50:47]MH_I2C_Read... [15:50:47]Read from MH i2c: 01 07 00 [15:50:47]MH_I2C_Read... [15:50:47]Read from MH i2c: 01 07 00 B7 06 00 00 00 00 00 DE 0C AE [15:50:47]RasterBufferAndPrint [15:50:47]line [15:50:47]line [15:50:47]line [15:50:47]line [15:50:47]line [15:50:47]written 0, free lines is 3300 [15:50:47]MH_Cut [15:50:47]Write to MH i2c: D1 01 00 BE 06 01 96 [15:50:47]Write i2c OK [15:50:47]MH_I2C_Read... [15:50:47]Read from MH i2c: D1 [15:50:47]MH_I2C_Read... [15:50:47]Read from MH i2c: D1 01 00 [15:50:47]MH_I2C_Read... [15:50:47]Read from MH i2c: D1 01 00 BE 06 00 95 [15:50:47]Write to MH i2c: 01 00 00 BF 06 C5 [15:50:47]Write i2c OK [15:50:47]MH_I2C_Read... [15:50:47]OFD Sender: No OFD packet to send [15:50:48]*** Cut start [15:50:48]*** Partial cut [15:50:48]*** CUTSNS_PIN = 1 [15:50:48]*** CUTSNS_PIN = 0 [15:50:48]*** Brake cut motor [15:50:49]Read from MH i2c: 01 [15:50:49]MH_I2C_Read... [15:50:49]*** Stop cut motor [15:50:49]*** Cut end [15:50:49]Read from MH i2c: 01 07 00 [15:50:49]MH_I2C_Read... [15:50:49]Read from MH i2c: 01 07 00 BF 06 00 00 00 00 00 FF 0F DA [15:50:49]process_action close_receipt done [15:50:49]requested_data is exist [15:50:49]produce_requested_data [15:50:49]requested_item fm.sn is exist - process it [15:50:49]wFMCommunicate request_size=4 [15:50:49]MH_SAM_APDU [15:50:49]CAPDU: 80 11 00 00 [15:50:49]Write to MH i2c: E2 08 00 C0 06 80 11 00 00 00 00 00 00 40 [15:50:49]Write i2c OK [15:50:49]MH_I2C_Read... [15:50:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:49]Read from MH i2c: E2 [15:50:49]MH_I2C_Read... [15:50:49]Read from MH i2c: E2 17 00 [15:50:49]MH_I2C_Read... [15:50:49]Read from MH i2c: E2 17 00 C0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9B [15:50:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:50:49]wFMCommunicate OK [15:50:49]requested_item fd.num is exist - process it [15:50:49]SAM_PROTO_GetFieldsCounters [15:50:49]wFMCommunicate request_size=4 [15:50:49]MH_SAM_APDU [15:50:49]CAPDU: 80 13 00 00 [15:50:49]Write to MH i2c: E2 08 00 C1 06 80 13 00 00 00 00 00 00 43 [15:50:49]Write i2c OK [15:50:49]MH_I2C_Read... [15:50:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:49]Read from MH i2c: E2 [15:50:49]MH_I2C_Read... [15:50:49]Read from MH i2c: E2 62 00 [15:50:49]MH_I2C_Read... [15:50:49]Read from MH i2c: E2 62 00 C1 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F6 CE 01 00 0E 04 04 00 B1 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 [15:50: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F6 CE 01 00 0E 04 04 00 B1 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 [15:50:49]wFMCommunicate OK [15:50:49]SAM_PROTO_GetFieldsCounters done [15:50:49]requested_item shift.num is exist - process it [15:50:49]requested_item shift.opened is exist - process it [15:50:49]req_shift_opened [15:50:49]FM_GetShiftState [15:50:49]SAM_PROTO_GetShiftState [15:50:49]wFMCommunicate request_size=4 [15:50:49]MH_SAM_APDU [15:50:49]CAPDU: 80 13 01 00 [15:50:49]Write to MH i2c: E2 08 00 C2 06 80 13 01 00 00 00 00 00 45 [15:50:49]Write i2c OK [15:50:49]MH_I2C_Read... [15:50:49]Read from MH i2c: E2 [15:50:49]MH_I2C_Read... [15:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:49]Read from MH i2c: E2 0E 00 [15:50:49]MH_I2C_Read... [15:50:49]Read from MH i2c: E2 0E 00 C2 06 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 1C [15:50:49]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:50:49]wFMCommunicate OK [15:50:49]SAM_PROTO_GetShiftState done [15:50:49]FM_GetShiftState done [15:50:49]req_shift_opened done [15:50:49]requested_item shift.open_date is exist - process it [15:50:49]req_shift_open_date [15:50:49]req_shift_open_date done [15:50:49]produce_requested_data done [15:50:49]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118518,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [15:50:49]process_action_free close_receipt [15:50:49]json_value_free [15:50:49]json_value_free done [15:50:49]process_json_proto returns [15:50:49]Send response to host [15:50:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118518,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [15:50:49]free response buf [15:50:49]execute_script done [15:50:49]execute_script returns [15:50:49]free content buf [15:50:49]Sock 7.Close socket [15:50:49]Sock 7.Thread stoped [15:50:52]OFD Sender: No OFD packet to send [15:50:57]OFD Sender: No OFD packet to send [15:51:02]OFD Sender: No OFD packet to send [15:51:07]OFD Sender: No OFD packet to send [15:51:12]OFD Sender: No OFD packet to send [15:51:18]OFD Sender: No OFD packet to send [15:51:23]OFD Sender: No OFD packet to send [15:51:28]OFD Sender: No OFD packet to send [15:51:33]OFD Sender: No OFD packet to send [15:51:38]OFD Sender: No OFD packet to send [15:51:43]OFD Sender: No OFD packet to send [15:51:48]OFD Sender: No OFD packet to send [15:51:53]OFD Sender: No OFD packet to send [15:51:58]OFD Sender: No OFD packet to send [15:52:03]OFD Sender: No OFD packet to send [15:52:08]OFD Sender: No OFD packet to send [15:52:13]OFD Sender: No OFD packet to send [15:52:18]OFD Sender: No OFD packet to send [15:52:23]OFD Sender: No OFD packet to send [15:52:28]OFD Sender: No OFD packet to send [15:52:33]OFD Sender: No OFD packet to send [15:52:38]OFD Sender: No OFD packet to send [15:52:43]OFD Sender: No OFD packet to send [15:52:48]OFD Sender: No OFD packet to send [15:52:53]OFD Sender: No OFD packet to send [15:52:58]OFD Sender: No OFD packet to send [15:53:03]OFD Sender: No OFD packet to send [15:53:08]OFD Sender: No OFD packet to send [15:53:13]OFD Sender: No OFD packet to send [15:53:18]OFD Sender: No OFD packet to send [15:53:23]OFD Sender: No OFD packet to send [15:53:28]OFD Sender: No OFD packet to send [15:53:33]OFD Sender: No OFD packet to send [15:53:38]OFD Sender: No OFD packet to send [15:53:43]OFD Sender: No OFD packet to send [15:53:48]OFD Sender: No OFD packet to send [15:53:53]OFD Sender: No OFD packet to send [15:53:58]OFD Sender: No OFD packet to send [15:54:03]OFD Sender: No OFD packet to send [15:54:08]OFD Sender: No OFD packet to send [15:54:13]OFD Sender: No OFD packet to send [15:54:18]OFD Sender: No OFD packet to send [15:54:23]OFD Sender: No OFD packet to send [15:54:28]OFD Sender: No OFD packet to send [15:54:33]OFD Sender: No OFD packet to send [15:54:38]OFD Sender: No OFD packet to send [15:54:43]OFD Sender: No OFD packet to send [15:54:48]OFD Sender: No OFD packet to send [15:54:53]OFD Sender: No OFD packet to send [15:54:58]OFD Sender: No OFD packet to send [15:55:03]OFD Sender: No OFD packet to send [15:55:08]OFD Sender: No OFD packet to send [15:55:13]OFD Sender: No OFD packet to send [15:55:18]OFD Sender: No OFD packet to send [15:55:23]OFD Sender: No OFD packet to send [15:55:28]OFD Sender: No OFD packet to send [15:55:33]OFD Sender: No OFD packet to send [15:55:37]accept exits with 9 [15:55:37]New connection [15:55:37]New thread 3067239780 created [15:55:37]Thread 3067383140 joined [15:55:37]Waiting for new connection... [15:55:37] Sock 9.Parse request [15:55:37]Sock 9.Check first char [15:55:37]Sock 9.First char is OK [15:55:37]request: POST /json_proto HTTP/1.0 [15:55:37]Method: POST [15:55:37]URL: /json_proto [15:55:37]Method is POST - this is cgi request [15:55:37]url: /json_proto [15:55:37]query_string will be loaded in cgi processing [15:55:37]execute_cgi json_proto POST (null) [15:55:37]execute_cgi path=json_proto method=POST [15:55:37]POST find Content-Length [15:55:37]Host: 172.17.45.7:8080 [15:55:37]Content-Length: 682 [15:55:37]Content-Type: application/json [15:55:37] [15:55:37]POST finish read [15:55:37]Found Content-Length = 682 [15:55:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:37]execute_script... [15:55: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)949391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:37]POST & json_proto [15:55:37]process_json_proto [15:55:37]json parsed OK: [15:55:37]protocol is kg_v1.0 [15:55:37]action value=close_receipt [15:55:37]process_action close_receipt [15:55:37]cmd_close_receipt [15:55:37]MH_GetDate [15:55:37]Write to MH i2c: F0 00 00 C3 06 B8 [15:55:37]Write i2c OK [15:55:37]MH_I2C_Read... [15:55:37]Read from MH i2c: F0 [15:55:37]MH_I2C_Read... [15:55:37]Read from MH i2c: F0 09 00 [15:55:37]MH_I2C_Read... [15:55:37]Read from MH i2c: F0 09 00 C3 06 00 FA 69 A6 66 90 0F 3E 66 73 [15:55:37]GetLastDocTimeStamp 1722181846 [15:55:37]current date 1722182138 [15:55:37]FM_GetShiftState [15:55:37]SAM_PROTO_GetShiftState [15:55:37]wFMCommunicate request_size=4 [15:55:37]MH_SAM_APDU [15:55:37]CAPDU: 80 13 01 00 [15:55:37]Write to MH i2c: E2 08 00 C4 06 80 13 01 00 00 00 00 00 47 [15:55:37]Write i2c OK [15:55:37]MH_I2C_Read... [15:55:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:37]Read from MH i2c: E2 [15:55:37]MH_I2C_Read... [15:55:37]Read from MH i2c: E2 0E 00 [15:55:37]MH_I2C_Read... [15:55:37]Read from MH i2c: E2 0E 00 C4 06 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 1E [15:55:37]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:55:37]wFMCommunicate OK [15:55:37]SAM_PROTO_GetShiftState done [15:55:37]FM_GetShiftState done [15:55:37]opened in 1722125364 [15:55:37]opened+sec_in_day 1722211764 [15:55:37]quantity*price = 100005 [15:55:37]sum+1 = 100006 [15:55:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 188 28.07.2024 15:55 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118519 ФПД: 114640574702453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T155538&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118519&fm=114640574702453&tin=02508201610067®Number=0000000000092660&sum=100000 [15:55:38]StoreToDocumentArchive [15:55:38]shift 433 fd 118519 [15:55:38]save to /storage/0433/doc_00118519 [15:55:38]save last doc name /storage/0433/doc_00118519 to /storage/kkm_last_doc_name [15:55:38]save OK [15:55:38]Clear old archive folders... [15:55:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:55:38]tlvbuf is 01E73940 [15:55:38]SAM_PROTO_ClearQueue [15:55:38]wFMCommunicate request_size=4 [15:55:38]MH_SAM_APDU [15:55:38]CAPDU: 80 09 00 00 [15:55:38]Write to MH i2c: E2 08 00 D1 06 80 09 00 00 00 00 00 00 49 [15:55:38]Write i2c OK [15:55:38]MH_I2C_Read... [15:55:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:55:38]Read from MH i2c: E2 [15:55:38]MH_I2C_Read... [15:55:38]Read from MH i2c: E2 03 00 [15:55:38]MH_I2C_Read... [15:55:38]Read from MH i2c: E2 03 00 D1 06 00 90 00 4B [15:55:38]RAPDU: 90 00 [15:55:38]wFMCommunicate OK [15:55:38]SAM_PROTO_ClearQueue done [15:55:38]KKMCreateOFDPacket [15:55:38]OFDProtocolAddRootSTLVToBuf [15:55:38]FM_MakeSignedData [15:55:38]FM_MakeSignedData [15:55:38]SAM_PROTO_SignData [15:55:38]wFMCommunicate request_size=4 [15:55:38]MH_SAM_APDU [15:55:38]CAPDU: 80 0D 01 02 [15:55:38]Write to MH i2c: E2 08 00 D2 06 80 0D 01 02 00 00 00 00 51 [15:55:38]Write i2c OK [15:55:38]MH_I2C_Read... [15:55:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:55:38]Read from MH i2c: E2 [15:55:38]MH_I2C_Read... [15:55:38]Read from MH i2c: E2 03 00 [15:55:38]MH_I2C_Read... [15:55:38]Read from MH i2c: E2 03 00 D2 06 00 90 00 4C [15:55:38]RAPDU: 90 00 [15:55:38]wFMCommunicate OK [15:55:38]wFMCommunicate request_size=255 [15:55:38]MH_SAM_APDU [15:55: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 FA 69 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F7 CE 01 00 35 04 06 00 68 [15:55:38]Write to MH i2c: E2 02 01 D3 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 FA 69 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F7 CE 01 00 35 04 06 00 68 00 00 6F [15:55:38]Write i2c OK [15:55:38]MH_I2C_Read... [15:55:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:39]Read from MH i2c: E2 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: E2 03 00 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: E2 03 00 D3 06 00 90 00 4D [15:55:39]RAPDU: 90 00 [15:55:39]wFMCommunicate OK [15:55:39]wFMCommunicate request_size=10 [15:55:39]MH_SAM_APDU [15:55:39]CAPDU: 80 0D 02 02 05 43 D6 BB 63 75 [15:55:39]Write to MH i2c: E2 0D 00 D4 06 80 0D 02 02 05 00 43 D6 BB 63 75 00 00 0A [15:55:39]Write i2c OK [15:55:39]MH_I2C_Read... [15:55:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:39]Read from MH i2c: E2 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: E2 03 00 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: E2 03 00 D4 06 00 90 00 4E [15:55:39]RAPDU: 90 00 [15:55:39]wFMCommunicate OK [15:55:39]wFMCommunicate request_size=4 [15:55:39]MH_SAM_APDU [15:55:39]CAPDU: 80 0D 03 02 [15:55:39]Write to MH i2c: E2 08 00 D5 06 80 0D 03 02 00 00 00 00 56 [15:55:39]Write i2c OK [15:55:39]MH_I2C_Read... [15:55:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:55:39]Read from MH i2c: E2 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: E2 0B 00 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: E2 0B 00 D5 06 00 84 2F D9 AE C7 F9 9A 50 90 00 3B [15:55:39]RAPDU: 84 2F D9 AE C7 F9 9A 50 90 00 [15:55:39]wFMCommunicate OK [15:55:39]SAM_PROTO_SignData done [15:55:39]FM_MakeSignedData done [15:55:39]CreateOFDProtocolMessage [15:55:39]wFMCommunicate request_size=4 [15:55:39]MH_SAM_APDU [15:55:39]CAPDU: 80 11 00 00 [15:55:39]Write to MH i2c: E2 08 00 D6 06 80 11 00 00 00 00 00 00 56 [15:55:39]Write i2c OK [15:55:39]MH_I2C_Read... [15:55:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:39]Read from MH i2c: E2 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: E2 17 00 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: E2 17 00 D6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B1 [15:55:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:55:39]wFMCommunicate OK [15:55:39]CreateOFDProtocolMessage done [15:55:39]OFDSenderStorePacket 118519 [15:55:39]StoreOFDPacket docnum=118519 [15:55:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AB 1E 07 01 60 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 FA 69 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F7 CE 01 00 35 04 06 00 68 43 D6 BB 63 75 84 2F D9 AE C7 F9 9A 50 [15:55:39]CheckFolder [15:55:39]dirname=/storage/ofd_packets [15:55:39]CheckFolder done [15:55:39]ProducePacketName [15:55:39]name=ofd_packets/00118519 [15:55:39]NVStorageSaveData ofd_packets/00118519 [15:55:39]File name is /storage/ofd_packets/00118519 [15:55:39]Write 301 bytes [15:55:39]NVStorageSaveData done [15:55:39]OFDSenderStorePacket done [15:55:39]KKMCreateOFDPacket done [15:55:39]NVStorageSaveData kkm_last_timestamp [15:55:39]File name is /storage/kkm_last_timestamp [15:55:39]Write 4 bytes [15:55:39]NVStorageSaveData done [15:55:39]ExternCall_PrintAddStr [15:55:39]wPrintStart [15:55:39]Write to MH i2c: 01 00 00 D7 06 DD [15:55:39]Write i2c OK [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: 01 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: 01 07 00 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: 01 07 00 D7 06 00 00 00 00 00 FF 0F F2 [15:55:39]RasterBufferAndPrint [15:55:39]line Счет N : (1)949391 [15:55:39]line ИНН: 02508201610067 [15:55:39]line Контрольно-Кассовый Чек [15:55:39]line ПРОДАЖА [15:55:39]line ТРК (МРК, ГНК) : 51 [15:55:39]line Товар: 2710124130 [15:55:39]line Аи-92-К-4 [15:55:39]line 14.750 * 67.80 [15:55:39]line = 1000.05 [15:55:39]line НДС 12% НСП 1% [15:55:39]line > о реализуемом товаре [15:55:39]line ОКРУГЛЕНИЕ: -0.05 [15:55:39]line ИТОГО: 1000.00 [15:55:39]line Внесено: 1000.00 [15:55:39]line СДАЧА: 0.00 [15:55:39]line НСП 1% : 8.85 [15:55:39]line НДС 12% : 106.20 [15:55:39]line Наличными: 1000.00 [15:55:39]line Безнал.: 0.00 [15:55:39]line Место: АЗС № 134 "Партнер Нефть" [15:55:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:55:39]line СНО: Общий режим [15:55:39]line Чек 188 28.07.2024 15:55 [15:55:39]line Смена: 433 ФФД: 1.0 [15:55:39]line ЗНМ: 0300000044 [15:55:39]line РНМ: 0000000000092660 [15:55:39]line Версия ККМ: 001 [15:55:39]line ФМ: 0000000000874939 [15:55:39]line ФД: 118519 [15:55:39]line ФПД: 114640574702453 [15:55:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T155538&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118519&fm=114640574702453&tin=02508201610067®Number=0000000000092660&sum=100000 [15:55:39]written 0, free lines is 4095 [15:55:39]OFD Sender: Processing packet 118519 [packets to send 86, broken 85] [15:55:39]ProducePacketName [15:55:39]name=ofd_packets/00118519 [15:55:39]OFD Sender: To server: pG, [15:55:39]CommunicateWithHost lk.salyk.kg:30040 [15:55:39]ConnectInit lk.salyk.kg [15:55:39]Connected sock=11 [15:55: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 39 33 39 0F 01 00 00 AB 1E 07 01 60 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 FA 69 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F7 CE 01 00 35 04 06 00 68 43 D6 BB 63 75 84 2F D9 AE C7 F9 9A 50 [15:55:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 27 64 47 00 80 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F7 CE 01 00 F4 03 04 00 8A 17 A6 66 B6 04 01 00 00 F0 E5 E3 9F 04 F5 B4 87 [15:55:39]CommunicateWithHost err = 0 [15:55:39]CheckOFDResponse [15:55:39]1017 (14) - 77093643461234 [15:55:39]1041 (16) - 0000000000874939 [15:55:39]1040 (4) - 118519 [15:55:39]1012 (4) - 28.07.2024 10:03 [15:55:39]1206 (1) - 0 [15:55:39]OFD Sender: Remove packet 118519 [15:55:39]ProducePacketName [15:55:39]name=ofd_packets/00118519 [15:55:39]NVStorageDeleteData [15:55:39]Write to MH i2c: 01 00 00 01 07 08 [15:55:39]Write i2c OK [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: 01 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: 01 07 00 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: 01 07 00 01 07 00 00 00 00 00 DD 0C F8 [15:55:39]RasterBufferAndPrint [15:55:39]line [15:55:39]line [15:55:39]line [15:55:39]line [15:55:39]line [15:55:39]written 0, free lines is 3300 [15:55:39]MH_Cut [15:55:39]Write to MH i2c: D1 01 00 08 07 01 E1 [15:55:39]Write i2c OK [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: D1 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: D1 01 00 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: D1 01 00 08 07 00 E0 [15:55:39]Write to MH i2c: 01 00 00 09 07 10 [15:55:39]Write i2c OK [15:55:39]MH_I2C_Read... [15:55:40]OFD Sender: No OFD packet to send [15:55:40]*** Cut start [15:55:40]*** Partial cut [15:55:40]*** CUTSNS_PIN = 1 [15:55:40]*** CUTSNS_PIN = 0 [15:55:40]*** Brake cut motor [15:55:41]Read from MH i2c: 01 [15:55:41]MH_I2C_Read... [15:55:41]*** Stop cut motor [15:55:41]*** Cut end [15:55:41]Read from MH i2c: 01 07 00 [15:55:41]MH_I2C_Read... [15:55:41]Read from MH i2c: 01 07 00 09 07 00 00 00 00 00 FF 0F 25 [15:55:41]process_action close_receipt done [15:55:41]requested_data is exist [15:55:41]produce_requested_data [15:55:41]requested_item fm.sn is exist - process it [15:55:41]wFMCommunicate request_size=4 [15:55:41]MH_SAM_APDU [15:55:41]CAPDU: 80 11 00 00 [15:55:41]Write to MH i2c: E2 08 00 0A 07 80 11 00 00 00 00 00 00 8B [15:55:41]Write i2c OK [15:55:41]MH_I2C_Read... [15:55:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:41]Read from MH i2c: E2 [15:55:41]MH_I2C_Read... [15:55:41]Read from MH i2c: E2 17 00 [15:55:41]MH_I2C_Read... [15:55:41]Read from MH i2c: E2 17 00 0A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E6 [15:55:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:55:41]wFMCommunicate OK [15:55:41]requested_item fd.num is exist - process it [15:55:41]SAM_PROTO_GetFieldsCounters [15:55:41]wFMCommunicate request_size=4 [15:55:41]MH_SAM_APDU [15:55:41]CAPDU: 80 13 00 00 [15:55:41]Write to MH i2c: E2 08 00 0B 07 80 13 00 00 00 00 00 00 8E [15:55:41]Write i2c OK [15:55:41]MH_I2C_Read... [15:55:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:41]Read from MH i2c: E2 [15:55:41]MH_I2C_Read... [15:55:41]Read from MH i2c: E2 62 00 [15:55:41]MH_I2C_Read... [15:55:41]Read from MH i2c: E2 62 00 0B 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F7 CE 01 00 0E 04 04 00 B1 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 61 [15:55:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F7 CE 01 00 0E 04 04 00 B1 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 [15:55:41]wFMCommunicate OK [15:55:41]SAM_PROTO_GetFieldsCounters done [15:55:41]requested_item shift.num is exist - process it [15:55:41]requested_item shift.opened is exist - process it [15:55:41]req_shift_opened [15:55:41]FM_GetShiftState [15:55:41]SAM_PROTO_GetShiftState [15:55:41]wFMCommunicate request_size=4 [15:55:41]MH_SAM_APDU [15:55:41]CAPDU: 80 13 01 00 [15:55:41]Write to MH i2c: E2 08 00 0C 07 80 13 01 00 00 00 00 00 90 [15:55:41]Write i2c OK [15:55:41]MH_I2C_Read... [15:55:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:41]Read from MH i2c: E2 [15:55:41]MH_I2C_Read... [15:55:41]Read from MH i2c: E2 0E 00 [15:55:41]MH_I2C_Read... [15:55:41]Read from MH i2c: E2 0E 00 0C 07 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 67 [15:55:41]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:55:41]wFMCommunicate OK [15:55:41]SAM_PROTO_GetShiftState done [15:55:41]FM_GetShiftState done [15:55:41]req_shift_opened done [15:55:41]requested_item shift.open_date is exist - process it [15:55:41]req_shift_open_date [15:55:41]req_shift_open_date done [15:55:41]produce_requested_data done [15:55:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118519,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [15:55:41]process_action_free close_receipt [15:55:41]json_value_free [15:55:41]json_value_free done [15:55:41]process_json_proto returns [15:55:41]Send response to host [15:55:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118519,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [15:55:41]free response buf [15:55:41]execute_script done [15:55:41]execute_script returns [15:55:41]free content buf [15:55:41]Sock 9.Close socket [15:55:41]Sock 9.Thread stoped [15:55:45]OFD Sender: No OFD packet to send [15:55:50]OFD Sender: No OFD packet to send [15:55:55]OFD Sender: No OFD packet to send [15:55:57]accept exits with 7 [15:55:57]New connection [15:55:57]New thread 3067383140 created [15:55:57]Thread 3067239780 joined [15:55:57]Waiting for new connection... [15:55:57] Sock 7.Parse request [15:55:57]Sock 7.Check first char [15:55:57]Sock 7.First char is OK [15:55:57]request: POST /json_proto HTTP/1.0 [15:55:57]Method: POST [15:55:57]URL: /json_proto [15:55:57]Method is POST - this is cgi request [15:55:57]url: /json_proto [15:55:57]query_string will be loaded in cgi processing [15:55:57]execute_cgi json_proto POST (null) [15:55:57]execute_cgi path=json_proto method=POST [15:55:57]POST find Content-Length [15:55:57]Host: 172.17.45.7:8080 [15:55:57]Content-Length: 1187 [15:55:57]Content-Type: application/json [15:55:57] [15:55:57]POST finish read [15:55:57]Found Content-Length = 1187 [15:55: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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949390\u000A28.07.2024 15: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 : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.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\u000A49416\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:57]execute_script... [15:55: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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949390\u000A28.07.2024 15: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 : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.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\u000A49416\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:57]POST & json_proto [15:55:57]process_json_proto [15:55:57]json parsed OK: [15:55:57]protocol is kg_v1.0 [15:55:57]action value=print_text [15:55:57]process_action print_text [15:55:57]cmd_print_text [15:55:57]ExternCall_PrintAddStr [15:55:57]wPrintStart [15:55:57]Write to MH i2c: 01 00 00 0D 07 14 [15:55:57]Write i2c OK [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: 01 [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: 01 07 00 [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: 01 07 00 0D 07 00 00 00 00 00 FF 0F 29 [15:55:57]RasterBufferAndPrint [15:55:57]line *****ТОВАРНЫЙ ЧЕК***** [15:55:57]line АЗС-134 [15:55:57]line Партнер нефть [15:55:57]line 02508201610067 [15:55:57]line Кассир : Хошимов З. [15:55:57]line Счет N : (1)949390 [15:55:57]line 28.07.2024 15:53 [15:55:57]line ПРОДАЖА [15:55:57]line ТРК (МРК, ГНК): 11 [15:55:57]line Вид ГСМ : 2710194800 [15:55:57]line ДТ-К-5 [15:55:57]line 100.000 x 76.20 [15:55:57]line ИТОГ: 7620.00 [15:55:57]line Тип оплаты: Талоны: Топливная Карта [15:55:57]line 49416 [15:55:57]line ______________________ [15:55:57]line (подпись) [15:55:57]written 0, free lines is 4095 [15:55:57]Write to MH i2c: 01 00 00 21 07 28 [15:55:57]Write i2c OK [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: 01 [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: 01 07 00 [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: 01 07 00 21 07 00 00 00 00 00 0F 0E 4C [15:55:57]RasterBufferAndPrint [15:55:57]line [15:55:57]line [15:55:57]line [15:55:57]line [15:55:57]line [15:55:57]written 0, free lines is 3601 [15:55:57]MH_Cut [15:55:57]Write to MH i2c: D1 01 00 28 07 01 01 [15:55:57]Write i2c OK [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: D1 [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: D1 01 00 [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: D1 01 00 28 07 00 00 [15:55:57]Write to MH i2c: 01 00 00 29 07 30 [15:55:57]Write i2c OK [15:55:57]MH_I2C_Read... [15:55:57]*** Cut start [15:55:57]*** Partial cut [15:55:57]*** CUTSNS_PIN = 1 [15:55:58]*** CUTSNS_PIN = 0 [15:55:58]*** Brake cut motor [15:55:58]Read from MH i2c: 01 [15:55:58]MH_I2C_Read... [15:55:58]*** Stop cut motor [15:55:58]*** Cut end [15:55:58]Read from MH i2c: 01 07 00 [15:55:58]MH_I2C_Read... [15:55:58]Read from MH i2c: 01 07 00 29 07 00 00 00 00 00 FF 0F 45 [15:55:58]process_action print_text done [15:55:58]requested_data is exist [15:55:58]produce_requested_data [15:55:58]requested_item fm.sn is exist - process it [15:55:58]wFMCommunicate request_size=4 [15:55:58]MH_SAM_APDU [15:55:58]CAPDU: 80 11 00 00 [15:55:58]Write to MH i2c: E2 08 00 2A 07 80 11 00 00 00 00 00 00 AB [15:55:58]Write i2c OK [15:55:58]MH_I2C_Read... [15:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:58]Read from MH i2c: E2 [15:55:58]MH_I2C_Read... [15:55:58]Read from MH i2c: E2 17 00 [15:55:58]MH_I2C_Read... [15:55:58]Read from MH i2c: E2 17 00 2A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 06 [15:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:55:58]wFMCommunicate OK [15:55:58]requested_item fd.num is exist - process it [15:55:58]SAM_PROTO_GetFieldsCounters [15:55:58]wFMCommunicate request_size=4 [15:55:58]MH_SAM_APDU [15:55:58]CAPDU: 80 13 00 00 [15:55:58]Write to MH i2c: E2 08 00 2B 07 80 13 00 00 00 00 00 00 AE [15:55:58]Write i2c OK [15:55:58]MH_I2C_Read... [15:55:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:58]Read from MH i2c: E2 [15:55:58]MH_I2C_Read... [15:55:58]Read from MH i2c: E2 62 00 [15:55:58]MH_I2C_Read... [15:55:58]Read from MH i2c: E2 62 00 2B 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F7 CE 01 00 0E 04 04 00 B1 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 81 [15:55:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F7 CE 01 00 0E 04 04 00 B1 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 [15:55:58]wFMCommunicate OK [15:55:58]SAM_PROTO_GetFieldsCounters done [15:55:58]requested_item shift.num is exist - process it [15:55:58]requested_item shift.opened is exist - process it [15:55:58]req_shift_opened [15:55:58]FM_GetShiftState [15:55:58]SAM_PROTO_GetShiftState [15:55:58]wFMCommunicate request_size=4 [15:55:58]MH_SAM_APDU [15:55:58]CAPDU: 80 13 01 00 [15:55:58]Write to MH i2c: E2 08 00 2C 07 80 13 01 00 00 00 00 00 B0 [15:55:58]Write i2c OK [15:55:58]MH_I2C_Read... [15:55:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:58]Read from MH i2c: E2 [15:55:58]MH_I2C_Read... [15:55:58]Read from MH i2c: E2 0E 00 [15:55:58]MH_I2C_Read... [15:55:58]Read from MH i2c: E2 0E 00 2C 07 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 87 [15:55:58]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:55:58]wFMCommunicate OK [15:55:58]SAM_PROTO_GetShiftState done [15:55:58]FM_GetShiftState done [15:55:58]req_shift_opened done [15:55:58]requested_item shift.open_date is exist - process it [15:55:58]req_shift_open_date [15:55:58]req_shift_open_date done [15:55:58]produce_requested_data done [15:55:58]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118519,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [15:55:58]process_action_free print_text [15:55:58]json_value_free [15:55:58]json_value_free done [15:55:58]process_json_proto returns [15:55:58]Send response to host [15:55:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118519,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [15:55:58]free response buf [15:55:58]execute_script done [15:55:58]execute_script returns [15:55:58]free content buf [15:55:58]Sock 7.Close socket [15:55:58]Sock 7.Thread stoped [15:56:00]OFD Sender: No OFD packet to send [15:56:05]OFD Sender: No OFD packet to send [15:56:10]OFD Sender: No OFD packet to send [15:56:15]OFD Sender: No OFD packet to send [15:56:20]OFD Sender: No OFD packet to send [15:56:25]OFD Sender: No OFD packet to send [15:56:30]OFD Sender: No OFD packet to send [15:56:35]OFD Sender: No OFD packet to send [15:56:40]OFD Sender: No OFD packet to send [15:56:45]OFD Sender: No OFD packet to send [15:56:47]accept exits with 9 [15:56:47]New connection [15:56:47]New thread 3067239780 created [15:56:47]Thread 3067383140 joined [15:56:47]Waiting for new connection... [15:56:47] Sock 9.Parse request [15:56:47]Sock 9.Check first char [15:56:47]Sock 9.First char is OK [15:56:47]request: POST /json_proto HTTP/1.0 [15:56:47]Method: POST [15:56:47]URL: /json_proto [15:56:47]Method is POST - this is cgi request [15:56:47]url: /json_proto [15:56:47]query_string will be loaded in cgi processing [15:56:47]execute_cgi json_proto POST (null) [15:56:47]execute_cgi path=json_proto method=POST [15:56:47]POST find Content-Length [15:56:47]Host: 172.17.45.7:8080 [15:56:47]Content-Length: 677 [15:56:47]Content-Type: application/json [15:56:47] [15:56:47]POST finish read [15:56:47]Found Content-Length = 677 [15:56:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:47]execute_script... [15:56:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:47]POST & json_proto [15:56:47]process_json_proto [15:56:47]json parsed OK: [15:56:47]protocol is kg_v1.0 [15:56:47]action value=close_receipt [15:56:47]process_action close_receipt [15:56:47]cmd_close_receipt [15:56:47]MH_GetDate [15:56:47]Write to MH i2c: F0 00 00 2D 07 23 [15:56:47]Write i2c OK [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: F0 [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: F0 09 00 [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: F0 09 00 2D 07 00 40 6A A6 66 90 0F 3E 66 25 [15:56:47]GetLastDocTimeStamp 1722182138 [15:56:47]current date 1722182208 [15:56:47]FM_GetShiftState [15:56:47]SAM_PROTO_GetShiftState [15:56:47]wFMCommunicate request_size=4 [15:56:47]MH_SAM_APDU [15:56:47]CAPDU: 80 13 01 00 [15:56:47]Write to MH i2c: E2 08 00 2E 07 80 13 01 00 00 00 00 00 B2 [15:56:47]Write i2c OK [15:56:47]MH_I2C_Read... [15:56:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:47]Read from MH i2c: E2 [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: E2 0E 00 [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: E2 0E 00 2E 07 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 89 [15:56:47]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:56:47]wFMCommunicate OK [15:56:47]SAM_PROTO_GetShiftState done [15:56:47]FM_GetShiftState done [15:56:47]opened in 1722125364 [15:56:47]opened+sec_in_day 1722211764 [15:56:47]quantity*price = 30035 [15:56:47]sum+1 = 30036 [15:56:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 189 28.07.2024 15:56 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118520 ФПД: 17725565740135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T155648&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118520&fm=17725565740135&tin=02508201610067®Number=0000000000092660&sum=30000 [15:56:48]StoreToDocumentArchive [15:56:48]shift 433 fd 118520 [15:56:48]save to /storage/0433/doc_00118520 [15:56:48]save last doc name /storage/0433/doc_00118520 to /storage/kkm_last_doc_name [15:56:48]save OK [15:56:48]Clear old archive folders... [15:56:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:56:48]tlvbuf is 01E6B260 [15:56:48]SAM_PROTO_ClearQueue [15:56:48]wFMCommunicate request_size=4 [15:56:48]MH_SAM_APDU [15:56:48]CAPDU: 80 09 00 00 [15:56:48]Write to MH i2c: E2 08 00 3B 07 80 09 00 00 00 00 00 00 B4 [15:56:48]Write i2c OK [15:56:48]MH_I2C_Read... [15:56:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:48]Read from MH i2c: E2 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: E2 03 00 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: E2 03 00 3B 07 00 90 00 B6 [15:56:48]RAPDU: 90 00 [15:56:48]wFMCommunicate OK [15:56:48]SAM_PROTO_ClearQueue done [15:56:48]KKMCreateOFDPacket [15:56:48]OFDProtocolAddRootSTLVToBuf [15:56:48]FM_MakeSignedData [15:56:48]FM_MakeSignedData [15:56:48]SAM_PROTO_SignData [15:56:48]wFMCommunicate request_size=4 [15:56:48]MH_SAM_APDU [15:56:48]CAPDU: 80 0D 01 02 [15:56:48]Write to MH i2c: E2 08 00 3C 07 80 0D 01 02 00 00 00 00 BC [15:56:48]Write i2c OK [15:56:48]MH_I2C_Read... [15:56:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:48]Read from MH i2c: E2 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: E2 03 00 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: E2 03 00 3C 07 00 90 00 B7 [15:56:48]RAPDU: 90 00 [15:56:48]wFMCommunicate OK [15:56:48]wFMCommunicate request_size=255 [15:56:48]MH_SAM_APDU [15:56:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 40 6A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F8 CE 01 00 35 04 06 00 10 [15:56:48]Write to MH i2c: E2 02 01 3D 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 40 6A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F8 CE 01 00 35 04 06 00 10 00 00 5B [15:56:48]Write i2c OK [15:56:48]MH_I2C_Read... [15:56:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:49]Read from MH i2c: E2 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 03 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 03 00 3D 07 00 90 00 B8 [15:56:49]RAPDU: 90 00 [15:56:49]wFMCommunicate OK [15:56:49]wFMCommunicate request_size=10 [15:56:49]MH_SAM_APDU [15:56:49]CAPDU: 80 0D 02 02 05 1F 0E 0C A4 67 [15:56:49]Write to MH i2c: E2 0D 00 3E 07 80 0D 02 02 05 00 1F 0E 0C A4 67 00 00 0D [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:49]Read from MH i2c: E2 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 03 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 03 00 3E 07 00 90 00 B9 [15:56:49]RAPDU: 90 00 [15:56:49]wFMCommunicate OK [15:56:49]wFMCommunicate request_size=4 [15:56:49]MH_SAM_APDU [15:56:49]CAPDU: 80 0D 03 02 [15:56:49]Write to MH i2c: E2 08 00 3F 07 80 0D 03 02 00 00 00 00 C1 [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:49]Read from MH i2c: E2 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 0B 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 0B 00 3F 07 00 15 4B CF 19 5B 62 B5 5E 90 00 DA [15:56:49]RAPDU: 15 4B CF 19 5B 62 B5 5E 90 00 [15:56:49]wFMCommunicate OK [15:56:49]SAM_PROTO_SignData done [15:56:49]FM_MakeSignedData done [15:56:49]CreateOFDProtocolMessage [15:56:49]wFMCommunicate request_size=4 [15:56:49]MH_SAM_APDU [15:56:49]CAPDU: 80 11 00 00 [15:56:49]Write to MH i2c: E2 08 00 40 07 80 11 00 00 00 00 00 00 C1 [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:49]Read from MH i2c: E2 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 17 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 17 00 40 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1C [15:56:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:56:49]wFMCommunicate OK [15:56:49]CreateOFDProtocolMessage done [15:56:49]OFDSenderStorePacket 118520 [15:56:49]StoreOFDPacket docnum=118520 [15:56:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2B 80 07 01 2D B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 40 6A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F8 CE 01 00 35 04 06 00 10 1F 0E 0C A4 67 15 4B CF 19 5B 62 B5 5E [15:56:49]CheckFolder [15:56:49]dirname=/storage/ofd_packets [15:56:49]CheckFolder done [15:56:49]ProducePacketName [15:56:49]name=ofd_packets/00118520 [15:56:49]NVStorageSaveData ofd_packets/00118520 [15:56:49]File name is /storage/ofd_packets/00118520 [15:56:49]Write 301 bytes [15:56:49]NVStorageSaveData done [15:56:49]OFDSenderStorePacket done [15:56:49]KKMCreateOFDPacket done [15:56:49]NVStorageSaveData kkm_last_timestamp [15:56:49]File name is /storage/kkm_last_timestamp [15:56:49]Write 4 bytes [15:56:49]NVStorageSaveData done [15:56:49]ExternCall_PrintAddStr [15:56:49]wPrintStart [15:56:49]Write to MH i2c: 01 00 00 41 07 48 [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: 01 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: 01 07 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: 01 07 00 41 07 00 00 00 00 00 FF 0F 5D [15:56:49]RasterBufferAndPrint [15:56:49]line Счет N : (1)949393 [15:56:49]line ИНН: 02508201610067 [15:56:49]line Контрольно-Кассовый Чек [15:56:49]line ПРОДАЖА [15:56:49]line ТРК (МРК, ГНК) : 41 [15:56:49]line Товар: 2710124130 [15:56:49]line Аи-92-К-4 [15:56:49]line 4.430 * 67.80 [15:56:49]line = 300.35 [15:56:49]line НДС 12% НСП 1% [15:56:49]line > о реализуемом товаре [15:56:49]line ОКРУГЛЕНИЕ: -0.35 [15:56:49]line ИТОГО: 300.00 [15:56:49]line Внесено: 300.00 [15:56:49]line СДАЧА: 0.00 [15:56:49]line НСП 1% : 2.66 [15:56:49]line НДС 12% : 31.90 [15:56:49]line Наличными: 300.00 [15:56:49]line Безнал.: 0.00 [15:56:49]line Место: АЗС № 134 "Партнер Нефть" [15:56:49]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:56:49]line СНО: Общий режим [15:56:49]line Чек 189 28.07.2024 15:56 [15:56:49]line Смена: 433 ФФД: 1.0 [15:56:49]line ЗНМ: 0300000044 [15:56:49]line РНМ: 0000000000092660 [15:56:49]line Версия ККМ: 001 [15:56:49]line ФМ: 0000000000874939 [15:56:49]line ФД: 118520 [15:56:49]line ФПД: 17725565740135 [15:56:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T155648&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118520&fm=17725565740135&tin=02508201610067®Number=0000000000092660&sum=30000 [15:56:49]written 0, free lines is 4095 [15:56:49]OFD Sender: Processing packet 118520 [packets to send 86, broken 85] [15:56:49]ProducePacketName [15:56:49]name=ofd_packets/00118520 [15:56:49]OFD Sender: To server: pG, [15:56:49]CommunicateWithHost lk.salyk.kg:30040 [15:56:49]ConnectInit lk.salyk.kg [15:56:49]Connected sock=10 [15:56:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2B 80 07 01 2D B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 40 6A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F8 CE 01 00 35 04 06 00 10 1F 0E 0C A4 67 15 4B CF 19 5B 62 B5 5E [15:56:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1E 26 47 00 94 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 39 33 39 10 04 04 00 F8 CE 01 00 F4 03 04 00 D0 17 A6 66 B6 04 01 00 00 D8 E2 16 88 8C AF 8C 6E [15:56:49]CommunicateWithHost err = 0 [15:56:49]CheckOFDResponse [15:56:49]1017 (14) - 77093643461234 [15:56:49]1041 (16) - 0000000000874939 [15:56:49]1040 (4) - 118520 [15:56:49]1012 (4) - 28.07.2024 10:05 [15:56:49]1206 (1) - 0 [15:56:49]OFD Sender: Remove packet 118520 [15:56:49]ProducePacketName [15:56:49]name=ofd_packets/00118520 [15:56:49]NVStorageDeleteData [15:56:49]Write to MH i2c: 01 00 00 6B 07 72 [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: 01 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: 01 07 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: 01 07 00 6B 07 00 00 00 00 00 E3 0C 68 [15:56:49]RasterBufferAndPrint [15:56:49]line [15:56:49]line [15:56:49]line [15:56:49]line [15:56:49]line [15:56:49]written 0, free lines is 3305 [15:56:49]MH_Cut [15:56:49]Write to MH i2c: D1 01 00 72 07 01 4B [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: D1 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: D1 01 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: D1 01 00 72 07 00 4A [15:56:49]Write to MH i2c: 01 00 00 73 07 7A [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:50]OFD Sender: No OFD packet to send [15:56:50]*** Cut start [15:56:50]*** Partial cut [15:56:50]*** CUTSNS_PIN = 1 [15:56:50]*** CUTSNS_PIN = 0 [15:56:50]*** Brake cut motor [15:56:51]Read from MH i2c: 01 [15:56:51]MH_I2C_Read... [15:56:51]*** Stop cut motor [15:56:51]*** Cut end [15:56:51]Read from MH i2c: 01 07 00 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: 01 07 00 73 07 00 00 00 00 00 FF 0F 8F [15:56:51]process_action close_receipt done [15:56:51]requested_data is exist [15:56:51]produce_requested_data [15:56:51]requested_item fm.sn is exist - process it [15:56:51]wFMCommunicate request_size=4 [15:56:51]MH_SAM_APDU [15:56:51]CAPDU: 80 11 00 00 [15:56:51]Write to MH i2c: E2 08 00 74 07 80 11 00 00 00 00 00 00 F5 [15:56:51]Write i2c OK [15:56:51]MH_I2C_Read... [15:56:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:51]Read from MH i2c: E2 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: E2 17 00 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: E2 17 00 74 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 50 [15:56:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:56:51]wFMCommunicate OK [15:56:51]requested_item fd.num is exist - process it [15:56:51]SAM_PROTO_GetFieldsCounters [15:56:51]wFMCommunicate request_size=4 [15:56:51]MH_SAM_APDU [15:56:51]CAPDU: 80 13 00 00 [15:56:51]Write to MH i2c: E2 08 00 75 07 80 13 00 00 00 00 00 00 F8 [15:56:51]Write i2c OK [15:56:51]MH_I2C_Read... [15:56:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:51]Read from MH i2c: E2 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: E2 62 00 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: E2 62 00 75 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F8 CE 01 00 0E 04 04 00 B1 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 CF [15:56:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F8 CE 01 00 0E 04 04 00 B1 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 [15:56:51]wFMCommunicate OK [15:56:51]SAM_PROTO_GetFieldsCounters done [15:56:51]requested_item shift.num is exist - process it [15:56:51]requested_item shift.opened is exist - process it [15:56:51]req_shift_opened [15:56:51]FM_GetShiftState [15:56:51]SAM_PROTO_GetShiftState [15:56:51]wFMCommunicate request_size=4 [15:56:51]MH_SAM_APDU [15:56:51]CAPDU: 80 13 01 00 [15:56:51]Write to MH i2c: E2 08 00 76 07 80 13 01 00 00 00 00 00 FA [15:56:51]Write i2c OK [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: E2 [15:56:51]MH_I2C_Read... [15:56:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:51]Read from MH i2c: E2 0E 00 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: E2 0E 00 76 07 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 D1 [15:56:51]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:56:51]wFMCommunicate OK [15:56:51]SAM_PROTO_GetShiftState done [15:56:51]FM_GetShiftState done [15:56:51]req_shift_opened done [15:56:51]requested_item shift.open_date is exist - process it [15:56:51]req_shift_open_date [15:56:51]req_shift_open_date done [15:56:51]produce_requested_data done [15:56:51]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118520,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [15:56:51]process_action_free close_receipt [15:56:51]json_value_free [15:56:51]json_value_free done [15:56:51]process_json_proto returns [15:56:51]Send response to host [15:56:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118520,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [15:56:51]free response buf [15:56:51]execute_script done [15:56:51]execute_script returns [15:56:51]free content buf [15:56:51]Sock 9.Close socket [15:56:51]Sock 9.Thread stoped [15:56:55]OFD Sender: No OFD packet to send [15:57:00]OFD Sender: No OFD packet to send [15:57:05]OFD Sender: No OFD packet to send [15:57:10]OFD Sender: No OFD packet to send [15:57:15]OFD Sender: No OFD packet to send [15:57:20]OFD Sender: No OFD packet to send [15:57:25]OFD Sender: No OFD packet to send [15:57:30]OFD Sender: No OFD packet to send [15:57:35]OFD Sender: No OFD packet to send [15:57:40]OFD Sender: No OFD packet to send [15:57:45]OFD Sender: No OFD packet to send [15:57:50]OFD Sender: No OFD packet to send [15:57:55]OFD Sender: No OFD packet to send [15:58:00]OFD Sender: No OFD packet to send [15:58:05]OFD Sender: No OFD packet to send [15:58:10]OFD Sender: No OFD packet to send [15:58:15]OFD Sender: No OFD packet to send [15:58:20]OFD Sender: No OFD packet to send [15:58:25]OFD Sender: No OFD packet to send [15:58:30]OFD Sender: No OFD packet to send [15:58:35]OFD Sender: No OFD packet to send [15:58:40]OFD Sender: No OFD packet to send [15:58:45]OFD Sender: No OFD packet to send [15:58:50]OFD Sender: No OFD packet to send [15:58:55]OFD Sender: No OFD packet to send [15:59:00]OFD Sender: No OFD packet to send [15:59:05]OFD Sender: No OFD packet to send [15:59:10]OFD Sender: No OFD packet to send [15:59:11]accept exits with 7 [15:59:11]New connection [15:59:11]New thread 3067383140 created [15:59:11]Thread 3067239780 joined [15:59:11]Waiting for new connection... [15:59:11] Sock 7.Parse request [15:59:11]Sock 7.Check first char [15:59:11]Sock 7.First char is OK [15:59:11]request: POST /json_proto HTTP/1.0 [15:59:11]Method: POST [15:59:11]URL: /json_proto [15:59:11]Method is POST - this is cgi request [15:59:11]url: /json_proto [15:59:11]query_string will be loaded in cgi processing [15:59:11]execute_cgi json_proto POST (null) [15:59:11]execute_cgi path=json_proto method=POST [15:59:11]POST find Content-Length [15:59:11]Host: 172.17.45.7:8080 [15:59:11]Content-Length: 1187 [15:59:11]Content-Type: application/json [15:59:11] [15:59:11]POST finish read [15:59:11]Found Content-Length = 1187 [15:59:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949392\u000A28.07.2024 15:56\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 : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.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\u000A49416\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:11]execute_script... [15:59:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949392\u000A28.07.2024 15:56\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 : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.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\u000A49416\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:11]POST & json_proto [15:59:11]process_json_proto [15:59:11]json parsed OK: [15:59:11]protocol is kg_v1.0 [15:59:11]action value=print_text [15:59:11]process_action print_text [15:59:11]cmd_print_text [15:59:11]ExternCall_PrintAddStr [15:59:11]wPrintStart [15:59:11]Write to MH i2c: 01 00 00 77 07 7E [15:59:11]Write i2c OK [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: 01 [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: 01 07 00 [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: 01 07 00 77 07 00 00 00 00 00 FF 0F 93 [15:59:11]RasterBufferAndPrint [15:59:11]line *****ТОВАРНЫЙ ЧЕК***** [15:59:11]line АЗС-134 [15:59:11]line Партнер нефть [15:59:11]line 02508201610067 [15:59:11]line Кассир : Хошимов З. [15:59:11]line Счет N : (1)949392 [15:59:11]line 28.07.2024 15:56 [15:59:11]line ПРОДАЖА [15:59:11]line ТРК (МРК, ГНК): 11 [15:59:11]line Вид ГСМ : 2710194800 [15:59:11]line ДТ-К-5 [15:59:11]line 100.000 x 76.20 [15:59:11]line ИТОГ: 7620.00 [15:59:11]line Тип оплаты: Талоны: Топливная Карта [15:59:11]line 49416 [15:59:11]line ______________________ [15:59:11]line (подпись) [15:59:11]written 0, free lines is 4095 [15:59:11]Write to MH i2c: 01 00 00 8B 07 92 [15:59:11]Write i2c OK [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: 01 [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: 01 07 00 [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: 01 07 00 8B 07 00 00 00 00 00 0F 0E B6 [15:59:11]RasterBufferAndPrint [15:59:11]line [15:59:11]line [15:59:11]line [15:59:11]line [15:59:11]line [15:59:11]written 0, free lines is 3601 [15:59:11]MH_Cut [15:59:11]Write to MH i2c: D1 01 00 92 07 01 6B [15:59:11]Write i2c OK [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: D1 [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: D1 01 00 [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: D1 01 00 92 07 00 6A [15:59:11]Write to MH i2c: 01 00 00 93 07 9A [15:59:11]Write i2c OK [15:59:11]MH_I2C_Read... [15:59:12]*** Cut start [15:59:12]*** Partial cut [15:59:12]*** CUTSNS_PIN = 1 [15:59:12]*** CUTSNS_PIN = 0 [15:59:12]*** Brake cut motor [15:59:13]Read from MH i2c: 01 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: 01 07 00 [15:59:13]MH_I2C_Read... [15:59:13]*** Stop cut motor [15:59:13]*** Cut end [15:59:13]Read from MH i2c: 01 07 00 93 07 00 00 00 00 00 FF 0F AF [15:59:13]process_action print_text done [15:59:13]requested_data is exist [15:59:13]produce_requested_data [15:59:13]requested_item fm.sn is exist - process it [15:59:13]wFMCommunicate request_size=4 [15:59:13]MH_SAM_APDU [15:59:13]CAPDU: 80 11 00 00 [15:59:13]Write to MH i2c: E2 08 00 94 07 80 11 00 00 00 00 00 00 15 [15:59:13]Write i2c OK [15:59:13]MH_I2C_Read... [15:59:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:13]Read from MH i2c: E2 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: E2 17 00 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: E2 17 00 94 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 70 [15:59:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:59:13]wFMCommunicate OK [15:59:13]requested_item fd.num is exist - process it [15:59:13]SAM_PROTO_GetFieldsCounters [15:59:13]wFMCommunicate request_size=4 [15:59:13]MH_SAM_APDU [15:59:13]CAPDU: 80 13 00 00 [15:59:13]Write to MH i2c: E2 08 00 95 07 80 13 00 00 00 00 00 00 18 [15:59:13]Write i2c OK [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: E2 [15:59:13]MH_I2C_Read... [15:59:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:13]Read from MH i2c: E2 62 00 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: E2 62 00 95 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F8 CE 01 00 0E 04 04 00 B1 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 EF [15:59:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F8 CE 01 00 0E 04 04 00 B1 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 [15:59:13]wFMCommunicate OK [15:59:13]SAM_PROTO_GetFieldsCounters done [15:59:13]requested_item shift.num is exist - process it [15:59:13]requested_item shift.opened is exist - process it [15:59:13]req_shift_opened [15:59:13]FM_GetShiftState [15:59:13]SAM_PROTO_GetShiftState [15:59:13]wFMCommunicate request_size=4 [15:59:13]MH_SAM_APDU [15:59:13]CAPDU: 80 13 01 00 [15:59:13]Write to MH i2c: E2 08 00 96 07 80 13 01 00 00 00 00 00 1A [15:59:13]Write i2c OK [15:59:13]MH_I2C_Read... [15:59:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:13]Read from MH i2c: E2 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: E2 0E 00 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: E2 0E 00 96 07 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 F1 [15:59:13]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [15:59:13]wFMCommunicate OK [15:59:13]SAM_PROTO_GetShiftState done [15:59:13]FM_GetShiftState done [15:59:13]req_shift_opened done [15:59:13]requested_item shift.open_date is exist - process it [15:59:13]req_shift_open_date [15:59:13]req_shift_open_date done [15:59:13]produce_requested_data done [15:59:13]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118520,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [15:59:13]process_action_free print_text [15:59:13]json_value_free [15:59:13]json_value_free done [15:59:13]process_json_proto returns [15:59:13]Send response to host [15:59:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118520,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [15:59:13]free response buf [15:59:13]execute_script done [15:59:13]execute_script returns [15:59:13]free content buf [15:59:13]Sock 7.Close socket [15:59:13]Sock 7.Thread stoped [15:59:15]OFD Sender: No OFD packet to send [15:59:20]OFD Sender: No OFD packet to send [15:59:25]OFD Sender: No OFD packet to send [15:59:30]OFD Sender: No OFD packet to send [15:59:35]OFD Sender: No OFD packet to send [15:59:40]OFD Sender: No OFD packet to send [15:59:45]OFD Sender: No OFD packet to send [15:59:50]OFD Sender: No OFD packet to send [15:59:55]OFD Sender: No OFD packet to send [16:00:00]OFD Sender: No OFD packet to send [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:15]OFD Sender: No OFD packet to send [16:00:20]OFD Sender: No OFD packet to send [16:00:25]OFD Sender: No OFD packet to send [16:00:30]OFD Sender: No OFD packet to send [16:00:35]OFD Sender: No OFD packet to send [16:00:40]OFD Sender: No OFD packet to send [16:00:45]OFD Sender: No OFD packet to send [16:00:50]OFD Sender: No OFD packet to send [16:00:55]OFD Sender: No OFD packet to send [16:01:00]OFD Sender: No OFD packet to send [16:01:05]OFD Sender: No OFD packet to send [16:01:10]OFD Sender: No OFD packet to send [16:01:15]OFD Sender: No OFD packet to send [16:01:20]OFD Sender: No OFD packet to send [16:01:25]OFD Sender: No OFD packet to send [16:01:30]OFD Sender: No OFD packet to send [16:01:35]OFD Sender: No OFD packet to send [16:01:40]OFD Sender: No OFD packet to send [16:01:45]OFD Sender: No OFD packet to send [16:01:50]OFD Sender: No OFD packet to send [16:01:55]OFD Sender: No OFD packet to send [16:02:00]OFD Sender: No OFD packet to send [16:02:05]OFD Sender: No OFD packet to send [16:02:10]OFD Sender: No OFD packet to send [16:02:15]OFD Sender: No OFD packet to send [16:02:20]OFD Sender: No OFD packet to send [16:02:25]OFD Sender: No OFD packet to send [16:02:30]OFD Sender: No OFD packet to send [16:02:35]OFD Sender: No OFD packet to send [16:02:40]OFD Sender: No OFD packet to send [16:02:45]OFD Sender: No OFD packet to send [16:02:50]OFD Sender: No OFD packet to send [16:02:55]OFD Sender: No OFD packet to send [16:03:00]OFD Sender: No OFD packet to send [16:03:05]OFD Sender: No OFD packet to send [16:03:10]OFD Sender: No OFD packet to send [16:03:15]OFD Sender: No OFD packet to send [16:03:20]OFD Sender: No OFD packet to send [16:03:25]OFD Sender: No OFD packet to send [16:03:30]OFD Sender: No OFD packet to send [16:03:35]OFD Sender: No OFD packet to send [16:03:40]OFD Sender: No OFD packet to send [16:03:45]OFD Sender: No OFD packet to send [16:03:50]OFD Sender: No OFD packet to send [16:03:55]OFD Sender: No OFD packet to send [16:04:00]OFD Sender: No OFD packet to send [16:04:05]OFD Sender: No OFD packet to send [16:04:10]OFD Sender: No OFD packet to send [16:04:15]OFD Sender: No OFD packet to send [16:04:20]OFD Sender: No OFD packet to send [16:04:25]OFD Sender: No OFD packet to send [16:04:30]OFD Sender: No OFD packet to send [16:04:35]OFD Sender: No OFD packet to send [16:04:40]OFD Sender: No OFD packet to send [16:04:45]OFD Sender: No OFD packet to send [16:04:50]accept exits with 9 [16:04:50]New connection [16:04:50]New thread 3067239780 created [16:04:50]Thread 3067383140 joined [16:04:50]Waiting for new connection... [16:04:50] Sock 9.Parse request [16:04:50]Sock 9.Check first char [16:04:50]Sock 9.First char is OK [16:04:50]request: POST /json_proto HTTP/1.0 [16:04:50]Method: POST [16:04:50]URL: /json_proto [16:04:50]Method is POST - this is cgi request [16:04:50]url: /json_proto [16:04:50]query_string will be loaded in cgi processing [16:04:50]execute_cgi json_proto POST (null) [16:04:50]execute_cgi path=json_proto method=POST [16:04:50]POST find Content-Length [16:04:50]Host: 172.17.45.7:8080 [16:04:50]Content-Length: 679 [16:04:50]Content-Type: application/json [16:04:50] [16:04:50]POST finish read [16:04:50]Found Content-Length = 679 [16:04:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:50]execute_script... [16:04: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)949394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:50]POST & json_proto [16:04:50]process_json_proto [16:04:50]json parsed OK: [16:04:50]protocol is kg_v1.0 [16:04:50]action value=close_receipt [16:04:50]process_action close_receipt [16:04:50]cmd_close_receipt [16:04:50]MH_GetDate [16:04:50]Write to MH i2c: F0 00 00 97 07 8D [16:04:50]Write i2c OK [16:04:50]MH_I2C_Read... [16:04:50]Read from MH i2c: F0 [16:04:50]MH_I2C_Read... [16:04:50]Read from MH i2c: F0 09 00 [16:04:50]MH_I2C_Read... [16:04:50]Read from MH i2c: F0 09 00 97 07 00 23 6C A6 66 90 0F 3E 66 74 [16:04:50]GetLastDocTimeStamp 1722182208 [16:04:50]current date 1722182691 [16:04:50]FM_GetShiftState [16:04:50]SAM_PROTO_GetShiftState [16:04:50]wFMCommunicate request_size=4 [16:04:50]MH_SAM_APDU [16:04:50]CAPDU: 80 13 01 00 [16:04:50]Write to MH i2c: E2 08 00 98 07 80 13 01 00 00 00 00 00 1C [16:04:50]Write i2c OK [16:04:50]MH_I2C_Read... [16:04:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:50]Read from MH i2c: E2 [16:04:50]MH_I2C_Read... [16:04:50]Read from MH i2c: E2 0E 00 [16:04:50]MH_I2C_Read... [16:04:50]Read from MH i2c: E2 0E 00 98 07 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 F3 [16:04:50]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [16:04:50]wFMCommunicate OK [16:04:50]SAM_PROTO_GetShiftState done [16:04:50]FM_GetShiftState done [16:04:50]opened in 1722125364 [16:04:50]opened+sec_in_day 1722211764 [16:04:50]quantity*price = 100050 [16:04:50]sum+1 = 100052 [16:04:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 190 28.07.2024 16:04 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118521 ФПД: 80667999602769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T160451&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118521&fm=80667999602769&tin=02508201610067®Number=0000000000092660&sum=100000 [16:04:51]StoreToDocumentArchive [16:04:51]shift 433 fd 118521 [16:04:51]save to /storage/0433/doc_00118521 [16:04:51]save last doc name /storage/0433/doc_00118521 to /storage/kkm_last_doc_name [16:04:51]save OK [16:04:51]Clear old archive folders... [16:04:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:04:51]tlvbuf is 01E603C0 [16:04:51]SAM_PROTO_ClearQueue [16:04:51]wFMCommunicate request_size=4 [16:04:51]MH_SAM_APDU [16:04:51]CAPDU: 80 09 00 00 [16:04:51]Write to MH i2c: E2 08 00 A5 07 80 09 00 00 00 00 00 00 1E [16:04:51]Write i2c OK [16:04:51]MH_I2C_Read... [16:04:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:51]Read from MH i2c: E2 [16:04:51]MH_I2C_Read... [16:04:51]Read from MH i2c: E2 03 00 [16:04:51]MH_I2C_Read... [16:04:51]Read from MH i2c: E2 03 00 A5 07 00 90 00 20 [16:04:51]RAPDU: 90 00 [16:04:51]wFMCommunicate OK [16:04:51]SAM_PROTO_ClearQueue done [16:04:51]KKMCreateOFDPacket [16:04:51]OFDProtocolAddRootSTLVToBuf [16:04:51]FM_MakeSignedData [16:04:51]FM_MakeSignedData [16:04:51]SAM_PROTO_SignData [16:04:51]wFMCommunicate request_size=4 [16:04:51]MH_SAM_APDU [16:04:51]CAPDU: 80 0D 01 02 [16:04:51]Write to MH i2c: E2 08 00 A6 07 80 0D 01 02 00 00 00 00 26 [16:04:51]Write i2c OK [16:04:51]MH_I2C_Read... [16:04:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:51]Read from MH i2c: E2 [16:04:51]MH_I2C_Read... [16:04:51]Read from MH i2c: E2 03 00 [16:04:51]MH_I2C_Read... [16:04:51]Read from MH i2c: E2 03 00 A6 07 00 90 00 21 [16:04:51]RAPDU: 90 00 [16:04:51]wFMCommunicate OK [16:04:51]wFMCommunicate request_size=255 [16:04:51]MH_SAM_APDU [16:04:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 23 6C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F9 CE 01 00 35 04 06 00 49 5D FB 76 [16:04:51]Write to MH i2c: E2 02 01 A7 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 23 6C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F9 CE 01 00 35 04 06 00 49 5D FB 76 00 00 A0 [16:04:51]Write i2c OK [16:04:51]MH_I2C_Read... [16:04:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:52]Read from MH i2c: E2 [16:04:52]MH_I2C_Read... [16:04:52]Read from MH i2c: E2 03 00 [16:04:52]MH_I2C_Read... [16:04:52]Read from MH i2c: E2 03 00 A7 07 00 90 00 22 [16:04:52]RAPDU: 90 00 [16:04:52]wFMCommunicate OK [16:04:52]wFMCommunicate request_size=7 [16:04:52]MH_SAM_APDU [16:04:52]CAPDU: 80 0D 02 02 02 08 51 [16:04:52]Write to MH i2c: E2 0A 00 A8 07 80 0D 02 02 02 00 08 51 00 00 86 [16:04:52]Write i2c OK [16:04:52]MH_I2C_Read... [16:04:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:52]Read from MH i2c: E2 [16:04:52]MH_I2C_Read... [16:04:52]Read from MH i2c: E2 03 00 [16:04:52]MH_I2C_Read... [16:04:52]Read from MH i2c: E2 03 00 A8 07 00 90 00 23 [16:04:52]RAPDU: 90 00 [16:04:52]wFMCommunicate OK [16:04:52]wFMCommunicate request_size=4 [16:04:52]MH_SAM_APDU [16:04:52]CAPDU: 80 0D 03 02 [16:04:52]Write to MH i2c: E2 08 00 A9 07 80 0D 03 02 00 00 00 00 2B [16:04:52]Write i2c OK [16:04:52]MH_I2C_Read... [16:04:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:52]Read from MH i2c: E2 [16:04:52]MH_I2C_Read... [16:04:52]Read from MH i2c: E2 0B 00 [16:04:52]MH_I2C_Read... [16:04:52]Read from MH i2c: E2 0B 00 A9 07 00 B3 94 F8 C9 75 2A 26 A4 90 00 9D [16:04:52]RAPDU: B3 94 F8 C9 75 2A 26 A4 90 00 [16:04:52]wFMCommunicate OK [16:04:52]SAM_PROTO_SignData done [16:04:52]FM_MakeSignedData done [16:04:52]CreateOFDProtocolMessage [16:04:52]wFMCommunicate request_size=4 [16:04:52]MH_SAM_APDU [16:04:52]CAPDU: 80 11 00 00 [16:04:52]Write to MH i2c: E2 08 00 AA 07 80 11 00 00 00 00 00 00 2B [16:04:52]Write i2c OK [16:04:52]MH_I2C_Read... [16:04:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:52]Read from MH i2c: E2 [16:04:52]MH_I2C_Read... [16:04:52]Read from MH i2c: E2 17 00 [16:04:52]MH_I2C_Read... [16:04:52]Read from MH i2c: E2 17 00 AA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 86 [16:04:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:04:52]wFMCommunicate OK [16:04:52]CreateOFDProtocolMessage done [16:04:52]OFDSenderStorePacket 118521 [16:04:52]StoreOFDPacket docnum=118521 [16:04:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 41 E6 04 01 76 E8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 23 6C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F9 CE 01 00 35 04 06 00 49 5D FB 76 08 51 B3 94 F8 C9 75 2A 26 A4 [16:04:52]CheckFolder [16:04:52]dirname=/storage/ofd_packets [16:04:52]CheckFolder done [16:04:52]ProducePacketName [16:04:52]name=ofd_packets/00118521 [16:04:52]NVStorageSaveData ofd_packets/00118521 [16:04:52]File name is /storage/ofd_packets/00118521 [16:04:52]Write 298 bytes [16:04:52]NVStorageSaveData done [16:04:52]OFDSenderStorePacket done [16:04:52]KKMCreateOFDPacket done [16:04:52]NVStorageSaveData kkm_last_timestamp [16:04:52]File name is /storage/kkm_last_timestamp [16:04:52]Write 4 bytes [16:04:52]NVStorageSaveData done [16:04:52]ExternCall_PrintAddStr [16:04:52]wPrintStart [16:04:52]Write to MH i2c: 01 00 00 AB 07 B2 [16:04:52]Write i2c OK [16:04:52]MH_I2C_Read... [16:04:52]Read from MH i2c: 01 [16:04:52]MH_I2C_Read... [16:04:52]Read from MH i2c: 01 07 00 [16:04:52]MH_I2C_Read... [16:04:52]Read from MH i2c: 01 07 00 AB 07 00 00 00 00 00 FF 0F C7 [16:04:52]RasterBufferAndPrint [16:04:52]line Счет N : (1)949394 [16:04:52]line ИНН: 02508201610067 [16:04:52]line Контрольно-Кассовый Чек [16:04:52]line ПРОДАЖА [16:04:52]line ТРК (МРК, ГНК) : 44 [16:04:52]line Товар: 2710194800 [16:04:52]line ДТ-К-5 [16:04:52]line 13.130 * 76.20 [16:04:52]line = 1000.51 [16:04:52]line НДС 12% НСП 1% [16:04:52]line > о реализуемом товаре [16:04:52]line ОКРУГЛЕНИЕ: -0.51 [16:04:52]line ИТОГО: 1000.00 [16:04:52]line Внесено: 1000.00 [16:04:52]line СДАЧА: 0.00 [16:04:52]line НСП 1% : 8.85 [16:04:52]line НДС 12% : 106.25 [16:04:52]line Наличными: 1000.00 [16:04:52]line Безнал.: 0.00 [16:04:52]line Место: АЗС № 134 "Партнер Нефть" [16:04:52]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:04:52]line СНО: Общий режим [16:04:52]line Чек 190 28.07.2024 16:04 [16:04:52]line Смена: 433 ФФД: 1.0 [16:04:52]line ЗНМ: 0300000044 [16:04:52]line РНМ: 0000000000092660 [16:04:52]line Версия ККМ: 001 [16:04:52]line ФМ: 0000000000874939 [16:04:52]line ФД: 118521 [16:04:52]line ФПД: 80667999602769 [16:04:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T160451&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118521&fm=80667999602769&tin=02508201610067®Number=0000000000092660&sum=100000 [16:04:52]OFD Sender: Processing packet 118521 [packets to send 86, broken 85] [16:04:52]ProducePacketName [16:04:52]name=ofd_packets/00118521 [16:04:52]OFD Sender: To server: pG, [16:04:52]CommunicateWithHost lk.salyk.kg:30040 [16:04:52]ConnectInit lk.salyk.kg [16:04:52]written 0, free lines is 4095 [16:04:52]Connected sock=10 [16:04:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 41 E6 04 01 76 E8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 23 6C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F9 CE 01 00 35 04 06 00 49 5D FB 76 08 51 B3 94 F8 C9 75 2A 26 A4 [16:04:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 2A 14 47 00 C8 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F9 CE 01 00 F4 03 04 00 B3 19 A6 66 B6 04 01 00 00 FD 19 9D FD D9 33 81 17 [16:04:52]CommunicateWithHost err = 0 [16:04:52]CheckOFDResponse [16:04:52]1017 (14) - 77093643461234 [16:04:52]1041 (16) - 0000000000874939 [16:04:52]1040 (4) - 118521 [16:04:52]1012 (4) - 28.07.2024 10:13 [16:04:52]1206 (1) - 0 [16:04:52]OFD Sender: Remove packet 118521 [16:04:52]ProducePacketName [16:04:52]name=ofd_packets/00118521 [16:04:52]NVStorageDeleteData [16:04:53]Write to MH i2c: 01 00 00 D5 07 DC [16:04:53]Write i2c OK [16:04:53]MH_I2C_Read... [16:04:53]Read from MH i2c: 01 [16:04:53]MH_I2C_Read... [16:04:53]Read from MH i2c: 01 07 00 [16:04:53]MH_I2C_Read... [16:04:53]Read from MH i2c: 01 07 00 D5 07 00 00 00 00 00 D3 0C C2 [16:04:53]RasterBufferAndPrint [16:04:53]line [16:04:53]line [16:04:53]line [16:04:53]line [16:04:53]line [16:04:53]written 0, free lines is 3290 [16:04:53]MH_Cut [16:04:53]Write to MH i2c: D1 01 00 DC 07 01 B5 [16:04:53]Write i2c OK [16:04:53]MH_I2C_Read... [16:04:53]Read from MH i2c: D1 [16:04:53]MH_I2C_Read... [16:04:53]Read from MH i2c: D1 01 00 [16:04:53]MH_I2C_Read... [16:04:53]Read from MH i2c: D1 01 00 DC 07 00 B4 [16:04:53]Write to MH i2c: 01 00 00 DD 07 E4 [16:04:53]Write i2c OK [16:04:53]MH_I2C_Read... [16:04:53]OFD Sender: No OFD packet to send [16:04:53]*** Cut start [16:04:53]*** Partial cut [16:04:53]*** CUTSNS_PIN = 1 [16:04:53]*** CUTSNS_PIN = 0 [16:04:54]*** Brake cut motor [16:04:54]Read from MH i2c: 01 [16:04:54]MH_I2C_Read... [16:04:54]*** Stop cut motor [16:04:54]*** Cut end [16:04:54]Read from MH i2c: 01 07 00 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: 01 07 00 DD 07 00 00 00 00 00 FF 0F F9 [16:04:54]process_action close_receipt done [16:04:54]requested_data is exist [16:04:54]produce_requested_data [16:04:54]requested_item fm.sn is exist - process it [16:04:54]wFMCommunicate request_size=4 [16:04:54]MH_SAM_APDU [16:04:54]CAPDU: 80 11 00 00 [16:04:54]Write to MH i2c: E2 08 00 DE 07 80 11 00 00 00 00 00 00 5F [16:04:54]Write i2c OK [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: E2 [16:04:54]MH_I2C_Read... [16:04:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:54]Read from MH i2c: E2 17 00 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: E2 17 00 DE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BA [16:04:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:04:54]wFMCommunicate OK [16:04:54]requested_item fd.num is exist - process it [16:04:54]SAM_PROTO_GetFieldsCounters [16:04:54]wFMCommunicate request_size=4 [16:04:54]MH_SAM_APDU [16:04:54]CAPDU: 80 13 00 00 [16:04:54]Write to MH i2c: E2 08 00 DF 07 80 13 00 00 00 00 00 00 62 [16:04:54]Write i2c OK [16:04:54]MH_I2C_Read... [16:04:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:54]Read from MH i2c: E2 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: E2 62 00 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: E2 62 00 DF 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F9 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [16:04:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F9 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:04:54]wFMCommunicate OK [16:04:54]SAM_PROTO_GetFieldsCounters done [16:04:54]requested_item shift.num is exist - process it [16:04:54]requested_item shift.opened is exist - process it [16:04:54]req_shift_opened [16:04:54]FM_GetShiftState [16:04:54]SAM_PROTO_GetShiftState [16:04:54]wFMCommunicate request_size=4 [16:04:54]MH_SAM_APDU [16:04:54]CAPDU: 80 13 01 00 [16:04:54]Write to MH i2c: E2 08 00 E0 07 80 13 01 00 00 00 00 00 64 [16:04:54]Write i2c OK [16:04:54]MH_I2C_Read... [16:04:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:54]Read from MH i2c: E2 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: E2 0E 00 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: E2 0E 00 E0 07 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 3B [16:04:54]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [16:04:54]wFMCommunicate OK [16:04:54]SAM_PROTO_GetShiftState done [16:04:54]FM_GetShiftState done [16:04:54]req_shift_opened done [16:04:54]requested_item shift.open_date is exist - process it [16:04:54]req_shift_open_date [16:04:54]req_shift_open_date done [16:04:54]produce_requested_data done [16:04:54]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118521,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [16:04:54]process_action_free close_receipt [16:04:54]json_value_free [16:04:54]json_value_free done [16:04:54]process_json_proto returns [16:04:54]Send response to host [16:04:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118521,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [16:04:54]free response buf [16:04:54]execute_script done [16:04:54]execute_script returns [16:04:54]free content buf [16:04:54]Sock 9.Close socket [16:04:54]Sock 9.Thread stoped [16:04:58]OFD Sender: No OFD packet to send [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [16:05:28]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:43]OFD Sender: No OFD packet to send [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [16:05:58]OFD Sender: No OFD packet to send [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:13]OFD Sender: No OFD packet to send [16:06:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:53]OFD Sender: No OFD packet to send [16:06:58]OFD Sender: No OFD packet to send [16:07:03]OFD Sender: No OFD packet to send [16:07:08]OFD Sender: No OFD packet to send [16:07:13]OFD Sender: No OFD packet to send [16:07:18]OFD Sender: No OFD packet to send [16:07:23]OFD Sender: No OFD packet to send [16:07:28]OFD Sender: No OFD packet to send [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:45]accept exits with 7 [16:09:45]New connection [16:09:45]New thread 3067383140 created [16:09:45]Thread 3067239780 joined [16:09:45]Waiting for new connection... [16:09:45] Sock 7.Parse request [16:09:45]Sock 7.Check first char [16:09:45]Sock 7.First char is OK [16:09:45]request: POST /json_proto HTTP/1.0 [16:09:45]Method: POST [16:09:45]URL: /json_proto [16:09:45]Method is POST - this is cgi request [16:09:45]url: /json_proto [16:09:45]query_string will be loaded in cgi processing [16:09:45]execute_cgi json_proto POST (null) [16:09:45]execute_cgi path=json_proto method=POST [16:09:45]POST find Content-Length [16:09:45]Host: 172.17.45.7:8080 [16:09:45]Content-Length: 682 [16:09:45]Content-Type: application/json [16:09:45] [16:09:45]POST finish read [16:09:45]Found Content-Length = 682 [16:09:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:45]execute_script... [16:09: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)949396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:45]POST & json_proto [16:09:45]process_json_proto [16:09:45]json parsed OK: [16:09:45]protocol is kg_v1.0 [16:09:45]action value=close_receipt [16:09:45]process_action close_receipt [16:09:45]cmd_close_receipt [16:09:45]MH_GetDate [16:09:45]Write to MH i2c: F0 00 00 E1 07 D7 [16:09:45]Write i2c OK [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: F0 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: F0 09 00 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: F0 09 00 E1 07 00 4A 6D A6 66 90 0F 3E 66 E6 [16:09:45]GetLastDocTimeStamp 1722182691 [16:09:45]current date 1722182986 [16:09:45]FM_GetShiftState [16:09:45]SAM_PROTO_GetShiftState [16:09:45]wFMCommunicate request_size=4 [16:09:45]MH_SAM_APDU [16:09:45]CAPDU: 80 13 01 00 [16:09:45]Write to MH i2c: E2 08 00 E2 07 80 13 01 00 00 00 00 00 66 [16:09:45]Write i2c OK [16:09:45]MH_I2C_Read... [16:09:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:45]Read from MH i2c: E2 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: E2 0E 00 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: E2 0E 00 E2 07 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 3D [16:09:45]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [16:09:45]wFMCommunicate OK [16:09:45]SAM_PROTO_GetShiftState done [16:09:45]FM_GetShiftState done [16:09:45]opened in 1722125364 [16:09:45]opened+sec_in_day 1722211764 [16:09:45]quantity*price = 150041 [16:09:45]sum+1 = 150042 [16:09:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 191 28.07.2024 16:09 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118522 ФПД: 269408683065157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T160946&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118522&fm=269408683065157&tin=02508201610067®Number=0000000000092660&sum=150000 [16:09:46]StoreToDocumentArchive [16:09:46]shift 433 fd 118522 [16:09:46]save to /storage/0433/doc_00118522 [16:09:46]save last doc name /storage/0433/doc_00118522 to /storage/kkm_last_doc_name [16:09:46]save OK [16:09:46]Clear old archive folders... [16:09:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:09:46]tlvbuf is 01E63510 [16:09:46]SAM_PROTO_ClearQueue [16:09:46]wFMCommunicate request_size=4 [16:09:46]MH_SAM_APDU [16:09:46]CAPDU: 80 09 00 00 [16:09:46]Write to MH i2c: E2 08 00 EF 07 80 09 00 00 00 00 00 00 68 [16:09:46]Write i2c OK [16:09:46]MH_I2C_Read... [16:09:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:46]Read from MH i2c: E2 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 03 00 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 03 00 EF 07 00 90 00 6A [16:09:46]RAPDU: 90 00 [16:09:46]wFMCommunicate OK [16:09:46]SAM_PROTO_ClearQueue done [16:09:46]KKMCreateOFDPacket [16:09:46]OFDProtocolAddRootSTLVToBuf [16:09:46]FM_MakeSignedData [16:09:46]FM_MakeSignedData [16:09:46]SAM_PROTO_SignData [16:09:46]wFMCommunicate request_size=4 [16:09:46]MH_SAM_APDU [16:09:46]CAPDU: 80 0D 01 02 [16:09:46]Write to MH i2c: E2 08 00 F0 07 80 0D 01 02 00 00 00 00 70 [16:09:46]Write i2c OK [16:09:46]MH_I2C_Read... [16:09:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:46]Read from MH i2c: E2 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 03 00 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 03 00 F0 07 00 90 00 6B [16:09:46]RAPDU: 90 00 [16:09:46]wFMCommunicate OK [16:09:46]wFMCommunicate request_size=255 [16:09:46]MH_SAM_APDU [16:09: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 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 BF 00 00 00 F4 03 04 00 4A 6D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FA CE 01 00 35 04 06 00 F5 [16:09:46]Write to MH i2c: E2 02 01 F1 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 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 BF 00 00 00 F4 03 04 00 4A 6D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FA CE 01 00 35 04 06 00 F5 00 00 5B [16:09:46]Write i2c OK [16:09:46]MH_I2C_Read... [16:09:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:46]Read from MH i2c: E2 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 03 00 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 03 00 F1 07 00 90 00 6C [16:09:46]RAPDU: 90 00 [16:09:46]wFMCommunicate OK [16:09:46]wFMCommunicate request_size=10 [16:09:46]MH_SAM_APDU [16:09:46]CAPDU: 80 0D 02 02 05 06 98 DA 7F 45 [16:09:46]Write to MH i2c: E2 0D 00 F2 07 80 0D 02 02 05 00 06 98 DA 7F 45 00 00 B9 [16:09:46]Write i2c OK [16:09:46]MH_I2C_Read... [16:09:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:46]Read from MH i2c: E2 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 03 00 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 03 00 F2 07 00 90 00 6D [16:09:46]RAPDU: 90 00 [16:09:46]wFMCommunicate OK [16:09:46]wFMCommunicate request_size=4 [16:09:46]MH_SAM_APDU [16:09:46]CAPDU: 80 0D 03 02 [16:09:46]Write to MH i2c: E2 08 00 F3 07 80 0D 03 02 00 00 00 00 75 [16:09:46]Write i2c OK [16:09:46]MH_I2C_Read... [16:09:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:47]Read from MH i2c: E2 [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: E2 0B 00 [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: E2 0B 00 F3 07 00 77 4C 76 B5 36 C6 FF 9E 90 00 FD [16:09:47]RAPDU: 77 4C 76 B5 36 C6 FF 9E 90 00 [16:09:47]wFMCommunicate OK [16:09:47]SAM_PROTO_SignData done [16:09:47]FM_MakeSignedData done [16:09:47]CreateOFDProtocolMessage [16:09:47]wFMCommunicate request_size=4 [16:09:47]MH_SAM_APDU [16:09:47]CAPDU: 80 11 00 00 [16:09:47]Write to MH i2c: E2 08 00 F4 07 80 11 00 00 00 00 00 00 75 [16:09:47]Write i2c OK [16:09:47]MH_I2C_Read... [16:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:47]Read from MH i2c: E2 [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: E2 17 00 [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: E2 17 00 F4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D0 [16:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:09:47]wFMCommunicate OK [16:09:47]CreateOFDProtocolMessage done [16:09:47]OFDSenderStorePacket 118522 [16:09:47]StoreOFDPacket docnum=118522 [16:09:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 9C 0E 07 01 3D 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 BF 00 00 00 F4 03 04 00 4A 6D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FA CE 01 00 35 04 06 00 F5 06 98 DA 7F 45 77 4C 76 B5 36 C6 FF 9E [16:09:47]CheckFolder [16:09:47]dirname=/storage/ofd_packets [16:09:47]CheckFolder done [16:09:47]ProducePacketName [16:09:47]name=ofd_packets/00118522 [16:09:47]NVStorageSaveData ofd_packets/00118522 [16:09:47]File name is /storage/ofd_packets/00118522 [16:09:47]Write 301 bytes [16:09:47]NVStorageSaveData done [16:09:47]OFDSenderStorePacket done [16:09:47]KKMCreateOFDPacket done [16:09:47]NVStorageSaveData kkm_last_timestamp [16:09:47]File name is /storage/kkm_last_timestamp [16:09:47]Write 4 bytes [16:09:47]NVStorageSaveData done [16:09:47]ExternCall_PrintAddStr [16:09:47]wPrintStart [16:09:47]Write to MH i2c: 01 00 00 F5 07 FC [16:09:47]Write i2c OK [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: 01 [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: 01 07 00 [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: 01 07 00 F5 07 00 00 00 00 00 FF 0F 11 [16:09:47]RasterBufferAndPrint [16:09:47]line Счет N : (1)949396 [16:09:47]line ИНН: 02508201610067 [16:09:47]line Контрольно-Кассовый Чек [16:09:47]line ПРОДАЖА [16:09:47]line ТРК (МРК, ГНК) : 61 [16:09:47]line Товар: 2710124130 [16:09:47]line Аи-92-К-4 [16:09:47]line 22.130 * 67.80 [16:09:47]line = 1500.41 [16:09:47]line НДС 12% НСП 1% [16:09:47]line > о реализуемом товаре [16:09:47]line ОКРУГЛЕНИЕ: -0.41 [16:09:47]line ИТОГО: 1500.00 [16:09:47]line Внесено: 1500.00 [16:09:47]line СДАЧА: 0.00 [16:09:47]line НСП 1% : 13.28 [16:09:47]line НДС 12% : 159.34 [16:09:47]line Наличными: 1500.00 [16:09:47]line Безнал.: 0.00 [16:09:47]line Место: АЗС № 134 "Партнер Нефть" [16:09:47]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:09:47]line СНО: Общий режим [16:09:47]line Чек 191 28.07.2024 16:09 [16:09:47]line Смена: 433 ФФД: 1.0 [16:09:47]line ЗНМ: 0300000044 [16:09:47]line РНМ: 0000000000092660 [16:09:47]line Версия ККМ: 001 [16:09:47]line ФМ: 0000000000874939 [16:09:47]line ФД: 118522 [16:09:47]line ФПД: 269408683065157 [16:09:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T160946&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118522&fm=269408683065157&tin=02508201610067®Number=0000000000092660&sum=150000 [16:09:47]OFD Sender: Processing packet 118522 [packets to send 86, broken 85] [16:09:47]ProducePacketName [16:09:47]name=ofd_packets/00118522 [16:09:47]OFD Sender: To server: pG, [16:09:47]CommunicateWithHost lk.salyk.kg:30040 [16:09:47]ConnectInit lk.salyk.kg [16:09:47]written 0, free lines is 4095 [16:09:47]Connected sock=10 [16:09: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 39 33 39 0F 01 00 00 9C 0E 07 01 3D 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 BF 00 00 00 F4 03 04 00 4A 6D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FA CE 01 00 35 04 06 00 F5 06 98 DA 7F 45 77 4C 76 B5 36 C6 FF 9E [16:09:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 56 EF 47 00 0A 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FA CE 01 00 F4 03 04 00 DA 1A A6 66 B6 04 01 00 00 30 89 90 89 8B BA 86 4E [16:09:47]CommunicateWithHost err = 0 [16:09:47]CheckOFDResponse [16:09:47]1017 (14) - 77093643461234 [16:09:47]1041 (16) - 0000000000874939 [16:09:47]1040 (4) - 118522 [16:09:47]1012 (4) - 28.07.2024 10:18 [16:09:47]1206 (1) - 0 [16:09:47]OFD Sender: Remove packet 118522 [16:09:47]ProducePacketName [16:09:47]name=ofd_packets/00118522 [16:09:47]NVStorageDeleteData [16:09:47]Write to MH i2c: 01 00 00 1F 08 27 [16:09:47]Write i2c OK [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: 01 [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: 01 07 00 [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: 01 07 00 1F 08 00 00 00 00 00 E8 0C 22 [16:09:47]RasterBufferAndPrint [16:09:47]line [16:09:47]line [16:09:47]line [16:09:47]line [16:09:47]line [16:09:47]written 0, free lines is 3311 [16:09:47]MH_Cut [16:09:47]Write to MH i2c: D1 01 00 26 08 01 00 [16:09:47]Write i2c OK [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: D1 [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: D1 01 00 [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: D1 01 00 26 08 00 FF [16:09:47]Write to MH i2c: 01 00 00 27 08 2F [16:09:47]Write i2c OK [16:09:47]MH_I2C_Read... [16:09:48]OFD Sender: No OFD packet to send [16:09:48]*** Cut start [16:09:48]*** Partial cut [16:09:48]*** CUTSNS_PIN = 1 [16:09:48]*** CUTSNS_PIN = 0 [16:09:48]*** Brake cut motor [16:09:49]Read from MH i2c: 01 [16:09:49]MH_I2C_Read... [16:09:49]*** Stop cut motor [16:09:49]*** Cut end [16:09:49]Read from MH i2c: 01 07 00 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: 01 07 00 27 08 00 00 00 00 00 FF 0F 44 [16:09:49]process_action close_receipt done [16:09:49]requested_data is exist [16:09:49]produce_requested_data [16:09:49]requested_item fm.sn is exist - process it [16:09:49]wFMCommunicate request_size=4 [16:09:49]MH_SAM_APDU [16:09:49]CAPDU: 80 11 00 00 [16:09:49]Write to MH i2c: E2 08 00 28 08 80 11 00 00 00 00 00 00 AA [16:09:49]Write i2c OK [16:09:49]MH_I2C_Read... [16:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:49]Read from MH i2c: E2 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: E2 17 00 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: E2 17 00 28 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 05 [16:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:09:49]wFMCommunicate OK [16:09:49]requested_item fd.num is exist - process it [16:09:49]SAM_PROTO_GetFieldsCounters [16:09:49]wFMCommunicate request_size=4 [16:09:49]MH_SAM_APDU [16:09:49]CAPDU: 80 13 00 00 [16:09:49]Write to MH i2c: E2 08 00 29 08 80 13 00 00 00 00 00 00 AD [16:09:49]Write i2c OK [16:09:49]MH_I2C_Read... [16:09:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:49]Read from MH i2c: E2 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: E2 62 00 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: E2 62 00 29 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FA CE 01 00 0E 04 04 00 B1 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 8C [16:09: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FA CE 01 00 0E 04 04 00 B1 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 [16:09:49]wFMCommunicate OK [16:09:49]SAM_PROTO_GetFieldsCounters done [16:09:49]requested_item shift.num is exist - process it [16:09:49]requested_item shift.opened is exist - process it [16:09:49]req_shift_opened [16:09:49]FM_GetShiftState [16:09:49]SAM_PROTO_GetShiftState [16:09:49]wFMCommunicate request_size=4 [16:09:49]MH_SAM_APDU [16:09:49]CAPDU: 80 13 01 00 [16:09:49]Write to MH i2c: E2 08 00 2A 08 80 13 01 00 00 00 00 00 AF [16:09:49]Write i2c OK [16:09:49]MH_I2C_Read... [16:09:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:49]Read from MH i2c: E2 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: E2 0E 00 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: E2 0E 00 2A 08 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 86 [16:09:49]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [16:09:49]wFMCommunicate OK [16:09:49]SAM_PROTO_GetShiftState done [16:09:49]FM_GetShiftState done [16:09:49]req_shift_opened done [16:09:49]requested_item shift.open_date is exist - process it [16:09:49]req_shift_open_date [16:09:49]req_shift_open_date done [16:09:49]produce_requested_data done [16:09:49]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118522,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [16:09:49]process_action_free close_receipt [16:09:49]json_value_free [16:09:49]json_value_free done [16:09:49]process_json_proto returns [16:09:49]Send response to host [16:09:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118522,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [16:09:49]free response buf [16:09:49]execute_script done [16:09:49]execute_script returns [16:09:49]free content buf [16:09:49]Sock 7.Close socket [16:09:49]Sock 7.Thread stoped [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:22]accept exits with 9 [16:12:22]New connection [16:12:22]New thread 3067239780 created [16:12:22]Thread 3067383140 joined [16:12:22]Waiting for new connection... [16:12:22] Sock 9.Parse request [16:12:22]Sock 9.Check first char [16:12:22]Sock 9.First char is OK [16:12:22]request: POST /json_proto HTTP/1.0 [16:12:22]Method: POST [16:12:22]URL: /json_proto [16:12:22]Method is POST - this is cgi request [16:12:22]url: /json_proto [16:12:22]query_string will be loaded in cgi processing [16:12:22]execute_cgi json_proto POST (null) [16:12:22]execute_cgi path=json_proto method=POST [16:12:22]POST find Content-Length [16:12:22]Host: 172.17.45.7:8080 [16:12:22]Content-Length: 819 [16:12:22]Content-Type: application/json [16:12:22] [16:12:22]POST finish read [16:12:22]Found Content-Length = 819 [16:12:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.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", "total" : 3500.00, "payments": [ { "type": 1, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:22]execute_script... [16:12: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)949395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.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", "total" : 3500.00, "payments": [ { "type": 1, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:22]POST & json_proto [16:12:22]process_json_proto [16:12:22]json parsed OK: [16:12:22]protocol is kg_v1.0 [16:12:22]action value=close_receipt [16:12:22]process_action close_receipt [16:12:22]cmd_close_receipt [16:12:22]MH_GetDate [16:12:22]Write to MH i2c: F0 00 00 2B 08 22 [16:12:22]Write i2c OK [16:12:22]MH_I2C_Read... [16:12:22]Read from MH i2c: F0 [16:12:22]MH_I2C_Read... [16:12:22]Read from MH i2c: F0 09 00 [16:12:22]MH_I2C_Read... [16:12:22]Read from MH i2c: F0 09 00 2B 08 00 E7 6D A6 66 90 0F 3E 66 CE [16:12:22]GetLastDocTimeStamp 1722182986 [16:12:22]current date 1722183143 [16:12:22]FM_GetShiftState [16:12:22]SAM_PROTO_GetShiftState [16:12:22]wFMCommunicate request_size=4 [16:12:22]MH_SAM_APDU [16:12:22]CAPDU: 80 13 01 00 [16:12:22]Write to MH i2c: E2 08 00 2C 08 80 13 01 00 00 00 00 00 B1 [16:12:22]Write i2c OK [16:12:22]MH_I2C_Read... [16:12:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:22]Read from MH i2c: E2 [16:12:22]MH_I2C_Read... [16:12:22]Read from MH i2c: E2 0E 00 [16:12:22]MH_I2C_Read... [16:12:22]Read from MH i2c: E2 0E 00 2C 08 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 88 [16:12:22]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [16:12:22]wFMCommunicate OK [16:12:22]SAM_PROTO_GetShiftState done [16:12:22]FM_GetShiftState done [16:12:22]opened in 1722125364 [16:12:22]opened+sec_in_day 1722211764 [16:12:22]quantity*price = 350062 [16:12:22]sum+1 = 350064 [16:12:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 3500.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 0.00 Безнал.: 3500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 192 28.07.2024 16:12 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118523 ФПД: 130720165364199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T161223&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118523&fm=130720165364199&tin=02508201610067®Number=0000000000092660&sum=350000 [16:12:23]StoreToDocumentArchive [16:12:23]shift 433 fd 118523 [16:12:23]save to /storage/0433/doc_00118523 [16:12:23]save last doc name /storage/0433/doc_00118523 to /storage/kkm_last_doc_name [16:12:23]save OK [16:12:23]Clear old archive folders... [16:12:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:12:23]tlvbuf is 01E29C40 [16:12:23]SAM_PROTO_ClearQueue [16:12:23]wFMCommunicate request_size=4 [16:12:23]MH_SAM_APDU [16:12:23]CAPDU: 80 09 00 00 [16:12:23]Write to MH i2c: E2 08 00 39 08 80 09 00 00 00 00 00 00 B3 [16:12:23]Write i2c OK [16:12:23]MH_I2C_Read... [16:12:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:23]Read from MH i2c: E2 [16:12:23]MH_I2C_Read... [16:12:23]Read from MH i2c: E2 03 00 [16:12:23]MH_I2C_Read... [16:12:23]Read from MH i2c: E2 03 00 39 08 00 90 00 B5 [16:12:23]RAPDU: 90 00 [16:12:23]wFMCommunicate OK [16:12:23]SAM_PROTO_ClearQueue done [16:12:23]KKMCreateOFDPacket [16:12:23]OFDProtocolAddRootSTLVToBuf [16:12:23]FM_MakeSignedData [16:12:23]FM_MakeSignedData [16:12:23]SAM_PROTO_SignData [16:12:23]wFMCommunicate request_size=4 [16:12:23]MH_SAM_APDU [16:12:23]CAPDU: 80 0D 01 02 [16:12:23]Write to MH i2c: E2 08 00 3A 08 80 0D 01 02 00 00 00 00 BB [16:12:23]Write i2c OK [16:12:23]MH_I2C_Read... [16:12:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:23]Read from MH i2c: E2 [16:12:23]MH_I2C_Read... [16:12:23]Read from MH i2c: E2 03 00 [16:12:23]MH_I2C_Read... [16:12:23]Read from MH i2c: E2 03 00 3A 08 00 90 00 B6 [16:12:23]RAPDU: 90 00 [16:12:23]wFMCommunicate OK [16:12:23]wFMCommunicate request_size=255 [16:12:23]MH_SAM_APDU [16:12:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 E7 6D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FB CE 01 00 35 04 06 00 76 E3 A9 05 [16:12:23]Write to MH i2c: E2 02 01 3B 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 E7 6D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FB CE 01 00 35 04 06 00 76 E3 A9 05 00 00 9F [16:12:23]Write i2c OK [16:12:23]MH_I2C_Read... [16:12:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:24]Read from MH i2c: E2 [16:12:24]MH_I2C_Read... [16:12:24]Read from MH i2c: E2 03 00 [16:12:24]MH_I2C_Read... [16:12:24]Read from MH i2c: E2 03 00 3B 08 00 90 00 B7 [16:12:24]RAPDU: 90 00 [16:12:24]wFMCommunicate OK [16:12:24]wFMCommunicate request_size=7 [16:12:24]MH_SAM_APDU [16:12:24]CAPDU: 80 0D 02 02 02 81 E7 [16:12:24]Write to MH i2c: E2 0A 00 3C 08 80 0D 02 02 02 00 81 E7 00 00 2A [16:12:24]Write i2c OK [16:12:24]MH_I2C_Read... [16:12:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:24]Read from MH i2c: E2 [16:12:24]MH_I2C_Read... [16:12:24]Read from MH i2c: E2 03 00 [16:12:24]MH_I2C_Read... [16:12:24]Read from MH i2c: E2 03 00 3C 08 00 90 00 B8 [16:12:24]RAPDU: 90 00 [16:12:24]wFMCommunicate OK [16:12:24]wFMCommunicate request_size=4 [16:12:24]MH_SAM_APDU [16:12:24]CAPDU: 80 0D 03 02 [16:12:24]Write to MH i2c: E2 08 00 3D 08 80 0D 03 02 00 00 00 00 C0 [16:12:24]Write i2c OK [16:12:24]MH_I2C_Read... [16:12:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:24]Read from MH i2c: E2 [16:12:24]MH_I2C_Read... [16:12:24]Read from MH i2c: E2 0B 00 [16:12:24]MH_I2C_Read... [16:12:24]Read from MH i2c: E2 0B 00 3D 08 00 88 5D AC 17 3F 66 62 7D 90 00 ED [16:12:24]RAPDU: 88 5D AC 17 3F 66 62 7D 90 00 [16:12:24]wFMCommunicate OK [16:12:24]SAM_PROTO_SignData done [16:12:24]FM_MakeSignedData done [16:12:24]CreateOFDProtocolMessage [16:12:24]wFMCommunicate request_size=4 [16:12:24]MH_SAM_APDU [16:12:24]CAPDU: 80 11 00 00 [16:12:24]Write to MH i2c: E2 08 00 3E 08 80 11 00 00 00 00 00 00 C0 [16:12:24]Write i2c OK [16:12:24]MH_I2C_Read... [16:12:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:24]Read from MH i2c: E2 [16:12:24]MH_I2C_Read... [16:12:24]Read from MH i2c: E2 17 00 [16:12:24]MH_I2C_Read... [16:12:24]Read from MH i2c: E2 17 00 3E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1B [16:12:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:12:24]wFMCommunicate OK [16:12:24]CreateOFDProtocolMessage done [16:12:24]OFDSenderStorePacket 118523 [16:12:24]StoreOFDPacket docnum=118523 [16:12:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B2 8C 04 01 F6 E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 E7 6D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FB CE 01 00 35 04 06 00 76 E3 A9 05 81 E7 88 5D AC 17 3F 66 62 7D [16:12:24]CheckFolder [16:12:24]dirname=/storage/ofd_packets [16:12:24]CheckFolder done [16:12:24]ProducePacketName [16:12:24]name=ofd_packets/00118523 [16:12:24]NVStorageSaveData ofd_packets/00118523 [16:12:24]File name is /storage/ofd_packets/00118523 [16:12:24]Write 298 bytes [16:12:24]NVStorageSaveData done [16:12:24]OFDSenderStorePacket done [16:12:24]KKMCreateOFDPacket done [16:12:24]NVStorageSaveData kkm_last_timestamp [16:12:24]File name is /storage/kkm_last_timestamp [16:12:24]Write 4 bytes [16:12:24]NVStorageSaveData done [16:12:24]ExternCall_PrintAddStr [16:12:24]wPrintStart [16:12:24]Write to MH i2c: 01 00 00 3F 08 47 [16:12:24]Write i2c OK [16:12:24]MH_I2C_Read... [16:12:24]Read from MH i2c: 01 [16:12:24]MH_I2C_Read... [16:12:24]Read from MH i2c: 01 07 00 [16:12:24]MH_I2C_Read... [16:12:24]Read from MH i2c: 01 07 00 3F 08 00 00 00 00 00 FF 0F 5C [16:12:24]RasterBufferAndPrint [16:12:24]line Счет N : (1)949395 [16:12:24]line ИНН: 02508201610067 [16:12:24]line Контрольно-Кассовый Чек [16:12:24]line ПРОДАЖА [16:12:24]line ТРК (МРК, ГНК) : 44 [16:12:24]line Товар: 2710194800 [16:12:24]line ДТ-К-5 [16:12:24]line 45.940 * 76.20 [16:12:24]line = 3500.63 [16:12:24]line НДС 12% НСП 1% [16:12:24]line > о реализуемом товаре [16:12:24]line ОКРУГЛЕНИЕ: -0.63 [16:12:24]line ИТОГО: 3500.00 [16:12:24]line НСП 1% : 30.98 [16:12:24]line НДС 12% : 371.75 [16:12:24]line Наличными: 0.00 [16:12:24]line Безнал.: 3500.00 [16:12:24]line Место: АЗС № 134 "Партнер Нефть" [16:12:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:12:24]line СНО: Общий режим [16:12:24]line Чек 192 28.07.2024 16:12 [16:12:24]line Смена: 433 ФФД: 1.0 [16:12:24]line ЗНМ: 0300000044 [16:12:24]line РНМ: 0000000000092660 [16:12:24]line Версия ККМ: 001 [16:12:24]line Платежная система: O! деньги [16:12:24]line ФМ: 0000000000874939 [16:12:24]line ФД: 118523 [16:12:24]line ФПД: 130720165364199 [16:12:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T161223&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118523&fm=130720165364199&tin=02508201610067®Number=0000000000092660&sum=350000 [16:12:24]OFD Sender: Processing packet 118523 [packets to send 86, broken 85] [16:12:24]ProducePacketName [16:12:24]name=ofd_packets/00118523 [16:12:24]OFD Sender: To server: pG, [16:12:24]CommunicateWithHost lk.salyk.kg:30040 [16:12:24]ConnectInit lk.salyk.kg [16:12:24]written 0, free lines is 4095 [16:12:24]Connected sock=10 [16:12:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B2 8C 04 01 F6 E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 E7 6D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FB CE 01 00 35 04 06 00 76 E3 A9 05 81 E7 88 5D AC 17 3F 66 62 7D [16:12:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5E A9 47 00 6C 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 39 33 39 10 04 04 00 FB CE 01 00 F4 03 04 00 77 1B A6 66 B6 04 01 00 00 10 00 FF 46 99 D7 CD 4C [16:12:24]CommunicateWithHost err = 0 [16:12:24]CheckOFDResponse [16:12:24]1017 (14) - 77093643461234 [16:12:24]1041 (16) - 0000000000874939 [16:12:24]1040 (4) - 118523 [16:12:24]1012 (4) - 28.07.2024 10:20 [16:12:24]1206 (1) - 0 [16:12:24]OFD Sender: Remove packet 118523 [16:12:24]ProducePacketName [16:12:24]name=ofd_packets/00118523 [16:12:24]NVStorageDeleteData [16:12:24]Write to MH i2c: 01 00 00 69 08 71 [16:12:24]Write i2c OK [16:12:24]MH_I2C_Read... [16:12:24]Read from MH i2c: 01 [16:12:24]MH_I2C_Read... [16:12:24]Read from MH i2c: 01 07 00 [16:12:24]MH_I2C_Read... [16:12:24]Read from MH i2c: 01 07 00 69 08 00 00 00 00 00 E5 0C 69 [16:12:24]RasterBufferAndPrint [16:12:24]line [16:12:24]line [16:12:24]line [16:12:24]line [16:12:24]line [16:12:24]written 0, free lines is 3307 [16:12:24]MH_Cut [16:12:24]Write to MH i2c: D1 01 00 70 08 01 4A [16:12:24]Write i2c OK [16:12:24]MH_I2C_Read... [16:12:24]Read from MH i2c: D1 [16:12:24]MH_I2C_Read... [16:12:24]Read from MH i2c: D1 01 00 [16:12:24]MH_I2C_Read... [16:12:24]Read from MH i2c: D1 01 00 70 08 00 49 [16:12:24]Write to MH i2c: 01 00 00 71 08 79 [16:12:24]Write i2c OK [16:12:24]MH_I2C_Read... [16:12:25]OFD Sender: No OFD packet to send [16:12:25]*** Cut start [16:12:25]*** Partial cut [16:12:25]*** CUTSNS_PIN = 1 [16:12:25]*** CUTSNS_PIN = 0 [16:12:25]*** Brake cut motor [16:12:26]Read from MH i2c: 01 [16:12:26]MH_I2C_Read... [16:12:26]*** Stop cut motor [16:12:26]*** Cut end [16:12:26]Read from MH i2c: 01 07 00 [16:12:26]MH_I2C_Read... [16:12:26]Read from MH i2c: 01 07 00 71 08 00 00 00 00 00 FF 0F 8E [16:12:26]process_action close_receipt done [16:12:26]requested_data is exist [16:12:26]produce_requested_data [16:12:26]requested_item fm.sn is exist - process it [16:12:26]wFMCommunicate request_size=4 [16:12:26]MH_SAM_APDU [16:12:26]CAPDU: 80 11 00 00 [16:12:26]Write to MH i2c: E2 08 00 72 08 80 11 00 00 00 00 00 00 F4 [16:12:26]Write i2c OK [16:12:26]MH_I2C_Read... [16:12:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:26]Read from MH i2c: E2 [16:12:26]MH_I2C_Read... [16:12:26]Read from MH i2c: E2 17 00 [16:12:26]MH_I2C_Read... [16:12:26]Read from MH i2c: E2 17 00 72 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4F [16:12:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:12:26]wFMCommunicate OK [16:12:26]requested_item fd.num is exist - process it [16:12:26]SAM_PROTO_GetFieldsCounters [16:12:26]wFMCommunicate request_size=4 [16:12:26]MH_SAM_APDU [16:12:26]CAPDU: 80 13 00 00 [16:12:26]Write to MH i2c: E2 08 00 73 08 80 13 00 00 00 00 00 00 F7 [16:12:26]Write i2c OK [16:12:26]MH_I2C_Read... [16:12:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:26]Read from MH i2c: E2 [16:12:26]MH_I2C_Read... [16:12:26]Read from MH i2c: E2 62 00 [16:12:26]MH_I2C_Read... [16:12:26]Read from MH i2c: E2 62 00 73 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FB CE 01 00 0E 04 04 00 B1 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 DA [16:12:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FB CE 01 00 0E 04 04 00 B1 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 [16:12:26]wFMCommunicate OK [16:12:26]SAM_PROTO_GetFieldsCounters done [16:12:26]requested_item shift.num is exist - process it [16:12:26]requested_item shift.opened is exist - process it [16:12:26]req_shift_opened [16:12:26]FM_GetShiftState [16:12:26]SAM_PROTO_GetShiftState [16:12:26]wFMCommunicate request_size=4 [16:12:26]MH_SAM_APDU [16:12:26]CAPDU: 80 13 01 00 [16:12:26]Write to MH i2c: E2 08 00 74 08 80 13 01 00 00 00 00 00 F9 [16:12:26]Write i2c OK [16:12:26]MH_I2C_Read... [16:12:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:26]Read from MH i2c: E2 [16:12:26]MH_I2C_Read... [16:12:26]Read from MH i2c: E2 0E 00 [16:12:26]MH_I2C_Read... [16:12:26]Read from MH i2c: E2 0E 00 74 08 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 D0 [16:12:26]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [16:12:26]wFMCommunicate OK [16:12:26]SAM_PROTO_GetShiftState done [16:12:26]FM_GetShiftState done [16:12:26]req_shift_opened done [16:12:26]requested_item shift.open_date is exist - process it [16:12:26]req_shift_open_date [16:12:26]req_shift_open_date done [16:12:26]produce_requested_data done [16:12:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118523,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [16:12:26]process_action_free close_receipt [16:12:26]json_value_free [16:12:26]json_value_free done [16:12:26]process_json_proto returns [16:12:26]Send response to host [16:12:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118523,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [16:12:26]free response buf [16:12:26]execute_script done [16:12:26]execute_script returns [16:12:26]free content buf [16:12:26]Sock 9.Close socket [16:12:26]Sock 9.Thread stoped [16:12:30]OFD Sender: No OFD packet to send [16:12:35]OFD Sender: No OFD packet to send [16:12:40]OFD Sender: No OFD packet to send [16:12:44]accept exits with 7 [16:12:44]New connection [16:12:44]New thread 3067383140 created [16:12:44]Thread 3067239780 joined [16:12:44]Waiting for new connection... [16:12:44] Sock 7.Parse request [16:12:44]Sock 7.Check first char [16:12:44]Sock 7.First char is OK [16:12:44]request: POST /json_proto HTTP/1.0 [16:12:44]Method: POST [16:12:44]URL: /json_proto [16:12:44]Method is POST - this is cgi request [16:12:44]url: /json_proto [16:12:44]query_string will be loaded in cgi processing [16:12:44]execute_cgi json_proto POST (null) [16:12:44]execute_cgi path=json_proto method=POST [16:12:44]POST find Content-Length [16:12:44]Host: 172.17.45.7:8080 [16:12:44]Content-Length: 674 [16:12:44]Content-Type: application/json [16:12:44] [16:12:44]POST finish read [16:12:44]Found Content-Length = 674 [16:12:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:44]execute_script... [16:12: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)949397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:44]POST & json_proto [16:12:44]process_json_proto [16:12:44]json parsed OK: [16:12:44]protocol is kg_v1.0 [16:12:44]action value=close_receipt [16:12:44]process_action close_receipt [16:12:44]cmd_close_receipt [16:12:44]MH_GetDate [16:12:44]Write to MH i2c: F0 00 00 75 08 6C [16:12:44]Write i2c OK [16:12:44]MH_I2C_Read... [16:12:44]Read from MH i2c: F0 [16:12:44]MH_I2C_Read... [16:12:44]Read from MH i2c: F0 09 00 [16:12:44]MH_I2C_Read... [16:12:44]Read from MH i2c: F0 09 00 75 08 00 FD 6D A6 66 90 0F 3E 66 2E [16:12:44]GetLastDocTimeStamp 1722183143 [16:12:44]current date 1722183165 [16:12:44]FM_GetShiftState [16:12:44]SAM_PROTO_GetShiftState [16:12:44]wFMCommunicate request_size=4 [16:12:44]MH_SAM_APDU [16:12:44]CAPDU: 80 13 01 00 [16:12:44]Write to MH i2c: E2 08 00 76 08 80 13 01 00 00 00 00 00 FB [16:12:44]Write i2c OK [16:12:44]MH_I2C_Read... [16:12:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:44]Read from MH i2c: E2 [16:12:44]MH_I2C_Read... [16:12:44]Read from MH i2c: E2 0E 00 [16:12:44]MH_I2C_Read... [16:12:44]Read from MH i2c: E2 0E 00 76 08 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 D2 [16:12:44]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [16:12:44]wFMCommunicate OK [16:12:44]SAM_PROTO_GetShiftState done [16:12:44]FM_GetShiftState done [16:12:44]opened in 1722125364 [16:12:44]opened+sec_in_day 1722211764 [16:12:44]quantity*price = 50063 [16:12:44]sum+1 = 50064 [16:12:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 193 28.07.2024 16:12 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118524 ФПД: 4559627278180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T161246&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118524&fm=4559627278180&tin=02508201610067®Number=0000000000092660&sum=50000 [16:12:45]StoreToDocumentArchive [16:12:45]shift 433 fd 118524 [16:12:45]save to /storage/0433/doc_00118524 [16:12:45]save last doc name /storage/0433/doc_00118524 to /storage/kkm_last_doc_name [16:12:45]save OK [16:12:45]Clear old archive folders... [16:12:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:12:45]tlvbuf is 01E4A6D0 [16:12:45]SAM_PROTO_ClearQueue [16:12:45]wFMCommunicate request_size=4 [16:12:45]MH_SAM_APDU [16:12:45]CAPDU: 80 09 00 00 [16:12:45]Write to MH i2c: E2 08 00 83 08 80 09 00 00 00 00 00 00 FD [16:12:45]Write i2c OK [16:12:45]MH_I2C_Read... [16:12:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:45]Read from MH i2c: E2 [16:12:45]MH_I2C_Read... [16:12:45]Read from MH i2c: E2 03 00 [16:12:45]MH_I2C_Read... [16:12:45]Read from MH i2c: E2 03 00 83 08 00 90 00 FF [16:12:45]RAPDU: 90 00 [16:12:45]wFMCommunicate OK [16:12:45]SAM_PROTO_ClearQueue done [16:12:45]KKMCreateOFDPacket [16:12:45]OFDProtocolAddRootSTLVToBuf [16:12:45]FM_MakeSignedData [16:12:45]FM_MakeSignedData [16:12:45]SAM_PROTO_SignData [16:12:45]wFMCommunicate request_size=4 [16:12:45]MH_SAM_APDU [16:12:45]CAPDU: 80 0D 01 02 [16:12:45]Write to MH i2c: E2 08 00 84 08 80 0D 01 02 00 00 00 00 05 [16:12:45]Write i2c OK [16:12:45]MH_I2C_Read... [16:12:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:46]Read from MH i2c: E2 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: E2 03 00 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: E2 03 00 84 08 00 90 00 00 [16:12:46]RAPDU: 90 00 [16:12:46]wFMCommunicate OK [16:12:46]wFMCommunicate request_size=255 [16:12:46]MH_SAM_APDU [16:12:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 FE 6D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FC CE 01 00 35 04 06 00 04 25 9E F6 [16:12:46]Write to MH i2c: E2 02 01 85 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 FE 6D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FC CE 01 00 35 04 06 00 04 25 9E F6 00 00 8F [16:12:46]Write i2c OK [16:12:46]MH_I2C_Read... [16:12:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:46]Read from MH i2c: E2 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: E2 03 00 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: E2 03 00 85 08 00 90 00 01 [16:12:46]RAPDU: 90 00 [16:12:46]wFMCommunicate OK [16:12:46]wFMCommunicate request_size=7 [16:12:46]MH_SAM_APDU [16:12:46]CAPDU: 80 0D 02 02 02 D7 64 [16:12:46]Write to MH i2c: E2 0A 00 86 08 80 0D 02 02 02 00 D7 64 00 00 47 [16:12:46]Write i2c OK [16:12:46]MH_I2C_Read... [16:12:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:46]Read from MH i2c: E2 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: E2 03 00 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: E2 03 00 86 08 00 90 00 02 [16:12:46]RAPDU: 90 00 [16:12:46]wFMCommunicate OK [16:12:46]wFMCommunicate request_size=4 [16:12:46]MH_SAM_APDU [16:12:46]CAPDU: 80 0D 03 02 [16:12:46]Write to MH i2c: E2 08 00 87 08 80 0D 03 02 00 00 00 00 0A [16:12:46]Write i2c OK [16:12:46]MH_I2C_Read... [16:12:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:46]Read from MH i2c: E2 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: E2 0B 00 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: E2 0B 00 87 08 00 1F AD 81 CF D9 39 24 DA 90 00 37 [16:12:46]RAPDU: 1F AD 81 CF D9 39 24 DA 90 00 [16:12:46]wFMCommunicate OK [16:12:46]SAM_PROTO_SignData done [16:12:46]FM_MakeSignedData done [16:12:46]CreateOFDProtocolMessage [16:12:46]wFMCommunicate request_size=4 [16:12:46]MH_SAM_APDU [16:12:46]CAPDU: 80 11 00 00 [16:12:46]Write to MH i2c: E2 08 00 88 08 80 11 00 00 00 00 00 00 0A [16:12:46]Write i2c OK [16:12:46]MH_I2C_Read... [16:12:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:46]Read from MH i2c: E2 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: E2 17 00 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: E2 17 00 88 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 65 [16:12:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:12:46]wFMCommunicate OK [16:12:46]CreateOFDProtocolMessage done [16:12:46]OFDSenderStorePacket 118524 [16:12:46]StoreOFDPacket docnum=118524 [16:12:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 57 CA 04 01 65 DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 FE 6D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FC CE 01 00 35 04 06 00 04 25 9E F6 D7 64 1F AD 81 CF D9 39 24 DA [16:12:46]CheckFolder [16:12:46]dirname=/storage/ofd_packets [16:12:46]CheckFolder done [16:12:46]ProducePacketName [16:12:46]name=ofd_packets/00118524 [16:12:46]NVStorageSaveData ofd_packets/00118524 [16:12:46]File name is /storage/ofd_packets/00118524 [16:12:46]Write 298 bytes [16:12:46]NVStorageSaveData done [16:12:46]OFDSenderStorePacket done [16:12:46]KKMCreateOFDPacket done [16:12:46]NVStorageSaveData kkm_last_timestamp [16:12:46]File name is /storage/kkm_last_timestamp [16:12:46]Write 4 bytes [16:12:46]NVStorageSaveData done [16:12:46]ExternCall_PrintAddStr [16:12:46]wPrintStart [16:12:46]Write to MH i2c: 01 00 00 89 08 91 [16:12:46]Write i2c OK [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: 01 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: 01 07 00 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: 01 07 00 89 08 00 00 00 00 00 FF 0F A6 [16:12:46]RasterBufferAndPrint [16:12:46]line Счет N : (1)949397 [16:12:46]line ИНН: 02508201610067 [16:12:46]line Контрольно-Кассовый Чек [16:12:46]line ПРОДАЖА [16:12:46]line ТРК (МРК, ГНК) : 44 [16:12:46]line Товар: 2710194800 [16:12:46]line ДТ-К-5 [16:12:46]line 6.570 * 76.20 [16:12:46]line = 500.63 [16:12:46]line НДС 12% НСП 1% [16:12:46]line > о реализуемом товаре [16:12:46]line ОКРУГЛЕНИЕ: -0.63 [16:12:46]line ИТОГО: 500.00 [16:12:46]line Внесено: 500.00 [16:12:46]line СДАЧА: 0.00 [16:12:46]line НСП 1% : 4.43 [16:12:46]line НДС 12% : 53.16 [16:12:46]line Наличными: 500.00 [16:12:46]line Безнал.: 0.00 [16:12:46]line Место: АЗС № 134 "Партнер Нефть" [16:12:46]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:12:46]line СНО: Общий режим [16:12:46]line Чек 193 28.07.2024 16:12 [16:12:46]line Смена: 433 ФФД: 1.0 [16:12:46]line ЗНМ: 0300000044 [16:12:46]line РНМ: 0000000000092660 [16:12:46]line Версия ККМ: 001 [16:12:46]line ФМ: 0000000000874939 [16:12:46]line ФД: 118524 [16:12:46]line ФПД: 4559627278180 [16:12:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T161246&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118524&fm=4559627278180&tin=02508201610067®Number=0000000000092660&sum=50000 [16:12:46]written 0, free lines is 4095 [16:12:46]OFD Sender: Processing packet 118524 [packets to send 86, broken 85] [16:12:46]ProducePacketName [16:12:46]name=ofd_packets/00118524 [16:12:46]OFD Sender: To server: pG, [16:12:46]CommunicateWithHost lk.salyk.kg:30040 [16:12:46]ConnectInit lk.salyk.kg [16:12:46]Connected sock=10 [16:12: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 39 33 39 0C 01 00 00 57 CA 04 01 65 DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 FE 6D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FC CE 01 00 35 04 06 00 04 25 9E F6 D7 64 1F AD 81 CF D9 39 24 DA [16:12:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3D 2D 47 00 1A 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 39 33 39 10 04 04 00 FC CE 01 00 F4 03 04 00 8D 1B A6 66 B6 04 01 00 00 B6 C4 A1 FE 4E 3F C2 3E [16:12:46]CommunicateWithHost err = 0 [16:12:46]CheckOFDResponse [16:12:46]1017 (14) - 77093643461234 [16:12:46]1041 (16) - 0000000000874939 [16:12:46]1040 (4) - 118524 [16:12:46]1012 (4) - 28.07.2024 10:21 [16:12:46]1206 (1) - 0 [16:12:46]OFD Sender: Remove packet 118524 [16:12:46]ProducePacketName [16:12:46]name=ofd_packets/00118524 [16:12:46]NVStorageDeleteData [16:12:46]Write to MH i2c: 01 00 00 B3 08 BB [16:12:46]Write i2c OK [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: 01 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: 01 07 00 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: 01 07 00 B3 08 00 00 00 00 00 F7 0C C5 [16:12:46]RasterBufferAndPrint [16:12:46]line [16:12:46]line [16:12:46]line [16:12:46]line [16:12:46]line [16:12:46]written 0, free lines is 3326 [16:12:46]MH_Cut [16:12:46]Write to MH i2c: D1 01 00 BA 08 01 94 [16:12:46]Write i2c OK [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: D1 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: D1 01 00 [16:12:46]MH_I2C_Read... [16:12:46]Read from MH i2c: D1 01 00 BA 08 00 93 [16:12:46]Write to MH i2c: 01 00 00 BB 08 C3 [16:12:46]Write i2c OK [16:12:46]MH_I2C_Read... [16:12:47]OFD Sender: No OFD packet to send [16:12:47]*** Cut start [16:12:47]*** Partial cut [16:12:47]*** CUTSNS_PIN = 1 [16:12:47]*** CUTSNS_PIN = 0 [16:12:47]*** Brake cut motor [16:12:48]Read from MH i2c: 01 [16:12:48]MH_I2C_Read... [16:12:48]*** Stop cut motor [16:12:48]*** Cut end [16:12:48]Read from MH i2c: 01 07 00 [16:12:48]MH_I2C_Read... [16:12:48]Read from MH i2c: 01 07 00 BB 08 00 00 00 00 00 FF 0F D8 [16:12:48]process_action close_receipt done [16:12:48]requested_data is exist [16:12:48]produce_requested_data [16:12:48]requested_item fm.sn is exist - process it [16:12:48]wFMCommunicate request_size=4 [16:12:48]MH_SAM_APDU [16:12:48]CAPDU: 80 11 00 00 [16:12:48]Write to MH i2c: E2 08 00 BC 08 80 11 00 00 00 00 00 00 3E [16:12:48]Write i2c OK [16:12:48]MH_I2C_Read... [16:12:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:48]Read from MH i2c: E2 [16:12:48]MH_I2C_Read... [16:12:48]Read from MH i2c: E2 17 00 [16:12:48]MH_I2C_Read... [16:12:48]Read from MH i2c: E2 17 00 BC 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 99 [16:12:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:12:48]wFMCommunicate OK [16:12:48]requested_item fd.num is exist - process it [16:12:48]SAM_PROTO_GetFieldsCounters [16:12:48]wFMCommunicate request_size=4 [16:12:48]MH_SAM_APDU [16:12:48]CAPDU: 80 13 00 00 [16:12:48]Write to MH i2c: E2 08 00 BD 08 80 13 00 00 00 00 00 00 41 [16:12:48]Write i2c OK [16:12:48]MH_I2C_Read... [16:12:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:48]Read from MH i2c: E2 [16:12:48]MH_I2C_Read... [16:12:48]Read from MH i2c: E2 62 00 [16:12:48]MH_I2C_Read... [16:12:48]Read from MH i2c: E2 62 00 BD 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FC CE 01 00 0E 04 04 00 B1 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 28 [16:12:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FC CE 01 00 0E 04 04 00 B1 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 [16:12:48]wFMCommunicate OK [16:12:48]SAM_PROTO_GetFieldsCounters done [16:12:48]requested_item shift.num is exist - process it [16:12:48]requested_item shift.opened is exist - process it [16:12:48]req_shift_opened [16:12:48]FM_GetShiftState [16:12:48]SAM_PROTO_GetShiftState [16:12:48]wFMCommunicate request_size=4 [16:12:48]MH_SAM_APDU [16:12:48]CAPDU: 80 13 01 00 [16:12:48]Write to MH i2c: E2 08 00 BE 08 80 13 01 00 00 00 00 00 43 [16:12:48]Write i2c OK [16:12:48]MH_I2C_Read... [16:12:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:48]Read from MH i2c: E2 [16:12:48]MH_I2C_Read... [16:12:48]Read from MH i2c: E2 0E 00 [16:12:48]MH_I2C_Read... [16:12:48]Read from MH i2c: E2 0E 00 BE 08 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 1A [16:12:48]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [16:12:48]wFMCommunicate OK [16:12:48]SAM_PROTO_GetShiftState done [16:12:48]FM_GetShiftState done [16:12:48]req_shift_opened done [16:12:48]requested_item shift.open_date is exist - process it [16:12:48]req_shift_open_date [16:12:48]req_shift_open_date done [16:12:48]produce_requested_data done [16:12:48]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118524,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [16:12:48]process_action_free close_receipt [16:12:48]json_value_free [16:12:48]json_value_free done [16:12:48]process_json_proto returns [16:12:48]Send response to host [16:12:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118524,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [16:12:48]free response buf [16:12:48]execute_script done [16:12:48]execute_script returns [16:12:48]free content buf [16:12:48]Sock 7.Close socket [16:12:48]Sock 7.Thread stoped [16:12:52]OFD Sender: No OFD packet to send [16:12:57]OFD Sender: No OFD packet to send [16:13:02]OFD Sender: No OFD packet to send [16:13:07]OFD Sender: No OFD packet to send [16:13:12]OFD Sender: No OFD packet to send [16:13:17]OFD Sender: No OFD packet to send [16:13:22]OFD Sender: No OFD packet to send [16:13:27]OFD Sender: No OFD packet to send [16:13:32]OFD Sender: No OFD packet to send [16:13:37]OFD Sender: No OFD packet to send [16:13:37]accept exits with 9 [16:13:37]New connection [16:13:37]New thread 3067239780 created [16:13:37]Thread 3067383140 joined [16:13:37]Waiting for new connection... [16:13:37] Sock 9.Parse request [16:13:37]Sock 9.Check first char [16:13:37]Sock 9.First char is OK [16:13:37]request: POST /json_proto HTTP/1.0 [16:13:37]Method: POST [16:13:37]URL: /json_proto [16:13:37]Method is POST - this is cgi request [16:13:37]url: /json_proto [16:13:37]query_string will be loaded in cgi processing [16:13:37]execute_cgi json_proto POST (null) [16:13:37]execute_cgi path=json_proto method=POST [16:13:37]POST find Content-Length [16:13:37]Host: 172.17.45.7:8080 [16:13:37]Content-Length: 731 [16:13:37]Content-Type: application/json [16:13:37] [16:13:37]POST finish read [16:13:37]Found Content-Length = 731 [16:13:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118524, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:37]execute_script... [16:13:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118524, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:37]POST & json_proto [16:13:37]process_json_proto [16:13:37]json parsed OK: [16:13:37]protocol is kg_v1.0 [16:13:37]action value=close_receipt [16:13:37]process_action close_receipt [16:13:37]cmd_close_receipt [16:13:37]MH_GetDate [16:13:37]Write to MH i2c: F0 00 00 BF 08 B6 [16:13:37]Write i2c OK [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: F0 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: F0 09 00 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: F0 09 00 BF 08 00 33 6E A6 66 90 0F 3E 66 AF [16:13:37]GetLastDocTimeStamp 1722183166 [16:13:37]current date 1722183219 [16:13:37]FM_GetShiftState [16:13:37]SAM_PROTO_GetShiftState [16:13:37]wFMCommunicate request_size=4 [16:13:37]MH_SAM_APDU [16:13:37]CAPDU: 80 13 01 00 [16:13:37]Write to MH i2c: E2 08 00 C0 08 80 13 01 00 00 00 00 00 45 [16:13:37]Write i2c OK [16:13:37]MH_I2C_Read... [16:13:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:37]Read from MH i2c: E2 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: E2 0E 00 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: E2 0E 00 C0 08 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 1C [16:13:37]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [16:13:37]wFMCommunicate OK [16:13:37]SAM_PROTO_GetShiftState done [16:13:37]FM_GetShiftState done [16:13:37]opened in 1722125364 [16:13:37]opened+sec_in_day 1722211764 [16:13:37]quantity*price = 50063 [16:13:37]sum+1 = 50064 [16:13:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 194 28.07.2024 16:13 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 118524 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 118525 ФПД: 66408568575260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T161339&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118525&fm=66408568575260&tin=02508201610067®Number=0000000000092660&sum=50000 [16:13:39]StoreToDocumentArchive [16:13:39]shift 433 fd 118525 [16:13:39]save to /storage/0433/doc_00118525 [16:13:39]save last doc name /storage/0433/doc_00118525 to /storage/kkm_last_doc_name [16:13:39]save OK [16:13:39]Clear old archive folders... [16:13:39]ProcessDocumentItem done err = 0, tmpTLVsize=276 [16:13:39]tlvbuf is 01E5F030 [16:13:39]SAM_PROTO_ClearQueue [16:13:39]wFMCommunicate request_size=4 [16:13:39]MH_SAM_APDU [16:13:39]CAPDU: 80 09 00 00 [16:13:39]Write to MH i2c: E2 08 00 CF 08 80 09 00 00 00 00 00 00 49 [16:13:39]Write i2c OK [16:13:39]MH_I2C_Read... [16:13:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:39]Read from MH i2c: E2 [16:13:39]MH_I2C_Read... [16:13:39]Read from MH i2c: E2 03 00 [16:13:39]MH_I2C_Read... [16:13:39]Read from MH i2c: E2 03 00 CF 08 00 90 00 4B [16:13:39]RAPDU: 90 00 [16:13:39]wFMCommunicate OK [16:13:39]SAM_PROTO_ClearQueue done [16:13:39]KKMCreateOFDPacket [16:13:39]OFDProtocolAddRootSTLVToBuf [16:13:39]FM_MakeSignedData [16:13:39]FM_MakeSignedData [16:13:39]SAM_PROTO_SignData [16:13:39]wFMCommunicate request_size=4 [16:13:39]MH_SAM_APDU [16:13:39]CAPDU: 80 0D 01 02 [16:13:39]Write to MH i2c: E2 08 00 D0 08 80 0D 01 02 00 00 00 00 51 [16:13:39]Write i2c OK [16:13:39]MH_I2C_Read... [16:13:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:39]Read from MH i2c: E2 [16:13:39]MH_I2C_Read... [16:13:39]Read from MH i2c: E2 03 00 [16:13:39]MH_I2C_Read... [16:13:39]Read from MH i2c: E2 03 00 D0 08 00 90 00 4C [16:13:39]RAPDU: 90 00 [16:13:39]wFMCommunicate OK [16:13:39]wFMCommunicate request_size=255 [16:13:39]MH_SAM_APDU [16:13:39]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 33 6E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 FC CE 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 [16:13:39]Write to MH i2c: E2 02 01 D1 08 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 33 6E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 FC CE 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 00 00 47 [16:13:39]Write i2c OK [16:13:39]MH_I2C_Read... [16:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:39]Read from MH i2c: E2 [16:13:39]MH_I2C_Read... [16:13:39]Read from MH i2c: E2 03 00 [16:13:39]MH_I2C_Read... [16:13:39]Read from MH i2c: E2 03 00 D1 08 00 90 00 4D [16:13:39]RAPDU: 90 00 [16:13:39]wFMCommunicate OK [16:13:39]wFMCommunicate request_size=35 [16:13:39]MH_SAM_APDU [16:13:39]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FD CE 01 00 35 04 06 00 3C 65 F3 23 D5 1C [16:13:39]Write to MH i2c: E2 26 00 D2 08 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FD CE 01 00 35 04 06 00 3C 65 F3 23 D5 1C 00 00 C3 [16:13:39]Write i2c OK [16:13:39]MH_I2C_Read... [16:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:39]Read from MH i2c: E2 [16:13:39]MH_I2C_Read... [16:13:39]Read from MH i2c: E2 03 00 [16:13:39]MH_I2C_Read... [16:13:39]Read from MH i2c: E2 03 00 D2 08 00 90 00 4E [16:13:39]RAPDU: 90 00 [16:13:39]wFMCommunicate OK [16:13:39]wFMCommunicate request_size=4 [16:13:39]MH_SAM_APDU [16:13:39]CAPDU: 80 0D 03 02 [16:13:39]Write to MH i2c: E2 08 00 D3 08 80 0D 03 02 00 00 00 00 56 [16:13:39]Write i2c OK [16:13:39]MH_I2C_Read... [16:13:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:39]Read from MH i2c: E2 [16:13:39]MH_I2C_Read... [16:13:39]Read from MH i2c: E2 0B 00 [16:13:39]MH_I2C_Read... [16:13:39]Read from MH i2c: E2 0B 00 D3 08 00 B5 88 5D 60 55 32 DB 10 90 00 C3 [16:13:39]RAPDU: B5 88 5D 60 55 32 DB 10 90 00 [16:13:39]wFMCommunicate OK [16:13:39]SAM_PROTO_SignData done [16:13:39]FM_MakeSignedData done [16:13:39]CreateOFDProtocolMessage [16:13:39]wFMCommunicate request_size=4 [16:13:39]MH_SAM_APDU [16:13:39]CAPDU: 80 11 00 00 [16:13:39]Write to MH i2c: E2 08 00 D4 08 80 11 00 00 00 00 00 00 56 [16:13:39]Write i2c OK [16:13:39]MH_I2C_Read... [16:13:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:39]Read from MH i2c: E2 [16:13:39]MH_I2C_Read... [16:13:39]Read from MH i2c: E2 17 00 [16:13:39]MH_I2C_Read... [16:13:39]Read from MH i2c: E2 17 00 D4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B1 [16:13:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:13:39]wFMCommunicate OK [16:13:39]CreateOFDProtocolMessage done [16:13:39]OFDSenderStorePacket 118525 [16:13:39]StoreOFDPacket docnum=118525 [16:13:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 28 01 00 00 50 19 20 01 64 2F 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 33 6E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 FC CE 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FD CE 01 00 35 04 06 00 3C 65 F3 23 D5 1C B5 88 5D 60 55 32 DB 10 [16:13:39]CheckFolder [16:13:39]dirname=/storage/ofd_packets [16:13:39]CheckFolder done [16:13:39]ProducePacketName [16:13:39]name=ofd_packets/00118525 [16:13:39]NVStorageSaveData ofd_packets/00118525 [16:13:39]File name is /storage/ofd_packets/00118525 [16:13:39]Write 326 bytes [16:13:39]NVStorageSaveData done [16:13:39]OFDSenderStorePacket done [16:13:39]KKMCreateOFDPacket done [16:13:39]NVStorageSaveData kkm_last_timestamp [16:13:39]File name is /storage/kkm_last_timestamp [16:13:39]Write 4 bytes [16:13:39]NVStorageSaveData done [16:13:39]ExternCall_PrintAddStr [16:13:39]wPrintStart [16:13:39]Write to MH i2c: 01 00 00 D5 08 DD [16:13:39]Write i2c OK [16:13:39]MH_I2C_Read... [16:13:39]Read from MH i2c: 01 [16:13:39]MH_I2C_Read... [16:13:39]Read from MH i2c: 01 07 00 [16:13:39]MH_I2C_Read... [16:13:39]Read from MH i2c: 01 07 00 D5 08 00 00 00 00 00 FF 0F F2 [16:13:39]RasterBufferAndPrint [16:13:39]line Счет N : (1)949397 [16:13:39]line ИНН: 02508201610067 [16:13:39]line Контрольно-Кассовый Чек [16:13:39]line ВОЗВРАТ ПРОДАЖИ [16:13:39]line ТРК (МРК, ГНК) : 44 [16:13:39]line Товар: 2710194800 [16:13:39]line ДТ-К-5 [16:13:39]line 6.570 * 76.20 [16:13:39]line = 500.63 [16:13:39]line НДС 12% НСП 1% [16:13:39]line > о реализуемом товаре [16:13:39]line ОКРУГЛЕНИЕ: -0.63 [16:13:39]line ИТОГО: 500.00 [16:13:39]line НСП 1% : 4.43 [16:13:39]line НДС 12% : 53.16 [16:13:39]line Наличными: 500.00 [16:13:39]line Безнал.: 0.00 [16:13:39]line Место: АЗС № 134 "Партнер Нефть" [16:13:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:13:39]line СНО: Общий режим [16:13:39]line Чек 194 28.07.2024 16:13 [16:13:39]line Смена: 433 ФФД: 1.0 [16:13:39]line ЗНМ: 0300000044 [16:13:39]line РНМ: 0000000000092660 [16:13:39]line Версия ККМ: 001 [16:13:39]line ФД осн.: 118524 [16:13:39]line ФМ осн.: 0000000000874939 [16:13:39]line ФМ: 0000000000874939 [16:13:39]line ФД: 118525 [16:13:39]line ФПД: 66408568575260 [16:13:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T161339&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118525&fm=66408568575260&tin=02508201610067®Number=0000000000092660&sum=50000 [16:13:40]OFD Sender: Processing packet 118525 [packets to send 86, broken 85] [16:13:40]ProducePacketName [16:13:40]name=ofd_packets/00118525 [16:13:40]OFD Sender: To server: pG, [16:13:40]CommunicateWithHost lk.salyk.kg:30040 [16:13:40]ConnectInit lk.salyk.kg [16:13:40]written 0, free lines is 4095 [16:13:40]Connected sock=10 [16:13:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 28 01 00 00 50 19 20 01 64 2F 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 33 6E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 FC CE 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FD CE 01 00 35 04 06 00 3C 65 F3 23 D5 1C B5 88 5D 60 55 32 DB 10 [16:13:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 37 9F 47 00 0B 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 39 33 39 10 04 04 00 FD CE 01 00 F4 03 04 00 C3 1B A6 66 B6 04 01 00 00 37 21 C7 3A 14 33 98 37 [16:13:40]CommunicateWithHost err = 0 [16:13:40]CheckOFDResponse [16:13:40]1017 (14) - 77093643461234 [16:13:40]1041 (16) - 0000000000874939 [16:13:40]1040 (4) - 118525 [16:13:40]1012 (4) - 28.07.2024 10:21 [16:13:40]1206 (1) - 0 [16:13:40]OFD Sender: Remove packet 118525 [16:13:40]ProducePacketName [16:13:40]name=ofd_packets/00118525 [16:13:40]NVStorageDeleteData [16:13:40]Write to MH i2c: 01 00 00 FF 08 07 [16:13:40]Write i2c OK [16:13:40]MH_I2C_Read... [16:13:40]Read from MH i2c: 01 [16:13:40]MH_I2C_Read... [16:13:40]Read from MH i2c: 01 07 00 [16:13:40]MH_I2C_Read... [16:13:40]Read from MH i2c: 01 07 00 FF 08 00 00 00 00 00 FD 0C 17 [16:13:40]RasterBufferAndPrint [16:13:40]line [16:13:40]line [16:13:40]line [16:13:40]line [16:13:40]line [16:13:40]written 0, free lines is 3332 [16:13:40]MH_Cut [16:13:40]Write to MH i2c: D1 01 00 06 09 01 E1 [16:13:40]Write i2c OK [16:13:40]MH_I2C_Read... [16:13:40]Read from MH i2c: D1 [16:13:40]MH_I2C_Read... [16:13:40]Read from MH i2c: D1 01 00 [16:13:40]MH_I2C_Read... [16:13:40]Read from MH i2c: D1 01 00 06 09 00 E0 [16:13:40]Write to MH i2c: 01 00 00 07 09 10 [16:13:40]Write i2c OK [16:13:40]MH_I2C_Read... [16:13:40]OFD Sender: No OFD packet to send [16:13:41]*** Cut start [16:13:41]*** Partial cut [16:13:41]*** CUTSNS_PIN = 1 [16:13:41]*** CUTSNS_PIN = 0 [16:13:41]*** Brake cut motor [16:13:41]Read from MH i2c: 01 [16:13:41]MH_I2C_Read... [16:13:41]*** Stop cut motor [16:13:41]*** Cut end [16:13:41]Read from MH i2c: 01 07 00 [16:13:41]MH_I2C_Read... [16:13:41]Read from MH i2c: 01 07 00 07 09 00 00 00 00 00 FF 0F 25 [16:13:41]process_action close_receipt done [16:13:41]requested_data is exist [16:13:41]produce_requested_data [16:13:41]requested_item fm.sn is exist - process it [16:13:41]wFMCommunicate request_size=4 [16:13:41]MH_SAM_APDU [16:13:41]CAPDU: 80 11 00 00 [16:13:41]Write to MH i2c: E2 08 00 08 09 80 11 00 00 00 00 00 00 8B [16:13:41]Write i2c OK [16:13:41]MH_I2C_Read... [16:13:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:41]Read from MH i2c: E2 [16:13:41]MH_I2C_Read... [16:13:41]Read from MH i2c: E2 17 00 [16:13:41]MH_I2C_Read... [16:13:41]Read from MH i2c: E2 17 00 08 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E6 [16:13:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:13:41]wFMCommunicate OK [16:13:41]requested_item fd.num is exist - process it [16:13:41]SAM_PROTO_GetFieldsCounters [16:13:41]wFMCommunicate request_size=4 [16:13:41]MH_SAM_APDU [16:13:41]CAPDU: 80 13 00 00 [16:13:41]Write to MH i2c: E2 08 00 09 09 80 13 00 00 00 00 00 00 8E [16:13:41]Write i2c OK [16:13:41]MH_I2C_Read... [16:13:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:42]Read from MH i2c: E2 [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: E2 62 00 [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: E2 62 00 09 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FD CE 01 00 0E 04 04 00 B1 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 79 [16:13:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FD CE 01 00 0E 04 04 00 B1 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 [16:13:42]wFMCommunicate OK [16:13:42]SAM_PROTO_GetFieldsCounters done [16:13:42]requested_item shift.num is exist - process it [16:13:42]requested_item shift.opened is exist - process it [16:13:42]req_shift_opened [16:13:42]FM_GetShiftState [16:13:42]SAM_PROTO_GetShiftState [16:13:42]wFMCommunicate request_size=4 [16:13:42]MH_SAM_APDU [16:13:42]CAPDU: 80 13 01 00 [16:13:42]Write to MH i2c: E2 08 00 0A 09 80 13 01 00 00 00 00 00 90 [16:13:42]Write i2c OK [16:13:42]MH_I2C_Read... [16:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:42]Read from MH i2c: E2 [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: E2 0E 00 [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: E2 0E 00 0A 09 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 67 [16:13:42]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [16:13:42]wFMCommunicate OK [16:13:42]SAM_PROTO_GetShiftState done [16:13:42]FM_GetShiftState done [16:13:42]req_shift_opened done [16:13:42]requested_item shift.open_date is exist - process it [16:13:42]req_shift_open_date [16:13:42]req_shift_open_date done [16:13:42]produce_requested_data done [16:13:42]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118525,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [16:13:42]process_action_free close_receipt [16:13:42]json_value_free [16:13:42]json_value_free done [16:13:42]process_json_proto returns [16:13:42]Send response to host [16:13:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118525,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [16:13:42]free response buf [16:13:42]execute_script done [16:13:42]execute_script returns [16:13:42]free content buf [16:13:42]Sock 9.Close socket [16:13:42]Sock 9.Thread stoped [16:13:42]accept exits with 7 [16:13:42]New connection [16:13:42]New thread 3067383140 created [16:13:42]Thread 3067239780 joined [16:13:42]Waiting for new connection... [16:13:42] Sock 7.Parse request [16:13:42]Sock 7.Check first char [16:13:42]Sock 7.First char is OK [16:13:42]request: POST /json_proto HTTP/1.0 [16:13:42]Method: POST [16:13:42]URL: /json_proto [16:13:42]Method is POST - this is cgi request [16:13:42]url: /json_proto [16:13:42]query_string will be loaded in cgi processing [16:13:42]execute_cgi json_proto POST (null) [16:13:42]execute_cgi path=json_proto method=POST [16:13:42]POST find Content-Length [16:13:42]Host: 172.17.45.7:8080 [16:13:42]Content-Length: 671 [16:13:42]Content-Type: application/json [16:13:42] [16:13:42]POST finish read [16:13:42]Found Content-Length = 671 [16:13:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 0.920, "sum" : 70.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 70.00, "payments": [ { "type": 0, "sum" : 70.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:42]execute_script... [16:13: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)949397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 0.920, "sum" : 70.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 70.00, "payments": [ { "type": 0, "sum" : 70.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:42]POST & json_proto [16:13:42]process_json_proto [16:13:42]json parsed OK: [16:13:42]protocol is kg_v1.0 [16:13:42]action value=close_receipt [16:13:42]process_action close_receipt [16:13:42]cmd_close_receipt [16:13:42]MH_GetDate [16:13:42]Write to MH i2c: F0 00 00 0B 09 03 [16:13:42]Write i2c OK [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: F0 [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: F0 09 00 [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: F0 09 00 0B 09 00 37 6E A6 66 90 0F 3E 66 00 [16:13:42]GetLastDocTimeStamp 1722183219 [16:13:42]current date 1722183223 [16:13:42]FM_GetShiftState [16:13:42]SAM_PROTO_GetShiftState [16:13:42]wFMCommunicate request_size=4 [16:13:42]MH_SAM_APDU [16:13:42]CAPDU: 80 13 01 00 [16:13:42]Write to MH i2c: E2 08 00 0C 09 80 13 01 00 00 00 00 00 92 [16:13:42]Write i2c OK [16:13:42]MH_I2C_Read... [16:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:42]Read from MH i2c: E2 [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: E2 0E 00 [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: E2 0E 00 0C 09 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 69 [16:13:42]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [16:13:42]wFMCommunicate OK [16:13:42]SAM_PROTO_GetShiftState done [16:13:42]FM_GetShiftState done [16:13:42]opened in 1722125364 [16:13:42]opened+sec_in_day 1722211764 [16:13:42]quantity*price = 7010 [16:13:42]sum+1 = 7011 [16:13:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 70.00 Внесено: 500.00 СДАЧА: 430.00 НСП 1% : 0.62 НДС 12% : 7.44 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 195 28.07.2024 16:13 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118526 ФПД: 261820235169466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T161343&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118526&fm=261820235169466&tin=02508201610067®Number=0000000000092660&sum=7000 [16:13:44]StoreToDocumentArchive [16:13:44]shift 433 fd 118526 [16:13:44]save to /storage/0433/doc_00118526 [16:13:44]save last doc name /storage/0433/doc_00118526 to /storage/kkm_last_doc_name [16:13:44]save OK [16:13:44]Clear old archive folders... [16:13:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:13:44]tlvbuf is 01E6BDA0 [16:13:44]SAM_PROTO_ClearQueue [16:13:44]wFMCommunicate request_size=4 [16:13:44]MH_SAM_APDU [16:13:44]CAPDU: 80 09 00 00 [16:13:44]Write to MH i2c: E2 08 00 19 09 80 09 00 00 00 00 00 00 94 [16:13:44]Write i2c OK [16:13:44]MH_I2C_Read... [16:13:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:44]Read from MH i2c: E2 [16:13:44]MH_I2C_Read... [16:13:44]Read from MH i2c: E2 03 00 [16:13:44]MH_I2C_Read... [16:13:44]Read from MH i2c: E2 03 00 19 09 00 90 00 96 [16:13:44]RAPDU: 90 00 [16:13:44]wFMCommunicate OK [16:13:44]SAM_PROTO_ClearQueue done [16:13:44]KKMCreateOFDPacket [16:13:44]OFDProtocolAddRootSTLVToBuf [16:13:44]FM_MakeSignedData [16:13:44]FM_MakeSignedData [16:13:44]SAM_PROTO_SignData [16:13:44]wFMCommunicate request_size=4 [16:13:44]MH_SAM_APDU [16:13:44]CAPDU: 80 0D 01 02 [16:13:44]Write to MH i2c: E2 08 00 1A 09 80 0D 01 02 00 00 00 00 9C [16:13:44]Write i2c OK [16:13:44]MH_I2C_Read... [16:13:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:44]Read from MH i2c: E2 [16:13:44]MH_I2C_Read... [16:13:44]Read from MH i2c: E2 03 00 [16:13:44]MH_I2C_Read... [16:13:44]Read from MH i2c: E2 03 00 1A 09 00 90 00 97 [16:13:44]RAPDU: 90 00 [16:13:44]wFMCommunicate OK [16:13:44]wFMCommunicate request_size=255 [16:13:44]MH_SAM_APDU [16:13:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 03 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 62 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 37 6E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FE CE 01 00 35 04 06 00 EE 1F C6 1C [16:13:44]Write to MH i2c: E2 02 01 1B 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 03 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 62 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 37 6E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FE CE 01 00 35 04 06 00 EE 1F C6 1C 00 00 ED [16:13:44]Write i2c OK [16:13:44]MH_I2C_Read... [16:13:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:44]Read from MH i2c: E2 [16:13:44]MH_I2C_Read... [16:13:44]Read from MH i2c: E2 03 00 [16:13:44]MH_I2C_Read... [16:13:44]Read from MH i2c: E2 03 00 1B 09 00 90 00 98 [16:13:44]RAPDU: 90 00 [16:13:44]wFMCommunicate OK [16:13:44]wFMCommunicate request_size=7 [16:13:44]MH_SAM_APDU [16:13:44]CAPDU: 80 0D 02 02 02 BE BA [16:13:44]Write to MH i2c: E2 0A 00 1C 09 80 0D 02 02 02 00 BE BA 00 00 1B [16:13:44]Write i2c OK [16:13:44]MH_I2C_Read... [16:13:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:44]Read from MH i2c: E2 [16:13:44]MH_I2C_Read... [16:13:44]Read from MH i2c: E2 03 00 [16:13:44]MH_I2C_Read... [16:13:44]Read from MH i2c: E2 03 00 1C 09 00 90 00 99 [16:13:44]RAPDU: 90 00 [16:13:44]wFMCommunicate OK [16:13:44]wFMCommunicate request_size=4 [16:13:44]MH_SAM_APDU [16:13:44]CAPDU: 80 0D 03 02 [16:13:44]Write to MH i2c: E2 08 00 1D 09 80 0D 03 02 00 00 00 00 A1 [16:13:44]Write i2c OK [16:13:44]MH_I2C_Read... [16:13:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:44]Read from MH i2c: E2 [16:13:44]MH_I2C_Read... [16:13:44]Read from MH i2c: E2 0B 00 [16:13:44]MH_I2C_Read... [16:13:44]Read from MH i2c: E2 0B 00 1D 09 00 FA FB 46 FA DA 9F 55 8D 90 00 32 [16:13:44]RAPDU: FA FB 46 FA DA 9F 55 8D 90 00 [16:13:44]wFMCommunicate OK [16:13:44]SAM_PROTO_SignData done [16:13:44]FM_MakeSignedData done [16:13:44]CreateOFDProtocolMessage [16:13:44]wFMCommunicate request_size=4 [16:13:44]MH_SAM_APDU [16:13:44]CAPDU: 80 11 00 00 [16:13:44]Write to MH i2c: E2 08 00 1E 09 80 11 00 00 00 00 00 00 A1 [16:13:44]Write i2c OK [16:13:44]MH_I2C_Read... [16:13:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:44]Read from MH i2c: E2 [16:13:44]MH_I2C_Read... [16:13:44]Read from MH i2c: E2 17 00 [16:13:44]MH_I2C_Read... [16:13:44]Read from MH i2c: E2 17 00 1E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FC [16:13:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:13:44]wFMCommunicate OK [16:13:44]CreateOFDProtocolMessage done [16:13:44]OFDSenderStorePacket 118526 [16:13:44]StoreOFDPacket docnum=118526 [16:13:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F2 F6 04 01 86 3B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 03 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 62 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 37 6E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FE CE 01 00 35 04 06 00 EE 1F C6 1C BE BA FA FB 46 FA DA 9F 55 8D [16:13:44]CheckFolder [16:13:44]dirname=/storage/ofd_packets [16:13:44]CheckFolder done [16:13:44]ProducePacketName [16:13:44]name=ofd_packets/00118526 [16:13:44]NVStorageSaveData ofd_packets/00118526 [16:13:44]File name is /storage/ofd_packets/00118526 [16:13:44]Write 298 bytes [16:13:44]NVStorageSaveData done [16:13:44]OFDSenderStorePacket done [16:13:44]KKMCreateOFDPacket done [16:13:44]NVStorageSaveData kkm_last_timestamp [16:13:44]File name is /storage/kkm_last_timestamp [16:13:44]Write 4 bytes [16:13:44]NVStorageSaveData done [16:13:44]ExternCall_PrintAddStr [16:13:44]wPrintStart [16:13:44]Write to MH i2c: 01 00 00 1F 09 28 [16:13:44]Write i2c OK [16:13:44]MH_I2C_Read... [16:13:44]Read from MH i2c: 01 [16:13:44]MH_I2C_Read... [16:13:44]Read from MH i2c: 01 07 00 [16:13:44]MH_I2C_Read... [16:13:44]Read from MH i2c: 01 07 00 1F 09 00 00 00 00 00 FF 0F 3D [16:13:44]RasterBufferAndPrint [16:13:44]line Счет N : (1)949397 [16:13:44]line ИНН: 02508201610067 [16:13:44]line Контрольно-Кассовый Чек [16:13:44]line ПРОДАЖА [16:13:44]line ТРК (МРК, ГНК) : 44 [16:13:44]line Товар: 2710194800 [16:13:44]line ДТ-К-5 [16:13:44]line 0.920 * 76.20 [16:13:44]line = 70.10 [16:13:44]line НДС 12% НСП 1% [16:13:44]line > о реализуемом товаре [16:13:44]line ОКРУГЛЕНИЕ: -0.10 [16:13:44]line ИТОГО: 70.00 [16:13:44]line Внесено: 500.00 [16:13:44]line СДАЧА: 430.00 [16:13:44]line НСП 1% : 0.62 [16:13:44]line НДС 12% : 7.44 [16:13:44]line Наличными: 70.00 [16:13:44]line Безнал.: 0.00 [16:13:44]line Место: АЗС № 134 "Партнер Нефть" [16:13:44]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:13:44]line СНО: Общий режим [16:13:44]line Чек 195 28.07.2024 16:13 [16:13:44]line Смена: 433 ФФД: 1.0 [16:13:44]line ЗНМ: 0300000044 [16:13:44]line РНМ: 0000000000092660 [16:13:44]line Версия ККМ: 001 [16:13:44]line ФМ: 0000000000874939 [16:13:44]line ФД: 118526 [16:13:44]line ФПД: 261820235169466 [16:13:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T161343&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118526&fm=261820235169466&tin=02508201610067®Number=0000000000092660&sum=7000 [16:13:44]written 0, free lines is 4095 [16:13:44]OFD Sender: Processing packet 118526 [packets to send 86, broken 85] [16:13:44]ProducePacketName [16:13:44]name=ofd_packets/00118526 [16:13:44]OFD Sender: To server: pG, [16:13:44]CommunicateWithHost lk.salyk.kg:30040 [16:13:44]ConnectInit lk.salyk.kg [16:13:44]Connected sock=10 [16:13:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F2 F6 04 01 86 3B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 03 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 62 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 37 6E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FE CE 01 00 35 04 06 00 EE 1F C6 1C BE BA FA FB 46 FA DA 9F 55 8D [16:13:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 90 A2 47 00 84 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FE CE 01 00 F4 03 04 00 C7 1B A6 66 B6 04 01 00 00 AA 6F 8D FE A9 12 83 1F [16:13:45]CommunicateWithHost err = 0 [16:13:45]CheckOFDResponse [16:13:45]1017 (14) - 77093643461234 [16:13:45]1041 (16) - 0000000000874939 [16:13:45]1040 (4) - 118526 [16:13:45]1012 (4) - 28.07.2024 10:21 [16:13:45]1206 (1) - 0 [16:13:45]OFD Sender: Remove packet 118526 [16:13:45]ProducePacketName [16:13:45]name=ofd_packets/00118526 [16:13:45]NVStorageDeleteData [16:13:45]Write to MH i2c: 01 00 00 49 09 52 [16:13:45]Write i2c OK [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: 01 [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: 01 07 00 [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: 01 07 00 49 09 00 00 00 00 00 F5 0C 5A [16:13:45]RasterBufferAndPrint [16:13:45]line [16:13:45]line [16:13:45]line [16:13:45]line [16:13:45]line [16:13:45]written 0, free lines is 3333 [16:13:45]MH_Cut [16:13:45]Write to MH i2c: D1 01 00 50 09 01 2B [16:13:45]Write i2c OK [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: D1 [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: D1 01 00 [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: D1 01 00 50 09 00 2A [16:13:45]Write to MH i2c: 01 00 00 51 09 5A [16:13:45]Write i2c OK [16:13:45]MH_I2C_Read... [16:13:45]OFD Sender: No OFD packet to send [16:13:45]*** Cut start [16:13:45]*** Partial cut [16:13:45]*** CUTSNS_PIN = 1 [16:13:45]*** CUTSNS_PIN = 0 [16:13:46]*** Brake cut motor [16:13:46]Read from MH i2c: 01 [16:13:46]MH_I2C_Read... [16:13:46]*** Stop cut motor [16:13:46]*** Cut end [16:13:46]Read from MH i2c: 01 07 00 [16:13:46]MH_I2C_Read... [16:13:46]Read from MH i2c: 01 07 00 51 09 00 00 00 00 00 FF 0F 6F [16:13:46]process_action close_receipt done [16:13:46]requested_data is exist [16:13:46]produce_requested_data [16:13:46]requested_item fm.sn is exist - process it [16:13:46]wFMCommunicate request_size=4 [16:13:46]MH_SAM_APDU [16:13:46]CAPDU: 80 11 00 00 [16:13:46]Write to MH i2c: E2 08 00 52 09 80 11 00 00 00 00 00 00 D5 [16:13:46]Write i2c OK [16:13:46]MH_I2C_Read... [16:13:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:46]Read from MH i2c: E2 [16:13:46]MH_I2C_Read... [16:13:46]Read from MH i2c: E2 17 00 [16:13:46]MH_I2C_Read... [16:13:46]Read from MH i2c: E2 17 00 52 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 30 [16:13:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:13:46]wFMCommunicate OK [16:13:46]requested_item fd.num is exist - process it [16:13:46]SAM_PROTO_GetFieldsCounters [16:13:46]wFMCommunicate request_size=4 [16:13:46]MH_SAM_APDU [16:13:46]CAPDU: 80 13 00 00 [16:13:46]Write to MH i2c: E2 08 00 53 09 80 13 00 00 00 00 00 00 D8 [16:13:46]Write i2c OK [16:13:46]MH_I2C_Read... [16:13:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:46]Read from MH i2c: E2 [16:13:46]MH_I2C_Read... [16:13:46]Read from MH i2c: E2 62 00 [16:13:46]MH_I2C_Read... [16:13:46]Read from MH i2c: E2 62 00 53 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FE CE 01 00 0E 04 04 00 B1 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 C7 [16:13:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FE CE 01 00 0E 04 04 00 B1 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 [16:13:46]wFMCommunicate OK [16:13:46]SAM_PROTO_GetFieldsCounters done [16:13:46]requested_item shift.num is exist - process it [16:13:46]requested_item shift.opened is exist - process it [16:13:46]req_shift_opened [16:13:46]FM_GetShiftState [16:13:46]SAM_PROTO_GetShiftState [16:13:46]wFMCommunicate request_size=4 [16:13:46]MH_SAM_APDU [16:13:46]CAPDU: 80 13 01 00 [16:13:46]Write to MH i2c: E2 08 00 54 09 80 13 01 00 00 00 00 00 DA [16:13:46]Write i2c OK [16:13:46]MH_I2C_Read... [16:13:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:46]Read from MH i2c: E2 [16:13:46]MH_I2C_Read... [16:13:46]Read from MH i2c: E2 0E 00 [16:13:46]MH_I2C_Read... [16:13:46]Read from MH i2c: E2 0E 00 54 09 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 B1 [16:13:46]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [16:13:46]wFMCommunicate OK [16:13:46]SAM_PROTO_GetShiftState done [16:13:46]FM_GetShiftState done [16:13:46]req_shift_opened done [16:13:46]requested_item shift.open_date is exist - process it [16:13:46]req_shift_open_date [16:13:46]req_shift_open_date done [16:13:46]produce_requested_data done [16:13:46]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118526,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [16:13:46]process_action_free close_receipt [16:13:46]json_value_free [16:13:46]json_value_free done [16:13:46]process_json_proto returns [16:13:46]Send response to host [16:13:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118526,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [16:13:46]free response buf [16:13:46]execute_script done [16:13:46]execute_script returns [16:13:46]free content buf [16:13:46]Sock 7.Close socket [16:13:46]Sock 7.Thread stoped [16:13:50]OFD Sender: No OFD packet to send [16:13:55]OFD Sender: No OFD packet to send [16:14:00]OFD Sender: No OFD packet to send [16:14:05]OFD Sender: No OFD packet to send [16:14:10]OFD Sender: No OFD packet to send [16:14:15]OFD Sender: No OFD packet to send [16:14:20]OFD Sender: No OFD packet to send [16:14:25]OFD Sender: No OFD packet to send [16:14:30]OFD Sender: No OFD packet to send [16:14:35]OFD Sender: No OFD packet to send [16:14:40]OFD Sender: No OFD packet to send [16:14:45]OFD Sender: No OFD packet to send [16:14:50]OFD Sender: No OFD packet to send [16:14:55]OFD Sender: No OFD packet to send [16:15:00]OFD Sender: No OFD packet to send [16:15:05]OFD Sender: No OFD packet to send [16:15:10]OFD Sender: No OFD packet to send [16:15:15]OFD Sender: No OFD packet to send [16:15:20]OFD Sender: No OFD packet to send [16:15:25]OFD Sender: No OFD packet to send [16:15:30]OFD Sender: No OFD packet to send [16:15:35]OFD Sender: No OFD packet to send [16:15:40]OFD Sender: No OFD packet to send [16:15:45]OFD Sender: No OFD packet to send [16:15:50]OFD Sender: No OFD packet to send [16:15:55]OFD Sender: No OFD packet to send [16:16:00]OFD Sender: No OFD packet to send [16:16:05]OFD Sender: No OFD packet to send [16:16:10]OFD Sender: No OFD packet to send [16:16:15]OFD Sender: No OFD packet to send [16:16:20]OFD Sender: No OFD packet to send [16:16:25]OFD Sender: No OFD packet to send [16:16:30]OFD Sender: No OFD packet to send [16:16:35]OFD Sender: No OFD packet to send [16:16:40]OFD Sender: No OFD packet to send [16:16:45]OFD Sender: No OFD packet to send [16:16:50]OFD Sender: No OFD packet to send [16:16:55]OFD Sender: No OFD packet to send [16:17:00]OFD Sender: No OFD packet to send [16:17:05]OFD Sender: No OFD packet to send [16:17:10]OFD Sender: No OFD packet to send [16:17:15]OFD Sender: No OFD packet to send [16:17:20]OFD Sender: No OFD packet to send [16:17:25]OFD Sender: No OFD packet to send [16:17:30]OFD Sender: No OFD packet to send [16:17:35]OFD Sender: No OFD packet to send [16:17:40]OFD Sender: No OFD packet to send [16:17:45]OFD Sender: No OFD packet to send [16:17:50]OFD Sender: No OFD packet to send [16:17:55]OFD Sender: No OFD packet to send [16:18:00]OFD Sender: No OFD packet to send [16:18:05]OFD Sender: No OFD packet to send [16:18:10]OFD Sender: No OFD packet to send [16:18:15]OFD Sender: No OFD packet to send [16:18:20]OFD Sender: No OFD packet to send [16:18:25]OFD Sender: No OFD packet to send [16:18:30]OFD Sender: No OFD packet to send [16:18:35]OFD Sender: No OFD packet to send [16:18:40]OFD Sender: No OFD packet to send [16:18:45]OFD Sender: No OFD packet to send [16:18:50]OFD Sender: No OFD packet to send [16:18:55]OFD Sender: No OFD packet to send [16:19:00]OFD Sender: No OFD packet to send [16:19:05]OFD Sender: No OFD packet to send [16:19:10]OFD Sender: No OFD packet to send [16:19:15]OFD Sender: No OFD packet to send [16:19:20]OFD Sender: No OFD packet to send [16:19:25]OFD Sender: No OFD packet to send [16:19:30]OFD Sender: No OFD packet to send [16:19:35]OFD Sender: No OFD packet to send [16:19:40]OFD Sender: No OFD packet to send [16:19:45]OFD Sender: No OFD packet to send [16:19:50]OFD Sender: No OFD packet to send [16:19:55]OFD Sender: No OFD packet to send [16:20:00]OFD Sender: No OFD packet to send [16:20:05]OFD Sender: No OFD packet to send [16:20:10]OFD Sender: No OFD packet to send [16:20:15]OFD Sender: No OFD packet to send [16:20:20]OFD Sender: No OFD packet to send [16:20:25]OFD Sender: No OFD packet to send [16:20:30]OFD Sender: No OFD packet to send [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]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:24:58]accept exits with 9 [16:24:58]New connection [16:24:58]New thread 3067239780 created [16:24:58]Thread 3067383140 joined [16:24:58]Waiting for new connection... [16:24:58] Sock 9.Parse request [16:24:58]Sock 9.Check first char [16:24:58]Sock 9.First char is OK [16:24:58]request: POST /json_proto HTTP/1.0 [16:24:58]Method: POST [16:24:58]URL: /json_proto [16:24:58]Method is POST - this is cgi request [16:24:58]url: /json_proto [16:24:58]query_string will be loaded in cgi processing [16:24:58]execute_cgi json_proto POST (null) [16:24:58]execute_cgi path=json_proto method=POST [16:24:58]POST find Content-Length [16:24:58]Host: 172.17.45.7:8080 [16:24:58]Content-Length: 674 [16:24:58]Content-Type: application/json [16:24:58] [16:24:58]POST finish read [16:24:58]Found Content-Length = 674 [16:24:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:58]execute_script... [16:24: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)949398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:58]POST & json_proto [16:24:58]process_json_proto [16:24:58]json parsed OK: [16:24:58]protocol is kg_v1.0 [16:24:58]action value=close_receipt [16:24:58]process_action close_receipt [16:24:58]cmd_close_receipt [16:24:58]MH_GetDate [16:24:58]Write to MH i2c: F0 00 00 55 09 4D [16:24:58]Write i2c OK [16:24:58]MH_I2C_Read... [16:24:58]Read from MH i2c: F0 [16:24:58]MH_I2C_Read... [16:24:58]Read from MH i2c: F0 09 00 [16:24:58]MH_I2C_Read... [16:24:58]Read from MH i2c: F0 09 00 55 09 00 DB 70 A6 66 90 0F 3E 66 F0 [16:24:58]GetLastDocTimeStamp 1722183223 [16:24:58]current date 1722183899 [16:24:58]FM_GetShiftState [16:24:58]SAM_PROTO_GetShiftState [16:24:58]wFMCommunicate request_size=4 [16:24:58]MH_SAM_APDU [16:24:58]CAPDU: 80 13 01 00 [16:24:58]Write to MH i2c: E2 08 00 56 09 80 13 01 00 00 00 00 00 DC [16:24:58]Write i2c OK [16:24:58]MH_I2C_Read... [16:24:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:58]Read from MH i2c: E2 [16:24:58]MH_I2C_Read... [16:24:58]Read from MH i2c: E2 0E 00 [16:24:58]MH_I2C_Read... [16:24:58]Read from MH i2c: E2 0E 00 56 09 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 B3 [16:24:58]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [16:24:58]wFMCommunicate OK [16:24:58]SAM_PROTO_GetShiftState done [16:24:58]FM_GetShiftState done [16:24:58]opened in 1722125364 [16:24:58]opened+sec_in_day 1722211764 [16:24:58]quantity*price = 50063 [16:24:58]sum+1 = 50064 [16:24:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 196 28.07.2024 16:24 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118527 ФПД: 157813306987471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T162459&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118527&fm=157813306987471&tin=02508201610067®Number=0000000000092660&sum=50000 [16:24:59]StoreToDocumentArchive [16:24:59]shift 433 fd 118527 [16:24:59]save to /storage/0433/doc_00118527 [16:24:59]save last doc name /storage/0433/doc_00118527 to /storage/kkm_last_doc_name [16:24:59]save OK [16:24:59]Clear old archive folders... [16:24:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:24:59]tlvbuf is 01E5FDA0 [16:24:59]SAM_PROTO_ClearQueue [16:24:59]wFMCommunicate request_size=4 [16:24:59]MH_SAM_APDU [16:24:59]CAPDU: 80 09 00 00 [16:24:59]Write to MH i2c: E2 08 00 63 09 80 09 00 00 00 00 00 00 DE [16:24:59]Write i2c OK [16:24:59]MH_I2C_Read... [16:24:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:59]Read from MH i2c: E2 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 03 00 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 03 00 63 09 00 90 00 E0 [16:24:59]RAPDU: 90 00 [16:24:59]wFMCommunicate OK [16:24:59]SAM_PROTO_ClearQueue done [16:24:59]KKMCreateOFDPacket [16:24:59]OFDProtocolAddRootSTLVToBuf [16:24:59]FM_MakeSignedData [16:24:59]FM_MakeSignedData [16:24:59]SAM_PROTO_SignData [16:24:59]wFMCommunicate request_size=4 [16:24:59]MH_SAM_APDU [16:24:59]CAPDU: 80 0D 01 02 [16:24:59]Write to MH i2c: E2 08 00 64 09 80 0D 01 02 00 00 00 00 E6 [16:24:59]Write i2c OK [16:24:59]MH_I2C_Read... [16:24:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:59]Read from MH i2c: E2 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 03 00 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 03 00 64 09 00 90 00 E1 [16:24:59]RAPDU: 90 00 [16:24:59]wFMCommunicate OK [16:24:59]wFMCommunicate request_size=255 [16:24:59]MH_SAM_APDU [16:24:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 DB 70 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FF CE 01 00 35 04 06 00 8F 87 C6 1A [16:24:59]Write to MH i2c: E2 02 01 65 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 DB 70 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FF CE 01 00 35 04 06 00 8F 87 C6 1A 00 00 8F [16:24:59]Write i2c OK [16:24:59]MH_I2C_Read... [16:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:59]Read from MH i2c: E2 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 03 00 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 03 00 65 09 00 90 00 E2 [16:24:59]RAPDU: 90 00 [16:24:59]wFMCommunicate OK [16:24:59]wFMCommunicate request_size=7 [16:24:59]MH_SAM_APDU [16:24:59]CAPDU: 80 0D 02 02 02 93 CF [16:24:59]Write to MH i2c: E2 0A 00 66 09 80 0D 02 02 02 00 93 CF 00 00 4F [16:24:59]Write i2c OK [16:24:59]MH_I2C_Read... [16:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:59]Read from MH i2c: E2 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 03 00 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 03 00 66 09 00 90 00 E3 [16:24:59]RAPDU: 90 00 [16:24:59]wFMCommunicate OK [16:24:59]wFMCommunicate request_size=4 [16:24:59]MH_SAM_APDU [16:24:59]CAPDU: 80 0D 03 02 [16:24:59]Write to MH i2c: E2 08 00 67 09 80 0D 03 02 00 00 00 00 EB [16:24:59]Write i2c OK [16:24:59]MH_I2C_Read... [16:24:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:59]Read from MH i2c: E2 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 0B 00 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 0B 00 67 09 00 9A 60 D7 09 DA A3 E2 D7 90 00 FC [16:24:59]RAPDU: 9A 60 D7 09 DA A3 E2 D7 90 00 [16:24:59]wFMCommunicate OK [16:24:59]SAM_PROTO_SignData done [16:24:59]FM_MakeSignedData done [16:24:59]CreateOFDProtocolMessage [16:24:59]wFMCommunicate request_size=4 [16:24:59]MH_SAM_APDU [16:24:59]CAPDU: 80 11 00 00 [16:24:59]Write to MH i2c: E2 08 00 68 09 80 11 00 00 00 00 00 00 EB [16:24:59]Write i2c OK [16:24:59]MH_I2C_Read... [16:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:59]Read from MH i2c: E2 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 17 00 [16:24:59]MH_I2C_Read... [16:24:59]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 39 33 39 90 00 46 [16:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:24:59]wFMCommunicate OK [16:24:59]CreateOFDProtocolMessage done [16:24:59]OFDSenderStorePacket 118527 [16:24:59]StoreOFDPacket docnum=118527 [16:24:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 90 5E 04 01 D3 6D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 DB 70 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FF CE 01 00 35 04 06 00 8F 87 C6 1A 93 CF 9A 60 D7 09 DA A3 E2 D7 [16:24:59]CheckFolder [16:24:59]dirname=/storage/ofd_packets [16:24:59]CheckFolder done [16:24:59]ProducePacketName [16:24:59]name=ofd_packets/00118527 [16:24:59]NVStorageSaveData ofd_packets/00118527 [16:24:59]File name is /storage/ofd_packets/00118527 [16:24:59]Write 298 bytes [16:24:59]NVStorageSaveData done [16:24:59]OFDSenderStorePacket done [16:24:59]KKMCreateOFDPacket done [16:24:59]NVStorageSaveData kkm_last_timestamp [16:24:59]File name is /storage/kkm_last_timestamp [16:24:59]Write 4 bytes [16:24:59]NVStorageSaveData done [16:24:59]ExternCall_PrintAddStr [16:24:59]wPrintStart [16:24:59]Write to MH i2c: 01 00 00 69 09 72 [16:24:59]Write i2c OK [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: 01 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: 01 07 00 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: 01 07 00 69 09 00 00 00 00 00 FF 0F 87 [16:24:59]RasterBufferAndPrint [16:24:59]line Счет N : (1)949398 [16:24:59]line ИНН: 02508201610067 [16:24:59]line Контрольно-Кассовый Чек [16:24:59]line ПРОДАЖА [16:24:59]line ТРК (МРК, ГНК) : 54 [16:24:59]line Товар: 2710194800 [16:24:59]line ДТ-К-5 [16:24:59]line 6.570 * 76.20 [16:24:59]line = 500.63 [16:24:59]line НДС 12% НСП 1% [16:24:59]line > о реализуемом товаре [16:24:59]line ОКРУГЛЕНИЕ: -0.63 [16:24:59]line ИТОГО: 500.00 [16:24:59]line Внесено: 500.00 [16:24:59]line СДАЧА: 0.00 [16:24:59]line НСП 1% : 4.43 [16:24:59]line НДС 12% : 53.16 [16:24:59]line Наличными: 500.00 [16:24:59]line Безнал.: 0.00 [16:24:59]line Место: АЗС № 134 "Партнер Нефть" [16:24:59]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:24:59]line СНО: Общий режим [16:24:59]line Чек 196 28.07.2024 16:24 [16:24:59]line Смена: 433 ФФД: 1.0 [16:24:59]line ЗНМ: 0300000044 [16:24:59]line РНМ: 0000000000092660 [16:24:59]line Версия ККМ: 001 [16:24:59]line ФМ: 0000000000874939 [16:24:59]line ФД: 118527 [16:24:59]line ФПД: 157813306987471 [16:25:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T162459&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118527&fm=157813306987471&tin=02508201610067®Number=0000000000092660&sum=50000 [16:25:00]OFD Sender: Processing packet 118527 [packets to send 86, broken 85] [16:25:00]ProducePacketName [16:25:00]name=ofd_packets/00118527 [16:25:00]OFD Sender: To server: pG, [16:25:00]CommunicateWithHost lk.salyk.kg:30040 [16:25:00]ConnectInit lk.salyk.kg [16:25:00]written 0, free lines is 4095 [16:25:00]Connected sock=10 [16:25: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 39 33 39 0C 01 00 00 90 5E 04 01 D3 6D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 DB 70 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FF CE 01 00 35 04 06 00 8F 87 C6 1A 93 CF 9A 60 D7 09 DA A3 E2 D7 [16:25:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 10 42 47 00 76 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FF CE 01 00 F4 03 04 00 6B 1E A6 66 B6 04 01 00 00 ED 37 FA A7 FE 2F 57 1D [16:25:00]CommunicateWithHost err = 0 [16:25:00]CheckOFDResponse [16:25:00]1017 (14) - 77093643461234 [16:25:00]1041 (16) - 0000000000874939 [16:25:00]1040 (4) - 118527 [16:25:00]1012 (4) - 28.07.2024 10:33 [16:25:00]1206 (1) - 0 [16:25:00]OFD Sender: Remove packet 118527 [16:25:00]ProducePacketName [16:25:00]name=ofd_packets/00118527 [16:25:00]NVStorageDeleteData [16:25:00]Write to MH i2c: 01 00 00 93 09 9C [16:25:00]Write i2c OK [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: 01 [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: 01 07 00 [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: 01 07 00 93 09 00 00 00 00 00 EB 0C 9A [16:25:00]RasterBufferAndPrint [16:25:00]line [16:25:00]line [16:25:00]line [16:25:00]line [16:25:00]line [16:25:00]written 0, free lines is 3316 [16:25:00]MH_Cut [16:25:00]Write to MH i2c: D1 01 00 9A 09 01 75 [16:25:00]Write i2c OK [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: D1 [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: D1 01 00 [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: D1 01 00 9A 09 00 74 [16:25:00]Write to MH i2c: 01 00 00 9B 09 A4 [16:25:00]Write i2c OK [16:25:00]MH_I2C_Read... [16:25:01]OFD Sender: No OFD packet to send [16:25:01]*** Cut start [16:25:01]*** Partial cut [16:25:01]*** CUTSNS_PIN = 1 [16:25:01]*** CUTSNS_PIN = 0 [16:25:01]*** Brake cut motor [16:25:02]Read from MH i2c: 01 [16:25:02]MH_I2C_Read... [16:25:02]*** Stop cut motor [16:25:02]*** Cut end [16:25:02]Read from MH i2c: 01 07 00 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: 01 07 00 9B 09 00 00 00 00 00 FF 0F B9 [16:25:02]process_action close_receipt done [16:25:02]requested_data is exist [16:25:02]produce_requested_data [16:25:02]requested_item fm.sn is exist - process it [16:25:02]wFMCommunicate request_size=4 [16:25:02]MH_SAM_APDU [16:25:02]CAPDU: 80 11 00 00 [16:25:02]Write to MH i2c: E2 08 00 9C 09 80 11 00 00 00 00 00 00 1F [16:25:02]Write i2c OK [16:25:02]MH_I2C_Read... [16:25:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:02]Read from MH i2c: E2 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: E2 17 00 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: E2 17 00 9C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7A [16:25:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:25:02]wFMCommunicate OK [16:25:02]requested_item fd.num is exist - process it [16:25:02]SAM_PROTO_GetFieldsCounters [16:25:02]wFMCommunicate request_size=4 [16:25:02]MH_SAM_APDU [16:25:02]CAPDU: 80 13 00 00 [16:25:02]Write to MH i2c: E2 08 00 9D 09 80 13 00 00 00 00 00 00 22 [16:25:02]Write i2c OK [16:25:02]MH_I2C_Read... [16:25:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:02]Read from MH i2c: E2 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: E2 62 00 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: E2 62 00 9D 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FF CE 01 00 0E 04 04 00 B1 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 15 [16:25: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FF CE 01 00 0E 04 04 00 B1 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 [16:25:02]wFMCommunicate OK [16:25:02]SAM_PROTO_GetFieldsCounters done [16:25:02]requested_item shift.num is exist - process it [16:25:02]requested_item shift.opened is exist - process it [16:25:02]req_shift_opened [16:25:02]FM_GetShiftState [16:25:02]SAM_PROTO_GetShiftState [16:25:02]wFMCommunicate request_size=4 [16:25:02]MH_SAM_APDU [16:25:02]CAPDU: 80 13 01 00 [16:25:02]Write to MH i2c: E2 08 00 9E 09 80 13 01 00 00 00 00 00 24 [16:25:02]Write i2c OK [16:25:02]MH_I2C_Read... [16:25:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:02]Read from MH i2c: E2 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: E2 0E 00 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: E2 0E 00 9E 09 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 FB [16:25:02]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [16:25:02]wFMCommunicate OK [16:25:02]SAM_PROTO_GetShiftState done [16:25:02]FM_GetShiftState done [16:25:02]req_shift_opened done [16:25:02]requested_item shift.open_date is exist - process it [16:25:02]req_shift_open_date [16:25:02]req_shift_open_date done [16:25:02]produce_requested_data done [16:25:02]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118527,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [16:25:02]process_action_free close_receipt [16:25:02]json_value_free [16:25:02]json_value_free done [16:25:02]process_json_proto returns [16:25:02]Send response to host [16:25:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118527,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [16:25:02]free response buf [16:25:02]execute_script done [16:25:02]execute_script returns [16:25:02]free content buf [16:25:02]Sock 9.Close socket [16:25:02]Sock 9.Thread stoped [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:43]accept exits with 7 [16:31:43]New connection [16:31:43]New thread 3067383140 created [16:31:43]Thread 3067239780 joined [16:31:43]Waiting for new connection... [16:31:43] Sock 7.Parse request [16:31:43]Sock 7.Check first char [16:31:43]Sock 7.First char is OK [16:31:43]request: POST /json_proto HTTP/1.0 [16:31:43]Method: POST [16:31:43]URL: /json_proto [16:31:43]Method is POST - this is cgi request [16:31:43]url: /json_proto [16:31:43]query_string will be loaded in cgi processing [16:31:43]execute_cgi json_proto POST (null) [16:31:43]execute_cgi path=json_proto method=POST [16:31:43]POST find Content-Length [16:31:43]Host: 172.17.45.7:8080 [16:31:43]Content-Length: 819 [16:31:43]Content-Type: application/json [16:31:43] [16:31:43]POST finish read [16:31:43]Found Content-Length = 819 [16:31:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:43]execute_script... [16:31: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)949399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:43]POST & json_proto [16:31:43]process_json_proto [16:31:43]json parsed OK: [16:31:43]protocol is kg_v1.0 [16:31:43]action value=close_receipt [16:31:43]process_action close_receipt [16:31:43]cmd_close_receipt [16:31:43]MH_GetDate [16:31:43]Write to MH i2c: F0 00 00 9F 09 97 [16:31:43]Write i2c OK [16:31:43]MH_I2C_Read... [16:31:43]Read from MH i2c: F0 [16:31:43]MH_I2C_Read... [16:31:43]Read from MH i2c: F0 09 00 [16:31:43]MH_I2C_Read... [16:31:43]Read from MH i2c: F0 09 00 9F 09 00 70 72 A6 66 90 0F 3E 66 D1 [16:31:43]GetLastDocTimeStamp 1722183899 [16:31:43]current date 1722184304 [16:31:43]FM_GetShiftState [16:31:43]SAM_PROTO_GetShiftState [16:31:43]wFMCommunicate request_size=4 [16:31:43]MH_SAM_APDU [16:31:43]CAPDU: 80 13 01 00 [16:31:43]Write to MH i2c: E2 08 00 A0 09 80 13 01 00 00 00 00 00 26 [16:31:43]Write i2c OK [16:31:43]MH_I2C_Read... [16:31:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:43]Read from MH i2c: E2 [16:31:43]MH_I2C_Read... [16:31:43]Read from MH i2c: E2 0E 00 [16:31:43]MH_I2C_Read... [16:31:43]Read from MH i2c: E2 0E 00 A0 09 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 FD [16:31:43]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [16:31:43]wFMCommunicate OK [16:31:43]SAM_PROTO_GetShiftState done [16:31:43]FM_GetShiftState done [16:31:43]opened in 1722125364 [16:31:43]opened+sec_in_day 1722211764 [16:31:43]quantity*price = 150037 [16:31:43]sum+1 = 150039 [16:31:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 197 28.07.2024 16:31 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118528 ФПД: 145451390541545 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T163144&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118528&fm=145451390541545&tin=02508201610067®Number=0000000000092660&sum=150000 [16:31:44]StoreToDocumentArchive [16:31:44]shift 433 fd 118528 [16:31:44]save to /storage/0433/doc_00118528 [16:31:44]save last doc name /storage/0433/doc_00118528 to /storage/kkm_last_doc_name [16:31:44]save OK [16:31:44]Clear old archive folders... [16:31:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:31:44]tlvbuf is 01E9EEE0 [16:31:44]SAM_PROTO_ClearQueue [16:31:44]wFMCommunicate request_size=4 [16:31:44]MH_SAM_APDU [16:31:44]CAPDU: 80 09 00 00 [16:31:44]Write to MH i2c: E2 08 00 AD 09 80 09 00 00 00 00 00 00 28 [16:31:44]Write i2c OK [16:31:44]MH_I2C_Read... [16:31:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:44]Read from MH i2c: E2 [16:31:44]MH_I2C_Read... [16:31:44]Read from MH i2c: E2 03 00 [16:31:44]MH_I2C_Read... [16:31:44]Read from MH i2c: E2 03 00 AD 09 00 90 00 2A [16:31:44]RAPDU: 90 00 [16:31:44]wFMCommunicate OK [16:31:44]SAM_PROTO_ClearQueue done [16:31:44]KKMCreateOFDPacket [16:31:44]OFDProtocolAddRootSTLVToBuf [16:31:44]FM_MakeSignedData [16:31:44]FM_MakeSignedData [16:31:44]SAM_PROTO_SignData [16:31:44]wFMCommunicate request_size=4 [16:31:44]MH_SAM_APDU [16:31:44]CAPDU: 80 0D 01 02 [16:31:44]Write to MH i2c: E2 08 00 AE 09 80 0D 01 02 00 00 00 00 30 [16:31:44]Write i2c OK [16:31:44]MH_I2C_Read... [16:31:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:44]Read from MH i2c: E2 [16:31:44]MH_I2C_Read... [16:31:44]Read from MH i2c: E2 03 00 [16:31:44]MH_I2C_Read... [16:31:44]Read from MH i2c: E2 03 00 AE 09 00 90 00 2B [16:31:44]RAPDU: 90 00 [16:31:44]wFMCommunicate OK [16:31:44]wFMCommunicate request_size=255 [16:31:44]MH_SAM_APDU [16:31:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 70 72 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 00 CF 01 00 35 04 06 00 84 49 8A 77 [16:31:44]Write to MH i2c: E2 02 01 AF 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 70 72 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 00 CF 01 00 35 04 06 00 84 49 8A 77 00 00 3A [16:31:44]Write i2c OK [16:31:44]MH_I2C_Read... [16:31:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:45]Read from MH i2c: E2 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: E2 03 00 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: E2 03 00 AF 09 00 90 00 2C [16:31:45]RAPDU: 90 00 [16:31:45]wFMCommunicate OK [16:31:45]wFMCommunicate request_size=7 [16:31:45]MH_SAM_APDU [16:31:45]CAPDU: 80 0D 02 02 02 1E E9 [16:31:45]Write to MH i2c: E2 0A 00 B0 09 80 0D 02 02 02 00 1E E9 00 00 3E [16:31:45]Write i2c OK [16:31:45]MH_I2C_Read... [16:31:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:45]Read from MH i2c: E2 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: E2 03 00 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: E2 03 00 B0 09 00 90 00 2D [16:31:45]RAPDU: 90 00 [16:31:45]wFMCommunicate OK [16:31:45]wFMCommunicate request_size=4 [16:31:45]MH_SAM_APDU [16:31:45]CAPDU: 80 0D 03 02 [16:31:45]Write to MH i2c: E2 08 00 B1 09 80 0D 03 02 00 00 00 00 35 [16:31:45]Write i2c OK [16:31:45]MH_I2C_Read... [16:31:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:45]Read from MH i2c: E2 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: E2 0B 00 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: E2 0B 00 B1 09 00 B9 E5 BC BB 9C 69 6B C1 90 00 7C [16:31:45]RAPDU: B9 E5 BC BB 9C 69 6B C1 90 00 [16:31:45]wFMCommunicate OK [16:31:45]SAM_PROTO_SignData done [16:31:45]FM_MakeSignedData done [16:31:45]CreateOFDProtocolMessage [16:31:45]wFMCommunicate request_size=4 [16:31:45]MH_SAM_APDU [16:31:45]CAPDU: 80 11 00 00 [16:31:45]Write to MH i2c: E2 08 00 B2 09 80 11 00 00 00 00 00 00 35 [16:31:45]Write i2c OK [16:31:45]MH_I2C_Read... [16:31:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:45]Read from MH i2c: E2 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: E2 17 00 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: E2 17 00 B2 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 90 [16:31:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:31:45]wFMCommunicate OK [16:31:45]CreateOFDProtocolMessage done [16:31:45]OFDSenderStorePacket 118528 [16:31:45]StoreOFDPacket docnum=118528 [16:31:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E6 C5 04 01 28 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 70 72 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 00 CF 01 00 35 04 06 00 84 49 8A 77 1E E9 B9 E5 BC BB 9C 69 6B C1 [16:31:45]CheckFolder [16:31:45]dirname=/storage/ofd_packets [16:31:45]CheckFolder done [16:31:45]ProducePacketName [16:31:45]name=ofd_packets/00118528 [16:31:45]NVStorageSaveData ofd_packets/00118528 [16:31:45]File name is /storage/ofd_packets/00118528 [16:31:45]Write 298 bytes [16:31:45]NVStorageSaveData done [16:31:45]OFDSenderStorePacket done [16:31:45]KKMCreateOFDPacket done [16:31:45]NVStorageSaveData kkm_last_timestamp [16:31:45]File name is /storage/kkm_last_timestamp [16:31:45]Write 4 bytes [16:31:45]NVStorageSaveData done [16:31:45]ExternCall_PrintAddStr [16:31:45]wPrintStart [16:31:45]Write to MH i2c: 01 00 00 B3 09 BC [16:31:45]Write i2c OK [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: 01 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: 01 07 00 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: 01 07 00 B3 09 00 00 00 00 00 FF 0F D1 [16:31:45]RasterBufferAndPrint [16:31:45]line Счет N : (1)949399 [16:31:45]line ИНН: 02508201610067 [16:31:45]line Контрольно-Кассовый Чек [16:31:45]line ПРОДАЖА [16:31:45]line ТРК (МРК, ГНК) : 34 [16:31:45]line Товар: 2710194800 [16:31:45]line ДТ-К-5 [16:31:45]line 19.690 * 76.20 [16:31:45]line = 1500.38 [16:31:45]line НДС 12% НСП 1% [16:31:45]line > о реализуемом товаре [16:31:45]line ОКРУГЛЕНИЕ: -0.38 [16:31:45]line ИТОГО: 1500.00 [16:31:45]line НСП 1% : 13.28 [16:31:45]line НДС 12% : 159.33 [16:31:45]line Наличными: 0.00 [16:31:45]line Безнал.: 1500.00 [16:31:45]line Место: АЗС № 134 "Партнер Нефть" [16:31:45]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:31:45]line СНО: Общий режим [16:31:45]line Чек 197 28.07.2024 16:31 [16:31:45]line Смена: 433 ФФД: 1.0 [16:31:45]line ЗНМ: 0300000044 [16:31:45]line РНМ: 0000000000092660 [16:31:45]line Версия ККМ: 001 [16:31:45]line Платежная система: O! деньги [16:31:45]line ФМ: 0000000000874939 [16:31:45]line ФД: 118528 [16:31:45]line ФПД: 145451390541545 [16:31:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T163144&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118528&fm=145451390541545&tin=02508201610067®Number=0000000000092660&sum=150000 [16:31:45]OFD Sender: Processing packet 118528 [packets to send 86, broken 85] [16:31:45]ProducePacketName [16:31:45]name=ofd_packets/00118528 [16:31:45]OFD Sender: To server: pG, [16:31:45]CommunicateWithHost lk.salyk.kg:30040 [16:31:45]ConnectInit lk.salyk.kg [16:31:45]written 0, free lines is 4095 [16:31:45]Connected sock=10 [16:31:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E6 C5 04 01 28 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 70 72 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 00 CF 01 00 35 04 06 00 84 49 8A 77 1E E9 B9 E5 BC BB 9C 69 6B C1 [16:31:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A4 A3 47 00 06 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 00 CF 01 00 F4 03 04 00 00 20 A6 66 B6 04 01 00 00 0D A7 CC 6A F1 42 16 54 [16:31:45]CommunicateWithHost err = 0 [16:31:45]CheckOFDResponse [16:31:45]1017 (14) - 77093643461234 [16:31:45]1041 (16) - 0000000000874939 [16:31:45]1040 (4) - 118528 [16:31:45]1012 (4) - 28.07.2024 10:40 [16:31:45]1206 (1) - 0 [16:31:45]OFD Sender: Remove packet 118528 [16:31:45]ProducePacketName [16:31:45]name=ofd_packets/00118528 [16:31:45]NVStorageDeleteData [16:31:45]Write to MH i2c: 01 00 00 DD 09 E6 [16:31:45]Write i2c OK [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: 01 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: 01 07 00 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: 01 07 00 DD 09 00 00 00 00 00 DD 0C D6 [16:31:45]RasterBufferAndPrint [16:31:45]line [16:31:45]line [16:31:45]line [16:31:45]line [16:31:45]line [16:31:45]written 0, free lines is 3301 [16:31:45]MH_Cut [16:31:45]Write to MH i2c: D1 01 00 E4 09 01 BF [16:31:45]Write i2c OK [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: D1 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: D1 01 00 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: D1 01 00 E4 09 00 BE [16:31:45]Write to MH i2c: 01 00 00 E5 09 EE [16:31:45]Write i2c OK [16:31:45]MH_I2C_Read... [16:31:46]OFD Sender: No OFD packet to send [16:31:46]*** Cut start [16:31:46]*** Partial cut [16:31:46]*** CUTSNS_PIN = 1 [16:31:46]*** CUTSNS_PIN = 0 [16:31:46]*** Brake cut motor [16:31:47]Read from MH i2c: 01 [16:31:47]MH_I2C_Read... [16:31:47]*** Stop cut motor [16:31:47]*** Cut end [16:31:47]Read from MH i2c: 01 07 00 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: 01 07 00 E5 09 00 00 00 00 00 FF 0F 03 [16:31:47]process_action close_receipt done [16:31:47]requested_data is exist [16:31:47]produce_requested_data [16:31:47]requested_item fm.sn is exist - process it [16:31:47]wFMCommunicate request_size=4 [16:31:47]MH_SAM_APDU [16:31:47]CAPDU: 80 11 00 00 [16:31:47]Write to MH i2c: E2 08 00 E6 09 80 11 00 00 00 00 00 00 69 [16:31:47]Write i2c OK [16:31:47]MH_I2C_Read... [16:31:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:47]Read from MH i2c: E2 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 17 00 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 17 00 E6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C4 [16:31:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:31:47]wFMCommunicate OK [16:31:47]requested_item fd.num is exist - process it [16:31:47]SAM_PROTO_GetFieldsCounters [16:31:47]wFMCommunicate request_size=4 [16:31:47]MH_SAM_APDU [16:31:47]CAPDU: 80 13 00 00 [16:31:47]Write to MH i2c: E2 08 00 E7 09 80 13 00 00 00 00 00 00 6C [16:31:47]Write i2c OK [16:31:47]MH_I2C_Read... [16:31:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:47]Read from MH i2c: E2 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 62 00 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 62 00 E7 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 00 CF 01 00 0E 04 04 00 B1 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 64 [16:31:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 00 CF 01 00 0E 04 04 00 B1 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 [16:31:47]wFMCommunicate OK [16:31:47]SAM_PROTO_GetFieldsCounters done [16:31:47]requested_item shift.num is exist - process it [16:31:47]requested_item shift.opened is exist - process it [16:31:47]req_shift_opened [16:31:47]FM_GetShiftState [16:31:47]SAM_PROTO_GetShiftState [16:31:47]wFMCommunicate request_size=4 [16:31:47]MH_SAM_APDU [16:31:47]CAPDU: 80 13 01 00 [16:31:47]Write to MH i2c: E2 08 00 E8 09 80 13 01 00 00 00 00 00 6E [16:31:47]Write i2c OK [16:31:47]MH_I2C_Read... [16:31:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:47]Read from MH i2c: E2 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 0E 00 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 0E 00 E8 09 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 45 [16:31:47]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [16:31:47]wFMCommunicate OK [16:31:47]SAM_PROTO_GetShiftState done [16:31:47]FM_GetShiftState done [16:31:47]req_shift_opened done [16:31:47]requested_item shift.open_date is exist - process it [16:31:47]req_shift_open_date [16:31:47]req_shift_open_date done [16:31:47]produce_requested_data done [16:31:47]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118528,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [16:31:47]process_action_free close_receipt [16:31:47]json_value_free [16:31:47]json_value_free done [16:31:47]process_json_proto returns [16:31:47]Send response to host [16:31:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118528,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [16:31:47]free response buf [16:31:47]execute_script done [16:31:47]execute_script returns [16:31:47]free content buf [16:31:47]Sock 7.Close socket [16:31:47]Sock 7.Thread stoped [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:51]OFD Sender: No OFD packet to send [16:32:56]OFD Sender: No OFD packet to send [16:33:01]OFD Sender: No OFD packet to send [16:33:06]OFD Sender: No OFD packet to send [16:33:11]OFD Sender: No OFD packet to send [16:33:16]OFD Sender: No OFD packet to send [16:33:21]OFD Sender: No OFD packet to send [16:33:26]OFD Sender: No OFD packet to send [16:33:31]OFD Sender: No OFD packet to send [16:33:36]OFD Sender: No OFD packet to send [16:33:41]OFD Sender: No OFD packet to send [16:33:46]OFD Sender: No OFD packet to send [16:33:51]OFD Sender: No OFD packet to send [16:33:56]OFD Sender: No OFD packet to send [16:34:01]OFD Sender: No OFD packet to send [16:34:06]OFD Sender: No OFD packet to send [16:34:11]OFD Sender: No OFD packet to send [16:34:16]OFD Sender: No OFD packet to send [16:34:21]OFD Sender: No OFD packet to send [16:34:26]OFD Sender: No OFD packet to send [16:34:31]OFD Sender: No OFD packet to send [16:34:36]OFD Sender: No OFD packet to send [16:34:41]OFD Sender: No OFD packet to send [16:34:43]accept exits with 9 [16:34:43]New connection [16:34:43]New thread 3067239780 created [16:34:43]Thread 3067383140 joined [16:34:43]Waiting for new connection... [16:34:43] Sock 9.Parse request [16:34:43]Sock 9.Check first char [16:34:43]Sock 9.First char is OK [16:34:43]request: POST /json_proto HTTP/1.0 [16:34:43]Method: POST [16:34:43]URL: /json_proto [16:34:43]Method is POST - this is cgi request [16:34:43]url: /json_proto [16:34:43]query_string will be loaded in cgi processing [16:34:43]execute_cgi json_proto POST (null) [16:34:43]execute_cgi path=json_proto method=POST [16:34:43]POST find Content-Length [16:34:43]Host: 172.17.45.7:8080 [16:34:43]Content-Length: 682 [16:34:43]Content-Type: application/json [16:34:43] [16:34:43]POST finish read [16:34:43]Found Content-Length = 682 [16:34:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:43]execute_script... [16:34:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:43]POST & json_proto [16:34:43]process_json_proto [16:34:43]json parsed OK: [16:34:43]protocol is kg_v1.0 [16:34:43]action value=close_receipt [16:34:43]process_action close_receipt [16:34:43]cmd_close_receipt [16:34:43]MH_GetDate [16:34:43]Write to MH i2c: F0 00 00 E9 09 E1 [16:34:43]Write i2c OK [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: F0 [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: F0 09 00 [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: F0 09 00 E9 09 00 24 73 A6 66 90 0F 3E 66 D0 [16:34:43]GetLastDocTimeStamp 1722184304 [16:34:43]current date 1722184484 [16:34:43]FM_GetShiftState [16:34:43]SAM_PROTO_GetShiftState [16:34:43]wFMCommunicate request_size=4 [16:34:43]MH_SAM_APDU [16:34:43]CAPDU: 80 13 01 00 [16:34:43]Write to MH i2c: E2 08 00 EA 09 80 13 01 00 00 00 00 00 70 [16:34:43]Write i2c OK [16:34:43]MH_I2C_Read... [16:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:43]Read from MH i2c: E2 [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: E2 0E 00 [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: E2 0E 00 EA 09 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 47 [16:34:43]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [16:34:43]wFMCommunicate OK [16:34:43]SAM_PROTO_GetShiftState done [16:34:43]FM_GetShiftState done [16:34:43]opened in 1722125364 [16:34:43]opened+sec_in_day 1722211764 [16:34:43]quantity*price = 100005 [16:34:43]sum+1 = 100006 [16:34:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 198 28.07.2024 16:34 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118529 ФПД: 201072929863639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T163444&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118529&fm=201072929863639&tin=02508201610067®Number=0000000000092660&sum=100000 [16:34:44]StoreToDocumentArchive [16:34:44]shift 433 fd 118529 [16:34:44]save to /storage/0433/doc_00118529 [16:34:44]save last doc name /storage/0433/doc_00118529 to /storage/kkm_last_doc_name [16:34:44]save OK [16:34:44]Clear old archive folders... [16:34:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:34:44]tlvbuf is 01E5F090 [16:34:44]SAM_PROTO_ClearQueue [16:34:44]wFMCommunicate request_size=4 [16:34:44]MH_SAM_APDU [16:34:44]CAPDU: 80 09 00 00 [16:34:44]Write to MH i2c: E2 08 00 F7 09 80 09 00 00 00 00 00 00 72 [16:34:44]Write i2c OK [16:34:44]MH_I2C_Read... [16:34:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:44]Read from MH i2c: E2 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 F7 09 00 90 00 74 [16:34:44]RAPDU: 90 00 [16:34:44]wFMCommunicate OK [16:34:44]SAM_PROTO_ClearQueue done [16:34:44]KKMCreateOFDPacket [16:34:44]OFDProtocolAddRootSTLVToBuf [16:34:44]FM_MakeSignedData [16:34:44]FM_MakeSignedData [16:34:44]SAM_PROTO_SignData [16:34:44]wFMCommunicate request_size=4 [16:34:44]MH_SAM_APDU [16:34:44]CAPDU: 80 0D 01 02 [16:34:44]Write to MH i2c: E2 08 00 F8 09 80 0D 01 02 00 00 00 00 7A [16:34:44]Write i2c OK [16:34:44]MH_I2C_Read... [16:34:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:44]Read from MH i2c: E2 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 F8 09 00 90 00 75 [16:34:44]RAPDU: 90 00 [16:34:44]wFMCommunicate OK [16:34:44]wFMCommunicate request_size=255 [16:34:44]MH_SAM_APDU [16:34: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 24 73 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 01 CF 01 00 35 04 06 00 B6 [16:34:44]Write to MH i2c: E2 02 01 F9 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 24 73 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 01 CF 01 00 35 04 06 00 B6 00 00 2F [16:34:44]Write i2c OK [16:34:44]MH_I2C_Read... [16:34:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:45]Read from MH i2c: E2 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 03 00 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 03 00 F9 09 00 90 00 76 [16:34:45]RAPDU: 90 00 [16:34:45]wFMCommunicate OK [16:34:45]wFMCommunicate request_size=10 [16:34:45]MH_SAM_APDU [16:34:45]CAPDU: 80 0D 02 02 05 DF F0 8E F7 D7 [16:34:45]Write to MH i2c: E2 0D 00 FA 09 80 0D 02 02 05 00 DF F0 8E F7 D7 00 00 B2 [16:34:45]Write i2c OK [16:34:45]MH_I2C_Read... [16:34:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:45]Read from MH i2c: E2 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 03 00 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 03 00 FA 09 00 90 00 77 [16:34:45]RAPDU: 90 00 [16:34:45]wFMCommunicate OK [16:34:45]wFMCommunicate request_size=4 [16:34:45]MH_SAM_APDU [16:34:45]CAPDU: 80 0D 03 02 [16:34:45]Write to MH i2c: E2 08 00 FB 09 80 0D 03 02 00 00 00 00 7F [16:34:45]Write i2c OK [16:34:45]MH_I2C_Read... [16:34:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:45]Read from MH i2c: E2 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 0B 00 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 0B 00 FB 09 00 EF 74 0C 3F C6 8E 46 79 90 00 41 [16:34:45]RAPDU: EF 74 0C 3F C6 8E 46 79 90 00 [16:34:45]wFMCommunicate OK [16:34:45]SAM_PROTO_SignData done [16:34:45]FM_MakeSignedData done [16:34:45]CreateOFDProtocolMessage [16:34:45]wFMCommunicate request_size=4 [16:34:45]MH_SAM_APDU [16:34:45]CAPDU: 80 11 00 00 [16:34:45]Write to MH i2c: E2 08 00 FC 09 80 11 00 00 00 00 00 00 7F [16:34:45]Write i2c OK [16:34:45]MH_I2C_Read... [16:34:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:45]Read from MH i2c: E2 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 17 00 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 17 00 FC 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DA [16:34:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:34:45]wFMCommunicate OK [16:34:45]CreateOFDProtocolMessage done [16:34:45]OFDSenderStorePacket 118529 [16:34:45]StoreOFDPacket docnum=118529 [16:34:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CD B8 07 01 F7 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 24 73 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 01 CF 01 00 35 04 06 00 B6 DF F0 8E F7 D7 EF 74 0C 3F C6 8E 46 79 [16:34:45]CheckFolder [16:34:45]dirname=/storage/ofd_packets [16:34:45]CheckFolder done [16:34:45]ProducePacketName [16:34:45]name=ofd_packets/00118529 [16:34:45]NVStorageSaveData ofd_packets/00118529 [16:34:45]File name is /storage/ofd_packets/00118529 [16:34:45]Write 301 bytes [16:34:45]NVStorageSaveData done [16:34:45]OFDSenderStorePacket done [16:34:45]KKMCreateOFDPacket done [16:34:45]NVStorageSaveData kkm_last_timestamp [16:34:45]File name is /storage/kkm_last_timestamp [16:34:45]Write 4 bytes [16:34:45]NVStorageSaveData done [16:34:45]ExternCall_PrintAddStr [16:34:45]wPrintStart [16:34:45]Write to MH i2c: 01 00 00 FD 09 06 [16:34:45]Write i2c OK [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: 01 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: 01 07 00 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: 01 07 00 FD 09 00 00 00 00 00 FF 0F 1B [16:34:45]RasterBufferAndPrint [16:34:45]line Счет N : (1)949401 [16:34:45]line ИНН: 02508201610067 [16:34:45]line Контрольно-Кассовый Чек [16:34:45]line ПРОДАЖА [16:34:45]line ТРК (МРК, ГНК) : 61 [16:34:45]line Товар: 2710124130 [16:34:45]line Аи-92-К-4 [16:34:45]line 14.750 * 67.80 [16:34:45]line = 1000.05 [16:34:45]line НДС 12% НСП 1% [16:34:45]line > о реализуемом товаре [16:34:45]line ОКРУГЛЕНИЕ: -0.05 [16:34:45]line ИТОГО: 1000.00 [16:34:45]line Внесено: 1000.00 [16:34:45]line СДАЧА: 0.00 [16:34:45]line НСП 1% : 8.85 [16:34:45]line НДС 12% : 106.20 [16:34:45]line Наличными: 1000.00 [16:34:45]line Безнал.: 0.00 [16:34:45]line Место: АЗС № 134 "Партнер Нефть" [16:34:45]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:34:45]line СНО: Общий режим [16:34:45]line Чек 198 28.07.2024 16:34 [16:34:45]line Смена: 433 ФФД: 1.0 [16:34:45]line ЗНМ: 0300000044 [16:34:45]line РНМ: 0000000000092660 [16:34:45]line Версия ККМ: 001 [16:34:45]line ФМ: 0000000000874939 [16:34:45]line ФД: 118529 [16:34:45]line ФПД: 201072929863639 [16:34:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T163444&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118529&fm=201072929863639&tin=02508201610067®Number=0000000000092660&sum=100000 [16:34:45]OFD Sender: Processing packet 118529 [packets to send 86, broken 85] [16:34:45]ProducePacketName [16:34:45]name=ofd_packets/00118529 [16:34:45]OFD Sender: To server: pG, [16:34:45]CommunicateWithHost lk.salyk.kg:30040 [16:34:45]ConnectInit lk.salyk.kg [16:34:45]written 0, free lines is 4095 [16:34:45]Connected sock=10 [16:34:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CD B8 07 01 F7 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 24 73 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 01 CF 01 00 35 04 06 00 B6 DF F0 8E F7 D7 EF 74 0C 3F C6 8E 46 79 [16:34:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1D A8 47 00 AC 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 39 33 39 10 04 04 00 01 CF 01 00 F4 03 04 00 B4 20 A6 66 B6 04 01 00 00 96 F9 12 07 5D 06 E8 D2 [16:34:45]CommunicateWithHost err = 0 [16:34:45]CheckOFDResponse [16:34:45]1017 (14) - 77093643461234 [16:34:45]1041 (16) - 0000000000874939 [16:34:45]1040 (4) - 118529 [16:34:45]1012 (4) - 28.07.2024 10:43 [16:34:45]1206 (1) - 0 [16:34:45]OFD Sender: Remove packet 118529 [16:34:45]ProducePacketName [16:34:45]name=ofd_packets/00118529 [16:34:45]NVStorageDeleteData [16:34:46]Write to MH i2c: 01 00 00 27 0A 31 [16:34:46]Write i2c OK [16:34:46]MH_I2C_Read... [16:34:46]Read from MH i2c: 01 [16:34:46]MH_I2C_Read... [16:34:46]Read from MH i2c: 01 07 00 [16:34:46]MH_I2C_Read... [16:34:46]Read from MH i2c: 01 07 00 27 0A 00 00 00 00 00 FD 0C 41 [16:34:46]RasterBufferAndPrint [16:34:46]line [16:34:46]line [16:34:46]line [16:34:46]line [16:34:46]line [16:34:46]written 0, free lines is 3331 [16:34:46]MH_Cut [16:34:46]Write to MH i2c: D1 01 00 2E 0A 01 0A [16:34:46]Write i2c OK [16:34:46]MH_I2C_Read... [16:34:46]Read from MH i2c: D1 [16:34:46]MH_I2C_Read... [16:34:46]Read from MH i2c: D1 01 00 [16:34:46]MH_I2C_Read... [16:34:46]Read from MH i2c: D1 01 00 2E 0A 00 09 [16:34:46]Write to MH i2c: 01 00 00 2F 0A 39 [16:34:46]Write i2c OK [16:34:46]MH_I2C_Read... [16:34:46]OFD Sender: No OFD packet to send [16:34:46]*** Cut start [16:34:46]*** Partial cut [16:34:46]*** CUTSNS_PIN = 1 [16:34:46]*** CUTSNS_PIN = 0 [16:34:47]*** Brake cut motor [16:34:47]Read from MH i2c: 01 [16:34:47]MH_I2C_Read... [16:34:47]*** Stop cut motor [16:34:47]*** Cut end [16:34:47]Read from MH i2c: 01 07 00 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: 01 07 00 2F 0A 00 00 00 00 00 FF 0F 4E [16:34:47]process_action close_receipt done [16:34:47]requested_data is exist [16:34:47]produce_requested_data [16:34:47]requested_item fm.sn is exist - process it [16:34:47]wFMCommunicate request_size=4 [16:34:47]MH_SAM_APDU [16:34:47]CAPDU: 80 11 00 00 [16:34:47]Write to MH i2c: E2 08 00 30 0A 80 11 00 00 00 00 00 00 B4 [16:34:47]Write i2c OK [16:34:47]MH_I2C_Read... [16:34:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:47]Read from MH i2c: E2 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 17 00 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 17 00 30 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0F [16:34:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:34:47]wFMCommunicate OK [16:34:47]requested_item fd.num is exist - process it [16:34:47]SAM_PROTO_GetFieldsCounters [16:34:47]wFMCommunicate request_size=4 [16:34:47]MH_SAM_APDU [16:34:47]CAPDU: 80 13 00 00 [16:34:47]Write to MH i2c: E2 08 00 31 0A 80 13 00 00 00 00 00 00 B7 [16:34:47]Write i2c OK [16:34:47]MH_I2C_Read... [16:34:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:47]Read from MH i2c: E2 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 62 00 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 62 00 31 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 01 CF 01 00 0E 04 04 00 B1 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 B3 [16:34:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 01 CF 01 00 0E 04 04 00 B1 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 [16:34:47]wFMCommunicate OK [16:34:47]SAM_PROTO_GetFieldsCounters done [16:34:47]requested_item shift.num is exist - process it [16:34:47]requested_item shift.opened is exist - process it [16:34:47]req_shift_opened [16:34:47]FM_GetShiftState [16:34:47]SAM_PROTO_GetShiftState [16:34:47]wFMCommunicate request_size=4 [16:34:47]MH_SAM_APDU [16:34:47]CAPDU: 80 13 01 00 [16:34:47]Write to MH i2c: E2 08 00 32 0A 80 13 01 00 00 00 00 00 B9 [16:34:47]Write i2c OK [16:34:47]MH_I2C_Read... [16:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:47]Read from MH i2c: E2 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 0E 00 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 0E 00 32 0A 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 90 [16:34:47]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [16:34:47]wFMCommunicate OK [16:34:47]SAM_PROTO_GetShiftState done [16:34:47]FM_GetShiftState done [16:34:47]req_shift_opened done [16:34:47]requested_item shift.open_date is exist - process it [16:34:47]req_shift_open_date [16:34:47]req_shift_open_date done [16:34:47]produce_requested_data done [16:34:47]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118529,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [16:34:47]process_action_free close_receipt [16:34:47]json_value_free [16:34:47]json_value_free done [16:34:47]process_json_proto returns [16:34:47]Send response to host [16:34:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118529,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [16:34:47]free response buf [16:34:47]execute_script done [16:34:47]execute_script returns [16:34:47]free content buf [16:34:47]Sock 9.Close socket [16:34:47]Sock 9.Thread stoped [16:34:51]OFD Sender: No OFD packet to send [16:34:56]OFD Sender: No OFD packet to send [16:35:01]OFD Sender: No OFD packet to send [16:35:06]OFD Sender: No OFD packet to send [16:35:08]accept exits with 7 [16:35:08]New connection [16:35:08]New thread 3067383140 created [16:35:08]Thread 3067239780 joined [16:35:08]Waiting for new connection... [16:35:08] Sock 7.Parse request [16:35:08]Sock 7.Check first char [16:35:08]Sock 7.First char is OK [16:35:08]request: POST /json_proto HTTP/1.0 [16:35:08]Method: POST [16:35:08]URL: /json_proto [16:35:08]Method is POST - this is cgi request [16:35:08]url: /json_proto [16:35:08]query_string will be loaded in cgi processing [16:35:08]execute_cgi json_proto POST (null) [16:35:08]execute_cgi path=json_proto method=POST [16:35:08]POST find Content-Length [16:35:08]Host: 172.17.45.7:8080 [16:35:08]Content-Length: 819 [16:35:08]Content-Type: application/json [16:35:08] [16:35:08]POST finish read [16:35:08]Found Content-Length = 819 [16:35:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.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", "total" : 3500.00, "payments": [ { "type": 1, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:08]execute_script... [16:35: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)949400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.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", "total" : 3500.00, "payments": [ { "type": 1, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:08]POST & json_proto [16:35:08]process_json_proto [16:35:08]json parsed OK: [16:35:08]protocol is kg_v1.0 [16:35:08]action value=close_receipt [16:35:08]process_action close_receipt [16:35:08]cmd_close_receipt [16:35:08]MH_GetDate [16:35:08]Write to MH i2c: F0 00 00 33 0A 2C [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: F0 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: F0 09 00 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: F0 09 00 33 0A 00 3D 73 A6 66 90 0F 3E 66 34 [16:35:08]GetLastDocTimeStamp 1722184484 [16:35:08]current date 1722184509 [16:35:08]FM_GetShiftState [16:35:08]SAM_PROTO_GetShiftState [16:35:08]wFMCommunicate request_size=4 [16:35:08]MH_SAM_APDU [16:35:08]CAPDU: 80 13 01 00 [16:35:08]Write to MH i2c: E2 08 00 34 0A 80 13 01 00 00 00 00 00 BB [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:08]Read from MH i2c: E2 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 0E 00 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 0E 00 34 0A 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 92 [16:35:08]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [16:35:08]wFMCommunicate OK [16:35:08]SAM_PROTO_GetShiftState done [16:35:08]FM_GetShiftState done [16:35:08]opened in 1722125364 [16:35:08]opened+sec_in_day 1722211764 [16:35:08]quantity*price = 350062 [16:35:08]sum+1 = 350064 [16:35:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 3500.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 0.00 Безнал.: 3500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 199 28.07.2024 16:35 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118530 ФПД: 247224146982047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T163509&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118530&fm=247224146982047&tin=02508201610067®Number=0000000000092660&sum=350000 [16:35:09]StoreToDocumentArchive [16:35:09]shift 433 fd 118530 [16:35:09]save to /storage/0433/doc_00118530 [16:35:09]save last doc name /storage/0433/doc_00118530 to /storage/kkm_last_doc_name [16:35:09]save OK [16:35:09]Clear old archive folders... [16:35:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:35:09]tlvbuf is 01E8F690 [16:35:09]SAM_PROTO_ClearQueue [16:35:09]wFMCommunicate request_size=4 [16:35:09]MH_SAM_APDU [16:35:09]CAPDU: 80 09 00 00 [16:35:09]Write to MH i2c: E2 08 00 41 0A 80 09 00 00 00 00 00 00 BD [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:09]Read from MH i2c: E2 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 03 00 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 03 00 41 0A 00 90 00 BF [16:35:09]RAPDU: 90 00 [16:35:09]wFMCommunicate OK [16:35:09]SAM_PROTO_ClearQueue done [16:35:09]KKMCreateOFDPacket [16:35:09]OFDProtocolAddRootSTLVToBuf [16:35:09]FM_MakeSignedData [16:35:09]FM_MakeSignedData [16:35:09]SAM_PROTO_SignData [16:35:09]wFMCommunicate request_size=4 [16:35:09]MH_SAM_APDU [16:35:09]CAPDU: 80 0D 01 02 [16:35:09]Write to MH i2c: E2 08 00 42 0A 80 0D 01 02 00 00 00 00 C5 [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:09]Read from MH i2c: E2 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 03 00 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 03 00 42 0A 00 90 00 C0 [16:35:09]RAPDU: 90 00 [16:35:09]wFMCommunicate OK [16:35:09]wFMCommunicate request_size=255 [16:35:09]MH_SAM_APDU [16:35:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 3D 73 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 02 CF 01 00 35 04 06 00 E0 D9 5B 75 [16:35:09]Write to MH i2c: E2 02 01 43 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 3D 73 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 02 CF 01 00 35 04 06 00 E0 D9 5B 75 00 00 96 [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:09]Read from MH i2c: E2 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 03 00 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 03 00 43 0A 00 90 00 C1 [16:35:09]RAPDU: 90 00 [16:35:09]wFMCommunicate OK [16:35:09]wFMCommunicate request_size=7 [16:35:09]MH_SAM_APDU [16:35:09]CAPDU: 80 0D 02 02 02 F4 9F [16:35:09]Write to MH i2c: E2 0A 00 44 0A 80 0D 02 02 02 00 F4 9F 00 00 5F [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:09]Read from MH i2c: E2 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 03 00 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 03 00 44 0A 00 90 00 C2 [16:35:09]RAPDU: 90 00 [16:35:09]wFMCommunicate OK [16:35:09]wFMCommunicate request_size=4 [16:35:09]MH_SAM_APDU [16:35:09]CAPDU: 80 0D 03 02 [16:35:09]Write to MH i2c: E2 08 00 45 0A 80 0D 03 02 00 00 00 00 CA [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:09]Read from MH i2c: E2 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 0B 00 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 0B 00 45 0A 00 A1 5A AF 46 FB A1 C6 42 90 00 5F [16:35:09]RAPDU: A1 5A AF 46 FB A1 C6 42 90 00 [16:35:09]wFMCommunicate OK [16:35:09]SAM_PROTO_SignData done [16:35:09]FM_MakeSignedData done [16:35:09]CreateOFDProtocolMessage [16:35:09]wFMCommunicate request_size=4 [16:35:09]MH_SAM_APDU [16:35:09]CAPDU: 80 11 00 00 [16:35:09]Write to MH i2c: E2 08 00 46 0A 80 11 00 00 00 00 00 00 CA [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:09]Read from MH i2c: E2 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 17 00 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 17 00 46 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 25 [16:35:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:35:09]wFMCommunicate OK [16:35:09]CreateOFDProtocolMessage done [16:35:09]OFDSenderStorePacket 118530 [16:35:09]StoreOFDPacket docnum=118530 [16:35:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 A0 A8 04 01 3B BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 3D 73 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 02 CF 01 00 35 04 06 00 E0 D9 5B 75 F4 9F A1 5A AF 46 FB A1 C6 42 [16:35:09]CheckFolder [16:35:09]dirname=/storage/ofd_packets [16:35:09]CheckFolder done [16:35:09]ProducePacketName [16:35:09]name=ofd_packets/00118530 [16:35:09]NVStorageSaveData ofd_packets/00118530 [16:35:09]File name is /storage/ofd_packets/00118530 [16:35:09]Write 298 bytes [16:35:09]NVStorageSaveData done [16:35:09]OFDSenderStorePacket done [16:35:09]KKMCreateOFDPacket done [16:35:09]NVStorageSaveData kkm_last_timestamp [16:35:09]File name is /storage/kkm_last_timestamp [16:35:09]Write 4 bytes [16:35:09]NVStorageSaveData done [16:35:09]ExternCall_PrintAddStr [16:35:09]wPrintStart [16:35:09]Write to MH i2c: 01 00 00 47 0A 51 [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: 01 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: 01 07 00 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: 01 07 00 47 0A 00 00 00 00 00 FF 0F 66 [16:35:09]RasterBufferAndPrint [16:35:09]line Счет N : (1)949400 [16:35:09]line ИНН: 02508201610067 [16:35:09]line Контрольно-Кассовый Чек [16:35:09]line ПРОДАЖА [16:35:09]line ТРК (МРК, ГНК) : 44 [16:35:09]line Товар: 2710194800 [16:35:09]line ДТ-К-5 [16:35:09]line 45.940 * 76.20 [16:35:09]line = 3500.63 [16:35:09]line НДС 12% НСП 1% [16:35:09]line > о реализуемом товаре [16:35:09]line ОКРУГЛЕНИЕ: -0.63 [16:35:09]line ИТОГО: 3500.00 [16:35:09]line НСП 1% : 30.98 [16:35:09]line НДС 12% : 371.75 [16:35:09]line Наличными: 0.00 [16:35:09]line Безнал.: 3500.00 [16:35:09]line Место: АЗС № 134 "Партнер Нефть" [16:35:09]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:35:09]line СНО: Общий режим [16:35:09]line Чек 199 28.07.2024 16:35 [16:35:09]line Смена: 433 ФФД: 1.0 [16:35:09]line ЗНМ: 0300000044 [16:35:09]line РНМ: 0000000000092660 [16:35:09]line Версия ККМ: 001 [16:35:09]line Платежная система: O! деньги [16:35:09]line ФМ: 0000000000874939 [16:35:09]line ФД: 118530 [16:35:09]line ФПД: 247224146982047 [16:35:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T163509&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118530&fm=247224146982047&tin=02508201610067®Number=0000000000092660&sum=350000 [16:35:10]OFD Sender: Processing packet 118530 [packets to send 86, broken 85] [16:35:10]ProducePacketName [16:35:10]name=ofd_packets/00118530 [16:35:10]OFD Sender: To server: pG, [16:35:10]CommunicateWithHost lk.salyk.kg:30040 [16:35:10]ConnectInit lk.salyk.kg [16:35:10]written 0, free lines is 4095 [16:35:10]Connected sock=9 [16:35:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 A0 A8 04 01 3B BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 3D 73 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 02 CF 01 00 35 04 06 00 E0 D9 5B 75 F4 9F A1 5A AF 46 FB A1 C6 42 [16:35:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 85 BD 47 00 77 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 39 33 39 10 04 04 00 02 CF 01 00 F4 03 04 00 CD 20 A6 66 B6 04 01 00 00 CE 04 0F D6 CC 69 2D EB [16:35:10]CommunicateWithHost err = 0 [16:35:10]CheckOFDResponse [16:35:10]1017 (14) - 77093643461234 [16:35:10]1041 (16) - 0000000000874939 [16:35:10]1040 (4) - 118530 [16:35:10]1012 (4) - 28.07.2024 10:43 [16:35:10]1206 (1) - 0 [16:35:10]OFD Sender: Remove packet 118530 [16:35:10]ProducePacketName [16:35:10]name=ofd_packets/00118530 [16:35:10]NVStorageDeleteData [16:35:10]Write to MH i2c: 01 00 00 71 0A 7B [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: 01 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: 01 07 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: 01 07 00 71 0A 00 00 00 00 00 ED 0C 7B [16:35:10]RasterBufferAndPrint [16:35:10]line [16:35:10]line [16:35:10]line [16:35:10]line [16:35:10]line [16:35:10]written 0, free lines is 3318 [16:35:10]MH_Cut [16:35:10]Write to MH i2c: D1 01 00 78 0A 01 54 [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: D1 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: D1 01 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: D1 01 00 78 0A 00 53 [16:35:10]Write to MH i2c: 01 00 00 79 0A 83 [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:11]OFD Sender: No OFD packet to send [16:35:11]*** Cut start [16:35:11]*** Partial cut [16:35:11]*** CUTSNS_PIN = 1 [16:35:11]*** CUTSNS_PIN = 0 [16:35:11]*** Brake cut motor [16:35:11]Read from MH i2c: 01 [16:35:12]MH_I2C_Read... [16:35:12]*** Stop cut motor [16:35:12]*** Cut end [16:35:12]Read from MH i2c: 01 07 00 [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: 01 07 00 79 0A 00 00 00 00 00 FF 0F 98 [16:35:12]process_action close_receipt done [16:35:12]requested_data is exist [16:35:12]produce_requested_data [16:35:12]requested_item fm.sn is exist - process it [16:35:12]wFMCommunicate request_size=4 [16:35:12]MH_SAM_APDU [16:35:12]CAPDU: 80 11 00 00 [16:35:12]Write to MH i2c: E2 08 00 7A 0A 80 11 00 00 00 00 00 00 FE [16:35:12]Write i2c OK [16:35:12]MH_I2C_Read... [16:35:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:12]Read from MH i2c: E2 [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: E2 17 00 [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: E2 17 00 7A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 59 [16:35:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:35:12]wFMCommunicate OK [16:35:12]requested_item fd.num is exist - process it [16:35:12]SAM_PROTO_GetFieldsCounters [16:35:12]wFMCommunicate request_size=4 [16:35:12]MH_SAM_APDU [16:35:12]CAPDU: 80 13 00 00 [16:35:12]Write to MH i2c: E2 08 00 7B 0A 80 13 00 00 00 00 00 00 01 [16:35:12]Write i2c OK [16:35:12]MH_I2C_Read... [16:35:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:12]Read from MH i2c: E2 [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: E2 62 00 [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: E2 62 00 7B 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 02 CF 01 00 0E 04 04 00 B1 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 01 [16:35:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 02 CF 01 00 0E 04 04 00 B1 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 [16:35:12]wFMCommunicate OK [16:35:12]SAM_PROTO_GetFieldsCounters done [16:35:12]requested_item shift.num is exist - process it [16:35:12]requested_item shift.opened is exist - process it [16:35:12]req_shift_opened [16:35:12]FM_GetShiftState [16:35:12]SAM_PROTO_GetShiftState [16:35:12]wFMCommunicate request_size=4 [16:35:12]MH_SAM_APDU [16:35:12]CAPDU: 80 13 01 00 [16:35:12]Write to MH i2c: E2 08 00 7C 0A 80 13 01 00 00 00 00 00 03 [16:35:12]Write i2c OK [16:35:12]MH_I2C_Read... [16:35:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:12]Read from MH i2c: E2 [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: E2 0E 00 [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: E2 0E 00 7C 0A 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 DA [16:35:12]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [16:35:12]wFMCommunicate OK [16:35:12]SAM_PROTO_GetShiftState done [16:35:12]FM_GetShiftState done [16:35:12]req_shift_opened done [16:35:12]requested_item shift.open_date is exist - process it [16:35:12]req_shift_open_date [16:35:12]req_shift_open_date done [16:35:12]produce_requested_data done [16:35:12]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118530,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [16:35:12]process_action_free close_receipt [16:35:12]json_value_free [16:35:12]json_value_free done [16:35:12]process_json_proto returns [16:35:12]Send response to host [16:35:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118530,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [16:35:12]free response buf [16:35:12]execute_script done [16:35:12]execute_script returns [16:35:12]free content buf [16:35:12]Sock 7.Close socket [16:35:12]Sock 7.Thread stoped [16:35:16]OFD Sender: No OFD packet to send [16:35:21]OFD Sender: No OFD packet to send [16:35:26]OFD Sender: No OFD packet to send [16:35:31]OFD Sender: No OFD packet to send [16:35:36]OFD Sender: No OFD packet to send [16:35:41]OFD Sender: No OFD packet to send [16:35:46]OFD Sender: No OFD packet to send [16:35:51]OFD Sender: No OFD packet to send [16:35:56]OFD Sender: No OFD packet to send [16:36:01]OFD Sender: No OFD packet to send [16:36:06]OFD Sender: No OFD packet to send [16:36:11]OFD Sender: No OFD packet to send [16:36:16]OFD Sender: No OFD packet to send [16:36:21]OFD Sender: No OFD packet to send [16:36:26]OFD Sender: No OFD packet to send [16:36:31]OFD Sender: No OFD packet to send [16:36:36]OFD Sender: No OFD packet to send [16:36:41]OFD Sender: No OFD packet to send [16:36:46]OFD Sender: No OFD packet to send [16:36:51]OFD Sender: No OFD packet to send [16:36:56]OFD Sender: No OFD packet to send [16:37:01]OFD Sender: No OFD packet to send [16:37:06]OFD Sender: No OFD packet to send [16:37:11]OFD Sender: No OFD packet to send [16:37:16]OFD Sender: No OFD packet to send [16:37:21]OFD Sender: No OFD packet to send [16:37:26]OFD Sender: No OFD packet to send [16:37:31]OFD Sender: No OFD packet to send [16:37:36]OFD Sender: No OFD packet to send [16:37:41]OFD Sender: No OFD packet to send [16:37:46]OFD Sender: No OFD packet to send [16:37:51]OFD Sender: No OFD packet to send [16:37:56]OFD Sender: No OFD packet to send [16:38:01]OFD Sender: No OFD packet to send [16:38:06]OFD Sender: No OFD packet to send [16:38:11]OFD Sender: No OFD packet to send [16:38:16]OFD Sender: No OFD packet to send [16:38:21]OFD Sender: No OFD packet to send [16:38:26]OFD Sender: No OFD packet to send [16:38:31]OFD Sender: No OFD packet to send [16:38:36]OFD Sender: No OFD packet to send [16:38:41]OFD Sender: No OFD packet to send [16:38:46]OFD Sender: No OFD packet to send [16:38:51]OFD Sender: No OFD packet to send [16:38:56]OFD Sender: No OFD packet to send [16:39:01]OFD Sender: No OFD packet to send [16:39:06]OFD Sender: No OFD packet to send [16:39:11]OFD Sender: No OFD packet to send [16:39:16]OFD Sender: No OFD packet to send [16:39:21]OFD Sender: No OFD packet to send [16:39:26]OFD Sender: No OFD packet to send [16:39:31]OFD Sender: No OFD packet to send [16:39:36]OFD Sender: No OFD packet to send [16:39:41]OFD Sender: No OFD packet to send [16:39:46]OFD Sender: No OFD packet to send [16:39:51]OFD Sender: No OFD packet to send [16:39:56]OFD Sender: No OFD packet to send [16:40:01]OFD Sender: No OFD packet to send [16:40:06]OFD Sender: No OFD packet to send [16:40:11]OFD Sender: No OFD packet to send [16:40:16]OFD Sender: No OFD packet to send [16:40:21]OFD Sender: No OFD packet to send [16:40:26]OFD Sender: No OFD packet to send [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:46]OFD Sender: No OFD packet to send [16:40:51]OFD Sender: No OFD packet to send [16:40:56]OFD Sender: No OFD packet to send [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:36]OFD Sender: No OFD packet to send [16:42:41]OFD Sender: No OFD packet to send [16:42:46]OFD Sender: No OFD packet to send [16:42:51]OFD Sender: No OFD packet to send [16:42:56]OFD Sender: No OFD packet to send [16:43:01]OFD Sender: No OFD packet to send [16:43:06]OFD Sender: No OFD packet to send [16:43:11]OFD Sender: No OFD packet to send [16:43:16]OFD Sender: No OFD packet to send [16:43:21]OFD Sender: No OFD packet to send [16:43:26]OFD Sender: No OFD packet to send [16:43:31]OFD Sender: No OFD packet to send [16:43:36]OFD Sender: No OFD packet to send [16:43:41]OFD Sender: No OFD packet to send [16:43:46]OFD Sender: No OFD packet to send [16:43:51]OFD Sender: No OFD packet to send [16:43:56]OFD Sender: No OFD packet to send [16:44:01]OFD Sender: No OFD packet to send [16:44:06]OFD Sender: No OFD packet to send [16:44:11]OFD Sender: No OFD packet to send [16:44:16]OFD Sender: No OFD packet to send [16:44:21]OFD Sender: No OFD packet to send [16:44:26]OFD Sender: No OFD packet to send [16:44:31]OFD Sender: No OFD packet to send [16:44:36]OFD Sender: No OFD packet to send [16:44:41]OFD Sender: No OFD packet to send [16:44:46]OFD Sender: No OFD packet to send [16:44:51]OFD Sender: No OFD packet to send [16:44:56]OFD Sender: No OFD packet to send [16:45:01]OFD Sender: No OFD packet to send [16:45:06]OFD Sender: No OFD packet to send [16:45:11]OFD Sender: No OFD packet to send [16:45:16]OFD Sender: No OFD packet to send [16:45:21]OFD Sender: No OFD packet to send [16:45:26]OFD Sender: No OFD packet to send [16:45:31]OFD Sender: No OFD packet to send [16:45:36]OFD Sender: No OFD packet to send [16:45:41]OFD Sender: No OFD packet to send [16:45:46]OFD Sender: No OFD packet to send [16:45:51]OFD Sender: No OFD packet to send [16:45:56]OFD Sender: No OFD packet to send [16:46:01]OFD Sender: No OFD packet to send [16:46:06]OFD Sender: No OFD packet to send [16:46:11]OFD Sender: No OFD packet to send [16:46:16]OFD Sender: No OFD packet to send [16:46:21]OFD Sender: No OFD packet to send [16:46:26]OFD Sender: No OFD packet to send [16:46:31]OFD Sender: No OFD packet to send [16:46:36]OFD Sender: No OFD packet to send [16:46:41]OFD Sender: No OFD packet to send [16:46:46]OFD Sender: No OFD packet to send [16:46:51]OFD Sender: No OFD packet to send [16:46:56]OFD Sender: No OFD packet to send [16:47:01]OFD Sender: No OFD packet to send [16:47:06]OFD Sender: No OFD packet to send [16:47:11]OFD Sender: No OFD packet to send [16:47:16]OFD Sender: No OFD packet to send [16:47:21]OFD Sender: No OFD packet to send [16:47:26]OFD Sender: No OFD packet to send [16:47:31]OFD Sender: No OFD packet to send [16:47:36]OFD Sender: No OFD packet to send [16:47:41]OFD Sender: No OFD packet to send [16:47:46]OFD Sender: No OFD packet to send [16:47:51]OFD Sender: No OFD packet to send [16:47:56]OFD Sender: No OFD packet to send [16:48:01]OFD Sender: No OFD packet to send [16:48:06]OFD Sender: No OFD packet to send [16:48:11]OFD Sender: No OFD packet to send [16:48:16]OFD Sender: No OFD packet to send [16:48:21]OFD Sender: No OFD packet to send [16:48:26]OFD Sender: No OFD packet to send [16:48:31]OFD Sender: No OFD packet to send [16:48:36]OFD Sender: No OFD packet to send [16:48:41]OFD Sender: No OFD packet to send [16:48:46]OFD Sender: No OFD packet to send [16:48:51]OFD Sender: No OFD packet to send [16:48:56]OFD Sender: No OFD packet to send [16:49:01]OFD Sender: No OFD packet to send [16:49:06]OFD Sender: No OFD packet to send [16:49:11]OFD Sender: No OFD packet to send [16:49:16]OFD Sender: No OFD packet to send [16:49:21]OFD Sender: No OFD packet to send [16:49:26]OFD Sender: No OFD packet to send [16:49:31]OFD Sender: No OFD packet to send [16:49:36]OFD Sender: No OFD packet to send [16:49:41]OFD Sender: No OFD packet to send [16:49:46]OFD Sender: No OFD packet to send [16:49:51]OFD Sender: No OFD packet to send [16:49:56]OFD Sender: No OFD packet to send [16:50:01]OFD Sender: No OFD packet to send [16:50:06]OFD Sender: No OFD packet to send [16:50:11]OFD Sender: No OFD packet to send [16:50:16]OFD Sender: No OFD packet to send [16:50:21]OFD Sender: No OFD packet to send [16:50:26]OFD Sender: No OFD packet to send [16:50:31]OFD Sender: No OFD packet to send [16:50:36]OFD Sender: No OFD packet to send [16:50:41]OFD Sender: No OFD packet to send [16:50:46]OFD Sender: No OFD packet to send [16:50:52]OFD Sender: No OFD packet to send [16:50:57]OFD Sender: No OFD packet to send [16:51:02]OFD Sender: No OFD packet to send [16:51:07]OFD Sender: No OFD packet to send [16:51:12]OFD Sender: No OFD packet to send [16:51:17]OFD Sender: No OFD packet to send [16:51:22]OFD Sender: No OFD packet to send [16:51:27]OFD Sender: No OFD packet to send [16:51:32]OFD Sender: No OFD packet to send [16:51:37]OFD Sender: No OFD packet to send [16:51:42]OFD Sender: No OFD packet to send [16:51:47]OFD Sender: No OFD packet to send [16:51:52]OFD Sender: No OFD packet to send [16:51:57]OFD Sender: No OFD packet to send [16:52:02]OFD Sender: No OFD packet to send [16:52:07]OFD Sender: No OFD packet to send [16:52:12]OFD Sender: No OFD packet to send [16:52:17]OFD Sender: No OFD packet to send [16:52:22]OFD Sender: No OFD packet to send [16:52:27]OFD Sender: No OFD packet to send [16:52:32]OFD Sender: No OFD packet to send [16:52:37]OFD Sender: No OFD packet to send [16:52:42]OFD Sender: No OFD packet to send [16:52:47]OFD Sender: No OFD packet to send [16:52:52]OFD Sender: No OFD packet to send [16:52:57]OFD Sender: No OFD packet to send [16:53:02]OFD Sender: No OFD packet to send [16:53:07]OFD Sender: No OFD packet to send [16:53:12]OFD Sender: No OFD packet to send [16:53:17]OFD Sender: No OFD packet to send [16:53:22]OFD Sender: No OFD packet to send [16:53:27]OFD Sender: No OFD packet to send [16:53:32]OFD Sender: No OFD packet to send [16:53:37]OFD Sender: No OFD packet to send [16:53:37]accept exits with 10 [16:53:37]New connection [16:53:37]New thread 3067239780 created [16:53:37]Thread 3067383140 joined [16:53:37]Waiting for new connection... [16:53:37] Sock 10.Parse request [16:53:37]Sock 10.Check first char [16:53:37]Sock 10.First char is OK [16:53:37]request: POST /json_proto HTTP/1.0 [16:53:37]Method: POST [16:53:37]URL: /json_proto [16:53:37]Method is POST - this is cgi request [16:53:37]url: /json_proto [16:53:37]query_string will be loaded in cgi processing [16:53:37]execute_cgi json_proto POST (null) [16:53:37]execute_cgi path=json_proto method=POST [16:53:37]POST find Content-Length [16:53:37]Host: 172.17.45.7:8080 [16:53:37]Content-Length: 677 [16:53:37]Content-Type: application/json [16:53:37] [16:53:37]POST finish read [16:53:37]Found Content-Length = 677 [16:53:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:53:37]execute_script... [16:53: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)949402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:53:37]POST & json_proto [16:53:37]process_json_proto [16:53:37]json parsed OK: [16:53:37]protocol is kg_v1.0 [16:53:37]action value=close_receipt [16:53:37]process_action close_receipt [16:53:37]cmd_close_receipt [16:53:37]MH_GetDate [16:53:37]Write to MH i2c: F0 00 00 7D 0A 76 [16:53:37]Write i2c OK [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: F0 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: F0 09 00 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: F0 09 00 7D 0A 00 93 77 A6 66 90 0F 3E 66 D8 [16:53:37]GetLastDocTimeStamp 1722184509 [16:53:37]current date 1722185619 [16:53:37]FM_GetShiftState [16:53:37]SAM_PROTO_GetShiftState [16:53:37]wFMCommunicate request_size=4 [16:53:37]MH_SAM_APDU [16:53:37]CAPDU: 80 13 01 00 [16:53:37]Write to MH i2c: E2 08 00 7E 0A 80 13 01 00 00 00 00 00 05 [16:53:37]Write i2c OK [16:53:37]MH_I2C_Read... [16:53:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:37]Read from MH i2c: E2 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: E2 0E 00 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: E2 0E 00 7E 0A 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 DC [16:53:37]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [16:53:37]wFMCommunicate OK [16:53:37]SAM_PROTO_GetShiftState done [16:53:37]FM_GetShiftState done [16:53:37]opened in 1722125364 [16:53:37]opened+sec_in_day 1722211764 [16:53:37]quantity*price = 20001 [16:53:37]sum+1 = 20002 [16:53:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 200 28.07.2024 16:53 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118531 ФПД: 183348996143234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T165339&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118531&fm=183348996143234&tin=02508201610067®Number=0000000000092660&sum=20000 [16:53:38]StoreToDocumentArchive [16:53:38]shift 433 fd 118531 [16:53:38]save to /storage/0433/doc_00118531 [16:53:38]save last doc name /storage/0433/doc_00118531 to /storage/kkm_last_doc_name [16:53:38]save OK [16:53:38]Clear old archive folders... [16:53:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:53:38]tlvbuf is 01E9E4B0 [16:53:38]SAM_PROTO_ClearQueue [16:53:38]wFMCommunicate request_size=4 [16:53:38]MH_SAM_APDU [16:53:38]CAPDU: 80 09 00 00 [16:53:38]Write to MH i2c: E2 08 00 8B 0A 80 09 00 00 00 00 00 00 07 [16:53:38]Write i2c OK [16:53:38]MH_I2C_Read... [16:53:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:38]Read from MH i2c: E2 [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: E2 03 00 [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: E2 03 00 8B 0A 00 90 00 09 [16:53:38]RAPDU: 90 00 [16:53:38]wFMCommunicate OK [16:53:38]SAM_PROTO_ClearQueue done [16:53:38]KKMCreateOFDPacket [16:53:38]OFDProtocolAddRootSTLVToBuf [16:53:38]FM_MakeSignedData [16:53:38]FM_MakeSignedData [16:53:38]SAM_PROTO_SignData [16:53:38]wFMCommunicate request_size=4 [16:53:38]MH_SAM_APDU [16:53:38]CAPDU: 80 0D 01 02 [16:53:38]Write to MH i2c: E2 08 00 8C 0A 80 0D 01 02 00 00 00 00 0F [16:53:38]Write i2c OK [16:53:38]MH_I2C_Read... [16:53:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:38]Read from MH i2c: E2 [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: E2 03 00 [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: E2 03 00 8C 0A 00 90 00 0A [16:53:38]RAPDU: 90 00 [16:53:38]wFMCommunicate OK [16:53:38]wFMCommunicate request_size=255 [16:53:38]MH_SAM_APDU [16:53: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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 93 77 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 03 CF 01 00 35 04 06 00 A6 [16:53:38]Write to MH i2c: E2 02 01 8D 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 93 77 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 03 CF 01 00 35 04 06 00 A6 00 00 9E [16:53:38]Write i2c OK [16:53:38]MH_I2C_Read... [16:53:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:39]Read from MH i2c: E2 [16:53:39]MH_I2C_Read... [16:53:39]Read from MH i2c: E2 03 00 [16:53:39]MH_I2C_Read... [16:53:39]Read from MH i2c: E2 03 00 8D 0A 00 90 00 0B [16:53:39]RAPDU: 90 00 [16:53:39]wFMCommunicate OK [16:53:39]wFMCommunicate request_size=10 [16:53:39]MH_SAM_APDU [16:53:39]CAPDU: 80 0D 02 02 05 C1 43 C8 F8 82 [16:53:39]Write to MH i2c: E2 0D 00 8E 0A 80 0D 02 02 05 00 C1 43 C8 F8 82 00 00 62 [16:53:39]Write i2c OK [16:53:39]MH_I2C_Read... [16:53:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:39]Read from MH i2c: E2 [16:53:39]MH_I2C_Read... [16:53:39]Read from MH i2c: E2 03 00 [16:53:39]MH_I2C_Read... [16:53:39]Read from MH i2c: E2 03 00 8E 0A 00 90 00 0C [16:53:39]RAPDU: 90 00 [16:53:39]wFMCommunicate OK [16:53:39]wFMCommunicate request_size=4 [16:53:39]MH_SAM_APDU [16:53:39]CAPDU: 80 0D 03 02 [16:53:39]Write to MH i2c: E2 08 00 8F 0A 80 0D 03 02 00 00 00 00 14 [16:53:39]Write i2c OK [16:53:39]MH_I2C_Read... [16:53:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:39]Read from MH i2c: E2 [16:53:39]MH_I2C_Read... [16:53:39]Read from MH i2c: E2 0B 00 [16:53:39]MH_I2C_Read... [16:53:39]Read from MH i2c: E2 0B 00 8F 0A 00 F8 15 67 46 3B C4 F3 D9 90 00 9A [16:53:39]RAPDU: F8 15 67 46 3B C4 F3 D9 90 00 [16:53:39]wFMCommunicate OK [16:53:39]SAM_PROTO_SignData done [16:53:39]FM_MakeSignedData done [16:53:39]CreateOFDProtocolMessage [16:53:39]wFMCommunicate request_size=4 [16:53:39]MH_SAM_APDU [16:53:39]CAPDU: 80 11 00 00 [16:53:39]Write to MH i2c: E2 08 00 90 0A 80 11 00 00 00 00 00 00 14 [16:53:39]Write i2c OK [16:53:39]MH_I2C_Read... [16:53:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:39]Read from MH i2c: E2 [16:53:39]MH_I2C_Read... [16:53:39]Read from MH i2c: E2 17 00 [16:53:39]MH_I2C_Read... [16:53:39]Read from MH i2c: E2 17 00 90 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6F [16:53:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:53:39]wFMCommunicate OK [16:53:39]CreateOFDProtocolMessage done [16:53:39]OFDSenderStorePacket 118531 [16:53:39]StoreOFDPacket docnum=118531 [16:53:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F5 20 07 01 0F 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 93 77 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 03 CF 01 00 35 04 06 00 A6 C1 43 C8 F8 82 F8 15 67 46 3B C4 F3 D9 [16:53:39]CheckFolder [16:53:39]dirname=/storage/ofd_packets [16:53:39]CheckFolder done [16:53:39]ProducePacketName [16:53:39]name=ofd_packets/00118531 [16:53:39]NVStorageSaveData ofd_packets/00118531 [16:53:39]File name is /storage/ofd_packets/00118531 [16:53:39]Write 301 bytes [16:53:39]NVStorageSaveData done [16:53:39]OFDSenderStorePacket done [16:53:39]KKMCreateOFDPacket done [16:53:39]NVStorageSaveData kkm_last_timestamp [16:53:39]File name is /storage/kkm_last_timestamp [16:53:39]Write 4 bytes [16:53:39]NVStorageSaveData done [16:53:39]ExternCall_PrintAddStr [16:53:39]wPrintStart [16:53:39]Write to MH i2c: 01 00 00 91 0A 9B [16:53:39]Write i2c OK [16:53:39]MH_I2C_Read... [16:53:39]Read from MH i2c: 01 [16:53:39]MH_I2C_Read... [16:53:39]Read from MH i2c: 01 07 00 [16:53:39]MH_I2C_Read... [16:53:39]Read from MH i2c: 01 07 00 91 0A 00 00 00 00 00 FF 0F B0 [16:53:39]RasterBufferAndPrint [16:53:39]line Счет N : (1)949402 [16:53:39]line ИНН: 02508201610067 [16:53:39]line Контрольно-Кассовый Чек [16:53:39]line ПРОДАЖА [16:53:39]line ТРК (МРК, ГНК) : 41 [16:53:39]line Товар: 2710124130 [16:53:39]line Аи-92-К-4 [16:53:39]line 2.950 * 67.80 [16:53:39]line = 200.01 [16:53:39]line НДС 12% НСП 1% [16:53:39]line > о реализуемом товаре [16:53:39]line ОКРУГЛЕНИЕ: -0.01 [16:53:39]line ИТОГО: 200.00 [16:53:39]line Внесено: 200.00 [16:53:39]line СДАЧА: 0.00 [16:53:39]line НСП 1% : 1.77 [16:53:39]line НДС 12% : 21.24 [16:53:39]line Наличными: 200.00 [16:53:39]line Безнал.: 0.00 [16:53:39]line Место: АЗС № 134 "Партнер Нефть" [16:53:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:53:39]line СНО: Общий режим [16:53:39]line Чек 200 28.07.2024 16:53 [16:53:39]line Смена: 433 ФФД: 1.0 [16:53:39]line ЗНМ: 0300000044 [16:53:39]line РНМ: 0000000000092660 [16:53:39]line Версия ККМ: 001 [16:53:39]line ФМ: 0000000000874939 [16:53:39]line ФД: 118531 [16:53:39]line ФПД: 183348996143234 [16:53:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T165339&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118531&fm=183348996143234&tin=02508201610067®Number=0000000000092660&sum=20000 [16:53:39]written 0, free lines is 4095 [16:53:39]OFD Sender: Processing packet 118531 [packets to send 86, broken 85] [16:53:39]ProducePacketName [16:53:39]name=ofd_packets/00118531 [16:53:39]OFD Sender: To server: pG, [16:53:39]CommunicateWithHost lk.salyk.kg:30040 [16:53:39]ConnectInit lk.salyk.kg [16:53:39]Connected sock=9 [16:53: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 39 33 39 0F 01 00 00 F5 20 07 01 0F 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 93 77 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 03 CF 01 00 35 04 06 00 A6 C1 43 C8 F8 82 F8 15 67 46 3B C4 F3 D9 [16:53:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EE 43 47 00 56 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 39 33 39 10 04 04 00 03 CF 01 00 F4 03 04 00 23 25 A6 66 B6 04 01 00 00 36 4B 98 F8 30 31 2B 4D [16:53:40]CommunicateWithHost err = 0 [16:53:40]CheckOFDResponse [16:53:40]1017 (14) - 77093643461234 [16:53:40]1041 (16) - 0000000000874939 [16:53:40]1040 (4) - 118531 [16:53:40]1012 (4) - 28.07.2024 11:01 [16:53:40]1206 (1) - 0 [16:53:40]OFD Sender: Remove packet 118531 [16:53:40]ProducePacketName [16:53:40]name=ofd_packets/00118531 [16:53:40]NVStorageDeleteData [16:53:40]Write to MH i2c: 01 00 00 BB 0A C5 [16:53:40]Write i2c OK [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: 01 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: 01 07 00 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: 01 07 00 BB 0A 00 00 00 00 00 DC 0C B4 [16:53:40]RasterBufferAndPrint [16:53:40]line [16:53:40]line [16:53:40]line [16:53:40]line [16:53:40]line [16:53:40]written 0, free lines is 3299 [16:53:40]MH_Cut [16:53:40]Write to MH i2c: D1 01 00 C2 0A 01 9E [16:53:40]Write i2c OK [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: D1 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: D1 01 00 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: D1 01 00 C2 0A 00 9D [16:53:40]Write to MH i2c: 01 00 00 C3 0A CD [16:53:40]Write i2c OK [16:53:40]MH_I2C_Read... [16:53:40]OFD Sender: No OFD packet to send [16:53:40]*** Cut start [16:53:40]*** Partial cut [16:53:40]*** CUTSNS_PIN = 1 [16:53:40]*** CUTSNS_PIN = 0 [16:53:41]*** Brake cut motor [16:53:41]Read from MH i2c: 01 [16:53:41]MH_I2C_Read... [16:53:41]*** Stop cut motor [16:53:41]*** Cut end [16:53:41]Read from MH i2c: 01 07 00 [16:53:41]MH_I2C_Read... [16:53:41]Read from MH i2c: 01 07 00 C3 0A 00 00 00 00 00 FF 0F E2 [16:53:41]process_action close_receipt done [16:53:41]requested_data is exist [16:53:41]produce_requested_data [16:53:41]requested_item fm.sn is exist - process it [16:53:41]wFMCommunicate request_size=4 [16:53:41]MH_SAM_APDU [16:53:41]CAPDU: 80 11 00 00 [16:53:41]Write to MH i2c: E2 08 00 C4 0A 80 11 00 00 00 00 00 00 48 [16:53:41]Write i2c OK [16:53:41]MH_I2C_Read... [16:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:41]Read from MH i2c: E2 [16:53:41]MH_I2C_Read... [16:53:41]Read from MH i2c: E2 17 00 [16:53:41]MH_I2C_Read... [16:53:41]Read from MH i2c: E2 17 00 C4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A3 [16:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:53:41]wFMCommunicate OK [16:53:41]requested_item fd.num is exist - process it [16:53:41]SAM_PROTO_GetFieldsCounters [16:53:41]wFMCommunicate request_size=4 [16:53:41]MH_SAM_APDU [16:53:41]CAPDU: 80 13 00 00 [16:53:41]Write to MH i2c: E2 08 00 C5 0A 80 13 00 00 00 00 00 00 4B [16:53:41]Write i2c OK [16:53:41]MH_I2C_Read... [16:53:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:41]Read from MH i2c: E2 [16:53:41]MH_I2C_Read... [16:53:41]Read from MH i2c: E2 62 00 [16:53:41]MH_I2C_Read... [16:53:41]Read from MH i2c: E2 62 00 C5 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 03 CF 01 00 0E 04 04 00 B1 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 4F [16:53:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 03 CF 01 00 0E 04 04 00 B1 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 [16:53:41]wFMCommunicate OK [16:53:41]SAM_PROTO_GetFieldsCounters done [16:53:41]requested_item shift.num is exist - process it [16:53:41]requested_item shift.opened is exist - process it [16:53:41]req_shift_opened [16:53:41]FM_GetShiftState [16:53:41]SAM_PROTO_GetShiftState [16:53:41]wFMCommunicate request_size=4 [16:53:41]MH_SAM_APDU [16:53:41]CAPDU: 80 13 01 00 [16:53:41]Write to MH i2c: E2 08 00 C6 0A 80 13 01 00 00 00 00 00 4D [16:53:41]Write i2c OK [16:53:41]MH_I2C_Read... [16:53:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:41]Read from MH i2c: E2 [16:53:41]MH_I2C_Read... [16:53:41]Read from MH i2c: E2 0E 00 [16:53:41]MH_I2C_Read... [16:53:41]Read from MH i2c: E2 0E 00 C6 0A 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 24 [16:53:41]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [16:53:41]wFMCommunicate OK [16:53:41]SAM_PROTO_GetShiftState done [16:53:41]FM_GetShiftState done [16:53:41]req_shift_opened done [16:53:41]requested_item shift.open_date is exist - process it [16:53:41]req_shift_open_date [16:53:41]req_shift_open_date done [16:53:41]produce_requested_data done [16:53:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118531,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [16:53:41]process_action_free close_receipt [16:53:41]json_value_free [16:53:41]json_value_free done [16:53:41]process_json_proto returns [16:53:41]Send response to host [16:53:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118531,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [16:53:41]free response buf [16:53:41]execute_script done [16:53:41]execute_script returns [16:53:41]free content buf [16:53:41]Sock 10.Close socket [16:53:41]Sock 10.Thread stoped [16:53:45]OFD Sender: No OFD packet to send [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:54:00]OFD Sender: No OFD packet to send [16:54:05]OFD Sender: No OFD packet to send [16:54:10]OFD Sender: No OFD packet to send [16:54:15]OFD Sender: No OFD packet to send [16:54:20]OFD Sender: No OFD packet to send [16:54:25]OFD Sender: No OFD packet to send [16:54:30]OFD Sender: No OFD packet to send [16:54:35]OFD Sender: No OFD packet to send [16:54:40]OFD Sender: No OFD packet to send [16:54:45]OFD Sender: No OFD packet to send [16:54:50]OFD Sender: No OFD packet to send [16:54:55]OFD Sender: No OFD packet to send [16:55:00]OFD Sender: No OFD packet to send [16:55:05]OFD Sender: No OFD packet to send [16:55:10]OFD Sender: No OFD packet to send [16:55:15]OFD Sender: No OFD packet to send [16:55:20]OFD Sender: No OFD packet to send [16:55:25]OFD Sender: No OFD packet to send [16:55:30]OFD Sender: No OFD packet to send [16:55:35]OFD Sender: No OFD packet to send [16:55:40]OFD Sender: No OFD packet to send [16:55:45]OFD Sender: No OFD packet to send [16:55:50]OFD Sender: No OFD packet to send [16:55:55]OFD Sender: No OFD packet to send [16:56:00]OFD Sender: No OFD packet to send [16:56:05]OFD Sender: No OFD packet to send [16:56:10]OFD Sender: No OFD packet to send [16:56:15]OFD Sender: No OFD packet to send [16:56:20]OFD Sender: No OFD packet to send [16:56:25]OFD Sender: No OFD packet to send [16:56:30]OFD Sender: No OFD packet to send [16:56:35]OFD Sender: No OFD packet to send [16:56:40]OFD Sender: No OFD packet to send [16:56:45]OFD Sender: No OFD packet to send [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:56:56]int [16:56:56]Write to MH i2c: 01 00 00 C7 0A D1 [16:56:56]*** FLAG_PRN_PAP1 set [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 0A 00 01 00 00 00 FF 0F E7 [16:56:56]state=0 [16:56:56]No paper [16:56:56]int [16:56:56]Write to MH i2c: 01 00 00 C8 0A D2 [16:56:56]*** FLAG_PRN_PAP2 set [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 C8 0A 00 03 00 00 00 FF 0F EA [16:56:56]state=0 [16:56:56]No paper [16:56:56]Cover opened [16:57:00]OFD Sender: No OFD packet to send [16:57:01]Write to MH i2c: 01 00 00 C9 0A D3 [16:57:01]Write i2c OK [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: 01 [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: 01 07 00 [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: 01 07 00 C9 0A 00 03 00 00 00 FF 0F EB [16:57:01]state=3 [16:57:01]No paper [16:57:01]Cover opened [16:57:05]OFD Sender: No OFD packet to send [16:57:06]Write to MH i2c: 01 00 00 CA 0A D4 [16:57:06]Write i2c OK [16:57:06]MH_I2C_Read... [16:57:06]Read from MH i2c: 01 [16:57:06]MH_I2C_Read... [16:57:06]Read from MH i2c: 01 07 00 [16:57:06]MH_I2C_Read... [16:57:06]Read from MH i2c: 01 07 00 CA 0A 00 03 00 00 00 FF 0F EC [16:57:06]state=3 [16:57:06]No paper [16:57:06]Cover opened [16:57:10]OFD Sender: No OFD packet to send [16:57:11]Write to MH i2c: 01 00 00 CB 0A D5 [16:57:11]Write i2c OK [16:57:11]MH_I2C_Read... [16:57:11]Read from MH i2c: 01 [16:57:11]MH_I2C_Read... [16:57:11]Read from MH i2c: 01 07 00 [16:57:11]MH_I2C_Read... [16:57:11]Read from MH i2c: 01 07 00 CB 0A 00 03 00 00 00 FF 0F ED [16:57:11]state=3 [16:57:11]No paper [16:57:11]Cover opened [16:57:15]OFD Sender: No OFD packet to send [16:57:16]Write to MH i2c: 01 00 00 CC 0A D6 [16:57:16]Write i2c OK [16:57:16]MH_I2C_Read... [16:57:16]Read from MH i2c: 01 [16:57:16]MH_I2C_Read... [16:57:16]Read from MH i2c: 01 07 00 [16:57:16]MH_I2C_Read... [16:57:16]Read from MH i2c: 01 07 00 CC 0A 00 03 00 00 00 FF 0F EE [16:57:16]state=3 [16:57:16]No paper [16:57:16]Cover opened [16:57:20]OFD Sender: No OFD packet to send [16:57:21]Write to MH i2c: 01 00 00 CD 0A D7 [16:57:21]Write i2c OK [16:57:21]MH_I2C_Read... [16:57:21]Read from MH i2c: 01 [16:57:21]MH_I2C_Read... [16:57:21]Read from MH i2c: 01 07 00 [16:57:21]MH_I2C_Read... [16:57:21]Read from MH i2c: 01 07 00 CD 0A 00 03 00 00 00 FF 0F EF [16:57:21]state=3 [16:57:21]No paper [16:57:21]Cover opened [16:57:25]OFD Sender: No OFD packet to send [16:57:26]Write to MH i2c: 01 00 00 CE 0A D8 [16:57:26]Write i2c OK [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: 01 [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: 01 07 00 [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: 01 07 00 CE 0A 00 03 00 00 00 FF 0F F0 [16:57:26]state=3 [16:57:26]No paper [16:57:26]Cover opened [16:57:30]OFD Sender: No OFD packet to send [16:57:31]Write to MH i2c: 01 00 00 CF 0A D9 [16:57:31]Write i2c OK [16:57:31]MH_I2C_Read... [16:57:31]Read from MH i2c: 01 [16:57:31]MH_I2C_Read... [16:57:31]Read from MH i2c: 01 07 00 [16:57:31]MH_I2C_Read... [16:57:31]Read from MH i2c: 01 07 00 CF 0A 00 03 00 00 00 FF 0F F1 [16:57:31]state=3 [16:57:31]No paper [16:57:31]Cover opened [16:57:35]OFD Sender: No OFD packet to send [16:57:36]Write to MH i2c: 01 00 00 D0 0A DA [16:57:36]Write i2c OK [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: 01 [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: 01 07 00 [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: 01 07 00 D0 0A 00 03 00 00 00 FF 0F F2 [16:57:36]state=3 [16:57:36]No paper [16:57:36]Cover opened [16:57:39]int [16:57:39]Write to MH i2c: 01 00 00 D1 0A DB [16:57:39]Write i2c OK [16:57:39]MH_I2C_Read... [16:57:39]Read from MH i2c: 01 [16:57:39]MH_I2C_Read... [16:57:39]Read from MH i2c: 01 07 00 [16:57:39]MH_I2C_Read... [16:57:39]*** FLAG_PRN_PAP2 reset [16:57:39]*** FLAG_PRN_PAP1 reset [16:57:39]Read from MH i2c: 01 07 00 D1 0A 00 00 00 00 00 FF 0F F0 [16:57:39]state=3 [16:57:39]Cover closed [16:57:40]OFD Sender: No OFD packet to send [16:57:45]OFD Sender: No OFD packet to send [16:57:50]OFD Sender: No OFD packet to send [16:57:55]OFD Sender: No OFD packet to send [16:58:00]OFD Sender: No OFD packet to send [16:58:05]OFD Sender: No OFD packet to send [16:58:10]OFD Sender: No OFD packet to send [16:58:15]OFD Sender: No OFD packet to send [16:58:20]OFD Sender: No OFD packet to send [16:58:25]OFD Sender: No OFD packet to send [16:58:30]OFD Sender: No OFD packet to send [16:58:35]OFD Sender: No OFD packet to send [16:58:40]OFD Sender: No OFD packet to send [16:58:45]OFD Sender: No OFD packet to send [16:58:50]OFD Sender: No OFD packet to send [16:58:55]OFD Sender: No OFD packet to send [16:59:00]OFD Sender: No OFD packet to send [16:59:05]OFD Sender: No OFD packet to send [16:59:10]OFD Sender: No OFD packet to send [16:59:15]OFD Sender: No OFD packet to send [16:59:17]accept exits with 7 [16:59:17]New connection [16:59:17]New thread 3067383140 created [16:59:17]Thread 3067239780 joined [16:59:17]Waiting for new connection... [16:59:17] Sock 7.Parse request [16:59:17]Sock 7.Check first char [16:59:17]Sock 7.First char is OK [16:59:17]request: POST /json_proto HTTP/1.0 [16:59:17]Method: POST [16:59:17]URL: /json_proto [16:59:17]Method is POST - this is cgi request [16:59:17]url: /json_proto [16:59:17]query_string will be loaded in cgi processing [16:59:17]execute_cgi json_proto POST (null) [16:59:17]execute_cgi path=json_proto method=POST [16:59:17]POST find Content-Length [16:59:17]Host: 172.17.45.7:8080 [16:59:17]Content-Length: 819 [16:59:17]Content-Type: application/json [16:59:17] [16:59:17]POST finish read [16:59:17]Found Content-Length = 819 [16:59:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:17]execute_script... [16:59:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:17]POST & json_proto [16:59:17]process_json_proto [16:59:17]json parsed OK: [16:59:17]protocol is kg_v1.0 [16:59:17]action value=close_receipt [16:59:17]process_action close_receipt [16:59:17]cmd_close_receipt [16:59:17]MH_GetDate [16:59:17]Write to MH i2c: F0 00 00 D2 0A CB [16:59:17]Write i2c OK [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: F0 [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: F0 09 00 [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: F0 09 00 D2 0A 00 E7 78 A6 66 90 0F 3E 66 82 [16:59:17]GetLastDocTimeStamp 1722185619 [16:59:17]current date 1722185959 [16:59:17]FM_GetShiftState [16:59:17]SAM_PROTO_GetShiftState [16:59:17]wFMCommunicate request_size=4 [16:59:17]MH_SAM_APDU [16:59:17]CAPDU: 80 13 01 00 [16:59:17]Write to MH i2c: E2 08 00 D3 0A 80 13 01 00 00 00 00 00 5A [16:59:17]Write i2c OK [16:59:17]MH_I2C_Read... [16:59:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:17]Read from MH i2c: E2 [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: E2 0E 00 [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: E2 0E 00 D3 0A 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 31 [16:59:17]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [16:59:17]wFMCommunicate OK [16:59:17]SAM_PROTO_GetShiftState done [16:59:17]FM_GetShiftState done [16:59:17]opened in 1722125364 [16:59:17]opened+sec_in_day 1722211764 [16:59:17]quantity*price = 300075 [16:59:17]sum+1 = 300077 [16:59:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 201 28.07.2024 16:59 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118532 ФПД: 193213142802673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T165919&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118532&fm=193213142802673&tin=02508201610067®Number=0000000000092660&sum=300000 [16:59:19]StoreToDocumentArchive [16:59:19]shift 433 fd 118532 [16:59:19]save to /storage/0433/doc_00118532 [16:59:19]save last doc name /storage/0433/doc_00118532 to /storage/kkm_last_doc_name [16:59:19]save OK [16:59:19]Clear old archive folders... [16:59:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:59:19]tlvbuf is 01E624E0 [16:59:19]SAM_PROTO_ClearQueue [16:59:19]wFMCommunicate request_size=4 [16:59:19]MH_SAM_APDU [16:59:19]CAPDU: 80 09 00 00 [16:59:19]Write to MH i2c: E2 08 00 E0 0A 80 09 00 00 00 00 00 00 5C [16:59:19]Write i2c OK [16:59:19]MH_I2C_Read... [16:59:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:19]Read from MH i2c: E2 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: E2 03 00 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: E2 03 00 E0 0A 00 90 00 5E [16:59:19]RAPDU: 90 00 [16:59:19]wFMCommunicate OK [16:59:19]SAM_PROTO_ClearQueue done [16:59:19]KKMCreateOFDPacket [16:59:19]OFDProtocolAddRootSTLVToBuf [16:59:19]FM_MakeSignedData [16:59:19]FM_MakeSignedData [16:59:19]SAM_PROTO_SignData [16:59:19]wFMCommunicate request_size=4 [16:59:19]MH_SAM_APDU [16:59:19]CAPDU: 80 0D 01 02 [16:59:19]Write to MH i2c: E2 08 00 E1 0A 80 0D 01 02 00 00 00 00 64 [16:59:19]Write i2c OK [16:59:19]MH_I2C_Read... [16:59:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:19]Read from MH i2c: E2 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: E2 03 00 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: E2 03 00 E1 0A 00 90 00 5F [16:59:19]RAPDU: 90 00 [16:59:19]wFMCommunicate OK [16:59:19]wFMCommunicate request_size=255 [16:59:19]MH_SAM_APDU [16:59:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 E7 78 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 04 CF 01 00 35 04 06 00 AF B9 F0 BE [16:59:19]Write to MH i2c: E2 02 01 E2 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 E7 78 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 04 CF 01 00 35 04 06 00 AF B9 F0 BE 00 00 FB [16:59:19]Write i2c OK [16:59:19]MH_I2C_Read... [16:59:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:19]Read from MH i2c: E2 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: E2 03 00 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: E2 03 00 E2 0A 00 90 00 60 [16:59:19]RAPDU: 90 00 [16:59:19]wFMCommunicate OK [16:59:19]wFMCommunicate request_size=7 [16:59:19]MH_SAM_APDU [16:59:19]CAPDU: 80 0D 02 02 02 20 F1 [16:59:19]Write to MH i2c: E2 0A 00 E3 0A 80 0D 02 02 02 00 20 F1 00 00 7C [16:59:19]Write i2c OK [16:59:19]MH_I2C_Read... [16:59:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:19]Read from MH i2c: E2 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: E2 03 00 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: E2 03 00 E3 0A 00 90 00 61 [16:59:19]RAPDU: 90 00 [16:59:19]wFMCommunicate OK [16:59:19]wFMCommunicate request_size=4 [16:59:19]MH_SAM_APDU [16:59:19]CAPDU: 80 0D 03 02 [16:59:19]Write to MH i2c: E2 08 00 E4 0A 80 0D 03 02 00 00 00 00 69 [16:59:19]Write i2c OK [16:59:19]MH_I2C_Read... [16:59:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:19]Read from MH i2c: E2 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: E2 0B 00 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: E2 0B 00 E4 0A 00 96 58 3B C7 32 EE 29 12 90 00 B5 [16:59:19]RAPDU: 96 58 3B C7 32 EE 29 12 90 00 [16:59:19]wFMCommunicate OK [16:59:19]SAM_PROTO_SignData done [16:59:19]FM_MakeSignedData done [16:59:19]CreateOFDProtocolMessage [16:59:19]wFMCommunicate request_size=4 [16:59:19]MH_SAM_APDU [16:59:19]CAPDU: 80 11 00 00 [16:59:19]Write to MH i2c: E2 08 00 E5 0A 80 11 00 00 00 00 00 00 69 [16:59:19]Write i2c OK [16:59:19]MH_I2C_Read... [16:59:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:19]Read from MH i2c: E2 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: E2 17 00 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: E2 17 00 E5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C4 [16:59:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:59:19]wFMCommunicate OK [16:59:19]CreateOFDProtocolMessage done [16:59:19]OFDSenderStorePacket 118532 [16:59:19]StoreOFDPacket docnum=118532 [16:59:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E8 A7 04 01 E2 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 E7 78 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 04 CF 01 00 35 04 06 00 AF B9 F0 BE 20 F1 96 58 3B C7 32 EE 29 12 [16:59:19]CheckFolder [16:59:19]dirname=/storage/ofd_packets [16:59:19]CheckFolder done [16:59:19]ProducePacketName [16:59:19]name=ofd_packets/00118532 [16:59:19]NVStorageSaveData ofd_packets/00118532 [16:59:19]File name is /storage/ofd_packets/00118532 [16:59:19]Write 298 bytes [16:59:19]NVStorageSaveData done [16:59:19]OFDSenderStorePacket done [16:59:19]KKMCreateOFDPacket done [16:59:19]NVStorageSaveData kkm_last_timestamp [16:59:19]File name is /storage/kkm_last_timestamp [16:59:19]Write 4 bytes [16:59:19]NVStorageSaveData done [16:59:19]ExternCall_PrintAddStr [16:59:19]wPrintStart [16:59:19]Write to MH i2c: 01 00 00 E6 0A F0 [16:59:19]Write i2c OK [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: 01 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: 01 07 00 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: 01 07 00 E6 0A 00 00 00 00 00 FF 0F 05 [16:59:19]RasterBufferAndPrint [16:59:19]line Счет N : (1)949403 [16:59:19]line ИНН: 02508201610067 [16:59:19]line Контрольно-Кассовый Чек [16:59:19]line ПРОДАЖА [16:59:19]line ТРК (МРК, ГНК) : 44 [16:59:19]line Товар: 2710194800 [16:59:19]line ДТ-К-5 [16:59:19]line 39.380 * 76.20 [16:59:19]line = 3000.76 [16:59:19]line НДС 12% НСП 1% [16:59:19]line > о реализуемом товаре [16:59:19]line ОКРУГЛЕНИЕ: -0.76 [16:59:19]line ИТОГО: 3000.00 [16:59:19]line НСП 1% : 26.55 [16:59:19]line НДС 12% : 318.66 [16:59:19]line Наличными: 0.00 [16:59:19]line Безнал.: 3000.00 [16:59:19]line Место: АЗС № 134 "Партнер Нефть" [16:59:19]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:59:19]line СНО: Общий режим [16:59:19]line Чек 201 28.07.2024 16:59 [16:59:19]line Смена: 433 ФФД: 1.0 [16:59:19]line ЗНМ: 0300000044 [16:59:19]line РНМ: 0000000000092660 [16:59:19]line Версия ККМ: 001 [16:59:19]line Платежная система: O! деньги [16:59:19]line ФМ: 0000000000874939 [16:59:19]line ФД: 118532 [16:59:19]line ФПД: 193213142802673 [16:59:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T165919&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118532&fm=193213142802673&tin=02508201610067®Number=0000000000092660&sum=300000 [16:59:19]OFD Sender: Processing packet 118532 [packets to send 86, broken 85] [16:59:19]ProducePacketName [16:59:19]name=ofd_packets/00118532 [16:59:19]OFD Sender: To server: pG, [16:59:19]CommunicateWithHost lk.salyk.kg:30040 [16:59:19]ConnectInit lk.salyk.kg [16:59:19]written 0, free lines is 4095 [16:59:19]Connected sock=10 [16:59:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E8 A7 04 01 E2 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 E7 78 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 04 CF 01 00 35 04 06 00 AF B9 F0 BE 20 F1 96 58 3B C7 32 EE 29 12 [16:59:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 24 CE 47 00 BF 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 39 33 39 10 04 04 00 04 CF 01 00 F4 03 04 00 77 26 A6 66 B6 04 01 00 00 3D 28 E7 B1 F4 A8 4E 9A [16:59:20]CommunicateWithHost err = 0 [16:59:20]CheckOFDResponse [16:59:20]1017 (14) - 77093643461234 [16:59:20]1041 (16) - 0000000000874939 [16:59:20]1040 (4) - 118532 [16:59:20]1012 (4) - 28.07.2024 11:07 [16:59:20]1206 (1) - 0 [16:59:20]OFD Sender: Remove packet 118532 [16:59:20]ProducePacketName [16:59:20]name=ofd_packets/00118532 [16:59:20]NVStorageDeleteData [16:59:20]Write to MH i2c: 01 00 00 10 0B 1B [16:59:20]Write i2c OK [16:59:20]MH_I2C_Read... [16:59:20]Read from MH i2c: 01 [16:59:20]MH_I2C_Read... [16:59:20]Read from MH i2c: 01 07 00 [16:59:20]MH_I2C_Read... [16:59:20]Read from MH i2c: 01 07 00 10 0B 00 00 00 00 00 EB 0C 19 [16:59:20]RasterBufferAndPrint [16:59:20]line [16:59:20]line [16:59:20]line [16:59:20]line [16:59:20]line [16:59:20]written 0, free lines is 3314 [16:59:20]MH_Cut [16:59:20]Write to MH i2c: D1 01 00 17 0B 01 F4 [16:59:20]Write i2c OK [16:59:20]MH_I2C_Read... [16:59:20]Read from MH i2c: D1 [16:59:20]MH_I2C_Read... [16:59:20]Read from MH i2c: D1 01 00 [16:59:20]MH_I2C_Read... [16:59:20]Read from MH i2c: D1 01 00 17 0B 00 F3 [16:59:20]Write to MH i2c: 01 00 00 18 0B 23 [16:59:20]Write i2c OK [16:59:20]MH_I2C_Read... [16:59:20]OFD Sender: No OFD packet to send [16:59:21]*** Cut start [16:59:21]*** Partial cut [16:59:21]*** CUTSNS_PIN = 1 [16:59:21]*** CUTSNS_PIN = 0 [16:59:21]*** Brake cut motor [16:59:21]Read from MH i2c: 01 [16:59:21]MH_I2C_Read... [16:59:21]*** Stop cut motor [16:59:21]*** Cut end [16:59:21]Read from MH i2c: 01 07 00 [16:59:21]MH_I2C_Read... [16:59:21]Read from MH i2c: 01 07 00 18 0B 00 00 00 00 00 FF 0F 38 [16:59:21]process_action close_receipt done [16:59:21]requested_data is exist [16:59:21]produce_requested_data [16:59:21]requested_item fm.sn is exist - process it [16:59:21]wFMCommunicate request_size=4 [16:59:21]MH_SAM_APDU [16:59:21]CAPDU: 80 11 00 00 [16:59:21]Write to MH i2c: E2 08 00 19 0B 80 11 00 00 00 00 00 00 9E [16:59:21]Write i2c OK [16:59:21]MH_I2C_Read... [16:59:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:21]Read from MH i2c: E2 [16:59:21]MH_I2C_Read... [16:59:21]Read from MH i2c: E2 17 00 [16:59:21]MH_I2C_Read... [16:59:21]Read from MH i2c: E2 17 00 19 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F9 [16:59:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:59:21]wFMCommunicate OK [16:59:21]requested_item fd.num is exist - process it [16:59:21]SAM_PROTO_GetFieldsCounters [16:59:21]wFMCommunicate request_size=4 [16:59:21]MH_SAM_APDU [16:59:21]CAPDU: 80 13 00 00 [16:59:21]Write to MH i2c: E2 08 00 1A 0B 80 13 00 00 00 00 00 00 A1 [16:59:21]Write i2c OK [16:59:21]MH_I2C_Read... [16:59:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:21]Read from MH i2c: E2 [16:59:21]MH_I2C_Read... [16:59:21]Read from MH i2c: E2 62 00 [16:59:21]MH_I2C_Read... [16:59:21]Read from MH i2c: E2 62 00 1A 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 04 CF 01 00 0E 04 04 00 B1 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 A9 [16: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 04 CF 01 00 0E 04 04 00 B1 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 [16:59:21]wFMCommunicate OK [16:59:21]SAM_PROTO_GetFieldsCounters done [16:59:21]requested_item shift.num is exist - process it [16:59:21]requested_item shift.opened is exist - process it [16:59:21]req_shift_opened [16:59:21]FM_GetShiftState [16:59:21]SAM_PROTO_GetShiftState [16:59:21]wFMCommunicate request_size=4 [16:59:21]MH_SAM_APDU [16:59:21]CAPDU: 80 13 01 00 [16:59:21]Write to MH i2c: E2 08 00 1B 0B 80 13 01 00 00 00 00 00 A3 [16:59:21]Write i2c OK [16:59:21]MH_I2C_Read... [16:59:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:21]Read from MH i2c: E2 [16:59:21]MH_I2C_Read... [16:59:21]Read from MH i2c: E2 0E 00 [16:59:21]MH_I2C_Read... [16:59:21]Read from MH i2c: E2 0E 00 1B 0B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 7A [16:59:21]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [16:59:21]wFMCommunicate OK [16:59:21]SAM_PROTO_GetShiftState done [16:59:21]FM_GetShiftState done [16:59:21]req_shift_opened done [16:59:21]requested_item shift.open_date is exist - process it [16:59:21]req_shift_open_date [16:59:21]req_shift_open_date done [16:59:21]produce_requested_data done [16:59:21]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118532,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [16:59:21]process_action_free close_receipt [16:59:21]json_value_free [16:59:21]json_value_free done [16:59:21]process_json_proto returns [16:59:21]Send response to host [16:59:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118532,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [16:59:21]free response buf [16:59:21]execute_script done [16:59:21]execute_script returns [16:59:21]free content buf [16:59:21]Sock 7.Close socket [16:59:21]Sock 7.Thread stoped [16:59:25]OFD Sender: No OFD packet to send [16:59:30]OFD Sender: No OFD packet to send [16:59:35]OFD Sender: No OFD packet to send [16:59:40]OFD Sender: No OFD packet to send [16:59:45]OFD Sender: No OFD packet to send [16:59:50]OFD Sender: No OFD packet to send [16:59:55]OFD Sender: No OFD packet to send [17:00:00]OFD Sender: No OFD packet to send [17:00:05]OFD Sender: No OFD packet to send [17:00:10]OFD Sender: No OFD packet to send [17:00:15]OFD Sender: No OFD packet to send [17:00:20]OFD Sender: No OFD packet to send [17:00:25]OFD Sender: No OFD packet to send [17:00:30]OFD Sender: No OFD packet to send [17:00:35]OFD Sender: No OFD packet to send [17:00:40]OFD Sender: No OFD packet to send [17:00:45]OFD Sender: No OFD packet to send [17:00:50]OFD Sender: No OFD packet to send [17:00:55]OFD Sender: No OFD packet to send [17:01:00]OFD Sender: No OFD packet to send [17:01:05]OFD Sender: No OFD packet to send [17:01:10]OFD Sender: No OFD packet to send [17:01:15]OFD Sender: No OFD packet to send [17:01:20]OFD Sender: No OFD packet to send [17:01:25]OFD Sender: No OFD packet to send [17:01:30]OFD Sender: No OFD packet to send [17:01:35]OFD Sender: No OFD packet to send [17:01:40]OFD Sender: No OFD packet to send [17:01:45]OFD Sender: No OFD packet to send [17:01:50]OFD Sender: No OFD packet to send [17:01:55]OFD Sender: No OFD packet to send [17:02:00]OFD Sender: No OFD packet to send [17:02:05]OFD Sender: No OFD packet to send [17:02:10]OFD Sender: No OFD packet to send [17:02:15]OFD Sender: No OFD packet to send [17:02:20]OFD Sender: No OFD packet to send [17:02:25]OFD Sender: No OFD packet to send [17:02:30]OFD Sender: No OFD packet to send [17:02:35]OFD Sender: No OFD packet to send [17:02:40]OFD Sender: No OFD packet to send [17:02:45]OFD Sender: No OFD packet to send [17:02:50]OFD Sender: No OFD packet to send [17:02:55]OFD Sender: No OFD packet to send [17:03:00]OFD Sender: No OFD packet to send [17:03:05]OFD Sender: No OFD packet to send [17:03:10]OFD Sender: No OFD packet to send [17:03:15]OFD Sender: No OFD packet to send [17:03:20]OFD Sender: No OFD packet to send [17:03:25]OFD Sender: No OFD packet to send [17:03:30]OFD Sender: No OFD packet to send [17:03:35]OFD Sender: No OFD packet to send [17:03:40]OFD Sender: No OFD packet to send [17:03:45]OFD Sender: No OFD packet to send [17:03:50]OFD Sender: No OFD packet to send [17:03:55]OFD Sender: No OFD packet to send [17:04:00]OFD Sender: No OFD packet to send [17:04:05]OFD Sender: No OFD packet to send [17:04:10]OFD Sender: No OFD packet to send [17:04:15]OFD Sender: No OFD packet to send [17:04:20]OFD Sender: No OFD packet to send [17:04:26]OFD Sender: No OFD packet to send [17:04:31]OFD Sender: No OFD packet to send [17:04:36]OFD Sender: No OFD packet to send [17:04:41]OFD Sender: No OFD packet to send [17:04:46]OFD Sender: No OFD packet to send [17:04:51]OFD Sender: No OFD packet to send [17:04:56]OFD Sender: No OFD packet to send [17:05:01]OFD Sender: No OFD packet to send [17:05:06]OFD Sender: No OFD packet to send [17:05:11]OFD Sender: No OFD packet to send [17:05:16]OFD Sender: No OFD packet to send [17:05:21]OFD Sender: No OFD packet to send [17:05:26]OFD Sender: No OFD packet to send [17:05:31]OFD Sender: No OFD packet to send [17:05:36]OFD Sender: No OFD packet to send [17:05:41]OFD Sender: No OFD packet to send [17:05:46]OFD Sender: No OFD packet to send [17:05:51]OFD Sender: No OFD packet to send [17:05:56]OFD Sender: No OFD packet to send [17:06:01]OFD Sender: No OFD packet to send [17:06:06]OFD Sender: No OFD packet to send [17:06:11]OFD Sender: No OFD packet to send [17:06:16]OFD Sender: No OFD packet to send [17:06:21]OFD Sender: No OFD packet to send [17:06:26]OFD Sender: No OFD packet to send [17:06:31]OFD Sender: No OFD packet to send [17:06:36]OFD Sender: No OFD packet to send [17:06:41]OFD Sender: No OFD packet to send [17:06:46]OFD Sender: No OFD packet to send [17:06:51]OFD Sender: No OFD packet to send [17:06:56]OFD Sender: No OFD packet to send [17:07:01]OFD Sender: No OFD packet to send [17:07:06]OFD Sender: No OFD packet to send [17:07:11]OFD Sender: No OFD packet to send [17:07:16]OFD Sender: No OFD packet to send [17:07:21]OFD Sender: No OFD packet to send [17:07:26]OFD Sender: No OFD packet to send [17:07:31]OFD Sender: No OFD packet to send [17:07:36]OFD Sender: No OFD packet to send [17:07:41]OFD Sender: No OFD packet to send [17:07:46]OFD Sender: No OFD packet to send [17:07:51]OFD Sender: No OFD packet to send [17:07:56]OFD Sender: No OFD packet to send [17:08:01]OFD Sender: No OFD packet to send [17:08:06]OFD Sender: No OFD packet to send [17:08:11]OFD Sender: No OFD packet to send [17:08:16]OFD Sender: No OFD packet to send [17:08:21]OFD Sender: No OFD packet to send [17:08:26]OFD Sender: No OFD packet to send [17:08:31]OFD Sender: No OFD packet to send [17:08:36]OFD Sender: No OFD packet to send [17:08:41]OFD Sender: No OFD packet to send [17:08:46]OFD Sender: No OFD packet to send [17:08:51]OFD Sender: No OFD packet to send [17:08:56]OFD Sender: No OFD packet to send [17:09:01]OFD Sender: No OFD packet to send [17:09:06]OFD Sender: No OFD packet to send [17:09:11]OFD Sender: No OFD packet to send [17:09:16]OFD Sender: No OFD packet to send [17:09:21]OFD Sender: No OFD packet to send [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:41]OFD Sender: No OFD packet to send [17:09:46]OFD Sender: No OFD packet to send [17:09:51]OFD Sender: No OFD packet to send [17:09:56]OFD Sender: No OFD packet to send [17:10:01]OFD Sender: No OFD packet to send [17:10:06]OFD Sender: No OFD packet to send [17:10:11]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [17:11:16]OFD Sender: No OFD packet to send [17:11:20]accept exits with 9 [17:11:20]New connection [17:11:20]New thread 3067239780 created [17:11:20]Thread 3067383140 joined [17:11:20]Waiting for new connection... [17:11:20] Sock 9.Parse request [17:11:20]Sock 9.Check first char [17:11:20]Sock 9.First char is OK [17:11:20]request: POST /json_proto HTTP/1.0 [17:11:20]Method: POST [17:11:20]URL: /json_proto [17:11:20]Method is POST - this is cgi request [17:11:20]url: /json_proto [17:11:20]query_string will be loaded in cgi processing [17:11:20]execute_cgi json_proto POST (null) [17:11:20]execute_cgi path=json_proto method=POST [17:11:20]POST find Content-Length [17:11:20]Host: 172.17.45.7:8080 [17:11:20]Content-Length: 815 [17:11:20]Content-Type: application/json [17:11:20] [17:11:20]POST finish read [17:11:20]Found Content-Length = 815 [17:11:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.600, "sum" : 350.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 350.00, "payments": [ { "type": 1, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:20]execute_script... [17:11: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)949404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.600, "sum" : 350.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 350.00, "payments": [ { "type": 1, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:20]POST & json_proto [17:11:20]process_json_proto [17:11:20]json parsed OK: [17:11:20]protocol is kg_v1.0 [17:11:20]action value=close_receipt [17:11:20]process_action close_receipt [17:11:20]cmd_close_receipt [17:11:20]MH_GetDate [17:11:20]Write to MH i2c: F0 00 00 1C 0B 16 [17:11:20]Write i2c OK [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: F0 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: F0 09 00 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: F0 09 00 1C 0B 00 BA 7B A6 66 90 0F 3E 66 A3 [17:11:20]GetLastDocTimeStamp 1722185959 [17:11:20]current date 1722186682 [17:11:20]FM_GetShiftState [17:11:20]SAM_PROTO_GetShiftState [17:11:20]wFMCommunicate request_size=4 [17:11:20]MH_SAM_APDU [17:11:20]CAPDU: 80 13 01 00 [17:11:20]Write to MH i2c: E2 08 00 1D 0B 80 13 01 00 00 00 00 00 A5 [17:11:20]Write i2c OK [17:11:20]MH_I2C_Read... [17:11:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:20]Read from MH i2c: E2 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: E2 0E 00 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: E2 0E 00 1D 0B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 7C [17:11:20]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:11:20]wFMCommunicate OK [17:11:20]SAM_PROTO_GetShiftState done [17:11:20]FM_GetShiftState done [17:11:20]opened in 1722125364 [17:11:20]opened+sec_in_day 1722211764 [17:11:20]quantity*price = 35052 [17:11:20]sum+1 = 35053 [17:11:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 350.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 0.00 Безнал.: 350.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 202 28.07.2024 17:11 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118533 ФПД: 90430312356921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T171122&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118533&fm=90430312356921&tin=02508201610067®Number=0000000000092660&sum=35000 [17:11:21]StoreToDocumentArchive [17:11:21]shift 433 fd 118533 [17:11:21]save to /storage/0433/doc_00118533 [17:11:21]save last doc name /storage/0433/doc_00118533 to /storage/kkm_last_doc_name [17:11:21]save OK [17:11:21]Clear old archive folders... [17:11:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:11:21]tlvbuf is 01E7A7C0 [17:11:21]SAM_PROTO_ClearQueue [17:11:21]wFMCommunicate request_size=4 [17:11:21]MH_SAM_APDU [17:11:21]CAPDU: 80 09 00 00 [17:11:21]Write to MH i2c: E2 08 00 2A 0B 80 09 00 00 00 00 00 00 A7 [17:11:21]Write i2c OK [17:11:21]MH_I2C_Read... [17:11:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:22]Read from MH i2c: E2 [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: E2 03 00 [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: E2 03 00 2A 0B 00 90 00 A9 [17:11:22]RAPDU: 90 00 [17:11:22]wFMCommunicate OK [17:11:22]SAM_PROTO_ClearQueue done [17:11:22]KKMCreateOFDPacket [17:11:22]OFDProtocolAddRootSTLVToBuf [17:11:22]FM_MakeSignedData [17:11:22]FM_MakeSignedData [17:11:22]SAM_PROTO_SignData [17:11:22]wFMCommunicate request_size=4 [17:11:22]MH_SAM_APDU [17:11:22]CAPDU: 80 0D 01 02 [17:11:22]Write to MH i2c: E2 08 00 2B 0B 80 0D 01 02 00 00 00 00 AF [17:11:22]Write i2c OK [17:11:22]MH_I2C_Read... [17:11:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:22]Read from MH i2c: E2 [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: E2 03 00 [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: E2 03 00 2B 0B 00 90 00 AA [17:11:22]RAPDU: 90 00 [17:11:22]wFMCommunicate OK [17:11:22]wFMCommunicate request_size=255 [17:11:22]MH_SAM_APDU [17:11:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 BA 7B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 05 CF 01 00 35 04 06 00 52 3E F2 A5 [17:11:22]Write to MH i2c: E2 02 01 2C 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 BA 7B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 05 CF 01 00 35 04 06 00 52 3E F2 A5 00 00 7D [17:11:22]Write i2c OK [17:11:22]MH_I2C_Read... [17:11:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:22]Read from MH i2c: E2 [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: E2 03 00 [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: E2 03 00 2C 0B 00 90 00 AB [17:11:22]RAPDU: 90 00 [17:11:22]wFMCommunicate OK [17:11:22]wFMCommunicate request_size=7 [17:11:22]MH_SAM_APDU [17:11:22]CAPDU: 80 0D 02 02 02 1C 39 [17:11:22]Write to MH i2c: E2 0A 00 2D 0B 80 0D 02 02 02 00 1C 39 00 00 0B [17:11:22]Write i2c OK [17:11:22]MH_I2C_Read... [17:11:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:22]Read from MH i2c: E2 [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: E2 03 00 [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: E2 03 00 2D 0B 00 90 00 AC [17:11:22]RAPDU: 90 00 [17:11:22]wFMCommunicate OK [17:11:22]wFMCommunicate request_size=4 [17:11:22]MH_SAM_APDU [17:11:22]CAPDU: 80 0D 03 02 [17:11:22]Write to MH i2c: E2 08 00 2E 0B 80 0D 03 02 00 00 00 00 B4 [17:11:22]Write i2c OK [17:11:22]MH_I2C_Read... [17:11:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:22]Read from MH i2c: E2 [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: E2 0B 00 [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: E2 0B 00 2E 0B 00 3D 3B 3B D7 B0 42 57 B1 90 00 39 [17:11:22]RAPDU: 3D 3B 3B D7 B0 42 57 B1 90 00 [17:11:22]wFMCommunicate OK [17:11:22]SAM_PROTO_SignData done [17:11:22]FM_MakeSignedData done [17:11:22]CreateOFDProtocolMessage [17:11:22]wFMCommunicate request_size=4 [17:11:22]MH_SAM_APDU [17:11:22]CAPDU: 80 11 00 00 [17:11:22]Write to MH i2c: E2 08 00 2F 0B 80 11 00 00 00 00 00 00 B4 [17:11:22]Write i2c OK [17:11:22]MH_I2C_Read... [17:11:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:22]Read from MH i2c: E2 [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: E2 17 00 [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: E2 17 00 2F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0F [17:11:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:11:22]wFMCommunicate OK [17:11:22]CreateOFDProtocolMessage done [17:11:22]OFDSenderStorePacket 118533 [17:11:22]StoreOFDPacket docnum=118533 [17:11:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 63 8A 04 01 2F C0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 BA 7B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 05 CF 01 00 35 04 06 00 52 3E F2 A5 1C 39 3D 3B 3B D7 B0 42 57 B1 [17:11:22]CheckFolder [17:11:22]dirname=/storage/ofd_packets [17:11:22]CheckFolder done [17:11:22]ProducePacketName [17:11:22]name=ofd_packets/00118533 [17:11:22]NVStorageSaveData ofd_packets/00118533 [17:11:22]File name is /storage/ofd_packets/00118533 [17:11:22]Write 298 bytes [17:11:22]NVStorageSaveData done [17:11:22]OFDSenderStorePacket done [17:11:22]KKMCreateOFDPacket done [17:11:22]NVStorageSaveData kkm_last_timestamp [17:11:22]File name is /storage/kkm_last_timestamp [17:11:22]Write 4 bytes [17:11:22]NVStorageSaveData done [17:11:22]ExternCall_PrintAddStr [17:11:22]wPrintStart [17:11:22]Write to MH i2c: 01 00 00 30 0B 3B [17:11:22]Write i2c OK [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: 01 [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: 01 07 00 [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: 01 07 00 30 0B 00 00 00 00 00 FF 0F 50 [17:11:22]RasterBufferAndPrint [17:11:22]line Счет N : (1)949404 [17:11:22]line ИНН: 02508201610067 [17:11:22]line Контрольно-Кассовый Чек [17:11:22]line ПРОДАЖА [17:11:22]line ТРК (МРК, ГНК) : 44 [17:11:22]line Товар: 2710194800 [17:11:22]line ДТ-К-5 [17:11:22]line 4.600 * 76.20 [17:11:22]line = 350.52 [17:11:22]line НДС 12% НСП 1% [17:11:22]line > о реализуемом товаре [17:11:22]line ОКРУГЛЕНИЕ: -0.52 [17:11:22]line ИТОГО: 350.00 [17:11:22]line НСП 1% : 3.10 [17:11:22]line НДС 12% : 37.22 [17:11:22]line Наличными: 0.00 [17:11:22]line Безнал.: 350.00 [17:11:22]line Место: АЗС № 134 "Партнер Нефть" [17:11:22]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:11:22]line СНО: Общий режим [17:11:22]line Чек 202 28.07.2024 17:11 [17:11:22]line Смена: 433 ФФД: 1.0 [17:11:22]line ЗНМ: 0300000044 [17:11:22]line РНМ: 0000000000092660 [17:11:22]line Версия ККМ: 001 [17:11:22]line Платежная система: O! деньги [17:11:22]line ФМ: 0000000000874939 [17:11:22]line ФД: 118533 [17:11:22]line ФПД: 90430312356921 [17:11:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T171122&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118533&fm=90430312356921&tin=02508201610067®Number=0000000000092660&sum=35000 [17:11:22]OFD Sender: Processing packet 118533 [packets to send 86, broken 85] [17:11:22]ProducePacketName [17:11:22]name=ofd_packets/00118533 [17:11:22]OFD Sender: To server: pG, [17:11:22]CommunicateWithHost lk.salyk.kg:30040 [17:11:22]ConnectInit lk.salyk.kg [17:11:22]written 0, free lines is 4095 [17:11:23]Connected sock=10 [17:11:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 63 8A 04 01 2F C0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 BA 7B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 05 CF 01 00 35 04 06 00 52 3E F2 A5 1C 39 3D 3B 3B D7 B0 42 57 B1 [17:11:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B9 24 47 00 98 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 39 33 39 10 04 04 00 05 CF 01 00 F4 03 04 00 4A 29 A6 66 B6 04 01 00 00 49 23 01 8D 0E 0E 32 5A [17:11:23]CommunicateWithHost err = 0 [17:11:23]CheckOFDResponse [17:11:23]1017 (14) - 77093643461234 [17:11:23]1041 (16) - 0000000000874939 [17:11:23]1040 (4) - 118533 [17:11:23]1012 (4) - 28.07.2024 11:19 [17:11:23]1206 (1) - 0 [17:11:23]OFD Sender: Remove packet 118533 [17:11:23]ProducePacketName [17:11:23]name=ofd_packets/00118533 [17:11:23]NVStorageDeleteData [17:11:23]Write to MH i2c: 01 00 00 5A 0B 65 [17:11:23]Write i2c OK [17:11:23]MH_I2C_Read... [17:11:23]Read from MH i2c: 01 [17:11:23]MH_I2C_Read... [17:11:23]Read from MH i2c: 01 07 00 [17:11:23]MH_I2C_Read... [17:11:23]Read from MH i2c: 01 07 00 5A 0B 00 00 00 00 00 E5 0C 5D [17:11:23]RasterBufferAndPrint [17:11:23]line [17:11:23]line [17:11:23]line [17:11:23]line [17:11:23]line [17:11:23]written 0, free lines is 3307 [17:11:23]MH_Cut [17:11:23]Write to MH i2c: D1 01 00 61 0B 01 3E [17:11:23]Write i2c OK [17:11:23]MH_I2C_Read... [17:11:23]Read from MH i2c: D1 [17:11:23]MH_I2C_Read... [17:11:23]Read from MH i2c: D1 01 00 [17:11:23]MH_I2C_Read... [17:11:23]Read from MH i2c: D1 01 00 61 0B 00 3D [17:11:23]Write to MH i2c: 01 00 00 62 0B 6D [17:11:23]Write i2c OK [17:11:23]MH_I2C_Read... [17:11:23]OFD Sender: No OFD packet to send [17:11:24]*** Cut start [17:11:24]*** Partial cut [17:11:24]*** CUTSNS_PIN = 1 [17:11:24]*** CUTSNS_PIN = 0 [17:11:24]*** Brake cut motor [17:11:24]Read from MH i2c: 01 [17:11:24]MH_I2C_Read... [17:11:24]*** Stop cut motor [17:11:24]*** Cut end [17:11:24]Read from MH i2c: 01 07 00 [17:11:24]MH_I2C_Read... [17:11:24]Read from MH i2c: 01 07 00 62 0B 00 00 00 00 00 FF 0F 82 [17:11:24]process_action close_receipt done [17:11:24]requested_data is exist [17:11:24]produce_requested_data [17:11:24]requested_item fm.sn is exist - process it [17:11:24]wFMCommunicate request_size=4 [17:11:24]MH_SAM_APDU [17:11:24]CAPDU: 80 11 00 00 [17:11:24]Write to MH i2c: E2 08 00 63 0B 80 11 00 00 00 00 00 00 E8 [17:11:24]Write i2c OK [17:11:24]MH_I2C_Read... [17:11:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:24]Read from MH i2c: E2 [17:11:24]MH_I2C_Read... [17:11:24]Read from MH i2c: E2 17 00 [17:11:24]MH_I2C_Read... [17:11:24]Read from MH i2c: E2 17 00 63 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 43 [17:11:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:11:24]wFMCommunicate OK [17:11:24]requested_item fd.num is exist - process it [17:11:24]SAM_PROTO_GetFieldsCounters [17:11:24]wFMCommunicate request_size=4 [17:11:24]MH_SAM_APDU [17:11:24]CAPDU: 80 13 00 00 [17:11:24]Write to MH i2c: E2 08 00 64 0B 80 13 00 00 00 00 00 00 EB [17:11:24]Write i2c OK [17:11:24]MH_I2C_Read... [17:11:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:24]Read from MH i2c: E2 [17:11:24]MH_I2C_Read... [17:11:24]Read from MH i2c: E2 62 00 [17:11:24]MH_I2C_Read... [17:11:24]Read from MH i2c: E2 62 00 64 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 05 CF 01 00 0E 04 04 00 B1 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 F7 [17:11:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 05 CF 01 00 0E 04 04 00 B1 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 [17:11:24]wFMCommunicate OK [17:11:24]SAM_PROTO_GetFieldsCounters done [17:11:24]requested_item shift.num is exist - process it [17:11:24]requested_item shift.opened is exist - process it [17:11:24]req_shift_opened [17:11:24]FM_GetShiftState [17:11:24]SAM_PROTO_GetShiftState [17:11:24]wFMCommunicate request_size=4 [17:11:24]MH_SAM_APDU [17:11:24]CAPDU: 80 13 01 00 [17:11:24]Write to MH i2c: E2 08 00 65 0B 80 13 01 00 00 00 00 00 ED [17:11:24]Write i2c OK [17:11:24]MH_I2C_Read... [17:11:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:24]Read from MH i2c: E2 [17:11:24]MH_I2C_Read... [17:11:24]Read from MH i2c: E2 0E 00 [17:11:24]MH_I2C_Read... [17:11:24]Read from MH i2c: E2 0E 00 65 0B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 C4 [17:11:24]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:11:24]wFMCommunicate OK [17:11:24]SAM_PROTO_GetShiftState done [17:11:24]FM_GetShiftState done [17:11:24]req_shift_opened done [17:11:24]requested_item shift.open_date is exist - process it [17:11:24]req_shift_open_date [17:11:24]req_shift_open_date done [17:11:24]produce_requested_data done [17:11:24]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118533,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [17:11:24]process_action_free close_receipt [17:11:24]json_value_free [17:11:24]json_value_free done [17:11:24]process_json_proto returns [17:11:24]Send response to host [17:11:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118533,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [17:11:24]free response buf [17:11:24]execute_script done [17:11:24]execute_script returns [17:11:24]free content buf [17:11:24]Sock 9.Close socket [17:11:24]Sock 9.Thread stoped [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:30]accept exits with 7 [17:13:30]New connection [17:13:30]New thread 3067383140 created [17:13:30]Thread 3067239780 joined [17:13:30]Waiting for new connection... [17:13:30] Sock 7.Parse request [17:13:30]Sock 7.Check first char [17:13:30]Sock 7.First char is OK [17:13:30]request: POST /json_proto HTTP/1.0 [17:13:30]Method: POST [17:13:30]URL: /json_proto [17:13:30]Method is POST - this is cgi request [17:13:30]url: /json_proto [17:13:30]query_string will be loaded in cgi processing [17:13:30]execute_cgi json_proto POST (null) [17:13:30]execute_cgi path=json_proto method=POST [17:13:30]POST find Content-Length [17:13:30]Host: 172.17.45.7:8080 [17:13:30]Content-Length: 819 [17:13:30]Content-Type: application/json [17:13:30] [17:13:30]POST finish read [17:13:30]Found Content-Length = 819 [17:13:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2500.00, "payments": [ { "type": 1, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:30]execute_script... [17:13:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2500.00, "payments": [ { "type": 1, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:30]POST & json_proto [17:13:30]process_json_proto [17:13:30]json parsed OK: [17:13:30]protocol is kg_v1.0 [17:13:30]action value=close_receipt [17:13:30]process_action close_receipt [17:13:30]cmd_close_receipt [17:13:30]MH_GetDate [17:13:30]Write to MH i2c: F0 00 00 66 0B 60 [17:13:30]Write i2c OK [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: F0 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: F0 09 00 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: F0 09 00 66 0B 00 3C 7C A6 66 90 0F 3E 66 70 [17:13:30]GetLastDocTimeStamp 1722186682 [17:13:30]current date 1722186812 [17:13:30]FM_GetShiftState [17:13:30]SAM_PROTO_GetShiftState [17:13:30]wFMCommunicate request_size=4 [17:13:30]MH_SAM_APDU [17:13:30]CAPDU: 80 13 01 00 [17:13:30]Write to MH i2c: E2 08 00 67 0B 80 13 01 00 00 00 00 00 EF [17:13:30]Write i2c OK [17:13:30]MH_I2C_Read... [17:13:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:30]Read from MH i2c: E2 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 0E 00 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 0E 00 67 0B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 C6 [17:13:30]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:13:30]wFMCommunicate OK [17:13:30]SAM_PROTO_GetShiftState done [17:13:30]FM_GetShiftState done [17:13:30]opened in 1722125364 [17:13:30]opened+sec_in_day 1722211764 [17:13:30]quantity*price = 250012 [17:13:30]sum+1 = 250013 [17:13:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 0.00 Безнал.: 2500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 203 28.07.2024 17:13 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118534 ФПД: 280517051969608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T171332&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118534&fm=280517051969608&tin=02508201610067®Number=0000000000092660&sum=250000 [17:13:31]StoreToDocumentArchive [17:13:31]shift 433 fd 118534 [17:13:31]save to /storage/0433/doc_00118534 [17:13:31]save last doc name /storage/0433/doc_00118534 to /storage/kkm_last_doc_name [17:13:31]save OK [17:13:31]Clear old archive folders... [17:13:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:13:31]tlvbuf is 01E4A600 [17:13:31]SAM_PROTO_ClearQueue [17:13:31]wFMCommunicate request_size=4 [17:13:31]MH_SAM_APDU [17:13:31]CAPDU: 80 09 00 00 [17:13:31]Write to MH i2c: E2 08 00 74 0B 80 09 00 00 00 00 00 00 F1 [17:13:31]Write i2c OK [17:13:31]MH_I2C_Read... [17:13:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:31]Read from MH i2c: E2 [17:13:31]MH_I2C_Read... [17:13:31]Read from MH i2c: E2 03 00 [17:13:31]MH_I2C_Read... [17:13:31]Read from MH i2c: E2 03 00 74 0B 00 90 00 F3 [17:13:31]RAPDU: 90 00 [17:13:31]wFMCommunicate OK [17:13:31]SAM_PROTO_ClearQueue done [17:13:31]KKMCreateOFDPacket [17:13:31]OFDProtocolAddRootSTLVToBuf [17:13:31]FM_MakeSignedData [17:13:31]FM_MakeSignedData [17:13:31]SAM_PROTO_SignData [17:13:31]wFMCommunicate request_size=4 [17:13:31]MH_SAM_APDU [17:13:31]CAPDU: 80 0D 01 02 [17:13:31]Write to MH i2c: E2 08 00 75 0B 80 0D 01 02 00 00 00 00 F9 [17:13:31]Write i2c OK [17:13:31]MH_I2C_Read... [17:13:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:32]Read from MH i2c: E2 [17:13:32]MH_I2C_Read... [17:13:32]Read from MH i2c: E2 03 00 [17:13:32]MH_I2C_Read... [17:13:32]Read from MH i2c: E2 03 00 75 0B 00 90 00 F4 [17:13:32]RAPDU: 90 00 [17:13:32]wFMCommunicate OK [17:13:32]wFMCommunicate request_size=255 [17:13:32]MH_SAM_APDU [17:13:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 3C 7C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 06 CF 01 00 35 04 06 00 FF 20 F7 3C [17:13:32]Write to MH i2c: E2 02 01 76 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 3C 7C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 06 CF 01 00 35 04 06 00 FF 20 F7 3C 00 00 53 [17:13:32]Write i2c OK [17:13:32]MH_I2C_Read... [17:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:32]Read from MH i2c: E2 [17:13:32]MH_I2C_Read... [17:13:32]Read from MH i2c: E2 03 00 [17:13:32]MH_I2C_Read... [17:13:32]Read from MH i2c: E2 03 00 76 0B 00 90 00 F5 [17:13:32]RAPDU: 90 00 [17:13:32]wFMCommunicate OK [17:13:32]wFMCommunicate request_size=7 [17:13:32]MH_SAM_APDU [17:13:32]CAPDU: 80 0D 02 02 02 70 48 [17:13:32]Write to MH i2c: E2 0A 00 77 0B 80 0D 02 02 02 00 70 48 00 00 B8 [17:13:32]Write i2c OK [17:13:32]MH_I2C_Read... [17:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:32]Read from MH i2c: E2 [17:13:32]MH_I2C_Read... [17:13:32]Read from MH i2c: E2 03 00 [17:13:32]MH_I2C_Read... [17:13:32]Read from MH i2c: E2 03 00 77 0B 00 90 00 F6 [17:13:32]RAPDU: 90 00 [17:13:32]wFMCommunicate OK [17:13:32]wFMCommunicate request_size=4 [17:13:32]MH_SAM_APDU [17:13:32]CAPDU: 80 0D 03 02 [17:13:32]Write to MH i2c: E2 08 00 78 0B 80 0D 03 02 00 00 00 00 FE [17:13:32]Write i2c OK [17:13:32]MH_I2C_Read... [17:13:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:32]Read from MH i2c: E2 [17:13:32]MH_I2C_Read... [17:13:32]Read from MH i2c: E2 0B 00 [17:13:32]MH_I2C_Read... [17:13:32]Read from MH i2c: E2 0B 00 78 0B 00 0F E9 F3 A1 13 B8 22 1A 90 00 92 [17:13:32]RAPDU: 0F E9 F3 A1 13 B8 22 1A 90 00 [17:13:32]wFMCommunicate OK [17:13:32]SAM_PROTO_SignData done [17:13:32]FM_MakeSignedData done [17:13:32]CreateOFDProtocolMessage [17:13:32]wFMCommunicate request_size=4 [17:13:32]MH_SAM_APDU [17:13:32]CAPDU: 80 11 00 00 [17:13:32]Write to MH i2c: E2 08 00 79 0B 80 11 00 00 00 00 00 00 FE [17:13:32]Write i2c OK [17:13:32]MH_I2C_Read... [17:13:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:32]Read from MH i2c: E2 [17:13:32]MH_I2C_Read... [17:13:32]Read from MH i2c: E2 17 00 [17:13:32]MH_I2C_Read... [17:13:32]Read from MH i2c: E2 17 00 79 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 59 [17:13:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:13:32]wFMCommunicate OK [17:13:32]CreateOFDProtocolMessage done [17:13:32]OFDSenderStorePacket 118534 [17:13:32]StoreOFDPacket docnum=118534 [17:13:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2C 44 04 01 F6 EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 3C 7C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 06 CF 01 00 35 04 06 00 FF 20 F7 3C 70 48 0F E9 F3 A1 13 B8 22 1A [17:13:32]CheckFolder [17:13:32]dirname=/storage/ofd_packets [17:13:32]CheckFolder done [17:13:32]ProducePacketName [17:13:32]name=ofd_packets/00118534 [17:13:32]NVStorageSaveData ofd_packets/00118534 [17:13:32]File name is /storage/ofd_packets/00118534 [17:13:32]Write 298 bytes [17:13:32]NVStorageSaveData done [17:13:32]OFDSenderStorePacket done [17:13:32]KKMCreateOFDPacket done [17:13:32]NVStorageSaveData kkm_last_timestamp [17:13:32]File name is /storage/kkm_last_timestamp [17:13:32]Write 4 bytes [17:13:32]NVStorageSaveData done [17:13:32]ExternCall_PrintAddStr [17:13:32]wPrintStart [17:13:32]Write to MH i2c: 01 00 00 7A 0B 85 [17:13:32]Write i2c OK [17:13:32]MH_I2C_Read... [17:13:32]Read from MH i2c: 01 [17:13:32]MH_I2C_Read... [17:13:32]Read from MH i2c: 01 07 00 [17:13:32]MH_I2C_Read... [17:13:32]Read from MH i2c: 01 07 00 7A 0B 00 00 00 00 00 FF 0F 9A [17:13:32]RasterBufferAndPrint [17:13:32]line Счет N : (1)949405 [17:13:32]line ИНН: 02508201610067 [17:13:32]line Контрольно-Кассовый Чек [17:13:32]line ПРОДАЖА [17:13:32]line ТРК (МРК, ГНК) : 34 [17:13:32]line Товар: 2710194800 [17:13:32]line ДТ-К-5 [17:13:32]line 32.810 * 76.20 [17:13:32]line = 2500.12 [17:13:32]line НДС 12% НСП 1% [17:13:32]line > о реализуемом товаре [17:13:32]line ОКРУГЛЕНИЕ: -0.12 [17:13:32]line ИТОГО: 2500.00 [17:13:32]line НСП 1% : 22.12 [17:13:32]line НДС 12% : 265.50 [17:13:32]line Наличными: 0.00 [17:13:32]line Безнал.: 2500.00 [17:13:32]line Место: АЗС № 134 "Партнер Нефть" [17:13:32]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:13:32]line СНО: Общий режим [17:13:32]line Чек 203 28.07.2024 17:13 [17:13:32]line Смена: 433 ФФД: 1.0 [17:13:32]line ЗНМ: 0300000044 [17:13:32]line РНМ: 0000000000092660 [17:13:32]line Версия ККМ: 001 [17:13:32]line Платежная система: O! деньги [17:13:32]line ФМ: 0000000000874939 [17:13:32]line ФД: 118534 [17:13:32]line ФПД: 280517051969608 [17:13:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T171332&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118534&fm=280517051969608&tin=02508201610067®Number=0000000000092660&sum=250000 [17:13:32]OFD Sender: Processing packet 118534 [packets to send 86, broken 85] [17:13:32]ProducePacketName [17:13:32]name=ofd_packets/00118534 [17:13:32]OFD Sender: To server: pG, [17:13:32]CommunicateWithHost lk.salyk.kg:30040 [17:13:32]ConnectInit lk.salyk.kg [17:13:32]written 0, free lines is 4095 [17:13:32]Connected sock=11 [17:13:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2C 44 04 01 F6 EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 3C 7C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 06 CF 01 00 35 04 06 00 FF 20 F7 3C 70 48 0F E9 F3 A1 13 B8 22 1A [17:13:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 8D 4A 47 00 6B 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 06 CF 01 00 F4 03 04 00 CC 29 A6 66 B6 04 01 00 00 85 2A 84 97 9C 70 35 02 [17:13:33]CommunicateWithHost err = 0 [17:13:33]CheckOFDResponse [17:13:33]1017 (14) - 77093643461234 [17:13:33]1041 (16) - 0000000000874939 [17:13:33]1040 (4) - 118534 [17:13:33]1012 (4) - 28.07.2024 11:21 [17:13:33]1206 (1) - 0 [17:13:33]OFD Sender: Remove packet 118534 [17:13:33]ProducePacketName [17:13:33]name=ofd_packets/00118534 [17:13:33]NVStorageDeleteData [17:13:33]Write to MH i2c: 01 00 00 A4 0B AF [17:13:33]Write i2c OK [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: 01 [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: 01 07 00 [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: 01 07 00 A4 0B 00 00 00 00 00 EB 0C AD [17:13:33]RasterBufferAndPrint [17:13:33]line [17:13:33]line [17:13:33]line [17:13:33]line [17:13:33]line [17:13:33]written 0, free lines is 3313 [17:13:33]MH_Cut [17:13:33]Write to MH i2c: D1 01 00 AB 0B 01 88 [17:13:33]Write i2c OK [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: D1 [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: D1 01 00 [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: D1 01 00 AB 0B 00 87 [17:13:33]Write to MH i2c: 01 00 00 AC 0B B7 [17:13:33]Write i2c OK [17:13:33]MH_I2C_Read... [17:13:33]OFD Sender: No OFD packet to send [17:13:33]*** Cut start [17:13:33]*** Partial cut [17:13:33]*** CUTSNS_PIN = 1 [17:13:34]*** CUTSNS_PIN = 0 [17:13:34]*** Brake cut motor [17:13:34]Read from MH i2c: 01 [17:13:34]MH_I2C_Read... [17:13:34]*** Stop cut motor [17:13:34]*** Cut end [17:13:34]Read from MH i2c: 01 07 00 [17:13:34]MH_I2C_Read... [17:13:34]Read from MH i2c: 01 07 00 AC 0B 00 00 00 00 00 FF 0F CC [17:13:34]process_action close_receipt done [17:13:34]requested_data is exist [17:13:34]produce_requested_data [17:13:34]requested_item fm.sn is exist - process it [17:13:34]wFMCommunicate request_size=4 [17:13:34]MH_SAM_APDU [17:13:34]CAPDU: 80 11 00 00 [17:13:34]Write to MH i2c: E2 08 00 AD 0B 80 11 00 00 00 00 00 00 32 [17:13:34]Write i2c OK [17:13:34]MH_I2C_Read... [17:13:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:34]Read from MH i2c: E2 [17:13:34]MH_I2C_Read... [17:13:34]Read from MH i2c: E2 17 00 [17:13:34]MH_I2C_Read... [17:13:34]Read from MH i2c: E2 17 00 AD 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8D [17:13:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:13:34]wFMCommunicate OK [17:13:34]requested_item fd.num is exist - process it [17:13:34]SAM_PROTO_GetFieldsCounters [17:13:34]wFMCommunicate request_size=4 [17:13:34]MH_SAM_APDU [17:13:34]CAPDU: 80 13 00 00 [17:13:34]Write to MH i2c: E2 08 00 AE 0B 80 13 00 00 00 00 00 00 35 [17:13:34]Write i2c OK [17:13:34]MH_I2C_Read... [17:13:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:34]Read from MH i2c: E2 [17:13:34]MH_I2C_Read... [17:13:34]Read from MH i2c: E2 62 00 [17:13:34]MH_I2C_Read... [17:13:34]Read from MH i2c: E2 62 00 AE 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 06 CF 01 00 0E 04 04 00 B1 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 45 [17:13:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 06 CF 01 00 0E 04 04 00 B1 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 [17:13:34]wFMCommunicate OK [17:13:34]SAM_PROTO_GetFieldsCounters done [17:13:34]requested_item shift.num is exist - process it [17:13:34]requested_item shift.opened is exist - process it [17:13:34]req_shift_opened [17:13:34]FM_GetShiftState [17:13:34]SAM_PROTO_GetShiftState [17:13:34]wFMCommunicate request_size=4 [17:13:34]MH_SAM_APDU [17:13:34]CAPDU: 80 13 01 00 [17:13:34]Write to MH i2c: E2 08 00 AF 0B 80 13 01 00 00 00 00 00 37 [17:13:34]Write i2c OK [17:13:34]MH_I2C_Read... [17:13:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:34]Read from MH i2c: E2 [17:13:34]MH_I2C_Read... [17:13:34]Read from MH i2c: E2 0E 00 [17:13:34]MH_I2C_Read... [17:13:34]Read from MH i2c: E2 0E 00 AF 0B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 0E [17:13:34]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:13:34]wFMCommunicate OK [17:13:34]SAM_PROTO_GetShiftState done [17:13:34]FM_GetShiftState done [17:13:34]req_shift_opened done [17:13:34]requested_item shift.open_date is exist - process it [17:13:34]req_shift_open_date [17:13:34]req_shift_open_date done [17:13:34]produce_requested_data done [17:13:34]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118534,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [17:13:34]process_action_free close_receipt [17:13:34]json_value_free [17:13:34]json_value_free done [17:13:34]process_json_proto returns [17:13:34]Send response to host [17:13:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118534,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [17:13:34]free response buf [17:13:34]execute_script done [17:13:34]execute_script returns [17:13:34]free content buf [17:13:34]Sock 7.Close socket [17:13:34]Sock 7.Thread stoped [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:07]accept exits with 9 [17:16:07]New connection [17:16:07]New thread 3067239780 created [17:16:07]Thread 3067383140 joined [17:16:07]Waiting for new connection... [17:16:07] Sock 9.Parse request [17:16:07]Sock 9.Check first char [17:16:07]Sock 9.First char is OK [17:16:07]request: POST /json_proto HTTP/1.0 [17:16:07]Method: POST [17:16:07]URL: /json_proto [17:16:07]Method is POST - this is cgi request [17:16:07]url: /json_proto [17:16:07]query_string will be loaded in cgi processing [17:16:07]execute_cgi json_proto POST (null) [17:16:07]execute_cgi path=json_proto method=POST [17:16:07]POST find Content-Length [17:16:07]Host: 172.17.45.7:8080 [17:16:07]Content-Length: 677 [17:16:07]Content-Type: application/json [17:16:07] [17:16:07]POST finish read [17:16:07]Found Content-Length = 677 [17:16:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:07]execute_script... [17:16:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:07]POST & json_proto [17:16:07]process_json_proto [17:16:07]json parsed OK: [17:16:07]protocol is kg_v1.0 [17:16:07]action value=close_receipt [17:16:07]process_action close_receipt [17:16:07]cmd_close_receipt [17:16:07]MH_GetDate [17:16:07]Write to MH i2c: F0 00 00 B0 0B AA [17:16:07]Write i2c OK [17:16:07]MH_I2C_Read... [17:16:07]Read from MH i2c: F0 [17:16:07]MH_I2C_Read... [17:16:07]Read from MH i2c: F0 09 00 [17:16:07]MH_I2C_Read... [17:16:07]Read from MH i2c: F0 09 00 B0 0B 00 D8 7C A6 66 90 0F 3E 66 56 [17:16:07]GetLastDocTimeStamp 1722186812 [17:16:07]current date 1722186968 [17:16:07]FM_GetShiftState [17:16:07]SAM_PROTO_GetShiftState [17:16:07]wFMCommunicate request_size=4 [17:16:07]MH_SAM_APDU [17:16:07]CAPDU: 80 13 01 00 [17:16:07]Write to MH i2c: E2 08 00 B1 0B 80 13 01 00 00 00 00 00 39 [17:16:07]Write i2c OK [17:16:07]MH_I2C_Read... [17:16:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:07]Read from MH i2c: E2 [17:16:07]MH_I2C_Read... [17:16:07]Read from MH i2c: E2 0E 00 [17:16:07]MH_I2C_Read... [17:16:07]Read from MH i2c: E2 0E 00 B1 0B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 10 [17:16:07]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:16:07]wFMCommunicate OK [17:16:07]SAM_PROTO_GetShiftState done [17:16:07]FM_GetShiftState done [17:16:07]opened in 1722125364 [17:16:07]opened+sec_in_day 1722211764 [17:16:07]quantity*price = 50036 [17:16:07]sum+1 = 50037 [17:16:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 204 28.07.2024 17:16 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118535 ФПД: 202598276579722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T171608&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118535&fm=202598276579722&tin=02508201610067®Number=0000000000092660&sum=50000 [17:16:08]StoreToDocumentArchive [17:16:08]shift 433 fd 118535 [17:16:08]save to /storage/0433/doc_00118535 [17:16:08]save last doc name /storage/0433/doc_00118535 to /storage/kkm_last_doc_name [17:16:08]save OK [17:16:08]Clear old archive folders... [17:16:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:16:08]tlvbuf is 01E7E0F0 [17:16:08]SAM_PROTO_ClearQueue [17:16:08]wFMCommunicate request_size=4 [17:16:08]MH_SAM_APDU [17:16:08]CAPDU: 80 09 00 00 [17:16:08]Write to MH i2c: E2 08 00 BE 0B 80 09 00 00 00 00 00 00 3B [17:16:08]Write i2c OK [17:16:08]MH_I2C_Read... [17:16:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:08]Read from MH i2c: E2 [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: E2 03 00 [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: E2 03 00 BE 0B 00 90 00 3D [17:16:08]RAPDU: 90 00 [17:16:08]wFMCommunicate OK [17:16:08]SAM_PROTO_ClearQueue done [17:16:08]KKMCreateOFDPacket [17:16:08]OFDProtocolAddRootSTLVToBuf [17:16:08]FM_MakeSignedData [17:16:08]FM_MakeSignedData [17:16:08]SAM_PROTO_SignData [17:16:08]wFMCommunicate request_size=4 [17:16:08]MH_SAM_APDU [17:16:08]CAPDU: 80 0D 01 02 [17:16:08]Write to MH i2c: E2 08 00 BF 0B 80 0D 01 02 00 00 00 00 43 [17:16:08]Write i2c OK [17:16:08]MH_I2C_Read... [17:16:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:08]Read from MH i2c: E2 [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: E2 03 00 [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: E2 03 00 BF 0B 00 90 00 3E [17:16:08]RAPDU: 90 00 [17:16:08]wFMCommunicate OK [17:16:08]wFMCommunicate request_size=255 [17:16:08]MH_SAM_APDU [17:16: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 D8 7C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 07 CF 01 00 35 04 06 00 B8 [17:16:08]Write to MH i2c: E2 02 01 C0 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 D8 7C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 07 CF 01 00 35 04 06 00 B8 00 00 34 [17:16:08]Write i2c OK [17:16:08]MH_I2C_Read... [17:16:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:08]Read from MH i2c: E2 [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: E2 03 00 [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: E2 03 00 C0 0B 00 90 00 3F [17:16:08]RAPDU: 90 00 [17:16:08]wFMCommunicate OK [17:16:08]wFMCommunicate request_size=10 [17:16:08]MH_SAM_APDU [17:16:08]CAPDU: 80 0D 02 02 05 43 16 4E C1 8A [17:16:08]Write to MH i2c: E2 0D 00 C1 0B 80 0D 02 02 05 00 43 16 4E C1 8A 00 00 42 [17:16:08]Write i2c OK [17:16:08]MH_I2C_Read... [17:16:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:08]Read from MH i2c: E2 [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: E2 03 00 [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: E2 03 00 C1 0B 00 90 00 40 [17:16:08]RAPDU: 90 00 [17:16:08]wFMCommunicate OK [17:16:08]wFMCommunicate request_size=4 [17:16:08]MH_SAM_APDU [17:16:08]CAPDU: 80 0D 03 02 [17:16:08]Write to MH i2c: E2 08 00 C2 0B 80 0D 03 02 00 00 00 00 48 [17:16:08]Write i2c OK [17:16:08]MH_I2C_Read... [17:16:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:08]OFD Sender: No OFD packet to send [17:16:08]Read from MH i2c: E2 [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: E2 0B 00 [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: E2 0B 00 C2 0B 00 18 E5 D7 AF 9D 64 84 58 90 00 A9 [17:16:08]RAPDU: 18 E5 D7 AF 9D 64 84 58 90 00 [17:16:08]wFMCommunicate OK [17:16:08]SAM_PROTO_SignData done [17:16:08]FM_MakeSignedData done [17:16:08]CreateOFDProtocolMessage [17:16:08]wFMCommunicate request_size=4 [17:16:08]MH_SAM_APDU [17:16:08]CAPDU: 80 11 00 00 [17:16:08]Write to MH i2c: E2 08 00 C3 0B 80 11 00 00 00 00 00 00 48 [17:16:08]Write i2c OK [17:16:08]MH_I2C_Read... [17:16:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:08]Read from MH i2c: E2 [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: E2 17 00 [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: E2 17 00 C3 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A3 [17:16:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:16:08]wFMCommunicate OK [17:16:08]CreateOFDProtocolMessage done [17:16:08]OFDSenderStorePacket 118535 [17:16:08]StoreOFDPacket docnum=118535 [17:16:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CF E0 07 01 FA 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 D8 7C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 07 CF 01 00 35 04 06 00 B8 43 16 4E C1 8A 18 E5 D7 AF 9D 64 84 58 [17:16:08]CheckFolder [17:16:08]dirname=/storage/ofd_packets [17:16:08]CheckFolder done [17:16:08]ProducePacketName [17:16:08]name=ofd_packets/00118535 [17:16:08]NVStorageSaveData ofd_packets/00118535 [17:16:08]File name is /storage/ofd_packets/00118535 [17:16:08]Write 301 bytes [17:16:08]NVStorageSaveData done [17:16:08]OFDSenderStorePacket done [17:16:08]KKMCreateOFDPacket done [17:16:08]NVStorageSaveData kkm_last_timestamp [17:16:08]File name is /storage/kkm_last_timestamp [17:16:08]Write 4 bytes [17:16:08]NVStorageSaveData done [17:16:08]ExternCall_PrintAddStr [17:16:08]wPrintStart [17:16:08]Write to MH i2c: 01 00 00 C4 0B CF [17:16:08]Write i2c OK [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: 01 [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: 01 07 00 [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: 01 07 00 C4 0B 00 00 00 00 00 FF 0F E4 [17:16:08]RasterBufferAndPrint [17:16:08]line Счет N : (1)949406 [17:16:08]line ИНН: 02508201610067 [17:16:08]line Контрольно-Кассовый Чек [17:16:08]line ПРОДАЖА [17:16:08]line ТРК (МРК, ГНК) : 51 [17:16:08]line Товар: 2710124130 [17:16:08]line Аи-92-К-4 [17:16:08]line 7.380 * 67.80 [17:16:08]line = 500.36 [17:16:08]line НДС 12% НСП 1% [17:16:08]line > о реализуемом товаре [17:16:08]line ОКРУГЛЕНИЕ: -0.36 [17:16:08]line ИТОГО: 500.00 [17:16:08]line Внесено: 500.00 [17:16:08]line СДАЧА: 0.00 [17:16:08]line НСП 1% : 4.43 [17:16:08]line НДС 12% : 53.14 [17:16:08]line Наличными: 500.00 [17:16:08]line Безнал.: 0.00 [17:16:08]line Место: АЗС № 134 "Партнер Нефть" [17:16:08]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:16:08]line СНО: Общий режим [17:16:08]line Чек 204 28.07.2024 17:16 [17:16:08]line Смена: 433 ФФД: 1.0 [17:16:08]line ЗНМ: 0300000044 [17:16:08]line РНМ: 0000000000092660 [17:16:08]line Версия ККМ: 001 [17:16:08]line ФМ: 0000000000874939 [17:16:08]line ФД: 118535 [17:16:08]line ФПД: 202598276579722 [17:16:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T171608&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118535&fm=202598276579722&tin=02508201610067®Number=0000000000092660&sum=50000 [17:16:09]OFD Sender: Processing packet 118535 [packets to send 86, broken 85] [17:16:09]ProducePacketName [17:16:09]name=ofd_packets/00118535 [17:16:09]OFD Sender: To server: pG, [17:16:09]CommunicateWithHost lk.salyk.kg:30040 [17:16:09]ConnectInit lk.salyk.kg [17:16:09]written 0, free lines is 4095 [17:16:09]Connected sock=10 [17:16:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CF E0 07 01 FA 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 D8 7C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 07 CF 01 00 35 04 06 00 B8 43 16 4E C1 8A 18 E5 D7 AF 9D 64 84 58 [17:16:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C0 F2 47 00 95 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 07 CF 01 00 F4 03 04 00 68 2A A6 66 B6 04 01 00 00 69 54 B1 DE ED BE B4 43 [17:16:09]CommunicateWithHost err = 0 [17:16:09]CheckOFDResponse [17:16:09]1017 (14) - 77093643461234 [17:16:09]1041 (16) - 0000000000874939 [17:16:09]1040 (4) - 118535 [17:16:09]1012 (4) - 28.07.2024 11:24 [17:16:09]1206 (1) - 0 [17:16:09]OFD Sender: Remove packet 118535 [17:16:09]ProducePacketName [17:16:09]name=ofd_packets/00118535 [17:16:09]NVStorageDeleteData [17:16:09]Write to MH i2c: 01 00 00 EE 0B F9 [17:16:09]Write i2c OK [17:16:09]MH_I2C_Read... [17:16:09]Read from MH i2c: 01 [17:16:09]MH_I2C_Read... [17:16:09]Read from MH i2c: 01 07 00 [17:16:09]MH_I2C_Read... [17:16:09]Read from MH i2c: 01 07 00 EE 0B 00 00 00 00 00 E4 0C F0 [17:16:09]RasterBufferAndPrint [17:16:09]line [17:16:09]line [17:16:09]line [17:16:09]line [17:16:09]line [17:16:09]written 0, free lines is 3306 [17:16:09]MH_Cut [17:16:09]Write to MH i2c: D1 01 00 F5 0B 01 D2 [17:16:09]Write i2c OK [17:16:09]MH_I2C_Read... [17:16:09]Read from MH i2c: D1 [17:16:09]MH_I2C_Read... [17:16:09]Read from MH i2c: D1 01 00 [17:16:09]MH_I2C_Read... [17:16:09]Read from MH i2c: D1 01 00 F5 0B 00 D1 [17:16:09]Write to MH i2c: 01 00 00 F6 0B 01 [17:16:09]Write i2c OK [17:16:09]MH_I2C_Read... [17:16:10]OFD Sender: No OFD packet to send [17:16:10]*** Cut start [17:16:10]*** Partial cut [17:16:10]*** CUTSNS_PIN = 1 [17:16:10]*** CUTSNS_PIN = 0 [17:16:10]*** Brake cut motor [17:16:11]Read from MH i2c: 01 [17:16:11]MH_I2C_Read... [17:16:11]*** Stop cut motor [17:16:11]*** Cut end [17:16:11]Read from MH i2c: 01 07 00 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: 01 07 00 F6 0B 00 00 00 00 00 FF 0F 16 [17:16:11]process_action close_receipt done [17:16:11]requested_data is exist [17:16:11]produce_requested_data [17:16:11]requested_item fm.sn is exist - process it [17:16:11]wFMCommunicate request_size=4 [17:16:11]MH_SAM_APDU [17:16:11]CAPDU: 80 11 00 00 [17:16:11]Write to MH i2c: E2 08 00 F7 0B 80 11 00 00 00 00 00 00 7C [17:16:11]Write i2c OK [17:16:11]MH_I2C_Read... [17:16:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:11]Read from MH i2c: E2 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: E2 17 00 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: E2 17 00 F7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D7 [17:16:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:16:11]wFMCommunicate OK [17:16:11]requested_item fd.num is exist - process it [17:16:11]SAM_PROTO_GetFieldsCounters [17:16:11]wFMCommunicate request_size=4 [17:16:11]MH_SAM_APDU [17:16:11]CAPDU: 80 13 00 00 [17:16:11]Write to MH i2c: E2 08 00 F8 0B 80 13 00 00 00 00 00 00 7F [17:16:11]Write i2c OK [17:16:11]MH_I2C_Read... [17:16:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:11]Read from MH i2c: E2 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: E2 62 00 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: E2 62 00 F8 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 07 CF 01 00 0E 04 04 00 B1 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 93 [17:16:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 07 CF 01 00 0E 04 04 00 B1 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 [17:16:11]wFMCommunicate OK [17:16:11]SAM_PROTO_GetFieldsCounters done [17:16:11]requested_item shift.num is exist - process it [17:16:11]requested_item shift.opened is exist - process it [17:16:11]req_shift_opened [17:16:11]FM_GetShiftState [17:16:11]SAM_PROTO_GetShiftState [17:16:11]wFMCommunicate request_size=4 [17:16:11]MH_SAM_APDU [17:16:11]CAPDU: 80 13 01 00 [17:16:11]Write to MH i2c: E2 08 00 F9 0B 80 13 01 00 00 00 00 00 81 [17:16:11]Write i2c OK [17:16:11]MH_I2C_Read... [17:16:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:11]Read from MH i2c: E2 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: E2 0E 00 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: E2 0E 00 F9 0B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 58 [17:16:11]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:16:11]wFMCommunicate OK [17:16:11]SAM_PROTO_GetShiftState done [17:16:11]FM_GetShiftState done [17:16:11]req_shift_opened done [17:16:11]requested_item shift.open_date is exist - process it [17:16:11]req_shift_open_date [17:16:11]req_shift_open_date done [17:16:11]produce_requested_data done [17:16:11]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118535,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [17:16:11]process_action_free close_receipt [17:16:11]json_value_free [17:16:11]json_value_free done [17:16:11]process_json_proto returns [17:16:11]Send response to host [17:16:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118535,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [17:16:11]free response buf [17:16:11]execute_script done [17:16:11]execute_script returns [17:16:11]free content buf [17:16:11]Sock 9.Close socket [17:16:11]Sock 9.Thread stoped [17:16:15]OFD Sender: No OFD packet to send [17:16:20]OFD Sender: No OFD packet to send [17:16:25]OFD Sender: No OFD packet to send [17:16:30]OFD Sender: No OFD packet to send [17:16:35]OFD Sender: No OFD packet to send [17:16:40]OFD Sender: No OFD packet to send [17:16:45]OFD Sender: No OFD packet to send [17:16:50]OFD Sender: No OFD packet to send [17:16:55]OFD Sender: No OFD packet to send [17:17:00]OFD Sender: No OFD packet to send [17:17:05]OFD Sender: No OFD packet to send [17:17:10]OFD Sender: No OFD packet to send [17:17:15]OFD Sender: No OFD packet to send [17:17:20]OFD Sender: No OFD packet to send [17:17:25]OFD Sender: No OFD packet to send [17:17:30]OFD Sender: No OFD packet to send [17:17:35]OFD Sender: No OFD packet to send [17:17:40]OFD Sender: No OFD packet to send [17:17:45]OFD Sender: No OFD packet to send [17:17:50]OFD Sender: No OFD packet to send [17:17:55]OFD Sender: No OFD packet to send [17:18:00]OFD Sender: No OFD packet to send [17:18:05]OFD Sender: No OFD packet to send [17:18:10]OFD Sender: No OFD packet to send [17:18:15]OFD Sender: No OFD packet to send [17:18:20]OFD Sender: No OFD packet to send [17:18:25]OFD Sender: No OFD packet to send [17:18:30]OFD Sender: No OFD packet to send [17:18:35]OFD Sender: No OFD packet to send [17:18:40]OFD Sender: No OFD packet to send [17:18:45]OFD Sender: No OFD packet to send [17:18:50]OFD Sender: No OFD packet to send [17:18:55]OFD Sender: No OFD packet to send [17:19:00]OFD Sender: No OFD packet to send [17:19:05]OFD Sender: No OFD packet to send [17:19:10]OFD Sender: No OFD packet to send [17:19:15]OFD Sender: No OFD packet to send [17:19:20]OFD Sender: No OFD packet to send [17:19:25]OFD Sender: No OFD packet to send [17:19:30]OFD Sender: No OFD packet to send [17:19:35]OFD Sender: No OFD packet to send [17:19:40]OFD Sender: No OFD packet to send [17:19:45]OFD Sender: No OFD packet to send [17:19:50]OFD Sender: No OFD packet to send [17:19:55]OFD Sender: No OFD packet to send [17:20:00]OFD Sender: No OFD packet to send [17:20:05]OFD Sender: No OFD packet to send [17:20:10]OFD Sender: No OFD packet to send [17:20:15]OFD Sender: No OFD packet to send [17:20:20]OFD Sender: No OFD packet to send [17:20:25]OFD Sender: No OFD packet to send [17:20:30]OFD Sender: No OFD packet to send [17:20:35]OFD Sender: No OFD packet to send [17:20:40]OFD Sender: No OFD packet to send [17:20:45]OFD Sender: No OFD packet to send [17:20:50]OFD Sender: No OFD packet to send [17:20:55]OFD Sender: No OFD packet to send [17:21:00]OFD Sender: No OFD packet to send [17:21:05]OFD Sender: No OFD packet to send [17:21:10]OFD Sender: No OFD packet to send [17:21:15]OFD Sender: No OFD packet to send [17:21:20]OFD Sender: No OFD packet to send [17:21:25]OFD Sender: No OFD packet to send [17:21:30]OFD Sender: No OFD packet to send [17:21:35]OFD Sender: No OFD packet to send [17:21:40]OFD Sender: No OFD packet to send [17:21:45]OFD Sender: No OFD packet to send [17:21:50]OFD Sender: No OFD packet to send [17:21:55]OFD Sender: No OFD packet to send [17:22:00]OFD Sender: No OFD packet to send [17:22:05]OFD Sender: No OFD packet to send [17:22:10]OFD Sender: No OFD packet to send [17:22:15]OFD Sender: No OFD packet to send [17:22:20]OFD Sender: No OFD packet to send [17:22:25]OFD Sender: No OFD packet to send [17:22:30]OFD Sender: No OFD packet to send [17:22:35]OFD Sender: No OFD packet to send [17:22:37]accept exits with 7 [17:22:37]New connection [17:22:37]New thread 3067383140 created [17:22:37]Thread 3067239780 joined [17:22:37]Waiting for new connection... [17:22:37] Sock 7.Parse request [17:22:37]Sock 7.Check first char [17:22:37]Sock 7.First char is OK [17:22:37]request: POST /json_proto HTTP/1.0 [17:22:37]Method: POST [17:22:37]URL: /json_proto [17:22:37]Method is POST - this is cgi request [17:22:37]url: /json_proto [17:22:37]query_string will be loaded in cgi processing [17:22:37]execute_cgi json_proto POST (null) [17:22:37]execute_cgi path=json_proto method=POST [17:22:37]POST find Content-Length [17:22:37]Host: 172.17.45.7:8080 [17:22:37]Content-Length: 677 [17:22:37]Content-Type: application/json [17:22:37] [17:22:37]POST finish read [17:22:37]Found Content-Length = 677 [17:22:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:37]execute_script... [17:22: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)949407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:37]POST & json_proto [17:22:37]process_json_proto [17:22:37]json parsed OK: [17:22:37]protocol is kg_v1.0 [17:22:37]action value=close_receipt [17:22:37]process_action close_receipt [17:22:37]cmd_close_receipt [17:22:37]MH_GetDate [17:22:37]Write to MH i2c: F0 00 00 FA 0B F4 [17:22:37]Write i2c OK [17:22:37]MH_I2C_Read... [17:22:37]Read from MH i2c: F0 [17:22:37]MH_I2C_Read... [17:22:37]Read from MH i2c: F0 09 00 [17:22:37]MH_I2C_Read... [17:22:37]Read from MH i2c: F0 09 00 FA 0B 00 5F 7E A6 66 90 0F 3E 66 29 [17:22:37]GetLastDocTimeStamp 1722186968 [17:22:37]current date 1722187359 [17:22:37]FM_GetShiftState [17:22:37]SAM_PROTO_GetShiftState [17:22:37]wFMCommunicate request_size=4 [17:22:37]MH_SAM_APDU [17:22:37]CAPDU: 80 13 01 00 [17:22:37]Write to MH i2c: E2 08 00 FB 0B 80 13 01 00 00 00 00 00 83 [17:22:37]Write i2c OK [17:22:37]MH_I2C_Read... [17:22:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:37]Read from MH i2c: E2 [17:22:37]MH_I2C_Read... [17:22:37]Read from MH i2c: E2 0E 00 [17:22:37]MH_I2C_Read... [17:22:37]Read from MH i2c: E2 0E 00 FB 0B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 5A [17:22:37]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:22:37]wFMCommunicate OK [17:22:37]SAM_PROTO_GetShiftState done [17:22:37]FM_GetShiftState done [17:22:37]opened in 1722125364 [17:22:37]opened+sec_in_day 1722211764 [17:22:37]quantity*price = 50036 [17:22:37]sum+1 = 50037 [17:22:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 205 28.07.2024 17:22 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118536 ФПД: 208718472075577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T172239&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118536&fm=208718472075577&tin=02508201610067®Number=0000000000092660&sum=50000 [17:22:39]StoreToDocumentArchive [17:22:39]shift 433 fd 118536 [17:22:39]save to /storage/0433/doc_00118536 [17:22:39]save last doc name /storage/0433/doc_00118536 to /storage/kkm_last_doc_name [17:22:39]save OK [17:22:39]Clear old archive folders... [17:22:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:22:39]tlvbuf is 01E625D0 [17:22:39]SAM_PROTO_ClearQueue [17:22:39]wFMCommunicate request_size=4 [17:22:39]MH_SAM_APDU [17:22:39]CAPDU: 80 09 00 00 [17:22:39]Write to MH i2c: E2 08 00 08 0C 80 09 00 00 00 00 00 00 86 [17:22:39]Write i2c OK [17:22:39]MH_I2C_Read... [17:22:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:39]Read from MH i2c: E2 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 03 00 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 03 00 08 0C 00 90 00 88 [17:22:39]RAPDU: 90 00 [17:22:39]wFMCommunicate OK [17:22:39]SAM_PROTO_ClearQueue done [17:22:39]KKMCreateOFDPacket [17:22:39]OFDProtocolAddRootSTLVToBuf [17:22:39]FM_MakeSignedData [17:22:39]FM_MakeSignedData [17:22:39]SAM_PROTO_SignData [17:22:39]wFMCommunicate request_size=4 [17:22:39]MH_SAM_APDU [17:22:39]CAPDU: 80 0D 01 02 [17:22:39]Write to MH i2c: E2 08 00 09 0C 80 0D 01 02 00 00 00 00 8E [17:22:39]Write i2c OK [17:22:39]MH_I2C_Read... [17:22:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:39]Read from MH i2c: E2 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 03 00 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 03 00 09 0C 00 90 00 89 [17:22:39]RAPDU: 90 00 [17:22:39]wFMCommunicate OK [17:22:39]wFMCommunicate request_size=255 [17:22:39]MH_SAM_APDU [17:22: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 5F 7E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 08 CF 01 00 35 04 06 00 BD [17:22:39]Write to MH i2c: E2 02 01 0A 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 5F 7E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 08 CF 01 00 35 04 06 00 BD 00 00 0F [17:22:39]Write i2c OK [17:22:39]MH_I2C_Read... [17:22:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:39]Read from MH i2c: E2 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 03 00 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 03 00 0A 0C 00 90 00 8A [17:22:39]RAPDU: 90 00 [17:22:39]wFMCommunicate OK [17:22:39]wFMCommunicate request_size=10 [17:22:39]MH_SAM_APDU [17:22:39]CAPDU: 80 0D 02 02 05 D4 0E 62 D9 39 [17:22:39]Write to MH i2c: E2 0D 00 0B 0C 80 0D 02 02 05 00 D4 0E 62 D9 39 00 00 F1 [17:22:39]Write i2c OK [17:22:39]MH_I2C_Read... [17:22:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:39]Read from MH i2c: E2 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 03 00 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 03 00 0B 0C 00 90 00 8B [17:22:39]RAPDU: 90 00 [17:22:39]wFMCommunicate OK [17:22:39]wFMCommunicate request_size=4 [17:22:39]MH_SAM_APDU [17:22:39]CAPDU: 80 0D 03 02 [17:22:39]Write to MH i2c: E2 08 00 0C 0C 80 0D 03 02 00 00 00 00 93 [17:22:39]Write i2c OK [17:22:39]MH_I2C_Read... [17:22:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:39]Read from MH i2c: E2 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 0B 00 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 0B 00 0C 0C 00 32 C9 A9 E8 56 84 F7 5D 90 00 4E [17:22:39]RAPDU: 32 C9 A9 E8 56 84 F7 5D 90 00 [17:22:39]wFMCommunicate OK [17:22:39]SAM_PROTO_SignData done [17:22:39]FM_MakeSignedData done [17:22:39]CreateOFDProtocolMessage [17:22:39]wFMCommunicate request_size=4 [17:22:39]MH_SAM_APDU [17:22:39]CAPDU: 80 11 00 00 [17:22:39]Write to MH i2c: E2 08 00 0D 0C 80 11 00 00 00 00 00 00 93 [17:22:39]Write i2c OK [17:22:39]MH_I2C_Read... [17:22:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:39]Read from MH i2c: E2 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 17 00 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 17 00 0D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EE [17:22:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:22:39]wFMCommunicate OK [17:22:39]CreateOFDProtocolMessage done [17:22:39]OFDSenderStorePacket 118536 [17:22:39]StoreOFDPacket docnum=118536 [17:22:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D9 28 07 01 74 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 5F 7E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 08 CF 01 00 35 04 06 00 BD D4 0E 62 D9 39 32 C9 A9 E8 56 84 F7 5D [17:22:39]CheckFolder [17:22:39]dirname=/storage/ofd_packets [17:22:39]CheckFolder done [17:22:39]ProducePacketName [17:22:39]name=ofd_packets/00118536 [17:22:39]NVStorageSaveData ofd_packets/00118536 [17:22:39]File name is /storage/ofd_packets/00118536 [17:22:39]Write 301 bytes [17:22:39]NVStorageSaveData done [17:22:39]OFDSenderStorePacket done [17:22:39]KKMCreateOFDPacket done [17:22:39]NVStorageSaveData kkm_last_timestamp [17:22:39]File name is /storage/kkm_last_timestamp [17:22:39]Write 4 bytes [17:22:39]NVStorageSaveData done [17:22:39]ExternCall_PrintAddStr [17:22:39]wPrintStart [17:22:39]Write to MH i2c: 01 00 00 0E 0C 1A [17:22:39]Write i2c OK [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: 01 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: 01 07 00 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: 01 07 00 0E 0C 00 00 00 00 00 FF 0F 2F [17:22:39]RasterBufferAndPrint [17:22:39]line Счет N : (1)949407 [17:22:39]line ИНН: 02508201610067 [17:22:39]line Контрольно-Кассовый Чек [17:22:39]line ПРОДАЖА [17:22:39]line ТРК (МРК, ГНК) : 61 [17:22:39]line Товар: 2710124130 [17:22:39]line Аи-92-К-4 [17:22:39]line 7.380 * 67.80 [17:22:39]line = 500.36 [17:22:39]line НДС 12% НСП 1% [17:22:39]line > о реализуемом товаре [17:22:39]line ОКРУГЛЕНИЕ: -0.36 [17:22:39]line ИТОГО: 500.00 [17:22:39]line Внесено: 500.00 [17:22:39]line СДАЧА: 0.00 [17:22:39]line НСП 1% : 4.43 [17:22:39]line НДС 12% : 53.14 [17:22:39]line Наличными: 500.00 [17:22:39]line Безнал.: 0.00 [17:22:39]line Место: АЗС № 134 "Партнер Нефть" [17:22:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:22:39]line СНО: Общий режим [17:22:39]line Чек 205 28.07.2024 17:22 [17:22:39]line Смена: 433 ФФД: 1.0 [17:22:39]line ЗНМ: 0300000044 [17:22:39]line РНМ: 0000000000092660 [17:22:39]line Версия ККМ: 001 [17:22:39]line ФМ: 0000000000874939 [17:22:39]line ФД: 118536 [17:22:39]line ФПД: 208718472075577 [17:22:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T172239&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118536&fm=208718472075577&tin=02508201610067®Number=0000000000092660&sum=50000 [17:22:39]OFD Sender: Processing packet 118536 [packets to send 86, broken 85] [17:22:39]ProducePacketName [17:22:39]name=ofd_packets/00118536 [17:22:39]OFD Sender: To server: pG, [17:22:39]CommunicateWithHost lk.salyk.kg:30040 [17:22:39]ConnectInit lk.salyk.kg [17:22:39]written 0, free lines is 4095 [17:22:40]Connected sock=10 [17:22: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 39 33 39 0F 01 00 00 D9 28 07 01 74 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 5F 7E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 08 CF 01 00 35 04 06 00 BD D4 0E 62 D9 39 32 C9 A9 E8 56 84 F7 5D [17:22:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 11 4F 47 00 5D 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 39 33 39 10 04 04 00 08 CF 01 00 F4 03 04 00 EF 2B A6 66 B6 04 01 00 00 8E C3 48 91 4C 01 5A D6 [17:22:40]CommunicateWithHost err = 0 [17:22:40]CheckOFDResponse [17:22:40]1017 (14) - 77093643461234 [17:22:40]1041 (16) - 0000000000874939 [17:22:40]1040 (4) - 118536 [17:22:40]1012 (4) - 28.07.2024 11:30 [17:22:40]1206 (1) - 0 [17:22:40]OFD Sender: Remove packet 118536 [17:22:40]ProducePacketName [17:22:40]name=ofd_packets/00118536 [17:22:40]NVStorageDeleteData [17:22:40]Write to MH i2c: 01 00 00 38 0C 44 [17:22:40]Write i2c OK [17:22:40]MH_I2C_Read... [17:22:40]Read from MH i2c: 01 [17:22:40]MH_I2C_Read... [17:22:40]Read from MH i2c: 01 07 00 [17:22:40]MH_I2C_Read... [17:22:40]Read from MH i2c: 01 07 00 38 0C 00 00 00 00 00 D3 0C 2A [17:22:40]RasterBufferAndPrint [17:22:40]line [17:22:40]line [17:22:40]line [17:22:40]line [17:22:40]line [17:22:40]written 0, free lines is 3289 [17:22:40]MH_Cut [17:22:40]Write to MH i2c: D1 01 00 3F 0C 01 1D [17:22:40]Write i2c OK [17:22:40]MH_I2C_Read... [17:22:40]Read from MH i2c: D1 [17:22:40]MH_I2C_Read... [17:22:40]Read from MH i2c: D1 01 00 [17:22:40]MH_I2C_Read... [17:22:40]Read from MH i2c: D1 01 00 3F 0C 00 1C [17:22:40]Write to MH i2c: 01 00 00 40 0C 4C [17:22:40]Write i2c OK [17:22:40]MH_I2C_Read... [17:22:40]OFD Sender: No OFD packet to send [17:22:41]*** Cut start [17:22:41]*** Partial cut [17:22:41]*** CUTSNS_PIN = 1 [17:22:41]*** CUTSNS_PIN = 0 [17:22:41]*** Brake cut motor [17:22:41]Read from MH i2c: 01 [17:22:41]MH_I2C_Read... [17:22:41]*** Stop cut motor [17:22:41]*** Cut end [17:22:41]Read from MH i2c: 01 07 00 [17:22:41]MH_I2C_Read... [17:22:41]Read from MH i2c: 01 07 00 40 0C 00 00 00 00 00 FF 0F 61 [17:22:41]process_action close_receipt done [17:22:41]requested_data is exist [17:22:41]produce_requested_data [17:22:41]requested_item fm.sn is exist - process it [17:22:41]wFMCommunicate request_size=4 [17:22:41]MH_SAM_APDU [17:22:41]CAPDU: 80 11 00 00 [17:22:41]Write to MH i2c: E2 08 00 41 0C 80 11 00 00 00 00 00 00 C7 [17:22:41]Write i2c OK [17:22:41]MH_I2C_Read... [17:22:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:41]Read from MH i2c: E2 [17:22:41]MH_I2C_Read... [17:22:41]Read from MH i2c: E2 17 00 [17:22:41]MH_I2C_Read... [17:22:41]Read from MH i2c: E2 17 00 41 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 22 [17:22:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:22:41]wFMCommunicate OK [17:22:41]requested_item fd.num is exist - process it [17:22:41]SAM_PROTO_GetFieldsCounters [17:22:41]wFMCommunicate request_size=4 [17:22:41]MH_SAM_APDU [17:22:41]CAPDU: 80 13 00 00 [17:22:41]Write to MH i2c: E2 08 00 42 0C 80 13 00 00 00 00 00 00 CA [17:22:41]Write i2c OK [17:22:41]MH_I2C_Read... [17:22:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:41]Read from MH i2c: E2 [17:22:41]MH_I2C_Read... [17:22:41]Read from MH i2c: E2 62 00 [17:22:41]MH_I2C_Read... [17:22:41]Read from MH i2c: E2 62 00 42 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 08 CF 01 00 0E 04 04 00 B1 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 E2 [17:22:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 08 CF 01 00 0E 04 04 00 B1 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 [17:22:41]wFMCommunicate OK [17:22:41]SAM_PROTO_GetFieldsCounters done [17:22:41]requested_item shift.num is exist - process it [17:22:41]requested_item shift.opened is exist - process it [17:22:41]req_shift_opened [17:22:41]FM_GetShiftState [17:22:41]SAM_PROTO_GetShiftState [17:22:41]wFMCommunicate request_size=4 [17:22:41]MH_SAM_APDU [17:22:41]CAPDU: 80 13 01 00 [17:22:41]Write to MH i2c: E2 08 00 43 0C 80 13 01 00 00 00 00 00 CC [17:22:41]Write i2c OK [17:22:41]MH_I2C_Read... [17:22:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:42]Read from MH i2c: E2 [17:22:42]MH_I2C_Read... [17:22:42]Read from MH i2c: E2 0E 00 [17:22:42]MH_I2C_Read... [17:22:42]Read from MH i2c: E2 0E 00 43 0C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A3 [17:22:42]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:22:42]wFMCommunicate OK [17:22:42]SAM_PROTO_GetShiftState done [17:22:42]FM_GetShiftState done [17:22:42]req_shift_opened done [17:22:42]requested_item shift.open_date is exist - process it [17:22:42]req_shift_open_date [17:22:42]req_shift_open_date done [17:22:42]produce_requested_data done [17:22:42]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118536,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [17:22:42]process_action_free close_receipt [17:22:42]json_value_free [17:22:42]json_value_free done [17:22:42]process_json_proto returns [17:22:42]Send response to host [17:22:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118536,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [17:22:42]free response buf [17:22:42]execute_script done [17:22:42]execute_script returns [17:22:42]free content buf [17:22:42]Sock 7.Close socket [17:22:42]Sock 7.Thread stoped [17:22:45]OFD Sender: No OFD packet to send [17:22:50]OFD Sender: No OFD packet to send [17:22:55]OFD Sender: No OFD packet to send [17:23:00]OFD Sender: No OFD packet to send [17:23:05]OFD Sender: No OFD packet to send [17:23:10]OFD Sender: No OFD packet to send [17:23:15]OFD Sender: No OFD packet to send [17:23:20]OFD Sender: No OFD packet to send [17:23:25]OFD Sender: No OFD packet to send [17:23:30]OFD Sender: No OFD packet to send [17:23:35]OFD Sender: No OFD packet to send [17:23: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:50]OFD Sender: No OFD packet to send [17:24:55]OFD Sender: No OFD packet to send [17:25:00]OFD Sender: No OFD packet to send [17:25:05]OFD Sender: No OFD packet to send [17:25:10]OFD Sender: No OFD packet to send [17:25:15]OFD Sender: No OFD packet to send [17:25:20]OFD Sender: No OFD packet to send [17:25:25]OFD Sender: No OFD packet to send [17:25:30]OFD Sender: No OFD packet to send [17:25:35]OFD Sender: No OFD packet to send [17:25:40]OFD Sender: No OFD packet to send [17:25:45]OFD Sender: No OFD packet to send [17:25:50]OFD Sender: No OFD packet to send [17:25:55]OFD Sender: No OFD packet to send [17:26:01]OFD Sender: No OFD packet to send [17:26:06]OFD Sender: No OFD packet to send [17:26:11]OFD Sender: No OFD packet to send [17:26:16]OFD Sender: No OFD packet to send [17:26:21]OFD Sender: No OFD packet to send [17:26:26]OFD Sender: No OFD packet to send [17:26:31]OFD Sender: No OFD packet to send [17:26:36]OFD Sender: No OFD packet to send [17:26:37]accept exits with 9 [17:26:37]New connection [17:26:37]New thread 3067239780 created [17:26:37]Thread 3067383140 joined [17:26:37]Waiting for new connection... [17:26:37] Sock 9.Parse request [17:26:37]Sock 9.Check first char [17:26:37]Sock 9.First char is OK [17:26:37]request: POST /json_proto HTTP/1.0 [17:26:37]Method: POST [17:26:37]URL: /json_proto [17:26:37]Method is POST - this is cgi request [17:26:37]url: /json_proto [17:26:37]query_string will be loaded in cgi processing [17:26:37]execute_cgi json_proto POST (null) [17:26:37]execute_cgi path=json_proto method=POST [17:26:37]POST find Content-Length [17:26:37]Host: 172.17.45.7:8080 [17:26:37]Content-Length: 675 [17:26:37]Content-Type: application/json [17:26:37] [17:26:37]POST finish read [17:26:37]Found Content-Length = 675 [17:26:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:37]execute_script... [17:26: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)949408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:37]POST & json_proto [17:26:37]process_json_proto [17:26:37]json parsed OK: [17:26:37]protocol is kg_v1.0 [17:26:37]action value=close_receipt [17:26:37]process_action close_receipt [17:26:37]cmd_close_receipt [17:26:37]MH_GetDate [17:26:37]Write to MH i2c: F0 00 00 44 0C 3F [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: F0 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: F0 09 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: F0 09 00 44 0C 00 4F 7F A6 66 90 0F 3E 66 65 [17:26:37]GetLastDocTimeStamp 1722187359 [17:26:37]current date 1722187599 [17:26:37]FM_GetShiftState [17:26:37]SAM_PROTO_GetShiftState [17:26:37]wFMCommunicate request_size=4 [17:26:37]MH_SAM_APDU [17:26:37]CAPDU: 80 13 01 00 [17:26:37]Write to MH i2c: E2 08 00 45 0C 80 13 01 00 00 00 00 00 CE [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:37]Read from MH i2c: E2 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 0E 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 0E 00 45 0C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A5 [17:26:37]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:26:37]wFMCommunicate OK [17:26:37]SAM_PROTO_GetShiftState done [17:26:37]FM_GetShiftState done [17:26:37]opened in 1722125364 [17:26:37]opened+sec_in_day 1722211764 [17:26:37]quantity*price = 80010 [17:26:37]sum+1 = 80011 [17:26:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 206 28.07.2024 17:26 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118537 ФПД: 276256379024905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T172639&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118537&fm=276256379024905&tin=02508201610067®Number=0000000000092660&sum=80000 [17:26:38]StoreToDocumentArchive [17:26:38]shift 433 fd 118537 [17:26:38]save to /storage/0433/doc_00118537 [17:26:38]save last doc name /storage/0433/doc_00118537 to /storage/kkm_last_doc_name [17:26:38]save OK [17:26:38]Clear old archive folders... [17:26:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:26:38]tlvbuf is 01E63230 [17:26:38]SAM_PROTO_ClearQueue [17:26:38]wFMCommunicate request_size=4 [17:26:38]MH_SAM_APDU [17:26:38]CAPDU: 80 09 00 00 [17:26:38]Write to MH i2c: E2 08 00 52 0C 80 09 00 00 00 00 00 00 D0 [17:26:38]Write i2c OK [17:26:38]MH_I2C_Read... [17:26:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:38]Read from MH i2c: E2 [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: E2 03 00 [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: E2 03 00 52 0C 00 90 00 D2 [17:26:38]RAPDU: 90 00 [17:26:38]wFMCommunicate OK [17:26:38]SAM_PROTO_ClearQueue done [17:26:38]KKMCreateOFDPacket [17:26:38]OFDProtocolAddRootSTLVToBuf [17:26:38]FM_MakeSignedData [17:26:38]FM_MakeSignedData [17:26:38]SAM_PROTO_SignData [17:26:38]wFMCommunicate request_size=4 [17:26:38]MH_SAM_APDU [17:26:38]CAPDU: 80 0D 01 02 [17:26:38]Write to MH i2c: E2 08 00 53 0C 80 0D 01 02 00 00 00 00 D8 [17:26:38]Write i2c OK [17:26:38]MH_I2C_Read... [17:26:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:38]Read from MH i2c: E2 [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: E2 03 00 [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: E2 03 00 53 0C 00 90 00 D3 [17:26:38]RAPDU: 90 00 [17:26:38]wFMCommunicate OK [17:26:38]wFMCommunicate request_size=255 [17:26:38]MH_SAM_APDU [17:26:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 4F 7F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 09 CF 01 00 35 04 06 00 FB 40 F3 56 [17:26:38]Write to MH i2c: E2 02 01 54 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 4F 7F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 09 CF 01 00 35 04 06 00 FB 40 F3 56 00 00 52 [17:26:38]Write i2c OK [17:26:38]MH_I2C_Read... [17:26:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:39]Read from MH i2c: E2 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 03 00 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 03 00 54 0C 00 90 00 D4 [17:26:39]RAPDU: 90 00 [17:26:39]wFMCommunicate OK [17:26:39]wFMCommunicate request_size=7 [17:26:39]MH_SAM_APDU [17:26:39]CAPDU: 80 0D 02 02 02 B6 09 [17:26:39]Write to MH i2c: E2 0A 00 55 0C 80 0D 02 02 02 00 B6 09 00 00 9E [17:26:39]Write i2c OK [17:26:39]MH_I2C_Read... [17:26:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:39]Read from MH i2c: E2 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 03 00 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 03 00 55 0C 00 90 00 D5 [17:26:39]RAPDU: 90 00 [17:26:39]wFMCommunicate OK [17:26:39]wFMCommunicate request_size=4 [17:26:39]MH_SAM_APDU [17:26:39]CAPDU: 80 0D 03 02 [17:26:39]Write to MH i2c: E2 08 00 56 0C 80 0D 03 02 00 00 00 00 DD [17:26:39]Write i2c OK [17:26:39]MH_I2C_Read... [17:26:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:39]Read from MH i2c: E2 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 0B 00 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 0B 00 56 0C 00 FD BF 6F 4F E4 83 26 E6 90 00 CB [17:26:39]RAPDU: FD BF 6F 4F E4 83 26 E6 90 00 [17:26:39]wFMCommunicate OK [17:26:39]SAM_PROTO_SignData done [17:26:39]FM_MakeSignedData done [17:26:39]CreateOFDProtocolMessage [17:26:39]wFMCommunicate request_size=4 [17:26:39]MH_SAM_APDU [17:26:39]CAPDU: 80 11 00 00 [17:26:39]Write to MH i2c: E2 08 00 57 0C 80 11 00 00 00 00 00 00 DD [17:26:39]Write i2c OK [17:26:39]MH_I2C_Read... [17:26:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:39]Read from MH i2c: E2 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 17 00 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 17 00 57 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 38 [17:26:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:26:39]wFMCommunicate OK [17:26:39]CreateOFDProtocolMessage done [17:26:39]OFDSenderStorePacket 118537 [17:26:39]StoreOFDPacket docnum=118537 [17:26:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 88 B9 04 01 68 49 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 4F 7F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 09 CF 01 00 35 04 06 00 FB 40 F3 56 B6 09 FD BF 6F 4F E4 83 26 E6 [17:26:39]CheckFolder [17:26:39]dirname=/storage/ofd_packets [17:26:39]CheckFolder done [17:26:39]ProducePacketName [17:26:39]name=ofd_packets/00118537 [17:26:39]NVStorageSaveData ofd_packets/00118537 [17:26:39]File name is /storage/ofd_packets/00118537 [17:26:39]Write 298 bytes [17:26:39]NVStorageSaveData done [17:26:39]OFDSenderStorePacket done [17:26:39]KKMCreateOFDPacket done [17:26:39]NVStorageSaveData kkm_last_timestamp [17:26:39]File name is /storage/kkm_last_timestamp [17:26:39]Write 4 bytes [17:26:39]NVStorageSaveData done [17:26:39]ExternCall_PrintAddStr [17:26:39]wPrintStart [17:26:39]Write to MH i2c: 01 00 00 58 0C 64 [17:26:39]Write i2c OK [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: 01 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: 01 07 00 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: 01 07 00 58 0C 00 00 00 00 00 FF 0F 79 [17:26:39]RasterBufferAndPrint [17:26:39]line Счет N : (1)949408 [17:26:39]line ИНН: 02508201610067 [17:26:39]line Контрольно-Кассовый Чек [17:26:39]line ПРОДАЖА [17:26:39]line ТРК (МРК, ГНК) : 44 [17:26:39]line Товар: 2710194800 [17:26:39]line ДТ-К-5 [17:26:39]line 10.500 * 76.20 [17:26:39]line = 800.10 [17:26:39]line НДС 12% НСП 1% [17:26:39]line > о реализуемом товаре [17:26:39]line ОКРУГЛЕНИЕ: -0.10 [17:26:39]line ИТОГО: 800.00 [17:26:39]line Внесено: 800.00 [17:26:39]line СДАЧА: 0.00 [17:26:39]line НСП 1% : 7.08 [17:26:39]line НДС 12% : 84.97 [17:26:39]line Наличными: 800.00 [17:26:39]line Безнал.: 0.00 [17:26:39]line Место: АЗС № 134 "Партнер Нефть" [17:26:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:26:39]line СНО: Общий режим [17:26:39]line Чек 206 28.07.2024 17:26 [17:26:39]line Смена: 433 ФФД: 1.0 [17:26:39]line ЗНМ: 0300000044 [17:26:39]line РНМ: 0000000000092660 [17:26:39]line Версия ККМ: 001 [17:26:39]line ФМ: 0000000000874939 [17:26:39]line ФД: 118537 [17:26:39]line ФПД: 276256379024905 [17:26:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T172639&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118537&fm=276256379024905&tin=02508201610067®Number=0000000000092660&sum=80000 [17:26:39]OFD Sender: Processing packet 118537 [packets to send 86, broken 85] [17:26:39]ProducePacketName [17:26:39]name=ofd_packets/00118537 [17:26:39]OFD Sender: To server: pG, [17:26:39]CommunicateWithHost lk.salyk.kg:30040 [17:26:39]ConnectInit lk.salyk.kg [17:26:39]written 0, free lines is 4095 [17:26:39]Connected sock=10 [17:26: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 39 33 39 0C 01 00 00 88 B9 04 01 68 49 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 4F 7F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 09 CF 01 00 35 04 06 00 FB 40 F3 56 B6 09 FD BF 6F 4F E4 83 26 E6 [17:26:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 ED 6B 47 00 8B 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 09 CF 01 00 F4 03 04 00 DE 2C A6 66 B6 04 01 00 00 77 AC D8 58 36 F4 09 22 [17:26:39]CommunicateWithHost err = 0 [17:26:39]CheckOFDResponse [17:26:39]1017 (14) - 77093643461234 [17:26:39]1041 (16) - 0000000000874939 [17:26:39]1040 (4) - 118537 [17:26:39]1012 (4) - 28.07.2024 11:34 [17:26:39]1206 (1) - 0 [17:26:39]OFD Sender: Remove packet 118537 [17:26:39]ProducePacketName [17:26:39]name=ofd_packets/00118537 [17:26:39]NVStorageDeleteData [17:26:39]Write to MH i2c: 01 00 00 82 0C 8E [17:26:39]Write i2c OK [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: 01 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: 01 07 00 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: 01 07 00 82 0C 00 00 00 00 00 D3 0C 74 [17:26:39]RasterBufferAndPrint [17:26:39]line [17:26:39]line [17:26:39]line [17:26:39]line [17:26:39]line [17:26:39]written 0, free lines is 3290 [17:26:39]MH_Cut [17:26:39]Write to MH i2c: D1 01 00 89 0C 01 67 [17:26:39]Write i2c OK [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: D1 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: D1 01 00 [17:26:40]MH_I2C_Read... [17:26:40]Read from MH i2c: D1 01 00 89 0C 00 66 [17:26:40]Write to MH i2c: 01 00 00 8A 0C 96 [17:26:40]Write i2c OK [17:26:40]MH_I2C_Read... [17:26:40]OFD Sender: No OFD packet to send [17:26:40]*** Cut start [17:26:40]*** Partial cut [17:26:40]*** CUTSNS_PIN = 1 [17:26:40]*** CUTSNS_PIN = 0 [17:26:40]*** Brake cut motor [17:26:41]Read from MH i2c: 01 [17:26:41]MH_I2C_Read... [17:26:41]*** Stop cut motor [17:26:41]*** Cut end [17:26:41]Read from MH i2c: 01 07 00 [17:26:41]MH_I2C_Read... [17:26:41]Read from MH i2c: 01 07 00 8A 0C 00 00 00 00 00 FF 0F AB [17:26:41]process_action close_receipt done [17:26:41]requested_data is exist [17:26:41]produce_requested_data [17:26:41]requested_item fm.sn is exist - process it [17:26:41]wFMCommunicate request_size=4 [17:26:41]MH_SAM_APDU [17:26:41]CAPDU: 80 11 00 00 [17:26:41]Write to MH i2c: E2 08 00 8B 0C 80 11 00 00 00 00 00 00 11 [17:26:41]Write i2c OK [17:26:41]MH_I2C_Read... [17:26:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:41]Read from MH i2c: E2 [17:26:41]MH_I2C_Read... [17:26:41]Read from MH i2c: E2 17 00 [17:26:41]MH_I2C_Read... [17:26:41]Read from MH i2c: E2 17 00 8B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6C [17:26:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:26:41]wFMCommunicate OK [17:26:41]requested_item fd.num is exist - process it [17:26:41]SAM_PROTO_GetFieldsCounters [17:26:41]wFMCommunicate request_size=4 [17:26:41]MH_SAM_APDU [17:26:41]CAPDU: 80 13 00 00 [17:26:41]Write to MH i2c: E2 08 00 8C 0C 80 13 00 00 00 00 00 00 14 [17:26:41]Write i2c OK [17:26:41]MH_I2C_Read... [17:26:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:41]Read from MH i2c: E2 [17:26:41]MH_I2C_Read... [17:26:41]Read from MH i2c: E2 62 00 [17:26:41]MH_I2C_Read... [17:26:41]Read from MH i2c: E2 62 00 8C 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 09 CF 01 00 0E 04 04 00 B1 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 30 [17:26:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 09 CF 01 00 0E 04 04 00 B1 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 [17:26:41]wFMCommunicate OK [17:26:41]SAM_PROTO_GetFieldsCounters done [17:26:41]requested_item shift.num is exist - process it [17:26:41]requested_item shift.opened is exist - process it [17:26:41]req_shift_opened [17:26:41]FM_GetShiftState [17:26:41]SAM_PROTO_GetShiftState [17:26:41]wFMCommunicate request_size=4 [17:26:41]MH_SAM_APDU [17:26:41]CAPDU: 80 13 01 00 [17:26:41]Write to MH i2c: E2 08 00 8D 0C 80 13 01 00 00 00 00 00 16 [17:26:41]Write i2c OK [17:26:41]MH_I2C_Read... [17:26:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:41]Read from MH i2c: E2 [17:26:41]MH_I2C_Read... [17:26:41]Read from MH i2c: E2 0E 00 [17:26:41]MH_I2C_Read... [17:26:41]Read from MH i2c: E2 0E 00 8D 0C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 ED [17:26:41]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:26:41]wFMCommunicate OK [17:26:41]SAM_PROTO_GetShiftState done [17:26:41]FM_GetShiftState done [17:26:41]req_shift_opened done [17:26:41]requested_item shift.open_date is exist - process it [17:26:41]req_shift_open_date [17:26:41]req_shift_open_date done [17:26:41]produce_requested_data done [17:26:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118537,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [17:26:41]process_action_free close_receipt [17:26:41]json_value_free [17:26:41]json_value_free done [17:26:41]process_json_proto returns [17:26:41]Send response to host [17:26:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118537,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [17:26:41]free response buf [17:26:41]execute_script done [17:26:41]execute_script returns [17:26:41]free content buf [17:26:41]Sock 9.Close socket [17:26:41]Sock 9.Thread stoped [17:26:42]accept exits with 7 [17:26:42]New connection [17:26:42]New thread 3067383140 created [17:26:42]Thread 3067239780 joined [17:26:42]Waiting for new connection... [17:26:42] Sock 7.Parse request [17:26:42]Sock 7.Check first char [17:26:42]Sock 7.First char is OK [17:26:42]request: POST /json_proto HTTP/1.0 [17:26:42]Method: POST [17:26:42]URL: /json_proto [17:26:42]Method is POST - this is cgi request [17:26:42]url: /json_proto [17:26:42]query_string will be loaded in cgi processing [17:26:42]execute_cgi json_proto POST (null) [17:26:42]execute_cgi path=json_proto method=POST [17:26:42]POST find Content-Length [17:26:42]Host: 172.17.45.7:8080 [17:26:42]Content-Length: 732 [17:26:42]Content-Type: application/json [17:26:42] [17:26:42]POST finish read [17:26:42]Found Content-Length = 732 [17:26:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118537, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:42]execute_script... [17:26:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118537, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:42]POST & json_proto [17:26:42]process_json_proto [17:26:42]json parsed OK: [17:26:42]protocol is kg_v1.0 [17:26:42]action value=close_receipt [17:26:42]process_action close_receipt [17:26:42]cmd_close_receipt [17:26:42]MH_GetDate [17:26:42]Write to MH i2c: F0 00 00 8E 0C 89 [17:26:42]Write i2c OK [17:26:42]MH_I2C_Read... [17:26:42]Read from MH i2c: F0 [17:26:42]MH_I2C_Read... [17:26:42]Read from MH i2c: F0 09 00 [17:26:42]MH_I2C_Read... [17:26:42]Read from MH i2c: F0 09 00 8E 0C 00 54 7F A6 66 90 0F 3E 66 B4 [17:26:42]GetLastDocTimeStamp 1722187599 [17:26:42]current date 1722187604 [17:26:42]FM_GetShiftState [17:26:42]SAM_PROTO_GetShiftState [17:26:42]wFMCommunicate request_size=4 [17:26:42]MH_SAM_APDU [17:26:42]CAPDU: 80 13 01 00 [17:26:42]Write to MH i2c: E2 08 00 8F 0C 80 13 01 00 00 00 00 00 18 [17:26:42]Write i2c OK [17:26:42]MH_I2C_Read... [17:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:43]Read from MH i2c: E2 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: E2 0E 00 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: E2 0E 00 8F 0C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 EF [17:26:43]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:26:43]wFMCommunicate OK [17:26:43]SAM_PROTO_GetShiftState done [17:26:43]FM_GetShiftState done [17:26:43]opened in 1722125364 [17:26:43]opened+sec_in_day 1722211764 [17:26:43]quantity*price = 80010 [17:26:43]sum+1 = 80011 [17:26:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 207 28.07.2024 17:26 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 118537 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 118538 ФПД: 258540224765436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T172644&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118538&fm=258540224765436&tin=02508201610067®Number=0000000000092660&sum=80000 [17:26:44]StoreToDocumentArchive [17:26:44]shift 433 fd 118538 [17:26:44]save to /storage/0433/doc_00118538 [17:26:44]save last doc name /storage/0433/doc_00118538 to /storage/kkm_last_doc_name [17:26:44]save OK [17:26:44]Clear old archive folders... [17:26:44]ProcessDocumentItem done err = 0, tmpTLVsize=276 [17:26:44]tlvbuf is 01E5FFC0 [17:26:44]SAM_PROTO_ClearQueue [17:26:44]wFMCommunicate request_size=4 [17:26:44]MH_SAM_APDU [17:26:44]CAPDU: 80 09 00 00 [17:26:44]Write to MH i2c: E2 08 00 9E 0C 80 09 00 00 00 00 00 00 1C [17:26:44]Write i2c OK [17:26:44]MH_I2C_Read... [17:26:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:44]Read from MH i2c: E2 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: E2 03 00 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: E2 03 00 9E 0C 00 90 00 1E [17:26:44]RAPDU: 90 00 [17:26:44]wFMCommunicate OK [17:26:44]SAM_PROTO_ClearQueue done [17:26:44]KKMCreateOFDPacket [17:26:44]OFDProtocolAddRootSTLVToBuf [17:26:44]FM_MakeSignedData [17:26:44]FM_MakeSignedData [17:26:44]SAM_PROTO_SignData [17:26:44]wFMCommunicate request_size=4 [17:26:44]MH_SAM_APDU [17:26:44]CAPDU: 80 0D 01 02 [17:26:44]Write to MH i2c: E2 08 00 9F 0C 80 0D 01 02 00 00 00 00 24 [17:26:44]Write i2c OK [17:26:44]MH_I2C_Read... [17:26:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:44]Read from MH i2c: E2 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: E2 03 00 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: E2 03 00 9F 0C 00 90 00 1F [17:26:44]RAPDU: 90 00 [17:26:44]wFMCommunicate OK [17:26:44]wFMCommunicate request_size=255 [17:26:44]MH_SAM_APDU [17:26:44]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 54 7F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 09 CF 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 [17:26:44]Write to MH i2c: E2 02 01 A0 0C 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 54 7F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 09 CF 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 00 00 12 [17:26:44]Write i2c OK [17:26:44]MH_I2C_Read... [17:26:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:44]Read from MH i2c: E2 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: E2 03 00 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: E2 03 00 A0 0C 00 90 00 20 [17:26:44]RAPDU: 90 00 [17:26:44]wFMCommunicate OK [17:26:44]wFMCommunicate request_size=35 [17:26:44]MH_SAM_APDU [17:26:44]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0A CF 01 00 35 04 06 00 EB 24 16 41 DD FC [17:26:44]Write to MH i2c: E2 26 00 A1 0C 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0A CF 01 00 35 04 06 00 EB 24 16 41 DD FC 00 00 3B [17:26:44]Write i2c OK [17:26:44]MH_I2C_Read... [17:26:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:44]Read from MH i2c: E2 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: E2 03 00 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: E2 03 00 A1 0C 00 90 00 21 [17:26:44]RAPDU: 90 00 [17:26:44]wFMCommunicate OK [17:26:44]wFMCommunicate request_size=4 [17:26:44]MH_SAM_APDU [17:26:44]CAPDU: 80 0D 03 02 [17:26:44]Write to MH i2c: E2 08 00 A2 0C 80 0D 03 02 00 00 00 00 29 [17:26:44]Write i2c OK [17:26:44]MH_I2C_Read... [17:26:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:44]Read from MH i2c: E2 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: E2 0B 00 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: E2 0B 00 A2 0C 00 9E E1 9E 72 17 CA DC 50 90 00 C6 [17:26:44]RAPDU: 9E E1 9E 72 17 CA DC 50 90 00 [17:26:44]wFMCommunicate OK [17:26:44]SAM_PROTO_SignData done [17:26:44]FM_MakeSignedData done [17:26:44]CreateOFDProtocolMessage [17:26:44]wFMCommunicate request_size=4 [17:26:44]MH_SAM_APDU [17:26:44]CAPDU: 80 11 00 00 [17:26:44]Write to MH i2c: E2 08 00 A3 0C 80 11 00 00 00 00 00 00 29 [17:26:44]Write i2c OK [17:26:44]MH_I2C_Read... [17:26:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:44]Read from MH i2c: E2 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: E2 17 00 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: E2 17 00 A3 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 84 [17:26:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:26:44]wFMCommunicate OK [17:26:44]CreateOFDProtocolMessage done [17:26:44]OFDSenderStorePacket 118538 [17:26:44]StoreOFDPacket docnum=118538 [17:26:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 28 01 00 00 8E 16 20 01 2F F2 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 54 7F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 09 CF 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0A CF 01 00 35 04 06 00 EB 24 16 41 DD FC 9E E1 9E 72 17 CA DC 50 [17:26:44]CheckFolder [17:26:44]dirname=/storage/ofd_packets [17:26:44]CheckFolder done [17:26:44]ProducePacketName [17:26:44]name=ofd_packets/00118538 [17:26:44]NVStorageSaveData ofd_packets/00118538 [17:26:44]File name is /storage/ofd_packets/00118538 [17:26:44]Write 326 bytes [17:26:44]NVStorageSaveData done [17:26:44]OFDSenderStorePacket done [17:26:44]KKMCreateOFDPacket done [17:26:44]NVStorageSaveData kkm_last_timestamp [17:26:44]File name is /storage/kkm_last_timestamp [17:26:44]Write 4 bytes [17:26:44]NVStorageSaveData done [17:26:44]ExternCall_PrintAddStr [17:26:44]wPrintStart [17:26:44]Write to MH i2c: 01 00 00 A4 0C B0 [17:26:44]Write i2c OK [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: 01 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: 01 07 00 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: 01 07 00 A4 0C 00 00 00 00 00 FF 0F C5 [17:26:44]RasterBufferAndPrint [17:26:44]line Счет N : (1)949408 [17:26:44]line ИНН: 02508201610067 [17:26:44]line Контрольно-Кассовый Чек [17:26:44]line ВОЗВРАТ ПРОДАЖИ [17:26:44]line ТРК (МРК, ГНК) : 44 [17:26:44]line Товар: 2710194800 [17:26:44]line ДТ-К-5 [17:26:44]line 10.500 * 76.20 [17:26:44]line = 800.10 [17:26:44]line НДС 12% НСП 1% [17:26:44]line > о реализуемом товаре [17:26:44]line ОКРУГЛЕНИЕ: -0.10 [17:26:44]line ИТОГО: 800.00 [17:26:44]line НСП 1% : 7.08 [17:26:44]line НДС 12% : 84.97 [17:26:44]line Наличными: 800.00 [17:26:44]line Безнал.: 0.00 [17:26:44]line Место: АЗС № 134 "Партнер Нефть" [17:26:44]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:26:44]line СНО: Общий режим [17:26:44]line Чек 207 28.07.2024 17:26 [17:26:44]line Смена: 433 ФФД: 1.0 [17:26:44]line ЗНМ: 0300000044 [17:26:44]line РНМ: 0000000000092660 [17:26:44]line Версия ККМ: 001 [17:26:44]line ФД осн.: 118537 [17:26:44]line ФМ осн.: 0000000000874939 [17:26:44]line ФМ: 0000000000874939 [17:26:44]line ФД: 118538 [17:26:44]line ФПД: 258540224765436 [17:26:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T172644&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118538&fm=258540224765436&tin=02508201610067®Number=0000000000092660&sum=80000 [17:26:44]written 0, free lines is 4095 [17:26:44]OFD Sender: Processing packet 118538 [packets to send 86, broken 85] [17:26:44]ProducePacketName [17:26:44]name=ofd_packets/00118538 [17:26:45]OFD Sender: To server: pG, [17:26:45]CommunicateWithHost lk.salyk.kg:30040 [17:26:45]ConnectInit lk.salyk.kg [17:26:45]Connected sock=11 [17:26:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 28 01 00 00 8E 16 20 01 2F F2 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 54 7F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 09 CF 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0A CF 01 00 35 04 06 00 EB 24 16 41 DD FC 9E E1 9E 72 17 CA DC 50 [17:26:45]Write to MH i2c: 01 00 00 CE 0C DA [17:26:45]Write i2c OK [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: 01 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: 01 07 00 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: 01 07 00 CE 0C 00 00 00 00 00 0C 0D FA [17:26:45]RasterBufferAndPrint [17:26:45]line [17:26:45]line [17:26:45]line [17:26:45]line [17:26:45]line [17:26:45]written 0, free lines is 3350 [17:26:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 29 CA 47 00 21 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 39 33 39 10 04 04 00 0A CF 01 00 F4 03 04 00 E4 2C A6 66 B6 04 01 00 00 13 84 10 C6 F1 10 05 0A [17:26:45]CommunicateWithHost err = 0 [17:26:45]CheckOFDResponse [17:26:45]1017 (14) - 77093643461234 [17:26:45]1041 (16) - 0000000000874939 [17:26:45]1040 (4) - 118538 [17:26:45]1012 (4) - 28.07.2024 11:35 [17:26:45]1206 (1) - 0 [17:26:45]OFD Sender: Remove packet 118538 [17:26:45]ProducePacketName [17:26:45]name=ofd_packets/00118538 [17:26:45]NVStorageDeleteData [17:26:45]MH_Cut [17:26:45]Write to MH i2c: D1 01 00 D5 0C 01 B3 [17:26:45]Write i2c OK [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: D1 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: D1 01 00 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: D1 01 00 D5 0C 00 B2 [17:26:45]Write to MH i2c: 01 00 00 D6 0C E2 [17:26:45]Write i2c OK [17:26:45]MH_I2C_Read... [17:26:45]OFD Sender: No OFD packet to send [17:26:46]*** Cut start [17:26:46]*** Partial cut [17:26:46]*** CUTSNS_PIN = 1 [17:26:46]*** CUTSNS_PIN = 0 [17:26:46]*** Brake cut motor [17:26:46]Read from MH i2c: 01 [17:26:46]MH_I2C_Read... [17:26:46]*** Stop cut motor [17:26:46]*** Cut end [17:26:46]Read from MH i2c: 01 07 00 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: 01 07 00 D6 0C 00 00 00 00 00 FF 0F F7 [17:26:46]process_action close_receipt done [17:26:46]requested_data is exist [17:26:46]produce_requested_data [17:26:46]requested_item fm.sn is exist - process it [17:26:46]wFMCommunicate request_size=4 [17:26:46]MH_SAM_APDU [17:26:46]CAPDU: 80 11 00 00 [17:26:46]Write to MH i2c: E2 08 00 D7 0C 80 11 00 00 00 00 00 00 5D [17:26:46]Write i2c OK [17:26:46]MH_I2C_Read... [17:26:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:46]Read from MH i2c: E2 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 17 00 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 17 00 D7 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B8 [17:26:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:26:46]wFMCommunicate OK [17:26:46]requested_item fd.num is exist - process it [17:26:46]SAM_PROTO_GetFieldsCounters [17:26:46]wFMCommunicate request_size=4 [17:26:46]MH_SAM_APDU [17:26:46]CAPDU: 80 13 00 00 [17:26:46]Write to MH i2c: E2 08 00 D8 0C 80 13 00 00 00 00 00 00 60 [17:26:46]Write i2c OK [17:26:46]MH_I2C_Read... [17:26:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:46]Read from MH i2c: E2 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 62 00 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 62 00 D8 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0A CF 01 00 0E 04 04 00 B1 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 80 [17:26:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0A CF 01 00 0E 04 04 00 B1 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 [17:26:46]wFMCommunicate OK [17:26:46]SAM_PROTO_GetFieldsCounters done [17:26:46]requested_item shift.num is exist - process it [17:26:46]requested_item shift.opened is exist - process it [17:26:46]req_shift_opened [17:26:46]FM_GetShiftState [17:26:46]SAM_PROTO_GetShiftState [17:26:46]wFMCommunicate request_size=4 [17:26:46]MH_SAM_APDU [17:26:46]CAPDU: 80 13 01 00 [17:26:46]Write to MH i2c: E2 08 00 D9 0C 80 13 01 00 00 00 00 00 62 [17:26:46]Write i2c OK [17:26:46]MH_I2C_Read... [17:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:47]Read from MH i2c: E2 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 0E 00 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 0E 00 D9 0C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 39 [17:26:47]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:26:47]wFMCommunicate OK [17:26:47]SAM_PROTO_GetShiftState done [17:26:47]FM_GetShiftState done [17:26:47]req_shift_opened done [17:26:47]requested_item shift.open_date is exist - process it [17:26:47]req_shift_open_date [17:26:47]req_shift_open_date done [17:26:47]produce_requested_data done [17:26:47]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118538,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [17:26:47]process_action_free close_receipt [17:26:47]json_value_free [17:26:47]json_value_free done [17:26:47]process_json_proto returns [17:26:47]Send response to host [17:26:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118538,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [17:26:47]free response buf [17:26:47]execute_script done [17:26:47]execute_script returns [17:26:47]free content buf [17:26:47]Sock 7.Close socket [17:26:47]Sock 7.Thread stoped [17:26:50]accept exits with 9 [17:26:50]New connection [17:26:50]New thread 3067239780 created [17:26:50]Thread 3067383140 joined [17:26:50]Waiting for new connection... [17:26:50] Sock 9.Parse request [17:26:50]Sock 9.Check first char [17:26:50]Sock 9.First char is OK [17:26:50]request: POST /json_proto HTTP/1.0 [17:26:50]Method: POST [17:26:50]URL: /json_proto [17:26:50]Method is POST - this is cgi request [17:26:50]url: /json_proto [17:26:50]query_string will be loaded in cgi processing [17:26:50]execute_cgi json_proto POST (null) [17:26:50]execute_cgi path=json_proto method=POST [17:26:50]POST find Content-Length [17:26:50]Host: 172.17.45.7:8080 [17:26:50]Content-Length: 675 [17:26:50]Content-Type: application/json [17:26:50] [17:26:50]POST finish read [17:26:50]Found Content-Length = 675 [17:26:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:50]execute_script... [17:26: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)949409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:50]POST & json_proto [17:26:50]process_json_proto [17:26:50]json parsed OK: [17:26:50]protocol is kg_v1.0 [17:26:50]action value=close_receipt [17:26:50]process_action close_receipt [17:26:50]cmd_close_receipt [17:26:50]MH_GetDate [17:26:50]Write to MH i2c: F0 00 00 DA 0C D5 [17:26:50]Write i2c OK [17:26:50]MH_I2C_Read... [17:26:50]Read from MH i2c: F0 [17:26:50]MH_I2C_Read... [17:26:50]Read from MH i2c: F0 09 00 [17:26:50]MH_I2C_Read... [17:26:50]Read from MH i2c: F0 09 00 DA 0C 00 5C 7F A6 66 90 0F 3E 66 08 [17:26:50]GetLastDocTimeStamp 1722187604 [17:26:50]current date 1722187612 [17:26:50]FM_GetShiftState [17:26:50]SAM_PROTO_GetShiftState [17:26:50]wFMCommunicate request_size=4 [17:26:50]MH_SAM_APDU [17:26:50]CAPDU: 80 13 01 00 [17:26:50]Write to MH i2c: E2 08 00 DB 0C 80 13 01 00 00 00 00 00 64 [17:26:50]Write i2c OK [17:26:50]MH_I2C_Read... [17:26:50]OFD Sender: No OFD packet to send [17:26:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:51]Read from MH i2c: E2 [17:26:51]MH_I2C_Read... [17:26:51]Read from MH i2c: E2 0E 00 [17:26:51]MH_I2C_Read... [17:26:51]Read from MH i2c: E2 0E 00 DB 0C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 3B [17:26:51]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:26:51]wFMCommunicate OK [17:26:51]SAM_PROTO_GetShiftState done [17:26:51]FM_GetShiftState done [17:26:51]opened in 1722125364 [17:26:51]opened+sec_in_day 1722211764 [17:26:51]quantity*price = 80010 [17:26:51]sum+1 = 80011 [17:26:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 208 28.07.2024 17:26 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118539 ФПД: 147861269626824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T172652&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118539&fm=147861269626824&tin=02508201610067®Number=0000000000092660&sum=80000 [17:26:51]StoreToDocumentArchive [17:26:51]shift 433 fd 118539 [17:26:51]save to /storage/0433/doc_00118539 [17:26:51]save last doc name /storage/0433/doc_00118539 to /storage/kkm_last_doc_name [17:26:51]save OK [17:26:51]Clear old archive folders... [17:26:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:26:51]tlvbuf is 01E6C830 [17:26:51]SAM_PROTO_ClearQueue [17:26:51]wFMCommunicate request_size=4 [17:26:51]MH_SAM_APDU [17:26:51]CAPDU: 80 09 00 00 [17:26:51]Write to MH i2c: E2 08 00 E8 0C 80 09 00 00 00 00 00 00 66 [17:26:51]Write i2c OK [17:26:51]MH_I2C_Read... [17:26:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:51]Read from MH i2c: E2 [17:26:51]MH_I2C_Read... [17:26:51]Read from MH i2c: E2 03 00 [17:26:51]MH_I2C_Read... [17:26:51]Read from MH i2c: E2 03 00 E8 0C 00 90 00 68 [17:26:51]RAPDU: 90 00 [17:26:51]wFMCommunicate OK [17:26:51]SAM_PROTO_ClearQueue done [17:26:51]KKMCreateOFDPacket [17:26:51]OFDProtocolAddRootSTLVToBuf [17:26:51]FM_MakeSignedData [17:26:51]FM_MakeSignedData [17:26:51]SAM_PROTO_SignData [17:26:51]wFMCommunicate request_size=4 [17:26:51]MH_SAM_APDU [17:26:51]CAPDU: 80 0D 01 02 [17:26:51]Write to MH i2c: E2 08 00 E9 0C 80 0D 01 02 00 00 00 00 6E [17:26:51]Write i2c OK [17:26:51]MH_I2C_Read... [17:26:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:52]Read from MH i2c: E2 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 03 00 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 03 00 E9 0C 00 90 00 69 [17:26:52]RAPDU: 90 00 [17:26:52]wFMCommunicate OK [17:26:52]wFMCommunicate request_size=255 [17:26:52]MH_SAM_APDU [17:26:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 5C 7F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0B CF 01 00 35 04 06 00 86 7A A2 73 [17:26:52]Write to MH i2c: E2 02 01 EA 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 5C 7F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0B CF 01 00 35 04 06 00 86 7A A2 73 00 00 8A [17:26:52]Write i2c OK [17:26:52]MH_I2C_Read... [17:26:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:52]Read from MH i2c: E2 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 03 00 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 03 00 EA 0C 00 90 00 6A [17:26:52]RAPDU: 90 00 [17:26:52]wFMCommunicate OK [17:26:52]wFMCommunicate request_size=7 [17:26:52]MH_SAM_APDU [17:26:52]CAPDU: 80 0D 02 02 02 BF C8 [17:26:52]Write to MH i2c: E2 0A 00 EB 0C 80 0D 02 02 02 00 BF C8 00 00 FC [17:26:52]Write i2c OK [17:26:52]MH_I2C_Read... [17:26:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:52]Read from MH i2c: E2 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 03 00 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 03 00 EB 0C 00 90 00 6B [17:26:52]RAPDU: 90 00 [17:26:52]wFMCommunicate OK [17:26:52]wFMCommunicate request_size=4 [17:26:52]MH_SAM_APDU [17:26:52]CAPDU: 80 0D 03 02 [17:26:52]Write to MH i2c: E2 08 00 EC 0C 80 0D 03 02 00 00 00 00 73 [17:26:52]Write i2c OK [17:26:52]MH_I2C_Read... [17:26:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:52]Read from MH i2c: E2 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 0B 00 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 0B 00 EC 0C 00 1B F4 3E E1 63 9E 4E 49 90 00 3A [17:26:52]RAPDU: 1B F4 3E E1 63 9E 4E 49 90 00 [17:26:52]wFMCommunicate OK [17:26:52]SAM_PROTO_SignData done [17:26:52]FM_MakeSignedData done [17:26:52]CreateOFDProtocolMessage [17:26:52]wFMCommunicate request_size=4 [17:26:52]MH_SAM_APDU [17:26:52]CAPDU: 80 11 00 00 [17:26:52]Write to MH i2c: E2 08 00 ED 0C 80 11 00 00 00 00 00 00 73 [17:26:52]Write i2c OK [17:26:52]MH_I2C_Read... [17:26:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:52]Read from MH i2c: E2 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 17 00 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 17 00 ED 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CE [17:26:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:26:52]wFMCommunicate OK [17:26:52]CreateOFDProtocolMessage done [17:26:52]OFDSenderStorePacket 118539 [17:26:52]StoreOFDPacket docnum=118539 [17:26:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 CC 70 04 01 38 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 5C 7F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0B CF 01 00 35 04 06 00 86 7A A2 73 BF C8 1B F4 3E E1 63 9E 4E 49 [17:26:52]CheckFolder [17:26:52]dirname=/storage/ofd_packets [17:26:52]CheckFolder done [17:26:52]ProducePacketName [17:26:52]name=ofd_packets/00118539 [17:26:52]NVStorageSaveData ofd_packets/00118539 [17:26:52]File name is /storage/ofd_packets/00118539 [17:26:52]Write 298 bytes [17:26:52]NVStorageSaveData done [17:26:52]OFDSenderStorePacket done [17:26:52]KKMCreateOFDPacket done [17:26:52]NVStorageSaveData kkm_last_timestamp [17:26:52]File name is /storage/kkm_last_timestamp [17:26:52]Write 4 bytes [17:26:52]NVStorageSaveData done [17:26:52]ExternCall_PrintAddStr [17:26:52]wPrintStart [17:26:52]Write to MH i2c: 01 00 00 EE 0C FA [17:26:52]Write i2c OK [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: 01 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: 01 07 00 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: 01 07 00 EE 0C 00 00 00 00 00 FF 0F 0F [17:26:52]RasterBufferAndPrint [17:26:52]line Счет N : (1)949409 [17:26:52]line ИНН: 02508201610067 [17:26:52]line Контрольно-Кассовый Чек [17:26:52]line ПРОДАЖА [17:26:52]line ТРК (МРК, ГНК) : 34 [17:26:52]line Товар: 2710194800 [17:26:52]line ДТ-К-5 [17:26:52]line 10.500 * 76.20 [17:26:52]line = 800.10 [17:26:52]line НДС 12% НСП 1% [17:26:52]line > о реализуемом товаре [17:26:52]line ОКРУГЛЕНИЕ: -0.10 [17:26:52]line ИТОГО: 800.00 [17:26:52]line Внесено: 800.00 [17:26:52]line СДАЧА: 0.00 [17:26:52]line НСП 1% : 7.08 [17:26:52]line НДС 12% : 84.97 [17:26:52]line Наличными: 800.00 [17:26:52]line Безнал.: 0.00 [17:26:52]line Место: АЗС № 134 "Партнер Нефть" [17:26:52]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:26:52]line СНО: Общий режим [17:26:52]line Чек 208 28.07.2024 17:26 [17:26:52]line Смена: 433 ФФД: 1.0 [17:26:52]line ЗНМ: 0300000044 [17:26:52]line РНМ: 0000000000092660 [17:26:52]line Версия ККМ: 001 [17:26:52]line ФМ: 0000000000874939 [17:26:52]line ФД: 118539 [17:26:52]line ФПД: 147861269626824 [17:26:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T172652&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118539&fm=147861269626824&tin=02508201610067®Number=0000000000092660&sum=80000 [17:26:52]OFD Sender: Processing packet 118539 [packets to send 86, broken 85] [17:26:52]ProducePacketName [17:26:52]name=ofd_packets/00118539 [17:26:52]OFD Sender: To server: pG, [17:26:52]CommunicateWithHost lk.salyk.kg:30040 [17:26:52]ConnectInit lk.salyk.kg [17:26:52]written 0, free lines is 4095 [17:26:52]Connected sock=10 [17:26:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 CC 70 04 01 38 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 5C 7F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0B CF 01 00 35 04 06 00 86 7A A2 73 BF C8 1B F4 3E E1 63 9E 4E 49 [17:26:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 7C 3A 47 00 97 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0B CF 01 00 F4 03 04 00 EC 2C A6 66 B6 04 01 00 00 B7 DB 38 72 E2 79 F4 89 [17:26:53]CommunicateWithHost err = 0 [17:26:53]CheckOFDResponse [17:26:53]1017 (14) - 77093643461234 [17:26:53]1041 (16) - 0000000000874939 [17:26:53]1040 (4) - 118539 [17:26:53]1012 (4) - 28.07.2024 11:35 [17:26:53]1206 (1) - 0 [17:26:53]OFD Sender: Remove packet 118539 [17:26:53]ProducePacketName [17:26:53]name=ofd_packets/00118539 [17:26:53]NVStorageDeleteData [17:26:53]Write to MH i2c: 01 00 00 18 0D 25 [17:26:53]Write i2c OK [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: 01 [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: 01 07 00 [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: 01 07 00 18 0D 00 00 00 00 00 00 0D 39 [17:26:53]RasterBufferAndPrint [17:26:53]line [17:26:53]line [17:26:53]line [17:26:53]line [17:26:53]line [17:26:53]written 0, free lines is 3346 [17:26:53]MH_Cut [17:26:53]Write to MH i2c: D1 01 00 1F 0D 01 FE [17:26:53]Write i2c OK [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: D1 [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: D1 01 00 [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: D1 01 00 1F 0D 00 FD [17:26:53]Write to MH i2c: 01 00 00 20 0D 2D [17:26:53]Write i2c OK [17:26:53]MH_I2C_Read... [17:26:53]OFD Sender: No OFD packet to send [17:26:54]*** Cut start [17:26:54]*** Partial cut [17:26:54]*** CUTSNS_PIN = 1 [17:26:54]*** CUTSNS_PIN = 0 [17:26:54]*** Brake cut motor [17:26:54]Read from MH i2c: 01 [17:26:54]MH_I2C_Read... [17:26:54]*** Stop cut motor [17:26:54]*** Cut end [17:26:54]Read from MH i2c: 01 07 00 [17:26:54]MH_I2C_Read... [17:26:54]Read from MH i2c: 01 07 00 20 0D 00 00 00 00 00 FF 0F 42 [17:26:54]process_action close_receipt done [17:26:54]requested_data is exist [17:26:54]produce_requested_data [17:26:54]requested_item fm.sn is exist - process it [17:26:54]wFMCommunicate request_size=4 [17:26:54]MH_SAM_APDU [17:26:54]CAPDU: 80 11 00 00 [17:26:54]Write to MH i2c: E2 08 00 21 0D 80 11 00 00 00 00 00 00 A8 [17:26:54]Write i2c OK [17:26:54]MH_I2C_Read... [17:26:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:54]Read from MH i2c: E2 [17:26:54]MH_I2C_Read... [17:26:54]Read from MH i2c: E2 17 00 [17:26:54]MH_I2C_Read... [17:26:54]Read from MH i2c: E2 17 00 21 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 03 [17:26:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:26:54]wFMCommunicate OK [17:26:54]requested_item fd.num is exist - process it [17:26:54]SAM_PROTO_GetFieldsCounters [17:26:54]wFMCommunicate request_size=4 [17:26:54]MH_SAM_APDU [17:26:54]CAPDU: 80 13 00 00 [17:26:54]Write to MH i2c: E2 08 00 22 0D 80 13 00 00 00 00 00 00 AB [17:26:54]Write i2c OK [17:26:54]MH_I2C_Read... [17:26:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:54]Read from MH i2c: E2 [17:26:54]MH_I2C_Read... [17:26:54]Read from MH i2c: E2 62 00 [17:26:54]MH_I2C_Read... [17:26:54]Read from MH i2c: E2 62 00 22 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0B CF 01 00 0E 04 04 00 B1 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 CF [17: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0B CF 01 00 0E 04 04 00 B1 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 [17:26:54]wFMCommunicate OK [17:26:54]SAM_PROTO_GetFieldsCounters done [17:26:54]requested_item shift.num is exist - process it [17:26:54]requested_item shift.opened is exist - process it [17:26:54]req_shift_opened [17:26:54]FM_GetShiftState [17:26:54]SAM_PROTO_GetShiftState [17:26:54]wFMCommunicate request_size=4 [17:26:54]MH_SAM_APDU [17:26:54]CAPDU: 80 13 01 00 [17:26:54]Write to MH i2c: E2 08 00 23 0D 80 13 01 00 00 00 00 00 AD [17:26:54]Write i2c OK [17:26:54]MH_I2C_Read... [17:26:54]Read from MH i2c: E2 [17:26:54]MH_I2C_Read... [17:26:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:55]Read from MH i2c: E2 0E 00 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: E2 0E 00 23 0D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 84 [17:26:55]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:26:55]wFMCommunicate OK [17:26:55]SAM_PROTO_GetShiftState done [17:26:55]FM_GetShiftState done [17:26:55]req_shift_opened done [17:26:55]requested_item shift.open_date is exist - process it [17:26:55]req_shift_open_date [17:26:55]req_shift_open_date done [17:26:55]produce_requested_data done [17:26:55]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118539,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [17:26:55]process_action_free close_receipt [17:26:55]json_value_free [17:26:55]json_value_free done [17:26:55]process_json_proto returns [17:26:55]Send response to host [17:26:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118539,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [17:26:55]free response buf [17:26:55]execute_script done [17:26:55]execute_script returns [17:26:55]free content buf [17:26:55]Sock 9.Close socket [17:26:55]Sock 9.Thread stoped [17:26:58]OFD Sender: No OFD packet to send [17:27:03]OFD Sender: No OFD packet to send [17:27:08]OFD Sender: No OFD packet to send [17:27:13]OFD Sender: No OFD packet to send [17:27:18]OFD Sender: No OFD packet to send [17:27:23]OFD Sender: No OFD packet to send [17:27:28]OFD Sender: No OFD packet to send [17:27:33]OFD Sender: No OFD packet to send [17:27:38]OFD Sender: No OFD packet to send [17:27:43]OFD Sender: No OFD packet to send [17:27:48]OFD Sender: No OFD packet to send [17:27:53]OFD Sender: No OFD packet to send [17:27:58]OFD Sender: No OFD packet to send [17:28:03]OFD Sender: No OFD packet to send [17:28:08]OFD Sender: No OFD packet to send [17:28:13]OFD Sender: No OFD packet to send [17:28:18]OFD Sender: No OFD packet to send [17:28:23]OFD Sender: No OFD packet to send [17:28:28]OFD Sender: No OFD packet to send [17:28:33]OFD Sender: No OFD packet to send [17:28:38]OFD Sender: No OFD packet to send [17:28:43]OFD Sender: No OFD packet to send [17:28:44]accept exits with 7 [17:28:44]New connection [17:28:44]New thread 3067383140 created [17:28:44]Thread 3067239780 joined [17:28:44]Waiting for new connection... [17:28:44] Sock 7.Parse request [17:28:44]Sock 7.Check first char [17:28:44]Sock 7.First char is OK [17:28:44]request: POST /json_proto HTTP/1.0 [17:28:44]Method: POST [17:28:44]URL: /json_proto [17:28:44]Method is POST - this is cgi request [17:28:44]url: /json_proto [17:28:44]query_string will be loaded in cgi processing [17:28:44]execute_cgi json_proto POST (null) [17:28:44]execute_cgi path=json_proto method=POST [17:28:44]POST find Content-Length [17:28:44]Host: 172.17.45.7:8080 [17:28:44]Content-Length: 682 [17:28:44]Content-Type: application/json [17:28:44] [17:28:44]POST finish read [17:28:44]Found Content-Length = 682 [17:28:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:44]execute_script... [17:28:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:44]POST & json_proto [17:28:44]process_json_proto [17:28:44]json parsed OK: [17:28:44]protocol is kg_v1.0 [17:28:44]action value=close_receipt [17:28:44]process_action close_receipt [17:28:44]cmd_close_receipt [17:28:44]MH_GetDate [17:28:44]Write to MH i2c: F0 00 00 24 0D 20 [17:28:44]Write i2c OK [17:28:44]MH_I2C_Read... [17:28:44]Read from MH i2c: F0 [17:28:44]MH_I2C_Read... [17:28:44]Read from MH i2c: F0 09 00 [17:28:44]MH_I2C_Read... [17:28:44]Read from MH i2c: F0 09 00 24 0D 00 CD 7F A6 66 90 0F 3E 66 C4 [17:28:44]GetLastDocTimeStamp 1722187612 [17:28:44]current date 1722187725 [17:28:44]FM_GetShiftState [17:28:44]SAM_PROTO_GetShiftState [17:28:44]wFMCommunicate request_size=4 [17:28:44]MH_SAM_APDU [17:28:44]CAPDU: 80 13 01 00 [17:28:44]Write to MH i2c: E2 08 00 25 0D 80 13 01 00 00 00 00 00 AF [17:28:44]Write i2c OK [17:28:44]MH_I2C_Read... [17:28:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:44]Read from MH i2c: E2 [17:28:44]MH_I2C_Read... [17:28:44]Read from MH i2c: E2 0E 00 [17:28:44]MH_I2C_Read... [17:28:44]Read from MH i2c: E2 0E 00 25 0D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 86 [17:28:44]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:28:44]wFMCommunicate OK [17:28:44]SAM_PROTO_GetShiftState done [17:28:44]FM_GetShiftState done [17:28:44]opened in 1722125364 [17:28:44]opened+sec_in_day 1722211764 [17:28:44]quantity*price = 100005 [17:28:44]sum+1 = 100006 [17:28:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 209 28.07.2024 17:28 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118540 ФПД: 91569027532238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T172845&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118540&fm=91569027532238&tin=02508201610067®Number=0000000000092660&sum=100000 [17:28:45]StoreToDocumentArchive [17:28:45]shift 433 fd 118540 [17:28:45]save to /storage/0433/doc_00118540 [17:28:45]save last doc name /storage/0433/doc_00118540 to /storage/kkm_last_doc_name [17:28:45]save OK [17:28:45]Clear old archive folders... [17:28:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:45]tlvbuf is 01E4A010 [17:28:45]SAM_PROTO_ClearQueue [17:28:45]wFMCommunicate request_size=4 [17:28:45]MH_SAM_APDU [17:28:45]CAPDU: 80 09 00 00 [17:28:45]Write to MH i2c: E2 08 00 32 0D 80 09 00 00 00 00 00 00 B1 [17:28:45]Write i2c OK [17:28:45]MH_I2C_Read... [17:28:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:45]Read from MH i2c: E2 [17:28:45]MH_I2C_Read... [17:28:45]Read from MH i2c: E2 03 00 [17:28:45]MH_I2C_Read... [17:28:45]Read from MH i2c: E2 03 00 32 0D 00 90 00 B3 [17:28:45]RAPDU: 90 00 [17:28:45]wFMCommunicate OK [17:28:45]SAM_PROTO_ClearQueue done [17:28:45]KKMCreateOFDPacket [17:28:45]OFDProtocolAddRootSTLVToBuf [17:28:45]FM_MakeSignedData [17:28:45]FM_MakeSignedData [17:28:45]SAM_PROTO_SignData [17:28:45]wFMCommunicate request_size=4 [17:28:45]MH_SAM_APDU [17:28:45]CAPDU: 80 0D 01 02 [17:28:45]Write to MH i2c: E2 08 00 33 0D 80 0D 01 02 00 00 00 00 B9 [17:28:45]Write i2c OK [17:28:45]MH_I2C_Read... [17:28:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:45]Read from MH i2c: E2 [17:28:45]MH_I2C_Read... [17:28:45]Read from MH i2c: E2 03 00 [17:28:45]MH_I2C_Read... [17:28:45]Read from MH i2c: E2 03 00 33 0D 00 90 00 B4 [17:28:45]RAPDU: 90 00 [17:28:45]wFMCommunicate OK [17:28:45]wFMCommunicate request_size=255 [17:28:45]MH_SAM_APDU [17:28: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 CD 7F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0C CF 01 00 35 04 06 00 53 [17:28:45]Write to MH i2c: E2 02 01 34 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 CD 7F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0C CF 01 00 35 04 06 00 53 00 00 D6 [17:28:45]Write i2c OK [17:28:45]MH_I2C_Read... [17:28:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:45]Read from MH i2c: E2 [17:28:45]MH_I2C_Read... [17:28:45]Read from MH i2c: E2 03 00 [17:28:45]MH_I2C_Read... [17:28:45]Read from MH i2c: E2 03 00 34 0D 00 90 00 B5 [17:28:45]RAPDU: 90 00 [17:28:45]wFMCommunicate OK [17:28:45]wFMCommunicate request_size=10 [17:28:45]MH_SAM_APDU [17:28:45]CAPDU: 80 0D 02 02 05 48 13 5B C5 CE [17:28:45]Write to MH i2c: E2 0D 00 35 0D 80 0D 02 02 05 00 48 13 5B C5 CE 00 00 0F [17:28:45]Write i2c OK [17:28:45]MH_I2C_Read... [17:28:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:45]Read from MH i2c: E2 [17:28:45]MH_I2C_Read... [17:28:45]Read from MH i2c: E2 03 00 [17:28:45]MH_I2C_Read... [17:28:45]Read from MH i2c: E2 03 00 35 0D 00 90 00 B6 [17:28:45]RAPDU: 90 00 [17:28:45]wFMCommunicate OK [17:28:45]wFMCommunicate request_size=4 [17:28:45]MH_SAM_APDU [17:28:45]CAPDU: 80 0D 03 02 [17:28:45]Write to MH i2c: E2 08 00 36 0D 80 0D 03 02 00 00 00 00 BE [17:28:45]Write i2c OK [17:28:45]MH_I2C_Read... [17:28:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:45]Read from MH i2c: E2 [17:28:45]MH_I2C_Read... [17:28:45]Read from MH i2c: E2 0B 00 [17:28:45]MH_I2C_Read... [17:28:45]Read from MH i2c: E2 0B 00 36 0D 00 5A 96 77 44 4A FF 7E 0E 90 00 3F [17:28:45]RAPDU: 5A 96 77 44 4A FF 7E 0E 90 00 [17:28:45]wFMCommunicate OK [17:28:45]SAM_PROTO_SignData done [17:28:45]FM_MakeSignedData done [17:28:45]CreateOFDProtocolMessage [17:28:45]wFMCommunicate request_size=4 [17:28:45]MH_SAM_APDU [17:28:45]CAPDU: 80 11 00 00 [17:28:45]Write to MH i2c: E2 08 00 37 0D 80 11 00 00 00 00 00 00 BE [17:28:45]Write i2c OK [17:28:45]MH_I2C_Read... [17:28:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:45]Read from MH i2c: E2 [17:28:45]MH_I2C_Read... [17:28:45]Read from MH i2c: E2 17 00 [17:28:45]MH_I2C_Read... [17:28:45]Read from MH i2c: E2 17 00 37 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 19 [17:28:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:28:45]wFMCommunicate OK [17:28:45]CreateOFDProtocolMessage done [17:28:45]OFDSenderStorePacket 118540 [17:28:45]StoreOFDPacket docnum=118540 [17:28:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2C 2B 07 01 FD F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 CD 7F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0C CF 01 00 35 04 06 00 53 48 13 5B C5 CE 5A 96 77 44 4A FF 7E 0E [17:28:45]CheckFolder [17:28:45]dirname=/storage/ofd_packets [17:28:45]CheckFolder done [17:28:45]ProducePacketName [17:28:45]name=ofd_packets/00118540 [17:28:45]NVStorageSaveData ofd_packets/00118540 [17:28:45]File name is /storage/ofd_packets/00118540 [17:28:45]Write 301 bytes [17:28:45]NVStorageSaveData done [17:28:45]OFDSenderStorePacket done [17:28:45]KKMCreateOFDPacket done [17:28:45]NVStorageSaveData kkm_last_timestamp [17:28:45]File name is /storage/kkm_last_timestamp [17:28:45]Write 4 bytes [17:28:45]NVStorageSaveData done [17:28:45]ExternCall_PrintAddStr [17:28:45]wPrintStart [17:28:45]Write to MH i2c: 01 00 00 38 0D 45 [17:28:45]Write i2c OK [17:28:45]MH_I2C_Read... [17:28:45]Read from MH i2c: 01 [17:28:45]MH_I2C_Read... [17:28:45]Read from MH i2c: 01 07 00 [17:28:45]MH_I2C_Read... [17:28:45]Read from MH i2c: 01 07 00 38 0D 00 00 00 00 00 FF 0F 5A [17:28:45]RasterBufferAndPrint [17:28:45]line Счет N : (1)949410 [17:28:45]line ИНН: 02508201610067 [17:28:45]line Контрольно-Кассовый Чек [17:28:45]line ПРОДАЖА [17:28:45]line ТРК (МРК, ГНК) : 41 [17:28:45]line Товар: 2710124130 [17:28:45]line Аи-92-К-4 [17:28:45]line 14.750 * 67.80 [17:28:45]line = 1000.05 [17:28:45]line НДС 12% НСП 1% [17:28:45]line > о реализуемом товаре [17:28:45]line ОКРУГЛЕНИЕ: -0.05 [17:28:45]line ИТОГО: 1000.00 [17:28:45]line Внесено: 1000.00 [17:28:45]line СДАЧА: 0.00 [17:28:45]line НСП 1% : 8.85 [17:28:45]line НДС 12% : 106.20 [17:28:45]line Наличными: 1000.00 [17:28:45]line Безнал.: 0.00 [17:28:45]line Место: АЗС № 134 "Партнер Нефть" [17:28:45]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:28:45]line СНО: Общий режим [17:28:45]line Чек 209 28.07.2024 17:28 [17:28:45]line Смена: 433 ФФД: 1.0 [17:28:45]line ЗНМ: 0300000044 [17:28:45]line РНМ: 0000000000092660 [17:28:45]line Версия ККМ: 001 [17:28:45]line ФМ: 0000000000874939 [17:28:45]line ФД: 118540 [17:28:45]line ФПД: 91569027532238 [17:28:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T172845&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118540&fm=91569027532238&tin=02508201610067®Number=0000000000092660&sum=100000 [17:28:46]OFD Sender: Processing packet 118540 [packets to send 86, broken 85] [17:28:46]ProducePacketName [17:28:46]name=ofd_packets/00118540 [17:28:46]OFD Sender: To server: pG, [17:28:46]CommunicateWithHost lk.salyk.kg:30040 [17:28:46]ConnectInit lk.salyk.kg [17:28:46]written 0, free lines is 4095 [17:28:46]Write to MH i2c: 01 00 00 62 0D 6F [17:28:46]Write i2c OK [17:28:46]MH_I2C_Read... [17:28:46]Read from MH i2c: 01 [17:28:46]MH_I2C_Read... [17:28:46]Read from MH i2c: 01 07 00 [17:28:46]MH_I2C_Read... [17:28:46]Read from MH i2c: 01 07 00 62 0D 00 00 00 00 00 E0 0C 62 [17:28:46]RasterBufferAndPrint [17:28:46]line [17:28:46]line [17:28:46]line [17:28:46]line [17:28:46]line [17:28:46]written 0, free lines is 3300 [17:28:46]MH_Cut [17:28:46]Write to MH i2c: D1 01 00 69 0D 01 48 [17:28:46]Write i2c OK [17:28:46]MH_I2C_Read... [17:28:46]Read from MH i2c: D1 [17:28:46]MH_I2C_Read... [17:28:46]Read from MH i2c: D1 01 00 [17:28:46]MH_I2C_Read... [17:28:46]Read from MH i2c: D1 01 00 69 0D 00 47 [17:28:46]Write to MH i2c: 01 00 00 6A 0D 77 [17:28:46]Write i2c OK [17:28:46]MH_I2C_Read... [17:28:47]*** Cut start [17:28:47]*** Partial cut [17:28:47]*** CUTSNS_PIN = 1 [17:28:47]*** CUTSNS_PIN = 0 [17:28:47]*** Brake cut motor [17:28:47]Read from MH i2c: 01 [17:28:47]MH_I2C_Read... [17:28:47]*** Stop cut motor [17:28:47]*** Cut end [17:28:47]Read from MH i2c: 01 07 00 [17:28:47]MH_I2C_Read... [17:28:47]Read from MH i2c: 01 07 00 6A 0D 00 00 00 00 00 FF 0F 8C [17:28:47]process_action close_receipt done [17:28:47]requested_data is exist [17:28:47]produce_requested_data [17:28:47]requested_item fm.sn is exist - process it [17:28:47]wFMCommunicate request_size=4 [17:28:47]MH_SAM_APDU [17:28:47]CAPDU: 80 11 00 00 [17:28:47]Write to MH i2c: E2 08 00 6B 0D 80 11 00 00 00 00 00 00 F2 [17:28:47]Write i2c OK [17:28:47]MH_I2C_Read... [17:28:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:47]Read from MH i2c: E2 [17:28:47]MH_I2C_Read... [17:28:47]Read from MH i2c: E2 17 00 [17:28:47]MH_I2C_Read... [17:28:47]Read from MH i2c: E2 17 00 6B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4D [17:28:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:28:47]wFMCommunicate OK [17:28:47]requested_item fd.num is exist - process it [17:28:47]SAM_PROTO_GetFieldsCounters [17:28:47]wFMCommunicate request_size=4 [17:28:47]MH_SAM_APDU [17:28:47]CAPDU: 80 13 00 00 [17:28:47]Write to MH i2c: E2 08 00 6C 0D 80 13 00 00 00 00 00 00 F5 [17:28:47]Write i2c OK [17:28:47]MH_I2C_Read... [17:28:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:48]Read from MH i2c: E2 [17:28:48]MH_I2C_Read... [17:28:48]Read from MH i2c: E2 62 00 [17:28:48]MH_I2C_Read... [17:28:48]Read from MH i2c: E2 62 00 6C 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0C CF 01 00 0E 04 04 00 B1 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 1D [17:28:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0C CF 01 00 0E 04 04 00 B1 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 [17:28:48]wFMCommunicate OK [17:28:48]SAM_PROTO_GetFieldsCounters done [17:28:48]requested_item shift.num is exist - process it [17:28:48]requested_item shift.opened is exist - process it [17:28:48]req_shift_opened [17:28:48]FM_GetShiftState [17:28:48]SAM_PROTO_GetShiftState [17:28:48]wFMCommunicate request_size=4 [17:28:48]MH_SAM_APDU [17:28:48]CAPDU: 80 13 01 00 [17:28:48]Write to MH i2c: E2 08 00 6D 0D 80 13 01 00 00 00 00 00 F7 [17:28:48]Write i2c OK [17:28:48]MH_I2C_Read... [17:28:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:48]Read from MH i2c: E2 [17:28:48]MH_I2C_Read... [17:28:48]Read from MH i2c: E2 0E 00 [17:28:48]MH_I2C_Read... [17:28:48]Read from MH i2c: E2 0E 00 6D 0D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 CE [17:28:48]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:28:48]wFMCommunicate OK [17:28:48]SAM_PROTO_GetShiftState done [17:28:48]FM_GetShiftState done [17:28:48]req_shift_opened done [17:28:48]requested_item shift.open_date is exist - process it [17:28:48]req_shift_open_date [17:28:48]req_shift_open_date done [17:28:48]produce_requested_data done [17:28:48]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118540,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [17:28:48]process_action_free close_receipt [17:28:48]json_value_free [17:28:48]json_value_free done [17:28:48]process_json_proto returns [17:28:48]Send response to host [17:28:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118540,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [17:28:48]free response buf [17:28:48]execute_script done [17:28:48]execute_script returns [17:28:48]free content buf [17:28:48]Sock 7.Close socket [17:28:48]Sock 7.Thread stoped [17:30:59]ConnectInit Can't connect to host [17:30:59]CommunicateWithHost connect error [17:30:59]CommunicateWithHost err = -1 [17:30:59]OFD Sender: Server communicate error [17:31:04]OFD Sender: Processing packet 118540 [packets to send 86, broken 85] [17:31:04]ProducePacketName [17:31:04]name=ofd_packets/00118540 [17:31:04]OFD Sender: To server: pG, [17:31:04]CommunicateWithHost lk.salyk.kg:30040 [17:31:04]ConnectInit lk.salyk.kg [17:31:04]Connected sock=7 [17:31:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2C 2B 07 01 FD F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 CD 7F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0C CF 01 00 35 04 06 00 53 48 13 5B C5 CE 5A 96 77 44 4A FF 7E 0E [17: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 39 33 39 4F 00 00 00 E5 84 47 00 82 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0C CF 01 00 F4 03 04 00 E7 2D A6 66 B6 04 01 00 00 95 24 A7 FC D7 86 B7 D6 [17:31:04]CommunicateWithHost err = 0 [17:31:04]CheckOFDResponse [17:31:04]1017 (14) - 77093643461234 [17:31:04]1041 (16) - 0000000000874939 [17:31:04]1040 (4) - 118540 [17:31:04]1012 (4) - 28.07.2024 11:39 [17:31:04]1206 (1) - 0 [17:31:04]OFD Sender: Remove packet 118540 [17:31:04]ProducePacketName [17:31:04]name=ofd_packets/00118540 [17:31:04]NVStorageDeleteData [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:29]OFD Sender: No OFD packet to send [17:31:34]OFD Sender: No OFD packet to send [17:31:39]OFD Sender: No OFD packet to send [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:54]OFD Sender: No OFD packet to send [17:31:59]OFD Sender: No OFD packet to send [17:32:04]OFD Sender: No OFD packet to send [17:32:09]OFD Sender: No OFD packet to send [17:32:14]OFD Sender: No OFD packet to send [17:32:19]OFD Sender: No OFD packet to send [17:32:24]OFD Sender: No OFD packet to send [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:25]OFD Sender: No OFD packet to send [17:33:30]OFD Sender: No OFD packet to send [17:33:35]OFD Sender: No OFD packet to send [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:50]OFD Sender: No OFD packet to send [17:33:55]OFD Sender: No OFD packet to send [17:34:00]OFD Sender: No OFD packet to send [17:34:05]OFD Sender: No OFD packet to send [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:20]OFD Sender: No OFD packet to send [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:35]OFD Sender: No OFD packet to send [17:34:40]OFD Sender: No OFD packet to send [17:34:45]OFD Sender: No OFD packet to send [17:34:50]OFD Sender: No OFD packet to send [17:34:55]OFD Sender: No OFD packet to send [17:35:00]OFD Sender: No OFD packet to send [17:35:05]OFD Sender: No OFD packet to send [17:35:10]OFD Sender: No OFD packet to send [17:35:15]OFD Sender: No OFD packet to send [17:35:20]OFD Sender: No OFD packet to send [17:35:25]OFD Sender: No OFD packet to send [17:35:30]OFD Sender: No OFD packet to send [17:35:35]OFD Sender: No OFD packet to send [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:05]OFD Sender: No OFD packet to send [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:20]OFD Sender: No OFD packet to send [17:36:25]OFD Sender: No OFD packet to send [17:36:30]OFD Sender: No OFD packet to send [17:36:35]OFD Sender: No OFD packet to send [17:36:40]OFD Sender: No OFD packet to send [17:36:45]OFD Sender: No OFD packet to send [17:36:50]OFD Sender: No OFD packet to send [17:36:55]OFD Sender: No OFD packet to send [17:37:00]OFD Sender: No OFD packet to send [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:29]accept exits with 9 [17:37:29]New connection [17:37:29]New thread 3067239780 created [17:37:29]Thread 3067383140 joined [17:37:29]Waiting for new connection... [17:37:29] Sock 9.Parse request [17:37:29]Sock 9.Check first char [17:37:29]Sock 9.First char is OK [17:37:29]request: POST /json_proto HTTP/1.0 [17:37:29]Method: POST [17:37:29]URL: /json_proto [17:37:29]Method is POST - this is cgi request [17:37:29]url: /json_proto [17:37:29]query_string will be loaded in cgi processing [17:37:29]execute_cgi json_proto POST (null) [17:37:29]execute_cgi path=json_proto method=POST [17:37:29]POST find Content-Length [17:37:29]Host: 172.17.45.7:8080 [17:37:29]Content-Length: 678 [17:37:29]Content-Type: application/json [17:37:29] [17:37:29]POST finish read [17:37:29]Found Content-Length = 678 [17:37:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "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:37:29]execute_script... [17:37:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "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:37:29]POST & json_proto [17:37:29]process_json_proto [17:37:29]json parsed OK: [17:37:29]protocol is kg_v1.0 [17:37:29]action value=close_receipt [17:37:29]process_action close_receipt [17:37:29]cmd_close_receipt [17:37:29]MH_GetDate [17:37:29]Write to MH i2c: F0 00 00 6E 0D 6A [17:37:29]Write i2c OK [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: F0 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: F0 09 00 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: F0 09 00 6E 0D 00 DB 81 A6 66 90 0F 3E 66 1E [17:37:29]GetLastDocTimeStamp 1722187725 [17:37:29]current date 1722188251 [17:37:29]FM_GetShiftState [17:37:29]SAM_PROTO_GetShiftState [17:37:29]wFMCommunicate request_size=4 [17:37:29]MH_SAM_APDU [17:37:29]CAPDU: 80 13 01 00 [17:37:29]Write to MH i2c: E2 08 00 6F 0D 80 13 01 00 00 00 00 00 F9 [17:37:29]Write i2c OK [17:37:29]MH_I2C_Read... [17:37:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:29]Read from MH i2c: E2 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: E2 0E 00 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: E2 0E 00 6F 0D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 D0 [17:37:29]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:37:29]wFMCommunicate OK [17:37:29]SAM_PROTO_GetShiftState done [17:37:29]FM_GetShiftState done [17:37:29]opened in 1722125364 [17:37:29]opened+sec_in_day 1722211764 [17:37:29]quantity*price = 80004 [17:37:29]sum+1 = 80005 [17:37:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 210 28.07.2024 17:37 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118541 ФПД: 267154209913219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T173731&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118541&fm=267154209913219&tin=02508201610067®Number=0000000000092660&sum=80000 [17:37:30]StoreToDocumentArchive [17:37:30]shift 433 fd 118541 [17:37:30]save to /storage/0433/doc_00118541 [17:37:30]save last doc name /storage/0433/doc_00118541 to /storage/kkm_last_doc_name [17:37:30]save OK [17:37:30]Clear old archive folders... [17:37:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:37:30]tlvbuf is 01E8F310 [17:37:30]SAM_PROTO_ClearQueue [17:37:30]wFMCommunicate request_size=4 [17:37:30]MH_SAM_APDU [17:37:30]CAPDU: 80 09 00 00 [17:37:30]Write to MH i2c: E2 08 00 7C 0D 80 09 00 00 00 00 00 00 FB [17:37:30]Write i2c OK [17:37:30]MH_I2C_Read... [17:37:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:30]Read from MH i2c: E2 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 03 00 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 03 00 7C 0D 00 90 00 FD [17:37:30]RAPDU: 90 00 [17:37:30]wFMCommunicate OK [17:37:30]SAM_PROTO_ClearQueue done [17:37:30]KKMCreateOFDPacket [17:37:30]OFDProtocolAddRootSTLVToBuf [17:37:30]FM_MakeSignedData [17:37:30]FM_MakeSignedData [17:37:30]SAM_PROTO_SignData [17:37:30]wFMCommunicate request_size=4 [17:37:30]MH_SAM_APDU [17:37:30]CAPDU: 80 0D 01 02 [17:37:30]Write to MH i2c: E2 08 00 7D 0D 80 0D 01 02 00 00 00 00 03 [17:37:30]Write i2c OK [17:37:30]MH_I2C_Read... [17:37:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:30]Read from MH i2c: E2 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 03 00 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 03 00 7D 0D 00 90 00 FE [17:37:30]RAPDU: 90 00 [17:37:30]wFMCommunicate OK [17:37:30]wFMCommunicate request_size=255 [17:37:30]MH_SAM_APDU [17:37:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 D2 00 00 00 F4 03 04 00 DB 81 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0D CF 01 00 35 04 06 00 F2 [17:37:30]Write to MH i2c: E2 02 01 7E 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 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 D2 00 00 00 F4 03 04 00 DB 81 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0D CF 01 00 35 04 06 00 F2 00 00 EF [17:37:30]Write i2c OK [17:37:30]MH_I2C_Read... [17:37:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:31]Read from MH i2c: E2 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: E2 03 00 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: E2 03 00 7E 0D 00 90 00 FF [17:37:31]RAPDU: 90 00 [17:37:31]wFMCommunicate OK [17:37:31]wFMCommunicate request_size=10 [17:37:31]MH_SAM_APDU [17:37:31]CAPDU: 80 0D 02 02 05 F9 AF C8 39 83 [17:37:31]Write to MH i2c: E2 0D 00 7F 0D 80 0D 02 02 05 00 F9 AF C8 39 83 00 00 3C [17:37:31]Write i2c OK [17:37:31]MH_I2C_Read... [17:37:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:31]Read from MH i2c: E2 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: E2 03 00 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: E2 03 00 7F 0D 00 90 00 00 [17:37:31]RAPDU: 90 00 [17:37:31]wFMCommunicate OK [17:37:31]wFMCommunicate request_size=4 [17:37:31]MH_SAM_APDU [17:37:31]CAPDU: 80 0D 03 02 [17:37:31]Write to MH i2c: E2 08 00 80 0D 80 0D 03 02 00 00 00 00 08 [17:37:31]Write i2c OK [17:37:31]MH_I2C_Read... [17:37:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:31]Read from MH i2c: E2 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: E2 0B 00 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: E2 0B 00 80 0D 00 DB 32 AE 54 CB F2 50 78 90 00 9D [17:37:31]RAPDU: DB 32 AE 54 CB F2 50 78 90 00 [17:37:31]wFMCommunicate OK [17:37:31]SAM_PROTO_SignData done [17:37:31]FM_MakeSignedData done [17:37:31]CreateOFDProtocolMessage [17:37:31]wFMCommunicate request_size=4 [17:37:31]MH_SAM_APDU [17:37:31]CAPDU: 80 11 00 00 [17:37:31]Write to MH i2c: E2 08 00 81 0D 80 11 00 00 00 00 00 00 08 [17:37:31]Write i2c OK [17:37:31]MH_I2C_Read... [17:37:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:31]Read from MH i2c: E2 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: E2 17 00 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: E2 17 00 81 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 63 [17:37:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:37:31]wFMCommunicate OK [17:37:31]CreateOFDProtocolMessage done [17:37:31]OFDSenderStorePacket 118541 [17:37:31]StoreOFDPacket docnum=118541 [17:37:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 3A 23 07 01 46 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 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 D2 00 00 00 F4 03 04 00 DB 81 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0D CF 01 00 35 04 06 00 F2 F9 AF C8 39 83 DB 32 AE 54 CB F2 50 78 [17:37:31]CheckFolder [17:37:31]dirname=/storage/ofd_packets [17:37:31]CheckFolder done [17:37:31]ProducePacketName [17:37:31]name=ofd_packets/00118541 [17:37:31]NVStorageSaveData ofd_packets/00118541 [17:37:31]File name is /storage/ofd_packets/00118541 [17:37:31]Write 301 bytes [17:37:31]NVStorageSaveData done [17:37:31]OFDSenderStorePacket done [17:37:31]KKMCreateOFDPacket done [17:37:31]NVStorageSaveData kkm_last_timestamp [17:37:31]File name is /storage/kkm_last_timestamp [17:37:31]Write 4 bytes [17:37:31]NVStorageSaveData done [17:37:31]ExternCall_PrintAddStr [17:37:31]wPrintStart [17:37:31]Write to MH i2c: 01 00 00 82 0D 8F [17:37:31]Write i2c OK [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: 01 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: 01 07 00 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: 01 07 00 82 0D 00 00 00 00 00 FF 0F A4 [17:37:31]RasterBufferAndPrint [17:37:31]line Счет N : (1)949411 [17:37:31]line ИНН: 02508201610067 [17:37:31]line Контрольно-Кассовый Чек [17:37:31]line ПРОДАЖА [17:37:31]line ТРК (МРК, ГНК) : 51 [17:37:31]line Товар: 2710124130 [17:37:31]line Аи-92-К-4 [17:37:31]line 11.800 * 67.80 [17:37:31]line = 800.04 [17:37:31]line НДС 12% НСП 1% [17:37:31]line > о реализуемом товаре [17:37:31]line ОКРУГЛЕНИЕ: -0.04 [17:37:31]line ИТОГО: 800.00 [17:37:31]line Внесено: 800.00 [17:37:31]line СДАЧА: 0.00 [17:37:31]line НСП 1% : 7.08 [17:37:31]line НДС 12% : 84.96 [17:37:31]line Наличными: 800.00 [17:37:31]line Безнал.: 0.00 [17:37:31]line Место: АЗС № 134 "Партнер Нефть" [17:37:31]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:37:31]line СНО: Общий режим [17:37:31]line Чек 210 28.07.2024 17:37 [17:37:31]line Смена: 433 ФФД: 1.0 [17:37:31]line ЗНМ: 0300000044 [17:37:31]line РНМ: 0000000000092660 [17:37:31]line Версия ККМ: 001 [17:37:31]line ФМ: 0000000000874939 [17:37:31]line ФД: 118541 [17:37:31]line ФПД: 267154209913219 [17:37:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T173731&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118541&fm=267154209913219&tin=02508201610067®Number=0000000000092660&sum=80000 [17:37:31]OFD Sender: Processing packet 118541 [packets to send 86, broken 85] [17:37:31]ProducePacketName [17:37:31]name=ofd_packets/00118541 [17:37:31]OFD Sender: To server: pG, [17:37:31]CommunicateWithHost lk.salyk.kg:30040 [17:37:31]ConnectInit lk.salyk.kg [17:37:31]written 0, free lines is 4095 [17:37:31]Connected sock=10 [17:37:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 3A 23 07 01 46 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 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 D2 00 00 00 F4 03 04 00 DB 81 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0D CF 01 00 35 04 06 00 F2 F9 AF C8 39 83 DB 32 AE 54 CB F2 50 78 [17:37:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 62 F9 47 00 17 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 39 33 39 10 04 04 00 0D CF 01 00 F4 03 04 00 6B 2F A6 66 B6 04 01 00 00 5C 5D 8F 41 DE E6 2E 16 [17:37:32]CommunicateWithHost err = 0 [17:37:32]CheckOFDResponse [17:37:32]1017 (14) - 77093643461234 [17:37:32]1041 (16) - 0000000000874939 [17:37:32]1040 (4) - 118541 [17:37:32]1012 (4) - 28.07.2024 11:45 [17:37:32]1206 (1) - 0 [17:37:32]OFD Sender: Remove packet 118541 [17:37:32]ProducePacketName [17:37:32]name=ofd_packets/00118541 [17:37:32]NVStorageDeleteData [17:37:32]Write to MH i2c: 01 00 00 AC 0D B9 [17:37:32]Write i2c OK [17:37:32]MH_I2C_Read... [17:37:32]Read from MH i2c: 01 [17:37:32]MH_I2C_Read... [17:37:32]Read from MH i2c: 01 07 00 [17:37:32]MH_I2C_Read... [17:37:32]Read from MH i2c: 01 07 00 AC 0D 00 00 00 00 00 D0 0C 9C [17:37:32]RasterBufferAndPrint [17:37:32]line [17:37:32]line [17:37:32]line [17:37:32]line [17:37:32]line [17:37:32]written 0, free lines is 3287 [17:37:32]MH_Cut [17:37:32]Write to MH i2c: D1 01 00 B3 0D 01 92 [17:37:32]Write i2c OK [17:37:32]MH_I2C_Read... [17:37:32]Read from MH i2c: D1 [17:37:32]MH_I2C_Read... [17:37:32]Read from MH i2c: D1 01 00 [17:37:32]MH_I2C_Read... [17:37:32]Read from MH i2c: D1 01 00 B3 0D 00 91 [17:37:32]Write to MH i2c: 01 00 00 B4 0D C1 [17:37:32]Write i2c OK [17:37:32]MH_I2C_Read... [17:37:32]OFD Sender: No OFD packet to send [17:37:32]*** Cut start [17:37:32]*** Partial cut [17:37:32]*** CUTSNS_PIN = 1 [17:37:32]*** CUTSNS_PIN = 0 [17:37:33]*** Brake cut motor [17:37:33]Read from MH i2c: 01 [17:37:33]MH_I2C_Read... [17:37:33]*** Stop cut motor [17:37:33]*** Cut end [17:37:33]Read from MH i2c: 01 07 00 [17:37:33]MH_I2C_Read... [17:37:33]Read from MH i2c: 01 07 00 B4 0D 00 00 00 00 00 FF 0F D6 [17:37:33]process_action close_receipt done [17:37:33]requested_data is exist [17:37:33]produce_requested_data [17:37:33]requested_item fm.sn is exist - process it [17:37:33]wFMCommunicate request_size=4 [17:37:33]MH_SAM_APDU [17:37:33]CAPDU: 80 11 00 00 [17:37:33]Write to MH i2c: E2 08 00 B5 0D 80 11 00 00 00 00 00 00 3C [17:37:33]Write i2c OK [17:37:33]MH_I2C_Read... [17:37:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:33]Read from MH i2c: E2 [17:37:33]MH_I2C_Read... [17:37:33]Read from MH i2c: E2 17 00 [17:37:33]MH_I2C_Read... [17:37:33]Read from MH i2c: E2 17 00 B5 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 97 [17:37:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:37:33]wFMCommunicate OK [17:37:33]requested_item fd.num is exist - process it [17:37:33]SAM_PROTO_GetFieldsCounters [17:37:33]wFMCommunicate request_size=4 [17:37:33]MH_SAM_APDU [17:37:33]CAPDU: 80 13 00 00 [17:37:33]Write to MH i2c: E2 08 00 B6 0D 80 13 00 00 00 00 00 00 3F [17:37:33]Write i2c OK [17:37:33]MH_I2C_Read... [17:37:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:33]Read from MH i2c: E2 [17:37:33]MH_I2C_Read... [17:37:33]Read from MH i2c: E2 62 00 [17:37:33]MH_I2C_Read... [17:37:33]Read from MH i2c: E2 62 00 B6 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0D CF 01 00 0E 04 04 00 B1 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 6B [17:37:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0D CF 01 00 0E 04 04 00 B1 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 [17:37:33]wFMCommunicate OK [17:37:33]SAM_PROTO_GetFieldsCounters done [17:37:33]requested_item shift.num is exist - process it [17:37:33]requested_item shift.opened is exist - process it [17:37:33]req_shift_opened [17:37:33]FM_GetShiftState [17:37:33]SAM_PROTO_GetShiftState [17:37:33]wFMCommunicate request_size=4 [17:37:33]MH_SAM_APDU [17:37:33]CAPDU: 80 13 01 00 [17:37:33]Write to MH i2c: E2 08 00 B7 0D 80 13 01 00 00 00 00 00 41 [17:37:33]Write i2c OK [17:37:33]MH_I2C_Read... [17:37:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:33]Read from MH i2c: E2 [17:37:33]MH_I2C_Read... [17:37:33]Read from MH i2c: E2 0E 00 [17:37:33]MH_I2C_Read... [17:37:33]Read from MH i2c: E2 0E 00 B7 0D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 18 [17:37:33]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:37:33]wFMCommunicate OK [17:37:33]SAM_PROTO_GetShiftState done [17:37:33]FM_GetShiftState done [17:37:33]req_shift_opened done [17:37:33]requested_item shift.open_date is exist - process it [17:37:33]req_shift_open_date [17:37:33]req_shift_open_date done [17:37:33]produce_requested_data done [17:37:33]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118541,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [17:37:33]process_action_free close_receipt [17:37:33]json_value_free [17:37:33]json_value_free done [17:37:33]process_json_proto returns [17:37:33]Send response to host [17:37:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118541,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [17:37:33]free response buf [17:37:33]execute_script done [17:37:33]execute_script returns [17:37:33]free content buf [17:37:33]Sock 9.Close socket [17:37:33]Sock 9.Thread stoped [17:37:37]OFD Sender: No OFD packet to send [17:37:42]OFD Sender: No OFD packet to send [17:37:47]OFD Sender: No OFD packet to send [17:37:52]OFD Sender: No OFD packet to send [17:37:57]OFD Sender: No OFD packet to send [17:38:02]OFD Sender: No OFD packet to send [17:38:07]OFD Sender: No OFD packet to send [17:38:12]OFD Sender: No OFD packet to send [17:38:14]accept exits with 7 [17:38:14]New connection [17:38:14]New thread 3067383140 created [17:38:14]Thread 3067239780 joined [17:38:14]Waiting for new connection... [17:38:14] Sock 7.Parse request [17:38:14]Sock 7.Check first char [17:38:14]Sock 7.First char is OK [17:38:14]request: POST /json_proto HTTP/1.0 [17:38:14]Method: POST [17:38:14]URL: /json_proto [17:38:14]Method is POST - this is cgi request [17:38:14]url: /json_proto [17:38:14]query_string will be loaded in cgi processing [17:38:14]execute_cgi json_proto POST (null) [17:38:14]execute_cgi path=json_proto method=POST [17:38:14]POST find Content-Length [17:38:14]Host: 172.17.45.7:8080 [17:38:14]Content-Length: 677 [17:38:14]Content-Type: application/json [17:38:14] [17:38:14]POST finish read [17:38:14]Found Content-Length = 677 [17:38:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.250, "sum" : 220.35, "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" ] } } [17:38:14]execute_script... [17:38:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.250, "sum" : 220.35, "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" ] } } [17:38:14]POST & json_proto [17:38:14]process_json_proto [17:38:14]json parsed OK: [17:38:14]protocol is kg_v1.0 [17:38:14]action value=close_receipt [17:38:14]process_action close_receipt [17:38:14]cmd_close_receipt [17:38:14]MH_GetDate [17:38:14]Write to MH i2c: F0 00 00 B8 0D B4 [17:38:14]Write i2c OK [17:38:14]MH_I2C_Read... [17:38:14]Read from MH i2c: F0 [17:38:14]MH_I2C_Read... [17:38:14]Read from MH i2c: F0 09 00 [17:38:14]MH_I2C_Read... [17:38:14]Read from MH i2c: F0 09 00 B8 0D 00 07 82 A6 66 90 0F 3E 66 95 [17:38:14]GetLastDocTimeStamp 1722188251 [17:38:14]current date 1722188295 [17:38:14]FM_GetShiftState [17:38:14]SAM_PROTO_GetShiftState [17:38:14]wFMCommunicate request_size=4 [17:38:14]MH_SAM_APDU [17:38:14]CAPDU: 80 13 01 00 [17:38:14]Write to MH i2c: E2 08 00 B9 0D 80 13 01 00 00 00 00 00 43 [17:38:14]Write i2c OK [17:38:14]MH_I2C_Read... [17:38:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:14]Read from MH i2c: E2 [17:38:14]MH_I2C_Read... [17:38:14]Read from MH i2c: E2 0E 00 [17:38:14]MH_I2C_Read... [17:38:14]Read from MH i2c: E2 0E 00 B9 0D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 1A [17:38:14]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:38:14]wFMCommunicate OK [17:38:14]SAM_PROTO_GetShiftState done [17:38:14]FM_GetShiftState done [17:38:14]opened in 1722125364 [17:38:14]opened+sec_in_day 1722211764 [17:38:14]quantity*price = 22035 [17:38:14]sum+1 = 22036 [17:38:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.40 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 211 28.07.2024 17:38 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118542 ФПД: 101542080956672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T173816&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118542&fm=101542080956672&tin=02508201610067®Number=0000000000092660&sum=22000 [17:38:15]StoreToDocumentArchive [17:38:15]shift 433 fd 118542 [17:38:15]save to /storage/0433/doc_00118542 [17:38:15]save last doc name /storage/0433/doc_00118542 to /storage/kkm_last_doc_name [17:38:15]save OK [17:38:15]Clear old archive folders... [17:38:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:38:15]tlvbuf is B6F43750 [17:38:15]SAM_PROTO_ClearQueue [17:38:15]wFMCommunicate request_size=4 [17:38:15]MH_SAM_APDU [17:38:15]CAPDU: 80 09 00 00 [17:38:15]Write to MH i2c: E2 08 00 C6 0D 80 09 00 00 00 00 00 00 45 [17:38:15]Write i2c OK [17:38:15]MH_I2C_Read... [17:38:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:15]Read from MH i2c: E2 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: E2 03 00 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: E2 03 00 C6 0D 00 90 00 47 [17:38:15]RAPDU: 90 00 [17:38:15]wFMCommunicate OK [17:38:15]SAM_PROTO_ClearQueue done [17:38:15]KKMCreateOFDPacket [17:38:15]OFDProtocolAddRootSTLVToBuf [17:38:15]FM_MakeSignedData [17:38:15]FM_MakeSignedData [17:38:15]SAM_PROTO_SignData [17:38:15]wFMCommunicate request_size=4 [17:38:15]MH_SAM_APDU [17:38:15]CAPDU: 80 0D 01 02 [17:38:15]Write to MH i2c: E2 08 00 C7 0D 80 0D 01 02 00 00 00 00 4D [17:38:15]Write i2c OK [17:38:15]MH_I2C_Read... [17:38:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:15]Read from MH i2c: E2 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: E2 03 00 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: E2 03 00 C7 0D 00 90 00 48 [17:38:15]RAPDU: 90 00 [17:38:15]wFMCommunicate OK [17:38:15]wFMCommunicate request_size=255 [17:38:15]MH_SAM_APDU [17:38:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 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 24 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 D3 00 00 00 F4 03 04 00 08 82 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0E CF 01 00 35 04 06 00 5C [17:38:15]Write to MH i2c: E2 02 01 C8 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 34 FF 03 08 00 03 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 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 24 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 D3 00 00 00 F4 03 04 00 08 82 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0E CF 01 00 35 04 06 00 5C 00 00 E8 [17:38:15]Write i2c OK [17:38:15]MH_I2C_Read... [17:38:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:15]Read from MH i2c: E2 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: E2 03 00 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: E2 03 00 C8 0D 00 90 00 49 [17:38:15]RAPDU: 90 00 [17:38:15]wFMCommunicate OK [17:38:15]wFMCommunicate request_size=10 [17:38:15]MH_SAM_APDU [17:38:15]CAPDU: 80 0D 02 02 05 5A 1B AA 49 00 [17:38:15]Write to MH i2c: E2 0D 00 C9 0D 80 0D 02 02 05 00 5A 1B AA 49 00 00 00 C2 [17:38:15]Write i2c OK [17:38:15]MH_I2C_Read... [17:38:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:16]Read from MH i2c: E2 [17:38:16]MH_I2C_Read... [17:38:16]Read from MH i2c: E2 03 00 [17:38:16]MH_I2C_Read... [17:38:16]Read from MH i2c: E2 03 00 C9 0D 00 90 00 4A [17:38:16]RAPDU: 90 00 [17:38:16]wFMCommunicate OK [17:38:16]wFMCommunicate request_size=4 [17:38:16]MH_SAM_APDU [17:38:16]CAPDU: 80 0D 03 02 [17:38:16]Write to MH i2c: E2 08 00 CA 0D 80 0D 03 02 00 00 00 00 52 [17:38:16]Write i2c OK [17:38:16]MH_I2C_Read... [17:38:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:16]Read from MH i2c: E2 [17:38:16]MH_I2C_Read... [17:38:16]Read from MH i2c: E2 0B 00 [17:38:16]MH_I2C_Read... [17:38:16]Read from MH i2c: E2 0B 00 CA 0D 00 3B 2C 14 F6 A1 26 43 35 90 00 03 [17:38:16]RAPDU: 3B 2C 14 F6 A1 26 43 35 90 00 [17:38:16]wFMCommunicate OK [17:38:16]SAM_PROTO_SignData done [17:38:16]FM_MakeSignedData done [17:38:16]CreateOFDProtocolMessage [17:38:16]wFMCommunicate request_size=4 [17:38:16]MH_SAM_APDU [17:38:16]CAPDU: 80 11 00 00 [17:38:16]Write to MH i2c: E2 08 00 CB 0D 80 11 00 00 00 00 00 00 52 [17:38:16]Write i2c OK [17:38:16]MH_I2C_Read... [17:38:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:16]Read from MH i2c: E2 [17:38:16]MH_I2C_Read... [17:38:16]Read from MH i2c: E2 17 00 [17:38:16]MH_I2C_Read... [17:38:16]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 39 33 39 90 00 AD [17:38:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:38:16]wFMCommunicate OK [17:38:16]CreateOFDProtocolMessage done [17:38:16]OFDSenderStorePacket 118542 [17:38:16]StoreOFDPacket docnum=118542 [17:38:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2B D0 07 01 10 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 34 FF 03 08 00 03 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 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 24 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 D3 00 00 00 F4 03 04 00 08 82 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0E CF 01 00 35 04 06 00 5C 5A 1B AA 49 00 3B 2C 14 F6 A1 26 43 35 [17:38:16]CheckFolder [17:38:16]dirname=/storage/ofd_packets [17:38:16]CheckFolder done [17:38:16]ProducePacketName [17:38:16]name=ofd_packets/00118542 [17:38:16]NVStorageSaveData ofd_packets/00118542 [17:38:16]File name is /storage/ofd_packets/00118542 [17:38:16]Write 301 bytes [17:38:16]NVStorageSaveData done [17:38:16]OFDSenderStorePacket done [17:38:16]KKMCreateOFDPacket done [17:38:16]NVStorageSaveData kkm_last_timestamp [17:38:16]File name is /storage/kkm_last_timestamp [17:38:16]Write 4 bytes [17:38:16]NVStorageSaveData done [17:38:16]ExternCall_PrintAddStr [17:38:16]wPrintStart [17:38:16]Write to MH i2c: 01 00 00 CC 0D D9 [17:38:16]Write i2c OK [17:38:16]MH_I2C_Read... [17:38:16]Read from MH i2c: 01 [17:38:16]MH_I2C_Read... [17:38:16]Read from MH i2c: 01 07 00 [17:38:16]MH_I2C_Read... [17:38:16]Read from MH i2c: 01 07 00 CC 0D 00 00 00 00 00 FF 0F EE [17:38:16]RasterBufferAndPrint [17:38:16]line Счет N : (1)949412 [17:38:16]line ИНН: 02508201610067 [17:38:16]line Контрольно-Кассовый Чек [17:38:16]line ПРОДАЖА [17:38:16]line ТРК (МРК, ГНК) : 31 [17:38:16]line Товар: 2710124130 [17:38:16]line Аи-92-К-4 [17:38:16]line 3.250 * 67.80 [17:38:16]line = 220.35 [17:38:16]line НДС 12% НСП 1% [17:38:16]line > о реализуемом товаре [17:38:16]line ОКРУГЛЕНИЕ: -0.35 [17:38:16]line ИТОГО: 220.00 [17:38:16]line Внесено: 220.00 [17:38:16]line СДАЧА: 0.00 [17:38:16]line НСП 1% : 1.95 [17:38:16]line НДС 12% : 23.40 [17:38:16]line Наличными: 220.00 [17:38:16]line Безнал.: 0.00 [17:38:16]line Место: АЗС № 134 "Партнер Нефть" [17:38:16]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:38:16]line СНО: Общий режим [17:38:16]line Чек 211 28.07.2024 17:38 [17:38:16]line Смена: 433 ФФД: 1.0 [17:38:16]line ЗНМ: 0300000044 [17:38:16]line РНМ: 0000000000092660 [17:38:16]line Версия ККМ: 001 [17:38:16]line ФМ: 0000000000874939 [17:38:16]line ФД: 118542 [17:38:16]line ФПД: 101542080956672 [17:38:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T173816&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118542&fm=101542080956672&tin=02508201610067®Number=0000000000092660&sum=22000 [17:38:16]OFD Sender: Processing packet 118542 [packets to send 86, broken 85] [17:38:16]ProducePacketName [17:38:16]name=ofd_packets/00118542 [17:38:16]OFD Sender: To server: pG, [17:38:16]CommunicateWithHost lk.salyk.kg:30040 [17:38:16]ConnectInit lk.salyk.kg [17:38:16]written 0, free lines is 4095 [17:38:16]Connected sock=10 [17:38:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2B D0 07 01 10 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 34 FF 03 08 00 03 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 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 24 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 D3 00 00 00 F4 03 04 00 08 82 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0E CF 01 00 35 04 06 00 5C 5A 1B AA 49 00 3B 2C 14 F6 A1 26 43 35 [17:38:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6D 6A 47 00 D2 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 39 33 39 10 04 04 00 0E CF 01 00 F4 03 04 00 97 2F A6 66 B6 04 01 00 00 7A 6D 72 10 19 7A 76 84 [17:38:16]CommunicateWithHost err = 0 [17:38:16]CheckOFDResponse [17:38:16]1017 (14) - 77093643461234 [17:38:16]1041 (16) - 0000000000874939 [17:38:16]1040 (4) - 118542 [17:38:16]1012 (4) - 28.07.2024 11:46 [17:38:16]1206 (1) - 0 [17:38:16]OFD Sender: Remove packet 118542 [17:38:16]ProducePacketName [17:38:16]name=ofd_packets/00118542 [17:38:16]NVStorageDeleteData [17:38:16]Write to MH i2c: 01 00 00 F6 0D 03 [17:38:16]Write i2c OK [17:38:16]MH_I2C_Read... [17:38:16]Read from MH i2c: 01 [17:38:16]MH_I2C_Read... [17:38:16]Read from MH i2c: 01 07 00 [17:38:16]MH_I2C_Read... [17:38:16]Read from MH i2c: 01 07 00 F6 0D 00 00 00 00 00 CF 0C E5 [17:38:16]RasterBufferAndPrint [17:38:16]line [17:38:16]line [17:38:16]line [17:38:16]line [17:38:16]line [17:38:16]written 0, free lines is 3286 [17:38:16]MH_Cut [17:38:16]Write to MH i2c: D1 01 00 FD 0D 01 DC [17:38:16]Write i2c OK [17:38:16]MH_I2C_Read... [17:38:16]Read from MH i2c: D1 [17:38:16]MH_I2C_Read... [17:38:16]Read from MH i2c: D1 01 00 [17:38:16]MH_I2C_Read... [17:38:16]Read from MH i2c: D1 01 00 FD 0D 00 DB [17:38:16]Write to MH i2c: 01 00 00 FE 0D 0B [17:38:16]Write i2c OK [17:38:16]MH_I2C_Read... [17:38:17]OFD Sender: No OFD packet to send [17:38:17]*** Cut start [17:38:17]*** Partial cut [17:38:17]*** CUTSNS_PIN = 1 [17:38:17]*** CUTSNS_PIN = 0 [17:38:17]*** Brake cut motor [17:38:18]Read from MH i2c: 01 [17:38:18]MH_I2C_Read... [17:38:18]*** Stop cut motor [17:38:18]*** Cut end [17:38:18]Read from MH i2c: 01 07 00 [17:38:18]MH_I2C_Read... [17:38:18]Read from MH i2c: 01 07 00 FE 0D 00 00 00 00 00 FF 0F 20 [17:38:18]process_action close_receipt done [17:38:18]requested_data is exist [17:38:18]produce_requested_data [17:38:18]requested_item fm.sn is exist - process it [17:38:18]wFMCommunicate request_size=4 [17:38:18]MH_SAM_APDU [17:38:18]CAPDU: 80 11 00 00 [17:38:18]Write to MH i2c: E2 08 00 FF 0D 80 11 00 00 00 00 00 00 86 [17:38:18]Write i2c OK [17:38:18]MH_I2C_Read... [17:38:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:18]Read from MH i2c: E2 [17:38:18]MH_I2C_Read... [17:38:18]Read from MH i2c: E2 17 00 [17:38:18]MH_I2C_Read... [17:38:18]Read from MH i2c: E2 17 00 FF 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E1 [17:38:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:38:18]wFMCommunicate OK [17:38:18]requested_item fd.num is exist - process it [17:38:18]SAM_PROTO_GetFieldsCounters [17:38:18]wFMCommunicate request_size=4 [17:38:18]MH_SAM_APDU [17:38:18]CAPDU: 80 13 00 00 [17:38:18]Write to MH i2c: E2 08 00 00 0E 80 13 00 00 00 00 00 00 8A [17:38:18]Write i2c OK [17:38:18]MH_I2C_Read... [17:38:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:18]Read from MH i2c: E2 [17:38:18]MH_I2C_Read... [17:38:18]Read from MH i2c: E2 62 00 [17:38:18]MH_I2C_Read... [17:38:18]Read from MH i2c: E2 62 00 00 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0E CF 01 00 0E 04 04 00 B1 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 BA [17:38:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0E CF 01 00 0E 04 04 00 B1 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 [17:38:18]wFMCommunicate OK [17:38:18]SAM_PROTO_GetFieldsCounters done [17:38:18]requested_item shift.num is exist - process it [17:38:18]requested_item shift.opened is exist - process it [17:38:18]req_shift_opened [17:38:18]FM_GetShiftState [17:38:18]SAM_PROTO_GetShiftState [17:38:18]wFMCommunicate request_size=4 [17:38:18]MH_SAM_APDU [17:38:18]CAPDU: 80 13 01 00 [17:38:18]Write to MH i2c: E2 08 00 01 0E 80 13 01 00 00 00 00 00 8C [17:38:18]Write i2c OK [17:38:18]MH_I2C_Read... [17:38:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:18]Read from MH i2c: E2 [17:38:18]MH_I2C_Read... [17:38:18]Read from MH i2c: E2 0E 00 [17:38:18]MH_I2C_Read... [17:38:18]Read from MH i2c: E2 0E 00 01 0E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 63 [17:38:18]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:38:18]wFMCommunicate OK [17:38:18]SAM_PROTO_GetShiftState done [17:38:18]FM_GetShiftState done [17:38:18]req_shift_opened done [17:38:18]requested_item shift.open_date is exist - process it [17:38:18]req_shift_open_date [17:38:18]req_shift_open_date done [17:38:18]produce_requested_data done [17:38:18]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118542,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [17:38:18]process_action_free close_receipt [17:38:18]json_value_free [17:38:18]json_value_free done [17:38:18]process_json_proto returns [17:38:18]Send response to host [17:38:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118542,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [17:38:18]free response buf [17:38:18]execute_script done [17:38:18]execute_script returns [17:38:18]free content buf [17:38:18]Sock 7.Close socket [17:38:18]Sock 7.Thread stoped [17:38:22]OFD Sender: No OFD packet to send [17:38:27]OFD Sender: No OFD packet to send [17:38:32]OFD Sender: No OFD packet to send [17:38:37]OFD Sender: No OFD packet to send [17:38:42]OFD Sender: No OFD packet to send [17:38:47]OFD Sender: No OFD packet to send [17:38:52]OFD Sender: No OFD packet to send [17:38:57]OFD Sender: No OFD packet to send [17:39:02]OFD Sender: No OFD packet to send [17:39:07]OFD Sender: No OFD packet to send [17:39:12]OFD Sender: No OFD packet to send [17:39:17]OFD Sender: No OFD packet to send [17:39:22]OFD Sender: No OFD packet to send [17:39:27]OFD Sender: No OFD packet to send [17:39:32]OFD Sender: No OFD packet to send [17:39:37]OFD Sender: No OFD packet to send [17:39:42]OFD Sender: No OFD packet to send [17:39:47]OFD Sender: No OFD packet to send [17:39:52]OFD Sender: No OFD packet to send [17:39:57]OFD Sender: No OFD packet to send [17:40:02]OFD Sender: No OFD packet to send [17:40:07]OFD Sender: No OFD packet to send [17:40:08]accept exits with 9 [17:40:08]New connection [17:40:08]New thread 3067239780 created [17:40:08]Thread 3067383140 joined [17:40:08]Waiting for new connection... [17:40:08] Sock 9.Parse request [17:40:08]Sock 9.Check first char [17:40:08]Sock 9.First char is OK [17:40:08]request: POST /json_proto HTTP/1.0 [17:40:08]Method: POST [17:40:08]URL: /json_proto [17:40:08]Method is POST - this is cgi request [17:40:08]url: /json_proto [17:40:08]query_string will be loaded in cgi processing [17:40:08]execute_cgi json_proto POST (null) [17:40:08]execute_cgi path=json_proto method=POST [17:40:08]POST find Content-Length [17:40:08]Host: 172.17.45.7:8080 [17:40:08]Content-Length: 682 [17:40:08]Content-Type: application/json [17:40:08] [17:40:08]POST finish read [17:40:08]Found Content-Length = 682 [17:40:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:08]execute_script... [17:40:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:08]POST & json_proto [17:40:08]process_json_proto [17:40:08]json parsed OK: [17:40:08]protocol is kg_v1.0 [17:40:08]action value=close_receipt [17:40:08]process_action close_receipt [17:40:08]cmd_close_receipt [17:40:08]MH_GetDate [17:40:08]Write to MH i2c: F0 00 00 02 0E FF [17:40:08]Write i2c OK [17:40:08]MH_I2C_Read... [17:40:08]Read from MH i2c: F0 [17:40:08]MH_I2C_Read... [17:40:08]Read from MH i2c: F0 09 00 [17:40:08]MH_I2C_Read... [17:40:08]Read from MH i2c: F0 09 00 02 0E 00 79 82 A6 66 90 0F 3E 66 52 [17:40:08]GetLastDocTimeStamp 1722188296 [17:40:08]current date 1722188409 [17:40:08]FM_GetShiftState [17:40:08]SAM_PROTO_GetShiftState [17:40:08]wFMCommunicate request_size=4 [17:40:08]MH_SAM_APDU [17:40:08]CAPDU: 80 13 01 00 [17:40:08]Write to MH i2c: E2 08 00 03 0E 80 13 01 00 00 00 00 00 8E [17:40:08]Write i2c OK [17:40:08]MH_I2C_Read... [17:40:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:08]Read from MH i2c: E2 [17:40:08]MH_I2C_Read... [17:40:08]Read from MH i2c: E2 0E 00 [17:40:08]MH_I2C_Read... [17:40:08]Read from MH i2c: E2 0E 00 03 0E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 65 [17:40:08]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:40:08]wFMCommunicate OK [17:40:08]SAM_PROTO_GetShiftState done [17:40:08]FM_GetShiftState done [17:40:08]opened in 1722125364 [17:40:08]opened+sec_in_day 1722211764 [17:40:08]quantity*price = 120055 [17:40:08]sum+1 = 120057 [17:40:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 212 28.07.2024 17:40 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118543 ФПД: 160651868901285 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T174009&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118543&fm=160651868901285&tin=02508201610067®Number=0000000000092660&sum=120000 [17:40:09]StoreToDocumentArchive [17:40:09]shift 433 fd 118543 [17:40:09]save to /storage/0433/doc_00118543 [17:40:09]save last doc name /storage/0433/doc_00118543 to /storage/kkm_last_doc_name [17:40:09]save OK [17:40:09]Clear old archive folders... [17:40:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:40:09]tlvbuf is 01E299C0 [17:40:09]SAM_PROTO_ClearQueue [17:40:09]wFMCommunicate request_size=4 [17:40:09]MH_SAM_APDU [17:40:09]CAPDU: 80 09 00 00 [17:40:09]Write to MH i2c: E2 08 00 10 0E 80 09 00 00 00 00 00 00 90 [17:40:09]Write i2c OK [17:40:09]MH_I2C_Read... [17:40:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:40:09]Read from MH i2c: E2 [17:40:09]MH_I2C_Read... [17:40:09]Read from MH i2c: E2 03 00 [17:40:09]MH_I2C_Read... [17:40:09]Read from MH i2c: E2 03 00 10 0E 00 90 00 92 [17:40:09]RAPDU: 90 00 [17:40:09]wFMCommunicate OK [17:40:09]SAM_PROTO_ClearQueue done [17:40:09]KKMCreateOFDPacket [17:40:09]OFDProtocolAddRootSTLVToBuf [17:40:09]FM_MakeSignedData [17:40:09]FM_MakeSignedData [17:40:09]SAM_PROTO_SignData [17:40:09]wFMCommunicate request_size=4 [17:40:09]MH_SAM_APDU [17:40:09]CAPDU: 80 0D 01 02 [17:40:09]Write to MH i2c: E2 08 00 11 0E 80 0D 01 02 00 00 00 00 98 [17:40:09]Write i2c OK [17:40:09]MH_I2C_Read... [17:40:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:40:09]Read from MH i2c: E2 [17:40:09]MH_I2C_Read... [17:40:09]Read from MH i2c: E2 03 00 [17:40:09]MH_I2C_Read... [17:40:09]Read from MH i2c: E2 03 00 11 0E 00 90 00 93 [17:40:09]RAPDU: 90 00 [17:40:09]wFMCommunicate OK [17:40:09]wFMCommunicate request_size=255 [17:40:09]MH_SAM_APDU [17:40:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 79 82 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0F CF 01 00 35 04 06 00 92 [17:40:09]Write to MH i2c: E2 02 01 12 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 79 82 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0F CF 01 00 35 04 06 00 92 00 00 52 [17:40:09]Write i2c OK [17:40:09]MH_I2C_Read... [17:40:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:09]Read from MH i2c: E2 [17:40:09]MH_I2C_Read... [17:40:09]Read from MH i2c: E2 03 00 [17:40:09]MH_I2C_Read... [17:40:09]Read from MH i2c: E2 03 00 12 0E 00 90 00 94 [17:40:09]RAPDU: 90 00 [17:40:09]wFMCommunicate OK [17:40:09]wFMCommunicate request_size=10 [17:40:09]MH_SAM_APDU [17:40:09]CAPDU: 80 0D 02 02 05 1C AD 94 0F A5 [17:40:09]Write to MH i2c: E2 0D 00 13 0E 80 0D 02 02 05 00 1C AD 94 0F A5 00 00 B6 [17:40:09]Write i2c OK [17:40:09]MH_I2C_Read... [17:40:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:09]Read from MH i2c: E2 [17:40:09]MH_I2C_Read... [17:40:09]Read from MH i2c: E2 03 00 [17:40:09]MH_I2C_Read... [17:40:09]Read from MH i2c: E2 03 00 13 0E 00 90 00 95 [17:40:09]RAPDU: 90 00 [17:40:09]wFMCommunicate OK [17:40:09]wFMCommunicate request_size=4 [17:40:09]MH_SAM_APDU [17:40:09]CAPDU: 80 0D 03 02 [17:40:09]Write to MH i2c: E2 08 00 14 0E 80 0D 03 02 00 00 00 00 9D [17:40:09]Write i2c OK [17:40:09]MH_I2C_Read... [17:40:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:40:09]Read from MH i2c: E2 [17:40:09]MH_I2C_Read... [17:40:09]Read from MH i2c: E2 0B 00 [17:40:09]MH_I2C_Read... [17:40:09]Read from MH i2c: E2 0B 00 14 0E 00 A0 A9 8C 86 AE 7A 0C 6B 90 00 98 [17:40:09]RAPDU: A0 A9 8C 86 AE 7A 0C 6B 90 00 [17:40:09]wFMCommunicate OK [17:40:09]SAM_PROTO_SignData done [17:40:09]FM_MakeSignedData done [17:40:09]CreateOFDProtocolMessage [17:40:09]wFMCommunicate request_size=4 [17:40:09]MH_SAM_APDU [17:40:09]CAPDU: 80 11 00 00 [17:40:09]Write to MH i2c: E2 08 00 15 0E 80 11 00 00 00 00 00 00 9D [17:40:09]Write i2c OK [17:40:09]MH_I2C_Read... [17:40:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:09]Read from MH i2c: E2 [17:40:09]MH_I2C_Read... [17:40:09]Read from MH i2c: E2 17 00 [17:40:09]MH_I2C_Read... [17:40:09]Read from MH i2c: E2 17 00 15 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F8 [17:40:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:40:09]wFMCommunicate OK [17:40:09]CreateOFDProtocolMessage done [17:40:09]OFDSenderStorePacket 118543 [17:40:09]StoreOFDPacket docnum=118543 [17:40:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7C 69 07 01 EF 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 79 82 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0F CF 01 00 35 04 06 00 92 1C AD 94 0F A5 A0 A9 8C 86 AE 7A 0C 6B [17:40:09]CheckFolder [17:40:09]dirname=/storage/ofd_packets [17:40:09]CheckFolder done [17:40:09]ProducePacketName [17:40:09]name=ofd_packets/00118543 [17:40:09]NVStorageSaveData ofd_packets/00118543 [17:40:09]File name is /storage/ofd_packets/00118543 [17:40:09]Write 301 bytes [17:40:09]NVStorageSaveData done [17:40:09]OFDSenderStorePacket done [17:40:09]KKMCreateOFDPacket done [17:40:09]NVStorageSaveData kkm_last_timestamp [17:40:09]File name is /storage/kkm_last_timestamp [17:40:09]Write 4 bytes [17:40:09]NVStorageSaveData done [17:40:09]ExternCall_PrintAddStr [17:40:09]wPrintStart [17:40:09]Write to MH i2c: 01 00 00 16 0E 24 [17:40:09]Write i2c OK [17:40:09]MH_I2C_Read... [17:40:09]Read from MH i2c: 01 [17:40:09]MH_I2C_Read... [17:40:09]Read from MH i2c: 01 07 00 [17:40:09]MH_I2C_Read... [17:40:09]Read from MH i2c: 01 07 00 16 0E 00 00 00 00 00 FF 0F 39 [17:40:09]RasterBufferAndPrint [17:40:09]line Счет N : (1)949414 [17:40:09]line ИНН: 02508201610067 [17:40:09]line Контрольно-Кассовый Чек [17:40:09]line ПРОДАЖА [17:40:09]line ТРК (МРК, ГНК) : 63 [17:40:09]line Товар: 2710124500 [17:40:09]line Аи-95-К-3 [17:40:09]line 16.180 * 74.20 [17:40:09]line = 1200.56 [17:40:09]line НДС 12% НСП 1% [17:40:09]line > о реализуемом товаре [17:40:09]line ОКРУГЛЕНИЕ: -0.56 [17:40:09]line ИТОГО: 1200.00 [17:40:09]line Внесено: 1200.00 [17:40:09]line СДАЧА: 0.00 [17:40:09]line НСП 1% : 10.62 [17:40:09]line НДС 12% : 127.49 [17:40:09]line Наличными: 1200.00 [17:40:09]line Безнал.: 0.00 [17:40:09]line Место: АЗС № 134 "Партнер Нефть" [17:40:09]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:40:09]line СНО: Общий режим [17:40:09]line Чек 212 28.07.2024 17:40 [17:40:09]line Смена: 433 ФФД: 1.0 [17:40:09]line ЗНМ: 0300000044 [17:40:09]line РНМ: 0000000000092660 [17:40:09]line Версия ККМ: 001 [17:40:09]line ФМ: 0000000000874939 [17:40:09]line ФД: 118543 [17:40:09]line ФПД: 160651868901285 [17:40:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T174009&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118543&fm=160651868901285&tin=02508201610067®Number=0000000000092660&sum=120000 [17:40:10]OFD Sender: Processing packet 118543 [packets to send 86, broken 85] [17:40:10]ProducePacketName [17:40:10]name=ofd_packets/00118543 [17:40:10]OFD Sender: To server: pG, [17:40:10]CommunicateWithHost lk.salyk.kg:30040 [17:40:10]ConnectInit lk.salyk.kg [17:40:10]written 0, free lines is 4095 [17:40:10]Connected sock=10 [17:40:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7C 69 07 01 EF 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 79 82 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0F CF 01 00 35 04 06 00 92 1C AD 94 0F A5 A0 A9 8C 86 AE 7A 0C 6B [17:40:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 2D C1 47 00 48 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 39 33 39 10 04 04 00 0F CF 01 00 F4 03 04 00 09 30 A6 66 B6 04 01 00 00 9A 86 21 E3 E5 27 B5 27 [17:40:10]CommunicateWithHost err = 0 [17:40:10]CheckOFDResponse [17:40:10]1017 (14) - 77093643461234 [17:40:10]1041 (16) - 0000000000874939 [17:40:10]1040 (4) - 118543 [17:40:10]1012 (4) - 28.07.2024 11:48 [17:40:10]1206 (1) - 0 [17:40:10]OFD Sender: Remove packet 118543 [17:40:10]ProducePacketName [17:40:10]name=ofd_packets/00118543 [17:40:10]NVStorageDeleteData [17:40:10]Write to MH i2c: 01 00 00 40 0E 4E [17:40:10]Write i2c OK [17:40:10]MH_I2C_Read... [17:40:10]Read from MH i2c: 01 [17:40:10]MH_I2C_Read... [17:40:10]Read from MH i2c: 01 07 00 [17:40:10]MH_I2C_Read... [17:40:10]Read from MH i2c: 01 07 00 40 0E 00 00 00 00 00 D7 0C 38 [17:40:10]RasterBufferAndPrint [17:40:10]line [17:40:10]line [17:40:10]line [17:40:10]line [17:40:10]line [17:40:10]written 0, free lines is 3295 [17:40:10]MH_Cut [17:40:10]Write to MH i2c: D1 01 00 47 0E 01 27 [17:40:10]Write i2c OK [17:40:10]MH_I2C_Read... [17:40:10]Read from MH i2c: D1 [17:40:10]MH_I2C_Read... [17:40:10]Read from MH i2c: D1 01 00 [17:40:10]MH_I2C_Read... [17:40:10]Read from MH i2c: D1 01 00 47 0E 00 26 [17:40:10]Write to MH i2c: 01 00 00 48 0E 56 [17:40:10]Write i2c OK [17:40:10]MH_I2C_Read... [17:40:10]OFD Sender: No OFD packet to send [17:40:11]*** Cut start [17:40:11]*** Partial cut [17:40:11]*** CUTSNS_PIN = 1 [17:40:11]*** CUTSNS_PIN = 0 [17:40:11]*** Brake cut motor [17:40:11]Read from MH i2c: 01 [17:40:11]MH_I2C_Read... [17:40:11]*** Stop cut motor [17:40:11]*** Cut end [17:40:11]Read from MH i2c: 01 07 00 [17:40:11]MH_I2C_Read... [17:40:11]Read from MH i2c: 01 07 00 48 0E 00 00 00 00 00 FF 0F 6B [17:40:11]process_action close_receipt done [17:40:11]requested_data is exist [17:40:11]produce_requested_data [17:40:11]requested_item fm.sn is exist - process it [17:40:11]wFMCommunicate request_size=4 [17:40:11]MH_SAM_APDU [17:40:11]CAPDU: 80 11 00 00 [17:40:11]Write to MH i2c: E2 08 00 49 0E 80 11 00 00 00 00 00 00 D1 [17:40:11]Write i2c OK [17:40:11]MH_I2C_Read... [17:40:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:11]Read from MH i2c: E2 [17:40:11]MH_I2C_Read... [17:40:11]Read from MH i2c: E2 17 00 [17:40:11]MH_I2C_Read... [17:40:11]Read from MH i2c: E2 17 00 49 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2C [17:40:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:40:11]wFMCommunicate OK [17:40:11]requested_item fd.num is exist - process it [17:40:11]SAM_PROTO_GetFieldsCounters [17:40:11]wFMCommunicate request_size=4 [17:40:11]MH_SAM_APDU [17:40:11]CAPDU: 80 13 00 00 [17:40:11]Write to MH i2c: E2 08 00 4A 0E 80 13 00 00 00 00 00 00 D4 [17:40:11]Write i2c OK [17:40:11]MH_I2C_Read... [17:40:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:12]Read from MH i2c: E2 [17:40:12]MH_I2C_Read... [17:40:12]Read from MH i2c: E2 62 00 [17:40:12]MH_I2C_Read... [17:40:12]Read from MH i2c: E2 62 00 4A 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0F CF 01 00 0E 04 04 00 B1 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 08 [17:40:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0F CF 01 00 0E 04 04 00 B1 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 [17:40:12]wFMCommunicate OK [17:40:12]SAM_PROTO_GetFieldsCounters done [17:40:12]requested_item shift.num is exist - process it [17:40:12]requested_item shift.opened is exist - process it [17:40:12]req_shift_opened [17:40:12]FM_GetShiftState [17:40:12]SAM_PROTO_GetShiftState [17:40:12]wFMCommunicate request_size=4 [17:40:12]MH_SAM_APDU [17:40:12]CAPDU: 80 13 01 00 [17:40:12]Write to MH i2c: E2 08 00 4B 0E 80 13 01 00 00 00 00 00 D6 [17:40:12]Write i2c OK [17:40:12]MH_I2C_Read... [17:40:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:12]Read from MH i2c: E2 [17:40:12]MH_I2C_Read... [17:40:12]Read from MH i2c: E2 0E 00 [17:40:12]MH_I2C_Read... [17:40:12]Read from MH i2c: E2 0E 00 4B 0E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 AD [17:40:12]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:40:12]wFMCommunicate OK [17:40:12]SAM_PROTO_GetShiftState done [17:40:12]FM_GetShiftState done [17:40:12]req_shift_opened done [17:40:12]requested_item shift.open_date is exist - process it [17:40:12]req_shift_open_date [17:40:12]req_shift_open_date done [17:40:12]produce_requested_data done [17:40:12]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118543,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [17:40:12]process_action_free close_receipt [17:40:12]json_value_free [17:40:12]json_value_free done [17:40:12]process_json_proto returns [17:40:12]Send response to host [17:40:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118543,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [17:40:12]free response buf [17:40:12]execute_script done [17:40:12]execute_script returns [17:40:12]free content buf [17:40:12]Sock 9.Close socket [17:40:12]Sock 9.Thread stoped [17:40:12]accept exits with 7 [17:40:12]New connection [17:40:12]New thread 3067383140 created [17:40:12]Thread 3067239780 joined [17:40:12]Waiting for new connection... [17:40:12] Sock 7.Parse request [17:40:12]Sock 7.Check first char [17:40:12]Sock 7.First char is OK [17:40:12]request: POST /json_proto HTTP/1.0 [17:40:12]Method: POST [17:40:12]URL: /json_proto [17:40:12]Method is POST - this is cgi request [17:40:12]url: /json_proto [17:40:12]query_string will be loaded in cgi processing [17:40:12]execute_cgi json_proto POST (null) [17:40:12]execute_cgi path=json_proto method=POST [17:40:12]POST find Content-Length [17:40:12]Host: 172.17.45.7:8080 [17:40:12]Content-Length: 822 [17:40:12]Content-Type: application/json [17:40:12] [17:40:12]POST finish read [17:40:12]Found Content-Length = 822 [17:40:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 24.810, "sum" : 1840.90, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1840.00, "payments": [ { "type": 1, "sum" : 1840.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:12]execute_script... [17:40:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 24.810, "sum" : 1840.90, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1840.00, "payments": [ { "type": 1, "sum" : 1840.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:12]POST & json_proto [17:40:12]process_json_proto [17:40:12]json parsed OK: [17:40:12]protocol is kg_v1.0 [17:40:12]action value=close_receipt [17:40:12]process_action close_receipt [17:40:12]cmd_close_receipt [17:40:12]MH_GetDate [17:40:12]Write to MH i2c: F0 00 00 4C 0E 49 [17:40:12]Write i2c OK [17:40:12]MH_I2C_Read... [17:40:12]Read from MH i2c: F0 [17:40:12]MH_I2C_Read... [17:40:12]Read from MH i2c: F0 09 00 [17:40:12]MH_I2C_Read... [17:40:12]Read from MH i2c: F0 09 00 4C 0E 00 7E 82 A6 66 90 0F 3E 66 A1 [17:40:12]GetLastDocTimeStamp 1722188409 [17:40:12]current date 1722188414 [17:40:12]FM_GetShiftState [17:40:12]SAM_PROTO_GetShiftState [17:40:12]wFMCommunicate request_size=4 [17:40:12]MH_SAM_APDU [17:40:12]CAPDU: 80 13 01 00 [17:40:12]Write to MH i2c: E2 08 00 4D 0E 80 13 01 00 00 00 00 00 D8 [17:40:12]Write i2c OK [17:40:12]MH_I2C_Read... [17:40:12]Read from MH i2c: E2 [17:40:12]MH_I2C_Read... [17:40:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:12]Read from MH i2c: E2 0E 00 [17:40:12]MH_I2C_Read... [17:40:12]Read from MH i2c: E2 0E 00 4D 0E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 AF [17:40:12]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:40:12]wFMCommunicate OK [17:40:12]SAM_PROTO_GetShiftState done [17:40:12]FM_GetShiftState done [17:40:12]opened in 1722125364 [17:40:12]opened+sec_in_day 1722211764 [17:40:12]quantity*price = 184090 [17:40:12]sum+1 = 184091 [17:40:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.90 ИТОГО: 1840.00 НСП 1% : 16.29 НДС 12% : 195.49 Наличными: 0.00 Безнал.: 1840.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 213 28.07.2024 17:40 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118544 ФПД: 128624617952243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T174014&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118544&fm=128624617952243&tin=02508201610067®Number=0000000000092660&sum=184000 [17:40:13]StoreToDocumentArchive [17:40:13]shift 433 fd 118544 [17:40:13]save to /storage/0433/doc_00118544 [17:40:13]save last doc name /storage/0433/doc_00118544 to /storage/kkm_last_doc_name [17:40:13]save OK [17:40:13]Clear old archive folders... [17:40:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:40:13]tlvbuf is 01E621D0 [17:40:13]SAM_PROTO_ClearQueue [17:40:13]wFMCommunicate request_size=4 [17:40:13]MH_SAM_APDU [17:40:13]CAPDU: 80 09 00 00 [17:40:13]Write to MH i2c: E2 08 00 5A 0E 80 09 00 00 00 00 00 00 DA [17:40:13]Write i2c OK [17:40:13]MH_I2C_Read... [17:40:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:40:13]Read from MH i2c: E2 [17:40:13]MH_I2C_Read... [17:40:13]Read from MH i2c: E2 03 00 [17:40:13]MH_I2C_Read... [17:40:13]Read from MH i2c: E2 03 00 5A 0E 00 90 00 DC [17:40:13]RAPDU: 90 00 [17:40:13]wFMCommunicate OK [17:40:13]SAM_PROTO_ClearQueue done [17:40:13]KKMCreateOFDPacket [17:40:13]OFDProtocolAddRootSTLVToBuf [17:40:13]FM_MakeSignedData [17:40:13]FM_MakeSignedData [17:40:13]SAM_PROTO_SignData [17:40:13]wFMCommunicate request_size=4 [17:40:13]MH_SAM_APDU [17:40:13]CAPDU: 80 0D 01 02 [17:40:13]Write to MH i2c: E2 08 00 5B 0E 80 0D 01 02 00 00 00 00 E2 [17:40:13]Write i2c OK [17:40:13]MH_I2C_Read... [17:40:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:40:13]Read from MH i2c: E2 [17:40:13]MH_I2C_Read... [17:40:13]Read from MH i2c: E2 03 00 [17:40:13]MH_I2C_Read... [17:40:13]Read from MH i2c: E2 03 00 5B 0E 00 90 00 DD [17:40:13]RAPDU: 90 00 [17:40:13]wFMCommunicate OK [17:40:13]wFMCommunicate request_size=255 [17:40:13]MH_SAM_APDU [17:40:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EA 60 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1A CF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 CE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 4C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 CE 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 7E 82 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 10 CF 01 00 35 04 06 00 74 [17:40:13]Write to MH i2c: E2 02 01 5C 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EA 60 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1A CF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 CE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 4C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 CE 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 7E 82 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 10 CF 01 00 35 04 06 00 74 00 00 54 [17:40:13]Write i2c OK [17:40:13]MH_I2C_Read... [17:40:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:14]Read from MH i2c: E2 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 03 00 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 03 00 5C 0E 00 90 00 DE [17:40:14]RAPDU: 90 00 [17:40:14]wFMCommunicate OK [17:40:14]wFMCommunicate request_size=10 [17:40:14]MH_SAM_APDU [17:40:14]CAPDU: 80 0D 02 02 05 FB C0 A9 93 F3 [17:40:14]Write to MH i2c: E2 0D 00 5D 0E 80 0D 02 02 05 00 FB C0 A9 93 F3 00 00 D9 [17:40:14]Write i2c OK [17:40:14]MH_I2C_Read... [17:40:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:14]Read from MH i2c: E2 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 03 00 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 03 00 5D 0E 00 90 00 DF [17:40:14]RAPDU: 90 00 [17:40:14]wFMCommunicate OK [17:40:14]wFMCommunicate request_size=4 [17:40:14]MH_SAM_APDU [17:40:14]CAPDU: 80 0D 03 02 [17:40:14]Write to MH i2c: E2 08 00 5E 0E 80 0D 03 02 00 00 00 00 E7 [17:40:14]Write i2c OK [17:40:14]MH_I2C_Read... [17:40:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:40:14]Read from MH i2c: E2 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 0B 00 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 0B 00 5E 0E 00 32 95 BB C9 95 B6 C5 6C 90 00 AF [17:40:14]RAPDU: 32 95 BB C9 95 B6 C5 6C 90 00 [17:40:14]wFMCommunicate OK [17:40:14]SAM_PROTO_SignData done [17:40:14]FM_MakeSignedData done [17:40:14]CreateOFDProtocolMessage [17:40:14]wFMCommunicate request_size=4 [17:40:14]MH_SAM_APDU [17:40:14]CAPDU: 80 11 00 00 [17:40:14]Write to MH i2c: E2 08 00 5F 0E 80 11 00 00 00 00 00 00 E7 [17:40:14]Write i2c OK [17:40:14]MH_I2C_Read... [17:40:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:14]Read from MH i2c: E2 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 17 00 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 17 00 5F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 42 [17:40:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:40:14]wFMCommunicate OK [17:40:14]CreateOFDProtocolMessage done [17:40:14]OFDSenderStorePacket 118544 [17:40:14]StoreOFDPacket docnum=118544 [17:40:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 21 1A 07 01 4B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EA 60 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1A CF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 CE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 4C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 CE 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 7E 82 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 10 CF 01 00 35 04 06 00 74 FB C0 A9 93 F3 32 95 BB C9 95 B6 C5 6C [17:40:14]CheckFolder [17:40:14]dirname=/storage/ofd_packets [17:40:14]CheckFolder done [17:40:14]ProducePacketName [17:40:14]name=ofd_packets/00118544 [17:40:14]NVStorageSaveData ofd_packets/00118544 [17:40:14]File name is /storage/ofd_packets/00118544 [17:40:14]Write 301 bytes [17:40:14]NVStorageSaveData done [17:40:14]OFDSenderStorePacket done [17:40:14]KKMCreateOFDPacket done [17:40:14]NVStorageSaveData kkm_last_timestamp [17:40:14]File name is /storage/kkm_last_timestamp [17:40:14]Write 4 bytes [17:40:14]NVStorageSaveData done [17:40:14]ExternCall_PrintAddStr [17:40:14]wPrintStart [17:40:14]Write to MH i2c: 01 00 00 60 0E 6E [17:40:14]Write i2c OK [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: 01 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: 01 07 00 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: 01 07 00 60 0E 00 00 00 00 00 FF 0F 83 [17:40:14]RasterBufferAndPrint [17:40:14]line Счет N : (1)949413 [17:40:14]line ИНН: 02508201610067 [17:40:14]line Контрольно-Кассовый Чек [17:40:14]line ПРОДАЖА [17:40:14]line ТРК (МРК, ГНК) : 43 [17:40:14]line Товар: 2710124500 [17:40:14]line Аи-95-К-3 [17:40:14]line 24.810 * 74.20 [17:40:14]line = 1840.90 [17:40:14]line НДС 12% НСП 1% [17:40:14]line > о реализуемом товаре [17:40:14]line ОКРУГЛЕНИЕ: -0.90 [17:40:14]line ИТОГО: 1840.00 [17:40:14]line НСП 1% : 16.29 [17:40:14]line НДС 12% : 195.49 [17:40:14]line Наличными: 0.00 [17:40:14]line Безнал.: 1840.00 [17:40:14]line Место: АЗС № 134 "Партнер Нефть" [17:40:14]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:40:14]line СНО: Общий режим [17:40:14]line Чек 213 28.07.2024 17:40 [17:40:14]line Смена: 433 ФФД: 1.0 [17:40:14]line ЗНМ: 0300000044 [17:40:14]line РНМ: 0000000000092660 [17:40:14]line Версия ККМ: 001 [17:40:14]line Платежная система: O! деньги [17:40:14]line ФМ: 0000000000874939 [17:40:14]line ФД: 118544 [17:40:14]line ФПД: 128624617952243 [17:40:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T174014&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118544&fm=128624617952243&tin=02508201610067®Number=0000000000092660&sum=184000 [17:40:14]OFD Sender: Processing packet 118544 [packets to send 86, broken 85] [17:40:14]ProducePacketName [17:40:14]name=ofd_packets/00118544 [17:40:14]written 0, free lines is 4095 [17:40:14]OFD Sender: To server: pG, [17:40:14]CommunicateWithHost lk.salyk.kg:30040 [17:40:14]ConnectInit lk.salyk.kg [17:40:15]Connected sock=10 [17:40:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 21 1A 07 01 4B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EA 60 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1A CF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 CE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 4C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 CE 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 7E 82 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 10 CF 01 00 35 04 06 00 74 FB C0 A9 93 F3 32 95 BB C9 95 B6 C5 6C [17:40:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 37 59 47 00 36 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 39 33 39 10 04 04 00 10 CF 01 00 F4 03 04 00 0E 30 A6 66 B6 04 01 00 00 03 C6 4F 64 2E 1A 12 70 [17:40:15]CommunicateWithHost err = 0 [17:40:15]CheckOFDResponse [17:40:15]1017 (14) - 77093643461234 [17:40:15]1041 (16) - 0000000000874939 [17:40:15]1040 (4) - 118544 [17:40:15]1012 (4) - 28.07.2024 11:48 [17:40:15]1206 (1) - 0 [17:40:15]OFD Sender: Remove packet 118544 [17:40:15]ProducePacketName [17:40:15]name=ofd_packets/00118544 [17:40:15]NVStorageDeleteData [17:40:15]Write to MH i2c: 01 00 00 8A 0E 98 [17:40:15]Write i2c OK [17:40:15]MH_I2C_Read... [17:40:15]Read from MH i2c: 01 [17:40:15]MH_I2C_Read... [17:40:15]Read from MH i2c: 01 07 00 [17:40:15]MH_I2C_Read... [17:40:15]Read from MH i2c: 01 07 00 8A 0E 00 00 00 00 00 FC 0C A7 [17:40:15]RasterBufferAndPrint [17:40:15]line [17:40:15]line [17:40:15]line [17:40:15]line [17:40:15]line [17:40:15]written 0, free lines is 3337 [17:40:15]MH_Cut [17:40:15]Write to MH i2c: D1 01 00 91 0E 01 71 [17:40:15]Write i2c OK [17:40:15]MH_I2C_Read... [17:40:15]Read from MH i2c: D1 [17:40:15]MH_I2C_Read... [17:40:15]Read from MH i2c: D1 01 00 [17:40:15]MH_I2C_Read... [17:40:15]Read from MH i2c: D1 01 00 91 0E 00 70 [17:40:15]Write to MH i2c: 01 00 00 92 0E A0 [17:40:15]Write i2c OK [17:40:15]MH_I2C_Read... [17:40:15]OFD Sender: No OFD packet to send [17:40:16]*** Cut start [17:40:16]*** Partial cut [17:40:16]*** CUTSNS_PIN = 1 [17:40:16]*** CUTSNS_PIN = 0 [17:40:16]*** Brake cut motor [17:40:16]Read from MH i2c: 01 [17:40:16]MH_I2C_Read... [17:40:16]*** Stop cut motor [17:40:16]*** Cut end [17:40:16]Read from MH i2c: 01 07 00 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: 01 07 00 92 0E 00 00 00 00 00 FF 0F B5 [17:40:16]process_action close_receipt done [17:40:16]requested_data is exist [17:40:16]produce_requested_data [17:40:16]requested_item fm.sn is exist - process it [17:40:16]wFMCommunicate request_size=4 [17:40:16]MH_SAM_APDU [17:40:16]CAPDU: 80 11 00 00 [17:40:16]Write to MH i2c: E2 08 00 93 0E 80 11 00 00 00 00 00 00 1B [17:40:16]Write i2c OK [17:40:16]MH_I2C_Read... [17:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:16]Read from MH i2c: E2 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 17 00 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 17 00 93 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 76 [17:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:40:16]wFMCommunicate OK [17:40:16]requested_item fd.num is exist - process it [17:40:16]SAM_PROTO_GetFieldsCounters [17:40:16]wFMCommunicate request_size=4 [17:40:16]MH_SAM_APDU [17:40:16]CAPDU: 80 13 00 00 [17:40:16]Write to MH i2c: E2 08 00 94 0E 80 13 00 00 00 00 00 00 1E [17:40:16]Write i2c OK [17:40:16]MH_I2C_Read... [17:40:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:16]Read from MH i2c: E2 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 62 00 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 62 00 94 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 10 CF 01 00 0E 04 04 00 B1 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 56 [17:40:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 10 CF 01 00 0E 04 04 00 B1 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 [17:40:16]wFMCommunicate OK [17:40:16]SAM_PROTO_GetFieldsCounters done [17:40:16]requested_item shift.num is exist - process it [17:40:16]requested_item shift.opened is exist - process it [17:40:16]req_shift_opened [17:40:16]FM_GetShiftState [17:40:16]SAM_PROTO_GetShiftState [17:40:16]wFMCommunicate request_size=4 [17:40:16]MH_SAM_APDU [17:40:16]CAPDU: 80 13 01 00 [17:40:16]Write to MH i2c: E2 08 00 95 0E 80 13 01 00 00 00 00 00 20 [17:40:16]Write i2c OK [17:40:16]MH_I2C_Read... [17:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:16]Read from MH i2c: E2 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 0E 00 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 0E 00 95 0E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 F7 [17:40:16]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:40:16]wFMCommunicate OK [17:40:16]SAM_PROTO_GetShiftState done [17:40:16]FM_GetShiftState done [17:40:16]req_shift_opened done [17:40:16]requested_item shift.open_date is exist - process it [17:40:16]req_shift_open_date [17:40:16]req_shift_open_date done [17:40:16]produce_requested_data done [17:40:16]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118544,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [17:40:16]process_action_free close_receipt [17:40:16]json_value_free [17:40:16]json_value_free done [17:40:16]process_json_proto returns [17:40:16]Send response to host [17:40:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118544,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [17:40:16]free response buf [17:40:16]execute_script done [17:40:16]execute_script returns [17:40:16]free content buf [17:40:16]Sock 7.Close socket [17:40:16]Sock 7.Thread stoped [17:40:20]OFD Sender: No OFD packet to send [17:40:25]OFD Sender: No OFD packet to send [17:40:30]OFD Sender: No OFD packet to send [17:40:35]OFD Sender: No OFD packet to send [17:40:40]OFD Sender: No OFD packet to send [17:40:45]OFD Sender: No OFD packet to send [17:40:50]OFD Sender: No OFD packet to send [17:40:55]OFD Sender: No OFD packet to send [17:41:00]OFD Sender: No OFD packet to send [17:41:05]OFD Sender: No OFD packet to send [17:41:10]OFD Sender: No OFD packet to send [17:41:15]OFD Sender: No OFD packet to send [17:41:20]OFD Sender: No OFD packet to send [17:41:25]OFD Sender: No OFD packet to send [17:41:30]OFD Sender: No OFD packet to send [17:41:35]OFD Sender: No OFD packet to send [17:41:40]OFD Sender: No OFD packet to send [17:41:45]OFD Sender: No OFD packet to send [17:41:50]OFD Sender: No OFD packet to send [17:41:55]OFD Sender: No OFD packet to send [17:42:00]OFD Sender: No OFD packet to send [17:42:05]OFD Sender: No OFD packet to send [17:42:10]OFD Sender: No OFD packet to send [17:42:15]OFD Sender: No OFD packet to send [17:42:20]OFD Sender: No OFD packet to send [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:45]OFD Sender: No OFD packet to send [17:42:50]OFD Sender: No OFD packet to send [17:42:55]OFD Sender: No OFD packet to send [17:43:00]OFD Sender: No OFD packet to send [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:25]OFD Sender: No OFD packet to send [17:43:30]OFD Sender: No OFD packet to send [17:43:35]OFD Sender: No OFD packet to send [17:43:40]OFD Sender: No OFD packet to send [17:43:45]OFD Sender: No OFD packet to send [17:43:50]OFD Sender: No OFD packet to send [17:43:55]OFD Sender: No OFD packet to send [17:44:00]OFD Sender: No OFD packet to send [17:44:05]OFD Sender: No OFD packet to send [17:44:10]OFD Sender: No OFD packet to send [17:44:15]OFD Sender: No OFD packet to send [17:44:20]OFD Sender: No OFD packet to send [17:44:25]OFD Sender: No OFD packet to send [17:44:31]OFD Sender: No OFD packet to send [17:44:36]OFD Sender: No OFD packet to send [17:44:41]OFD Sender: No OFD packet to send [17:44:46]OFD Sender: No OFD packet to send [17:44:51]OFD Sender: No OFD packet to send [17:44:56]OFD Sender: No OFD packet to send [17:45:01]OFD Sender: No OFD packet to send [17:45:06]OFD Sender: No OFD packet to send [17:45:11]OFD Sender: No OFD packet to send [17:45:16]OFD Sender: No OFD packet to send [17:45:21]OFD Sender: No OFD packet to send [17:45:26]OFD Sender: No OFD packet to send [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:31]OFD Sender: No OFD packet to send [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:06]OFD Sender: No OFD packet to send [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:46]OFD Sender: No OFD packet to send [17:47:51]OFD Sender: No OFD packet to send [17:47:56]OFD Sender: No OFD packet to send [17:48:01]OFD Sender: No OFD packet to send [17:48:06]OFD Sender: No OFD packet to send [17:48:11]OFD Sender: No OFD packet to send [17:48:14]accept exits with 9 [17:48:14]New connection [17:48:14]New thread 3067239780 created [17:48:14]Thread 3067383140 joined [17:48:14]Waiting for new connection... [17:48:14] Sock 9.Parse request [17:48:14]Sock 9.Check first char [17:48:14]Sock 9.First char is OK [17:48:14]request: POST /json_proto HTTP/1.0 [17:48:14]Method: POST [17:48:14]URL: /json_proto [17:48:14]Method is POST - this is cgi request [17:48:14]url: /json_proto [17:48:14]query_string will be loaded in cgi processing [17:48:14]execute_cgi json_proto POST (null) [17:48:14]execute_cgi path=json_proto method=POST [17:48:14]POST find Content-Length [17:48:14]Host: 172.17.45.7:8080 [17:48:14]Content-Length: 1203 [17:48:14]Content-Type: application/json [17:48:14] [17:48:14]POST finish read [17:48:14]Found Content-Length = 1203 [17:48:14]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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949415\u000A28.07.2024 17:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982659/3982658\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:14]execute_script... [17:48:14]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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949415\u000A28.07.2024 17:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982659/3982658\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:14]POST & json_proto [17:48:14]process_json_proto [17:48:14]json parsed OK: [17:48:14]protocol is kg_v1.0 [17:48:14]action value=print_text [17:48:14]process_action print_text [17:48:14]cmd_print_text [17:48:14]ExternCall_PrintAddStr [17:48:14]wPrintStart [17:48:14]Write to MH i2c: 01 00 00 96 0E A4 [17:48:14]Write i2c OK [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: 01 [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: 01 07 00 [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: 01 07 00 96 0E 00 00 00 00 00 FF 0F B9 [17:48:14]RasterBufferAndPrint [17:48:14]line *****ТОВАРНЫЙ ЧЕК***** [17:48:14]line АЗС-134 [17:48:14]line Партнер нефть [17:48:14]line 02508201610067 [17:48:14]line Кассир : Хошимов З. [17:48:14]line Счет N : (1)949415 [17:48:14]line 28.07.2024 17:45 [17:48:14]line ПРОДАЖА [17:48:14]line ТРК (МРК, ГНК): 64 [17:48:14]line Вид ГСМ : 2710194800 [17:48:14]line ДТ-К-5 [17:48:14]line 100.000 x 76.20 [17:48:14]line ИТОГ: 7620.00 [17:48:14]line Тип оплаты: Талоны: Топливные Талоны [17:48:14]line 3982659/3982658 [17:48:14]line ______________________ [17:48:14]line (подпись) [17:48:14]written 0, free lines is 4095 [17:48:15]Write to MH i2c: 01 00 00 AA 0E B8 [17:48:15]Write i2c OK [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: 01 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: 01 07 00 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: 01 07 00 AA 0E 00 00 00 00 00 14 0E E1 [17:48:15]RasterBufferAndPrint [17:48:15]line [17:48:15]line [17:48:15]line [17:48:15]line [17:48:15]line [17:48:15]written 0, free lines is 3606 [17:48:15]MH_Cut [17:48:15]Write to MH i2c: D1 01 00 B1 0E 01 91 [17:48:15]Write i2c OK [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: D1 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: D1 01 00 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: D1 01 00 B1 0E 00 90 [17:48:15]Write to MH i2c: 01 00 00 B2 0E C0 [17:48:15]Write i2c OK [17:48:15]MH_I2C_Read... [17:48:15]*** Cut start [17:48:15]*** Partial cut [17:48:15]*** CUTSNS_PIN = 1 [17:48:15]*** CUTSNS_PIN = 0 [17:48:15]*** Brake cut motor [17:48:16]OFD Sender: No OFD packet to send [17:48:16]Read from MH i2c: 01 [17:48:16]MH_I2C_Read... [17:48:16]*** Stop cut motor [17:48:16]*** Cut end [17:48:16]Read from MH i2c: 01 07 00 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: 01 07 00 B2 0E 00 00 00 00 00 FF 0F D5 [17:48:16]process_action print_text done [17:48:16]requested_data is exist [17:48:16]produce_requested_data [17:48:16]requested_item fm.sn is exist - process it [17:48:16]wFMCommunicate request_size=4 [17:48:16]MH_SAM_APDU [17:48:16]CAPDU: 80 11 00 00 [17:48:16]Write to MH i2c: E2 08 00 B3 0E 80 11 00 00 00 00 00 00 3B [17:48:16]Write i2c OK [17:48:16]MH_I2C_Read... [17:48:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:16]Read from MH i2c: E2 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: E2 17 00 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: E2 17 00 B3 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 96 [17:48:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:48:16]wFMCommunicate OK [17:48:16]requested_item fd.num is exist - process it [17:48:16]SAM_PROTO_GetFieldsCounters [17:48:16]wFMCommunicate request_size=4 [17:48:16]MH_SAM_APDU [17:48:16]CAPDU: 80 13 00 00 [17:48:16]Write to MH i2c: E2 08 00 B4 0E 80 13 00 00 00 00 00 00 3E [17:48:16]Write i2c OK [17:48:16]MH_I2C_Read... [17:48:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:16]Read from MH i2c: E2 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: E2 62 00 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: E2 62 00 B4 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 10 CF 01 00 0E 04 04 00 B1 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 76 [17:48:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 10 CF 01 00 0E 04 04 00 B1 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 [17:48:16]wFMCommunicate OK [17:48:16]SAM_PROTO_GetFieldsCounters done [17:48:16]requested_item shift.num is exist - process it [17:48:16]requested_item shift.opened is exist - process it [17:48:16]req_shift_opened [17:48:16]FM_GetShiftState [17:48:16]SAM_PROTO_GetShiftState [17:48:16]wFMCommunicate request_size=4 [17:48:16]MH_SAM_APDU [17:48:16]CAPDU: 80 13 01 00 [17:48:16]Write to MH i2c: E2 08 00 B5 0E 80 13 01 00 00 00 00 00 40 [17:48:16]Write i2c OK [17:48:16]MH_I2C_Read... [17:48:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:16]Read from MH i2c: E2 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: E2 0E 00 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: E2 0E 00 B5 0E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 17 [17:48:16]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:48:16]wFMCommunicate OK [17:48:16]SAM_PROTO_GetShiftState done [17:48:16]FM_GetShiftState done [17:48:16]req_shift_opened done [17:48:16]requested_item shift.open_date is exist - process it [17:48:16]req_shift_open_date [17:48:16]req_shift_open_date done [17:48:16]produce_requested_data done [17:48:16]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118544,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [17:48:16]process_action_free print_text [17:48:16]json_value_free [17:48:16]json_value_free done [17:48:16]process_json_proto returns [17:48:16]Send response to host [17:48:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118544,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [17:48:16]free response buf [17:48:16]execute_script done [17:48:16]execute_script returns [17:48:16]free content buf [17:48:16]Sock 9.Close socket [17:48:16]Sock 9.Thread stoped [17:48:21]OFD Sender: No OFD packet to send [17:48:24]accept exits with 7 [17:48:24]New connection [17:48:24]New thread 3067383140 created [17:48:24]Thread 3067239780 joined [17:48:24]Waiting for new connection... [17:48:24] Sock 7.Parse request [17:48:24]Sock 7.Check first char [17:48:24]Sock 7.First char is OK [17:48:24]request: POST /json_proto HTTP/1.0 [17:48:24]Method: POST [17:48:24]URL: /json_proto [17:48:24]Method is POST - this is cgi request [17:48:24]url: /json_proto [17:48:24]query_string will be loaded in cgi processing [17:48:24]execute_cgi json_proto POST (null) [17:48:24]execute_cgi path=json_proto method=POST [17:48:24]POST find Content-Length [17:48:24]Host: 172.17.45.7:8080 [17:48:24]Content-Length: 1203 [17:48:24]Content-Type: application/json [17:48:24] [17:48:24]POST finish read [17:48:24]Found Content-Length = 1203 [17:48:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949416\u000A28.07.2024 17:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982661/3982660\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:24]execute_script... [17:48:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949416\u000A28.07.2024 17:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982661/3982660\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:24]POST & json_proto [17:48:24]process_json_proto [17:48:24]json parsed OK: [17:48:24]protocol is kg_v1.0 [17:48:24]action value=print_text [17:48:24]process_action print_text [17:48:24]cmd_print_text [17:48:24]ExternCall_PrintAddStr [17:48:24]wPrintStart [17:48:24]Write to MH i2c: 01 00 00 B6 0E C4 [17:48:24]Write i2c OK [17:48:24]MH_I2C_Read... [17:48:24]Read from MH i2c: 01 [17:48:24]MH_I2C_Read... [17:48:24]Read from MH i2c: 01 07 00 [17:48:24]MH_I2C_Read... [17:48:24]Read from MH i2c: 01 07 00 B6 0E 00 00 00 00 00 FF 0F D9 [17:48:24]RasterBufferAndPrint [17:48:24]line *****ТОВАРНЫЙ ЧЕК***** [17:48:24]line АЗС-134 [17:48:24]line Партнер нефть [17:48:24]line 02508201610067 [17:48:24]line Кассир : Хошимов З. [17:48:24]line Счет N : (1)949416 [17:48:24]line 28.07.2024 17:46 [17:48:24]line ПРОДАЖА [17:48:24]line ТРК (МРК, ГНК): 54 [17:48:24]line Вид ГСМ : 2710194800 [17:48:24]line ДТ-К-5 [17:48:24]line 100.000 x 76.20 [17:48:24]line ИТОГ: 7620.00 [17:48:24]line Тип оплаты: Талоны: Топливные Талоны [17:48:24]line 3982661/3982660 [17:48:24]line ______________________ [17:48:24]line (подпись) [17:48:24]written 0, free lines is 4095 [17:48:24]Write to MH i2c: 01 00 00 CA 0E D8 [17:48:24]Write i2c OK [17:48:24]MH_I2C_Read... [17:48:24]Read from MH i2c: 01 [17:48:24]MH_I2C_Read... [17:48:24]Read from MH i2c: 01 07 00 [17:48:24]MH_I2C_Read... [17:48:24]Read from MH i2c: 01 07 00 CA 0E 00 00 00 00 00 15 0E 02 [17:48:24]RasterBufferAndPrint [17:48:24]line [17:48:24]line [17:48:24]line [17:48:24]line [17:48:24]line [17:48:24]written 0, free lines is 3606 [17:48:24]MH_Cut [17:48:24]Write to MH i2c: D1 01 00 D1 0E 01 B1 [17:48:24]Write i2c OK [17:48:24]MH_I2C_Read... [17:48:24]Read from MH i2c: D1 [17:48:24]MH_I2C_Read... [17:48:24]Read from MH i2c: D1 01 00 [17:48:24]MH_I2C_Read... [17:48:24]Read from MH i2c: D1 01 00 D1 0E 00 B0 [17:48:24]Write to MH i2c: 01 00 00 D2 0E E0 [17:48:24]Write i2c OK [17:48:24]MH_I2C_Read... [17:48:25]*** Cut start [17:48:25]*** Partial cut [17:48:25]*** CUTSNS_PIN = 1 [17:48:25]*** CUTSNS_PIN = 0 [17:48:25]*** Brake cut motor [17:48:25]Read from MH i2c: 01 [17:48:25]MH_I2C_Read... [17:48:25]*** Stop cut motor [17:48:25]*** Cut end [17:48:25]Read from MH i2c: 01 07 00 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: 01 07 00 D2 0E 00 00 00 00 00 FF 0F F5 [17:48:25]process_action print_text done [17:48:25]requested_data is exist [17:48:25]produce_requested_data [17:48:25]requested_item fm.sn is exist - process it [17:48:25]wFMCommunicate request_size=4 [17:48:25]MH_SAM_APDU [17:48:25]CAPDU: 80 11 00 00 [17:48:25]Write to MH i2c: E2 08 00 D3 0E 80 11 00 00 00 00 00 00 5B [17:48:25]Write i2c OK [17:48:25]MH_I2C_Read... [17:48:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:25]Read from MH i2c: E2 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: E2 17 00 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: E2 17 00 D3 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B6 [17:48:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:48:25]wFMCommunicate OK [17:48:25]requested_item fd.num is exist - process it [17:48:25]SAM_PROTO_GetFieldsCounters [17:48:25]wFMCommunicate request_size=4 [17:48:25]MH_SAM_APDU [17:48:25]CAPDU: 80 13 00 00 [17:48:25]Write to MH i2c: E2 08 00 D4 0E 80 13 00 00 00 00 00 00 5E [17:48:25]Write i2c OK [17:48:25]MH_I2C_Read... [17:48:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:25]Read from MH i2c: E2 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: E2 62 00 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: E2 62 00 D4 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 10 CF 01 00 0E 04 04 00 B1 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 96 [17: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 10 CF 01 00 0E 04 04 00 B1 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 [17:48:25]wFMCommunicate OK [17:48:25]SAM_PROTO_GetFieldsCounters done [17:48:25]requested_item shift.num is exist - process it [17:48:25]requested_item shift.opened is exist - process it [17:48:25]req_shift_opened [17:48:25]FM_GetShiftState [17:48:25]SAM_PROTO_GetShiftState [17:48:25]wFMCommunicate request_size=4 [17:48:25]MH_SAM_APDU [17:48:25]CAPDU: 80 13 01 00 [17:48:25]Write to MH i2c: E2 08 00 D5 0E 80 13 01 00 00 00 00 00 60 [17:48:25]Write i2c OK [17:48:25]MH_I2C_Read... [17:48:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:25]Read from MH i2c: E2 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: E2 0E 00 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: E2 0E 00 D5 0E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 37 [17:48:25]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:48:25]wFMCommunicate OK [17:48:25]SAM_PROTO_GetShiftState done [17:48:25]FM_GetShiftState done [17:48:25]req_shift_opened done [17:48:25]requested_item shift.open_date is exist - process it [17:48:25]req_shift_open_date [17:48:25]req_shift_open_date done [17:48:25]produce_requested_data done [17:48:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118544,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [17:48:25]process_action_free print_text [17:48:25]json_value_free [17:48:25]json_value_free done [17:48:25]process_json_proto returns [17:48:25]Send response to host [17:48:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118544,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [17:48:25]free response buf [17:48:25]execute_script done [17:48:25]execute_script returns [17:48:25]free content buf [17:48:25]Sock 7.Close socket [17:48:25]Sock 7.Thread stoped [17:48:26]OFD Sender: No OFD packet to send [17:48:31]OFD Sender: No OFD packet to send [17:48:36]OFD Sender: No OFD packet to send [17:48:41]OFD Sender: No OFD packet to send [17:48:46]OFD Sender: No OFD packet to send [17:48:51]OFD Sender: No OFD packet to send [17:48:56]OFD Sender: No OFD packet to send [17:49:01]OFD Sender: No OFD packet to send [17:49:06]OFD Sender: No OFD packet to send [17:49:11]OFD Sender: No OFD packet to send [17:49:16]OFD Sender: No OFD packet to send [17:49:21]OFD Sender: No OFD packet to send [17:49:26]OFD Sender: No OFD packet to send [17:49:31]OFD Sender: No OFD packet to send [17:49:36]OFD Sender: No OFD packet to send [17:49:41]OFD Sender: No OFD packet to send [17:49:46]OFD Sender: No OFD packet to send [17:49:51]OFD Sender: No OFD packet to send [17:49:56]OFD Sender: No OFD packet to send [17:50:01]OFD Sender: No OFD packet to send [17:50:06]OFD Sender: No OFD packet to send [17:50:11]OFD Sender: No OFD packet to send [17:50:16]OFD Sender: No OFD packet to send [17:50:21]OFD Sender: No OFD packet to send [17:50:26]OFD Sender: No OFD packet to send [17:50:31]OFD Sender: No OFD packet to send [17:50:36]OFD Sender: No OFD packet to send [17:50:41]OFD Sender: No OFD packet to send [17:50:46]OFD Sender: No OFD packet to send [17:50:51]OFD Sender: No OFD packet to send [17:50:56]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:51:16]OFD Sender: No OFD packet to send [17:51:21]OFD Sender: No OFD packet to send [17:51:26]OFD Sender: No OFD packet to send [17:51:31]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:05]accept exits with 9 [17:52:05]New connection [17:52:05]New thread 3067239780 created [17:52:05]Thread 3067383140 joined [17:52:05]Waiting for new connection... [17:52:05] Sock 9.Parse request [17:52:05]Sock 9.Check first char [17:52:05]Sock 9.First char is OK [17:52:05]request: POST /json_proto HTTP/1.0 [17:52:05]Method: POST [17:52:05]URL: /json_proto [17:52:05]Method is POST - this is cgi request [17:52:05]url: /json_proto [17:52:05]query_string will be loaded in cgi processing [17:52:05]execute_cgi json_proto POST (null) [17:52:05]execute_cgi path=json_proto method=POST [17:52:05]POST find Content-Length [17:52:05]Host: 172.17.45.7:8080 [17:52:05]Content-Length: 1203 [17:52:05]Content-Type: application/json [17:52:05] [17:52:05]POST finish read [17:52:05]Found Content-Length = 1203 [17:52: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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949417\u000A28.07.2024 17:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982663/3982662\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:05]execute_script... [17:52: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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949417\u000A28.07.2024 17:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982663/3982662\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:05]POST & json_proto [17:52:05]process_json_proto [17:52:05]json parsed OK: [17:52:05]protocol is kg_v1.0 [17:52:05]action value=print_text [17:52:05]process_action print_text [17:52:05]cmd_print_text [17:52:05]ExternCall_PrintAddStr [17:52:05]wPrintStart [17:52:05]Write to MH i2c: 01 00 00 D6 0E E4 [17:52:05]Write i2c OK [17:52:05]MH_I2C_Read... [17:52:05]Read from MH i2c: 01 [17:52:05]MH_I2C_Read... [17:52:05]Read from MH i2c: 01 07 00 [17:52:05]MH_I2C_Read... [17:52:05]Read from MH i2c: 01 07 00 D6 0E 00 00 00 00 00 FF 0F F9 [17:52:05]RasterBufferAndPrint [17:52:05]line *****ТОВАРНЫЙ ЧЕК***** [17:52:05]line АЗС-134 [17:52:05]line Партнер нефть [17:52:05]line 02508201610067 [17:52:05]line Кассир : Хошимов З. [17:52:05]line Счет N : (1)949417 [17:52:05]line 28.07.2024 17:49 [17:52:05]line ПРОДАЖА [17:52:05]line ТРК (МРК, ГНК): 64 [17:52:05]line Вид ГСМ : 2710194800 [17:52:05]line ДТ-К-5 [17:52:05]line 100.000 x 76.20 [17:52:05]line ИТОГ: 7620.00 [17:52:05]line Тип оплаты: Талоны: Топливные Талоны [17:52:05]line 3982663/3982662 [17:52:05]line ______________________ [17:52:05]line (подпись) [17:52:05]written 0, free lines is 4095 [17:52:05]Write to MH i2c: 01 00 00 EA 0E F8 [17:52:05]Write i2c OK [17:52:05]MH_I2C_Read... [17:52:05]Read from MH i2c: 01 [17:52:05]MH_I2C_Read... [17:52:05]Read from MH i2c: 01 07 00 [17:52:05]MH_I2C_Read... [17:52:05]Read from MH i2c: 01 07 00 EA 0E 00 00 00 00 00 15 0E 22 [17:52:05]RasterBufferAndPrint [17:52:05]line [17:52:05]line [17:52:05]line [17:52:05]line [17:52:05]line [17:52:05]written 0, free lines is 3607 [17:52:05]MH_Cut [17:52:05]Write to MH i2c: D1 01 00 F1 0E 01 D1 [17:52:05]Write i2c OK [17:52:05]MH_I2C_Read... [17:52:05]Read from MH i2c: D1 [17:52:05]MH_I2C_Read... [17:52:05]Read from MH i2c: D1 01 00 [17:52:05]MH_I2C_Read... [17:52:05]Read from MH i2c: D1 01 00 F1 0E 00 D0 [17:52:05]Write to MH i2c: 01 00 00 F2 0E 00 [17:52:05]Write i2c OK [17:52:05]MH_I2C_Read... [17:52:06]*** Cut start [17:52:06]*** Partial cut [17:52:06]*** CUTSNS_PIN = 1 [17:52:06]*** CUTSNS_PIN = 0 [17:52:06]OFD Sender: No OFD packet to send [17:52:06]*** Brake cut motor [17:52:06]Read from MH i2c: 01 [17:52:06]MH_I2C_Read... [17:52:06]*** Stop cut motor [17:52:06]*** Cut end [17:52:06]Read from MH i2c: 01 07 00 [17:52:06]MH_I2C_Read... [17:52:06]Read from MH i2c: 01 07 00 F2 0E 00 00 00 00 00 FF 0F 15 [17:52:06]process_action print_text done [17:52:06]requested_data is exist [17:52:06]produce_requested_data [17:52:06]requested_item fm.sn is exist - process it [17:52:06]wFMCommunicate request_size=4 [17:52:06]MH_SAM_APDU [17:52:06]CAPDU: 80 11 00 00 [17:52:06]Write to MH i2c: E2 08 00 F3 0E 80 11 00 00 00 00 00 00 7B [17:52:06]Write i2c OK [17:52:06]MH_I2C_Read... [17:52:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:06]Read from MH i2c: E2 [17:52:06]MH_I2C_Read... [17:52:06]Read from MH i2c: E2 17 00 [17:52:06]MH_I2C_Read... [17:52:06]Read from MH i2c: E2 17 00 F3 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D6 [17:52:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:52:06]wFMCommunicate OK [17:52:06]requested_item fd.num is exist - process it [17:52:06]SAM_PROTO_GetFieldsCounters [17:52:06]wFMCommunicate request_size=4 [17:52:06]MH_SAM_APDU [17:52:06]CAPDU: 80 13 00 00 [17:52:06]Write to MH i2c: E2 08 00 F4 0E 80 13 00 00 00 00 00 00 7E [17:52:06]Write i2c OK [17:52:06]MH_I2C_Read... [17:52:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:07]Read from MH i2c: E2 [17:52:07]MH_I2C_Read... [17:52:07]Read from MH i2c: E2 62 00 [17:52:07]MH_I2C_Read... [17:52:07]Read from MH i2c: E2 62 00 F4 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 10 CF 01 00 0E 04 04 00 B1 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 B6 [17:52:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 10 CF 01 00 0E 04 04 00 B1 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 [17:52:07]wFMCommunicate OK [17:52:07]SAM_PROTO_GetFieldsCounters done [17:52:07]requested_item shift.num is exist - process it [17:52:07]requested_item shift.opened is exist - process it [17:52:07]req_shift_opened [17:52:07]FM_GetShiftState [17:52:07]SAM_PROTO_GetShiftState [17:52:07]wFMCommunicate request_size=4 [17:52:07]MH_SAM_APDU [17:52:07]CAPDU: 80 13 01 00 [17:52:07]Write to MH i2c: E2 08 00 F5 0E 80 13 01 00 00 00 00 00 80 [17:52:07]Write i2c OK [17:52:07]MH_I2C_Read... [17:52:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:07]Read from MH i2c: E2 [17:52:07]MH_I2C_Read... [17:52:07]Read from MH i2c: E2 0E 00 [17:52:07]MH_I2C_Read... [17:52:07]Read from MH i2c: E2 0E 00 F5 0E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 57 [17:52:07]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:52:07]wFMCommunicate OK [17:52:07]SAM_PROTO_GetShiftState done [17:52:07]FM_GetShiftState done [17:52:07]req_shift_opened done [17:52:07]requested_item shift.open_date is exist - process it [17:52:07]req_shift_open_date [17:52:07]req_shift_open_date done [17:52:07]produce_requested_data done [17:52:07]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118544,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [17:52:07]process_action_free print_text [17:52:07]json_value_free [17:52:07]json_value_free done [17:52:07]process_json_proto returns [17:52:07]Send response to host [17:52:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118544,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [17:52:07]free response buf [17:52:07]execute_script done [17:52:07]execute_script returns [17:52:07]free content buf [17:52:07]Sock 9.Close socket [17:52:07]Sock 9.Thread stoped [17:52:11]OFD Sender: No OFD packet to send [17:52:16]OFD Sender: No OFD packet to send [17:52:20]accept exits with 7 [17:52:20]New connection [17:52:20]New thread 3067383140 created [17:52:20]Thread 3067239780 joined [17:52:20]Waiting for new connection... [17:52:20] Sock 7.Parse request [17:52:20]Sock 7.Check first char [17:52:20]Sock 7.First char is OK [17:52:20]request: POST /json_proto HTTP/1.0 [17:52:20]Method: POST [17:52:20]URL: /json_proto [17:52:20]Method is POST - this is cgi request [17:52:20]url: /json_proto [17:52:20]query_string will be loaded in cgi processing [17:52:20]execute_cgi json_proto POST (null) [17:52:20]execute_cgi path=json_proto method=POST [17:52:20]POST find Content-Length [17:52:20]Host: 172.17.45.7:8080 [17:52:20]Content-Length: 1203 [17:52:20]Content-Type: application/json [17:52:20] [17:52:20]POST finish read [17:52:20]Found Content-Length = 1203 [17:52: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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949418\u000A28.07.2024 17:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982665/3982664\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:20]execute_script... [17:52: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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949418\u000A28.07.2024 17:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982665/3982664\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:20]POST & json_proto [17:52:20]process_json_proto [17:52:20]json parsed OK: [17:52:20]protocol is kg_v1.0 [17:52:20]action value=print_text [17:52:20]process_action print_text [17:52:20]cmd_print_text [17:52:20]ExternCall_PrintAddStr [17:52:20]wPrintStart [17:52:20]Write to MH i2c: 01 00 00 F6 0E 04 [17:52:20]Write i2c OK [17:52:20]MH_I2C_Read... [17:52:20]Read from MH i2c: 01 [17:52:20]MH_I2C_Read... [17:52:20]Read from MH i2c: 01 07 00 [17:52:20]MH_I2C_Read... [17:52:20]Read from MH i2c: 01 07 00 F6 0E 00 00 00 00 00 FF 0F 19 [17:52:20]RasterBufferAndPrint [17:52:20]line *****ТОВАРНЫЙ ЧЕК***** [17:52:20]line АЗС-134 [17:52:20]line Партнер нефть [17:52:20]line 02508201610067 [17:52:20]line Кассир : Хошимов З. [17:52:20]line Счет N : (1)949418 [17:52:20]line 28.07.2024 17:50 [17:52:20]line ПРОДАЖА [17:52:20]line ТРК (МРК, ГНК): 54 [17:52:20]line Вид ГСМ : 2710194800 [17:52:20]line ДТ-К-5 [17:52:20]line 100.000 x 76.20 [17:52:20]line ИТОГ: 7620.00 [17:52:20]line Тип оплаты: Талоны: Топливные Талоны [17:52:20]line 3982665/3982664 [17:52:20]line ______________________ [17:52:20]line (подпись) [17:52:20]written 0, free lines is 4095 [17:52:20]Write to MH i2c: 01 00 00 0A 0F 19 [17:52:20]Write i2c OK [17:52:20]MH_I2C_Read... [17:52:20]Read from MH i2c: 01 [17:52:20]MH_I2C_Read... [17:52:20]Read from MH i2c: 01 07 00 [17:52:20]MH_I2C_Read... [17:52:20]Read from MH i2c: 01 07 00 0A 0F 00 00 00 00 00 15 0E 43 [17:52:20]RasterBufferAndPrint [17:52:20]line [17:52:20]line [17:52:20]line [17:52:20]line [17:52:20]line [17:52:20]written 0, free lines is 3606 [17:52:20]MH_Cut [17:52:20]Write to MH i2c: D1 01 00 11 0F 01 F2 [17:52:20]Write i2c OK [17:52:20]MH_I2C_Read... [17:52:20]Read from MH i2c: D1 [17:52:20]MH_I2C_Read... [17:52:20]Read from MH i2c: D1 01 00 [17:52:20]MH_I2C_Read... [17:52:20]Read from MH i2c: D1 01 00 11 0F 00 F1 [17:52:20]Write to MH i2c: 01 00 00 12 0F 21 [17:52:20]Write i2c OK [17:52:20]MH_I2C_Read... [17:52:20]*** Cut start [17:52:20]*** Partial cut [17:52:20]*** CUTSNS_PIN = 1 [17:52:21]*** CUTSNS_PIN = 0 [17:52:21]*** Brake cut motor [17:52:21]OFD Sender: No OFD packet to send [17:52:21]Read from MH i2c: 01 [17:52:21]MH_I2C_Read... [17:52:21]*** Stop cut motor [17:52:21]*** Cut end [17:52:21]Read from MH i2c: 01 07 00 [17:52:21]MH_I2C_Read... [17:52:21]Read from MH i2c: 01 07 00 12 0F 00 00 00 00 00 FF 0F 36 [17:52:21]process_action print_text done [17:52:21]requested_data is exist [17:52:21]produce_requested_data [17:52:21]requested_item fm.sn is exist - process it [17:52:21]wFMCommunicate request_size=4 [17:52:21]MH_SAM_APDU [17:52:21]CAPDU: 80 11 00 00 [17:52:21]Write to MH i2c: E2 08 00 13 0F 80 11 00 00 00 00 00 00 9C [17:52:21]Write i2c OK [17:52:21]MH_I2C_Read... [17:52:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:21]Read from MH i2c: E2 [17:52:21]MH_I2C_Read... [17:52:21]Read from MH i2c: E2 17 00 [17:52:21]MH_I2C_Read... [17:52:21]Read from MH i2c: E2 17 00 13 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F7 [17:52:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:52:21]wFMCommunicate OK [17:52:21]requested_item fd.num is exist - process it [17:52:21]SAM_PROTO_GetFieldsCounters [17:52:21]wFMCommunicate request_size=4 [17:52:21]MH_SAM_APDU [17:52:21]CAPDU: 80 13 00 00 [17:52:21]Write to MH i2c: E2 08 00 14 0F 80 13 00 00 00 00 00 00 9F [17:52:21]Write i2c OK [17:52:21]MH_I2C_Read... [17:52:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:21]Read from MH i2c: E2 [17:52:21]MH_I2C_Read... [17:52:21]Read from MH i2c: E2 62 00 [17:52:21]MH_I2C_Read... [17:52:21]Read from MH i2c: E2 62 00 14 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 10 CF 01 00 0E 04 04 00 B1 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 D7 [17:52:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 10 CF 01 00 0E 04 04 00 B1 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 [17:52:21]wFMCommunicate OK [17:52:21]SAM_PROTO_GetFieldsCounters done [17:52:21]requested_item shift.num is exist - process it [17:52:21]requested_item shift.opened is exist - process it [17:52:21]req_shift_opened [17:52:21]FM_GetShiftState [17:52:21]SAM_PROTO_GetShiftState [17:52:21]wFMCommunicate request_size=4 [17:52:21]MH_SAM_APDU [17:52:21]CAPDU: 80 13 01 00 [17:52:21]Write to MH i2c: E2 08 00 15 0F 80 13 01 00 00 00 00 00 A1 [17:52:21]Write i2c OK [17:52:21]MH_I2C_Read... [17:52:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:21]Read from MH i2c: E2 [17:52:21]MH_I2C_Read... [17:52:21]Read from MH i2c: E2 0E 00 [17:52:21]MH_I2C_Read... [17:52:21]Read from MH i2c: E2 0E 00 15 0F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 78 [17:52:21]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:52:21]wFMCommunicate OK [17:52:21]SAM_PROTO_GetShiftState done [17:52:21]FM_GetShiftState done [17:52:21]req_shift_opened done [17:52:21]requested_item shift.open_date is exist - process it [17:52:21]req_shift_open_date [17:52:21]req_shift_open_date done [17:52:21]produce_requested_data done [17:52:21]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118544,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [17:52:21]process_action_free print_text [17:52:21]json_value_free [17:52:21]json_value_free done [17:52:21]process_json_proto returns [17:52:21]Send response to host [17:52:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118544,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [17:52:21]free response buf [17:52:21]execute_script done [17:52:21]execute_script returns [17:52:21]free content buf [17:52:21]Sock 7.Close socket [17:52:21]Sock 7.Thread stoped [17:52:26]OFD Sender: No OFD packet to send [17:52:31]OFD Sender: No OFD packet to send [17:52:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:46]OFD Sender: No OFD packet to send [17:52:51]OFD Sender: No OFD packet to send [17:52:56]OFD Sender: No OFD packet to send [17:53:01]OFD Sender: No OFD packet to send [17:53:06]OFD Sender: No OFD packet to send [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:14]accept exits with 9 [17:56:14]New connection [17:56:14]New thread 3067239780 created [17:56:14]Thread 3067383140 joined [17:56:14]Waiting for new connection... [17:56:14] Sock 9.Parse request [17:56:14]Sock 9.Check first char [17:56:14]Sock 9.First char is OK [17:56:14]request: POST /json_proto HTTP/1.0 [17:56:14]Method: POST [17:56:14]URL: /json_proto [17:56:14]Method is POST - this is cgi request [17:56:14]url: /json_proto [17:56:14]query_string will be loaded in cgi processing [17:56:14]execute_cgi json_proto POST (null) [17:56:14]execute_cgi path=json_proto method=POST [17:56:14]POST find Content-Length [17:56:14]Host: 172.17.45.7:8080 [17:56:14]Content-Length: 1203 [17:56:14]Content-Type: application/json [17:56:14] [17:56:14]POST finish read [17:56:14]Found Content-Length = 1203 [17:56:14]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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949419\u000A28.07.2024 17:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982667/3982666\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:14]execute_script... [17:56:14]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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949419\u000A28.07.2024 17:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982667/3982666\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:14]POST & json_proto [17:56:14]process_json_proto [17:56:14]json parsed OK: [17:56:14]protocol is kg_v1.0 [17:56:14]action value=print_text [17:56:14]process_action print_text [17:56:14]cmd_print_text [17:56:14]ExternCall_PrintAddStr [17:56:14]wPrintStart [17:56:14]Write to MH i2c: 01 00 00 16 0F 25 [17:56:14]Write i2c OK [17:56:14]MH_I2C_Read... [17:56:14]Read from MH i2c: 01 [17:56:14]MH_I2C_Read... [17:56:14]Read from MH i2c: 01 07 00 [17:56:14]MH_I2C_Read... [17:56:14]Read from MH i2c: 01 07 00 16 0F 00 00 00 00 00 FF 0F 3A [17:56:14]RasterBufferAndPrint [17:56:14]line *****ТОВАРНЫЙ ЧЕК***** [17:56:14]line АЗС-134 [17:56:14]line Партнер нефть [17:56:14]line 02508201610067 [17:56:14]line Кассир : Хошимов З. [17:56:14]line Счет N : (1)949419 [17:56:14]line 28.07.2024 17:53 [17:56:14]line ПРОДАЖА [17:56:14]line ТРК (МРК, ГНК): 64 [17:56:14]line Вид ГСМ : 2710194800 [17:56:14]line ДТ-К-5 [17:56:14]line 100.000 x 76.20 [17:56:14]line ИТОГ: 7620.00 [17:56:14]line Тип оплаты: Талоны: Топливные Талоны [17:56:14]line 3982667/3982666 [17:56:14]line ______________________ [17:56:14]line (подпись) [17:56:14]written 0, free lines is 4095 [17:56:14]Write to MH i2c: 01 00 00 2A 0F 39 [17:56:14]Write i2c OK [17:56:14]MH_I2C_Read... [17:56:14]Read from MH i2c: 01 [17:56:14]MH_I2C_Read... [17:56:14]Read from MH i2c: 01 07 00 [17:56:14]MH_I2C_Read... [17:56:14]Read from MH i2c: 01 07 00 2A 0F 00 00 00 00 00 15 0E 63 [17:56:14]RasterBufferAndPrint [17:56:14]line [17:56:14]line [17:56:14]line [17:56:14]line [17:56:14]line [17:56:14]written 0, free lines is 3607 [17:56:14]MH_Cut [17:56:14]Write to MH i2c: D1 01 00 31 0F 01 12 [17:56:14]Write i2c OK [17:56:14]MH_I2C_Read... [17:56:14]Read from MH i2c: D1 [17:56:14]MH_I2C_Read... [17:56:14]Read from MH i2c: D1 01 00 [17:56:14]MH_I2C_Read... [17:56:14]Read from MH i2c: D1 01 00 31 0F 00 11 [17:56:14]Write to MH i2c: 01 00 00 32 0F 41 [17:56:14]Write i2c OK [17:56:14]MH_I2C_Read... [17:56:15]*** Cut start [17:56:15]*** Partial cut [17:56:15]*** CUTSNS_PIN = 1 [17:56:15]*** CUTSNS_PIN = 0 [17:56:15]*** Brake cut motor [17:56:15]Read from MH i2c: 01 [17:56:15]MH_I2C_Read... [17:56:15]Read from MH i2c: 01 07 00 [17:56:15]MH_I2C_Read... [17:56:15]*** Stop cut motor [17:56:15]*** Cut end [17:56:15]Read from MH i2c: 01 07 00 32 0F 00 00 00 00 00 FF 0F 56 [17:56:15]process_action print_text done [17:56:15]requested_data is exist [17:56:15]produce_requested_data [17:56:15]requested_item fm.sn is exist - process it [17:56:15]wFMCommunicate request_size=4 [17:56:15]MH_SAM_APDU [17:56:15]CAPDU: 80 11 00 00 [17:56:15]Write to MH i2c: E2 08 00 33 0F 80 11 00 00 00 00 00 00 BC [17:56:15]Write i2c OK [17:56:15]MH_I2C_Read... [17:56:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:15]Read from MH i2c: E2 [17:56:15]MH_I2C_Read... [17:56:15]Read from MH i2c: E2 17 00 [17:56:15]MH_I2C_Read... [17:56:15]Read from MH i2c: E2 17 00 33 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 17 [17:56:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:56:15]wFMCommunicate OK [17:56:15]requested_item fd.num is exist - process it [17:56:15]SAM_PROTO_GetFieldsCounters [17:56:15]wFMCommunicate request_size=4 [17:56:15]MH_SAM_APDU [17:56:15]CAPDU: 80 13 00 00 [17:56:15]Write to MH i2c: E2 08 00 34 0F 80 13 00 00 00 00 00 00 BF [17:56:15]Write i2c OK [17:56:15]MH_I2C_Read... [17:56:16]Read from MH i2c: E2 [17:56:16]MH_I2C_Read... [17:56:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:16]Read from MH i2c: E2 62 00 [17:56:16]MH_I2C_Read... [17:56:16]Read from MH i2c: E2 62 00 34 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 10 CF 01 00 0E 04 04 00 B1 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 F7 [17:56:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 10 CF 01 00 0E 04 04 00 B1 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 [17:56:16]wFMCommunicate OK [17:56:16]SAM_PROTO_GetFieldsCounters done [17:56:16]requested_item shift.num is exist - process it [17:56:16]requested_item shift.opened is exist - process it [17:56:16]req_shift_opened [17:56:16]FM_GetShiftState [17:56:16]SAM_PROTO_GetShiftState [17:56:16]wFMCommunicate request_size=4 [17:56:16]MH_SAM_APDU [17:56:16]CAPDU: 80 13 01 00 [17:56:16]Write to MH i2c: E2 08 00 35 0F 80 13 01 00 00 00 00 00 C1 [17:56:16]Write i2c OK [17:56:16]MH_I2C_Read... [17:56:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:16]Read from MH i2c: E2 [17:56:16]MH_I2C_Read... [17:56:16]Read from MH i2c: E2 0E 00 [17:56:16]MH_I2C_Read... [17:56:16]Read from MH i2c: E2 0E 00 35 0F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 98 [17:56:16]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:56:16]wFMCommunicate OK [17:56:16]SAM_PROTO_GetShiftState done [17:56:16]FM_GetShiftState done [17:56:16]req_shift_opened done [17:56:16]requested_item shift.open_date is exist - process it [17:56:16]req_shift_open_date [17:56:16]req_shift_open_date done [17:56:16]produce_requested_data done [17:56:16]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118544,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [17:56:16]process_action_free print_text [17:56:16]json_value_free [17:56:16]json_value_free done [17:56:16]process_json_proto returns [17:56:16]Send response to host [17:56:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118544,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [17:56:16]free response buf [17:56:16]execute_script done [17:56:16]execute_script returns [17:56:16]free content buf [17:56:16]Sock 9.Close socket [17:56:16]Sock 9.Thread stoped [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:24]accept exits with 7 [17:56:24]New connection [17:56:24]New thread 3067383140 created [17:56:24]Thread 3067239780 joined [17:56:24]Waiting for new connection... [17:56:24] Sock 7.Parse request [17:56:24]Sock 7.Check first char [17:56:24]Sock 7.First char is OK [17:56:24]request: POST /json_proto HTTP/1.0 [17:56:24]Method: POST [17:56:24]URL: /json_proto [17:56:24]Method is POST - this is cgi request [17:56:24]url: /json_proto [17:56:24]query_string will be loaded in cgi processing [17:56:24]execute_cgi json_proto POST (null) [17:56:24]execute_cgi path=json_proto method=POST [17:56:24]POST find Content-Length [17:56:24]Host: 172.17.45.7:8080 [17:56:24]Content-Length: 1203 [17:56:24]Content-Type: application/json [17:56:24] [17:56:24]POST finish read [17:56:24]Found Content-Length = 1203 [17:56:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949420\u000A28.07.2024 17:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982669/3982668\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:24]execute_script... [17:56:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949420\u000A28.07.2024 17:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982669/3982668\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:24]POST & json_proto [17:56:24]process_json_proto [17:56:24]json parsed OK: [17:56:24]protocol is kg_v1.0 [17:56:24]action value=print_text [17:56:24]process_action print_text [17:56:24]cmd_print_text [17:56:24]ExternCall_PrintAddStr [17:56:24]wPrintStart [17:56:24]Write to MH i2c: 01 00 00 36 0F 45 [17:56:24]Write i2c OK [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: 01 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: 01 07 00 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: 01 07 00 36 0F 00 00 00 00 00 FF 0F 5A [17:56:24]RasterBufferAndPrint [17:56:24]line *****ТОВАРНЫЙ ЧЕК***** [17:56:24]line АЗС-134 [17:56:24]line Партнер нефть [17:56:24]line 02508201610067 [17:56:24]line Кассир : Хошимов З. [17:56:24]line Счет N : (1)949420 [17:56:24]line 28.07.2024 17:54 [17:56:24]line ПРОДАЖА [17:56:24]line ТРК (МРК, ГНК): 54 [17:56:24]line Вид ГСМ : 2710194800 [17:56:24]line ДТ-К-5 [17:56:24]line 100.000 x 76.20 [17:56:24]line ИТОГ: 7620.00 [17:56:24]line Тип оплаты: Талоны: Топливные Талоны [17:56:24]line 3982669/3982668 [17:56:24]line ______________________ [17:56:24]line (подпись) [17:56:24]written 0, free lines is 4095 [17:56:24]Write to MH i2c: 01 00 00 4A 0F 59 [17:56:24]Write i2c OK [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: 01 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: 01 07 00 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: 01 07 00 4A 0F 00 00 00 00 00 15 0E 83 [17:56:24]RasterBufferAndPrint [17:56:24]line [17:56:24]line [17:56:24]line [17:56:24]line [17:56:24]line [17:56:24]written 0, free lines is 3606 [17:56:24]MH_Cut [17:56:24]Write to MH i2c: D1 01 00 51 0F 01 32 [17:56:24]Write i2c OK [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: D1 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: D1 01 00 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: D1 01 00 51 0F 00 31 [17:56:24]Write to MH i2c: 01 00 00 52 0F 61 [17:56:24]Write i2c OK [17:56:24]MH_I2C_Read... [17:56:25]*** Cut start [17:56:25]*** Partial cut [17:56:25]*** CUTSNS_PIN = 1 [17:56:25]*** CUTSNS_PIN = 0 [17:56:25]*** Brake cut motor [17:56:25]Read from MH i2c: 01 [17:56:25]MH_I2C_Read... [17:56:25]*** Stop cut motor [17:56:25]*** Cut end [17:56:25]Read from MH i2c: 01 07 00 [17:56:25]MH_I2C_Read... [17:56:25]Read from MH i2c: 01 07 00 52 0F 00 00 00 00 00 FF 0F 76 [17:56:25]process_action print_text done [17:56:25]requested_data is exist [17:56:25]produce_requested_data [17:56:25]requested_item fm.sn is exist - process it [17:56:25]wFMCommunicate request_size=4 [17:56:25]MH_SAM_APDU [17:56:25]CAPDU: 80 11 00 00 [17:56:25]Write to MH i2c: E2 08 00 53 0F 80 11 00 00 00 00 00 00 DC [17:56:25]Write i2c OK [17:56:25]MH_I2C_Read... [17:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:25]Read from MH i2c: E2 [17:56:25]MH_I2C_Read... [17:56:25]Read from MH i2c: E2 17 00 [17:56:25]MH_I2C_Read... [17:56:25]Read from MH i2c: E2 17 00 53 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 37 [17:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:56:25]wFMCommunicate OK [17:56:25]requested_item fd.num is exist - process it [17:56:25]SAM_PROTO_GetFieldsCounters [17:56:25]wFMCommunicate request_size=4 [17:56:25]MH_SAM_APDU [17:56:25]CAPDU: 80 13 00 00 [17:56:25]Write to MH i2c: E2 08 00 54 0F 80 13 00 00 00 00 00 00 DF [17:56:25]Write i2c OK [17:56:25]MH_I2C_Read... [17:56:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:25]Read from MH i2c: E2 [17:56:25]MH_I2C_Read... [17:56:25]Read from MH i2c: E2 62 00 [17:56:25]MH_I2C_Read... [17:56:25]Read from MH i2c: E2 62 00 54 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 10 CF 01 00 0E 04 04 00 B1 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 17 [17:56:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 10 CF 01 00 0E 04 04 00 B1 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 [17:56:25]wFMCommunicate OK [17:56:25]SAM_PROTO_GetFieldsCounters done [17:56:25]requested_item shift.num is exist - process it [17:56:25]requested_item shift.opened is exist - process it [17:56:25]req_shift_opened [17:56:25]FM_GetShiftState [17:56:25]SAM_PROTO_GetShiftState [17:56:25]wFMCommunicate request_size=4 [17:56:25]MH_SAM_APDU [17:56:25]CAPDU: 80 13 01 00 [17:56:25]Write to MH i2c: E2 08 00 55 0F 80 13 01 00 00 00 00 00 E1 [17:56:25]Write i2c OK [17:56:25]MH_I2C_Read... [17:56:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:25]Read from MH i2c: E2 [17:56:25]MH_I2C_Read... [17:56:25]Read from MH i2c: E2 0E 00 [17:56:25]MH_I2C_Read... [17:56:25]Read from MH i2c: E2 0E 00 55 0F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 B8 [17:56:25]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [17:56:25]wFMCommunicate OK [17:56:25]SAM_PROTO_GetShiftState done [17:56:25]FM_GetShiftState done [17:56:25]req_shift_opened done [17:56:25]requested_item shift.open_date is exist - process it [17:56:25]req_shift_open_date [17:56:25]req_shift_open_date done [17:56:25]produce_requested_data done [17:56:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118544,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [17:56:25]process_action_free print_text [17:56:25]json_value_free [17:56:25]json_value_free done [17:56:25]process_json_proto returns [17:56:25]Send response to host [17:56:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118544,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [17:56:25]free response buf [17:56:25]execute_script done [17:56:25]execute_script returns [17:56:25]free content buf [17:56:25]Sock 7.Close socket [17:56:25]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]OFD Sender: No OFD packet to send [17:58:26]OFD Sender: No OFD packet to send [17:58:31]OFD Sender: No OFD packet to send [17:58:36]OFD Sender: No OFD packet to send [17:58:41]OFD Sender: No OFD packet to send [17:58:46]OFD Sender: No OFD packet to send [17:58:51]OFD Sender: No OFD packet to send [17:58:56]OFD Sender: No OFD packet to send [17:59:01]OFD Sender: No OFD packet to send [17:59:06]OFD Sender: No OFD packet to send [17:59:11]OFD Sender: No OFD packet to send [17:59:16]OFD Sender: No OFD packet to send [17:59:21]OFD Sender: No OFD packet to send [17:59:26]OFD Sender: No OFD packet to send [17:59:31]OFD Sender: No OFD packet to send [17:59:36]OFD Sender: No OFD packet to send [17:59:41]OFD Sender: No OFD packet to send [17:59:46]OFD Sender: No OFD packet to send [17:59:51]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:04]accept exits with 9 [18:00:04]New connection [18:00:04]New thread 3067239780 created [18:00:04]Thread 3067383140 joined [18:00:04]Waiting for new connection... [18:00:04] Sock 9.Parse request [18:00:04]Sock 9.Check first char [18:00:04]Sock 9.First char is OK [18:00:04]request: POST /json_proto HTTP/1.0 [18:00:04]Method: POST [18:00:04]URL: /json_proto [18:00:04]Method is POST - this is cgi request [18:00:04]url: /json_proto [18:00:04]query_string will be loaded in cgi processing [18:00:04]execute_cgi json_proto POST (null) [18:00:04]execute_cgi path=json_proto method=POST [18:00:04]POST find Content-Length [18:00:04]Host: 172.17.45.7:8080 [18:00:04]Content-Length: 682 [18:00:04]Content-Type: application/json [18:00:04] [18:00:04]POST finish read [18:00:04]Found Content-Length = 682 [18:00:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:04]execute_script... [18:00: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)949423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:04]POST & json_proto [18:00:04]process_json_proto [18:00:04]json parsed OK: [18:00:04]protocol is kg_v1.0 [18:00:04]action value=close_receipt [18:00:04]process_action close_receipt [18:00:04]cmd_close_receipt [18:00:04]MH_GetDate [18:00:04]Write to MH i2c: F0 00 00 56 0F 54 [18:00:04]Write i2c OK [18:00:04]MH_I2C_Read... [18:00:04]Read from MH i2c: F0 [18:00:04]MH_I2C_Read... [18:00:04]Read from MH i2c: F0 09 00 [18:00:04]MH_I2C_Read... [18:00:04]Read from MH i2c: F0 09 00 56 0F 00 25 87 A6 66 90 0F 3E 66 58 [18:00:04]GetLastDocTimeStamp 1722188414 [18:00:04]current date 1722189605 [18:00:04]FM_GetShiftState [18:00:04]SAM_PROTO_GetShiftState [18:00:04]wFMCommunicate request_size=4 [18:00:04]MH_SAM_APDU [18:00:04]CAPDU: 80 13 01 00 [18:00:04]Write to MH i2c: E2 08 00 57 0F 80 13 01 00 00 00 00 00 E3 [18:00:04]Write i2c OK [18:00:04]MH_I2C_Read... [18:00:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:04]Read from MH i2c: E2 [18:00:04]MH_I2C_Read... [18:00:04]Read from MH i2c: E2 0E 00 [18:00:04]MH_I2C_Read... [18:00:04]Read from MH i2c: E2 0E 00 57 0F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 BA [18:00:04]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:00:04]wFMCommunicate OK [18:00:04]SAM_PROTO_GetShiftState done [18:00:04]FM_GetShiftState done [18:00:04]opened in 1722125364 [18:00:04]opened+sec_in_day 1722211764 [18:00:04]quantity*price = 100005 [18:00:04]sum+1 = 100006 [18:00:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 214 28.07.2024 18:00 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118545 ФПД: 279539779858050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T180005&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118545&fm=279539779858050&tin=02508201610067®Number=0000000000092660&sum=100000 [18:00:05]StoreToDocumentArchive [18:00:05]shift 433 fd 118545 [18:00:05]save to /storage/0433/doc_00118545 [18:00:05]save last doc name /storage/0433/doc_00118545 to /storage/kkm_last_doc_name [18:00:05]save OK [18:00:05]Clear old archive folders... [18:00:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:00:05]tlvbuf is B6F2AAF0 [18:00:05]SAM_PROTO_ClearQueue [18:00:05]wFMCommunicate request_size=4 [18:00:05]MH_SAM_APDU [18:00:05]CAPDU: 80 09 00 00 [18:00:05]Write to MH i2c: E2 08 00 64 0F 80 09 00 00 00 00 00 00 E5 [18:00:05]Write i2c OK [18:00:05]MH_I2C_Read... [18:00:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:00:05]Read from MH i2c: E2 [18:00:05]MH_I2C_Read... [18:00:05]Read from MH i2c: E2 03 00 [18:00:05]MH_I2C_Read... [18:00:05]Read from MH i2c: E2 03 00 64 0F 00 90 00 E7 [18:00:05]RAPDU: 90 00 [18:00:05]wFMCommunicate OK [18:00:05]SAM_PROTO_ClearQueue done [18:00:05]KKMCreateOFDPacket [18:00:05]OFDProtocolAddRootSTLVToBuf [18:00:05]FM_MakeSignedData [18:00:05]FM_MakeSignedData [18:00:05]SAM_PROTO_SignData [18:00:05]wFMCommunicate request_size=4 [18:00:05]MH_SAM_APDU [18:00:05]CAPDU: 80 0D 01 02 [18:00:05]Write to MH i2c: E2 08 00 65 0F 80 0D 01 02 00 00 00 00 ED [18:00:05]Write i2c OK [18:00:05]MH_I2C_Read... [18:00:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:00:05]Read from MH i2c: E2 [18:00:05]MH_I2C_Read... [18:00:05]Read from MH i2c: E2 03 00 [18:00:05]MH_I2C_Read... [18:00:05]Read from MH i2c: E2 03 00 65 0F 00 90 00 E8 [18:00:05]RAPDU: 90 00 [18:00:05]wFMCommunicate OK [18:00:05]wFMCommunicate request_size=255 [18:00:05]MH_SAM_APDU [18:00:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 25 87 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 11 CF 01 00 35 04 06 00 FE [18:00:05]Write to MH i2c: E2 02 01 66 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 25 87 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 11 CF 01 00 35 04 06 00 FE 00 00 1F [18:00:05]Write i2c OK [18:00:05]MH_I2C_Read... [18:00:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:05]Read from MH i2c: E2 [18:00:05]MH_I2C_Read... [18:00:05]Read from MH i2c: E2 03 00 [18:00:05]MH_I2C_Read... [18:00:05]Read from MH i2c: E2 03 00 66 0F 00 90 00 E9 [18:00:05]RAPDU: 90 00 [18:00:05]wFMCommunicate OK [18:00:05]wFMCommunicate request_size=10 [18:00:05]MH_SAM_APDU [18:00:05]CAPDU: 80 0D 02 02 05 3D 6D 47 6E 82 [18:00:05]Write to MH i2c: E2 0D 00 67 0F 80 0D 02 02 05 00 3D 6D 47 6E 82 00 00 DB [18:00:05]Write i2c OK [18:00:05]MH_I2C_Read... [18:00:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:05]Read from MH i2c: E2 [18:00:05]MH_I2C_Read... [18:00:05]Read from MH i2c: E2 03 00 [18:00:05]MH_I2C_Read... [18:00:05]Read from MH i2c: E2 03 00 67 0F 00 90 00 EA [18:00:05]RAPDU: 90 00 [18:00:05]wFMCommunicate OK [18:00:05]wFMCommunicate request_size=4 [18:00:05]MH_SAM_APDU [18:00:05]CAPDU: 80 0D 03 02 [18:00:05]Write to MH i2c: E2 08 00 68 0F 80 0D 03 02 00 00 00 00 F2 [18:00:05]Write i2c OK [18:00:05]MH_I2C_Read... [18:00:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:00:05]Read from MH i2c: E2 [18:00:05]MH_I2C_Read... [18:00:05]Read from MH i2c: E2 0B 00 [18:00:05]MH_I2C_Read... [18:00:05]Read from MH i2c: E2 0B 00 68 0F 00 45 F2 40 F1 C6 18 4F F2 90 00 7A [18:00:05]RAPDU: 45 F2 40 F1 C6 18 4F F2 90 00 [18:00:05]wFMCommunicate OK [18:00:05]SAM_PROTO_SignData done [18:00:05]FM_MakeSignedData done [18:00:05]CreateOFDProtocolMessage [18:00:05]wFMCommunicate request_size=4 [18:00:05]MH_SAM_APDU [18:00:05]CAPDU: 80 11 00 00 [18:00:05]Write to MH i2c: E2 08 00 69 0F 80 11 00 00 00 00 00 00 F2 [18:00:05]Write i2c OK [18:00:05]MH_I2C_Read... [18:00:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:05]Read from MH i2c: E2 [18:00:05]MH_I2C_Read... [18:00:05]Read from MH i2c: E2 17 00 [18:00:05]MH_I2C_Read... [18:00:05]Read from MH i2c: E2 17 00 69 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4D [18:00:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:00:05]wFMCommunicate OK [18:00:05]CreateOFDProtocolMessage done [18:00:05]OFDSenderStorePacket 118545 [18:00:05]StoreOFDPacket docnum=118545 [18:00:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 31 1B 07 01 F9 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 25 87 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 11 CF 01 00 35 04 06 00 FE 3D 6D 47 6E 82 45 F2 40 F1 C6 18 4F F2 [18:00:05]CheckFolder [18:00:05]dirname=/storage/ofd_packets [18:00:05]CheckFolder done [18:00:05]ProducePacketName [18:00:05]name=ofd_packets/00118545 [18:00:05]NVStorageSaveData ofd_packets/00118545 [18:00:05]File name is /storage/ofd_packets/00118545 [18:00:05]Write 301 bytes [18:00:05]NVStorageSaveData done [18:00:05]OFDSenderStorePacket done [18:00:05]KKMCreateOFDPacket done [18:00:05]NVStorageSaveData kkm_last_timestamp [18:00:05]File name is /storage/kkm_last_timestamp [18:00:05]Write 4 bytes [18:00:05]NVStorageSaveData done [18:00:05]OFD Sender: Processing packet 118545 [packets to send 86, broken 85] [18:00:05]ProducePacketName [18:00:05]name=ofd_packets/00118545 [18:00:05]OFD Sender: To server: pG, [18:00:05]CommunicateWithHost lk.salyk.kg:30040 [18:00:05]ConnectInit lk.salyk.kg [18:00:05]ExternCall_PrintAddStr [18:00:05]wPrintStart [18:00:05]Write to MH i2c: 01 00 00 6A 0F 79 [18:00:05]Write i2c OK [18:00:05]MH_I2C_Read... [18:00:05]Read from MH i2c: 01 [18:00:05]MH_I2C_Read... [18:00:05]Read from MH i2c: 01 07 00 [18:00:05]MH_I2C_Read... [18:00:05]Read from MH i2c: 01 07 00 6A 0F 00 00 00 00 00 FF 0F 8E [18:00:05]RasterBufferAndPrint [18:00:05]line Счет N : (1)949423 [18:00:05]line ИНН: 02508201610067 [18:00:05]line Контрольно-Кассовый Чек [18:00:05]line ПРОДАЖА [18:00:05]line ТРК (МРК, ГНК) : 41 [18:00:05]line Товар: 2710124130 [18:00:05]line Аи-92-К-4 [18:00:05]line 14.750 * 67.80 [18:00:05]line = 1000.05 [18:00:05]line НДС 12% НСП 1% [18:00:05]line > о реализуемом товаре [18:00:05]line ОКРУГЛЕНИЕ: -0.05 [18:00:05]line ИТОГО: 1000.00 [18:00:05]line Внесено: 1000.00 [18:00:05]line СДАЧА: 0.00 [18:00:05]line НСП 1% : 8.85 [18:00:05]line НДС 12% : 106.20 [18:00:05]line Наличными: 1000.00 [18:00:05]line Безнал.: 0.00 [18:00:05]line Место: АЗС № 134 "Партнер Нефть" [18:00:05]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:00:05]line СНО: Общий режим [18:00:05]line Чек 214 28.07.2024 18:00 [18:00:05]line Смена: 433 ФФД: 1.0 [18:00:05]line ЗНМ: 0300000044 [18:00:05]line РНМ: 0000000000092660 [18:00:05]line Версия ККМ: 001 [18:00:05]line ФМ: 0000000000874939 [18:00:05]line ФД: 118545 [18:00:05]line ФПД: 279539779858050 [18:00:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T180005&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118545&fm=279539779858050&tin=02508201610067®Number=0000000000092660&sum=100000 [18:00:06]Connected sock=10 [18:00:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 31 1B 07 01 F9 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 25 87 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 11 CF 01 00 35 04 06 00 FE 3D 6D 47 6E 82 45 F2 40 F1 C6 18 4F F2 [18:00:06]written 0, free lines is 4095 [18:00:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 14 A7 47 00 3E 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 39 33 39 10 04 04 00 11 CF 01 00 F4 03 04 00 B5 34 A6 66 B6 04 01 00 00 D0 1C 7B 2A 28 7A 08 B8 [18:00:06]CommunicateWithHost err = 0 [18:00:06]CheckOFDResponse [18:00:06]1017 (14) - 77093643461234 [18:00:06]1041 (16) - 0000000000874939 [18:00:06]1040 (4) - 118545 [18:00:06]1012 (4) - 28.07.2024 12:08 [18:00:06]1206 (1) - 0 [18:00:06]OFD Sender: Remove packet 118545 [18:00:06]ProducePacketName [18:00:06]name=ofd_packets/00118545 [18:00:06]NVStorageDeleteData [18:00:06]Write to MH i2c: 01 00 00 94 0F A3 [18:00:06]Write i2c OK [18:00:06]MH_I2C_Read... [18:00:06]Read from MH i2c: 01 [18:00:06]MH_I2C_Read... [18:00:06]Read from MH i2c: 01 07 00 [18:00:06]MH_I2C_Read... [18:00:06]Read from MH i2c: 01 07 00 94 0F 00 00 00 00 00 E0 0C 96 [18:00:06]RasterBufferAndPrint [18:00:06]line [18:00:06]line [18:00:06]line [18:00:06]line [18:00:06]line [18:00:06]written 0, free lines is 3302 [18:00:06]MH_Cut [18:00:06]Write to MH i2c: D1 01 00 9B 0F 01 7C [18:00:06]Write i2c OK [18:00:06]MH_I2C_Read... [18:00:06]Read from MH i2c: D1 [18:00:06]MH_I2C_Read... [18:00:06]Read from MH i2c: D1 01 00 [18:00:06]MH_I2C_Read... [18:00:06]Read from MH i2c: D1 01 00 9B 0F 00 7B [18:00:06]Write to MH i2c: 01 00 00 9C 0F AB [18:00:06]Write i2c OK [18:00:06]MH_I2C_Read... [18:00:06]OFD Sender: No OFD packet to send [18:00:07]*** Cut start [18:00:07]*** Partial cut [18:00:07]*** CUTSNS_PIN = 1 [18:00:07]*** CUTSNS_PIN = 0 [18:00:07]*** Brake cut motor [18:00:07]Read from MH i2c: 01 [18:00:07]MH_I2C_Read... [18:00:07]*** Stop cut motor [18:00:07]*** Cut end [18:00:07]Read from MH i2c: 01 07 00 [18:00:07]MH_I2C_Read... [18:00:07]Read from MH i2c: 01 07 00 9C 0F 00 00 00 00 00 FF 0F C0 [18:00:07]process_action close_receipt done [18:00:07]requested_data is exist [18:00:07]produce_requested_data [18:00:07]requested_item fm.sn is exist - process it [18:00:07]wFMCommunicate request_size=4 [18:00:07]MH_SAM_APDU [18:00:07]CAPDU: 80 11 00 00 [18:00:07]Write to MH i2c: E2 08 00 9D 0F 80 11 00 00 00 00 00 00 26 [18:00:07]Write i2c OK [18:00:07]MH_I2C_Read... [18:00:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:07]Read from MH i2c: E2 [18:00:07]MH_I2C_Read... [18:00:07]Read from MH i2c: E2 17 00 [18:00:07]MH_I2C_Read... [18:00:07]Read from MH i2c: E2 17 00 9D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 81 [18:00:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:00:07]wFMCommunicate OK [18:00:07]requested_item fd.num is exist - process it [18:00:07]SAM_PROTO_GetFieldsCounters [18:00:07]wFMCommunicate request_size=4 [18:00:07]MH_SAM_APDU [18:00:07]CAPDU: 80 13 00 00 [18:00:07]Write to MH i2c: E2 08 00 9E 0F 80 13 00 00 00 00 00 00 29 [18:00:07]Write i2c OK [18:00:07]MH_I2C_Read... [18:00:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:08]Read from MH i2c: E2 [18:00:08]MH_I2C_Read... [18:00:08]Read from MH i2c: E2 62 00 [18:00:08]MH_I2C_Read... [18:00:08]Read from MH i2c: E2 62 00 9E 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 11 CF 01 00 0E 04 04 00 B1 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 65 [18:00:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 11 CF 01 00 0E 04 04 00 B1 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 [18:00:08]wFMCommunicate OK [18:00:08]SAM_PROTO_GetFieldsCounters done [18:00:08]requested_item shift.num is exist - process it [18:00:08]requested_item shift.opened is exist - process it [18:00:08]req_shift_opened [18:00:08]FM_GetShiftState [18:00:08]SAM_PROTO_GetShiftState [18:00:08]wFMCommunicate request_size=4 [18:00:08]MH_SAM_APDU [18:00:08]CAPDU: 80 13 01 00 [18:00:08]Write to MH i2c: E2 08 00 9F 0F 80 13 01 00 00 00 00 00 2B [18:00:08]Write i2c OK [18:00:08]MH_I2C_Read... [18:00:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:08]Read from MH i2c: E2 [18:00:08]MH_I2C_Read... [18:00:08]Read from MH i2c: E2 0E 00 [18:00:08]MH_I2C_Read... [18:00:08]Read from MH i2c: E2 0E 00 9F 0F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 02 [18:00:08]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:00:08]wFMCommunicate OK [18:00:08]SAM_PROTO_GetShiftState done [18:00:08]FM_GetShiftState done [18:00:08]req_shift_opened done [18:00:08]requested_item shift.open_date is exist - process it [18:00:08]req_shift_open_date [18:00:08]req_shift_open_date done [18:00:08]produce_requested_data done [18:00:08]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118545,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:00:08]process_action_free close_receipt [18:00:08]json_value_free [18:00:08]json_value_free done [18:00:08]process_json_proto returns [18:00:08]Send response to host [18:00:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118545,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:00:08]free response buf [18:00:08]execute_script done [18:00:08]execute_script returns [18:00:08]free content buf [18:00:08]Sock 9.Close socket [18:00:08]Sock 9.Thread stoped [18:00:08]accept exits with 7 [18:00:08]New connection [18:00:08]New thread 3067383140 created [18:00:08]Thread 3067239780 joined [18:00:08]Waiting for new connection... [18:00:08] Sock 7.Parse request [18:00:08]Sock 7.Check first char [18:00:08]Sock 7.First char is OK [18:00:08]request: POST /json_proto HTTP/1.0 [18:00:08]Method: POST [18:00:08]URL: /json_proto [18:00:08]Method is POST - this is cgi request [18:00:08]url: /json_proto [18:00:08]query_string will be loaded in cgi processing [18:00:08]execute_cgi json_proto POST (null) [18:00:08]execute_cgi path=json_proto method=POST [18:00:08]POST find Content-Length [18:00:08]Host: 172.17.45.7:8080 [18:00:08]Content-Length: 1203 [18:00:08]Content-Type: application/json [18:00:08] [18:00:08]POST finish read [18:00:08]Found Content-Length = 1203 [18:00:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949421\u000A28.07.2024 17:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982671/3982670\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:08]execute_script... [18:00:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949421\u000A28.07.2024 17:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982671/3982670\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:08]POST & json_proto [18:00:08]process_json_proto [18:00:08]json parsed OK: [18:00:08]protocol is kg_v1.0 [18:00:08]action value=print_text [18:00:08]process_action print_text [18:00:08]cmd_print_text [18:00:08]ExternCall_PrintAddStr [18:00:08]wPrintStart [18:00:08]Write to MH i2c: 01 00 00 A0 0F AF [18:00:08]Write i2c OK [18:00:08]MH_I2C_Read... [18:00:08]Read from MH i2c: 01 [18:00:08]MH_I2C_Read... [18:00:08]Read from MH i2c: 01 07 00 [18:00:08]MH_I2C_Read... [18:00:08]Read from MH i2c: 01 07 00 A0 0F 00 00 00 00 00 FF 0F C4 [18:00:08]RasterBufferAndPrint [18:00:08]line *****ТОВАРНЫЙ ЧЕК***** [18:00:08]line АЗС-134 [18:00:08]line Партнер нефть [18:00:08]line 02508201610067 [18:00:08]line Кассир : Хошимов З. [18:00:08]line Счет N : (1)949421 [18:00:08]line 28.07.2024 17:57 [18:00:08]line ПРОДАЖА [18:00:08]line ТРК (МРК, ГНК): 64 [18:00:08]line Вид ГСМ : 2710194800 [18:00:08]line ДТ-К-5 [18:00:08]line 100.000 x 76.20 [18:00:08]line ИТОГ: 7620.00 [18:00:08]line Тип оплаты: Талоны: Топливные Талоны [18:00:08]line 3982671/3982670 [18:00:08]line ______________________ [18:00:08]line (подпись) [18:00:08]written 0, free lines is 4095 [18:00:08]Write to MH i2c: 01 00 00 B4 0F C3 [18:00:08]Write i2c OK [18:00:08]MH_I2C_Read... [18:00:08]Read from MH i2c: 01 [18:00:08]MH_I2C_Read... [18:00:08]Read from MH i2c: 01 07 00 [18:00:08]MH_I2C_Read... [18:00:08]Read from MH i2c: 01 07 00 B4 0F 00 00 00 00 00 14 0E EC [18:00:08]RasterBufferAndPrint [18:00:08]line [18:00:08]line [18:00:08]line [18:00:08]line [18:00:08]line [18:00:08]written 0, free lines is 3607 [18:00:08]MH_Cut [18:00:08]Write to MH i2c: D1 01 00 BB 0F 01 9C [18:00:08]Write i2c OK [18:00:08]MH_I2C_Read... [18:00:08]Read from MH i2c: D1 [18:00:08]MH_I2C_Read... [18:00:08]Read from MH i2c: D1 01 00 [18:00:08]MH_I2C_Read... [18:00:08]Read from MH i2c: D1 01 00 BB 0F 00 9B [18:00:08]Write to MH i2c: 01 00 00 BC 0F CB [18:00:08]Write i2c OK [18:00:08]MH_I2C_Read... [18:00:09]*** Cut start [18:00:09]*** Partial cut [18:00:09]*** CUTSNS_PIN = 1 [18:00:09]*** CUTSNS_PIN = 0 [18:00:09]*** Brake cut motor [18:00:09]Read from MH i2c: 01 [18:00:09]MH_I2C_Read... [18:00:09]*** Stop cut motor [18:00:09]*** Cut end [18:00:09]Read from MH i2c: 01 07 00 [18:00:09]MH_I2C_Read... [18:00:09]Read from MH i2c: 01 07 00 BC 0F 00 00 00 00 00 FF 0F E0 [18:00:09]process_action print_text done [18:00:09]requested_data is exist [18:00:09]produce_requested_data [18:00:09]requested_item fm.sn is exist - process it [18:00:09]wFMCommunicate request_size=4 [18:00:09]MH_SAM_APDU [18:00:09]CAPDU: 80 11 00 00 [18:00:09]Write to MH i2c: E2 08 00 BD 0F 80 11 00 00 00 00 00 00 46 [18:00:09]Write i2c OK [18:00:09]MH_I2C_Read... [18:00:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:09]Read from MH i2c: E2 [18:00:09]MH_I2C_Read... [18:00:09]Read from MH i2c: E2 17 00 [18:00:09]MH_I2C_Read... [18:00:09]Read from MH i2c: E2 17 00 BD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A1 [18:00:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:00:09]wFMCommunicate OK [18:00:09]requested_item fd.num is exist - process it [18:00:09]SAM_PROTO_GetFieldsCounters [18:00:09]wFMCommunicate request_size=4 [18:00:09]MH_SAM_APDU [18:00:09]CAPDU: 80 13 00 00 [18:00:09]Write to MH i2c: E2 08 00 BE 0F 80 13 00 00 00 00 00 00 49 [18:00:09]Write i2c OK [18:00:09]MH_I2C_Read... [18:00:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:10]Read from MH i2c: E2 [18:00:10]MH_I2C_Read... [18:00:10]Read from MH i2c: E2 62 00 [18:00:10]MH_I2C_Read... [18:00:10]Read from MH i2c: E2 62 00 BE 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 11 CF 01 00 0E 04 04 00 B1 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 85 [18:00:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 11 CF 01 00 0E 04 04 00 B1 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 [18:00:10]wFMCommunicate OK [18:00:10]SAM_PROTO_GetFieldsCounters done [18:00:10]requested_item shift.num is exist - process it [18:00:10]requested_item shift.opened is exist - process it [18:00:10]req_shift_opened [18:00:10]FM_GetShiftState [18:00:10]SAM_PROTO_GetShiftState [18:00:10]wFMCommunicate request_size=4 [18:00:10]MH_SAM_APDU [18:00:10]CAPDU: 80 13 01 00 [18:00:10]Write to MH i2c: E2 08 00 BF 0F 80 13 01 00 00 00 00 00 4B [18:00:10]Write i2c OK [18:00:10]MH_I2C_Read... [18:00:10]Read from MH i2c: E2 [18:00:10]MH_I2C_Read... [18:00:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:10]Read from MH i2c: E2 0E 00 [18:00:10]MH_I2C_Read... [18:00:10]Read from MH i2c: E2 0E 00 BF 0F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 22 [18:00:10]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:00:10]wFMCommunicate OK [18:00:10]SAM_PROTO_GetShiftState done [18:00:10]FM_GetShiftState done [18:00:10]req_shift_opened done [18:00:10]requested_item shift.open_date is exist - process it [18:00:10]req_shift_open_date [18:00:10]req_shift_open_date done [18:00:10]produce_requested_data done [18:00:10]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118545,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:00:10]process_action_free print_text [18:00:10]json_value_free [18:00:10]json_value_free done [18:00:10]process_json_proto returns [18:00:10]Send response to host [18:00:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118545,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:00:10]free response buf [18:00:10]execute_script done [18:00:10]execute_script returns [18:00:10]free content buf [18:00:10]Sock 7.Close socket [18:00:10]Sock 7.Thread stoped [18:00:11]OFD Sender: No OFD packet to send [18:00:16]OFD Sender: No OFD packet to send [18:00:16]accept exits with 9 [18:00:16]New connection [18:00:16]New thread 3067239780 created [18:00:16]Thread 3067383140 joined [18:00:16]Waiting for new connection... [18:00:16] Sock 9.Parse request [18:00:16]Sock 9.Check first char [18:00:16]Sock 9.First char is OK [18:00:16]request: POST /json_proto HTTP/1.0 [18:00:16]Method: POST [18:00:16]URL: /json_proto [18:00:16]Method is POST - this is cgi request [18:00:16]url: /json_proto [18:00:16]query_string will be loaded in cgi processing [18:00:16]execute_cgi json_proto POST (null) [18:00:16]execute_cgi path=json_proto method=POST [18:00:16]POST find Content-Length [18:00:16]Host: 172.17.45.7:8080 [18:00:16]Content-Length: 1203 [18:00:16]Content-Type: application/json [18:00:16] [18:00:16]POST finish read [18:00:16]Found Content-Length = 1203 [18: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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949422\u000A28.07.2024 17:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982673/3982672\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:16]execute_script... [18: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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949422\u000A28.07.2024 17:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982673/3982672\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:16]POST & json_proto [18:00:16]process_json_proto [18:00:16]json parsed OK: [18:00:16]protocol is kg_v1.0 [18:00:16]action value=print_text [18:00:16]process_action print_text [18:00:16]cmd_print_text [18:00:16]ExternCall_PrintAddStr [18:00:16]wPrintStart [18:00:16]Write to MH i2c: 01 00 00 C0 0F CF [18:00:16]Write i2c OK [18:00:16]MH_I2C_Read... [18:00:16]Read from MH i2c: 01 [18:00:16]MH_I2C_Read... [18:00:16]Read from MH i2c: 01 07 00 [18:00:16]MH_I2C_Read... [18:00:16]Read from MH i2c: 01 07 00 C0 0F 00 00 00 00 00 FF 0F E4 [18:00:16]RasterBufferAndPrint [18:00:16]line *****ТОВАРНЫЙ ЧЕК***** [18:00:16]line АЗС-134 [18:00:16]line Партнер нефть [18:00:16]line 02508201610067 [18:00:16]line Кассир : Хошимов З. [18:00:16]line Счет N : (1)949422 [18:00:16]line 28.07.2024 17:57 [18:00:16]line ПРОДАЖА [18:00:16]line ТРК (МРК, ГНК): 54 [18:00:16]line Вид ГСМ : 2710194800 [18:00:16]line ДТ-К-5 [18:00:16]line 100.000 x 76.20 [18:00:16]line ИТОГ: 7620.00 [18:00:16]line Тип оплаты: Талоны: Топливные Талоны [18:00:16]line 3982673/3982672 [18:00:16]line ______________________ [18:00:16]line (подпись) [18:00:16]written 0, free lines is 4095 [18:00:17]Write to MH i2c: 01 00 00 D4 0F E3 [18:00:17]Write i2c OK [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: 01 [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: 01 07 00 [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: 01 07 00 D4 0F 00 00 00 00 00 15 0E 0D [18:00:17]RasterBufferAndPrint [18:00:17]line [18:00:17]line [18:00:17]line [18:00:17]line [18:00:17]line [18:00:17]written 0, free lines is 3608 [18:00:17]MH_Cut [18:00:17]Write to MH i2c: D1 01 00 DB 0F 01 BC [18:00:17]Write i2c OK [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: D1 [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: D1 01 00 [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: D1 01 00 DB 0F 00 BB [18:00:17]Write to MH i2c: 01 00 00 DC 0F EB [18:00:17]Write i2c OK [18:00:17]MH_I2C_Read... [18:00:17]*** Cut start [18:00:17]*** Partial cut [18:00:17]*** CUTSNS_PIN = 1 [18:00:17]*** CUTSNS_PIN = 0 [18:00:17]*** Brake cut motor [18:00:18]Read from MH i2c: 01 [18:00:18]MH_I2C_Read... [18:00:18]*** Stop cut motor [18:00:18]*** Cut end [18:00:18]Read from MH i2c: 01 07 00 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: 01 07 00 DC 0F 00 00 00 00 00 FF 0F 00 [18:00:18]process_action print_text done [18:00:18]requested_data is exist [18:00:18]produce_requested_data [18:00:18]requested_item fm.sn is exist - process it [18:00:18]wFMCommunicate request_size=4 [18:00:18]MH_SAM_APDU [18:00:18]CAPDU: 80 11 00 00 [18:00:18]Write to MH i2c: E2 08 00 DD 0F 80 11 00 00 00 00 00 00 66 [18:00:18]Write i2c OK [18:00:18]MH_I2C_Read... [18:00:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:18]Read from MH i2c: E2 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 17 00 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 17 00 DD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C1 [18:00:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:00:18]wFMCommunicate OK [18:00:18]requested_item fd.num is exist - process it [18:00:18]SAM_PROTO_GetFieldsCounters [18:00:18]wFMCommunicate request_size=4 [18:00:18]MH_SAM_APDU [18:00:18]CAPDU: 80 13 00 00 [18:00:18]Write to MH i2c: E2 08 00 DE 0F 80 13 00 00 00 00 00 00 69 [18:00:18]Write i2c OK [18:00:18]MH_I2C_Read... [18:00:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:18]Read from MH i2c: E2 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 62 00 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 62 00 DE 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 11 CF 01 00 0E 04 04 00 B1 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 A5 [18:00:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 11 CF 01 00 0E 04 04 00 B1 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 [18:00:18]wFMCommunicate OK [18:00:18]SAM_PROTO_GetFieldsCounters done [18:00:18]requested_item shift.num is exist - process it [18:00:18]requested_item shift.opened is exist - process it [18:00:18]req_shift_opened [18:00:18]FM_GetShiftState [18:00:18]SAM_PROTO_GetShiftState [18:00:18]wFMCommunicate request_size=4 [18:00:18]MH_SAM_APDU [18:00:18]CAPDU: 80 13 01 00 [18:00:18]Write to MH i2c: E2 08 00 DF 0F 80 13 01 00 00 00 00 00 6B [18:00:18]Write i2c OK [18:00:18]MH_I2C_Read... [18:00:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:18]Read from MH i2c: E2 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 0E 00 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 0E 00 DF 0F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 42 [18:00:18]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:00:18]wFMCommunicate OK [18:00:18]SAM_PROTO_GetShiftState done [18:00:18]FM_GetShiftState done [18:00:18]req_shift_opened done [18:00:18]requested_item shift.open_date is exist - process it [18:00:18]req_shift_open_date [18:00:18]req_shift_open_date done [18:00:18]produce_requested_data done [18:00:18]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118545,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:00:18]process_action_free print_text [18:00:18]json_value_free [18:00:18]json_value_free done [18:00:18]process_json_proto returns [18:00:18]Send response to host [18:00:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118545,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:00:18]free response buf [18:00:18]execute_script done [18:00:18]execute_script returns [18:00:18]free content buf [18:00:18]Sock 9.Close socket [18:00:18]Sock 9.Thread stoped [18:00:21]OFD Sender: No OFD packet to send [18:00:26]OFD Sender: No OFD packet to send [18:00:31]OFD Sender: No OFD packet to send [18:00:36]OFD Sender: No OFD packet to send [18:00:41]OFD Sender: No OFD packet to send [18:00:46]OFD Sender: No OFD packet to send [18:00:51]OFD Sender: No OFD packet to send [18:00:56]OFD Sender: No OFD packet to send [18:01:01]OFD Sender: No OFD packet to send [18:01:06]OFD Sender: No OFD packet to send [18:01:11]OFD Sender: No OFD packet to send [18:01:16]OFD Sender: No OFD packet to send [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:41]OFD Sender: No OFD packet to send [18:02:46]OFD Sender: No OFD packet to send [18:02:51]OFD Sender: No OFD packet to send [18:02:56]OFD Sender: No OFD packet to send [18:03:01]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:01]accept exits with 7 [18:04:01]New connection [18:04:01]New thread 3067383140 created [18:04:01]Thread 3067239780 joined [18:04:01]Waiting for new connection... [18:04:01] Sock 7.Parse request [18:04:01]Sock 7.Check first char [18:04:01]Sock 7.First char is OK [18:04:01]request: POST /json_proto HTTP/1.0 [18:04:01]Method: POST [18:04:01]URL: /json_proto [18:04:01]Method is POST - this is cgi request [18:04:01]url: /json_proto [18:04:01]query_string will be loaded in cgi processing [18:04:01]execute_cgi json_proto POST (null) [18:04:01]execute_cgi path=json_proto method=POST [18:04:01]POST find Content-Length [18:04:01]Host: 172.17.45.7:8080 [18:04:01]Content-Length: 1203 [18:04:01]Content-Type: application/json [18:04:01] [18:04:01]POST finish read [18:04:01]Found Content-Length = 1203 [18:04: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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949424\u000A28.07.2024 18:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982675/3982674\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:01]execute_script... [18:04: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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949424\u000A28.07.2024 18:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982675/3982674\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:01]POST & json_proto [18:04:01]process_json_proto [18:04:01]json parsed OK: [18:04:01]protocol is kg_v1.0 [18:04:01]action value=print_text [18:04:01]process_action print_text [18:04:01]cmd_print_text [18:04:01]ExternCall_PrintAddStr [18:04:01]wPrintStart [18:04:01]Write to MH i2c: 01 00 00 E0 0F EF [18:04:01]Write i2c OK [18:04:01]MH_I2C_Read... [18:04:01]Read from MH i2c: 01 [18:04:01]MH_I2C_Read... [18:04:01]Read from MH i2c: 01 07 00 [18:04:01]MH_I2C_Read... [18:04:01]Read from MH i2c: 01 07 00 E0 0F 00 00 00 00 00 FF 0F 04 [18:04:01]RasterBufferAndPrint [18:04:01]line *****ТОВАРНЫЙ ЧЕК***** [18:04:01]line АЗС-134 [18:04:01]line Партнер нефть [18:04:01]line 02508201610067 [18:04:01]line Кассир : Хошимов З. [18:04:01]line Счет N : (1)949424 [18:04:01]line 28.07.2024 18:01 [18:04:01]line ПРОДАЖА [18:04:01]line ТРК (МРК, ГНК): 64 [18:04:01]line Вид ГСМ : 2710194800 [18:04:01]line ДТ-К-5 [18:04:01]line 100.000 x 76.20 [18:04:01]line ИТОГ: 7620.00 [18:04:01]line Тип оплаты: Талоны: Топливные Талоны [18:04:01]line 3982675/3982674 [18:04:01]line ______________________ [18:04:01]line (подпись) [18:04:01]written 0, free lines is 4095 [18:04:01]Write to MH i2c: 01 00 00 F4 0F 03 [18:04:01]Write i2c OK [18:04:01]MH_I2C_Read... [18:04:01]Read from MH i2c: 01 [18:04:01]MH_I2C_Read... [18:04:01]Read from MH i2c: 01 07 00 [18:04:01]MH_I2C_Read... [18:04:01]Read from MH i2c: 01 07 00 F4 0F 00 00 00 00 00 15 0E 2D [18:04:01]RasterBufferAndPrint [18:04:01]line [18:04:01]line [18:04:01]line [18:04:01]line [18:04:01]line [18:04:01]written 0, free lines is 3606 [18:04:01]MH_Cut [18:04:01]Write to MH i2c: D1 01 00 FB 0F 01 DC [18:04:01]Write i2c OK [18:04:01]MH_I2C_Read... [18:04:01]Read from MH i2c: D1 [18:04:01]MH_I2C_Read... [18:04:01]Read from MH i2c: D1 01 00 [18:04:01]MH_I2C_Read... [18:04:01]Read from MH i2c: D1 01 00 FB 0F 00 DB [18:04:01]Write to MH i2c: 01 00 00 FC 0F 0B [18:04:01]Write i2c OK [18:04:01]MH_I2C_Read... [18:04:02]OFD Sender: No OFD packet to send [18:04:02]*** Cut start [18:04:02]*** Partial cut [18:04:02]*** CUTSNS_PIN = 1 [18:04:02]*** CUTSNS_PIN = 0 [18:04:02]*** Brake cut motor [18:04:03]Read from MH i2c: 01 [18:04:03]MH_I2C_Read... [18:04:03]*** Stop cut motor [18:04:03]*** Cut end [18:04:03]Read from MH i2c: 01 07 00 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: 01 07 00 FC 0F 00 00 00 00 00 FF 0F 20 [18:04:03]process_action print_text done [18:04:03]requested_data is exist [18:04:03]produce_requested_data [18:04:03]requested_item fm.sn is exist - process it [18:04:03]wFMCommunicate request_size=4 [18:04:03]MH_SAM_APDU [18:04:03]CAPDU: 80 11 00 00 [18:04:03]Write to MH i2c: E2 08 00 FD 0F 80 11 00 00 00 00 00 00 86 [18:04:03]Write i2c OK [18:04:03]MH_I2C_Read... [18:04:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:03]Read from MH i2c: E2 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 17 00 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 17 00 FD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E1 [18:04:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:04:03]wFMCommunicate OK [18:04:03]requested_item fd.num is exist - process it [18:04:03]SAM_PROTO_GetFieldsCounters [18:04:03]wFMCommunicate request_size=4 [18:04:03]MH_SAM_APDU [18:04:03]CAPDU: 80 13 00 00 [18:04:03]Write to MH i2c: E2 08 00 FE 0F 80 13 00 00 00 00 00 00 89 [18:04:03]Write i2c OK [18:04:03]MH_I2C_Read... [18:04:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:03]Read from MH i2c: E2 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 62 00 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 62 00 FE 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 11 CF 01 00 0E 04 04 00 B1 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 C5 [18:04:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 11 CF 01 00 0E 04 04 00 B1 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 [18:04:03]wFMCommunicate OK [18:04:03]SAM_PROTO_GetFieldsCounters done [18:04:03]requested_item shift.num is exist - process it [18:04:03]requested_item shift.opened is exist - process it [18:04:03]req_shift_opened [18:04:03]FM_GetShiftState [18:04:03]SAM_PROTO_GetShiftState [18:04:03]wFMCommunicate request_size=4 [18:04:03]MH_SAM_APDU [18:04:03]CAPDU: 80 13 01 00 [18:04:03]Write to MH i2c: E2 08 00 FF 0F 80 13 01 00 00 00 00 00 8B [18:04:03]Write i2c OK [18:04:03]MH_I2C_Read... [18:04:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:03]Read from MH i2c: E2 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 0E 00 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 0E 00 FF 0F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 62 [18:04:03]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:04:03]wFMCommunicate OK [18:04:03]SAM_PROTO_GetShiftState done [18:04:03]FM_GetShiftState done [18:04:03]req_shift_opened done [18:04:03]requested_item shift.open_date is exist - process it [18:04:03]req_shift_open_date [18:04:03]req_shift_open_date done [18:04:03]produce_requested_data done [18:04:03]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118545,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:04:03]process_action_free print_text [18:04:03]json_value_free [18:04:03]json_value_free done [18:04:03]process_json_proto returns [18:04:03]Send response to host [18:04:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118545,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:04:03]free response buf [18:04:03]execute_script done [18:04:03]execute_script returns [18:04:03]free content buf [18:04:03]Sock 7.Close socket [18:04:03]Sock 7.Thread stoped [18:04:07]OFD Sender: No OFD packet to send [18:04:12]OFD Sender: No OFD packet to send [18:04:16]accept exits with 9 [18:04:16]New connection [18:04:16]New thread 3067239780 created [18:04:16]Thread 3067383140 joined [18:04:16]Waiting for new connection... [18:04:16] Sock 9.Parse request [18:04:16]Sock 9.Check first char [18:04:16]Sock 9.First char is OK [18:04:16]request: POST /json_proto HTTP/1.0 [18:04:16]Method: POST [18:04:16]URL: /json_proto [18:04:16]Method is POST - this is cgi request [18:04:16]url: /json_proto [18:04:16]query_string will be loaded in cgi processing [18:04:16]execute_cgi json_proto POST (null) [18:04:16]execute_cgi path=json_proto method=POST [18:04:16]POST find Content-Length [18:04:16]Host: 172.17.45.7:8080 [18:04:16]Content-Length: 1203 [18:04:16]Content-Type: application/json [18:04:16] [18:04:16]POST finish read [18:04:16]Found Content-Length = 1203 [18:04: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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949425\u000A28.07.2024 18:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982677/3982676\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:16]execute_script... [18:04: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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949425\u000A28.07.2024 18:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982677/3982676\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:16]POST & json_proto [18:04:16]process_json_proto [18:04:16]json parsed OK: [18:04:16]protocol is kg_v1.0 [18:04:16]action value=print_text [18:04:16]process_action print_text [18:04:16]cmd_print_text [18:04:16]ExternCall_PrintAddStr [18:04:16]wPrintStart [18:04:16]Write to MH i2c: 01 00 00 00 10 10 [18:04:16]Write i2c OK [18:04:16]MH_I2C_Read... [18:04:16]Read from MH i2c: 01 [18:04:16]MH_I2C_Read... [18:04:16]Read from MH i2c: 01 07 00 [18:04:16]MH_I2C_Read... [18:04:16]Read from MH i2c: 01 07 00 00 10 00 00 00 00 00 FF 0F 25 [18:04:16]RasterBufferAndPrint [18:04:16]line *****ТОВАРНЫЙ ЧЕК***** [18:04:16]line АЗС-134 [18:04:16]line Партнер нефть [18:04:16]line 02508201610067 [18:04:16]line Кассир : Хошимов З. [18:04:16]line Счет N : (1)949425 [18:04:16]line 28.07.2024 18:01 [18:04:16]line ПРОДАЖА [18:04:16]line ТРК (МРК, ГНК): 54 [18:04:16]line Вид ГСМ : 2710194800 [18:04:16]line ДТ-К-5 [18:04:16]line 100.000 x 76.20 [18:04:16]line ИТОГ: 7620.00 [18:04:16]line Тип оплаты: Талоны: Топливные Талоны [18:04:16]line 3982677/3982676 [18:04:16]line ______________________ [18:04:16]line (подпись) [18:04:16]written 0, free lines is 4095 [18:04:16]Write to MH i2c: 01 00 00 14 10 24 [18:04:16]Write i2c OK [18:04:16]MH_I2C_Read... [18:04:16]Read from MH i2c: 01 [18:04:16]MH_I2C_Read... [18:04:16]Read from MH i2c: 01 07 00 [18:04:16]MH_I2C_Read... [18:04:16]Read from MH i2c: 01 07 00 14 10 00 00 00 00 00 15 0E 4E [18:04:16]RasterBufferAndPrint [18:04:16]line [18:04:16]line [18:04:16]line [18:04:16]line [18:04:16]line [18:04:16]written 0, free lines is 3606 [18:04:16]MH_Cut [18:04:16]Write to MH i2c: D1 01 00 1B 10 01 FD [18:04:16]Write i2c OK [18:04:16]MH_I2C_Read... [18:04:16]Read from MH i2c: D1 [18:04:16]MH_I2C_Read... [18:04:16]Read from MH i2c: D1 01 00 [18:04:16]MH_I2C_Read... [18:04:16]Read from MH i2c: D1 01 00 1B 10 00 FC [18:04:16]Write to MH i2c: 01 00 00 1C 10 2C [18:04:16]Write i2c OK [18:04:16]MH_I2C_Read... [18:04:16]*** Cut start [18:04:16]*** Partial cut [18:04:16]*** CUTSNS_PIN = 1 [18:04:16]*** CUTSNS_PIN = 0 [18:04:17]*** Brake cut motor [18:04:17]OFD Sender: No OFD packet to send [18:04:17]Read from MH i2c: 01 [18:04:17]MH_I2C_Read... [18:04:17]*** Stop cut motor [18:04:17]*** Cut end [18:04:17]Read from MH i2c: 01 07 00 [18:04:17]MH_I2C_Read... [18:04:17]Read from MH i2c: 01 07 00 1C 10 00 00 00 00 00 FF 0F 41 [18:04:17]process_action print_text done [18:04:17]requested_data is exist [18:04:17]produce_requested_data [18:04:17]requested_item fm.sn is exist - process it [18:04:17]wFMCommunicate request_size=4 [18:04:17]MH_SAM_APDU [18:04:17]CAPDU: 80 11 00 00 [18:04:17]Write to MH i2c: E2 08 00 1D 10 80 11 00 00 00 00 00 00 A7 [18:04:17]Write i2c OK [18:04:17]MH_I2C_Read... [18:04:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:17]Read from MH i2c: E2 [18:04:17]MH_I2C_Read... [18:04:17]Read from MH i2c: E2 17 00 [18:04:17]MH_I2C_Read... [18:04:17]Read from MH i2c: E2 17 00 1D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 02 [18:04:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:04:17]wFMCommunicate OK [18:04:17]requested_item fd.num is exist - process it [18:04:17]SAM_PROTO_GetFieldsCounters [18:04:17]wFMCommunicate request_size=4 [18:04:17]MH_SAM_APDU [18:04:17]CAPDU: 80 13 00 00 [18:04:17]Write to MH i2c: E2 08 00 1E 10 80 13 00 00 00 00 00 00 AA [18:04:17]Write i2c OK [18:04:17]MH_I2C_Read... [18:04:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:17]Read from MH i2c: E2 [18:04:17]MH_I2C_Read... [18:04:17]Read from MH i2c: E2 62 00 [18:04:17]MH_I2C_Read... [18:04:17]Read from MH i2c: E2 62 00 1E 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 11 CF 01 00 0E 04 04 00 B1 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 E6 [18: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 11 CF 01 00 0E 04 04 00 B1 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 [18:04:17]wFMCommunicate OK [18:04:17]SAM_PROTO_GetFieldsCounters done [18:04:17]requested_item shift.num is exist - process it [18:04:17]requested_item shift.opened is exist - process it [18:04:17]req_shift_opened [18:04:17]FM_GetShiftState [18:04:17]SAM_PROTO_GetShiftState [18:04:17]wFMCommunicate request_size=4 [18:04:17]MH_SAM_APDU [18:04:17]CAPDU: 80 13 01 00 [18:04:17]Write to MH i2c: E2 08 00 1F 10 80 13 01 00 00 00 00 00 AC [18:04:17]Write i2c OK [18:04:17]MH_I2C_Read... [18:04:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:17]Read from MH i2c: E2 [18:04:17]MH_I2C_Read... [18:04:17]Read from MH i2c: E2 0E 00 [18:04:17]MH_I2C_Read... [18:04:17]Read from MH i2c: E2 0E 00 1F 10 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 83 [18:04:17]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:04:17]wFMCommunicate OK [18:04:17]SAM_PROTO_GetShiftState done [18:04:17]FM_GetShiftState done [18:04:17]req_shift_opened done [18:04:17]requested_item shift.open_date is exist - process it [18:04:17]req_shift_open_date [18:04:17]req_shift_open_date done [18:04:17]produce_requested_data done [18:04:17]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118545,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:04:17]process_action_free print_text [18:04:17]json_value_free [18:04:17]json_value_free done [18:04:17]process_json_proto returns [18:04:17]Send response to host [18:04:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118545,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:04:17]free response buf [18:04:17]execute_script done [18:04:17]execute_script returns [18:04:17]free content buf [18:04:17]Sock 9.Close socket [18:04:17]Sock 9.Thread stoped [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:12]OFD Sender: No OFD packet to send [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:52]OFD Sender: No OFD packet to send [18:05:57]OFD Sender: No OFD packet to send [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:12]OFD Sender: No OFD packet to send [18:06:17]OFD Sender: No OFD packet to send [18:06:22]OFD Sender: No OFD packet to send [18:06:27]OFD Sender: No OFD packet to send [18:06:32]OFD Sender: No OFD packet to send [18:06:37]OFD Sender: No OFD packet to send [18:06:42]OFD Sender: No OFD packet to send [18:06:47]OFD Sender: No OFD packet to send [18:06:52]OFD Sender: No OFD packet to send [18:06:57]OFD Sender: No OFD packet to send [18:07:02]OFD Sender: No OFD packet to send [18:07:07]OFD Sender: No OFD packet to send [18:07:12]OFD Sender: No OFD packet to send [18:07:17]OFD Sender: No OFD packet to send [18:07:22]OFD Sender: No OFD packet to send [18:07:27]OFD Sender: No OFD packet to send [18:07:32]OFD Sender: No OFD packet to send [18:07:37]OFD Sender: No OFD packet to send [18:07:42]OFD Sender: No OFD packet to send [18:07:47]OFD Sender: No OFD packet to send [18:07:52]OFD Sender: No OFD packet to send [18:07:57]OFD Sender: No OFD packet to send [18:08:02]OFD Sender: No OFD packet to send [18:08:07]OFD Sender: No OFD packet to send [18:08:12]OFD Sender: No OFD packet to send [18:08:17]OFD Sender: No OFD packet to send [18:08:22]OFD Sender: No OFD packet to send [18:08:27]OFD Sender: No OFD packet to send [18:08:32]OFD Sender: No OFD packet to send [18:08:37]OFD Sender: No OFD packet to send [18:08:42]OFD Sender: No OFD packet to send [18:08:47]OFD Sender: No OFD packet to send [18:08:52]OFD Sender: No OFD packet to send [18:08:56]accept exits with 7 [18:08:56]New connection [18:08:56]New thread 3067383140 created [18:08:56]Thread 3067239780 joined [18:08:56]Waiting for new connection... [18:08:56] Sock 7.Parse request [18:08:56]Sock 7.Check first char [18:08:56]Sock 7.First char is OK [18:08:56]request: POST /json_proto HTTP/1.0 [18:08:56]Method: POST [18:08:56]URL: /json_proto [18:08:56]Method is POST - this is cgi request [18:08:56]url: /json_proto [18:08:56]query_string will be loaded in cgi processing [18:08:56]execute_cgi json_proto POST (null) [18:08:56]execute_cgi path=json_proto method=POST [18:08:56]POST find Content-Length [18:08:56]Host: 172.17.45.7:8080 [18:08:56]Content-Length: 1203 [18:08:56]Content-Type: application/json [18:08:56] [18:08:56]POST finish read [18:08:56]Found Content-Length = 1203 [18:08: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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949427\u000A28.07.2024 18:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982599/3982680\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:56]execute_script... [18:08: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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949427\u000A28.07.2024 18:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982599/3982680\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:56]POST & json_proto [18:08:56]process_json_proto [18:08:56]json parsed OK: [18:08:56]protocol is kg_v1.0 [18:08:56]action value=print_text [18:08:56]process_action print_text [18:08:56]cmd_print_text [18:08:56]ExternCall_PrintAddStr [18:08:56]wPrintStart [18:08:56]Write to MH i2c: 01 00 00 20 10 30 [18:08:56]Write i2c OK [18:08:56]MH_I2C_Read... [18:08:56]Read from MH i2c: 01 [18:08:56]MH_I2C_Read... [18:08:56]Read from MH i2c: 01 07 00 [18:08:56]MH_I2C_Read... [18:08:56]Read from MH i2c: 01 07 00 20 10 00 00 00 00 00 FF 0F 45 [18:08:56]RasterBufferAndPrint [18:08:56]line *****ТОВАРНЫЙ ЧЕК***** [18:08:56]line АЗС-134 [18:08:56]line Партнер нефть [18:08:56]line 02508201610067 [18:08:56]line Кассир : Хошимов З. [18:08:56]line Счет N : (1)949427 [18:08:56]line 28.07.2024 18:06 [18:08:56]line ПРОДАЖА [18:08:56]line ТРК (МРК, ГНК): 54 [18:08:56]line Вид ГСМ : 2710194800 [18:08:56]line ДТ-К-5 [18:08:56]line 100.000 x 76.20 [18:08:56]line ИТОГ: 7620.00 [18:08:56]line Тип оплаты: Талоны: Топливные Талоны [18:08:56]line 3982599/3982680 [18:08:56]line ______________________ [18:08:56]line (подпись) [18:08:56]written 0, free lines is 4095 [18:08:56]Write to MH i2c: 01 00 00 34 10 44 [18:08:56]Write i2c OK [18:08:56]MH_I2C_Read... [18:08:56]Read from MH i2c: 01 [18:08:56]MH_I2C_Read... [18:08:56]Read from MH i2c: 01 07 00 [18:08:56]MH_I2C_Read... [18:08:56]Read from MH i2c: 01 07 00 34 10 00 00 00 00 00 15 0E 6E [18:08:56]RasterBufferAndPrint [18:08:56]line [18:08:56]line [18:08:56]line [18:08:56]line [18:08:56]line [18:08:56]written 0, free lines is 3606 [18:08:56]MH_Cut [18:08:56]Write to MH i2c: D1 01 00 3B 10 01 1D [18:08:56]Write i2c OK [18:08:56]MH_I2C_Read... [18:08:56]Read from MH i2c: D1 [18:08:56]MH_I2C_Read... [18:08:56]Read from MH i2c: D1 01 00 [18:08:56]MH_I2C_Read... [18:08:56]Read from MH i2c: D1 01 00 3B 10 00 1C [18:08:56]Write to MH i2c: 01 00 00 3C 10 4C [18:08:56]Write i2c OK [18:08:56]MH_I2C_Read... [18:08:57]*** Cut start [18:08:57]*** Partial cut [18:08:57]*** CUTSNS_PIN = 1 [18:08:57]*** CUTSNS_PIN = 0 [18:08:57]*** Brake cut motor [18:08:57]OFD Sender: No OFD packet to send [18:08:57]Read from MH i2c: 01 [18:08:57]MH_I2C_Read... [18:08:57]*** Stop cut motor [18:08:57]*** Cut end [18:08:57]Read from MH i2c: 01 07 00 [18:08:57]MH_I2C_Read... [18:08:57]Read from MH i2c: 01 07 00 3C 10 00 00 00 00 00 FF 0F 61 [18:08:57]process_action print_text done [18:08:57]requested_data is exist [18:08:57]produce_requested_data [18:08:57]requested_item fm.sn is exist - process it [18:08:57]wFMCommunicate request_size=4 [18:08:57]MH_SAM_APDU [18:08:57]CAPDU: 80 11 00 00 [18:08:57]Write to MH i2c: E2 08 00 3D 10 80 11 00 00 00 00 00 00 C7 [18:08:57]Write i2c OK [18:08:57]MH_I2C_Read... [18:08:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:57]Read from MH i2c: E2 [18:08:57]MH_I2C_Read... [18:08:57]Read from MH i2c: E2 17 00 [18:08:57]MH_I2C_Read... [18:08:57]Read from MH i2c: E2 17 00 3D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 22 [18:08:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:08:57]wFMCommunicate OK [18:08:57]requested_item fd.num is exist - process it [18:08:57]SAM_PROTO_GetFieldsCounters [18:08:57]wFMCommunicate request_size=4 [18:08:57]MH_SAM_APDU [18:08:57]CAPDU: 80 13 00 00 [18:08:57]Write to MH i2c: E2 08 00 3E 10 80 13 00 00 00 00 00 00 CA [18:08:57]Write i2c OK [18:08:57]MH_I2C_Read... [18:08:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:57]Read from MH i2c: E2 [18:08:57]MH_I2C_Read... [18:08:57]Read from MH i2c: E2 62 00 [18:08:57]MH_I2C_Read... [18:08:57]Read from MH i2c: E2 62 00 3E 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 11 CF 01 00 0E 04 04 00 B1 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 06 [18:08:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 11 CF 01 00 0E 04 04 00 B1 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 [18:08:57]wFMCommunicate OK [18:08:57]SAM_PROTO_GetFieldsCounters done [18:08:57]requested_item shift.num is exist - process it [18:08:57]requested_item shift.opened is exist - process it [18:08:57]req_shift_opened [18:08:57]FM_GetShiftState [18:08:57]SAM_PROTO_GetShiftState [18:08:57]wFMCommunicate request_size=4 [18:08:57]MH_SAM_APDU [18:08:57]CAPDU: 80 13 01 00 [18:08:57]Write to MH i2c: E2 08 00 3F 10 80 13 01 00 00 00 00 00 CC [18:08:57]Write i2c OK [18:08:57]MH_I2C_Read... [18:08:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:57]Read from MH i2c: E2 [18:08:57]MH_I2C_Read... [18:08:57]Read from MH i2c: E2 0E 00 [18:08:57]MH_I2C_Read... [18:08:57]Read from MH i2c: E2 0E 00 3F 10 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A3 [18:08:57]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:08:57]wFMCommunicate OK [18:08:57]SAM_PROTO_GetShiftState done [18:08:57]FM_GetShiftState done [18:08:57]req_shift_opened done [18:08:57]requested_item shift.open_date is exist - process it [18:08:57]req_shift_open_date [18:08:57]req_shift_open_date done [18:08:57]produce_requested_data done [18:08:57]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118545,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:08:57]process_action_free print_text [18:08:57]json_value_free [18:08:57]json_value_free done [18:08:57]process_json_proto returns [18:08:57]Send response to host [18:08:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118545,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:08:57]free response buf [18:08:57]execute_script done [18:08:57]execute_script returns [18:08:57]free content buf [18:08:57]Sock 7.Close socket [18:08:57]Sock 7.Thread stoped [18:09:02]OFD Sender: No OFD packet to send [18:09:04]accept exits with 9 [18:09:04]New connection [18:09:04]New thread 3067239780 created [18:09:04]Thread 3067383140 joined [18:09:04]Waiting for new connection... [18:09:04] Sock 9.Parse request [18:09:04]Sock 9.Check first char [18:09:04]Sock 9.First char is OK [18:09:04]request: POST /json_proto HTTP/1.0 [18:09:04]Method: POST [18:09:04]URL: /json_proto [18:09:04]Method is POST - this is cgi request [18:09:04]url: /json_proto [18:09:04]query_string will be loaded in cgi processing [18:09:04]execute_cgi json_proto POST (null) [18:09:04]execute_cgi path=json_proto method=POST [18:09:04]POST find Content-Length [18:09:04]Host: 172.17.45.7:8080 [18:09:04]Content-Length: 1203 [18:09:04]Content-Type: application/json [18:09:04] [18:09:04]POST finish read [18:09:04]Found Content-Length = 1203 [18:09:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949426\u000A28.07.2024 18:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982679/3982678\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:04]execute_script... [18:09:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949426\u000A28.07.2024 18:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982679/3982678\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:04]POST & json_proto [18:09:04]process_json_proto [18:09:04]json parsed OK: [18:09:04]protocol is kg_v1.0 [18:09:04]action value=print_text [18:09:04]process_action print_text [18:09:04]cmd_print_text [18:09:04]ExternCall_PrintAddStr [18:09:04]wPrintStart [18:09:04]Write to MH i2c: 01 00 00 40 10 50 [18:09:04]Write i2c OK [18:09:04]MH_I2C_Read... [18:09:04]Read from MH i2c: 01 [18:09:04]MH_I2C_Read... [18:09:04]Read from MH i2c: 01 07 00 [18:09:04]MH_I2C_Read... [18:09:04]Read from MH i2c: 01 07 00 40 10 00 00 00 00 00 FF 0F 65 [18:09:04]RasterBufferAndPrint [18:09:04]line *****ТОВАРНЫЙ ЧЕК***** [18:09:04]line АЗС-134 [18:09:04]line Партнер нефть [18:09:04]line 02508201610067 [18:09:04]line Кассир : Хошимов З. [18:09:04]line Счет N : (1)949426 [18:09:04]line 28.07.2024 18:06 [18:09:04]line ПРОДАЖА [18:09:04]line ТРК (МРК, ГНК): 64 [18:09:04]line Вид ГСМ : 2710194800 [18:09:04]line ДТ-К-5 [18:09:04]line 100.000 x 76.20 [18:09:04]line ИТОГ: 7620.00 [18:09:04]line Тип оплаты: Талоны: Топливные Талоны [18:09:04]line 3982679/3982678 [18:09:04]line ______________________ [18:09:04]line (подпись) [18:09:04]written 0, free lines is 4095 [18:09:04]Write to MH i2c: 01 00 00 54 10 64 [18:09:04]Write i2c OK [18:09:04]MH_I2C_Read... [18:09:04]Read from MH i2c: 01 [18:09:04]MH_I2C_Read... [18:09:04]Read from MH i2c: 01 07 00 [18:09:04]MH_I2C_Read... [18:09:04]Read from MH i2c: 01 07 00 54 10 00 00 00 00 00 15 0E 8E [18:09:04]RasterBufferAndPrint [18:09:04]line [18:09:04]line [18:09:04]line [18:09:04]line [18:09:04]line [18:09:04]written 0, free lines is 3607 [18:09:04]MH_Cut [18:09:04]Write to MH i2c: D1 01 00 5B 10 01 3D [18:09:04]Write i2c OK [18:09:04]MH_I2C_Read... [18:09:04]Read from MH i2c: D1 [18:09:04]MH_I2C_Read... [18:09:04]Read from MH i2c: D1 01 00 [18:09:04]MH_I2C_Read... [18:09:04]Read from MH i2c: D1 01 00 5B 10 00 3C [18:09:04]Write to MH i2c: 01 00 00 5C 10 6C [18:09:04]Write i2c OK [18:09:04]MH_I2C_Read... [18:09:05]*** Cut start [18:09:05]*** Partial cut [18:09:05]*** CUTSNS_PIN = 1 [18:09:05]*** CUTSNS_PIN = 0 [18:09:05]*** Brake cut motor [18:09:05]Read from MH i2c: 01 [18:09:05]MH_I2C_Read... [18:09:05]Read from MH i2c: 01 07 00 [18:09:05]MH_I2C_Read... [18:09:05]*** Stop cut motor [18:09:05]*** Cut end [18:09:05]Read from MH i2c: 01 07 00 5C 10 00 00 00 00 00 FF 0F 81 [18:09:05]process_action print_text done [18:09:05]requested_data is exist [18:09:05]produce_requested_data [18:09:05]requested_item fm.sn is exist - process it [18:09:05]wFMCommunicate request_size=4 [18:09:05]MH_SAM_APDU [18:09:05]CAPDU: 80 11 00 00 [18:09:05]Write to MH i2c: E2 08 00 5D 10 80 11 00 00 00 00 00 00 E7 [18:09:05]Write i2c OK [18:09:05]MH_I2C_Read... [18:09:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:05]Read from MH i2c: E2 [18:09:05]MH_I2C_Read... [18:09:05]Read from MH i2c: E2 17 00 [18:09:05]MH_I2C_Read... [18:09:05]Read from MH i2c: E2 17 00 5D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 42 [18:09:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:09:05]wFMCommunicate OK [18:09:05]requested_item fd.num is exist - process it [18:09:05]SAM_PROTO_GetFieldsCounters [18:09:05]wFMCommunicate request_size=4 [18:09:05]MH_SAM_APDU [18:09:05]CAPDU: 80 13 00 00 [18:09:05]Write to MH i2c: E2 08 00 5E 10 80 13 00 00 00 00 00 00 EA [18:09:05]Write i2c OK [18:09:05]MH_I2C_Read... [18:09:05]Read from MH i2c: E2 [18:09:05]MH_I2C_Read... [18:09:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:09:05]Read from MH i2c: E2 62 00 [18:09:05]MH_I2C_Read... [18:09:05]Read from MH i2c: E2 62 00 5E 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 11 CF 01 00 0E 04 04 00 B1 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 26 [18: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 11 CF 01 00 0E 04 04 00 B1 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 [18:09:05]wFMCommunicate OK [18:09:05]SAM_PROTO_GetFieldsCounters done [18:09:05]requested_item shift.num is exist - process it [18:09:05]requested_item shift.opened is exist - process it [18:09:05]req_shift_opened [18:09:05]FM_GetShiftState [18:09:05]SAM_PROTO_GetShiftState [18:09:05]wFMCommunicate request_size=4 [18:09:05]MH_SAM_APDU [18:09:05]CAPDU: 80 13 01 00 [18:09:05]Write to MH i2c: E2 08 00 5F 10 80 13 01 00 00 00 00 00 EC [18:09:05]Write i2c OK [18:09:05]MH_I2C_Read... [18:09:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:05]Read from MH i2c: E2 [18:09:05]MH_I2C_Read... [18:09:05]Read from MH i2c: E2 0E 00 [18:09:05]MH_I2C_Read... [18:09:05]Read from MH i2c: E2 0E 00 5F 10 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 C3 [18:09:05]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:09:05]wFMCommunicate OK [18:09:05]SAM_PROTO_GetShiftState done [18:09:05]FM_GetShiftState done [18:09:05]req_shift_opened done [18:09:05]requested_item shift.open_date is exist - process it [18:09:05]req_shift_open_date [18:09:05]req_shift_open_date done [18:09:05]produce_requested_data done [18:09:05]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118545,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:09:05]process_action_free print_text [18:09:05]json_value_free [18:09:05]json_value_free done [18:09:05]process_json_proto returns [18:09:05]Send response to host [18:09:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118545,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:09:05]free response buf [18:09:05]execute_script done [18:09:05]execute_script returns [18:09:05]free content buf [18:09:05]Sock 9.Close socket [18:09:05]Sock 9.Thread stoped [18:09:07]OFD Sender: No OFD packet to send [18:09:12]OFD Sender: No OFD packet to send [18:09:17]OFD Sender: No OFD packet to send [18:09:22]OFD Sender: No OFD packet to send [18:09:27]OFD Sender: No OFD packet to send [18:09:32]OFD Sender: No OFD packet to send [18:09:37]OFD Sender: No OFD packet to send [18:09:42]OFD Sender: No OFD packet to send [18:09:47]OFD Sender: No OFD packet to send [18:09:52]OFD Sender: No OFD packet to send [18:09:57]OFD Sender: No OFD packet to send [18:10:02]OFD Sender: No OFD packet to send [18:10:07]OFD Sender: No OFD packet to send [18:10:12]OFD Sender: No OFD packet to send [18:10:17]OFD Sender: No OFD packet to send [18:10:22]OFD Sender: No OFD packet to send [18:10:22]accept exits with 7 [18:10:22]New connection [18:10:22]New thread 3067383140 created [18:10:22]Thread 3067239780 joined [18:10:22]Waiting for new connection... [18:10:22] Sock 7.Parse request [18:10:22]Sock 7.Check first char [18:10:22]Sock 7.First char is OK [18:10:22]request: POST /json_proto HTTP/1.0 [18:10:22]Method: POST [18:10:22]URL: /json_proto [18:10:22]Method is POST - this is cgi request [18:10:22]url: /json_proto [18:10:22]query_string will be loaded in cgi processing [18:10:22]execute_cgi json_proto POST (null) [18:10:22]execute_cgi path=json_proto method=POST [18:10:22]POST find Content-Length [18:10:22]Host: 172.17.45.7:8080 [18:10:22]Content-Length: 679 [18:10:22]Content-Type: application/json [18:10:22] [18:10:22]POST finish read [18:10:22]Found Content-Length = 679 [18:10:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.030, "sum" : 1450.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1450.00, "total" : 1450.00, "payments": [ { "type": 0, "sum" : 1450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:22]execute_script... [18:10: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)949430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.030, "sum" : 1450.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1450.00, "total" : 1450.00, "payments": [ { "type": 0, "sum" : 1450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:22]POST & json_proto [18:10:22]process_json_proto [18:10:22]json parsed OK: [18:10:22]protocol is kg_v1.0 [18:10:22]action value=close_receipt [18:10:22]process_action close_receipt [18:10:22]cmd_close_receipt [18:10:22]MH_GetDate [18:10:22]Write to MH i2c: F0 00 00 60 10 5F [18:10:22]Write i2c OK [18:10:22]MH_I2C_Read... [18:10:22]Read from MH i2c: F0 [18:10:22]MH_I2C_Read... [18:10:22]Read from MH i2c: F0 09 00 [18:10:22]MH_I2C_Read... [18:10:22]Read from MH i2c: F0 09 00 60 10 00 90 89 A6 66 90 0F 3E 66 D0 [18:10:22]GetLastDocTimeStamp 1722189605 [18:10:22]current date 1722190224 [18:10:22]FM_GetShiftState [18:10:22]SAM_PROTO_GetShiftState [18:10:22]wFMCommunicate request_size=4 [18:10:22]MH_SAM_APDU [18:10:22]CAPDU: 80 13 01 00 [18:10:22]Write to MH i2c: E2 08 00 61 10 80 13 01 00 00 00 00 00 EE [18:10:22]Write i2c OK [18:10:22]MH_I2C_Read... [18:10:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:22]Read from MH i2c: E2 [18:10:22]MH_I2C_Read... [18:10:22]Read from MH i2c: E2 0E 00 [18:10:22]MH_I2C_Read... [18:10:22]Read from MH i2c: E2 0E 00 61 10 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 C5 [18:10:22]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:10:22]wFMCommunicate OK [18:10:22]SAM_PROTO_GetShiftState done [18:10:22]FM_GetShiftState done [18:10:22]opened in 1722125364 [18:10:22]opened+sec_in_day 1722211764 [18:10:22]quantity*price = 145008 [18:10:22]sum+1 = 145010 [18:10:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 1450.00 Внесено: 1450.00 СДАЧА: 0.00 НСП 1% : 12.83 НДС 12% : 153.99 Наличными: 1450.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 215 28.07.2024 18:10 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118546 ФПД: 256617817984829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T181024&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118546&fm=256617817984829&tin=02508201610067®Number=0000000000092660&sum=145000 [18:10:23]StoreToDocumentArchive [18:10:23]shift 433 fd 118546 [18:10:23]save to /storage/0433/doc_00118546 [18:10:23]save last doc name /storage/0433/doc_00118546 to /storage/kkm_last_doc_name [18:10:23]save OK [18:10:23]Clear old archive folders... [18:10:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:10:23]tlvbuf is 01E5B510 [18:10:23]SAM_PROTO_ClearQueue [18:10:23]wFMCommunicate request_size=4 [18:10:23]MH_SAM_APDU [18:10:23]CAPDU: 80 09 00 00 [18:10:23]Write to MH i2c: E2 08 00 6E 10 80 09 00 00 00 00 00 00 F0 [18:10:23]Write i2c OK [18:10:23]MH_I2C_Read... [18:10:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:23]Read from MH i2c: E2 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 03 00 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 03 00 6E 10 00 90 00 F2 [18:10:23]RAPDU: 90 00 [18:10:23]wFMCommunicate OK [18:10:23]SAM_PROTO_ClearQueue done [18:10:23]KKMCreateOFDPacket [18:10:23]OFDProtocolAddRootSTLVToBuf [18:10:23]FM_MakeSignedData [18:10:23]FM_MakeSignedData [18:10:23]SAM_PROTO_SignData [18:10:23]wFMCommunicate request_size=4 [18:10:23]MH_SAM_APDU [18:10:23]CAPDU: 80 0D 01 02 [18:10:23]Write to MH i2c: E2 08 00 6F 10 80 0D 01 02 00 00 00 00 F8 [18:10:23]Write i2c OK [18:10:23]MH_I2C_Read... [18:10:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:23]Read from MH i2c: E2 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 03 00 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 03 00 6F 10 00 90 00 F3 [18:10:23]RAPDU: 90 00 [18:10:23]wFMCommunicate OK [18:10:23]wFMCommunicate request_size=255 [18:10:23]MH_SAM_APDU [18:10:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 4A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 3C 00 00 00 00 07 04 06 00 68 36 02 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 90 89 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 12 CF 01 00 35 04 06 00 E9 64 7D E2 [18:10:23]Write to MH i2c: E2 02 01 70 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 4A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 3C 00 00 00 00 07 04 06 00 68 36 02 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 90 89 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 12 CF 01 00 35 04 06 00 E9 64 7D E2 00 00 71 [18:10:23]Write i2c OK [18:10:23]MH_I2C_Read... [18:10:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:24]Read from MH i2c: E2 [18:10:24]MH_I2C_Read... [18:10:24]Read from MH i2c: E2 03 00 [18:10:24]MH_I2C_Read... [18:10:24]Read from MH i2c: E2 03 00 70 10 00 90 00 F4 [18:10:24]RAPDU: 90 00 [18:10:24]wFMCommunicate OK [18:10:24]wFMCommunicate request_size=7 [18:10:24]MH_SAM_APDU [18:10:24]CAPDU: 80 0D 02 02 02 4F 3D [18:10:24]Write to MH i2c: E2 0A 00 71 10 80 0D 02 02 02 00 4F 3D 00 00 8B [18:10:24]Write i2c OK [18:10:24]MH_I2C_Read... [18:10:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:24]Read from MH i2c: E2 [18:10:24]MH_I2C_Read... [18:10:24]Read from MH i2c: E2 03 00 [18:10:24]MH_I2C_Read... [18:10:24]Read from MH i2c: E2 03 00 71 10 00 90 00 F5 [18:10:24]RAPDU: 90 00 [18:10:24]wFMCommunicate OK [18:10:24]wFMCommunicate request_size=4 [18:10:24]MH_SAM_APDU [18:10:24]CAPDU: 80 0D 03 02 [18:10:24]Write to MH i2c: E2 08 00 72 10 80 0D 03 02 00 00 00 00 FD [18:10:24]Write i2c OK [18:10:24]MH_I2C_Read... [18:10:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:24]Read from MH i2c: E2 [18:10:24]MH_I2C_Read... [18:10:24]Read from MH i2c: E2 0B 00 [18:10:24]MH_I2C_Read... [18:10:24]Read from MH i2c: E2 0B 00 72 10 00 C3 AE 30 0C 00 22 17 B3 90 00 97 [18:10:24]RAPDU: C3 AE 30 0C 00 22 17 B3 90 00 [18:10:24]wFMCommunicate OK [18:10:24]SAM_PROTO_SignData done [18:10:24]FM_MakeSignedData done [18:10:24]CreateOFDProtocolMessage [18:10:24]wFMCommunicate request_size=4 [18:10:24]MH_SAM_APDU [18:10:24]CAPDU: 80 11 00 00 [18:10:24]Write to MH i2c: E2 08 00 73 10 80 11 00 00 00 00 00 00 FD [18:10:24]Write i2c OK [18:10:24]MH_I2C_Read... [18:10:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:24]Read from MH i2c: E2 [18:10:24]MH_I2C_Read... [18:10:24]Read from MH i2c: E2 17 00 [18:10:24]MH_I2C_Read... [18:10:24]Read from MH i2c: E2 17 00 73 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 58 [18:10:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:10:24]wFMCommunicate OK [18:10:24]CreateOFDProtocolMessage done [18:10:24]OFDSenderStorePacket 118546 [18:10:24]StoreOFDPacket docnum=118546 [18:10:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 53 80 04 01 E8 EC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 4A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 3C 00 00 00 00 07 04 06 00 68 36 02 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 90 89 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 12 CF 01 00 35 04 06 00 E9 64 7D E2 4F 3D C3 AE 30 0C 00 22 17 B3 [18:10:24]CheckFolder [18:10:24]dirname=/storage/ofd_packets [18:10:24]CheckFolder done [18:10:24]ProducePacketName [18:10:24]name=ofd_packets/00118546 [18:10:24]NVStorageSaveData ofd_packets/00118546 [18:10:24]File name is /storage/ofd_packets/00118546 [18:10:24]Write 298 bytes [18:10:24]NVStorageSaveData done [18:10:24]OFDSenderStorePacket done [18:10:24]KKMCreateOFDPacket done [18:10:24]NVStorageSaveData kkm_last_timestamp [18:10:24]File name is /storage/kkm_last_timestamp [18:10:24]Write 4 bytes [18:10:24]NVStorageSaveData done [18:10:24]ExternCall_PrintAddStr [18:10:24]wPrintStart [18:10:24]Write to MH i2c: 01 00 00 74 10 84 [18:10:24]Write i2c OK [18:10:24]MH_I2C_Read... [18:10:24]Read from MH i2c: 01 [18:10:24]MH_I2C_Read... [18:10:24]Read from MH i2c: 01 07 00 [18:10:24]MH_I2C_Read... [18:10:24]Read from MH i2c: 01 07 00 74 10 00 00 00 00 00 FF 0F 99 [18:10:24]RasterBufferAndPrint [18:10:24]line Счет N : (1)949430 [18:10:24]line ИНН: 02508201610067 [18:10:24]line Контрольно-Кассовый Чек [18:10:24]line ПРОДАЖА [18:10:24]line ТРК (МРК, ГНК) : 34 [18:10:24]line Товар: 2710194800 [18:10:24]line ДТ-К-5 [18:10:24]line 19.030 * 76.20 [18:10:24]line = 1450.09 [18:10:24]line НДС 12% НСП 1% [18:10:24]line > о реализуемом товаре [18:10:24]line ОКРУГЛЕНИЕ: -0.09 [18:10:24]line ИТОГО: 1450.00 [18:10:24]line Внесено: 1450.00 [18:10:24]line СДАЧА: 0.00 [18:10:24]line НСП 1% : 12.83 [18:10:24]line НДС 12% : 153.99 [18:10:24]line Наличными: 1450.00 [18:10:24]line Безнал.: 0.00 [18:10:24]line Место: АЗС № 134 "Партнер Нефть" [18:10:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:10:24]line СНО: Общий режим [18:10:24]line Чек 215 28.07.2024 18:10 [18:10:24]line Смена: 433 ФФД: 1.0 [18:10:24]line ЗНМ: 0300000044 [18:10:24]line РНМ: 0000000000092660 [18:10:24]line Версия ККМ: 001 [18:10:24]line ФМ: 0000000000874939 [18:10:24]line ФД: 118546 [18:10:24]line ФПД: 256617817984829 [18:10:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T181024&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118546&fm=256617817984829&tin=02508201610067®Number=0000000000092660&sum=145000 [18:10:24]OFD Sender: Processing packet 118546 [packets to send 86, broken 85] [18:10:24]ProducePacketName [18:10:24]name=ofd_packets/00118546 [18:10:24]OFD Sender: To server: pG, [18:10:24]CommunicateWithHost lk.salyk.kg:30040 [18:10:24]ConnectInit lk.salyk.kg [18:10:24]written 0, free lines is 4095 [18:10:24]Connected sock=10 [18:10:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 53 80 04 01 E8 EC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 4A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 3C 00 00 00 00 07 04 06 00 68 36 02 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 90 89 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 12 CF 01 00 35 04 06 00 E9 64 7D E2 4F 3D C3 AE 30 0C 00 22 17 B3 [18:10:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 22 15 47 00 A6 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 12 CF 01 00 F4 03 04 00 20 37 A6 66 B6 04 01 00 00 37 A9 D7 AB A4 9D CA 1D [18:10:24]CommunicateWithHost err = 0 [18:10:24]CheckOFDResponse [18:10:24]1017 (14) - 77093643461234 [18:10:24]1041 (16) - 0000000000874939 [18:10:24]1040 (4) - 118546 [18:10:24]1012 (4) - 28.07.2024 12:18 [18:10:24]1206 (1) - 0 [18:10:24]OFD Sender: Remove packet 118546 [18:10:24]ProducePacketName [18:10:24]name=ofd_packets/00118546 [18:10:24]NVStorageDeleteData [18:10:25]Write to MH i2c: 01 00 00 9E 10 AE [18:10:25]Write i2c OK [18:10:25]MH_I2C_Read... [18:10:25]Read from MH i2c: 01 [18:10:25]MH_I2C_Read... [18:10:25]Read from MH i2c: 01 07 00 [18:10:25]MH_I2C_Read... [18:10:25]Read from MH i2c: 01 07 00 9E 10 00 00 00 00 00 DD 0C 9E [18:10:25]RasterBufferAndPrint [18:10:25]line [18:10:25]line [18:10:25]line [18:10:25]line [18:10:25]line [18:10:25]written 0, free lines is 3299 [18:10:25]MH_Cut [18:10:25]Write to MH i2c: D1 01 00 A5 10 01 87 [18:10:25]Write i2c OK [18:10:25]MH_I2C_Read... [18:10:25]Read from MH i2c: D1 [18:10:25]MH_I2C_Read... [18:10:25]Read from MH i2c: D1 01 00 [18:10:25]MH_I2C_Read... [18:10:25]Read from MH i2c: D1 01 00 A5 10 00 86 [18:10:25]Write to MH i2c: 01 00 00 A6 10 B6 [18:10:25]Write i2c OK [18:10:25]MH_I2C_Read... [18:10:25]OFD Sender: No OFD packet to send [18:10:25]*** Cut start [18:10:25]*** Partial cut [18:10:25]*** CUTSNS_PIN = 1 [18:10:25]*** CUTSNS_PIN = 0 [18:10:26]*** Brake cut motor [18:10:26]Read from MH i2c: 01 [18:10:26]MH_I2C_Read... [18:10:26]*** Stop cut motor [18:10:26]*** Cut end [18:10:26]Read from MH i2c: 01 07 00 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: 01 07 00 A6 10 00 00 00 00 00 FF 0F CB [18:10:26]process_action close_receipt done [18:10:26]requested_data is exist [18:10:26]produce_requested_data [18:10:26]requested_item fm.sn is exist - process it [18:10:26]wFMCommunicate request_size=4 [18:10:26]MH_SAM_APDU [18:10:26]CAPDU: 80 11 00 00 [18:10:26]Write to MH i2c: E2 08 00 A7 10 80 11 00 00 00 00 00 00 31 [18:10:26]Write i2c OK [18:10:26]MH_I2C_Read... [18:10:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:26]Read from MH i2c: E2 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 17 00 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 17 00 A7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8C [18:10:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:10:26]wFMCommunicate OK [18:10:26]requested_item fd.num is exist - process it [18:10:26]SAM_PROTO_GetFieldsCounters [18:10:26]wFMCommunicate request_size=4 [18:10:26]MH_SAM_APDU [18:10:26]CAPDU: 80 13 00 00 [18:10:26]Write to MH i2c: E2 08 00 A8 10 80 13 00 00 00 00 00 00 34 [18:10:26]Write i2c OK [18:10:26]MH_I2C_Read... [18:10:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:26]Read from MH i2c: E2 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 62 00 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 62 00 A8 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 12 CF 01 00 0E 04 04 00 B1 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 74 [18:10:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 12 CF 01 00 0E 04 04 00 B1 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 [18:10:26]wFMCommunicate OK [18:10:26]SAM_PROTO_GetFieldsCounters done [18:10:26]requested_item shift.num is exist - process it [18:10:26]requested_item shift.opened is exist - process it [18:10:26]req_shift_opened [18:10:26]FM_GetShiftState [18:10:26]SAM_PROTO_GetShiftState [18:10:26]wFMCommunicate request_size=4 [18:10:26]MH_SAM_APDU [18:10:26]CAPDU: 80 13 01 00 [18:10:26]Write to MH i2c: E2 08 00 A9 10 80 13 01 00 00 00 00 00 36 [18:10:26]Write i2c OK [18:10:26]MH_I2C_Read... [18:10:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:26]Read from MH i2c: E2 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 0E 00 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 0E 00 A9 10 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 0D [18:10:26]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:10:26]wFMCommunicate OK [18:10:26]SAM_PROTO_GetShiftState done [18:10:26]FM_GetShiftState done [18:10:26]req_shift_opened done [18:10:26]requested_item shift.open_date is exist - process it [18:10:26]req_shift_open_date [18:10:26]req_shift_open_date done [18:10:26]produce_requested_data done [18:10:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118546,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:10:26]process_action_free close_receipt [18:10:26]json_value_free [18:10:26]json_value_free done [18:10:26]process_json_proto returns [18:10:26]Send response to host [18:10:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118546,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:10:26]free response buf [18:10:26]execute_script done [18:10:26]execute_script returns [18:10:26]free content buf [18:10:26]Sock 7.Close socket [18:10:26]Sock 7.Thread stoped [18:10:30]OFD Sender: No OFD packet to send [18:10:35]OFD Sender: No OFD packet to send [18:10:40]OFD Sender: No OFD packet to send [18:10:45]OFD Sender: No OFD packet to send [18:10:50]OFD Sender: No OFD packet to send [18:10:55]OFD Sender: No OFD packet to send [18:11:00]OFD Sender: No OFD packet to send [18:11:05]OFD Sender: No OFD packet to send [18:11:10]OFD Sender: No OFD packet to send [18:11:15]OFD Sender: No OFD packet to send [18:11:20]OFD Sender: No OFD packet to send [18:11:25]OFD Sender: No OFD packet to send [18:11:30]OFD Sender: No OFD packet to send [18:11:35]OFD Sender: No OFD packet to send [18:11:40]OFD Sender: No OFD packet to send [18:11:45]OFD Sender: No OFD packet to send [18:11:50]OFD Sender: No OFD packet to send [18:11:55]OFD Sender: No OFD packet to send [18:12:00]OFD Sender: No OFD packet to send [18:12:05]OFD Sender: No OFD packet to send [18:12:10]OFD Sender: No OFD packet to send [18:12:15]OFD Sender: No OFD packet to send [18:12:20]OFD Sender: No OFD packet to send [18:12:25]OFD Sender: No OFD packet to send [18:12:30]OFD Sender: No OFD packet to send [18:12:35]OFD Sender: No OFD packet to send [18:12:40]OFD Sender: No OFD packet to send [18:12:45]OFD Sender: No OFD packet to send [18:12:50]OFD Sender: No OFD packet to send [18:12:52]accept exits with 9 [18:12:52]New connection [18:12:52]New thread 3067239780 created [18:12:52]Thread 3067383140 joined [18:12:52]Waiting for new connection... [18:12:52] Sock 9.Parse request [18:12:52]Sock 9.Check first char [18:12:52]Sock 9.First char is OK [18:12:52]request: POST /json_proto HTTP/1.0 [18:12:52]Method: POST [18:12:52]URL: /json_proto [18:12:52]Method is POST - this is cgi request [18:12:52]url: /json_proto [18:12:52]query_string will be loaded in cgi processing [18:12:52]execute_cgi json_proto POST (null) [18:12:52]execute_cgi path=json_proto method=POST [18:12:52]POST find Content-Length [18:12:52]Host: 172.17.45.7:8080 [18:12:52]Content-Length: 822 [18:12:52]Content-Type: application/json [18:12:52] [18:12:52]POST finish read [18:12:52]Found Content-Length = 822 [18:12:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:52]execute_script... [18:12: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)949431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:52]POST & json_proto [18:12:52]process_json_proto [18:12:52]json parsed OK: [18:12:52]protocol is kg_v1.0 [18:12:52]action value=close_receipt [18:12:52]process_action close_receipt [18:12:52]cmd_close_receipt [18:12:52]MH_GetDate [18:12:52]Write to MH i2c: F0 00 00 AA 10 A9 [18:12:52]Write i2c OK [18:12:52]MH_I2C_Read... [18:12:52]Read from MH i2c: F0 [18:12:52]MH_I2C_Read... [18:12:52]Read from MH i2c: F0 09 00 [18:12:52]MH_I2C_Read... [18:12:52]Read from MH i2c: F0 09 00 AA 10 00 25 8A A6 66 90 0F 3E 66 B0 [18:12:52]GetLastDocTimeStamp 1722190224 [18:12:52]current date 1722190373 [18:12:52]FM_GetShiftState [18:12:52]SAM_PROTO_GetShiftState [18:12:52]wFMCommunicate request_size=4 [18:12:52]MH_SAM_APDU [18:12:52]CAPDU: 80 13 01 00 [18:12:52]Write to MH i2c: E2 08 00 AB 10 80 13 01 00 00 00 00 00 38 [18:12:52]Write i2c OK [18:12:52]MH_I2C_Read... [18:12:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:52]Read from MH i2c: E2 [18:12:52]MH_I2C_Read... [18:12:52]Read from MH i2c: E2 0E 00 [18:12:52]MH_I2C_Read... [18:12:52]Read from MH i2c: E2 0E 00 AB 10 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 0F [18:12:52]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:12:52]wFMCommunicate OK [18:12:52]SAM_PROTO_GetShiftState done [18:12:52]FM_GetShiftState done [18:12:52]opened in 1722125364 [18:12:52]opened+sec_in_day 1722211764 [18:12:52]quantity*price = 200010 [18:12:52]sum+1 = 200011 [18:12:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 216 28.07.2024 18:12 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118547 ФПД: 99084592219515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T181253&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118547&fm=99084592219515&tin=02508201610067®Number=0000000000092660&sum=200000 [18:12:53]StoreToDocumentArchive [18:12:53]shift 433 fd 118547 [18:12:53]save to /storage/0433/doc_00118547 [18:12:53]save last doc name /storage/0433/doc_00118547 to /storage/kkm_last_doc_name [18:12:53]save OK [18:12:53]Clear old archive folders... [18:12:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:12:53]tlvbuf is 01E69140 [18:12:53]SAM_PROTO_ClearQueue [18:12:53]wFMCommunicate request_size=4 [18:12:53]MH_SAM_APDU [18:12:53]CAPDU: 80 09 00 00 [18:12:53]Write to MH i2c: E2 08 00 B8 10 80 09 00 00 00 00 00 00 3A [18:12:53]Write i2c OK [18:12:53]MH_I2C_Read... [18:12:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:53]Read from MH i2c: E2 [18:12:53]MH_I2C_Read... [18:12:53]Read from MH i2c: E2 03 00 [18:12:53]MH_I2C_Read... [18:12:53]Read from MH i2c: E2 03 00 B8 10 00 90 00 3C [18:12:53]RAPDU: 90 00 [18:12:53]wFMCommunicate OK [18:12:53]SAM_PROTO_ClearQueue done [18:12:53]KKMCreateOFDPacket [18:12:53]OFDProtocolAddRootSTLVToBuf [18:12:53]FM_MakeSignedData [18:12:53]FM_MakeSignedData [18:12:53]SAM_PROTO_SignData [18:12:53]wFMCommunicate request_size=4 [18:12:53]MH_SAM_APDU [18:12:53]CAPDU: 80 0D 01 02 [18:12:53]Write to MH i2c: E2 08 00 B9 10 80 0D 01 02 00 00 00 00 42 [18:12:53]Write i2c OK [18:12:53]MH_I2C_Read... [18:12:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:53]Read from MH i2c: E2 [18:12:53]MH_I2C_Read... [18:12:53]Read from MH i2c: E2 03 00 [18:12:53]MH_I2C_Read... [18:12:53]Read from MH i2c: E2 03 00 B9 10 00 90 00 3D [18:12:53]RAPDU: 90 00 [18:12:53]wFMCommunicate OK [18:12:53]wFMCommunicate request_size=255 [18:12:53]MH_SAM_APDU [18:12: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 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 25 8A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 13 CF 01 00 35 04 06 00 5A [18:12:53]Write to MH i2c: E2 02 01 BA 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 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 25 8A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 13 CF 01 00 35 04 06 00 5A 00 00 4C [18:12:53]Write i2c OK [18:12:53]MH_I2C_Read... [18:12:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:53]Read from MH i2c: E2 [18:12:53]MH_I2C_Read... [18:12:53]Read from MH i2c: E2 03 00 [18:12:53]MH_I2C_Read... [18:12:53]Read from MH i2c: E2 03 00 BA 10 00 90 00 3E [18:12:53]RAPDU: 90 00 [18:12:53]wFMCommunicate OK [18:12:53]wFMCommunicate request_size=10 [18:12:53]MH_SAM_APDU [18:12:53]CAPDU: 80 0D 02 02 05 1D ED EC 05 7B [18:12:53]Write to MH i2c: E2 0D 00 BB 10 80 0D 02 02 05 00 1D ED EC 05 7B 00 00 C5 [18:12:53]Write i2c OK [18:12:53]MH_I2C_Read... [18:12:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:53]Read from MH i2c: E2 [18:12:53]MH_I2C_Read... [18:12:53]Read from MH i2c: E2 03 00 [18:12:53]MH_I2C_Read... [18:12:53]Read from MH i2c: E2 03 00 BB 10 00 90 00 3F [18:12:53]RAPDU: 90 00 [18:12:53]wFMCommunicate OK [18:12:53]wFMCommunicate request_size=4 [18:12:53]MH_SAM_APDU [18:12:53]CAPDU: 80 0D 03 02 [18:12:53]Write to MH i2c: E2 08 00 BC 10 80 0D 03 02 00 00 00 00 47 [18:12:53]Write i2c OK [18:12:53]MH_I2C_Read... [18:12:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:53]Read from MH i2c: E2 [18:12:53]MH_I2C_Read... [18:12:53]Read from MH i2c: E2 0B 00 [18:12:53]MH_I2C_Read... [18:12:53]Read from MH i2c: E2 0B 00 BC 10 00 5C 16 6B 7F EC DA 46 EA 90 00 9A [18:12:53]RAPDU: 5C 16 6B 7F EC DA 46 EA 90 00 [18:12:53]wFMCommunicate OK [18:12:53]SAM_PROTO_SignData done [18:12:53]FM_MakeSignedData done [18:12:53]CreateOFDProtocolMessage [18:12:53]wFMCommunicate request_size=4 [18:12:53]MH_SAM_APDU [18:12:53]CAPDU: 80 11 00 00 [18:12:53]Write to MH i2c: E2 08 00 BD 10 80 11 00 00 00 00 00 00 47 [18:12:53]Write i2c OK [18:12:53]MH_I2C_Read... [18:12:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:53]Read from MH i2c: E2 [18:12:53]MH_I2C_Read... [18:12:53]Read from MH i2c: E2 17 00 [18:12:53]MH_I2C_Read... [18:12:53]Read from MH i2c: E2 17 00 BD 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A2 [18:12:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:12:53]wFMCommunicate OK [18:12:53]CreateOFDProtocolMessage done [18:12:53]OFDSenderStorePacket 118547 [18:12:53]StoreOFDPacket docnum=118547 [18:12:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B1 AE 07 01 F7 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 25 8A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 13 CF 01 00 35 04 06 00 5A 1D ED EC 05 7B 5C 16 6B 7F EC DA 46 EA [18:12:53]CheckFolder [18:12:53]dirname=/storage/ofd_packets [18:12:53]CheckFolder done [18:12:53]ProducePacketName [18:12:53]name=ofd_packets/00118547 [18:12:53]NVStorageSaveData ofd_packets/00118547 [18:12:53]File name is /storage/ofd_packets/00118547 [18:12:53]Write 301 bytes [18:12:53]NVStorageSaveData done [18:12:53]OFDSenderStorePacket done [18:12:53]KKMCreateOFDPacket done [18:12:53]NVStorageSaveData kkm_last_timestamp [18:12:53]File name is /storage/kkm_last_timestamp [18:12:53]Write 4 bytes [18:12:53]NVStorageSaveData done [18:12:53]ExternCall_PrintAddStr [18:12:53]wPrintStart [18:12:53]Write to MH i2c: 01 00 00 BE 10 CE [18:12:53]Write i2c OK [18:12:53]MH_I2C_Read... [18:12:53]Read from MH i2c: 01 [18:12:53]MH_I2C_Read... [18:12:53]Read from MH i2c: 01 07 00 [18:12:53]MH_I2C_Read... [18:12:53]Read from MH i2c: 01 07 00 BE 10 00 00 00 00 00 FF 0F E3 [18:12:53]RasterBufferAndPrint [18:12:53]line Счет N : (1)949431 [18:12:53]line ИНН: 02508201610067 [18:12:53]line Контрольно-Кассовый Чек [18:12:53]line ПРОДАЖА [18:12:53]line ТРК (МРК, ГНК) : 41 [18:12:53]line Товар: 2710124130 [18:12:53]line Аи-92-К-4 [18:12:53]line 29.500 * 67.80 [18:12:53]line = 2000.10 [18:12:53]line НДС 12% НСП 1% [18:12:53]line > о реализуемом товаре [18:12:53]line ОКРУГЛЕНИЕ: -0.10 [18:12:53]line ИТОГО: 2000.00 [18:12:53]line НСП 1% : 17.70 [18:12:53]line НДС 12% : 212.40 [18:12:53]line Наличными: 0.00 [18:12:53]line Безнал.: 2000.00 [18:12:53]line Место: АЗС № 134 "Партнер Нефть" [18:12:53]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:12:53]line СНО: Общий режим [18:12:53]line Чек 216 28.07.2024 18:12 [18:12:53]line Смена: 433 ФФД: 1.0 [18:12:53]line ЗНМ: 0300000044 [18:12:53]line РНМ: 0000000000092660 [18:12:53]line Версия ККМ: 001 [18:12:53]line Платежная система: O! деньги [18:12:53]line ФМ: 0000000000874939 [18:12:53]line ФД: 118547 [18:12:53]line ФПД: 99084592219515 [18:12:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T181253&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118547&fm=99084592219515&tin=02508201610067®Number=0000000000092660&sum=200000 [18:12:54]written 0, free lines is 4095 [18:12:54]OFD Sender: Processing packet 118547 [packets to send 86, broken 85] [18:12:54]ProducePacketName [18:12:54]name=ofd_packets/00118547 [18:12:54]OFD Sender: To server: pG, [18:12:54]CommunicateWithHost lk.salyk.kg:30040 [18:12:54]ConnectInit lk.salyk.kg [18:12:54]Connected sock=10 [18:12:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B1 AE 07 01 F7 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 25 8A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 13 CF 01 00 35 04 06 00 5A 1D ED EC 05 7B 5C 16 6B 7F EC DA 46 EA [18:12:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AD 41 47 00 41 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 39 33 39 10 04 04 00 13 CF 01 00 F4 03 04 00 B5 37 A6 66 B6 04 01 00 00 B7 1F 6A 7E 2D F6 6A 2F [18:12:54]CommunicateWithHost err = 0 [18:12:54]CheckOFDResponse [18:12:54]1017 (14) - 77093643461234 [18:12:54]1041 (16) - 0000000000874939 [18:12:54]1040 (4) - 118547 [18:12:54]1012 (4) - 28.07.2024 12:21 [18:12:54]1206 (1) - 0 [18:12:54]OFD Sender: Remove packet 118547 [18:12:54]ProducePacketName [18:12:54]name=ofd_packets/00118547 [18:12:54]NVStorageDeleteData [18:12:54]Write to MH i2c: 01 00 00 E8 10 F8 [18:12:54]Write i2c OK [18:12:54]MH_I2C_Read... [18:12:54]Read from MH i2c: 01 [18:12:54]MH_I2C_Read... [18:12:54]Read from MH i2c: 01 07 00 [18:12:54]MH_I2C_Read... [18:12:54]Read from MH i2c: 01 07 00 E8 10 00 00 00 00 00 EB 0C F6 [18:12:54]RasterBufferAndPrint [18:12:54]line [18:12:54]line [18:12:54]line [18:12:54]line [18:12:54]line [18:12:54]written 0, free lines is 3313 [18:12:54]MH_Cut [18:12:54]Write to MH i2c: D1 01 00 EF 10 01 D1 [18:12:54]Write i2c OK [18:12:54]MH_I2C_Read... [18:12:54]Read from MH i2c: D1 [18:12:54]MH_I2C_Read... [18:12:54]Read from MH i2c: D1 01 00 [18:12:54]MH_I2C_Read... [18:12:54]Read from MH i2c: D1 01 00 EF 10 00 D0 [18:12:54]Write to MH i2c: 01 00 00 F0 10 00 [18:12:54]Write i2c OK [18:12:54]MH_I2C_Read... [18:12:54]OFD Sender: No OFD packet to send [18:12:55]*** Cut start [18:12:55]*** Partial cut [18:12:55]*** CUTSNS_PIN = 1 [18:12:55]*** CUTSNS_PIN = 0 [18:12:55]*** Brake cut motor [18:12:55]Read from MH i2c: 01 [18:12:55]MH_I2C_Read... [18:12:55]*** Stop cut motor [18:12:55]*** Cut end [18:12:55]Read from MH i2c: 01 07 00 [18:12:55]MH_I2C_Read... [18:12:55]Read from MH i2c: 01 07 00 F0 10 00 00 00 00 00 FF 0F 15 [18:12:55]process_action close_receipt done [18:12:55]requested_data is exist [18:12:55]produce_requested_data [18:12:55]requested_item fm.sn is exist - process it [18:12:55]wFMCommunicate request_size=4 [18:12:55]MH_SAM_APDU [18:12:55]CAPDU: 80 11 00 00 [18:12:55]Write to MH i2c: E2 08 00 F1 10 80 11 00 00 00 00 00 00 7B [18:12:55]Write i2c OK [18:12:55]MH_I2C_Read... [18:12:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:56]Read from MH i2c: E2 [18:12:56]MH_I2C_Read... [18:12:56]Read from MH i2c: E2 17 00 [18:12:56]MH_I2C_Read... [18:12:56]Read from MH i2c: E2 17 00 F1 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D6 [18:12:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:12:56]wFMCommunicate OK [18:12:56]requested_item fd.num is exist - process it [18:12:56]SAM_PROTO_GetFieldsCounters [18:12:56]wFMCommunicate request_size=4 [18:12:56]MH_SAM_APDU [18:12:56]CAPDU: 80 13 00 00 [18:12:56]Write to MH i2c: E2 08 00 F2 10 80 13 00 00 00 00 00 00 7E [18:12:56]Write i2c OK [18:12:56]MH_I2C_Read... [18:12:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:56]Read from MH i2c: E2 [18:12:56]MH_I2C_Read... [18:12:56]Read from MH i2c: E2 62 00 [18:12:56]MH_I2C_Read... [18:12:56]Read from MH i2c: E2 62 00 F2 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 13 CF 01 00 0E 04 04 00 B1 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 C2 [18:12:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 13 CF 01 00 0E 04 04 00 B1 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 [18:12:56]wFMCommunicate OK [18:12:56]SAM_PROTO_GetFieldsCounters done [18:12:56]requested_item shift.num is exist - process it [18:12:56]requested_item shift.opened is exist - process it [18:12:56]req_shift_opened [18:12:56]FM_GetShiftState [18:12:56]SAM_PROTO_GetShiftState [18:12:56]wFMCommunicate request_size=4 [18:12:56]MH_SAM_APDU [18:12:56]CAPDU: 80 13 01 00 [18:12:56]Write to MH i2c: E2 08 00 F3 10 80 13 01 00 00 00 00 00 80 [18:12:56]Write i2c OK [18:12:56]MH_I2C_Read... [18:12:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:56]Read from MH i2c: E2 [18:12:56]MH_I2C_Read... [18:12:56]Read from MH i2c: E2 0E 00 [18:12:56]MH_I2C_Read... [18:12:56]Read from MH i2c: E2 0E 00 F3 10 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 57 [18:12:56]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:12:56]wFMCommunicate OK [18:12:56]SAM_PROTO_GetShiftState done [18:12:56]FM_GetShiftState done [18:12:56]req_shift_opened done [18:12:56]requested_item shift.open_date is exist - process it [18:12:56]req_shift_open_date [18:12:56]req_shift_open_date done [18:12:56]produce_requested_data done [18:12:56]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118547,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:12:56]process_action_free close_receipt [18:12:56]json_value_free [18:12:56]json_value_free done [18:12:56]process_json_proto returns [18:12:56]Send response to host [18:12:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118547,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:12:56]free response buf [18:12:56]execute_script done [18:12:56]execute_script returns [18:12:56]free content buf [18:12:56]Sock 9.Close socket [18:12:56]Sock 9.Thread stoped [18:13:00]OFD Sender: No OFD packet to send [18:13:05]OFD Sender: No OFD packet to send [18:13:10]OFD Sender: No OFD packet to send [18:13:13]accept exits with 7 [18:13:13]New connection [18:13:13]New thread 3067383140 created [18:13:13]Thread 3067239780 joined [18:13:13]Waiting for new connection... [18:13:13] Sock 7.Parse request [18:13:13]Sock 7.Check first char [18:13:13]Sock 7.First char is OK [18:13:13]request: POST /json_proto HTTP/1.0 [18:13:13]Method: POST [18:13:13]URL: /json_proto [18:13:13]Method is POST - this is cgi request [18:13:13]url: /json_proto [18:13:13]query_string will be loaded in cgi processing [18:13:13]execute_cgi json_proto POST (null) [18:13:13]execute_cgi path=json_proto method=POST [18:13:13]POST find Content-Length [18:13:13]Host: 172.17.45.7:8080 [18:13:13]Content-Length: 1203 [18:13:13]Content-Type: application/json [18:13:13] [18:13:13]POST finish read [18:13:13]Found Content-Length = 1203 [18:13: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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949429\u000A28.07.2024 18:10\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982603/3982602\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:13]execute_script... [18:13: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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949429\u000A28.07.2024 18:10\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982603/3982602\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:13]POST & json_proto [18:13:13]process_json_proto [18:13:13]json parsed OK: [18:13:13]protocol is kg_v1.0 [18:13:13]action value=print_text [18:13:13]process_action print_text [18:13:13]cmd_print_text [18:13:13]ExternCall_PrintAddStr [18:13:13]wPrintStart [18:13:13]Write to MH i2c: 01 00 00 F4 10 04 [18:13:13]Write i2c OK [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: 01 [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: 01 07 00 [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: 01 07 00 F4 10 00 00 00 00 00 FF 0F 19 [18:13:13]RasterBufferAndPrint [18:13:13]line *****ТОВАРНЫЙ ЧЕК***** [18:13:13]line АЗС-134 [18:13:13]line Партнер нефть [18:13:13]line 02508201610067 [18:13:13]line Кассир : Хошимов З. [18:13:13]line Счет N : (1)949429 [18:13:13]line 28.07.2024 18:10 [18:13:13]line ПРОДАЖА [18:13:13]line ТРК (МРК, ГНК): 54 [18:13:13]line Вид ГСМ : 2710194800 [18:13:13]line ДТ-К-5 [18:13:13]line 100.000 x 76.20 [18:13:13]line ИТОГ: 7620.00 [18:13:13]line Тип оплаты: Талоны: Топливные Талоны [18:13:13]line 3982603/3982602 [18:13:13]line ______________________ [18:13:13]line (подпись) [18:13:13]written 0, free lines is 4095 [18:13:13]Write to MH i2c: 01 00 00 08 11 19 [18:13:13]Write i2c OK [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: 01 [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: 01 07 00 [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: 01 07 00 08 11 00 00 00 00 00 15 0E 43 [18:13:13]RasterBufferAndPrint [18:13:13]line [18:13:13]line [18:13:13]line [18:13:13]line [18:13:13]line [18:13:13]written 0, free lines is 3606 [18:13:13]MH_Cut [18:13:13]Write to MH i2c: D1 01 00 0F 11 01 F2 [18:13:13]Write i2c OK [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: D1 [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: D1 01 00 [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: D1 01 00 0F 11 00 F1 [18:13:13]Write to MH i2c: 01 00 00 10 11 21 [18:13:13]Write i2c OK [18:13:13]MH_I2C_Read... [18:13:14]*** Cut start [18:13:14]*** Partial cut [18:13:14]*** CUTSNS_PIN = 1 [18:13:14]*** CUTSNS_PIN = 0 [18:13:14]*** Brake cut motor [18:13:15]OFD Sender: No OFD packet to send [18:13:15]Read from MH i2c: 01 [18:13:15]MH_I2C_Read... [18:13:15]*** Stop cut motor [18:13:15]*** Cut end [18:13:15]Read from MH i2c: 01 07 00 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: 01 07 00 10 11 00 00 00 00 00 FF 0F 36 [18:13:15]process_action print_text done [18:13:15]requested_data is exist [18:13:15]produce_requested_data [18:13:15]requested_item fm.sn is exist - process it [18:13:15]wFMCommunicate request_size=4 [18:13:15]MH_SAM_APDU [18:13:15]CAPDU: 80 11 00 00 [18:13:15]Write to MH i2c: E2 08 00 11 11 80 11 00 00 00 00 00 00 9C [18:13:15]Write i2c OK [18:13:15]MH_I2C_Read... [18:13:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:15]Read from MH i2c: E2 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: E2 17 00 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: E2 17 00 11 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F7 [18:13:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:13:15]wFMCommunicate OK [18:13:15]requested_item fd.num is exist - process it [18:13:15]SAM_PROTO_GetFieldsCounters [18:13:15]wFMCommunicate request_size=4 [18:13:15]MH_SAM_APDU [18:13:15]CAPDU: 80 13 00 00 [18:13:15]Write to MH i2c: E2 08 00 12 11 80 13 00 00 00 00 00 00 9F [18:13:15]Write i2c OK [18:13:15]MH_I2C_Read... [18:13:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:15]Read from MH i2c: E2 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: E2 62 00 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: E2 62 00 12 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 13 CF 01 00 0E 04 04 00 B1 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 E3 [18: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 13 CF 01 00 0E 04 04 00 B1 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 [18:13:15]wFMCommunicate OK [18:13:15]SAM_PROTO_GetFieldsCounters done [18:13:15]requested_item shift.num is exist - process it [18:13:15]requested_item shift.opened is exist - process it [18:13:15]req_shift_opened [18:13:15]FM_GetShiftState [18:13:15]SAM_PROTO_GetShiftState [18:13:15]wFMCommunicate request_size=4 [18:13:15]MH_SAM_APDU [18:13:15]CAPDU: 80 13 01 00 [18:13:15]Write to MH i2c: E2 08 00 13 11 80 13 01 00 00 00 00 00 A1 [18:13:15]Write i2c OK [18:13:15]MH_I2C_Read... [18:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:15]Read from MH i2c: E2 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: E2 0E 00 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: E2 0E 00 13 11 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 78 [18:13:15]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:13:15]wFMCommunicate OK [18:13:15]SAM_PROTO_GetShiftState done [18:13:15]FM_GetShiftState done [18:13:15]req_shift_opened done [18:13:15]requested_item shift.open_date is exist - process it [18:13:15]req_shift_open_date [18:13:15]req_shift_open_date done [18:13:15]produce_requested_data done [18:13:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118547,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:13:15]process_action_free print_text [18:13:15]json_value_free [18:13:15]json_value_free done [18:13:15]process_json_proto returns [18:13:15]Send response to host [18:13:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118547,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:13:15]free response buf [18:13:15]execute_script done [18:13:15]execute_script returns [18:13:15]free content buf [18:13:15]Sock 7.Close socket [18:13:15]Sock 7.Thread stoped [18:13:20]OFD Sender: No OFD packet to send [18:13:24]accept exits with 9 [18:13:24]New connection [18:13:24]New thread 3067239780 created [18:13:24]Thread 3067383140 joined [18:13:24]Waiting for new connection... [18:13:24] Sock 9.Parse request [18:13:24]Sock 9.Check first char [18:13:24]Sock 9.First char is OK [18:13:24]request: POST /json_proto HTTP/1.0 [18:13:24]Method: POST [18:13:24]URL: /json_proto [18:13:24]Method is POST - this is cgi request [18:13:24]url: /json_proto [18:13:24]query_string will be loaded in cgi processing [18:13:24]execute_cgi json_proto POST (null) [18:13:24]execute_cgi path=json_proto method=POST [18:13:24]POST find Content-Length [18:13:24]Host: 172.17.45.7:8080 [18:13:24]Content-Length: 1203 [18:13:24]Content-Type: application/json [18:13:24] [18:13:24]POST finish read [18:13:24]Found Content-Length = 1203 [18:13:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949428\u000A28.07.2024 18:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982601/3982600\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:24]execute_script... [18:13:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949428\u000A28.07.2024 18:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982601/3982600\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:24]POST & json_proto [18:13:24]process_json_proto [18:13:24]json parsed OK: [18:13:24]protocol is kg_v1.0 [18:13:24]action value=print_text [18:13:24]process_action print_text [18:13:24]cmd_print_text [18:13:24]ExternCall_PrintAddStr [18:13:24]wPrintStart [18:13:24]Write to MH i2c: 01 00 00 14 11 25 [18:13:24]Write i2c OK [18:13:24]MH_I2C_Read... [18:13:24]Read from MH i2c: 01 [18:13:24]MH_I2C_Read... [18:13:24]Read from MH i2c: 01 07 00 [18:13:24]MH_I2C_Read... [18:13:24]Read from MH i2c: 01 07 00 14 11 00 00 00 00 00 FF 0F 3A [18:13:24]RasterBufferAndPrint [18:13:24]line *****ТОВАРНЫЙ ЧЕК***** [18:13:24]line АЗС-134 [18:13:24]line Партнер нефть [18:13:24]line 02508201610067 [18:13:24]line Кассир : Хошимов З. [18:13:24]line Счет N : (1)949428 [18:13:24]line 28.07.2024 18:11 [18:13:24]line ПРОДАЖА [18:13:24]line ТРК (МРК, ГНК): 64 [18:13:24]line Вид ГСМ : 2710194800 [18:13:24]line ДТ-К-5 [18:13:24]line 100.000 x 76.20 [18:13:24]line ИТОГ: 7620.00 [18:13:24]line Тип оплаты: Талоны: Топливные Талоны [18:13:24]line 3982601/3982600 [18:13:24]line ______________________ [18:13:24]line (подпись) [18:13:24]written 0, free lines is 4095 [18:13:24]Write to MH i2c: 01 00 00 28 11 39 [18:13:24]Write i2c OK [18:13:24]MH_I2C_Read... [18:13:24]Read from MH i2c: 01 [18:13:24]MH_I2C_Read... [18:13:24]Read from MH i2c: 01 07 00 [18:13:24]MH_I2C_Read... [18:13:24]Read from MH i2c: 01 07 00 28 11 00 00 00 00 00 14 0E 62 [18:13:24]RasterBufferAndPrint [18:13:24]line [18:13:24]line [18:13:24]line [18:13:24]line [18:13:24]line [18:13:24]written 0, free lines is 3606 [18:13:24]MH_Cut [18:13:24]Write to MH i2c: D1 01 00 2F 11 01 12 [18:13:24]Write i2c OK [18:13:24]MH_I2C_Read... [18:13:24]Read from MH i2c: D1 [18:13:24]MH_I2C_Read... [18:13:24]Read from MH i2c: D1 01 00 [18:13:24]MH_I2C_Read... [18:13:24]Read from MH i2c: D1 01 00 2F 11 00 11 [18:13:24]Write to MH i2c: 01 00 00 30 11 41 [18:13:24]Write i2c OK [18:13:24]MH_I2C_Read... [18:13:25]*** Cut start [18:13:25]*** Partial cut [18:13:25]*** CUTSNS_PIN = 1 [18:13:25]OFD Sender: No OFD packet to send [18:13:25]*** CUTSNS_PIN = 0 [18:13:25]*** Brake cut motor [18:13:25]Read from MH i2c: 01 [18:13:25]MH_I2C_Read... [18:13:25]*** Stop cut motor [18:13:25]*** Cut end [18:13:25]Read from MH i2c: 01 07 00 [18:13:25]MH_I2C_Read... [18:13:25]Read from MH i2c: 01 07 00 30 11 00 00 00 00 00 FF 0F 56 [18:13:25]process_action print_text done [18:13:25]requested_data is exist [18:13:25]produce_requested_data [18:13:25]requested_item fm.sn is exist - process it [18:13:25]wFMCommunicate request_size=4 [18:13:25]MH_SAM_APDU [18:13:25]CAPDU: 80 11 00 00 [18:13:25]Write to MH i2c: E2 08 00 31 11 80 11 00 00 00 00 00 00 BC [18:13:25]Write i2c OK [18:13:25]MH_I2C_Read... [18:13:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:25]Read from MH i2c: E2 [18:13:25]MH_I2C_Read... [18:13:25]Read from MH i2c: E2 17 00 [18:13:25]MH_I2C_Read... [18:13:25]Read from MH i2c: E2 17 00 31 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 17 [18:13:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:13:25]wFMCommunicate OK [18:13:25]requested_item fd.num is exist - process it [18:13:25]SAM_PROTO_GetFieldsCounters [18:13:25]wFMCommunicate request_size=4 [18:13:25]MH_SAM_APDU [18:13:25]CAPDU: 80 13 00 00 [18:13:25]Write to MH i2c: E2 08 00 32 11 80 13 00 00 00 00 00 00 BF [18:13:25]Write i2c OK [18:13:25]MH_I2C_Read... [18:13:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:25]Read from MH i2c: E2 [18:13:25]MH_I2C_Read... [18:13:25]Read from MH i2c: E2 62 00 [18:13:25]MH_I2C_Read... [18:13:25]Read from MH i2c: E2 62 00 32 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 13 CF 01 00 0E 04 04 00 B1 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 03 [18:13:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 13 CF 01 00 0E 04 04 00 B1 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 [18:13:25]wFMCommunicate OK [18:13:25]SAM_PROTO_GetFieldsCounters done [18:13:25]requested_item shift.num is exist - process it [18:13:25]requested_item shift.opened is exist - process it [18:13:25]req_shift_opened [18:13:25]FM_GetShiftState [18:13:25]SAM_PROTO_GetShiftState [18:13:25]wFMCommunicate request_size=4 [18:13:25]MH_SAM_APDU [18:13:25]CAPDU: 80 13 01 00 [18:13:25]Write to MH i2c: E2 08 00 33 11 80 13 01 00 00 00 00 00 C1 [18:13:25]Write i2c OK [18:13:25]MH_I2C_Read... [18:13:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:25]Read from MH i2c: E2 [18:13:25]MH_I2C_Read... [18:13:25]Read from MH i2c: E2 0E 00 [18:13:25]MH_I2C_Read... [18:13:25]Read from MH i2c: E2 0E 00 33 11 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 98 [18:13:25]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:13:25]wFMCommunicate OK [18:13:25]SAM_PROTO_GetShiftState done [18:13:25]FM_GetShiftState done [18:13:25]req_shift_opened done [18:13:25]requested_item shift.open_date is exist - process it [18:13:25]req_shift_open_date [18:13:25]req_shift_open_date done [18:13:25]produce_requested_data done [18:13:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118547,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:13:25]process_action_free print_text [18:13:25]json_value_free [18:13:25]json_value_free done [18:13:25]process_json_proto returns [18:13:25]Send response to host [18:13:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118547,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:13:25]free response buf [18:13:25]execute_script done [18:13:25]execute_script returns [18:13:25]free content buf [18:13:25]Sock 9.Close socket [18:13:25]Sock 9.Thread stoped [18:13:30]OFD Sender: No OFD packet to send [18:13:35]OFD Sender: No OFD packet to send [18:13:40]OFD Sender: No OFD packet to send [18:13:45]OFD Sender: No OFD packet to send [18:13:50]OFD Sender: No OFD packet to send [18:13:55]OFD Sender: No OFD packet to send [18:14:00]OFD Sender: No OFD packet to send [18:14:05]OFD Sender: No OFD packet to send [18:14:10]OFD Sender: No OFD packet to send [18:14:15]OFD Sender: No OFD packet to send [18:14:20]OFD Sender: No OFD packet to send [18:14:25]OFD Sender: No OFD packet to send [18:14:30]OFD Sender: No OFD packet to send [18:14:35]OFD Sender: No OFD packet to send [18:14:40]OFD Sender: No OFD packet to send [18:14:45]OFD Sender: No OFD packet to send [18:14:50]OFD Sender: No OFD packet to send [18:14:55]OFD Sender: No OFD packet to send [18:15:00]OFD Sender: No OFD packet to send [18:15:05]OFD Sender: No OFD packet to send [18:15:10]OFD Sender: No OFD packet to send [18:15:15]OFD Sender: No OFD packet to send [18:15:20]OFD Sender: No OFD packet to send [18:15:25]OFD Sender: No OFD packet to send [18:15:30]OFD Sender: No OFD packet to send [18:15:35]OFD Sender: No OFD packet to send [18:15:40]OFD Sender: No OFD packet to send [18:15:45]OFD Sender: No OFD packet to send [18:15:50]OFD Sender: No OFD packet to send [18:15:55]OFD Sender: No OFD packet to send [18:16:00]OFD Sender: No OFD packet to send [18:16:05]OFD Sender: No OFD packet to send [18:16:10]OFD Sender: No OFD packet to send [18:16:15]OFD Sender: No OFD packet to send [18:16:20]OFD Sender: No OFD packet to send [18:16:25]OFD Sender: No OFD packet to send [18:16:30]OFD Sender: No OFD packet to send [18:16:35]OFD Sender: No OFD packet to send [18:16:40]OFD Sender: No OFD packet to send [18:16:45]OFD Sender: No OFD packet to send [18:16:50]OFD Sender: No OFD packet to send [18:16:55]OFD Sender: No OFD packet to send [18:17:00]OFD Sender: No OFD packet to send [18:17:05]OFD Sender: No OFD packet to send [18:17:10]accept exits with 7 [18:17:10]New connection [18:17:10]New thread 3067383140 created [18:17:10]Thread 3067239780 joined [18:17:10]Waiting for new connection... [18:17:10] Sock 7.Parse request [18:17:10]Sock 7.Check first char [18:17:10]Sock 7.First char is OK [18:17:10]request: POST /json_proto HTTP/1.0 [18:17:10]Method: POST [18:17:10]URL: /json_proto [18:17:10]Method is POST - this is cgi request [18:17:10]url: /json_proto [18:17:10]query_string will be loaded in cgi processing [18:17:10]execute_cgi json_proto POST (null) [18:17:10]execute_cgi path=json_proto method=POST [18:17:10]POST find Content-Length [18:17:10]Host: 172.17.45.7:8080 [18:17:10]Content-Length: 1203 [18:17:10]Content-Type: application/json [18:17:10] [18:17:10]POST finish read [18:17:10]Found Content-Length = 1203 [18:17: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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949432\u000A28.07.2024 18:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982605/3982604\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:10]execute_script... [18:17: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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949432\u000A28.07.2024 18:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982605/3982604\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:10]POST & json_proto [18:17:10]process_json_proto [18:17:10]json parsed OK: [18:17:10]protocol is kg_v1.0 [18:17:10]action value=print_text [18:17:10]process_action print_text [18:17:10]cmd_print_text [18:17:10]ExternCall_PrintAddStr [18:17:10]wPrintStart [18:17:10]Write to MH i2c: 01 00 00 34 11 45 [18:17:10]Write i2c OK [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: 01 [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: 01 07 00 [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: 01 07 00 34 11 00 00 00 00 00 FF 0F 5A [18:17:10]RasterBufferAndPrint [18:17:10]line *****ТОВАРНЫЙ ЧЕК***** [18:17:10]line АЗС-134 [18:17:10]line Партнер нефть [18:17:10]line 02508201610067 [18:17:10]line Кассир : Хошимов З. [18:17:10]line Счет N : (1)949432 [18:17:10]line 28.07.2024 18:14 [18:17:10]line ПРОДАЖА [18:17:10]line ТРК (МРК, ГНК): 64 [18:17:10]line Вид ГСМ : 2710194800 [18:17:10]line ДТ-К-5 [18:17:10]line 100.000 x 76.20 [18:17:10]line ИТОГ: 7620.00 [18:17:10]line Тип оплаты: Талоны: Топливные Талоны [18:17:10]line 3982605/3982604 [18:17:10]line ______________________ [18:17:10]line (подпись) [18:17:10]written 0, free lines is 4095 [18:17:10]OFD Sender: No OFD packet to send [18:17:10]Write to MH i2c: 01 00 00 48 11 59 [18:17:10]Write i2c OK [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: 01 [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: 01 07 00 [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: 01 07 00 48 11 00 00 00 00 00 13 0E 81 [18:17:10]RasterBufferAndPrint [18:17:10]line [18:17:10]line [18:17:10]line [18:17:10]line [18:17:10]line [18:17:10]written 0, free lines is 3605 [18:17:10]MH_Cut [18:17:10]Write to MH i2c: D1 01 00 4F 11 01 32 [18:17:10]Write i2c OK [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: D1 [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: D1 01 00 [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: D1 01 00 4F 11 00 31 [18:17:10]Write to MH i2c: 01 00 00 50 11 61 [18:17:10]Write i2c OK [18:17:10]MH_I2C_Read... [18:17:10]*** Cut start [18:17:10]*** Partial cut [18:17:10]*** CUTSNS_PIN = 1 [18:17:11]*** CUTSNS_PIN = 0 [18:17:11]*** Brake cut motor [18:17:11]Read from MH i2c: 01 [18:17:11]MH_I2C_Read... [18:17:11]*** Stop cut motor [18:17:11]*** Cut end [18:17:11]Read from MH i2c: 01 07 00 [18:17:11]MH_I2C_Read... [18:17:11]Read from MH i2c: 01 07 00 50 11 00 00 00 00 00 FF 0F 76 [18:17:11]process_action print_text done [18:17:11]requested_data is exist [18:17:11]produce_requested_data [18:17:11]requested_item fm.sn is exist - process it [18:17:11]wFMCommunicate request_size=4 [18:17:11]MH_SAM_APDU [18:17:11]CAPDU: 80 11 00 00 [18:17:11]Write to MH i2c: E2 08 00 51 11 80 11 00 00 00 00 00 00 DC [18:17:11]Write i2c OK [18:17:11]MH_I2C_Read... [18:17:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:11]Read from MH i2c: E2 [18:17:11]MH_I2C_Read... [18:17:11]Read from MH i2c: E2 17 00 [18:17:11]MH_I2C_Read... [18:17:11]Read from MH i2c: E2 17 00 51 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 37 [18:17:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:17:11]wFMCommunicate OK [18:17:11]requested_item fd.num is exist - process it [18:17:11]SAM_PROTO_GetFieldsCounters [18:17:11]wFMCommunicate request_size=4 [18:17:11]MH_SAM_APDU [18:17:11]CAPDU: 80 13 00 00 [18:17:11]Write to MH i2c: E2 08 00 52 11 80 13 00 00 00 00 00 00 DF [18:17:11]Write i2c OK [18:17:11]MH_I2C_Read... [18:17:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:11]Read from MH i2c: E2 [18:17:11]MH_I2C_Read... [18:17:11]Read from MH i2c: E2 62 00 [18:17:11]MH_I2C_Read... [18:17:11]Read from MH i2c: E2 62 00 52 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 13 CF 01 00 0E 04 04 00 B1 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 23 [18:17:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 13 CF 01 00 0E 04 04 00 B1 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 [18:17:11]wFMCommunicate OK [18:17:11]SAM_PROTO_GetFieldsCounters done [18:17:11]requested_item shift.num is exist - process it [18:17:11]requested_item shift.opened is exist - process it [18:17:11]req_shift_opened [18:17:11]FM_GetShiftState [18:17:11]SAM_PROTO_GetShiftState [18:17:11]wFMCommunicate request_size=4 [18:17:11]MH_SAM_APDU [18:17:11]CAPDU: 80 13 01 00 [18:17:11]Write to MH i2c: E2 08 00 53 11 80 13 01 00 00 00 00 00 E1 [18:17:11]Write i2c OK [18:17:11]MH_I2C_Read... [18:17:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:11]Read from MH i2c: E2 [18:17:11]MH_I2C_Read... [18:17:11]Read from MH i2c: E2 0E 00 [18:17:11]MH_I2C_Read... [18:17:11]Read from MH i2c: E2 0E 00 53 11 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 B8 [18:17:11]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:17:11]wFMCommunicate OK [18:17:11]SAM_PROTO_GetShiftState done [18:17:11]FM_GetShiftState done [18:17:11]req_shift_opened done [18:17:11]requested_item shift.open_date is exist - process it [18:17:11]req_shift_open_date [18:17:11]req_shift_open_date done [18:17:11]produce_requested_data done [18:17:11]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118547,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:17:11]process_action_free print_text [18:17:11]json_value_free [18:17:11]json_value_free done [18:17:11]process_json_proto returns [18:17:11]Send response to host [18:17:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118547,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:17:11]free response buf [18:17:11]execute_script done [18:17:11]execute_script returns [18:17:11]free content buf [18:17:11]Sock 7.Close socket [18:17:11]Sock 7.Thread stoped [18:17:15]OFD Sender: No OFD packet to send [18:17:20]OFD Sender: No OFD packet to send [18:17:25]OFD Sender: No OFD packet to send [18:17:30]OFD Sender: No OFD packet to send [18:17:35]OFD Sender: No OFD packet to send [18:17:40]OFD Sender: No OFD packet to send [18:17:45]OFD Sender: No OFD packet to send [18:17:50]OFD Sender: No OFD packet to send [18:17:55]OFD Sender: No OFD packet to send [18:17:57]accept exits with 9 [18:17:57]New connection [18:17:57]New thread 3067239780 created [18:17:57]Thread 3067383140 joined [18:17:57]Waiting for new connection... [18:17:57] Sock 9.Parse request [18:17:57]Sock 9.Check first char [18:17:57]Sock 9.First char is OK [18:17:57]request: POST /json_proto HTTP/1.0 [18:17:57]Method: POST [18:17:57]URL: /json_proto [18:17:57]Method is POST - this is cgi request [18:17:57]url: /json_proto [18:17:57]query_string will be loaded in cgi processing [18:17:57]execute_cgi json_proto POST (null) [18:17:57]execute_cgi path=json_proto method=POST [18:17:57]POST find Content-Length [18:17:57]Host: 172.17.45.7:8080 [18:17:57]Content-Length: 1203 [18:17:57]Content-Type: application/json [18:17:57] [18:17:57]POST finish read [18:17:57]Found Content-Length = 1203 [18:17: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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949433\u000A28.07.2024 18:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982607/3982606\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:57]execute_script... [18:17: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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949433\u000A28.07.2024 18:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982607/3982606\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:57]POST & json_proto [18:17:57]process_json_proto [18:17:57]json parsed OK: [18:17:57]protocol is kg_v1.0 [18:17:57]action value=print_text [18:17:57]process_action print_text [18:17:57]cmd_print_text [18:17:57]ExternCall_PrintAddStr [18:17:57]wPrintStart [18:17:57]Write to MH i2c: 01 00 00 54 11 65 [18:17:57]Write i2c OK [18:17:57]MH_I2C_Read... [18:17:57]Read from MH i2c: 01 [18:17:57]MH_I2C_Read... [18:17:57]Read from MH i2c: 01 07 00 [18:17:57]MH_I2C_Read... [18:17:57]Read from MH i2c: 01 07 00 54 11 00 00 00 00 00 FF 0F 7A [18:17:57]RasterBufferAndPrint [18:17:57]line *****ТОВАРНЫЙ ЧЕК***** [18:17:57]line АЗС-134 [18:17:57]line Партнер нефть [18:17:57]line 02508201610067 [18:17:57]line Кассир : Хошимов З. [18:17:57]line Счет N : (1)949433 [18:17:57]line 28.07.2024 18:15 [18:17:57]line ПРОДАЖА [18:17:57]line ТРК (МРК, ГНК): 54 [18:17:57]line Вид ГСМ : 2710194800 [18:17:57]line ДТ-К-5 [18:17:57]line 100.000 x 76.20 [18:17:57]line ИТОГ: 7620.00 [18:17:57]line Тип оплаты: Талоны: Топливные Талоны [18:17:57]line 3982607/3982606 [18:17:57]line ______________________ [18:17:57]line (подпись) [18:17:57]written 0, free lines is 4095 [18:17:57]Write to MH i2c: 01 00 00 68 11 79 [18:17:57]Write i2c OK [18:17:57]MH_I2C_Read... [18:17:57]Read from MH i2c: 01 [18:17:57]MH_I2C_Read... [18:17:57]Read from MH i2c: 01 07 00 [18:17:57]MH_I2C_Read... [18:17:57]Read from MH i2c: 01 07 00 68 11 00 00 00 00 00 13 0E A1 [18:17:57]RasterBufferAndPrint [18:17:57]line [18:17:57]line [18:17:57]line [18:17:57]line [18:17:57]line [18:17:57]written 0, free lines is 3605 [18:17:57]MH_Cut [18:17:57]Write to MH i2c: D1 01 00 6F 11 01 52 [18:17:57]Write i2c OK [18:17:57]MH_I2C_Read... [18:17:57]Read from MH i2c: D1 [18:17:57]MH_I2C_Read... [18:17:57]Read from MH i2c: D1 01 00 [18:17:57]MH_I2C_Read... [18:17:57]Read from MH i2c: D1 01 00 6F 11 00 51 [18:17:57]Write to MH i2c: 01 00 00 70 11 81 [18:17:57]Write i2c OK [18:17:57]MH_I2C_Read... [18:17:58]*** Cut start [18:17:58]*** Partial cut [18:17:58]*** CUTSNS_PIN = 1 [18:17:58]*** CUTSNS_PIN = 0 [18:17:58]*** Brake cut motor [18:17:59]Read from MH i2c: 01 [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: 01 07 00 [18:17:59]MH_I2C_Read... [18:17:59]*** Stop cut motor [18:17:59]*** Cut end [18:17:59]Read from MH i2c: 01 07 00 70 11 00 00 00 00 00 FF 0F 96 [18:17:59]process_action print_text done [18:17:59]requested_data is exist [18:17:59]produce_requested_data [18:17:59]requested_item fm.sn is exist - process it [18:17:59]wFMCommunicate request_size=4 [18:17:59]MH_SAM_APDU [18:17:59]CAPDU: 80 11 00 00 [18:17:59]Write to MH i2c: E2 08 00 71 11 80 11 00 00 00 00 00 00 FC [18:17:59]Write i2c OK [18:17:59]MH_I2C_Read... [18:17:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:59]Read from MH i2c: E2 [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: E2 17 00 [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: E2 17 00 71 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 57 [18:17:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:17:59]wFMCommunicate OK [18:17:59]requested_item fd.num is exist - process it [18:17:59]SAM_PROTO_GetFieldsCounters [18:17:59]wFMCommunicate request_size=4 [18:17:59]MH_SAM_APDU [18:17:59]CAPDU: 80 13 00 00 [18:17:59]Write to MH i2c: E2 08 00 72 11 80 13 00 00 00 00 00 00 FF [18:17:59]Write i2c OK [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: E2 [18:17:59]MH_I2C_Read... [18:17:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:59]Read from MH i2c: E2 62 00 [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: E2 62 00 72 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 13 CF 01 00 0E 04 04 00 B1 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 43 [18:17:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 13 CF 01 00 0E 04 04 00 B1 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 [18:17:59]wFMCommunicate OK [18:17:59]SAM_PROTO_GetFieldsCounters done [18:17:59]requested_item shift.num is exist - process it [18:17:59]requested_item shift.opened is exist - process it [18:17:59]req_shift_opened [18:17:59]FM_GetShiftState [18:17:59]SAM_PROTO_GetShiftState [18:17:59]wFMCommunicate request_size=4 [18:17:59]MH_SAM_APDU [18:17:59]CAPDU: 80 13 01 00 [18:17:59]Write to MH i2c: E2 08 00 73 11 80 13 01 00 00 00 00 00 01 [18:17:59]Write i2c OK [18:17:59]MH_I2C_Read... [18:17:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:59]Read from MH i2c: E2 [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: E2 0E 00 [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: E2 0E 00 73 11 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 D8 [18:17:59]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:17:59]wFMCommunicate OK [18:17:59]SAM_PROTO_GetShiftState done [18:17:59]FM_GetShiftState done [18:17:59]req_shift_opened done [18:17:59]requested_item shift.open_date is exist - process it [18:17:59]req_shift_open_date [18:17:59]req_shift_open_date done [18:17:59]produce_requested_data done [18:17:59]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118547,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:17:59]process_action_free print_text [18:17:59]json_value_free [18:17:59]json_value_free done [18:17:59]process_json_proto returns [18:17:59]Send response to host [18:17:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118547,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:17:59]free response buf [18:17:59]execute_script done [18:17:59]execute_script returns [18:17:59]free content buf [18:17:59]Sock 9.Close socket [18:17:59]Sock 9.Thread stoped [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 7 [18:18:28]New connection [18:18:28]New thread 3067383140 created [18:18:28]Thread 3067239780 joined [18:18:28]Waiting for new connection... [18:18:28] Sock 7.Parse request [18:18:28]Sock 7.Check first char [18:18:28]Sock 7.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.45.7:8080 [18:18:28]Content-Length: 679 [18:18:28]Content-Type: application/json [18:18:28] [18:18:28]POST finish read [18:18:28]Found Content-Length = 679 [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)949435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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)949435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 74 11 74 [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 74 11 00 76 8B A6 66 90 0F 3E 66 CD [18:18:28]GetLastDocTimeStamp 1722190373 [18:18:28]current date 1722190710 [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 75 11 80 13 01 00 00 00 00 00 03 [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 75 11 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 DA [18:18:28]RAPDU: 09 00 01 34 8C A5 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 1722125364 [18:18:28]opened+sec_in_day 1722211764 [18:18:28]quantity*price = 100050 [18:18:28]sum+1 = 100052 [18:18:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 217 28.07.2024 18:18 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118548 ФПД: 119183634375731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T181830&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118548&fm=119183634375731&tin=02508201610067®Number=0000000000092660&sum=100000 [18:18:30]StoreToDocumentArchive [18:18:30]shift 433 fd 118548 [18:18:30]save to /storage/0433/doc_00118548 [18:18:30]save last doc name /storage/0433/doc_00118548 to /storage/kkm_last_doc_name [18:18:30]save OK [18:18:30]Clear old archive folders... [18:18:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:18:30]tlvbuf is B6F43350 [18:18:30]SAM_PROTO_ClearQueue [18:18:30]wFMCommunicate request_size=4 [18:18:30]MH_SAM_APDU [18:18:30]CAPDU: 80 09 00 00 [18:18:30]Write to MH i2c: E2 08 00 82 11 80 09 00 00 00 00 00 00 05 [18:18:30]Write i2c OK [18:18:30]MH_I2C_Read... [18:18:30]*** iso7816_exchange 80 09 00 00... 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 82 11 00 90 00 07 [18:18:30]RAPDU: 90 00 [18:18:30]wFMCommunicate OK [18:18:30]SAM_PROTO_ClearQueue done [18:18:30]KKMCreateOFDPacket [18:18:30]OFDProtocolAddRootSTLVToBuf [18:18:30]FM_MakeSignedData [18:18:30]FM_MakeSignedData [18:18:30]SAM_PROTO_SignData [18:18:30]wFMCommunicate request_size=4 [18:18:30]MH_SAM_APDU [18:18:30]CAPDU: 80 0D 01 02 [18:18:30]Write to MH i2c: E2 08 00 83 11 80 0D 01 02 00 00 00 00 0D [18:18:30]Write i2c OK [18:18:30]MH_I2C_Read... [18:18:30]*** iso7816_exchange 80 0D 01 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 83 11 00 90 00 08 [18:18:30]RAPDU: 90 00 [18:18:30]wFMCommunicate OK [18:18:30]wFMCommunicate request_size=255 [18:18:30]MH_SAM_APDU [18:18:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 76 8B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 14 CF 01 00 35 04 06 00 6C 65 9A 30 [18:18:30]Write to MH i2c: E2 02 01 84 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 76 8B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 14 CF 01 00 35 04 06 00 6C 65 9A 30 00 00 B4 [18:18:30]Write i2c OK [18:18:30]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 84 11 00 90 00 09 [18:18:30]RAPDU: 90 00 [18:18:30]wFMCommunicate OK [18:18:30]wFMCommunicate request_size=7 [18:18:30]MH_SAM_APDU [18:18:30]CAPDU: 80 0D 02 02 02 A4 33 [18:18:30]Write to MH i2c: E2 0A 00 85 11 80 0D 02 02 02 00 A4 33 00 00 EB [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 85 11 00 90 00 0A [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 86 11 80 0D 03 02 00 00 00 00 12 [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 86 11 00 4E 9B E9 52 28 D2 BA 6D 90 00 58 [18:18:30]RAPDU: 4E 9B E9 52 28 D2 BA 6D 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 87 11 80 11 00 00 00 00 00 00 12 [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 87 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6D [18:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:18:30]wFMCommunicate OK [18:18:30]CreateOFDProtocolMessage done [18:18:30]OFDSenderStorePacket 118548 [18:18:30]StoreOFDPacket docnum=118548 [18:18:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 58 AA 04 01 A5 D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 76 8B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 14 CF 01 00 35 04 06 00 6C 65 9A 30 A4 33 4E 9B E9 52 28 D2 BA 6D [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/00118548 [18:18:30]NVStorageSaveData ofd_packets/00118548 [18:18:30]File name is /storage/ofd_packets/00118548 [18:18:30]Write 298 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 88 11 99 [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 88 11 00 00 00 00 00 FF 0F AE [18:18:30]RasterBufferAndPrint [18:18:30]line Счет N : (1)949435 [18:18:30]line ИНН: 02508201610067 [18:18:30]line Контрольно-Кассовый Чек [18:18:30]line ПРОДАЖА [18:18:30]line ТРК (МРК, ГНК) : 54 [18:18:30]line Товар: 2710194800 [18:18:30]line ДТ-К-5 [18:18:30]line 13.130 * 76.20 [18:18:30]line = 1000.51 [18:18:30]line НДС 12% НСП 1% [18:18:30]line > о реализуемом товаре [18:18:30]line ОКРУГЛЕНИЕ: -0.51 [18:18:30]line ИТОГО: 1000.00 [18:18:30]line Внесено: 1000.00 [18:18:30]line СДАЧА: 0.00 [18:18:30]line НСП 1% : 8.85 [18:18:30]line НДС 12% : 106.25 [18:18:30]line Наличными: 1000.00 [18:18:30]line Безнал.: 0.00 [18:18:30]line Место: АЗС № 134 "Партнер Нефть" [18:18:30]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:18:30]line СНО: Общий режим [18:18:30]line Чек 217 28.07.2024 18:18 [18:18:30]line Смена: 433 ФФД: 1.0 [18:18:30]line ЗНМ: 0300000044 [18:18:30]line РНМ: 0000000000092660 [18:18:30]line Версия ККМ: 001 [18:18:30]line ФМ: 0000000000874939 [18:18:30]line ФД: 118548 [18:18:30]line ФПД: 119183634375731 [18:18:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T181830&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118548&fm=119183634375731&tin=02508201610067®Number=0000000000092660&sum=100000 [18:18:30]OFD Sender: Processing packet 118548 [packets to send 86, broken 85] [18:18:30]ProducePacketName [18:18:30]name=ofd_packets/00118548 [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]written 0, free lines is 4095 [18:18:31]Connected sock=10 [18:18:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 58 AA 04 01 A5 D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 76 8B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 14 CF 01 00 35 04 06 00 6C 65 9A 30 A4 33 4E 9B E9 52 28 D2 BA 6D [18:18:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 16 0C 47 00 54 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 39 33 39 10 04 04 00 14 CF 01 00 F4 03 04 00 06 39 A6 66 B6 04 01 00 00 2C E1 2A D8 6F 43 9D 77 [18:18:31]CommunicateWithHost err = 0 [18:18:31]CheckOFDResponse [18:18:31]1017 (14) - 77093643461234 [18:18:31]1041 (16) - 0000000000874939 [18:18:31]1040 (4) - 118548 [18:18:31]1012 (4) - 28.07.2024 12:26 [18:18:31]1206 (1) - 0 [18:18:31]OFD Sender: Remove packet 118548 [18:18:31]ProducePacketName [18:18:31]name=ofd_packets/00118548 [18:18:31]NVStorageDeleteData [18:18:31]Write to MH i2c: 01 00 00 B2 11 C3 [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 B2 11 00 00 00 00 00 CB 0C A1 [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 3282 [18:18:31]MH_Cut [18:18:31]Write to MH i2c: D1 01 00 B9 11 01 9C [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 B9 11 00 9B [18:18:31]Write to MH i2c: 01 00 00 BA 11 CB [18:18:31]Write i2c OK [18:18:31]MH_I2C_Read... [18:18:31]OFD Sender: No OFD packet to send [18:18:32]*** Cut start [18:18:32]*** Partial cut [18:18:32]*** CUTSNS_PIN = 1 [18:18:32]*** CUTSNS_PIN = 0 [18:18:32]*** Brake cut motor [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 BA 11 00 00 00 00 00 FF 0F E0 [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 BB 11 80 11 00 00 00 00 00 00 46 [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 BB 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A1 [18:18:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 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 BC 11 80 13 00 00 00 00 00 00 49 [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 BC 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 14 CF 01 00 0E 04 04 00 B1 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 91 [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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 14 CF 01 00 0E 04 04 00 B1 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 [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 BD 11 80 13 01 00 00 00 00 00 4B [18:18:32]Write i2c OK [18:18:32]MH_I2C_Read... [18:18:32]Read from MH i2c: E2 [18:18:33]MH_I2C_Read... [18:18:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:33]Read from MH i2c: E2 0E 00 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: E2 0E 00 BD 11 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 22 [18:18:33]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:18:33]wFMCommunicate OK [18:18:33]SAM_PROTO_GetShiftState done [18:18:33]FM_GetShiftState done [18:18:33]req_shift_opened done [18:18:33]requested_item shift.open_date is exist - process it [18:18:33]req_shift_open_date [18:18:33]req_shift_open_date done [18:18:33]produce_requested_data done [18:18:33]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118548,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:18:33]process_action_free close_receipt [18:18:33]json_value_free [18:18:33]json_value_free done [18:18:33]process_json_proto returns [18:18:33]Send response to host [18:18:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118548,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:18:33]free response buf [18:18:33]execute_script done [18:18:33]execute_script returns [18:18:33]free content buf [18:18:33]Sock 7.Close socket [18:18:33]Sock 7.Thread stoped [18:18:36]OFD Sender: No OFD packet to send [18:18:41]OFD Sender: No OFD packet to send [18:18:46]OFD Sender: No OFD packet to send [18:18:51]OFD Sender: No OFD packet to send [18:18:56]OFD Sender: No OFD packet to send [18:19:01]OFD Sender: No OFD packet to send [18:19:06]OFD Sender: No OFD packet to send [18:19:11]accept exits with 9 [18:19:11]New connection [18:19:11]New thread 3067239780 created [18:19:11]Thread 3067383140 joined [18:19:11]Waiting for new connection... [18:19:11] Sock 9.Parse request [18:19:11]Sock 9.Check first char [18:19:11]Sock 9.First char is OK [18:19:11]request: POST /json_proto HTTP/1.0 [18:19:11]Method: POST [18:19:11]URL: /json_proto [18:19:11]Method is POST - this is cgi request [18:19:11]url: /json_proto [18:19:11]query_string will be loaded in cgi processing [18:19:11]execute_cgi json_proto POST (null) [18:19:11]execute_cgi path=json_proto method=POST [18:19:11]POST find Content-Length [18:19:11]Host: 172.17.45.7:8080 [18:19:11]Content-Length: 679 [18:19:11]Content-Type: application/json [18:19:11] [18:19:11]POST finish read [18:19:11]Found Content-Length = 679 [18:19:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:11]execute_script... [18:19: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)949436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:11]POST & json_proto [18:19:11]process_json_proto [18:19:11]json parsed OK: [18:19:11]protocol is kg_v1.0 [18:19:11]action value=close_receipt [18:19:11]process_action close_receipt [18:19:11]cmd_close_receipt [18:19:11]MH_GetDate [18:19:11]Write to MH i2c: F0 00 00 BE 11 BE [18:19:11]Write i2c OK [18:19:11]MH_I2C_Read... [18:19:11]Read from MH i2c: F0 [18:19:11]MH_I2C_Read... [18:19:11]Read from MH i2c: F0 09 00 [18:19:11]MH_I2C_Read... [18:19:11]Read from MH i2c: F0 09 00 BE 11 00 A0 8B A6 66 90 0F 3E 66 41 [18:19:11]GetLastDocTimeStamp 1722190710 [18:19:11]current date 1722190752 [18:19:11]FM_GetShiftState [18:19:11]SAM_PROTO_GetShiftState [18:19:11]wFMCommunicate request_size=4 [18:19:11]MH_SAM_APDU [18:19:11]CAPDU: 80 13 01 00 [18:19:11]Write to MH i2c: E2 08 00 BF 11 80 13 01 00 00 00 00 00 4D [18:19:11]Write i2c OK [18:19:11]MH_I2C_Read... [18:19:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:11]Read from MH i2c: E2 [18:19:11]MH_I2C_Read... [18:19:11]Read from MH i2c: E2 0E 00 [18:19:11]MH_I2C_Read... [18:19:11]Read from MH i2c: E2 0E 00 BF 11 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 24 [18:19:11]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:19:11]wFMCommunicate OK [18:19:11]SAM_PROTO_GetShiftState done [18:19:11]FM_GetShiftState done [18:19:11]opened in 1722125364 [18:19:11]opened+sec_in_day 1722211764 [18:19:11]quantity*price = 100050 [18:19:11]sum+1 = 100052 [18:19:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 218 28.07.2024 18:19 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118549 ФПД: 82252889201600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T181912&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118549&fm=82252889201600&tin=02508201610067®Number=0000000000092660&sum=100000 [18:19:12]StoreToDocumentArchive [18:19:12]shift 433 fd 118549 [18:19:12]save to /storage/0433/doc_00118549 [18:19:12]save last doc name /storage/0433/doc_00118549 to /storage/kkm_last_doc_name [18:19:12]save OK [18:19:12]Clear old archive folders... [18:19:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:19:12]tlvbuf is 01E58A30 [18:19:12]SAM_PROTO_ClearQueue [18:19:12]wFMCommunicate request_size=4 [18:19:12]MH_SAM_APDU [18:19:12]CAPDU: 80 09 00 00 [18:19:12]Write to MH i2c: E2 08 00 CC 11 80 09 00 00 00 00 00 00 4F [18:19:12]Write i2c OK [18:19:12]MH_I2C_Read... [18:19:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:19:12]Read from MH i2c: E2 [18:19:12]MH_I2C_Read... [18:19:12]Read from MH i2c: E2 03 00 [18:19:12]MH_I2C_Read... [18:19:12]Read from MH i2c: E2 03 00 CC 11 00 90 00 51 [18:19:12]RAPDU: 90 00 [18:19:12]wFMCommunicate OK [18:19:12]SAM_PROTO_ClearQueue done [18:19:12]KKMCreateOFDPacket [18:19:12]OFDProtocolAddRootSTLVToBuf [18:19:12]FM_MakeSignedData [18:19:12]FM_MakeSignedData [18:19:12]SAM_PROTO_SignData [18:19:12]wFMCommunicate request_size=4 [18:19:12]MH_SAM_APDU [18:19:12]CAPDU: 80 0D 01 02 [18:19:12]Write to MH i2c: E2 08 00 CD 11 80 0D 01 02 00 00 00 00 57 [18:19:12]Write i2c OK [18:19:12]MH_I2C_Read... [18:19:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:19:12]Read from MH i2c: E2 [18:19:12]MH_I2C_Read... [18:19:12]Read from MH i2c: E2 03 00 [18:19:12]MH_I2C_Read... [18:19:12]Read from MH i2c: E2 03 00 CD 11 00 90 00 52 [18:19:12]RAPDU: 90 00 [18:19:12]wFMCommunicate OK [18:19:12]wFMCommunicate request_size=255 [18:19:12]MH_SAM_APDU [18:19:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 A0 8B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 15 CF 01 00 35 04 06 00 4A CE FE 3E [18:19:12]Write to MH i2c: E2 02 01 CE 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 A0 8B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 15 CF 01 00 35 04 06 00 4A CE FE 3E 00 00 E3 [18:19:12]Write i2c OK [18:19:12]MH_I2C_Read... [18:19:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:12]Read from MH i2c: E2 [18:19:12]MH_I2C_Read... [18:19:12]Read from MH i2c: E2 03 00 [18:19:12]MH_I2C_Read... [18:19:12]Read from MH i2c: E2 03 00 CE 11 00 90 00 53 [18:19:12]RAPDU: 90 00 [18:19:12]wFMCommunicate OK [18:19:12]wFMCommunicate request_size=7 [18:19:12]MH_SAM_APDU [18:19:12]CAPDU: 80 0D 02 02 02 1B C0 [18:19:12]Write to MH i2c: E2 0A 00 CF 11 80 0D 02 02 02 00 1B C0 00 00 39 [18:19:12]Write i2c OK [18:19:12]MH_I2C_Read... [18:19:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:12]Read from MH i2c: E2 [18:19:12]MH_I2C_Read... [18:19:12]Read from MH i2c: E2 03 00 [18:19:12]MH_I2C_Read... [18:19:12]Read from MH i2c: E2 03 00 CF 11 00 90 00 54 [18:19:12]RAPDU: 90 00 [18:19:12]wFMCommunicate OK [18:19:12]wFMCommunicate request_size=4 [18:19:12]MH_SAM_APDU [18:19:12]CAPDU: 80 0D 03 02 [18:19:12]Write to MH i2c: E2 08 00 D0 11 80 0D 03 02 00 00 00 00 5C [18:19:12]Write i2c OK [18:19:12]MH_I2C_Read... [18:19:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:19:12]Read from MH i2c: E2 [18:19:12]MH_I2C_Read... [18:19:12]Read from MH i2c: E2 0B 00 [18:19:12]MH_I2C_Read... [18:19:12]Read from MH i2c: E2 0B 00 D0 11 00 46 C5 9D F2 DB 62 57 DA 90 00 65 [18:19:12]RAPDU: 46 C5 9D F2 DB 62 57 DA 90 00 [18:19:12]wFMCommunicate OK [18:19:12]SAM_PROTO_SignData done [18:19:12]FM_MakeSignedData done [18:19:12]CreateOFDProtocolMessage [18:19:12]wFMCommunicate request_size=4 [18:19:12]MH_SAM_APDU [18:19:12]CAPDU: 80 11 00 00 [18:19:12]Write to MH i2c: E2 08 00 D1 11 80 11 00 00 00 00 00 00 5C [18:19:12]Write i2c OK [18:19:12]MH_I2C_Read... [18:19:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:12]Read from MH i2c: E2 [18:19:12]MH_I2C_Read... [18:19:12]Read from MH i2c: E2 17 00 [18:19:12]MH_I2C_Read... [18:19:12]Read from MH i2c: E2 17 00 D1 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B7 [18:19:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:19:12]wFMCommunicate OK [18:19:12]CreateOFDProtocolMessage done [18:19:12]OFDSenderStorePacket 118549 [18:19:12]StoreOFDPacket docnum=118549 [18:19:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 57 B7 04 01 AB 23 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 A0 8B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 15 CF 01 00 35 04 06 00 4A CE FE 3E 1B C0 46 C5 9D F2 DB 62 57 DA [18:19:12]CheckFolder [18:19:12]dirname=/storage/ofd_packets [18:19:12]CheckFolder done [18:19:12]ProducePacketName [18:19:12]name=ofd_packets/00118549 [18:19:12]NVStorageSaveData ofd_packets/00118549 [18:19:12]File name is /storage/ofd_packets/00118549 [18:19:12]Write 298 bytes [18:19:12]NVStorageSaveData done [18:19:12]OFDSenderStorePacket done [18:19:12]KKMCreateOFDPacket done [18:19:12]NVStorageSaveData kkm_last_timestamp [18:19:12]File name is /storage/kkm_last_timestamp [18:19:12]Write 4 bytes [18:19:12]NVStorageSaveData done [18:19:12]ExternCall_PrintAddStr [18:19:12]wPrintStart [18:19:12]Write to MH i2c: 01 00 00 D2 11 E3 [18:19:12]Write i2c OK [18:19:12]MH_I2C_Read... [18:19:12]Read from MH i2c: 01 [18:19:12]MH_I2C_Read... [18:19:12]Read from MH i2c: 01 07 00 [18:19:12]MH_I2C_Read... [18:19:12]Read from MH i2c: 01 07 00 D2 11 00 00 00 00 00 FF 0F F8 [18:19:12]RasterBufferAndPrint [18:19:12]line Счет N : (1)949436 [18:19:12]line ИНН: 02508201610067 [18:19:12]line Контрольно-Кассовый Чек [18:19:12]line ПРОДАЖА [18:19:12]line ТРК (МРК, ГНК) : 11 [18:19:12]line Товар: 2710194800 [18:19:12]line ДТ-К-5 [18:19:12]line 13.130 * 76.20 [18:19:12]line = 1000.51 [18:19:12]line НДС 12% НСП 1% [18:19:12]line > о реализуемом товаре [18:19:12]line ОКРУГЛЕНИЕ: -0.51 [18:19:12]line ИТОГО: 1000.00 [18:19:12]line Внесено: 1000.00 [18:19:12]line СДАЧА: 0.00 [18:19:12]line НСП 1% : 8.85 [18:19:12]line НДС 12% : 106.25 [18:19:12]line Наличными: 1000.00 [18:19:12]line Безнал.: 0.00 [18:19:12]line Место: АЗС № 134 "Партнер Нефть" [18:19:12]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:19:12]line СНО: Общий режим [18:19:12]line Чек 218 28.07.2024 18:19 [18:19:12]line Смена: 433 ФФД: 1.0 [18:19:12]line ЗНМ: 0300000044 [18:19:12]line РНМ: 0000000000092660 [18:19:12]line Версия ККМ: 001 [18:19:12]line ФМ: 0000000000874939 [18:19:12]line ФД: 118549 [18:19:12]line ФПД: 82252889201600 [18:19:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T181912&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118549&fm=82252889201600&tin=02508201610067®Number=0000000000092660&sum=100000 [18:19:13]OFD Sender: Processing packet 118549 [packets to send 86, broken 85] [18:19:13]ProducePacketName [18:19:13]name=ofd_packets/00118549 [18:19:13]OFD Sender: To server: pG, [18:19:13]CommunicateWithHost lk.salyk.kg:30040 [18:19:13]ConnectInit lk.salyk.kg [18:19:13]written 0, free lines is 4095 [18:19:13]Connected sock=10 [18:19:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 57 B7 04 01 AB 23 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 A0 8B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 15 CF 01 00 35 04 06 00 4A CE FE 3E 1B C0 46 C5 9D F2 DB 62 57 DA [18:19:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C5 EC 47 00 E1 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 39 33 39 10 04 04 00 15 CF 01 00 F4 03 04 00 30 39 A6 66 B6 04 01 00 00 51 27 DB 4D 35 AD 12 89 [18:19:13]CommunicateWithHost err = 0 [18:19:13]CheckOFDResponse [18:19:13]1017 (14) - 77093643461234 [18:19:13]1041 (16) - 0000000000874939 [18:19:13]1040 (4) - 118549 [18:19:13]1012 (4) - 28.07.2024 12:27 [18:19:13]1206 (1) - 0 [18:19:13]OFD Sender: Remove packet 118549 [18:19:13]ProducePacketName [18:19:13]name=ofd_packets/00118549 [18:19:13]NVStorageDeleteData [18:19:13]Write to MH i2c: 01 00 00 FC 11 0D [18:19:13]Write i2c OK [18:19:13]MH_I2C_Read... [18:19:13]Read from MH i2c: 01 [18:19:13]MH_I2C_Read... [18:19:13]Read from MH i2c: 01 07 00 [18:19:13]MH_I2C_Read... [18:19:13]Read from MH i2c: 01 07 00 FC 11 00 00 00 00 00 E3 0C 03 [18:19:13]RasterBufferAndPrint [18:19:13]line [18:19:13]line [18:19:13]line [18:19:13]line [18:19:13]line [18:19:13]written 0, free lines is 3305 [18:19:13]MH_Cut [18:19:13]Write to MH i2c: D1 01 00 03 12 01 E7 [18:19:13]Write i2c OK [18:19:13]MH_I2C_Read... [18:19:13]Read from MH i2c: D1 [18:19:13]MH_I2C_Read... [18:19:13]Read from MH i2c: D1 01 00 [18:19:13]MH_I2C_Read... [18:19:13]Read from MH i2c: D1 01 00 03 12 00 E6 [18:19:13]Write to MH i2c: 01 00 00 04 12 16 [18:19:13]Write i2c OK [18:19:13]MH_I2C_Read... [18:19:13]OFD Sender: No OFD packet to send [18:19:14]*** Cut start [18:19:14]*** Partial cut [18:19:14]*** CUTSNS_PIN = 1 [18:19:14]*** CUTSNS_PIN = 0 [18:19:14]*** Brake cut motor [18:19:14]Read from MH i2c: 01 [18:19:14]MH_I2C_Read... [18:19:14]*** Stop cut motor [18:19:14]*** Cut end [18:19:14]Read from MH i2c: 01 07 00 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: 01 07 00 04 12 00 00 00 00 00 FF 0F 2B [18:19:14]process_action close_receipt done [18:19:14]requested_data is exist [18:19:14]produce_requested_data [18:19:14]requested_item fm.sn is exist - process it [18:19:14]wFMCommunicate request_size=4 [18:19:14]MH_SAM_APDU [18:19:14]CAPDU: 80 11 00 00 [18:19:14]Write to MH i2c: E2 08 00 05 12 80 11 00 00 00 00 00 00 91 [18:19:14]Write i2c OK [18:19:14]MH_I2C_Read... [18:19:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:15]Read from MH i2c: E2 [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: E2 17 00 [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: E2 17 00 05 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EC [18:19:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:19:15]wFMCommunicate OK [18:19:15]requested_item fd.num is exist - process it [18:19:15]SAM_PROTO_GetFieldsCounters [18:19:15]wFMCommunicate request_size=4 [18:19:15]MH_SAM_APDU [18:19:15]CAPDU: 80 13 00 00 [18:19:15]Write to MH i2c: E2 08 00 06 12 80 13 00 00 00 00 00 00 94 [18:19:15]Write i2c OK [18:19:15]MH_I2C_Read... [18:19:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:19:15]Read from MH i2c: E2 [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: E2 62 00 [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: E2 62 00 06 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 15 CF 01 00 0E 04 04 00 B1 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 E0 [18: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 15 CF 01 00 0E 04 04 00 B1 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 [18:19:15]wFMCommunicate OK [18:19:15]SAM_PROTO_GetFieldsCounters done [18:19:15]requested_item shift.num is exist - process it [18:19:15]requested_item shift.opened is exist - process it [18:19:15]req_shift_opened [18:19:15]FM_GetShiftState [18:19:15]SAM_PROTO_GetShiftState [18:19:15]wFMCommunicate request_size=4 [18:19:15]MH_SAM_APDU [18:19:15]CAPDU: 80 13 01 00 [18:19:15]Write to MH i2c: E2 08 00 07 12 80 13 01 00 00 00 00 00 96 [18:19:15]Write i2c OK [18:19:15]MH_I2C_Read... [18:19:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:15]Read from MH i2c: E2 [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: E2 0E 00 [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: E2 0E 00 07 12 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 6D [18:19:15]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:19:15]wFMCommunicate OK [18:19:15]SAM_PROTO_GetShiftState done [18:19:15]FM_GetShiftState done [18:19:15]req_shift_opened done [18:19:15]requested_item shift.open_date is exist - process it [18:19:15]req_shift_open_date [18:19:15]req_shift_open_date done [18:19:15]produce_requested_data done [18:19:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118549,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:19:15]process_action_free close_receipt [18:19:15]json_value_free [18:19:15]json_value_free done [18:19:15]process_json_proto returns [18:19:15]Send response to host [18:19:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118549,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:19:15]free response buf [18:19:15]execute_script done [18:19:15]execute_script returns [18:19:15]free content buf [18:19:15]Sock 9.Close socket [18:19:15]Sock 9.Thread stoped [18:19:18]OFD Sender: No OFD packet to send [18:19:23]OFD Sender: No OFD packet to send [18:19:28]OFD Sender: No OFD packet to send [18:19:34]OFD Sender: No OFD packet to send [18:19:39]OFD Sender: No OFD packet to send [18:19:44]OFD Sender: No OFD packet to send [18:19:49]OFD Sender: No OFD packet to send [18:19:54]OFD Sender: No OFD packet to send [18:19:59]OFD Sender: No OFD packet to send [18:20:04]OFD Sender: No OFD packet to send [18:20:09]OFD Sender: No OFD packet to send [18:20:14]OFD Sender: No OFD packet to send [18:20:19]OFD Sender: No OFD packet to send [18:20:24]OFD Sender: No OFD packet to send [18:20:29]OFD Sender: No OFD packet to send [18:20:34]OFD Sender: No OFD packet to send [18:20:39]OFD Sender: No OFD packet to send [18:20:44]OFD Sender: No OFD packet to send [18:20:49]OFD Sender: No OFD packet to send [18:20:54]OFD Sender: No OFD packet to send [18:20:56]accept exits with 7 [18:20:56]New connection [18:20:56]New thread 3067383140 created [18:20:56]Thread 3067239780 joined [18:20:56]Waiting for new connection... [18:20:56] Sock 7.Parse request [18:20:56]Sock 7.Check first char [18:20:56]Sock 7.First char is OK [18:20:56]request: POST /json_proto HTTP/1.0 [18:20:56]Method: POST [18:20:56]URL: /json_proto [18:20:56]Method is POST - this is cgi request [18:20:56]url: /json_proto [18:20:56]query_string will be loaded in cgi processing [18:20:56]execute_cgi json_proto POST (null) [18:20:56]execute_cgi path=json_proto method=POST [18:20:56]POST find Content-Length [18:20:56]Host: 172.17.45.7:8080 [18:20:56]Content-Length: 674 [18:20:56]Content-Type: application/json [18:20:56] [18:20:56]POST finish read [18:20:56]Found Content-Length = 674 [18:20:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.200, "sum" : 320.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:56]execute_script... [18:20: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)949437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.200, "sum" : 320.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:56]POST & json_proto [18:20:56]process_json_proto [18:20:56]json parsed OK: [18:20:56]protocol is kg_v1.0 [18:20:56]action value=close_receipt [18:20:56]process_action close_receipt [18:20:56]cmd_close_receipt [18:20:56]MH_GetDate [18:20:56]Write to MH i2c: F0 00 00 08 12 09 [18:20:56]Write i2c OK [18:20:56]MH_I2C_Read... [18:20:56]Read from MH i2c: F0 [18:20:56]MH_I2C_Read... [18:20:56]Read from MH i2c: F0 09 00 [18:20:56]MH_I2C_Read... [18:20:56]Read from MH i2c: F0 09 00 08 12 00 0A 8C A6 66 90 0F 3E 66 F7 [18:20:56]GetLastDocTimeStamp 1722190752 [18:20:56]current date 1722190858 [18:20:56]FM_GetShiftState [18:20:56]SAM_PROTO_GetShiftState [18:20:56]wFMCommunicate request_size=4 [18:20:56]MH_SAM_APDU [18:20:56]CAPDU: 80 13 01 00 [18:20:56]Write to MH i2c: E2 08 00 09 12 80 13 01 00 00 00 00 00 98 [18:20:56]Write i2c OK [18:20:56]MH_I2C_Read... [18:20:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:56]Read from MH i2c: E2 [18:20:56]MH_I2C_Read... [18:20:56]Read from MH i2c: E2 0E 00 [18:20:56]MH_I2C_Read... [18:20:56]Read from MH i2c: E2 0E 00 09 12 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 6F [18:20:56]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:20:56]wFMCommunicate OK [18:20:56]SAM_PROTO_GetShiftState done [18:20:56]FM_GetShiftState done [18:20:56]opened in 1722125364 [18:20:56]opened+sec_in_day 1722211764 [18:20:56]quantity*price = 32004 [18:20:56]sum+1 = 32005 [18:20:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.83 НДС 12% : 33.99 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 219 28.07.2024 18:20 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118550 ФПД: 40884804263115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T182058&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118550&fm=40884804263115&tin=02508201610067®Number=0000000000092660&sum=32000 [18:20:57]StoreToDocumentArchive [18:20:57]shift 433 fd 118550 [18:20:57]save to /storage/0433/doc_00118550 [18:20:57]save last doc name /storage/0433/doc_00118550 to /storage/kkm_last_doc_name [18:20:57]save OK [18:20:57]Clear old archive folders... [18:20:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:20:57]tlvbuf is B6F2A7F0 [18:20:57]SAM_PROTO_ClearQueue [18:20:57]wFMCommunicate request_size=4 [18:20:57]MH_SAM_APDU [18:20:57]CAPDU: 80 09 00 00 [18:20:57]Write to MH i2c: E2 08 00 16 12 80 09 00 00 00 00 00 00 9A [18:20:57]Write i2c OK [18:20:57]MH_I2C_Read... [18:20:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:57]Read from MH i2c: E2 [18:20:57]MH_I2C_Read... [18:20:57]Read from MH i2c: E2 03 00 [18:20:57]MH_I2C_Read... [18:20:57]Read from MH i2c: E2 03 00 16 12 00 90 00 9C [18:20:57]RAPDU: 90 00 [18:20:57]wFMCommunicate OK [18:20:57]SAM_PROTO_ClearQueue done [18:20:57]KKMCreateOFDPacket [18:20:57]OFDProtocolAddRootSTLVToBuf [18:20:57]FM_MakeSignedData [18:20:57]FM_MakeSignedData [18:20:57]SAM_PROTO_SignData [18:20:57]wFMCommunicate request_size=4 [18:20:57]MH_SAM_APDU [18:20:57]CAPDU: 80 0D 01 02 [18:20:57]Write to MH i2c: E2 08 00 17 12 80 0D 01 02 00 00 00 00 A2 [18:20:57]Write i2c OK [18:20:57]MH_I2C_Read... [18:20:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:58]Read from MH i2c: E2 [18:20:58]MH_I2C_Read... [18:20:58]Read from MH i2c: E2 03 00 [18:20:58]MH_I2C_Read... [18:20:58]Read from MH i2c: E2 03 00 17 12 00 90 00 9D [18:20:58]RAPDU: 90 00 [18:20:58]wFMCommunicate OK [18:20:58]wFMCommunicate request_size=255 [18:20:58]MH_SAM_APDU [18:20:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 10 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 04 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 0A 8C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 16 CF 01 00 35 04 06 00 25 2F 3C 3C [18:20:58]Write to MH i2c: E2 02 01 18 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 10 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 04 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 0A 8C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 16 CF 01 00 35 04 06 00 25 2F 3C 3C 00 00 2F [18:20:58]Write i2c OK [18:20:58]MH_I2C_Read... [18:20:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:58]Read from MH i2c: E2 [18:20:58]MH_I2C_Read... [18:20:58]Read from MH i2c: E2 03 00 [18:20:58]MH_I2C_Read... [18:20:58]Read from MH i2c: E2 03 00 18 12 00 90 00 9E [18:20:58]RAPDU: 90 00 [18:20:58]wFMCommunicate OK [18:20:58]wFMCommunicate request_size=7 [18:20:58]MH_SAM_APDU [18:20:58]CAPDU: 80 0D 02 02 02 1C CB [18:20:58]Write to MH i2c: E2 0A 00 19 12 80 0D 02 02 02 00 1C CB 00 00 90 [18:20:58]Write i2c OK [18:20:58]MH_I2C_Read... [18:20:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:58]Read from MH i2c: E2 [18:20:58]MH_I2C_Read... [18:20:58]Read from MH i2c: E2 03 00 [18:20:58]MH_I2C_Read... [18:20:58]Read from MH i2c: E2 03 00 19 12 00 90 00 9F [18:20:58]RAPDU: 90 00 [18:20:58]wFMCommunicate OK [18:20:58]wFMCommunicate request_size=4 [18:20:58]MH_SAM_APDU [18:20:58]CAPDU: 80 0D 03 02 [18:20:58]Write to MH i2c: E2 08 00 1A 12 80 0D 03 02 00 00 00 00 A7 [18:20:58]Write i2c OK [18:20:58]MH_I2C_Read... [18:20:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:58]Read from MH i2c: E2 [18:20:58]MH_I2C_Read... [18:20:58]Read from MH i2c: E2 0B 00 [18:20:58]MH_I2C_Read... [18:20:58]Read from MH i2c: E2 0B 00 1A 12 00 90 16 25 F4 D8 81 D8 F9 90 00 91 [18:20:58]RAPDU: 90 16 25 F4 D8 81 D8 F9 90 00 [18:20:58]wFMCommunicate OK [18:20:58]SAM_PROTO_SignData done [18:20:58]FM_MakeSignedData done [18:20:58]CreateOFDProtocolMessage [18:20:58]wFMCommunicate request_size=4 [18:20:58]MH_SAM_APDU [18:20:58]CAPDU: 80 11 00 00 [18:20:58]Write to MH i2c: E2 08 00 1B 12 80 11 00 00 00 00 00 00 A7 [18:20:58]Write i2c OK [18:20:58]MH_I2C_Read... [18:20:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:58]Read from MH i2c: E2 [18:20:58]MH_I2C_Read... [18:20:58]Read from MH i2c: E2 17 00 [18:20:58]MH_I2C_Read... [18:20:58]Read from MH i2c: E2 17 00 1B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 02 [18:20:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:20:58]wFMCommunicate OK [18:20:58]CreateOFDProtocolMessage done [18:20:58]OFDSenderStorePacket 118550 [18:20:58]StoreOFDPacket docnum=118550 [18:20:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 4B 8F 04 01 1C 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 10 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 04 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 0A 8C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 16 CF 01 00 35 04 06 00 25 2F 3C 3C 1C CB 90 16 25 F4 D8 81 D8 F9 [18:20:58]CheckFolder [18:20:58]dirname=/storage/ofd_packets [18:20:58]CheckFolder done [18:20:58]ProducePacketName [18:20:58]name=ofd_packets/00118550 [18:20:58]NVStorageSaveData ofd_packets/00118550 [18:20:58]File name is /storage/ofd_packets/00118550 [18:20:58]Write 298 bytes [18:20:58]NVStorageSaveData done [18:20:58]OFDSenderStorePacket done [18:20:58]KKMCreateOFDPacket done [18:20:58]NVStorageSaveData kkm_last_timestamp [18:20:58]File name is /storage/kkm_last_timestamp [18:20:58]Write 4 bytes [18:20:58]NVStorageSaveData done [18:20:58]ExternCall_PrintAddStr [18:20:58]wPrintStart [18:20:58]Write to MH i2c: 01 00 00 1C 12 2E [18:20:58]Write i2c OK [18:20:58]MH_I2C_Read... [18:20:58]Read from MH i2c: 01 [18:20:58]MH_I2C_Read... [18:20:58]Read from MH i2c: 01 07 00 [18:20:58]MH_I2C_Read... [18:20:58]Read from MH i2c: 01 07 00 1C 12 00 00 00 00 00 FF 0F 43 [18:20:58]RasterBufferAndPrint [18:20:58]line Счет N : (1)949437 [18:20:58]line ИНН: 02508201610067 [18:20:58]line Контрольно-Кассовый Чек [18:20:58]line ПРОДАЖА [18:20:58]line ТРК (МРК, ГНК) : 44 [18:20:58]line Товар: 2710194800 [18:20:58]line ДТ-К-5 [18:20:58]line 4.200 * 76.20 [18:20:58]line = 320.04 [18:20:58]line НДС 12% НСП 1% [18:20:58]line > о реализуемом товаре [18:20:58]line ОКРУГЛЕНИЕ: -0.04 [18:20:58]line ИТОГО: 320.00 [18:20:58]line Внесено: 320.00 [18:20:58]line СДАЧА: 0.00 [18:20:58]line НСП 1% : 2.83 [18:20:58]line НДС 12% : 33.99 [18:20:58]line Наличными: 320.00 [18:20:58]line Безнал.: 0.00 [18:20:58]line Место: АЗС № 134 "Партнер Нефть" [18:20:58]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:20:58]line СНО: Общий режим [18:20:58]line Чек 219 28.07.2024 18:20 [18:20:58]line Смена: 433 ФФД: 1.0 [18:20:58]line ЗНМ: 0300000044 [18:20:58]line РНМ: 0000000000092660 [18:20:58]line Версия ККМ: 001 [18:20:58]line ФМ: 0000000000874939 [18:20:58]line ФД: 118550 [18:20:58]line ФПД: 40884804263115 [18:20:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T182058&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118550&fm=40884804263115&tin=02508201610067®Number=0000000000092660&sum=32000 [18:20:58]OFD Sender: Processing packet 118550 [packets to send 86, broken 85] [18:20:58]ProducePacketName [18:20:58]name=ofd_packets/00118550 [18:20:58]OFD Sender: To server: pG, [18:20:58]CommunicateWithHost lk.salyk.kg:30040 [18:20:58]ConnectInit lk.salyk.kg [18:20:58]written 0, free lines is 4095 [18:20:58]Connected sock=9 [18:20:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 4B 8F 04 01 1C 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 10 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 04 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 0A 8C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 16 CF 01 00 35 04 06 00 25 2F 3C 3C 1C CB 90 16 25 F4 D8 81 D8 F9 [18:20:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4D 62 47 00 2F 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 39 33 39 10 04 04 00 16 CF 01 00 F4 03 04 00 9A 39 A6 66 B6 04 01 00 00 B0 5D 36 B6 44 C9 A1 86 [18:20:59]CommunicateWithHost err = 0 [18:20:59]CheckOFDResponse [18:20:59]1017 (14) - 77093643461234 [18:20:59]1041 (16) - 0000000000874939 [18:20:59]1040 (4) - 118550 [18:20:59]1012 (4) - 28.07.2024 12:29 [18:20:59]1206 (1) - 0 [18:20:59]OFD Sender: Remove packet 118550 [18:20:59]ProducePacketName [18:20:59]name=ofd_packets/00118550 [18:20:59]NVStorageDeleteData [18:20:59]Write to MH i2c: 01 00 00 46 12 58 [18:20:59]Write i2c OK [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: 01 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: 01 07 00 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: 01 07 00 46 12 00 00 00 00 00 DC 0C 47 [18:20:59]RasterBufferAndPrint [18:20:59]line [18:20:59]line [18:20:59]line [18:20:59]line [18:20:59]line [18:20:59]written 0, free lines is 3298 [18:20:59]MH_Cut [18:20:59]Write to MH i2c: D1 01 00 4D 12 01 31 [18:20:59]Write i2c OK [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: D1 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: D1 01 00 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: D1 01 00 4D 12 00 30 [18:20:59]Write to MH i2c: 01 00 00 4E 12 60 [18:20:59]Write i2c OK [18:20:59]MH_I2C_Read... [18:20:59]OFD Sender: No OFD packet to send [18:20:59]*** Cut start [18:20:59]*** Partial cut [18:20:59]*** CUTSNS_PIN = 1 [18:21:00]*** CUTSNS_PIN = 0 [18:21:00]*** Brake cut motor [18:21:00]Read from MH i2c: 01 [18:21:00]MH_I2C_Read... [18:21:00]*** Stop cut motor [18:21:00]*** Cut end [18:21:00]Read from MH i2c: 01 07 00 [18:21:00]MH_I2C_Read... [18:21:00]Read from MH i2c: 01 07 00 4E 12 00 00 00 00 00 FF 0F 75 [18:21:00]process_action close_receipt done [18:21:00]requested_data is exist [18:21:00]produce_requested_data [18:21:00]requested_item fm.sn is exist - process it [18:21:00]wFMCommunicate request_size=4 [18:21:00]MH_SAM_APDU [18:21:00]CAPDU: 80 11 00 00 [18:21:00]Write to MH i2c: E2 08 00 4F 12 80 11 00 00 00 00 00 00 DB [18:21:00]Write i2c OK [18:21:00]MH_I2C_Read... [18:21:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:00]Read from MH i2c: E2 [18:21:00]MH_I2C_Read... [18:21:00]Read from MH i2c: E2 17 00 [18:21:00]MH_I2C_Read... [18:21:00]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 39 33 39 90 00 36 [18:21:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:21:00]wFMCommunicate OK [18:21:00]requested_item fd.num is exist - process it [18:21:00]SAM_PROTO_GetFieldsCounters [18:21:00]wFMCommunicate request_size=4 [18:21:00]MH_SAM_APDU [18:21:00]CAPDU: 80 13 00 00 [18:21:00]Write to MH i2c: E2 08 00 50 12 80 13 00 00 00 00 00 00 DE [18:21:00]Write i2c OK [18:21:00]MH_I2C_Read... [18:21:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:00]Read from MH i2c: E2 [18:21:00]MH_I2C_Read... [18:21:00]Read from MH i2c: E2 62 00 [18:21:00]MH_I2C_Read... [18:21:00]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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 16 CF 01 00 0E 04 04 00 B1 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 2E [18:21:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 16 CF 01 00 0E 04 04 00 B1 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 [18:21:00]wFMCommunicate OK [18:21:00]SAM_PROTO_GetFieldsCounters done [18:21:00]requested_item shift.num is exist - process it [18:21:00]requested_item shift.opened is exist - process it [18:21:00]req_shift_opened [18:21:00]FM_GetShiftState [18:21:00]SAM_PROTO_GetShiftState [18:21:00]wFMCommunicate request_size=4 [18:21:00]MH_SAM_APDU [18:21:00]CAPDU: 80 13 01 00 [18:21:00]Write to MH i2c: E2 08 00 51 12 80 13 01 00 00 00 00 00 E0 [18:21:00]Write i2c OK [18:21:00]MH_I2C_Read... [18:21:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:00]Read from MH i2c: E2 [18:21:00]MH_I2C_Read... [18:21:00]Read from MH i2c: E2 0E 00 [18:21:00]MH_I2C_Read... [18:21:00]Read from MH i2c: E2 0E 00 51 12 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 B7 [18:21:00]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:21:00]wFMCommunicate OK [18:21:00]SAM_PROTO_GetShiftState done [18:21:00]FM_GetShiftState done [18:21:00]req_shift_opened done [18:21:00]requested_item shift.open_date is exist - process it [18:21:00]req_shift_open_date [18:21:00]req_shift_open_date done [18:21:00]produce_requested_data done [18:21:00]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118550,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:21:00]process_action_free close_receipt [18:21:00]json_value_free [18:21:00]json_value_free done [18:21:00]process_json_proto returns [18:21:00]Send response to host [18:21:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118550,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:21:00]free response buf [18:21:00]execute_script done [18:21:00]execute_script returns [18:21:00]free content buf [18:21:00]Sock 7.Close socket [18:21:00]Sock 7.Thread stoped [18:21:04]OFD Sender: No OFD packet to send [18:21:09]OFD Sender: No OFD packet to send [18:21:14]OFD Sender: No OFD packet to send [18:21:19]OFD Sender: No OFD packet to send [18:21:24]OFD Sender: No OFD packet to send [18:21:29]OFD Sender: No OFD packet to send [18:21:34]OFD Sender: No OFD packet to send [18:21:39]OFD Sender: No OFD packet to send [18:21:44]OFD Sender: No OFD packet to send [18:21:46]accept exits with 10 [18:21:46]New connection [18:21:46]New thread 3067239780 created [18:21:46]Thread 3067383140 joined [18:21:46]Waiting for new connection... [18:21:46] Sock 10.Parse request [18:21:46]Sock 10.Check first char [18:21:46]Sock 10.First char is OK [18:21:46]request: POST /json_proto HTTP/1.0 [18:21:46]Method: POST [18:21:46]URL: /json_proto [18:21:46]Method is POST - this is cgi request [18:21:46]url: /json_proto [18:21:46]query_string will be loaded in cgi processing [18:21:46]execute_cgi json_proto POST (null) [18:21:46]execute_cgi path=json_proto method=POST [18:21:46]POST find Content-Length [18:21:46]Host: 172.17.45.7:8080 [18:21:46]Content-Length: 1203 [18:21:46]Content-Type: application/json [18:21:46] [18:21:46]POST finish read [18:21:46]Found Content-Length = 1203 [18:21: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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949434\u000A28.07.2024 18:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982608/3982609\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:46]execute_script... [18:21: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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949434\u000A28.07.2024 18:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982608/3982609\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:46]POST & json_proto [18:21:46]process_json_proto [18:21:46]json parsed OK: [18:21:46]protocol is kg_v1.0 [18:21:46]action value=print_text [18:21:46]process_action print_text [18:21:46]cmd_print_text [18:21:46]ExternCall_PrintAddStr [18:21:46]wPrintStart [18:21:46]Write to MH i2c: 01 00 00 52 12 64 [18:21:46]Write i2c OK [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: 01 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: 01 07 00 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: 01 07 00 52 12 00 00 00 00 00 FF 0F 79 [18:21:46]RasterBufferAndPrint [18:21:46]line *****ТОВАРНЫЙ ЧЕК***** [18:21:46]line АЗС-134 [18:21:46]line Партнер нефть [18:21:46]line 02508201610067 [18:21:46]line Кассир : Хошимов З. [18:21:46]line Счет N : (1)949434 [18:21:46]line 28.07.2024 18:19 [18:21:46]line ПРОДАЖА [18:21:46]line ТРК (МРК, ГНК): 64 [18:21:46]line Вид ГСМ : 2710194800 [18:21:46]line ДТ-К-5 [18:21:46]line 100.000 x 76.20 [18:21:46]line ИТОГ: 7620.00 [18:21:46]line Тип оплаты: Талоны: Топливные Талоны [18:21:46]line 3982608/3982609 [18:21:46]line ______________________ [18:21:46]line (подпись) [18:21:46]written 0, free lines is 4095 [18:21:46]Write to MH i2c: 01 00 00 66 12 78 [18:21:46]Write i2c OK [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: 01 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: 01 07 00 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: 01 07 00 66 12 00 00 00 00 00 14 0E A1 [18:21:46]RasterBufferAndPrint [18:21:46]line [18:21:46]line [18:21:46]line [18:21:46]line [18:21:46]line [18:21:46]written 0, free lines is 3605 [18:21:46]MH_Cut [18:21:46]Write to MH i2c: D1 01 00 6D 12 01 51 [18:21:46]Write i2c OK [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: D1 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: D1 01 00 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: D1 01 00 6D 12 00 50 [18:21:46]Write to MH i2c: 01 00 00 6E 12 80 [18:21:46]Write i2c OK [18:21:46]MH_I2C_Read... [18:21:47]*** Cut start [18:21:47]*** Partial cut [18:21:47]*** CUTSNS_PIN = 1 [18:21:47]*** CUTSNS_PIN = 0 [18:21:47]*** Brake cut motor [18:21:48]Read from MH i2c: 01 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: 01 07 00 [18:21:48]MH_I2C_Read... [18:21:48]*** Stop cut motor [18:21:48]*** Cut end [18:21:48]Read from MH i2c: 01 07 00 6E 12 00 00 00 00 00 FF 0F 95 [18:21:48]process_action print_text done [18:21:48]requested_data is exist [18:21:48]produce_requested_data [18:21:48]requested_item fm.sn is exist - process it [18:21:48]wFMCommunicate request_size=4 [18:21:48]MH_SAM_APDU [18:21:48]CAPDU: 80 11 00 00 [18:21:48]Write to MH i2c: E2 08 00 6F 12 80 11 00 00 00 00 00 00 FB [18:21:48]Write i2c OK [18:21:48]MH_I2C_Read... [18:21:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:48]Read from MH i2c: E2 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: E2 17 00 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: E2 17 00 6F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 56 [18:21:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:21:48]wFMCommunicate OK [18:21:48]requested_item fd.num is exist - process it [18:21:48]SAM_PROTO_GetFieldsCounters [18:21:48]wFMCommunicate request_size=4 [18:21:48]MH_SAM_APDU [18:21:48]CAPDU: 80 13 00 00 [18:21:48]Write to MH i2c: E2 08 00 70 12 80 13 00 00 00 00 00 00 FE [18:21:48]Write i2c OK [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: E2 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: E2 62 00 [18:21:48]MH_I2C_Read... [18:21:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:48]Read from MH i2c: E2 62 00 70 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 16 CF 01 00 0E 04 04 00 B1 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 4E [18:21:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 16 CF 01 00 0E 04 04 00 B1 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 [18:21:48]wFMCommunicate OK [18:21:48]SAM_PROTO_GetFieldsCounters done [18:21:48]requested_item shift.num is exist - process it [18:21:48]requested_item shift.opened is exist - process it [18:21:48]req_shift_opened [18:21:48]FM_GetShiftState [18:21:48]SAM_PROTO_GetShiftState [18:21:48]wFMCommunicate request_size=4 [18:21:48]MH_SAM_APDU [18:21:48]CAPDU: 80 13 01 00 [18:21:48]Write to MH i2c: E2 08 00 71 12 80 13 01 00 00 00 00 00 00 [18:21:48]Write i2c OK [18:21:48]MH_I2C_Read... [18:21:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:48]Read from MH i2c: E2 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: E2 0E 00 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: E2 0E 00 71 12 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 D7 [18:21:48]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:21:48]wFMCommunicate OK [18:21:48]SAM_PROTO_GetShiftState done [18:21:48]FM_GetShiftState done [18:21:48]req_shift_opened done [18:21:48]requested_item shift.open_date is exist - process it [18:21:48]req_shift_open_date [18:21:48]req_shift_open_date done [18:21:48]produce_requested_data done [18:21:48]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118550,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:21:48]process_action_free print_text [18:21:48]json_value_free [18:21:48]json_value_free done [18:21:48]process_json_proto returns [18:21:48]Send response to host [18:21:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118550,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:21:48]free response buf [18:21:48]execute_script done [18:21:48]execute_script returns [18:21:48]free content buf [18:21:48]Sock 10.Close socket [18:21:48]Sock 10.Thread stoped [18:21:49]OFD Sender: No OFD packet to send [18:21:54]OFD Sender: No OFD packet to send [18:21:59]OFD Sender: No OFD packet to send [18:22:04]OFD Sender: No OFD packet to send [18:22:08]accept exits with 7 [18:22:08]New connection [18:22:08]New thread 3067383140 created [18:22:08]Thread 3067239780 joined [18:22:08]Waiting for new connection... [18:22:08] Sock 7.Parse request [18:22:08]Sock 7.Check first char [18:22:08]Sock 7.First char is OK [18:22:08]request: POST /json_proto HTTP/1.0 [18:22:08]Method: POST [18:22:08]URL: /json_proto [18:22:08]Method is POST - this is cgi request [18:22:08]url: /json_proto [18:22:08]query_string will be loaded in cgi processing [18:22:08]execute_cgi json_proto POST (null) [18:22:08]execute_cgi path=json_proto method=POST [18:22:08]POST find Content-Length [18:22:08]Host: 172.17.45.7:8080 [18:22:08]Content-Length: 731 [18:22:08]Content-Type: application/json [18:22:08] [18:22:08]POST finish read [18:22:08]Found Content-Length = 731 [18:22:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118550, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.200, "sum" : 320.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:08]execute_script... [18:22:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118550, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.200, "sum" : 320.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:08]POST & json_proto [18:22:08]process_json_proto [18:22:08]json parsed OK: [18:22:08]protocol is kg_v1.0 [18:22:08]action value=close_receipt [18:22:08]process_action close_receipt [18:22:08]cmd_close_receipt [18:22:08]MH_GetDate [18:22:08]Write to MH i2c: F0 00 00 72 12 73 [18:22:08]Write i2c OK [18:22:08]MH_I2C_Read... [18:22:08]Read from MH i2c: F0 [18:22:08]MH_I2C_Read... [18:22:08]Read from MH i2c: F0 09 00 [18:22:08]MH_I2C_Read... [18:22:08]Read from MH i2c: F0 09 00 72 12 00 52 8C A6 66 90 0F 3E 66 A9 [18:22:08]GetLastDocTimeStamp 1722190858 [18:22:08]current date 1722190930 [18:22:08]FM_GetShiftState [18:22:08]SAM_PROTO_GetShiftState [18:22:08]wFMCommunicate request_size=4 [18:22:08]MH_SAM_APDU [18:22:08]CAPDU: 80 13 01 00 [18:22:08]Write to MH i2c: E2 08 00 73 12 80 13 01 00 00 00 00 00 02 [18:22:08]Write i2c OK [18:22:08]MH_I2C_Read... [18:22:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:08]Read from MH i2c: E2 [18:22:08]MH_I2C_Read... [18:22:08]Read from MH i2c: E2 0E 00 [18:22:08]MH_I2C_Read... [18:22:08]Read from MH i2c: E2 0E 00 73 12 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 D9 [18:22:08]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:22:08]wFMCommunicate OK [18:22:08]SAM_PROTO_GetShiftState done [18:22:08]FM_GetShiftState done [18:22:08]opened in 1722125364 [18:22:08]opened+sec_in_day 1722211764 [18:22:08]quantity*price = 32004 [18:22:08]sum+1 = 32005 [18:22:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 320.00 НСП 1% : 2.83 НДС 12% : 33.99 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 220 28.07.2024 18:22 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 118550 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 118551 ФПД: 166167970153648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T182210&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118551&fm=166167970153648&tin=02508201610067®Number=0000000000092660&sum=32000 [18:22:09]StoreToDocumentArchive [18:22:09]shift 433 fd 118551 [18:22:09]save to /storage/0433/doc_00118551 [18:22:09]save last doc name /storage/0433/doc_00118551 to /storage/kkm_last_doc_name [18:22:09]save OK [18:22:09]Clear old archive folders... [18:22:09]ProcessDocumentItem done err = 0, tmpTLVsize=276 [18:22:09]tlvbuf is 01E8CDB0 [18:22:09]SAM_PROTO_ClearQueue [18:22:09]wFMCommunicate request_size=4 [18:22:09]MH_SAM_APDU [18:22:09]CAPDU: 80 09 00 00 [18:22:09]Write to MH i2c: E2 08 00 82 12 80 09 00 00 00 00 00 00 06 [18:22:09]Write i2c OK [18:22:09]MH_I2C_Read... [18:22:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:09]Read from MH i2c: E2 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 03 00 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 03 00 82 12 00 90 00 08 [18:22:09]RAPDU: 90 00 [18:22:09]wFMCommunicate OK [18:22:09]SAM_PROTO_ClearQueue done [18:22:09]KKMCreateOFDPacket [18:22:09]OFDProtocolAddRootSTLVToBuf [18:22:09]FM_MakeSignedData [18:22:09]FM_MakeSignedData [18:22:09]SAM_PROTO_SignData [18:22:09]wFMCommunicate request_size=4 [18:22:09]MH_SAM_APDU [18:22:09]CAPDU: 80 0D 01 02 [18:22:09]Write to MH i2c: E2 08 00 83 12 80 0D 01 02 00 00 00 00 0E [18:22:09]Write i2c OK [18:22:09]MH_I2C_Read... [18:22:09]OFD Sender: No OFD packet to send [18:22:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:09]Read from MH i2c: E2 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 03 00 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 03 00 83 12 00 90 00 09 [18:22:09]RAPDU: 90 00 [18:22:09]wFMCommunicate OK [18:22:09]wFMCommunicate request_size=255 [18:22:09]MH_SAM_APDU [18:22:09]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 10 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 04 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 52 8C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 16 CF 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 [18:22:09]Write to MH i2c: E2 02 01 84 12 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 10 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 04 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 52 8C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 16 CF 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 00 00 0A [18:22:09]Write i2c OK [18:22:09]MH_I2C_Read... [18:22:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:10]Read from MH i2c: E2 [18:22:10]MH_I2C_Read... [18:22:10]Read from MH i2c: E2 03 00 [18:22:10]MH_I2C_Read... [18:22:10]Read from MH i2c: E2 03 00 84 12 00 90 00 0A [18:22:10]RAPDU: 90 00 [18:22:10]wFMCommunicate OK [18:22:10]wFMCommunicate request_size=35 [18:22:10]MH_SAM_APDU [18:22:10]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 17 CF 01 00 35 04 06 00 97 20 FE D5 84 B0 [18:22:10]Write to MH i2c: E2 26 00 85 12 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 17 CF 01 00 35 04 06 00 97 20 FE D5 84 B0 00 00 B1 [18:22:10]Write i2c OK [18:22:10]MH_I2C_Read... [18:22:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:10]Read from MH i2c: E2 [18:22:10]MH_I2C_Read... [18:22:10]Read from MH i2c: E2 03 00 [18:22:10]MH_I2C_Read... [18:22:10]Read from MH i2c: E2 03 00 85 12 00 90 00 0B [18:22:10]RAPDU: 90 00 [18:22:10]wFMCommunicate OK [18:22:10]wFMCommunicate request_size=4 [18:22:10]MH_SAM_APDU [18:22:10]CAPDU: 80 0D 03 02 [18:22:10]Write to MH i2c: E2 08 00 86 12 80 0D 03 02 00 00 00 00 13 [18:22:10]Write i2c OK [18:22:10]MH_I2C_Read... [18:22:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:10]Read from MH i2c: E2 [18:22:10]MH_I2C_Read... [18:22:10]Read from MH i2c: E2 0B 00 [18:22:10]MH_I2C_Read... [18:22:10]Read from MH i2c: E2 0B 00 86 12 00 A6 32 0B 66 5F 1B CF EF 90 00 95 [18:22:10]RAPDU: A6 32 0B 66 5F 1B CF EF 90 00 [18:22:10]wFMCommunicate OK [18:22:10]SAM_PROTO_SignData done [18:22:10]FM_MakeSignedData done [18:22:10]CreateOFDProtocolMessage [18:22:10]wFMCommunicate request_size=4 [18:22:10]MH_SAM_APDU [18:22:10]CAPDU: 80 11 00 00 [18:22:10]Write to MH i2c: E2 08 00 87 12 80 11 00 00 00 00 00 00 13 [18:22:10]Write i2c OK [18:22:10]MH_I2C_Read... [18:22:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:10]Read from MH i2c: E2 [18:22:10]MH_I2C_Read... [18:22:10]Read from MH i2c: E2 17 00 [18:22:10]MH_I2C_Read... [18:22:10]Read from MH i2c: E2 17 00 87 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6E [18:22:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:22:10]wFMCommunicate OK [18:22:10]CreateOFDProtocolMessage done [18:22:10]OFDSenderStorePacket 118551 [18:22:10]StoreOFDPacket docnum=118551 [18:22:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 28 01 00 00 59 79 20 01 92 48 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 10 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 04 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 52 8C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 16 CF 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 17 CF 01 00 35 04 06 00 97 20 FE D5 84 B0 A6 32 0B 66 5F 1B CF EF [18:22:10]CheckFolder [18:22:10]dirname=/storage/ofd_packets [18:22:10]CheckFolder done [18:22:10]ProducePacketName [18:22:10]name=ofd_packets/00118551 [18:22:10]NVStorageSaveData ofd_packets/00118551 [18:22:10]File name is /storage/ofd_packets/00118551 [18:22:10]Write 326 bytes [18:22:10]NVStorageSaveData done [18:22:10]OFDSenderStorePacket done [18:22:10]KKMCreateOFDPacket done [18:22:10]NVStorageSaveData kkm_last_timestamp [18:22:10]File name is /storage/kkm_last_timestamp [18:22:10]Write 4 bytes [18:22:10]NVStorageSaveData done [18:22:10]ExternCall_PrintAddStr [18:22:10]wPrintStart [18:22:10]Write to MH i2c: 01 00 00 88 12 9A [18:22:10]Write i2c OK [18:22:10]MH_I2C_Read... [18:22:10]Read from MH i2c: 01 [18:22:10]MH_I2C_Read... [18:22:10]Read from MH i2c: 01 07 00 [18:22:10]MH_I2C_Read... [18:22:10]Read from MH i2c: 01 07 00 88 12 00 00 00 00 00 FF 0F AF [18:22:10]RasterBufferAndPrint [18:22:10]line Счет N : (1)949437 [18:22:10]line ИНН: 02508201610067 [18:22:10]line Контрольно-Кассовый Чек [18:22:10]line ВОЗВРАТ ПРОДАЖИ [18:22:10]line ТРК (МРК, ГНК) : 44 [18:22:10]line Товар: 2710194800 [18:22:10]line ДТ-К-5 [18:22:10]line 4.200 * 76.20 [18:22:10]line = 320.04 [18:22:10]line НДС 12% НСП 1% [18:22:10]line > о реализуемом товаре [18:22:10]line ОКРУГЛЕНИЕ: -0.04 [18:22:10]line ИТОГО: 320.00 [18:22:10]line НСП 1% : 2.83 [18:22:10]line НДС 12% : 33.99 [18:22:10]line Наличными: 320.00 [18:22:10]line Безнал.: 0.00 [18:22:10]line Место: АЗС № 134 "Партнер Нефть" [18:22:10]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:22:10]line СНО: Общий режим [18:22:10]line Чек 220 28.07.2024 18:22 [18:22:10]line Смена: 433 ФФД: 1.0 [18:22:10]line ЗНМ: 0300000044 [18:22:10]line РНМ: 0000000000092660 [18:22:10]line Версия ККМ: 001 [18:22:10]line ФД осн.: 118550 [18:22:10]line ФМ осн.: 0000000000874939 [18:22:10]line ФМ: 0000000000874939 [18:22:10]line ФД: 118551 [18:22:10]line ФПД: 166167970153648 [18:22:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T182210&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118551&fm=166167970153648&tin=02508201610067®Number=0000000000092660&sum=32000 [18:22:10]OFD Sender: Processing packet 118551 [packets to send 86, broken 85] [18:22:10]ProducePacketName [18:22:10]name=ofd_packets/00118551 [18:22:10]OFD Sender: To server: pG, [18:22:10]CommunicateWithHost lk.salyk.kg:30040 [18:22:10]ConnectInit lk.salyk.kg [18:22:10]written 0, free lines is 4095 [18:22:10]Connected sock=10 [18:22:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 28 01 00 00 59 79 20 01 92 48 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 10 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 04 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 52 8C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 16 CF 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 17 CF 01 00 35 04 06 00 97 20 FE D5 84 B0 A6 32 0B 66 5F 1B CF EF [18:22:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5B 39 47 00 84 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 39 33 39 10 04 04 00 17 CF 01 00 F4 03 04 00 E1 39 A6 66 B6 04 01 00 00 24 6A A6 E0 82 7D 04 0B [18:22:10]CommunicateWithHost err = 0 [18:22:10]CheckOFDResponse [18:22:10]1017 (14) - 77093643461234 [18:22:10]1041 (16) - 0000000000874939 [18:22:10]1040 (4) - 118551 [18:22:10]1012 (4) - 28.07.2024 12:30 [18:22:10]1206 (1) - 0 [18:22:10]OFD Sender: Remove packet 118551 [18:22:10]ProducePacketName [18:22:10]name=ofd_packets/00118551 [18:22:10]NVStorageDeleteData [18:22:10]Write to MH i2c: 01 00 00 B2 12 C4 [18:22:10]Write i2c OK [18:22:10]MH_I2C_Read... [18:22:10]Read from MH i2c: 01 [18:22:10]MH_I2C_Read... [18:22:10]Read from MH i2c: 01 07 00 [18:22:10]MH_I2C_Read... [18:22:10]Read from MH i2c: 01 07 00 B2 12 00 00 00 00 00 FB 0C D2 [18:22:10]RasterBufferAndPrint [18:22:10]line [18:22:10]line [18:22:10]line [18:22:10]line [18:22:10]line [18:22:10]written 0, free lines is 3330 [18:22:11]MH_Cut [18:22:11]Write to MH i2c: D1 01 00 B9 12 01 9D [18:22:11]Write i2c OK [18:22:11]MH_I2C_Read... [18:22:11]Read from MH i2c: D1 [18:22:11]MH_I2C_Read... [18:22:11]Read from MH i2c: D1 01 00 [18:22:11]MH_I2C_Read... [18:22:11]Read from MH i2c: D1 01 00 B9 12 00 9C [18:22:11]Write to MH i2c: 01 00 00 BA 12 CC [18:22:11]Write i2c OK [18:22:11]MH_I2C_Read... [18:22:11]OFD Sender: No OFD packet to send [18:22:11]*** Cut start [18:22:11]*** Partial cut [18:22:11]*** CUTSNS_PIN = 1 [18:22:11]*** CUTSNS_PIN = 0 [18:22:11]*** Brake cut motor [18:22:12]Read from MH i2c: 01 [18:22:12]MH_I2C_Read... [18:22:12]*** Stop cut motor [18:22:12]*** Cut end [18:22:12]Read from MH i2c: 01 07 00 [18:22:12]MH_I2C_Read... [18:22:12]Read from MH i2c: 01 07 00 BA 12 00 00 00 00 00 FF 0F E1 [18:22:12]process_action close_receipt done [18:22:12]requested_data is exist [18:22:12]produce_requested_data [18:22:12]requested_item fm.sn is exist - process it [18:22:12]wFMCommunicate request_size=4 [18:22:12]MH_SAM_APDU [18:22:12]CAPDU: 80 11 00 00 [18:22:12]Write to MH i2c: E2 08 00 BB 12 80 11 00 00 00 00 00 00 47 [18:22:12]Write i2c OK [18:22:12]MH_I2C_Read... [18:22:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:12]Read from MH i2c: E2 [18:22:12]MH_I2C_Read... [18:22:12]Read from MH i2c: E2 17 00 [18:22:12]MH_I2C_Read... [18:22:12]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 39 33 39 90 00 A2 [18:22:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:22:12]wFMCommunicate OK [18:22:12]requested_item fd.num is exist - process it [18:22:12]SAM_PROTO_GetFieldsCounters [18:22:12]wFMCommunicate request_size=4 [18:22:12]MH_SAM_APDU [18:22:12]CAPDU: 80 13 00 00 [18:22:12]Write to MH i2c: E2 08 00 BC 12 80 13 00 00 00 00 00 00 4A [18:22:12]Write i2c OK [18:22:12]MH_I2C_Read... [18:22:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:12]Read from MH i2c: E2 [18:22:12]MH_I2C_Read... [18:22:12]Read from MH i2c: E2 62 00 [18:22:12]MH_I2C_Read... [18:22:12]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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 17 CF 01 00 0E 04 04 00 B1 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 9E [18:22:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 17 CF 01 00 0E 04 04 00 B1 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 [18:22:12]wFMCommunicate OK [18:22:12]SAM_PROTO_GetFieldsCounters done [18:22:12]requested_item shift.num is exist - process it [18:22:12]requested_item shift.opened is exist - process it [18:22:12]req_shift_opened [18:22:12]FM_GetShiftState [18:22:12]SAM_PROTO_GetShiftState [18:22:12]wFMCommunicate request_size=4 [18:22:12]MH_SAM_APDU [18:22:12]CAPDU: 80 13 01 00 [18:22:12]Write to MH i2c: E2 08 00 BD 12 80 13 01 00 00 00 00 00 4C [18:22:12]Write i2c OK [18:22:12]MH_I2C_Read... [18:22:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:12]Read from MH i2c: E2 [18:22:12]MH_I2C_Read... [18:22:12]Read from MH i2c: E2 0E 00 [18:22:12]MH_I2C_Read... [18:22:12]Read from MH i2c: E2 0E 00 BD 12 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 23 [18:22:12]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:22:12]wFMCommunicate OK [18:22:12]SAM_PROTO_GetShiftState done [18:22:12]FM_GetShiftState done [18:22:12]req_shift_opened done [18:22:12]requested_item shift.open_date is exist - process it [18:22:12]req_shift_open_date [18:22:12]req_shift_open_date done [18:22:12]produce_requested_data done [18:22:12]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118551,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:22:12]process_action_free close_receipt [18:22:12]json_value_free [18:22:12]json_value_free done [18:22:12]process_json_proto returns [18:22:12]Send response to host [18:22:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118551,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:22:12]free response buf [18:22:12]execute_script done [18:22:12]execute_script returns [18:22:12]free content buf [18:22:12]Sock 7.Close socket [18:22:12]Sock 7.Thread stoped [18:22:12]accept exits with 9 [18:22:12]New connection [18:22:12]New thread 3067239780 created [18:22:12]Thread 3067383140 joined [18:22:12]Waiting for new connection... [18:22:12] Sock 9.Parse request [18:22:12]Sock 9.Check first char [18:22:12]Sock 9.First char is OK [18:22:12]request: POST /json_proto HTTP/1.0 [18:22:12]Method: POST [18:22:12]URL: /json_proto [18:22:12]Method is POST - this is cgi request [18:22:12]url: /json_proto [18:22:12]query_string will be loaded in cgi processing [18:22:12]execute_cgi json_proto POST (null) [18:22:12]execute_cgi path=json_proto method=POST [18:22:12]POST find Content-Length [18:22:12]Host: 172.17.45.7:8080 [18:22:12]Content-Length: 677 [18:22:12]Content-Type: application/json [18:22:12] [18:22:12]POST finish read [18:22:12]Found Content-Length = 677 [18:22:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.720, "sum" : 320.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:12]execute_script... [18:22: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)949438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.720, "sum" : 320.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:12]POST & json_proto [18:22:12]process_json_proto [18:22:12]json parsed OK: [18:22:12]protocol is kg_v1.0 [18:22:12]action value=close_receipt [18:22:12]process_action close_receipt [18:22:12]cmd_close_receipt [18:22:12]MH_GetDate [18:22:12]Write to MH i2c: F0 00 00 BE 12 BF [18:22:12]Write i2c OK [18:22:12]MH_I2C_Read... [18:22:12]Read from MH i2c: F0 [18:22:12]MH_I2C_Read... [18:22:12]Read from MH i2c: F0 09 00 [18:22:12]MH_I2C_Read... [18:22:12]Read from MH i2c: F0 09 00 BE 12 00 56 8C A6 66 90 0F 3E 66 F9 [18:22:12]GetLastDocTimeStamp 1722190930 [18:22:12]current date 1722190934 [18:22:12]FM_GetShiftState [18:22:12]SAM_PROTO_GetShiftState [18:22:12]wFMCommunicate request_size=4 [18:22:12]MH_SAM_APDU [18:22:12]CAPDU: 80 13 01 00 [18:22:12]Write to MH i2c: E2 08 00 BF 12 80 13 01 00 00 00 00 00 4E [18:22:12]Write i2c OK [18:22:12]MH_I2C_Read... [18:22:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:13]Read from MH i2c: E2 [18:22:13]MH_I2C_Read... [18:22:13]Read from MH i2c: E2 0E 00 [18:22:13]MH_I2C_Read... [18:22:13]Read from MH i2c: E2 0E 00 BF 12 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 25 [18:22:13]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:22:13]wFMCommunicate OK [18:22:13]SAM_PROTO_GetShiftState done [18:22:13]FM_GetShiftState done [18:22:13]opened in 1722125364 [18:22:13]opened+sec_in_day 1722211764 [18:22:13]quantity*price = 32001 [18:22:13]sum+1 = 32003 [18:22:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.83 НДС 12% : 33.98 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 221 28.07.2024 18:22 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118552 ФПД: 31905414266549 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T182214&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118552&fm=31905414266549&tin=02508201610067®Number=0000000000092660&sum=32000 [18:22:14]StoreToDocumentArchive [18:22:14]shift 433 fd 118552 [18:22:14]save to /storage/0433/doc_00118552 [18:22:14]save last doc name /storage/0433/doc_00118552 to /storage/kkm_last_doc_name [18:22:14]save OK [18:22:14]Clear old archive folders... [18:22:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:22:14]tlvbuf is 01EDEEA0 [18:22:14]SAM_PROTO_ClearQueue [18:22:14]wFMCommunicate request_size=4 [18:22:14]MH_SAM_APDU [18:22:14]CAPDU: 80 09 00 00 [18:22:14]Write to MH i2c: E2 08 00 CC 12 80 09 00 00 00 00 00 00 50 [18:22:14]Write i2c OK [18:22:14]MH_I2C_Read... [18:22:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:14]Read from MH i2c: E2 [18:22:14]MH_I2C_Read... [18:22:14]Read from MH i2c: E2 03 00 [18:22:14]MH_I2C_Read... [18:22:14]Read from MH i2c: E2 03 00 CC 12 00 90 00 52 [18:22:14]RAPDU: 90 00 [18:22:14]wFMCommunicate OK [18:22:14]SAM_PROTO_ClearQueue done [18:22:14]KKMCreateOFDPacket [18:22:14]OFDProtocolAddRootSTLVToBuf [18:22:14]FM_MakeSignedData [18:22:14]FM_MakeSignedData [18:22:14]SAM_PROTO_SignData [18:22:14]wFMCommunicate request_size=4 [18:22:14]MH_SAM_APDU [18:22:14]CAPDU: 80 0D 01 02 [18:22:14]Write to MH i2c: E2 08 00 CD 12 80 0D 01 02 00 00 00 00 58 [18:22:14]Write i2c OK [18:22:14]MH_I2C_Read... [18:22:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:14]Read from MH i2c: E2 [18:22:14]MH_I2C_Read... [18:22:14]Read from MH i2c: E2 03 00 [18:22:14]MH_I2C_Read... [18:22:14]Read from MH i2c: E2 03 00 CD 12 00 90 00 53 [18:22:14]RAPDU: 90 00 [18:22:14]wFMCommunicate OK [18:22:14]wFMCommunicate request_size=255 [18:22:14]MH_SAM_APDU [18:22: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 34 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 02 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 56 8C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 18 CF 01 00 35 04 06 00 1D [18:22:14]Write to MH i2c: E2 02 01 CE 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 02 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 56 8C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 18 CF 01 00 35 04 06 00 1D 00 00 E9 [18:22:14]Write i2c OK [18:22:14]MH_I2C_Read... [18:22:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:14]Read from MH i2c: E2 [18:22:14]MH_I2C_Read... [18:22:14]Read from MH i2c: E2 03 00 [18:22:14]MH_I2C_Read... [18:22:14]Read from MH i2c: E2 03 00 CE 12 00 90 00 54 [18:22:14]RAPDU: 90 00 [18:22:14]wFMCommunicate OK [18:22:14]wFMCommunicate request_size=10 [18:22:14]MH_SAM_APDU [18:22:14]CAPDU: 80 0D 02 02 05 04 8E E2 3E B5 [18:22:14]Write to MH i2c: E2 0D 00 CF 12 80 0D 02 02 05 00 04 8E E2 3E B5 00 00 CC [18:22:14]Write i2c OK [18:22:14]MH_I2C_Read... [18:22:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:14]Read from MH i2c: E2 [18:22:14]MH_I2C_Read... [18:22:14]Read from MH i2c: E2 03 00 [18:22:14]MH_I2C_Read... [18:22:14]Read from MH i2c: E2 03 00 CF 12 00 90 00 55 [18:22:15]RAPDU: 90 00 [18:22:15]wFMCommunicate OK [18:22:15]wFMCommunicate request_size=4 [18:22:15]MH_SAM_APDU [18:22:15]CAPDU: 80 0D 03 02 [18:22:15]Write to MH i2c: E2 08 00 D0 12 80 0D 03 02 00 00 00 00 5D [18:22:15]Write i2c OK [18:22:15]MH_I2C_Read... [18:22:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:15]Read from MH i2c: E2 [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: E2 0B 00 [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: E2 0B 00 D0 12 00 79 D7 07 1E BA E8 F7 14 90 00 80 [18:22:15]RAPDU: 79 D7 07 1E BA E8 F7 14 90 00 [18:22:15]wFMCommunicate OK [18:22:15]SAM_PROTO_SignData done [18:22:15]FM_MakeSignedData done [18:22:15]CreateOFDProtocolMessage [18:22:15]wFMCommunicate request_size=4 [18:22:15]MH_SAM_APDU [18:22:15]CAPDU: 80 11 00 00 [18:22:15]Write to MH i2c: E2 08 00 D1 12 80 11 00 00 00 00 00 00 5D [18:22:15]Write i2c OK [18:22:15]MH_I2C_Read... [18:22:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:15]Read from MH i2c: E2 [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: E2 17 00 [18:22:15]MH_I2C_Read... [18:22:15]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 39 33 39 90 00 B8 [18:22:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:22:15]wFMCommunicate OK [18:22:15]CreateOFDProtocolMessage done [18:22:15]OFDSenderStorePacket 118552 [18:22:15]StoreOFDPacket docnum=118552 [18:22:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 83 C9 07 01 83 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 02 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 56 8C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 18 CF 01 00 35 04 06 00 1D 04 8E E2 3E B5 79 D7 07 1E BA E8 F7 14 [18:22:15]CheckFolder [18:22:15]dirname=/storage/ofd_packets [18:22:15]CheckFolder done [18:22:15]ProducePacketName [18:22:15]name=ofd_packets/00118552 [18:22:15]NVStorageSaveData ofd_packets/00118552 [18:22:15]File name is /storage/ofd_packets/00118552 [18:22:15]Write 301 bytes [18:22:15]NVStorageSaveData done [18:22:15]OFDSenderStorePacket done [18:22:15]KKMCreateOFDPacket done [18:22:15]NVStorageSaveData kkm_last_timestamp [18:22:15]File name is /storage/kkm_last_timestamp [18:22:15]Write 4 bytes [18:22:15]NVStorageSaveData done [18:22:15]ExternCall_PrintAddStr [18:22:15]wPrintStart [18:22:15]Write to MH i2c: 01 00 00 D2 12 E4 [18:22:15]Write i2c OK [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: 01 [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: 01 07 00 [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: 01 07 00 D2 12 00 00 00 00 00 FF 0F F9 [18:22:15]RasterBufferAndPrint [18:22:15]line Счет N : (1)949438 [18:22:15]line ИНН: 02508201610067 [18:22:15]line Контрольно-Кассовый Чек [18:22:15]line ПРОДАЖА [18:22:15]line ТРК (МРК, ГНК) : 41 [18:22:15]line Товар: 2710124130 [18:22:15]line Аи-92-К-4 [18:22:15]line 4.720 * 67.80 [18:22:15]line = 320.02 [18:22:15]line НДС 12% НСП 1% [18:22:15]line > о реализуемом товаре [18:22:15]line ОКРУГЛЕНИЕ: -0.02 [18:22:15]line ИТОГО: 320.00 [18:22:15]line Внесено: 320.00 [18:22:15]line СДАЧА: 0.00 [18:22:15]line НСП 1% : 2.83 [18:22:15]line НДС 12% : 33.98 [18:22:15]line Наличными: 320.00 [18:22:15]line Безнал.: 0.00 [18:22:15]line Место: АЗС № 134 "Партнер Нефть" [18:22:15]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:22:15]line СНО: Общий режим [18:22:15]line Чек 221 28.07.2024 18:22 [18:22:15]line Смена: 433 ФФД: 1.0 [18:22:15]line ЗНМ: 0300000044 [18:22:15]line РНМ: 0000000000092660 [18:22:15]line Версия ККМ: 001 [18:22:15]line ФМ: 0000000000874939 [18:22:15]line ФД: 118552 [18:22:15]line ФПД: 31905414266549 [18:22:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T182214&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118552&fm=31905414266549&tin=02508201610067®Number=0000000000092660&sum=32000 [18:22:15]written 0, free lines is 4095 [18:22:15]OFD Sender: Processing packet 118552 [packets to send 86, broken 85] [18:22:15]ProducePacketName [18:22:15]name=ofd_packets/00118552 [18:22:15]OFD Sender: To server: pG, [18:22:15]CommunicateWithHost lk.salyk.kg:30040 [18:22:15]ConnectInit lk.salyk.kg [18:22:15]Connected sock=10 [18:22:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 83 C9 07 01 83 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 02 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 56 8C A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 18 CF 01 00 35 04 06 00 1D 04 8E E2 3E B5 79 D7 07 1E BA E8 F7 14 [18:22:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 06 D0 47 00 6A 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 18 CF 01 00 F4 03 04 00 E6 39 A6 66 B6 04 01 00 00 55 50 A6 05 E5 05 5A EB [18:22:15]CommunicateWithHost err = 0 [18:22:15]CheckOFDResponse [18:22:15]1017 (14) - 77093643461234 [18:22:15]1041 (16) - 0000000000874939 [18:22:15]1040 (4) - 118552 [18:22:15]1012 (4) - 28.07.2024 12:30 [18:22:15]1206 (1) - 0 [18:22:15]OFD Sender: Remove packet 118552 [18:22:15]ProducePacketName [18:22:15]name=ofd_packets/00118552 [18:22:15]NVStorageDeleteData [18:22:15]Write to MH i2c: 01 00 00 FC 12 0E [18:22:15]Write i2c OK [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: 01 [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: 01 07 00 [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: 01 07 00 FC 12 00 00 00 00 00 EB 0C 0C [18:22:15]RasterBufferAndPrint [18:22:15]line [18:22:15]line [18:22:15]line [18:22:15]line [18:22:15]line [18:22:15]written 0, free lines is 3320 [18:22:15]MH_Cut [18:22:15]Write to MH i2c: D1 01 00 03 13 01 E8 [18:22:15]Write i2c OK [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: D1 [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: D1 01 00 [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: D1 01 00 03 13 00 E7 [18:22:15]Write to MH i2c: 01 00 00 04 13 17 [18:22:15]Write i2c OK [18:22:15]MH_I2C_Read... [18:22:15]OFD Sender: No OFD packet to send [18:22:16]*** Cut start [18:22:16]*** Partial cut [18:22:16]*** CUTSNS_PIN = 1 [18:22:16]*** CUTSNS_PIN = 0 [18:22:16]*** Brake cut motor [18:22:16]Read from MH i2c: 01 [18:22:16]MH_I2C_Read... [18:22:16]*** Stop cut motor [18:22:16]*** Cut end [18:22:16]Read from MH i2c: 01 07 00 [18:22:16]MH_I2C_Read... [18:22:16]Read from MH i2c: 01 07 00 04 13 00 00 00 00 00 FF 0F 2C [18:22:16]process_action close_receipt done [18:22:16]requested_data is exist [18:22:16]produce_requested_data [18:22:16]requested_item fm.sn is exist - process it [18:22:16]wFMCommunicate request_size=4 [18:22:16]MH_SAM_APDU [18:22:16]CAPDU: 80 11 00 00 [18:22:16]Write to MH i2c: E2 08 00 05 13 80 11 00 00 00 00 00 00 92 [18:22:16]Write i2c OK [18:22:16]MH_I2C_Read... [18:22:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:16]Read from MH i2c: E2 [18:22:16]MH_I2C_Read... [18:22:16]Read from MH i2c: E2 17 00 [18:22:16]MH_I2C_Read... [18:22:16]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 39 33 39 90 00 ED [18:22:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:22:16]wFMCommunicate OK [18:22:16]requested_item fd.num is exist - process it [18:22:16]SAM_PROTO_GetFieldsCounters [18:22:16]wFMCommunicate request_size=4 [18:22:16]MH_SAM_APDU [18:22:16]CAPDU: 80 13 00 00 [18:22:16]Write to MH i2c: E2 08 00 06 13 80 13 00 00 00 00 00 00 95 [18:22:16]Write i2c OK [18:22:16]MH_I2C_Read... [18:22:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:17]Read from MH i2c: E2 [18:22:17]MH_I2C_Read... [18:22:17]Read from MH i2c: E2 62 00 [18:22:17]MH_I2C_Read... [18:22:17]Read from MH i2c: E2 62 00 06 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 18 CF 01 00 0E 04 04 00 B1 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 ED [18:22:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 18 CF 01 00 0E 04 04 00 B1 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 [18:22:17]wFMCommunicate OK [18:22:17]SAM_PROTO_GetFieldsCounters done [18:22:17]requested_item shift.num is exist - process it [18:22:17]requested_item shift.opened is exist - process it [18:22:17]req_shift_opened [18:22:17]FM_GetShiftState [18:22:17]SAM_PROTO_GetShiftState [18:22:17]wFMCommunicate request_size=4 [18:22:17]MH_SAM_APDU [18:22:17]CAPDU: 80 13 01 00 [18:22:17]Write to MH i2c: E2 08 00 07 13 80 13 01 00 00 00 00 00 97 [18:22:17]Write i2c OK [18:22:17]MH_I2C_Read... [18:22:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:17]Read from MH i2c: E2 [18:22:17]MH_I2C_Read... [18:22:17]Read from MH i2c: E2 0E 00 [18:22:17]MH_I2C_Read... [18:22:17]Read from MH i2c: E2 0E 00 07 13 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 6E [18:22:17]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:22:17]wFMCommunicate OK [18:22:17]SAM_PROTO_GetShiftState done [18:22:17]FM_GetShiftState done [18:22:17]req_shift_opened done [18:22:17]requested_item shift.open_date is exist - process it [18:22:17]req_shift_open_date [18:22:17]req_shift_open_date done [18:22:17]produce_requested_data done [18:22:17]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118552,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:22:17]process_action_free close_receipt [18:22:17]json_value_free [18:22:17]json_value_free done [18:22:17]process_json_proto returns [18:22:17]Send response to host [18:22:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118552,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:22:17]free response buf [18:22:17]execute_script done [18:22:17]execute_script returns [18:22:17]free content buf [18:22:17]Sock 9.Close socket [18:22:17]Sock 9.Thread stoped [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:41]OFD Sender: No OFD packet to send [18:22:46]OFD Sender: No OFD packet to send [18:22:51]OFD Sender: No OFD packet to send [18:22:56]OFD Sender: No OFD packet to send [18:23:01]OFD Sender: No OFD packet to send [18:23:06]OFD Sender: No OFD packet to send [18:23:11]OFD Sender: No OFD packet to send [18:23:16]OFD Sender: No OFD packet to send [18:23:21]OFD Sender: No OFD packet to send [18:23:26]OFD Sender: No OFD packet to send [18:23:31]OFD Sender: No OFD packet to send [18:23:36]OFD Sender: No OFD packet to send [18:23:41]OFD Sender: No OFD packet to send [18:23:46]OFD Sender: No OFD packet to send [18:23:51]OFD Sender: No OFD packet to send [18:23:56]OFD Sender: No OFD packet to send [18:24:01]OFD Sender: No OFD packet to send [18:24:06]OFD Sender: No OFD packet to send [18:24:11]OFD Sender: No OFD packet to send [18:24:16]OFD Sender: No OFD packet to send [18:24:21]OFD Sender: No OFD packet to send [18:24:26]OFD Sender: No OFD packet to send [18:24:31]OFD Sender: No OFD packet to send [18:24:36]OFD Sender: No OFD packet to send [18:24:41]OFD Sender: No OFD packet to send [18:24:46]OFD Sender: No OFD packet to send [18:24:51]OFD Sender: No OFD packet to send [18:24:56]OFD Sender: No OFD packet to send [18:25:01]OFD Sender: No OFD packet to send [18:25:06]OFD Sender: No OFD packet to send [18:25:11]OFD Sender: No OFD packet to send [18:25:16]OFD Sender: No OFD packet to send [18:25:21]OFD Sender: No OFD packet to send [18:25:26]OFD Sender: No OFD packet to send [18:25:31]OFD Sender: No OFD packet to send [18:25:36]OFD Sender: No OFD packet to send [18:25:41]OFD Sender: No OFD packet to send [18:25:46]OFD Sender: No OFD packet to send [18:25:51]OFD Sender: No OFD packet to send [18:25:56]OFD Sender: No OFD packet to send [18:26:01]OFD Sender: No OFD packet to send [18:26:06]OFD Sender: No OFD packet to send [18:26:11]OFD Sender: No OFD packet to send [18:26:16]OFD Sender: No OFD packet to send [18:26:21]OFD Sender: No OFD packet to send [18:26:26]OFD Sender: No OFD packet to send [18:26:31]OFD Sender: No OFD packet to send [18:26:36]OFD Sender: No OFD packet to send [18:26:41]OFD Sender: No OFD packet to send [18:26:46]OFD Sender: No OFD packet to send [18:26:51]OFD Sender: No OFD packet to send [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:36]OFD Sender: No OFD packet to send [18:27:41]OFD Sender: No OFD packet to send [18:27:46]OFD Sender: No OFD packet to send [18:27:51]OFD Sender: No OFD packet to send [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:15]accept exits with 7 [18:29:15]New connection [18:29:15]New thread 3067383140 created [18:29:15]Thread 3067239780 joined [18:29:15]Waiting for new connection... [18:29:15] Sock 7.Parse request [18:29:15]Sock 7.Check first char [18:29:15]Sock 7.First char is OK [18:29:15]request: POST /json_proto HTTP/1.0 [18:29:15]Method: POST [18:29:15]URL: /json_proto [18:29:15]Method is POST - this is cgi request [18:29:15]url: /json_proto [18:29:15]query_string will be loaded in cgi processing [18:29:15]execute_cgi json_proto POST (null) [18:29:15]execute_cgi path=json_proto method=POST [18:29:15]POST find Content-Length [18:29:15]Host: 172.17.45.7:8080 [18:29:15]Content-Length: 677 [18:29:15]Content-Type: application/json [18:29:15] [18:29:15]POST finish read [18:29:15]Found Content-Length = 677 [18:29:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:29:15]execute_script... [18:29: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)949439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:29:15]POST & json_proto [18:29:15]process_json_proto [18:29:15]json parsed OK: [18:29:15]protocol is kg_v1.0 [18:29:15]action value=close_receipt [18:29:15]process_action close_receipt [18:29:15]cmd_close_receipt [18:29:15]MH_GetDate [18:29:15]Write to MH i2c: F0 00 00 08 13 0A [18:29:15]Write i2c OK [18:29:15]MH_I2C_Read... [18:29:15]Read from MH i2c: F0 [18:29:15]MH_I2C_Read... [18:29:15]Read from MH i2c: F0 09 00 [18:29:15]MH_I2C_Read... [18:29:15]Read from MH i2c: F0 09 00 08 13 00 FD 8D A6 66 90 0F 3E 66 EC [18:29:15]GetLastDocTimeStamp 1722190934 [18:29:15]current date 1722191357 [18:29:15]FM_GetShiftState [18:29:15]SAM_PROTO_GetShiftState [18:29:15]wFMCommunicate request_size=4 [18:29:15]MH_SAM_APDU [18:29:15]CAPDU: 80 13 01 00 [18:29:15]Write to MH i2c: E2 08 00 09 13 80 13 01 00 00 00 00 00 99 [18:29:15]Write i2c OK [18:29:15]MH_I2C_Read... [18:29:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:15]Read from MH i2c: E2 [18:29:15]MH_I2C_Read... [18:29:15]Read from MH i2c: E2 0E 00 [18:29:15]MH_I2C_Read... [18:29:15]Read from MH i2c: E2 0E 00 09 13 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 70 [18:29:15]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:29:15]wFMCommunicate OK [18:29:15]SAM_PROTO_GetShiftState done [18:29:15]FM_GetShiftState done [18:29:15]opened in 1722125364 [18:29:15]opened+sec_in_day 1722211764 [18:29:15]quantity*price = 40002 [18:29:15]sum+1 = 40003 [18:29:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 222 28.07.2024 18:29 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118553 ФПД: 18544510011709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T182917&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118553&fm=18544510011709&tin=02508201610067®Number=0000000000092660&sum=40000 [18:29:16]StoreToDocumentArchive [18:29:16]shift 433 fd 118553 [18:29:16]save to /storage/0433/doc_00118553 [18:29:16]save last doc name /storage/0433/doc_00118553 to /storage/kkm_last_doc_name [18:29:16]save OK [18:29:16]Clear old archive folders... [18:29:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:29:16]tlvbuf is 01E8CF30 [18:29:16]SAM_PROTO_ClearQueue [18:29:16]wFMCommunicate request_size=4 [18:29:16]MH_SAM_APDU [18:29:16]CAPDU: 80 09 00 00 [18:29:16]Write to MH i2c: E2 08 00 16 13 80 09 00 00 00 00 00 00 9B [18:29:16]Write i2c OK [18:29:16]MH_I2C_Read... [18:29:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:16]Read from MH i2c: E2 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: E2 03 00 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: E2 03 00 16 13 00 90 00 9D [18:29:16]RAPDU: 90 00 [18:29:16]wFMCommunicate OK [18:29:16]SAM_PROTO_ClearQueue done [18:29:16]KKMCreateOFDPacket [18:29:16]OFDProtocolAddRootSTLVToBuf [18:29:16]FM_MakeSignedData [18:29:16]FM_MakeSignedData [18:29:16]SAM_PROTO_SignData [18:29:16]wFMCommunicate request_size=4 [18:29:16]MH_SAM_APDU [18:29:16]CAPDU: 80 0D 01 02 [18:29:16]Write to MH i2c: E2 08 00 17 13 80 0D 01 02 00 00 00 00 A3 [18:29:16]Write i2c OK [18:29:16]MH_I2C_Read... [18:29:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:16]Read from MH i2c: E2 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: E2 03 00 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: E2 03 00 17 13 00 90 00 9E [18:29:16]RAPDU: 90 00 [18:29:16]wFMCommunicate OK [18:29:16]wFMCommunicate request_size=255 [18:29:16]MH_SAM_APDU [18:29: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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 DE 00 00 00 F4 03 04 00 FD 8D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 19 CF 01 00 35 04 06 00 10 [18:29:16]Write to MH i2c: E2 02 01 18 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 DE 00 00 00 F4 03 04 00 FD 8D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 19 CF 01 00 35 04 06 00 10 00 00 2B [18:29:16]Write i2c OK [18:29:16]MH_I2C_Read... [18:29:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:16]Read from MH i2c: E2 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: E2 03 00 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: E2 03 00 18 13 00 90 00 9F [18:29:16]RAPDU: 90 00 [18:29:16]wFMCommunicate OK [18:29:16]wFMCommunicate request_size=10 [18:29:16]MH_SAM_APDU [18:29:16]CAPDU: 80 0D 02 02 05 DD BA EE 89 3D [18:29:16]Write to MH i2c: E2 0D 00 19 13 80 0D 02 02 05 00 DD BA EE 89 3D 00 00 FB [18:29:16]Write i2c OK [18:29:16]MH_I2C_Read... [18:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:17]Read from MH i2c: E2 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: E2 03 00 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: E2 03 00 19 13 00 90 00 A0 [18:29:17]RAPDU: 90 00 [18:29:17]wFMCommunicate OK [18:29:17]wFMCommunicate request_size=4 [18:29:17]MH_SAM_APDU [18:29:17]CAPDU: 80 0D 03 02 [18:29:17]Write to MH i2c: E2 08 00 1A 13 80 0D 03 02 00 00 00 00 A8 [18:29:17]Write i2c OK [18:29:17]MH_I2C_Read... [18:29:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:17]Read from MH i2c: E2 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: E2 0B 00 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: E2 0B 00 1A 13 00 1C F6 32 7F 71 00 31 3C 90 00 4A [18:29:17]RAPDU: 1C F6 32 7F 71 00 31 3C 90 00 [18:29:17]wFMCommunicate OK [18:29:17]SAM_PROTO_SignData done [18:29:17]FM_MakeSignedData done [18:29:17]CreateOFDProtocolMessage [18:29:17]wFMCommunicate request_size=4 [18:29:17]MH_SAM_APDU [18:29:17]CAPDU: 80 11 00 00 [18:29:17]Write to MH i2c: E2 08 00 1B 13 80 11 00 00 00 00 00 00 A8 [18:29:17]Write i2c OK [18:29:17]MH_I2C_Read... [18:29:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:17]Read from MH i2c: E2 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: E2 17 00 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: E2 17 00 1B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 03 [18:29:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:29:17]wFMCommunicate OK [18:29:17]CreateOFDProtocolMessage done [18:29:17]OFDSenderStorePacket 118553 [18:29:17]StoreOFDPacket docnum=118553 [18:29:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4A CF 07 01 97 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 DE 00 00 00 F4 03 04 00 FD 8D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 19 CF 01 00 35 04 06 00 10 DD BA EE 89 3D 1C F6 32 7F 71 00 31 3C [18:29:17]CheckFolder [18:29:17]dirname=/storage/ofd_packets [18:29:17]CheckFolder done [18:29:17]ProducePacketName [18:29:17]name=ofd_packets/00118553 [18:29:17]NVStorageSaveData ofd_packets/00118553 [18:29:17]File name is /storage/ofd_packets/00118553 [18:29:17]Write 301 bytes [18:29:17]NVStorageSaveData done [18:29:17]OFDSenderStorePacket done [18:29:17]KKMCreateOFDPacket done [18:29:17]NVStorageSaveData kkm_last_timestamp [18:29:17]File name is /storage/kkm_last_timestamp [18:29:17]Write 4 bytes [18:29:17]NVStorageSaveData done [18:29:17]OFD Sender: Processing packet 118553 [packets to send 86, broken 85] [18:29:17]ProducePacketName [18:29:17]name=ofd_packets/00118553 [18:29:17]OFD Sender: To server: pG, [18:29:17]CommunicateWithHost lk.salyk.kg:30040 [18:29:17]ConnectInit lk.salyk.kg [18:29:17]ExternCall_PrintAddStr [18:29:17]wPrintStart [18:29:17]Write to MH i2c: 01 00 00 1C 13 2F [18:29:17]Write i2c OK [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: 01 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: 01 07 00 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: 01 07 00 1C 13 00 00 00 00 00 FF 0F 44 [18:29:17]RasterBufferAndPrint [18:29:17]line Счет N : (1)949439 [18:29:17]line ИНН: 02508201610067 [18:29:17]line Контрольно-Кассовый Чек [18:29:17]line ПРОДАЖА [18:29:17]line ТРК (МРК, ГНК) : 31 [18:29:17]line Товар: 2710124130 [18:29:17]line Аи-92-К-4 [18:29:17]line 5.900 * 67.80 [18:29:17]line = 400.02 [18:29:17]line НДС 12% НСП 1% [18:29:17]line > о реализуемом товаре [18:29:17]line ОКРУГЛЕНИЕ: -0.02 [18:29:17]line ИТОГО: 400.00 [18:29:17]line Внесено: 400.00 [18:29:17]line СДАЧА: 0.00 [18:29:17]line НСП 1% : 3.54 [18:29:17]line НДС 12% : 42.48 [18:29:17]line Наличными: 400.00 [18:29:17]line Безнал.: 0.00 [18:29:17]line Место: АЗС № 134 "Партнер Нефть" [18:29:17]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:29:17]line СНО: Общий режим [18:29:17]line Чек 222 28.07.2024 18:29 [18:29:17]line Смена: 433 ФФД: 1.0 [18:29:17]line ЗНМ: 0300000044 [18:29:17]line РНМ: 0000000000092660 [18:29:17]line Версия ККМ: 001 [18:29:17]line ФМ: 0000000000874939 [18:29:17]line ФД: 118553 [18:29:17]line ФПД: 18544510011709 [18:29:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T182917&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118553&fm=18544510011709&tin=02508201610067®Number=0000000000092660&sum=40000 [18:29:17]Connected sock=11 [18:29:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4A CF 07 01 97 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 DE 00 00 00 F4 03 04 00 FD 8D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 19 CF 01 00 35 04 06 00 10 DD BA EE 89 3D 1C F6 32 7F 71 00 31 3C [18:29:17]written 0, free lines is 4095 [18:29:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 04 A6 47 00 DC 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 39 33 39 10 04 04 00 19 CF 01 00 F4 03 04 00 8C 3B A6 66 B6 04 01 00 00 5D 37 8A DB EA 97 4A B6 [18:29:17]CommunicateWithHost err = 0 [18:29:17]CheckOFDResponse [18:29:17]1017 (14) - 77093643461234 [18:29:17]1041 (16) - 0000000000874939 [18:29:17]1040 (4) - 118553 [18:29:17]1012 (4) - 28.07.2024 12:37 [18:29:17]1206 (1) - 0 [18:29:17]OFD Sender: Remove packet 118553 [18:29:17]ProducePacketName [18:29:17]name=ofd_packets/00118553 [18:29:17]NVStorageDeleteData [18:29:17]Write to MH i2c: 01 00 00 46 13 59 [18:29:17]Write i2c OK [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: 01 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: 01 07 00 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: 01 07 00 46 13 00 00 00 00 00 CF 0C 3B [18:29:17]RasterBufferAndPrint [18:29:17]line [18:29:17]line [18:29:17]line [18:29:17]line [18:29:17]line [18:29:17]written 0, free lines is 3283 [18:29:17]MH_Cut [18:29:17]Write to MH i2c: D1 01 00 4D 13 01 32 [18:29:17]Write i2c OK [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: D1 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: D1 01 00 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: D1 01 00 4D 13 00 31 [18:29:17]Write to MH i2c: 01 00 00 4E 13 61 [18:29:17]Write i2c OK [18:29:17]MH_I2C_Read... [18:29:18]OFD Sender: No OFD packet to send [18:29:18]*** Cut start [18:29:18]*** Partial cut [18:29:18]*** CUTSNS_PIN = 1 [18:29:18]*** CUTSNS_PIN = 0 [18:29:18]*** Brake cut motor [18:29:19]Read from MH i2c: 01 [18:29:19]MH_I2C_Read... [18:29:19]*** Stop cut motor [18:29:19]*** Cut end [18:29:19]Read from MH i2c: 01 07 00 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: 01 07 00 4E 13 00 00 00 00 00 FF 0F 76 [18:29:19]process_action close_receipt done [18:29:19]requested_data is exist [18:29:19]produce_requested_data [18:29:19]requested_item fm.sn is exist - process it [18:29:19]wFMCommunicate request_size=4 [18:29:19]MH_SAM_APDU [18:29:19]CAPDU: 80 11 00 00 [18:29:19]Write to MH i2c: E2 08 00 4F 13 80 11 00 00 00 00 00 00 DC [18:29:19]Write i2c OK [18:29:19]MH_I2C_Read... [18:29:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:19]Read from MH i2c: E2 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: E2 17 00 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: E2 17 00 4F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 37 [18:29:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:29:19]wFMCommunicate OK [18:29:19]requested_item fd.num is exist - process it [18:29:19]SAM_PROTO_GetFieldsCounters [18:29:19]wFMCommunicate request_size=4 [18:29:19]MH_SAM_APDU [18:29:19]CAPDU: 80 13 00 00 [18:29:19]Write to MH i2c: E2 08 00 50 13 80 13 00 00 00 00 00 00 DF [18:29:19]Write i2c OK [18:29:19]MH_I2C_Read... [18:29:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:19]Read from MH i2c: E2 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: E2 62 00 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: E2 62 00 50 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 19 CF 01 00 0E 04 04 00 B1 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 3B [18:29:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 19 CF 01 00 0E 04 04 00 B1 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 [18:29:19]wFMCommunicate OK [18:29:19]SAM_PROTO_GetFieldsCounters done [18:29:19]requested_item shift.num is exist - process it [18:29:19]requested_item shift.opened is exist - process it [18:29:19]req_shift_opened [18:29:19]FM_GetShiftState [18:29:19]SAM_PROTO_GetShiftState [18:29:19]wFMCommunicate request_size=4 [18:29:19]MH_SAM_APDU [18:29:19]CAPDU: 80 13 01 00 [18:29:19]Write to MH i2c: E2 08 00 51 13 80 13 01 00 00 00 00 00 E1 [18:29:19]Write i2c OK [18:29:19]MH_I2C_Read... [18:29:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:19]Read from MH i2c: E2 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: E2 0E 00 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: E2 0E 00 51 13 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 B8 [18:29:19]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:29:19]wFMCommunicate OK [18:29:19]SAM_PROTO_GetShiftState done [18:29:19]FM_GetShiftState done [18:29:19]req_shift_opened done [18:29:19]requested_item shift.open_date is exist - process it [18:29:19]req_shift_open_date [18:29:19]req_shift_open_date done [18:29:19]produce_requested_data done [18:29:19]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118553,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:29:19]process_action_free close_receipt [18:29:19]json_value_free [18:29:19]json_value_free done [18:29:19]process_json_proto returns [18:29:19]Send response to host [18:29:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118553,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:29:19]free response buf [18:29:19]execute_script done [18:29:19]execute_script returns [18:29:19]free content buf [18:29:19]Sock 7.Close socket [18:29:19]Sock 7.Thread stoped [18:29:23]OFD Sender: No OFD packet to send [18:29:28]OFD Sender: No OFD packet to send [18:29:33]OFD Sender: No OFD packet to send [18:29:38]OFD Sender: No OFD packet to send [18:29:43]OFD Sender: No OFD packet to send [18:29:48]OFD Sender: No OFD packet to send [18:29:53]OFD Sender: No OFD packet to send [18:29:58]OFD Sender: No OFD packet to send [18:30:03]OFD Sender: No OFD packet to send [18:30:08]OFD Sender: No OFD packet to send [18:30:13]OFD Sender: No OFD packet to send [18:30:18]OFD Sender: No OFD packet to send [18:30:23]OFD Sender: No OFD packet to send [18:30:28]OFD Sender: No OFD packet to send [18:30:33]OFD Sender: No OFD packet to send [18:30:38]OFD Sender: No OFD packet to send [18:30:43]OFD Sender: No OFD packet to send [18:30:48]OFD Sender: No OFD packet to send [18:30:53]OFD Sender: No OFD packet to send [18:30:58]OFD Sender: No OFD packet to send [18:31:03]OFD Sender: No OFD packet to send [18:31:08]OFD Sender: No OFD packet to send [18:31:13]OFD Sender: No OFD packet to send [18:31:18]OFD Sender: No OFD packet to send [18:31:23]OFD Sender: No OFD packet to send [18:31:28]OFD Sender: No OFD packet to send [18:31:33]OFD Sender: No OFD packet to send [18:31:38]OFD Sender: No OFD packet to send [18:31:43]OFD Sender: No OFD packet to send [18:31:48]OFD Sender: No OFD packet to send [18:31:53]OFD Sender: No OFD packet to send [18:31:58]OFD Sender: No OFD packet to send [18:32:03]OFD Sender: No OFD packet to send [18:32:08]OFD Sender: No OFD packet to send [18:32:13]OFD Sender: No OFD packet to send [18:32:18]OFD Sender: No OFD packet to send [18:32:23]OFD Sender: No OFD packet to send [18:32:28]OFD Sender: No OFD packet to send [18:32:33]OFD Sender: No OFD packet to send [18:32:38]OFD Sender: No OFD packet to send [18:32:43]OFD Sender: No OFD packet to send [18:32:48]OFD Sender: No OFD packet to send [18:32:53]OFD Sender: No OFD packet to send [18:32:58]OFD Sender: No OFD packet to send [18:33:03]OFD Sender: No OFD packet to send [18:33:08]OFD Sender: No OFD packet to send [18:33:13]OFD Sender: No OFD packet to send [18:33:18]OFD Sender: No OFD packet to send [18:33:23]OFD Sender: No OFD packet to send [18:33:28]OFD Sender: No OFD packet to send [18:33:33]OFD Sender: No OFD packet to send [18:33:38]OFD Sender: No OFD packet to send [18:33:38]accept exits with 9 [18:33:38]New connection [18:33:38]New thread 3067239780 created [18:33:38]Thread 3067383140 joined [18:33:38]Waiting for new connection... [18:33:38] Sock 9.Parse request [18:33:38]Sock 9.Check first char [18:33:38]Sock 9.First char is OK [18:33:38]request: POST /json_proto HTTP/1.0 [18:33:38]Method: POST [18:33:38]URL: /json_proto [18:33:38]Method is POST - this is cgi request [18:33:38]url: /json_proto [18:33:38]query_string will be loaded in cgi processing [18:33:38]execute_cgi json_proto POST (null) [18:33:38]execute_cgi path=json_proto method=POST [18:33:38]POST find Content-Length [18:33:38]Host: 172.17.45.7:8080 [18:33:38]Content-Length: 819 [18:33:38]Content-Type: application/json [18:33:38] [18:33:38]POST finish read [18:33:38]Found Content-Length = 819 [18:33:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:38]execute_script... [18:33:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:38]POST & json_proto [18:33:38]process_json_proto [18:33:38]json parsed OK: [18:33:38]protocol is kg_v1.0 [18:33:38]action value=close_receipt [18:33:38]process_action close_receipt [18:33:38]cmd_close_receipt [18:33:38]MH_GetDate [18:33:38]Write to MH i2c: F0 00 00 52 13 54 [18:33:38]Write i2c OK [18:33:38]MH_I2C_Read... [18:33:38]Read from MH i2c: F0 [18:33:38]MH_I2C_Read... [18:33:38]Read from MH i2c: F0 09 00 [18:33:38]MH_I2C_Read... [18:33:38]Read from MH i2c: F0 09 00 52 13 00 04 8F A6 66 90 0F 3E 66 3F [18:33:38]GetLastDocTimeStamp 1722191357 [18:33:38]current date 1722191620 [18:33:38]FM_GetShiftState [18:33:38]SAM_PROTO_GetShiftState [18:33:38]wFMCommunicate request_size=4 [18:33:38]MH_SAM_APDU [18:33:38]CAPDU: 80 13 01 00 [18:33:38]Write to MH i2c: E2 08 00 53 13 80 13 01 00 00 00 00 00 E3 [18:33:38]Write i2c OK [18:33:38]MH_I2C_Read... [18:33:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:38]Read from MH i2c: E2 [18:33:38]MH_I2C_Read... [18:33:38]Read from MH i2c: E2 0E 00 [18:33:38]MH_I2C_Read... [18:33:38]Read from MH i2c: E2 0E 00 53 13 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 BA [18:33:38]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:33:38]wFMCommunicate OK [18:33:38]SAM_PROTO_GetShiftState done [18:33:38]FM_GetShiftState done [18:33:38]opened in 1722125364 [18:33:38]opened+sec_in_day 1722211764 [18:33:38]quantity*price = 150037 [18:33:38]sum+1 = 150039 [18:33:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 223 28.07.2024 18:33 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118554 ФПД: 30233481910194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T183340&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118554&fm=30233481910194&tin=02508201610067®Number=0000000000092660&sum=150000 [18:33:39]StoreToDocumentArchive [18:33:39]shift 433 fd 118554 [18:33:39]save to /storage/0433/doc_00118554 [18:33:39]save last doc name /storage/0433/doc_00118554 to /storage/kkm_last_doc_name [18:33:39]save OK [18:33:39]Clear old archive folders... [18:33:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:33:39]tlvbuf is B6F11930 [18:33:39]SAM_PROTO_ClearQueue [18:33:39]wFMCommunicate request_size=4 [18:33:39]MH_SAM_APDU [18:33:39]CAPDU: 80 09 00 00 [18:33:39]Write to MH i2c: E2 08 00 60 13 80 09 00 00 00 00 00 00 E5 [18:33:39]Write i2c OK [18:33:39]MH_I2C_Read... [18:33:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:39]Read from MH i2c: E2 [18:33:39]MH_I2C_Read... [18:33:39]Read from MH i2c: E2 03 00 [18:33:39]MH_I2C_Read... [18:33:39]Read from MH i2c: E2 03 00 60 13 00 90 00 E7 [18:33:39]RAPDU: 90 00 [18:33:39]wFMCommunicate OK [18:33:39]SAM_PROTO_ClearQueue done [18:33:39]KKMCreateOFDPacket [18:33:39]OFDProtocolAddRootSTLVToBuf [18:33:39]FM_MakeSignedData [18:33:39]FM_MakeSignedData [18:33:39]SAM_PROTO_SignData [18:33:39]wFMCommunicate request_size=4 [18:33:39]MH_SAM_APDU [18:33:39]CAPDU: 80 0D 01 02 [18:33:39]Write to MH i2c: E2 08 00 61 13 80 0D 01 02 00 00 00 00 ED [18:33:39]Write i2c OK [18:33:39]MH_I2C_Read... [18:33:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:39]Read from MH i2c: E2 [18:33:39]MH_I2C_Read... [18:33:39]Read from MH i2c: E2 03 00 [18:33:39]MH_I2C_Read... [18:33:39]Read from MH i2c: E2 03 00 61 13 00 90 00 E8 [18:33:39]RAPDU: 90 00 [18:33:39]wFMCommunicate OK [18:33:39]wFMCommunicate request_size=255 [18:33:39]MH_SAM_APDU [18:33:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 04 8F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1A CF 01 00 35 04 06 00 1B 7F 47 F3 [18:33:39]Write to MH i2c: E2 02 01 62 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 04 8F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1A CF 01 00 35 04 06 00 1B 7F 47 F3 00 00 E2 [18:33:39]Write i2c OK [18:33:39]MH_I2C_Read... [18:33:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:40]Read from MH i2c: E2 [18:33:40]MH_I2C_Read... [18:33:40]Read from MH i2c: E2 03 00 [18:33:40]MH_I2C_Read... [18:33:40]Read from MH i2c: E2 03 00 62 13 00 90 00 E9 [18:33:40]RAPDU: 90 00 [18:33:40]wFMCommunicate OK [18:33:40]wFMCommunicate request_size=7 [18:33:40]MH_SAM_APDU [18:33:40]CAPDU: 80 0D 02 02 02 17 B2 [18:33:40]Write to MH i2c: E2 0A 00 63 13 80 0D 02 02 02 00 17 B2 00 00 BD [18:33:40]Write i2c OK [18:33:40]MH_I2C_Read... [18:33:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:40]Read from MH i2c: E2 [18:33:40]MH_I2C_Read... [18:33:40]Read from MH i2c: E2 03 00 [18:33:40]MH_I2C_Read... [18:33:40]Read from MH i2c: E2 03 00 63 13 00 90 00 EA [18:33:40]RAPDU: 90 00 [18:33:40]wFMCommunicate OK [18:33:40]wFMCommunicate request_size=4 [18:33:40]MH_SAM_APDU [18:33:40]CAPDU: 80 0D 03 02 [18:33:40]Write to MH i2c: E2 08 00 64 13 80 0D 03 02 00 00 00 00 F2 [18:33:40]Write i2c OK [18:33:40]MH_I2C_Read... [18:33:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:40]Read from MH i2c: E2 [18:33:40]MH_I2C_Read... [18:33:40]Read from MH i2c: E2 0B 00 [18:33:40]MH_I2C_Read... [18:33:40]Read from MH i2c: E2 0B 00 64 13 00 FD D2 E1 98 92 44 65 50 90 00 C6 [18:33:40]RAPDU: FD D2 E1 98 92 44 65 50 90 00 [18:33:40]wFMCommunicate OK [18:33:40]SAM_PROTO_SignData done [18:33:40]FM_MakeSignedData done [18:33:40]CreateOFDProtocolMessage [18:33:40]wFMCommunicate request_size=4 [18:33:40]MH_SAM_APDU [18:33:40]CAPDU: 80 11 00 00 [18:33:40]Write to MH i2c: E2 08 00 65 13 80 11 00 00 00 00 00 00 F2 [18:33:40]Write i2c OK [18:33:40]MH_I2C_Read... [18:33:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:40]Read from MH i2c: E2 [18:33:40]MH_I2C_Read... [18:33:40]Read from MH i2c: E2 17 00 [18:33:40]MH_I2C_Read... [18:33:40]Read from MH i2c: E2 17 00 65 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4D [18:33:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:33:40]wFMCommunicate OK [18:33:40]CreateOFDProtocolMessage done [18:33:40]OFDSenderStorePacket 118554 [18:33:40]StoreOFDPacket docnum=118554 [18:33:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 45 82 04 01 41 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 04 8F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1A CF 01 00 35 04 06 00 1B 7F 47 F3 17 B2 FD D2 E1 98 92 44 65 50 [18:33:40]CheckFolder [18:33:40]dirname=/storage/ofd_packets [18:33:40]CheckFolder done [18:33:40]ProducePacketName [18:33:40]name=ofd_packets/00118554 [18:33:40]NVStorageSaveData ofd_packets/00118554 [18:33:40]File name is /storage/ofd_packets/00118554 [18:33:40]Write 298 bytes [18:33:40]NVStorageSaveData done [18:33:40]OFDSenderStorePacket done [18:33:40]KKMCreateOFDPacket done [18:33:40]NVStorageSaveData kkm_last_timestamp [18:33:40]File name is /storage/kkm_last_timestamp [18:33:40]Write 4 bytes [18:33:40]NVStorageSaveData done [18:33:40]ExternCall_PrintAddStr [18:33:40]wPrintStart [18:33:40]Write to MH i2c: 01 00 00 66 13 79 [18:33:40]Write i2c OK [18:33:40]MH_I2C_Read... [18:33:40]Read from MH i2c: 01 [18:33:40]MH_I2C_Read... [18:33:40]Read from MH i2c: 01 07 00 [18:33:40]MH_I2C_Read... [18:33:40]Read from MH i2c: 01 07 00 66 13 00 00 00 00 00 FF 0F 8E [18:33:40]RasterBufferAndPrint [18:33:40]line Счет N : (1)949440 [18:33:40]line ИНН: 02508201610067 [18:33:40]line Контрольно-Кассовый Чек [18:33:40]line ПРОДАЖА [18:33:40]line ТРК (МРК, ГНК) : 34 [18:33:40]line Товар: 2710194800 [18:33:40]line ДТ-К-5 [18:33:40]line 19.690 * 76.20 [18:33:40]line = 1500.38 [18:33:40]line НДС 12% НСП 1% [18:33:40]line > о реализуемом товаре [18:33:40]line ОКРУГЛЕНИЕ: -0.38 [18:33:40]line ИТОГО: 1500.00 [18:33:40]line НСП 1% : 13.28 [18:33:40]line НДС 12% : 159.33 [18:33:40]line Наличными: 0.00 [18:33:40]line Безнал.: 1500.00 [18:33:40]line Место: АЗС № 134 "Партнер Нефть" [18:33:40]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:33:40]line СНО: Общий режим [18:33:40]line Чек 223 28.07.2024 18:33 [18:33:40]line Смена: 433 ФФД: 1.0 [18:33:40]line ЗНМ: 0300000044 [18:33:40]line РНМ: 0000000000092660 [18:33:40]line Версия ККМ: 001 [18:33:40]line Платежная система: O! деньги [18:33:40]line ФМ: 0000000000874939 [18:33:40]line ФД: 118554 [18:33:40]line ФПД: 30233481910194 [18:33:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T183340&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118554&fm=30233481910194&tin=02508201610067®Number=0000000000092660&sum=150000 [18:33:40]OFD Sender: Processing packet 118554 [packets to send 86, broken 85] [18:33:40]ProducePacketName [18:33:40]name=ofd_packets/00118554 [18:33:40]OFD Sender: To server: pG, [18:33:40]CommunicateWithHost lk.salyk.kg:30040 [18:33:40]ConnectInit lk.salyk.kg [18:33:40]written 0, free lines is 4095 [18:33:40]Connected sock=10 [18:33:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 45 82 04 01 41 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 04 8F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1A CF 01 00 35 04 06 00 1B 7F 47 F3 17 B2 FD D2 E1 98 92 44 65 50 [18:33:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EF 22 47 00 DB AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1A CF 01 00 F4 03 04 00 94 3C A6 66 B6 04 01 00 00 A3 68 20 E2 7A D5 BB BB [18:33:40]CommunicateWithHost err = 0 [18:33:40]CheckOFDResponse [18:33:40]1017 (14) - 77093643461234 [18:33:40]1041 (16) - 0000000000874939 [18:33:40]1040 (4) - 118554 [18:33:40]1012 (4) - 28.07.2024 12:41 [18:33:40]1206 (1) - 0 [18:33:40]OFD Sender: Remove packet 118554 [18:33:40]ProducePacketName [18:33:40]name=ofd_packets/00118554 [18:33:40]NVStorageDeleteData [18:33:41]Write to MH i2c: 01 00 00 90 13 A3 [18:33:41]Write i2c OK [18:33:41]MH_I2C_Read... [18:33:41]Read from MH i2c: 01 [18:33:41]MH_I2C_Read... [18:33:41]Read from MH i2c: 01 07 00 [18:33:41]MH_I2C_Read... [18:33:41]Read from MH i2c: 01 07 00 90 13 00 00 00 00 00 D9 0C 8F [18:33:41]RasterBufferAndPrint [18:33:41]line [18:33:41]line [18:33:41]line [18:33:41]line [18:33:41]line [18:33:41]written 0, free lines is 3296 [18:33:41]MH_Cut [18:33:41]Write to MH i2c: D1 01 00 97 13 01 7C [18:33:41]Write i2c OK [18:33:41]MH_I2C_Read... [18:33:41]Read from MH i2c: D1 [18:33:41]MH_I2C_Read... [18:33:41]Read from MH i2c: D1 01 00 [18:33:41]MH_I2C_Read... [18:33:41]Read from MH i2c: D1 01 00 97 13 00 7B [18:33:41]Write to MH i2c: 01 00 00 98 13 AB [18:33:41]Write i2c OK [18:33:41]MH_I2C_Read... [18:33:41]OFD Sender: No OFD packet to send [18:33:41]*** Cut start [18:33:41]*** Partial cut [18:33:41]*** CUTSNS_PIN = 1 [18:33:41]*** CUTSNS_PIN = 0 [18:33:42]*** Brake cut motor [18:33:42]Read from MH i2c: 01 [18:33:42]MH_I2C_Read... [18:33:42]*** Stop cut motor [18:33:42]*** Cut end [18:33:42]Read from MH i2c: 01 07 00 [18:33:42]MH_I2C_Read... [18:33:42]Read from MH i2c: 01 07 00 98 13 00 00 00 00 00 FF 0F C0 [18:33:42]process_action close_receipt done [18:33:42]requested_data is exist [18:33:42]produce_requested_data [18:33:42]requested_item fm.sn is exist - process it [18:33:42]wFMCommunicate request_size=4 [18:33:42]MH_SAM_APDU [18:33:42]CAPDU: 80 11 00 00 [18:33:42]Write to MH i2c: E2 08 00 99 13 80 11 00 00 00 00 00 00 26 [18:33:42]Write i2c OK [18:33:42]MH_I2C_Read... [18:33:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:42]Read from MH i2c: E2 [18:33:42]MH_I2C_Read... [18:33:42]Read from MH i2c: E2 17 00 [18:33:42]MH_I2C_Read... [18:33:42]Read from MH i2c: E2 17 00 99 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 81 [18:33:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:33:42]wFMCommunicate OK [18:33:42]requested_item fd.num is exist - process it [18:33:42]SAM_PROTO_GetFieldsCounters [18:33:42]wFMCommunicate request_size=4 [18:33:42]MH_SAM_APDU [18:33:42]CAPDU: 80 13 00 00 [18:33:42]Write to MH i2c: E2 08 00 9A 13 80 13 00 00 00 00 00 00 29 [18:33:42]Write i2c OK [18:33:42]MH_I2C_Read... [18:33:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:42]Read from MH i2c: E2 [18:33:42]MH_I2C_Read... [18:33:42]Read from MH i2c: E2 62 00 [18:33:42]MH_I2C_Read... [18:33:42]Read from MH i2c: E2 62 00 9A 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1A CF 01 00 0E 04 04 00 B1 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 89 [18:33:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1A CF 01 00 0E 04 04 00 B1 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 [18:33:42]wFMCommunicate OK [18:33:42]SAM_PROTO_GetFieldsCounters done [18:33:42]requested_item shift.num is exist - process it [18:33:42]requested_item shift.opened is exist - process it [18:33:42]req_shift_opened [18:33:42]FM_GetShiftState [18:33:42]SAM_PROTO_GetShiftState [18:33:42]wFMCommunicate request_size=4 [18:33:42]MH_SAM_APDU [18:33:42]CAPDU: 80 13 01 00 [18:33:42]Write to MH i2c: E2 08 00 9B 13 80 13 01 00 00 00 00 00 2B [18:33:42]Write i2c OK [18:33:42]MH_I2C_Read... [18:33:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:42]Read from MH i2c: E2 [18:33:42]MH_I2C_Read... [18:33:42]Read from MH i2c: E2 0E 00 [18:33:42]MH_I2C_Read... [18:33:42]Read from MH i2c: E2 0E 00 9B 13 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 02 [18:33:42]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:33:42]wFMCommunicate OK [18:33:42]SAM_PROTO_GetShiftState done [18:33:42]FM_GetShiftState done [18:33:42]req_shift_opened done [18:33:42]requested_item shift.open_date is exist - process it [18:33:42]req_shift_open_date [18:33:42]req_shift_open_date done [18:33:42]produce_requested_data done [18:33:42]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118554,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:33:42]process_action_free close_receipt [18:33:42]json_value_free [18:33:42]json_value_free done [18:33:42]process_json_proto returns [18:33:42]Send response to host [18:33:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118554,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:33:42]free response buf [18:33:42]execute_script done [18:33:42]execute_script returns [18:33:42]free content buf [18:33:42]Sock 9.Close socket [18:33:42]Sock 9.Thread stoped [18:33:46]OFD Sender: No OFD packet to send [18:33:51]OFD Sender: No OFD packet to send [18:33:56]OFD Sender: No OFD packet to send [18:34:01]OFD Sender: No OFD packet to send [18:34:06]OFD Sender: No OFD packet to send [18:34:11]OFD Sender: No OFD packet to send [18:34:16]OFD Sender: No OFD packet to send [18:34:21]OFD Sender: No OFD packet to send [18:34:26]OFD Sender: No OFD packet to send [18:34:31]OFD Sender: No OFD packet to send [18:34:36]OFD Sender: No OFD packet to send [18:34:41]OFD Sender: No OFD packet to send [18:34:43]accept exits with 7 [18:34:43]New connection [18:34:43]New thread 3067383140 created [18:34:43]Thread 3067239780 joined [18:34:43]Waiting for new connection... [18:34:43] Sock 7.Parse request [18:34:43]Sock 7.Check first char [18:34:43]Sock 7.First char is OK [18:34:43]request: POST /json_proto HTTP/1.0 [18:34:43]Method: POST [18:34:43]URL: /json_proto [18:34:43]Method is POST - this is cgi request [18:34:43]url: /json_proto [18:34:43]query_string will be loaded in cgi processing [18:34:43]execute_cgi json_proto POST (null) [18:34:43]execute_cgi path=json_proto method=POST [18:34:43]POST find Content-Length [18:34:43]Host: 172.17.45.7:8080 [18:34:43]Content-Length: 822 [18:34:43]Content-Type: application/json [18:34:43] [18:34:43]POST finish read [18:34:43]Found Content-Length = 822 [18:34:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 25.080, "sum" : 1700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1700.00, "payments": [ { "type": 1, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:43]execute_script... [18:34:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 25.080, "sum" : 1700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1700.00, "payments": [ { "type": 1, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:43]POST & json_proto [18:34:43]process_json_proto [18:34:43]json parsed OK: [18:34:43]protocol is kg_v1.0 [18:34:43]action value=close_receipt [18:34:43]process_action close_receipt [18:34:43]cmd_close_receipt [18:34:43]MH_GetDate [18:34:43]Write to MH i2c: F0 00 00 9C 13 9E [18:34:43]Write i2c OK [18:34:43]MH_I2C_Read... [18:34:43]Read from MH i2c: F0 [18:34:43]MH_I2C_Read... [18:34:43]Read from MH i2c: F0 09 00 [18:34:43]MH_I2C_Read... [18:34:43]Read from MH i2c: F0 09 00 9C 13 00 45 8F A6 66 90 0F 3E 66 CA [18:34:43]GetLastDocTimeStamp 1722191620 [18:34:43]current date 1722191685 [18:34:43]FM_GetShiftState [18:34:43]SAM_PROTO_GetShiftState [18:34:43]wFMCommunicate request_size=4 [18:34:43]MH_SAM_APDU [18:34:43]CAPDU: 80 13 01 00 [18:34:43]Write to MH i2c: E2 08 00 9D 13 80 13 01 00 00 00 00 00 2D [18:34:43]Write i2c OK [18:34:43]MH_I2C_Read... [18:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:43]Read from MH i2c: E2 [18:34:43]MH_I2C_Read... [18:34:43]Read from MH i2c: E2 0E 00 [18:34:43]MH_I2C_Read... [18:34:43]Read from MH i2c: E2 0E 00 9D 13 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 04 [18:34:43]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:34:43]wFMCommunicate OK [18:34:43]SAM_PROTO_GetShiftState done [18:34:43]FM_GetShiftState done [18:34:43]opened in 1722125364 [18:34:43]opened+sec_in_day 1722211764 [18:34:43]quantity*price = 170042 [18:34:43]sum+1 = 170043 [18:34:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 1700.00 НСП 1% : 15.05 НДС 12% : 180.58 Наличными: 0.00 Безнал.: 1700.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 224 28.07.2024 18:34 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118555 ФПД: 89153273492024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T183445&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118555&fm=89153273492024&tin=02508201610067®Number=0000000000092660&sum=170000 [18:34:44]StoreToDocumentArchive [18:34:44]shift 433 fd 118555 [18:34:44]save to /storage/0433/doc_00118555 [18:34:44]save last doc name /storage/0433/doc_00118555 to /storage/kkm_last_doc_name [18:34:44]save OK [18:34:44]Clear old archive folders... [18:34:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:34:44]tlvbuf is 01ED6740 [18:34:44]SAM_PROTO_ClearQueue [18:34:44]wFMCommunicate request_size=4 [18:34:44]MH_SAM_APDU [18:34:44]CAPDU: 80 09 00 00 [18:34:44]Write to MH i2c: E2 08 00 AA 13 80 09 00 00 00 00 00 00 2F [18:34:44]Write i2c OK [18:34:44]MH_I2C_Read... [18:34:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:44]Read from MH i2c: E2 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 03 00 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 03 00 AA 13 00 90 00 31 [18:34:44]RAPDU: 90 00 [18:34:44]wFMCommunicate OK [18:34:44]SAM_PROTO_ClearQueue done [18:34:44]KKMCreateOFDPacket [18:34:44]OFDProtocolAddRootSTLVToBuf [18:34:44]FM_MakeSignedData [18:34:44]FM_MakeSignedData [18:34:44]SAM_PROTO_SignData [18:34:44]wFMCommunicate request_size=4 [18:34:44]MH_SAM_APDU [18:34:44]CAPDU: 80 0D 01 02 [18:34:44]Write to MH i2c: E2 08 00 AB 13 80 0D 01 02 00 00 00 00 37 [18:34:44]Write i2c OK [18:34:44]MH_I2C_Read... [18:34:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:44]Read from MH i2c: E2 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 03 00 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 03 00 AB 13 00 90 00 32 [18:34:44]RAPDU: 90 00 [18:34:44]wFMCommunicate OK [18:34:44]wFMCommunicate request_size=255 [18:34:44]MH_SAM_APDU [18:34: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 34 FF 03 08 00 03 F8 61 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3A 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 8A 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 45 8F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1B CF 01 00 35 04 06 00 51 [18:34:44]Write to MH i2c: E2 02 01 AC 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 34 FF 03 08 00 03 F8 61 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3A 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 8A 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 45 8F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1B CF 01 00 35 04 06 00 51 00 00 C1 [18:34:44]Write i2c OK [18:34:44]MH_I2C_Read... [18:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:44]Read from MH i2c: E2 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 03 00 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 03 00 AC 13 00 90 00 33 [18:34:44]RAPDU: 90 00 [18:34:44]wFMCommunicate OK [18:34:44]wFMCommunicate request_size=10 [18:34:44]MH_SAM_APDU [18:34:44]CAPDU: 80 0D 02 02 05 15 9D 32 72 38 [18:34:44]Write to MH i2c: E2 0D 00 AD 13 80 0D 02 02 05 00 15 9D 32 72 38 00 00 D2 [18:34:44]Write i2c OK [18:34:44]MH_I2C_Read... [18:34:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:45]Read from MH i2c: E2 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 03 00 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 03 00 AD 13 00 90 00 34 [18:34:45]RAPDU: 90 00 [18:34:45]wFMCommunicate OK [18:34:45]wFMCommunicate request_size=4 [18:34:45]MH_SAM_APDU [18:34:45]CAPDU: 80 0D 03 02 [18:34:45]Write to MH i2c: E2 08 00 AE 13 80 0D 03 02 00 00 00 00 3C [18:34:45]Write i2c OK [18:34:45]MH_I2C_Read... [18:34:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:45]Read from MH i2c: E2 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 0B 00 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 0B 00 AE 13 00 87 52 50 20 EF 5D B3 C4 90 00 49 [18:34:45]RAPDU: 87 52 50 20 EF 5D B3 C4 90 00 [18:34:45]wFMCommunicate OK [18:34:45]SAM_PROTO_SignData done [18:34:45]FM_MakeSignedData done [18:34:45]CreateOFDProtocolMessage [18:34:45]wFMCommunicate request_size=4 [18:34:45]MH_SAM_APDU [18:34:45]CAPDU: 80 11 00 00 [18:34:45]Write to MH i2c: E2 08 00 AF 13 80 11 00 00 00 00 00 00 3C [18:34:45]Write i2c OK [18:34:45]MH_I2C_Read... [18:34:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:45]Read from MH i2c: E2 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 17 00 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 17 00 AF 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 97 [18:34:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:34:45]wFMCommunicate OK [18:34:45]CreateOFDProtocolMessage done [18:34:45]OFDSenderStorePacket 118555 [18:34:45]StoreOFDPacket docnum=118555 [18:34:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 29 66 07 01 49 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 61 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3A 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 8A 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 45 8F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1B CF 01 00 35 04 06 00 51 15 9D 32 72 38 87 52 50 20 EF 5D B3 C4 [18:34:45]CheckFolder [18:34:45]dirname=/storage/ofd_packets [18:34:45]CheckFolder done [18:34:45]ProducePacketName [18:34:45]name=ofd_packets/00118555 [18:34:45]NVStorageSaveData ofd_packets/00118555 [18:34:45]File name is /storage/ofd_packets/00118555 [18:34:45]Write 301 bytes [18:34:45]NVStorageSaveData done [18:34:45]OFDSenderStorePacket done [18:34:45]KKMCreateOFDPacket done [18:34:45]NVStorageSaveData kkm_last_timestamp [18:34:45]File name is /storage/kkm_last_timestamp [18:34:45]Write 4 bytes [18:34:45]NVStorageSaveData done [18:34:45]ExternCall_PrintAddStr [18:34:45]wPrintStart [18:34:45]Write to MH i2c: 01 00 00 B0 13 C3 [18:34:45]Write i2c OK [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: 01 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: 01 07 00 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: 01 07 00 B0 13 00 00 00 00 00 FF 0F D8 [18:34:45]RasterBufferAndPrint [18:34:45]line Счет N : (1)949441 [18:34:45]line ИНН: 02508201610067 [18:34:45]line Контрольно-Кассовый Чек [18:34:45]line ПРОДАЖА [18:34:45]line ТРК (МРК, ГНК) : 41 [18:34:45]line Товар: 2710124130 [18:34:45]line Аи-92-К-4 [18:34:45]line 25.080 * 67.80 [18:34:45]line = 1700.42 [18:34:45]line НДС 12% НСП 1% [18:34:45]line > о реализуемом товаре [18:34:45]line ОКРУГЛЕНИЕ: -0.42 [18:34:45]line ИТОГО: 1700.00 [18:34:45]line НСП 1% : 15.05 [18:34:45]line НДС 12% : 180.58 [18:34:45]line Наличными: 0.00 [18:34:45]line Безнал.: 1700.00 [18:34:45]line Место: АЗС № 134 "Партнер Нефть" [18:34:45]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:34:45]line СНО: Общий режим [18:34:45]line Чек 224 28.07.2024 18:34 [18:34:45]line Смена: 433 ФФД: 1.0 [18:34:45]line ЗНМ: 0300000044 [18:34:45]line РНМ: 0000000000092660 [18:34:45]line Версия ККМ: 001 [18:34:45]line Платежная система: O! деньги [18:34:45]line ФМ: 0000000000874939 [18:34:45]line ФД: 118555 [18:34:45]line ФПД: 89153273492024 [18:34:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T183445&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118555&fm=89153273492024&tin=02508201610067®Number=0000000000092660&sum=170000 [18:34:45]OFD Sender: Processing packet 118555 [packets to send 86, broken 85] [18:34:45]ProducePacketName [18:34:45]name=ofd_packets/00118555 [18:34:45]OFD Sender: To server: pG, [18:34:45]CommunicateWithHost lk.salyk.kg:30040 [18:34:45]ConnectInit lk.salyk.kg [18:34:45]written 0, free lines is 4095 [18:34:45]Connected sock=10 [18:34:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 29 66 07 01 49 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 61 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3A 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 8A 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 45 8F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1B CF 01 00 35 04 06 00 51 15 9D 32 72 38 87 52 50 20 EF 5D B3 C4 [18:34:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 CB 21 47 00 4F EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1B CF 01 00 F4 03 04 00 D4 3C A6 66 B6 04 01 00 00 5B 3F D2 97 BA 52 EA 7A [18:34:45]CommunicateWithHost err = 0 [18:34:45]CheckOFDResponse [18:34:45]1017 (14) - 77093643461234 [18:34:45]1041 (16) - 0000000000874939 [18:34:45]1040 (4) - 118555 [18:34:45]1012 (4) - 28.07.2024 12:43 [18:34:45]1206 (1) - 0 [18:34:45]OFD Sender: Remove packet 118555 [18:34:45]ProducePacketName [18:34:45]name=ofd_packets/00118555 [18:34:45]NVStorageDeleteData [18:34:45]Write to MH i2c: 01 00 00 DA 13 ED [18:34:45]Write i2c OK [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: 01 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: 01 07 00 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: 01 07 00 DA 13 00 00 00 00 00 D9 0C D9 [18:34:45]RasterBufferAndPrint [18:34:45]line [18:34:45]line [18:34:45]line [18:34:45]line [18:34:45]line [18:34:45]written 0, free lines is 3297 [18:34:45]MH_Cut [18:34:45]Write to MH i2c: D1 01 00 E1 13 01 C6 [18:34:45]Write i2c OK [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: D1 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: D1 01 00 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: D1 01 00 E1 13 00 C5 [18:34:45]Write to MH i2c: 01 00 00 E2 13 F5 [18:34:45]Write i2c OK [18:34:45]MH_I2C_Read... [18:34:46]OFD Sender: No OFD packet to send [18:34:46]*** Cut start [18:34:46]*** Partial cut [18:34:46]*** CUTSNS_PIN = 1 [18:34:46]*** CUTSNS_PIN = 0 [18:34:46]*** Brake cut motor [18:34:47]Read from MH i2c: 01 [18:34:47]MH_I2C_Read... [18:34:47]*** Stop cut motor [18:34:47]*** Cut end [18:34:47]Read from MH i2c: 01 07 00 [18:34:47]MH_I2C_Read... [18:34:47]Read from MH i2c: 01 07 00 E2 13 00 00 00 00 00 FF 0F 0A [18:34:47]process_action close_receipt done [18:34:47]requested_data is exist [18:34:47]produce_requested_data [18:34:47]requested_item fm.sn is exist - process it [18:34:47]wFMCommunicate request_size=4 [18:34:47]MH_SAM_APDU [18:34:47]CAPDU: 80 11 00 00 [18:34:47]Write to MH i2c: E2 08 00 E3 13 80 11 00 00 00 00 00 00 70 [18:34:47]Write i2c OK [18:34:47]MH_I2C_Read... [18:34:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:47]Read from MH i2c: E2 [18:34:47]MH_I2C_Read... [18:34:47]Read from MH i2c: E2 17 00 [18:34:47]MH_I2C_Read... [18:34:47]Read from MH i2c: E2 17 00 E3 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CB [18:34:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:34:47]wFMCommunicate OK [18:34:47]requested_item fd.num is exist - process it [18:34:47]SAM_PROTO_GetFieldsCounters [18:34:47]wFMCommunicate request_size=4 [18:34:47]MH_SAM_APDU [18:34:47]CAPDU: 80 13 00 00 [18:34:47]Write to MH i2c: E2 08 00 E4 13 80 13 00 00 00 00 00 00 73 [18:34:47]Write i2c OK [18:34:47]MH_I2C_Read... [18:34:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:47]Read from MH i2c: E2 [18:34:47]MH_I2C_Read... [18:34:47]Read from MH i2c: E2 62 00 [18:34:47]MH_I2C_Read... [18:34:47]Read from MH i2c: E2 62 00 E4 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1B CF 01 00 0E 04 04 00 B1 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 D7 [18:34:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1B CF 01 00 0E 04 04 00 B1 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 [18:34:47]wFMCommunicate OK [18:34:47]SAM_PROTO_GetFieldsCounters done [18:34:47]requested_item shift.num is exist - process it [18:34:47]requested_item shift.opened is exist - process it [18:34:47]req_shift_opened [18:34:47]FM_GetShiftState [18:34:47]SAM_PROTO_GetShiftState [18:34:47]wFMCommunicate request_size=4 [18:34:47]MH_SAM_APDU [18:34:47]CAPDU: 80 13 01 00 [18:34:47]Write to MH i2c: E2 08 00 E5 13 80 13 01 00 00 00 00 00 75 [18:34:47]Write i2c OK [18:34:47]MH_I2C_Read... [18:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:47]Read from MH i2c: E2 [18:34:47]MH_I2C_Read... [18:34:47]Read from MH i2c: E2 0E 00 [18:34:47]MH_I2C_Read... [18:34:47]Read from MH i2c: E2 0E 00 E5 13 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 4C [18:34:47]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:34:47]wFMCommunicate OK [18:34:47]SAM_PROTO_GetShiftState done [18:34:47]FM_GetShiftState done [18:34:47]req_shift_opened done [18:34:47]requested_item shift.open_date is exist - process it [18:34:47]req_shift_open_date [18:34:47]req_shift_open_date done [18:34:47]produce_requested_data done [18:34:47]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118555,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:34:47]process_action_free close_receipt [18:34:47]json_value_free [18:34:47]json_value_free done [18:34:47]process_json_proto returns [18:34:47]Send response to host [18:34:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118555,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:34:47]free response buf [18:34:47]execute_script done [18:34:47]execute_script returns [18:34:47]free content buf [18:34:47]Sock 7.Close socket [18:34:47]Sock 7.Thread stoped [18:34:51]OFD Sender: No OFD packet to send [18:34:56]OFD Sender: No OFD packet to send [18:35:01]OFD Sender: No OFD packet to send [18:35:06]OFD Sender: No OFD packet to send [18:35:11]OFD Sender: No OFD packet to send [18:35:16]OFD Sender: No OFD packet to send [18:35:21]OFD Sender: No OFD packet to send [18:35:26]OFD Sender: No OFD packet to send [18:35:31]OFD Sender: No OFD packet to send [18:35:36]OFD Sender: No OFD packet to send [18:35:41]OFD Sender: No OFD packet to send [18:35:46]OFD Sender: No OFD packet to send [18:35:51]OFD Sender: No OFD packet to send [18:35:56]OFD Sender: No OFD packet to send [18:36:01]OFD Sender: No OFD packet to send [18:36:06]OFD Sender: No OFD packet to send [18:36:11]OFD Sender: No OFD packet to send [18:36:16]OFD Sender: No OFD packet to send [18:36:21]OFD Sender: No OFD packet to send [18:36:26]OFD Sender: No OFD packet to send [18:36:31]OFD Sender: No OFD packet to send [18:36:36]OFD Sender: No OFD packet to send [18:36:41]OFD Sender: No OFD packet to send [18:36:46]OFD Sender: No OFD packet to send [18:36:51]OFD Sender: No OFD packet to send [18:36:56]OFD Sender: No OFD packet to send [18:37:01]OFD Sender: No OFD packet to send [18:37:06]OFD Sender: No OFD packet to send [18:37:11]OFD Sender: No OFD packet to send [18:37:16]OFD Sender: No OFD packet to send [18:37:21]OFD Sender: No OFD packet to send [18:37:26]OFD Sender: No OFD packet to send [18:37:31]OFD Sender: No OFD packet to send [18:37:36]OFD Sender: No OFD packet to send [18:37:41]OFD Sender: No OFD packet to send [18:37:46]OFD Sender: No OFD packet to send [18:37:51]OFD Sender: No OFD packet to send [18:37:56]OFD Sender: No OFD packet to send [18:38:01]OFD Sender: No OFD packet to send [18:38:06]OFD Sender: No OFD packet to send [18:38:11]OFD Sender: No OFD packet to send [18:38:16]OFD Sender: No OFD packet to send [18:38:21]OFD Sender: No OFD packet to send [18:38:26]OFD Sender: No OFD packet to send [18:38:31]OFD Sender: No OFD packet to send [18:38:36]OFD Sender: No OFD packet to send [18:38:41]OFD Sender: No OFD packet to send [18:38:46]OFD Sender: No OFD packet to send [18:38:51]OFD Sender: No OFD packet to send [18:38:56]OFD Sender: No OFD packet to send [18:39:01]OFD Sender: No OFD packet to send [18:39:06]OFD Sender: No OFD packet to send [18:39:11]OFD Sender: No OFD packet to send [18:39:16]OFD Sender: No OFD packet to send [18:39:21]OFD Sender: No OFD packet to send [18:39:26]OFD Sender: No OFD packet to send [18:39:31]OFD Sender: No OFD packet to send [18:39:36]OFD Sender: No OFD packet to send [18:39:41]OFD Sender: No OFD packet to send [18:39:46]OFD Sender: No OFD packet to send [18:39:51]OFD Sender: No OFD packet to send [18:39:56]OFD Sender: No OFD packet to send [18:39:59]accept exits with 9 [18:39:59]New connection [18:39:59]New thread 3067239780 created [18:39:59]Thread 3067383140 joined [18:39:59]Waiting for new connection... [18:39:59] Sock 9.Parse request [18:39:59]Sock 9.Check first char [18:39:59]Sock 9.First char is OK [18:39:59]request: POST /json_proto HTTP/1.0 [18:39:59]Method: POST [18:39:59]URL: /json_proto [18:39:59]Method is POST - this is cgi request [18:39:59]url: /json_proto [18:39:59]query_string will be loaded in cgi processing [18:39:59]execute_cgi json_proto POST (null) [18:39:59]execute_cgi path=json_proto method=POST [18:39:59]POST find Content-Length [18:39:59]Host: 172.17.45.7:8080 [18:39:59]Content-Length: 678 [18:39:59]Content-Type: application/json [18:39:59] [18:39:59]POST finish read [18:39:59]Found Content-Length = 678 [18:39:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:59]execute_script... [18:39: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)949442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:59]POST & json_proto [18:39:59]process_json_proto [18:39:59]json parsed OK: [18:39:59]protocol is kg_v1.0 [18:39:59]action value=close_receipt [18:39:59]process_action close_receipt [18:39:59]cmd_close_receipt [18:39:59]MH_GetDate [18:39:59]Write to MH i2c: F0 00 00 E6 13 E8 [18:39:59]Write i2c OK [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: F0 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: F0 09 00 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: F0 09 00 E6 13 00 81 90 A6 66 90 0F 3E 66 51 [18:39:59]GetLastDocTimeStamp 1722191685 [18:39:59]current date 1722192001 [18:39:59]FM_GetShiftState [18:39:59]SAM_PROTO_GetShiftState [18:39:59]wFMCommunicate request_size=4 [18:39:59]MH_SAM_APDU [18:39:59]CAPDU: 80 13 01 00 [18:39:59]Write to MH i2c: E2 08 00 E7 13 80 13 01 00 00 00 00 00 77 [18:39:59]Write i2c OK [18:39:59]MH_I2C_Read... [18:39:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:59]Read from MH i2c: E2 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 0E 00 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 0E 00 E7 13 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 4E [18:39:59]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:39:59]wFMCommunicate OK [18:39:59]SAM_PROTO_GetShiftState done [18:39:59]FM_GetShiftState done [18:39:59]opened in 1722125364 [18:39:59]opened+sec_in_day 1722211764 [18:39:59]quantity*price = 70037 [18:39:59]sum+1 = 70038 [18:39:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 225 28.07.2024 18:40 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118556 ФПД: 1233337994090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184001&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118556&fm=1233337994090&tin=02508201610067®Number=0000000000092660&sum=70000 [18:40:00]StoreToDocumentArchive [18:40:00]shift 433 fd 118556 [18:40:00]save to /storage/0433/doc_00118556 [18:40:00]save last doc name /storage/0433/doc_00118556 to /storage/kkm_last_doc_name [18:40:00]save OK [18:40:00]Clear old archive folders... [18:40:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:40:00]tlvbuf is 01E8C480 [18:40:00]SAM_PROTO_ClearQueue [18:40:00]wFMCommunicate request_size=4 [18:40:00]MH_SAM_APDU [18:40:00]CAPDU: 80 09 00 00 [18:40:00]Write to MH i2c: E2 08 00 F4 13 80 09 00 00 00 00 00 00 79 [18:40:00]Write i2c OK [18:40:00]MH_I2C_Read... [18:40:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:00]Read from MH i2c: E2 [18:40:00]MH_I2C_Read... [18:40:00]Read from MH i2c: E2 03 00 [18:40:00]MH_I2C_Read... [18:40:00]Read from MH i2c: E2 03 00 F4 13 00 90 00 7B [18:40:00]RAPDU: 90 00 [18:40:00]wFMCommunicate OK [18:40:00]SAM_PROTO_ClearQueue done [18:40:00]KKMCreateOFDPacket [18:40:00]OFDProtocolAddRootSTLVToBuf [18:40:00]FM_MakeSignedData [18:40:00]FM_MakeSignedData [18:40:00]SAM_PROTO_SignData [18:40:00]wFMCommunicate request_size=4 [18:40:00]MH_SAM_APDU [18:40:00]CAPDU: 80 0D 01 02 [18:40:00]Write to MH i2c: E2 08 00 F5 13 80 0D 01 02 00 00 00 00 81 [18:40:00]Write i2c OK [18:40:00]MH_I2C_Read... [18:40:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:00]Read from MH i2c: E2 [18:40:00]MH_I2C_Read... [18:40:00]Read from MH i2c: E2 03 00 [18:40:00]MH_I2C_Read... [18:40:00]Read from MH i2c: E2 03 00 F5 13 00 90 00 7C [18:40:00]RAPDU: 90 00 [18:40:00]wFMCommunicate OK [18:40:00]wFMCommunicate request_size=255 [18:40:00]MH_SAM_APDU [18:40: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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 81 90 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1C CF 01 00 35 04 06 00 01 [18:40:00]Write to MH i2c: E2 02 01 F6 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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 81 90 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1C CF 01 00 35 04 06 00 01 00 00 89 [18:40:00]Write i2c OK [18:40:00]MH_I2C_Read... [18:40:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:00]Read from MH i2c: E2 [18:40:00]MH_I2C_Read... [18:40:00]Read from MH i2c: E2 03 00 [18:40:00]MH_I2C_Read... [18:40:00]Read from MH i2c: E2 03 00 F6 13 00 90 00 7D [18:40:00]RAPDU: 90 00 [18:40:00]wFMCommunicate OK [18:40:00]wFMCommunicate request_size=10 [18:40:00]MH_SAM_APDU [18:40:00]CAPDU: 80 0D 02 02 05 1F 28 AC 4B 6A [18:40:00]Write to MH i2c: E2 0D 00 F7 13 80 0D 02 02 05 00 1F 28 AC 4B 6A 00 00 36 [18:40:00]Write i2c OK [18:40:00]MH_I2C_Read... [18:40:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:01]Read from MH i2c: E2 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 03 00 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 03 00 F7 13 00 90 00 7E [18:40:01]RAPDU: 90 00 [18:40:01]wFMCommunicate OK [18:40:01]wFMCommunicate request_size=4 [18:40:01]MH_SAM_APDU [18:40:01]CAPDU: 80 0D 03 02 [18:40:01]Write to MH i2c: E2 08 00 F8 13 80 0D 03 02 00 00 00 00 86 [18:40:01]Write i2c OK [18:40:01]MH_I2C_Read... [18:40:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:40:01]Read from MH i2c: E2 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 0B 00 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 0B 00 F8 13 00 17 E0 70 E5 07 58 AF 2D 90 00 0E [18:40:01]RAPDU: 17 E0 70 E5 07 58 AF 2D 90 00 [18:40:01]wFMCommunicate OK [18:40:01]SAM_PROTO_SignData done [18:40:01]FM_MakeSignedData done [18:40:01]CreateOFDProtocolMessage [18:40:01]wFMCommunicate request_size=4 [18:40:01]MH_SAM_APDU [18:40:01]CAPDU: 80 11 00 00 [18:40:01]Write to MH i2c: E2 08 00 F9 13 80 11 00 00 00 00 00 00 86 [18:40:01]Write i2c OK [18:40:01]MH_I2C_Read... [18:40:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:01]Read from MH i2c: E2 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 17 00 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 17 00 F9 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E1 [18:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:40:01]wFMCommunicate OK [18:40:01]CreateOFDProtocolMessage done [18:40:01]OFDSenderStorePacket 118556 [18:40:01]StoreOFDPacket docnum=118556 [18:40:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 35 FE 07 01 7B 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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 81 90 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1C CF 01 00 35 04 06 00 01 1F 28 AC 4B 6A 17 E0 70 E5 07 58 AF 2D [18:40:01]CheckFolder [18:40:01]dirname=/storage/ofd_packets [18:40:01]CheckFolder done [18:40:01]ProducePacketName [18:40:01]name=ofd_packets/00118556 [18:40:01]NVStorageSaveData ofd_packets/00118556 [18:40:01]File name is /storage/ofd_packets/00118556 [18:40:01]Write 301 bytes [18:40:01]NVStorageSaveData done [18:40:01]OFDSenderStorePacket done [18:40:01]KKMCreateOFDPacket done [18:40:01]NVStorageSaveData kkm_last_timestamp [18:40:01]File name is /storage/kkm_last_timestamp [18:40:01]Write 4 bytes [18:40:01]NVStorageSaveData done [18:40:01]ExternCall_PrintAddStr [18:40:01]wPrintStart [18:40:01]Write to MH i2c: 01 00 00 FA 13 0D [18:40:01]Write i2c OK [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: 01 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: 01 07 00 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: 01 07 00 FA 13 00 00 00 00 00 FF 0F 22 [18:40:01]RasterBufferAndPrint [18:40:01]line Счет N : (1)949442 [18:40:01]line ИНН: 02508201610067 [18:40:01]line Контрольно-Кассовый Чек [18:40:01]line ПРОДАЖА [18:40:01]line ТРК (МРК, ГНК) : 41 [18:40:01]line Товар: 2710124130 [18:40:01]line Аи-92-К-4 [18:40:01]line 10.330 * 67.80 [18:40:01]line = 700.37 [18:40:01]line НДС 12% НСП 1% [18:40:01]line > о реализуемом товаре [18:40:01]line ОКРУГЛЕНИЕ: -0.37 [18:40:01]line ИТОГО: 700.00 [18:40:01]line Внесено: 700.00 [18:40:01]line СДАЧА: 0.00 [18:40:01]line НСП 1% : 6.20 [18:40:01]line НДС 12% : 74.38 [18:40:01]line Наличными: 700.00 [18:40:01]line Безнал.: 0.00 [18:40:01]line Место: АЗС № 134 "Партнер Нефть" [18:40:01]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:40:01]line СНО: Общий режим [18:40:01]line Чек 225 28.07.2024 18:40 [18:40:01]line Смена: 433 ФФД: 1.0 [18:40:01]line ЗНМ: 0300000044 [18:40:01]line РНМ: 0000000000092660 [18:40:01]line Версия ККМ: 001 [18:40:01]line ФМ: 0000000000874939 [18:40:01]line ФД: 118556 [18:40:01]line ФПД: 1233337994090 [18:40:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184001&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118556&fm=1233337994090&tin=02508201610067®Number=0000000000092660&sum=70000 [18:40:01]OFD Sender: Processing packet 118556 [packets to send 86, broken 85] [18:40:01]ProducePacketName [18:40:01]name=ofd_packets/00118556 [18:40:01]OFD Sender: To server: pG, [18:40:01]CommunicateWithHost lk.salyk.kg:30040 [18:40:01]ConnectInit lk.salyk.kg [18:40:01]written 0, free lines is 4095 [18:40:01]Connected sock=10 [18:40:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 35 FE 07 01 7B 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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 81 90 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1C CF 01 00 35 04 06 00 01 1F 28 AC 4B 6A 17 E0 70 E5 07 58 AF 2D [18:40:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D9 35 47 00 52 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1C CF 01 00 F4 03 04 00 10 3E A6 66 B6 04 01 00 00 57 C4 D8 0C 6B BB C1 F3 [18:40:01]CommunicateWithHost err = 0 [18:40:01]CheckOFDResponse [18:40:01]1017 (14) - 77093643461234 [18:40:01]1041 (16) - 0000000000874939 [18:40:01]1040 (4) - 118556 [18:40:01]1012 (4) - 28.07.2024 12:48 [18:40:01]1206 (1) - 0 [18:40:01]OFD Sender: Remove packet 118556 [18:40:01]ProducePacketName [18:40:01]name=ofd_packets/00118556 [18:40:01]NVStorageDeleteData [18:40:01]Write to MH i2c: 01 00 00 24 14 38 [18:40:01]Write i2c OK [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: 01 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: 01 07 00 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: 01 07 00 24 14 00 00 00 00 00 CF 0C 1A [18:40:01]RasterBufferAndPrint [18:40:01]line [18:40:01]line [18:40:01]line [18:40:01]line [18:40:01]line [18:40:01]written 0, free lines is 3286 [18:40:01]MH_Cut [18:40:01]Write to MH i2c: D1 01 00 2B 14 01 11 [18:40:01]Write i2c OK [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: D1 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: D1 01 00 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: D1 01 00 2B 14 00 10 [18:40:01]Write to MH i2c: 01 00 00 2C 14 40 [18:40:01]Write i2c OK [18:40:01]MH_I2C_Read... [18:40:02]OFD Sender: No OFD packet to send [18:40:02]*** Cut start [18:40:02]*** Partial cut [18:40:02]*** CUTSNS_PIN = 1 [18:40:02]*** CUTSNS_PIN = 0 [18:40:02]*** Brake cut motor [18:40:03]Read from MH i2c: 01 [18:40:03]MH_I2C_Read... [18:40:03]*** Stop cut motor [18:40:03]*** Cut end [18:40:03]Read from MH i2c: 01 07 00 [18:40:03]MH_I2C_Read... [18:40:03]Read from MH i2c: 01 07 00 2C 14 00 00 00 00 00 FF 0F 55 [18:40:03]process_action close_receipt done [18:40:03]requested_data is exist [18:40:03]produce_requested_data [18:40:03]requested_item fm.sn is exist - process it [18:40:03]wFMCommunicate request_size=4 [18:40:03]MH_SAM_APDU [18:40:03]CAPDU: 80 11 00 00 [18:40:03]Write to MH i2c: E2 08 00 2D 14 80 11 00 00 00 00 00 00 BB [18:40:03]Write i2c OK [18:40:03]MH_I2C_Read... [18:40:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:03]Read from MH i2c: E2 [18:40:03]MH_I2C_Read... [18:40:03]Read from MH i2c: E2 17 00 [18:40:03]MH_I2C_Read... [18:40:03]Read from MH i2c: E2 17 00 2D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 16 [18:40:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:40:03]wFMCommunicate OK [18:40:03]requested_item fd.num is exist - process it [18:40:03]SAM_PROTO_GetFieldsCounters [18:40:03]wFMCommunicate request_size=4 [18:40:03]MH_SAM_APDU [18:40:03]CAPDU: 80 13 00 00 [18:40:03]Write to MH i2c: E2 08 00 2E 14 80 13 00 00 00 00 00 00 BE [18:40:03]Write i2c OK [18:40:03]MH_I2C_Read... [18:40:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:03]Read from MH i2c: E2 [18:40:03]MH_I2C_Read... [18:40:03]Read from MH i2c: E2 62 00 [18:40:03]MH_I2C_Read... [18:40:03]Read from MH i2c: E2 62 00 2E 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1C CF 01 00 0E 04 04 00 B1 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 26 [18:40:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1C CF 01 00 0E 04 04 00 B1 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 [18:40:03]wFMCommunicate OK [18:40:03]SAM_PROTO_GetFieldsCounters done [18:40:03]requested_item shift.num is exist - process it [18:40:03]requested_item shift.opened is exist - process it [18:40:03]req_shift_opened [18:40:03]FM_GetShiftState [18:40:03]SAM_PROTO_GetShiftState [18:40:03]wFMCommunicate request_size=4 [18:40:03]MH_SAM_APDU [18:40:03]CAPDU: 80 13 01 00 [18:40:03]Write to MH i2c: E2 08 00 2F 14 80 13 01 00 00 00 00 00 C0 [18:40:03]Write i2c OK [18:40:03]MH_I2C_Read... [18:40:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:03]Read from MH i2c: E2 [18:40:03]MH_I2C_Read... [18:40:03]Read from MH i2c: E2 0E 00 [18:40:03]MH_I2C_Read... [18:40:03]Read from MH i2c: E2 0E 00 2F 14 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 97 [18:40:03]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:40:03]wFMCommunicate OK [18:40:03]SAM_PROTO_GetShiftState done [18:40:03]FM_GetShiftState done [18:40:03]req_shift_opened done [18:40:03]requested_item shift.open_date is exist - process it [18:40:03]req_shift_open_date [18:40:03]req_shift_open_date done [18:40:03]produce_requested_data done [18:40:03]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118556,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:40:03]process_action_free close_receipt [18:40:03]json_value_free [18:40:03]json_value_free done [18:40:03]process_json_proto returns [18:40:03]Send response to host [18:40:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118556,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:40:03]free response buf [18:40:03]execute_script done [18:40:03]execute_script returns [18:40:03]free content buf [18:40:03]Sock 9.Close socket [18:40:03]Sock 9.Thread stoped [18:40:07]OFD Sender: No OFD packet to send [18:40:12]OFD Sender: No OFD packet to send [18:40:17]OFD Sender: No OFD packet to send [18:40:22]OFD Sender: No OFD packet to send [18:40:27]OFD Sender: No OFD packet to send [18:40:32]OFD Sender: No OFD packet to send [18:40:37]OFD Sender: No OFD packet to send [18:40:42]OFD Sender: No OFD packet to send [18:40:47]OFD Sender: No OFD packet to send [18:40:52]OFD Sender: No OFD packet to send [18:40:56]accept exits with 7 [18:40:56]New connection [18:40:56]New thread 3067383140 created [18:40:56]Thread 3067239780 joined [18:40:56]Waiting for new connection... [18:40:56] Sock 7.Parse request [18:40:56]Sock 7.Check first char [18:40:56]Sock 7.First char is OK [18:40:56]request: POST /json_proto HTTP/1.0 [18:40:56]Method: POST [18:40:56]URL: /json_proto [18:40:56]Method is POST - this is cgi request [18:40:56]url: /json_proto [18:40:56]query_string will be loaded in cgi processing [18:40:56]execute_cgi json_proto POST (null) [18:40:56]execute_cgi path=json_proto method=POST [18:40:56]POST find Content-Length [18:40:56]Host: 172.17.45.7:8080 [18:40:56]Content-Length: 682 [18:40:56]Content-Type: application/json [18:40:56] [18:40:56]POST finish read [18:40:56]Found Content-Length = 682 [18:40:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:56]execute_script... [18:40: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)949444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:56]POST & json_proto [18:40:56]process_json_proto [18:40:56]json parsed OK: [18:40:56]protocol is kg_v1.0 [18:40:56]action value=close_receipt [18:40:56]process_action close_receipt [18:40:56]cmd_close_receipt [18:40:56]MH_GetDate [18:40:56]Write to MH i2c: F0 00 00 30 14 33 [18:40:56]Write i2c OK [18:40:56]MH_I2C_Read... [18:40:56]Read from MH i2c: F0 [18:40:56]MH_I2C_Read... [18:40:56]Read from MH i2c: F0 09 00 [18:40:56]MH_I2C_Read... [18:40:56]Read from MH i2c: F0 09 00 30 14 00 BA 90 A6 66 90 0F 3E 66 D5 [18:40:56]GetLastDocTimeStamp 1722192001 [18:40:56]current date 1722192058 [18:40:56]FM_GetShiftState [18:40:56]SAM_PROTO_GetShiftState [18:40:56]wFMCommunicate request_size=4 [18:40:56]MH_SAM_APDU [18:40:56]CAPDU: 80 13 01 00 [18:40:56]Write to MH i2c: E2 08 00 31 14 80 13 01 00 00 00 00 00 C2 [18:40:56]Write i2c OK [18:40:56]MH_I2C_Read... [18:40:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:56]Read from MH i2c: E2 [18:40:56]MH_I2C_Read... [18:40:56]Read from MH i2c: E2 0E 00 [18:40:56]MH_I2C_Read... [18:40:56]Read from MH i2c: E2 0E 00 31 14 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 99 [18:40:56]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:40:56]wFMCommunicate OK [18:40:56]SAM_PROTO_GetShiftState done [18:40:56]FM_GetShiftState done [18:40:56]opened in 1722125364 [18:40:56]opened+sec_in_day 1722211764 [18:40:56]quantity*price = 100005 [18:40:56]sum+1 = 100006 [18:40:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 226 28.07.2024 18:40 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118557 ФПД: 257707169620194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184058&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118557&fm=257707169620194&tin=02508201610067®Number=0000000000092660&sum=100000 [18:40:57]StoreToDocumentArchive [18:40:57]shift 433 fd 118557 [18:40:57]save to /storage/0433/doc_00118557 [18:40:57]save last doc name /storage/0433/doc_00118557 to /storage/kkm_last_doc_name [18:40:57]save OK [18:40:57]Clear old archive folders... [18:40:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:40:57]tlvbuf is 01E4DBA0 [18:40:57]SAM_PROTO_ClearQueue [18:40:57]wFMCommunicate request_size=4 [18:40:57]MH_SAM_APDU [18:40:57]CAPDU: 80 09 00 00 [18:40:57]Write to MH i2c: E2 08 00 3E 14 80 09 00 00 00 00 00 00 C4 [18:40:57]Write i2c OK [18:40:57]MH_I2C_Read... [18:40:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:57]Read from MH i2c: E2 [18:40:57]MH_I2C_Read... [18:40:57]Read from MH i2c: E2 03 00 [18:40:57]MH_I2C_Read... [18:40:57]Read from MH i2c: E2 03 00 3E 14 00 90 00 C6 [18:40:57]RAPDU: 90 00 [18:40:57]wFMCommunicate OK [18:40:57]SAM_PROTO_ClearQueue done [18:40:57]KKMCreateOFDPacket [18:40:57]OFDProtocolAddRootSTLVToBuf [18:40:57]FM_MakeSignedData [18:40:57]FM_MakeSignedData [18:40:57]SAM_PROTO_SignData [18:40:57]wFMCommunicate request_size=4 [18:40:57]MH_SAM_APDU [18:40:57]CAPDU: 80 0D 01 02 [18:40:57]Write to MH i2c: E2 08 00 3F 14 80 0D 01 02 00 00 00 00 CC [18:40:57]Write i2c OK [18:40:57]MH_I2C_Read... [18:40:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:57]Read from MH i2c: E2 [18:40:57]MH_I2C_Read... [18:40:57]Read from MH i2c: E2 03 00 [18:40:57]MH_I2C_Read... [18:40:57]Read from MH i2c: E2 03 00 3F 14 00 90 00 C7 [18:40:57]RAPDU: 90 00 [18:40:57]wFMCommunicate OK [18:40:57]wFMCommunicate request_size=255 [18:40:57]MH_SAM_APDU [18:40: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 BA 90 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1D CF 01 00 35 04 06 00 EA [18:40:57]Write to MH i2c: E2 02 01 40 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 BA 90 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1D CF 01 00 35 04 06 00 EA 00 00 A0 [18:40:57]Write i2c OK [18:40:57]MH_I2C_Read... [18:40:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:58]Read from MH i2c: E2 [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: E2 03 00 [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: E2 03 00 40 14 00 90 00 C8 [18:40:58]RAPDU: 90 00 [18:40:58]wFMCommunicate OK [18:40:58]wFMCommunicate request_size=10 [18:40:58]MH_SAM_APDU [18:40:58]CAPDU: 80 0D 02 02 05 62 20 4D 20 E2 [18:40:58]Write to MH i2c: E2 0D 00 41 14 80 0D 02 02 05 00 62 20 4D 20 E2 00 00 AA [18:40:58]Write i2c OK [18:40:58]MH_I2C_Read... [18:40:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:58]Read from MH i2c: E2 [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: E2 03 00 [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: E2 03 00 41 14 00 90 00 C9 [18:40:58]RAPDU: 90 00 [18:40:58]wFMCommunicate OK [18:40:58]wFMCommunicate request_size=4 [18:40:58]MH_SAM_APDU [18:40:58]CAPDU: 80 0D 03 02 [18:40:58]Write to MH i2c: E2 08 00 42 14 80 0D 03 02 00 00 00 00 D1 [18:40:58]Write i2c OK [18:40:58]MH_I2C_Read... [18:40:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:40:58]Read from MH i2c: E2 [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: E2 0B 00 [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: E2 0B 00 42 14 00 00 EE AD 11 8F 32 39 7B 90 00 F3 [18:40:58]RAPDU: 00 EE AD 11 8F 32 39 7B 90 00 [18:40:58]wFMCommunicate OK [18:40:58]SAM_PROTO_SignData done [18:40:58]FM_MakeSignedData done [18:40:58]CreateOFDProtocolMessage [18:40:58]wFMCommunicate request_size=4 [18:40:58]MH_SAM_APDU [18:40:58]CAPDU: 80 11 00 00 [18:40:58]Write to MH i2c: E2 08 00 43 14 80 11 00 00 00 00 00 00 D1 [18:40:58]Write i2c OK [18:40:58]MH_I2C_Read... [18:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:58]Read from MH i2c: E2 [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: E2 17 00 [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: E2 17 00 43 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2C [18:40:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:40:58]wFMCommunicate OK [18:40:58]CreateOFDProtocolMessage done [18:40:58]OFDSenderStorePacket 118557 [18:40:58]StoreOFDPacket docnum=118557 [18:40:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 34 D7 07 01 9B 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 BA 90 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1D CF 01 00 35 04 06 00 EA 62 20 4D 20 E2 00 EE AD 11 8F 32 39 7B [18:40:58]CheckFolder [18:40:58]dirname=/storage/ofd_packets [18:40:58]CheckFolder done [18:40:58]ProducePacketName [18:40:58]name=ofd_packets/00118557 [18:40:58]NVStorageSaveData ofd_packets/00118557 [18:40:58]File name is /storage/ofd_packets/00118557 [18:40:58]Write 301 bytes [18:40:58]NVStorageSaveData done [18:40:58]OFDSenderStorePacket done [18:40:58]KKMCreateOFDPacket done [18:40:58]NVStorageSaveData kkm_last_timestamp [18:40:58]File name is /storage/kkm_last_timestamp [18:40:58]Write 4 bytes [18:40:58]NVStorageSaveData done [18:40:58]ExternCall_PrintAddStr [18:40:58]wPrintStart [18:40:58]Write to MH i2c: 01 00 00 44 14 58 [18:40:58]Write i2c OK [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: 01 [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: 01 07 00 [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: 01 07 00 44 14 00 00 00 00 00 FF 0F 6D [18:40:58]RasterBufferAndPrint [18:40:58]line Счет N : (1)949444 [18:40:58]line ИНН: 02508201610067 [18:40:58]line Контрольно-Кассовый Чек [18:40:58]line ПРОДАЖА [18:40:58]line ТРК (МРК, ГНК) : 31 [18:40:58]line Товар: 2710124130 [18:40:58]line Аи-92-К-4 [18:40:58]line 14.750 * 67.80 [18:40:58]line = 1000.05 [18:40:58]line НДС 12% НСП 1% [18:40:58]line > о реализуемом товаре [18:40:58]line ОКРУГЛЕНИЕ: -0.05 [18:40:58]line ИТОГО: 1000.00 [18:40:58]line Внесено: 1000.00 [18:40:58]line СДАЧА: 0.00 [18:40:58]line НСП 1% : 8.85 [18:40:58]line НДС 12% : 106.20 [18:40:58]line Наличными: 1000.00 [18:40:58]line Безнал.: 0.00 [18:40:58]line Место: АЗС № 134 "Партнер Нефть" [18:40:58]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:40:58]line СНО: Общий режим [18:40:58]line Чек 226 28.07.2024 18:40 [18:40:58]line Смена: 433 ФФД: 1.0 [18:40:58]line ЗНМ: 0300000044 [18:40:58]line РНМ: 0000000000092660 [18:40:58]line Версия ККМ: 001 [18:40:58]line ФМ: 0000000000874939 [18:40:58]line ФД: 118557 [18:40:58]line ФПД: 257707169620194 [18:40:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184058&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118557&fm=257707169620194&tin=02508201610067®Number=0000000000092660&sum=100000 [18:40:58]OFD Sender: Processing packet 118557 [packets to send 86, broken 85] [18:40:58]ProducePacketName [18:40:58]name=ofd_packets/00118557 [18:40:58]OFD Sender: To server: pG, [18:40:58]CommunicateWithHost lk.salyk.kg:30040 [18:40:58]ConnectInit lk.salyk.kg [18:40:58]written 0, free lines is 4095 [18:40:58]Connected sock=10 [18:40:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 34 D7 07 01 9B 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 BA 90 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1D CF 01 00 35 04 06 00 EA 62 20 4D 20 E2 00 EE AD 11 8F 32 39 7B [18:40:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B7 10 47 00 88 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1D CF 01 00 F4 03 04 00 4A 3E A6 66 B6 04 01 00 00 8D D8 D0 89 B2 5B D5 D0 [18:40:58]CommunicateWithHost err = 0 [18:40:58]CheckOFDResponse [18:40:58]1017 (14) - 77093643461234 [18:40:58]1041 (16) - 0000000000874939 [18:40:58]1040 (4) - 118557 [18:40:58]1012 (4) - 28.07.2024 12:49 [18:40:58]1206 (1) - 0 [18:40:58]OFD Sender: Remove packet 118557 [18:40:58]ProducePacketName [18:40:58]name=ofd_packets/00118557 [18:40:58]NVStorageDeleteData [18:40:59]Write to MH i2c: 01 00 00 6E 14 82 [18:40:59]Write i2c OK [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: 01 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: 01 07 00 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: 01 07 00 6E 14 00 00 00 00 00 E7 0C 7C [18:40:59]RasterBufferAndPrint [18:40:59]line [18:40:59]line [18:40:59]line [18:40:59]line [18:40:59]line [18:40:59]written 0, free lines is 3308 [18:40:59]MH_Cut [18:40:59]Write to MH i2c: D1 01 00 75 14 01 5B [18:40:59]Write i2c OK [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: D1 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: D1 01 00 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: D1 01 00 75 14 00 5A [18:40:59]Write to MH i2c: 01 00 00 76 14 8A [18:40:59]Write i2c OK [18:40:59]MH_I2C_Read... [18:40:59]OFD Sender: No OFD packet to send [18:40:59]*** Cut start [18:40:59]*** Partial cut [18:40:59]*** CUTSNS_PIN = 1 [18:40:59]*** CUTSNS_PIN = 0 [18:41:00]*** Brake cut motor [18:41:00]Read from MH i2c: 01 [18:41:00]MH_I2C_Read... [18:41:00]*** Stop cut motor [18:41:00]*** Cut end [18:41:00]Read from MH i2c: 01 07 00 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: 01 07 00 76 14 00 00 00 00 00 FF 0F 9F [18:41:00]process_action close_receipt done [18:41:00]requested_data is exist [18:41:00]produce_requested_data [18:41:00]requested_item fm.sn is exist - process it [18:41:00]wFMCommunicate request_size=4 [18:41:00]MH_SAM_APDU [18:41:00]CAPDU: 80 11 00 00 [18:41:00]Write to MH i2c: E2 08 00 77 14 80 11 00 00 00 00 00 00 05 [18:41:00]Write i2c OK [18:41:00]MH_I2C_Read... [18:41:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:00]Read from MH i2c: E2 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: E2 17 00 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: E2 17 00 77 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 60 [18:41:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:41:00]wFMCommunicate OK [18:41:00]requested_item fd.num is exist - process it [18:41:00]SAM_PROTO_GetFieldsCounters [18:41:00]wFMCommunicate request_size=4 [18:41:00]MH_SAM_APDU [18:41:00]CAPDU: 80 13 00 00 [18:41:00]Write to MH i2c: E2 08 00 78 14 80 13 00 00 00 00 00 00 08 [18:41:00]Write i2c OK [18:41:00]MH_I2C_Read... [18:41:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:00]Read from MH i2c: E2 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: E2 62 00 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: E2 62 00 78 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1D CF 01 00 0E 04 04 00 B1 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 74 [18:41:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1D CF 01 00 0E 04 04 00 B1 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 [18:41:00]wFMCommunicate OK [18:41:00]SAM_PROTO_GetFieldsCounters done [18:41:00]requested_item shift.num is exist - process it [18:41:00]requested_item shift.opened is exist - process it [18:41:00]req_shift_opened [18:41:00]FM_GetShiftState [18:41:00]SAM_PROTO_GetShiftState [18:41:00]wFMCommunicate request_size=4 [18:41:00]MH_SAM_APDU [18:41:00]CAPDU: 80 13 01 00 [18:41:00]Write to MH i2c: E2 08 00 79 14 80 13 01 00 00 00 00 00 0A [18:41:00]Write i2c OK [18:41:00]MH_I2C_Read... [18:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:00]Read from MH i2c: E2 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: E2 0E 00 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: E2 0E 00 79 14 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 E1 [18:41:00]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:41:00]wFMCommunicate OK [18:41:00]SAM_PROTO_GetShiftState done [18:41:00]FM_GetShiftState done [18:41:00]req_shift_opened done [18:41:00]requested_item shift.open_date is exist - process it [18:41:00]req_shift_open_date [18:41:00]req_shift_open_date done [18:41:00]produce_requested_data done [18:41:00]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118557,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:41:00]process_action_free close_receipt [18:41:00]json_value_free [18:41:00]json_value_free done [18:41:00]process_json_proto returns [18:41:00]Send response to host [18:41:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118557,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:41:00]free response buf [18:41:00]execute_script done [18:41:00]execute_script returns [18:41:00]free content buf [18:41:00]Sock 7.Close socket [18:41:00]Sock 7.Thread stoped [18:41:04]OFD Sender: No OFD packet to send [18:41:09]OFD Sender: No OFD packet to send [18:41:14]OFD Sender: No OFD packet to send [18:41:19]OFD Sender: No OFD packet to send [18:41:24]OFD Sender: No OFD packet to send [18:41:29]OFD Sender: No OFD packet to send [18:41:34]OFD Sender: No OFD packet to send [18:41:39]OFD Sender: No OFD packet to send [18:41:44]OFD Sender: No OFD packet to send [18:41:49]OFD Sender: No OFD packet to send [18:41:54]OFD Sender: No OFD packet to send [18:41:59]OFD Sender: No OFD packet to send [18:42:04]OFD Sender: No OFD packet to send [18:42:08]accept exits with 9 [18:42:08]New connection [18:42:08]New thread 3067239780 created [18:42:08]Thread 3067383140 joined [18:42:08]Waiting for new connection... [18:42:08] Sock 9.Parse request [18:42:08]Sock 9.Check first char [18:42:08]Sock 9.First char is OK [18:42:08]request: POST /json_proto HTTP/1.0 [18:42:08]Method: POST [18:42:08]URL: /json_proto [18:42:08]Method is POST - this is cgi request [18:42:08]url: /json_proto [18:42:08]query_string will be loaded in cgi processing [18:42:08]execute_cgi json_proto POST (null) [18:42:08]execute_cgi path=json_proto method=POST [18:42:08]POST find Content-Length [18:42:08]Host: 172.17.45.7:8080 [18:42:08]Content-Length: 819 [18:42:08]Content-Type: application/json [18:42:08] [18:42:08]POST finish read [18:42:08]Found Content-Length = 819 [18:42:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:08]execute_script... [18: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)949443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:08]POST & json_proto [18:42:08]process_json_proto [18:42:08]json parsed OK: [18:42:08]protocol is kg_v1.0 [18:42:08]action value=close_receipt [18:42:08]process_action close_receipt [18:42:08]cmd_close_receipt [18:42:08]MH_GetDate [18:42:08]Write to MH i2c: F0 00 00 7A 14 7D [18:42:08]Write i2c OK [18:42:08]MH_I2C_Read... [18:42:08]Read from MH i2c: F0 [18:42:08]MH_I2C_Read... [18:42:08]Read from MH i2c: F0 09 00 [18:42:08]MH_I2C_Read... [18:42:08]Read from MH i2c: F0 09 00 7A 14 00 01 91 A6 66 90 0F 3E 66 67 [18:42:08]GetLastDocTimeStamp 1722192058 [18:42:08]current date 1722192129 [18:42:08]FM_GetShiftState [18:42:08]SAM_PROTO_GetShiftState [18:42:08]wFMCommunicate request_size=4 [18:42:08]MH_SAM_APDU [18:42:08]CAPDU: 80 13 01 00 [18:42:08]Write to MH i2c: E2 08 00 7B 14 80 13 01 00 00 00 00 00 0C [18:42:08]Write i2c OK [18:42:08]MH_I2C_Read... [18:42:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:08]Read from MH i2c: E2 [18:42:08]MH_I2C_Read... [18:42:08]Read from MH i2c: E2 0E 00 [18:42:08]MH_I2C_Read... [18:42:08]Read from MH i2c: E2 0E 00 7B 14 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 E3 [18:42:08]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:42:08]wFMCommunicate OK [18:42:08]SAM_PROTO_GetShiftState done [18:42:08]FM_GetShiftState done [18:42:08]opened in 1722125364 [18:42:08]opened+sec_in_day 1722211764 [18:42:08]quantity*price = 300075 [18:42:08]sum+1 = 300077 [18:42:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 227 28.07.2024 18:42 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118558 ФПД: 270198847012185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184209&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118558&fm=270198847012185&tin=02508201610067®Number=0000000000092660&sum=300000 [18:42:09]StoreToDocumentArchive [18:42:09]shift 433 fd 118558 [18:42:09]save to /storage/0433/doc_00118558 [18:42:09]save last doc name /storage/0433/doc_00118558 to /storage/kkm_last_doc_name [18:42:09]save OK [18:42:09]Clear old archive folders... [18:42:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:42:09]tlvbuf is 01EEEF20 [18:42:09]SAM_PROTO_ClearQueue [18:42:09]wFMCommunicate request_size=4 [18:42:09]MH_SAM_APDU [18:42:09]CAPDU: 80 09 00 00 [18:42:09]Write to MH i2c: E2 08 00 88 14 80 09 00 00 00 00 00 00 0E [18:42:09]Write i2c OK [18:42:09]MH_I2C_Read... [18:42:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:09]Read from MH i2c: E2 [18:42:09]MH_I2C_Read... [18:42:09]Read from MH i2c: E2 03 00 [18:42:09]MH_I2C_Read... [18:42:09]Read from MH i2c: E2 03 00 88 14 00 90 00 10 [18:42:09]RAPDU: 90 00 [18:42:09]wFMCommunicate OK [18:42:09]SAM_PROTO_ClearQueue done [18:42:09]KKMCreateOFDPacket [18:42:09]OFDProtocolAddRootSTLVToBuf [18:42:09]FM_MakeSignedData [18:42:09]FM_MakeSignedData [18:42:09]SAM_PROTO_SignData [18:42:09]wFMCommunicate request_size=4 [18:42:09]MH_SAM_APDU [18:42:09]CAPDU: 80 0D 01 02 [18:42:09]Write to MH i2c: E2 08 00 89 14 80 0D 01 02 00 00 00 00 16 [18:42:09]Write i2c OK [18:42:09]MH_I2C_Read... [18:42:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:09]Read from MH i2c: E2 [18:42:09]MH_I2C_Read... [18:42:09]Read from MH i2c: E2 03 00 [18:42:09]MH_I2C_Read... [18:42:09]Read from MH i2c: E2 03 00 89 14 00 90 00 11 [18:42:09]RAPDU: 90 00 [18:42:09]wFMCommunicate OK [18:42:09]wFMCommunicate request_size=255 [18:42:09]MH_SAM_APDU [18:42:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 01 91 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1E CF 01 00 35 04 06 00 F5 BE 92 4B [18:42:09]Write to MH i2c: E2 02 01 8A 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 01 91 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1E CF 01 00 35 04 06 00 F5 BE 92 4B 00 00 8E [18:42:09]Write i2c OK [18:42:09]MH_I2C_Read... [18:42:09]OFD Sender: No OFD packet to send [18:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:09]Read from MH i2c: E2 [18:42:09]MH_I2C_Read... [18:42:09]Read from MH i2c: E2 03 00 [18:42:09]MH_I2C_Read... [18:42:09]Read from MH i2c: E2 03 00 8A 14 00 90 00 12 [18:42:09]RAPDU: 90 00 [18:42:09]wFMCommunicate OK [18:42:09]wFMCommunicate request_size=7 [18:42:09]MH_SAM_APDU [18:42:09]CAPDU: 80 0D 02 02 02 7D 59 [18:42:09]Write to MH i2c: E2 0A 00 8B 14 80 0D 02 02 02 00 7D 59 00 00 F3 [18:42:09]Write i2c OK [18:42:09]MH_I2C_Read... [18:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:09]Read from MH i2c: E2 [18:42:09]MH_I2C_Read... [18:42:09]Read from MH i2c: E2 03 00 [18:42:09]MH_I2C_Read... [18:42:09]Read from MH i2c: E2 03 00 8B 14 00 90 00 13 [18:42:09]RAPDU: 90 00 [18:42:09]wFMCommunicate OK [18:42:09]wFMCommunicate request_size=4 [18:42:09]MH_SAM_APDU [18:42:09]CAPDU: 80 0D 03 02 [18:42:09]Write to MH i2c: E2 08 00 8C 14 80 0D 03 02 00 00 00 00 1B [18:42:09]Write i2c OK [18:42:09]MH_I2C_Read... [18:42:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:09]Read from MH i2c: E2 [18:42:09]MH_I2C_Read... [18:42:09]Read from MH i2c: E2 0B 00 [18:42:09]MH_I2C_Read... [18:42:09]Read from MH i2c: E2 0B 00 8C 14 00 8F 95 43 E0 FF 31 1E AD 90 00 5E [18:42:09]RAPDU: 8F 95 43 E0 FF 31 1E AD 90 00 [18:42:09]wFMCommunicate OK [18:42:09]SAM_PROTO_SignData done [18:42:09]FM_MakeSignedData done [18:42:09]CreateOFDProtocolMessage [18:42:09]wFMCommunicate request_size=4 [18:42:09]MH_SAM_APDU [18:42:09]CAPDU: 80 11 00 00 [18:42:09]Write to MH i2c: E2 08 00 8D 14 80 11 00 00 00 00 00 00 1B [18:42:09]Write i2c OK [18:42:09]MH_I2C_Read... [18:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:09]Read from MH i2c: E2 [18:42:09]MH_I2C_Read... [18:42:09]Read from MH i2c: E2 17 00 [18:42:09]MH_I2C_Read... [18:42:09]Read from MH i2c: E2 17 00 8D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 76 [18:42:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:42:09]wFMCommunicate OK [18:42:09]CreateOFDProtocolMessage done [18:42:09]OFDSenderStorePacket 118558 [18:42:09]StoreOFDPacket docnum=118558 [18:42:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 76 6C 04 01 9C D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 01 91 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1E CF 01 00 35 04 06 00 F5 BE 92 4B 7D 59 8F 95 43 E0 FF 31 1E AD [18:42:09]CheckFolder [18:42:09]dirname=/storage/ofd_packets [18:42:09]CheckFolder done [18:42:09]ProducePacketName [18:42:09]name=ofd_packets/00118558 [18:42:09]NVStorageSaveData ofd_packets/00118558 [18:42:09]File name is /storage/ofd_packets/00118558 [18:42:09]Write 298 bytes [18:42:09]NVStorageSaveData done [18:42:09]OFDSenderStorePacket done [18:42:09]KKMCreateOFDPacket done [18:42:09]NVStorageSaveData kkm_last_timestamp [18:42:09]File name is /storage/kkm_last_timestamp [18:42:09]Write 4 bytes [18:42:09]NVStorageSaveData done [18:42:09]ExternCall_PrintAddStr [18:42:09]wPrintStart [18:42:09]Write to MH i2c: 01 00 00 8E 14 A2 [18:42:09]Write i2c OK [18:42:09]MH_I2C_Read... [18:42:09]Read from MH i2c: 01 [18:42:09]MH_I2C_Read... [18:42:09]Read from MH i2c: 01 07 00 [18:42:09]MH_I2C_Read... [18:42:09]Read from MH i2c: 01 07 00 8E 14 00 00 00 00 00 FF 0F B7 [18:42:09]RasterBufferAndPrint [18:42:09]line Счет N : (1)949443 [18:42:09]line ИНН: 02508201610067 [18:42:09]line Контрольно-Кассовый Чек [18:42:09]line ПРОДАЖА [18:42:09]line ТРК (МРК, ГНК) : 11 [18:42:09]line Товар: 2710194800 [18:42:09]line ДТ-К-5 [18:42:09]line 39.380 * 76.20 [18:42:09]line = 3000.76 [18:42:09]line НДС 12% НСП 1% [18:42:09]line > о реализуемом товаре [18:42:09]line ОКРУГЛЕНИЕ: -0.76 [18:42:09]line ИТОГО: 3000.00 [18:42:09]line НСП 1% : 26.55 [18:42:09]line НДС 12% : 318.66 [18:42:09]line Наличными: 0.00 [18:42:09]line Безнал.: 3000.00 [18:42:09]line Место: АЗС № 134 "Партнер Нефть" [18:42:09]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:42:09]line СНО: Общий режим [18:42:09]line Чек 227 28.07.2024 18:42 [18:42:09]line Смена: 433 ФФД: 1.0 [18:42:09]line ЗНМ: 0300000044 [18:42:09]line РНМ: 0000000000092660 [18:42:09]line Версия ККМ: 001 [18:42:09]line Платежная система: O! деньги [18:42:09]line ФМ: 0000000000874939 [18:42:09]line ФД: 118558 [18:42:09]line ФПД: 270198847012185 [18:42:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184209&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118558&fm=270198847012185&tin=02508201610067®Number=0000000000092660&sum=300000 [18:42:10]OFD Sender: Processing packet 118558 [packets to send 86, broken 85] [18:42:10]ProducePacketName [18:42:10]name=ofd_packets/00118558 [18:42:10]OFD Sender: To server: pG, [18:42:10]CommunicateWithHost lk.salyk.kg:30040 [18:42:10]ConnectInit lk.salyk.kg [18:42:10]written 0, free lines is 4095 [18:42:10]Connected sock=10 [18: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 39 33 39 0C 01 00 00 76 6C 04 01 9C D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 01 91 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1E CF 01 00 35 04 06 00 F5 BE 92 4B 7D 59 8F 95 43 E0 FF 31 1E AD [18: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 39 33 39 4F 00 00 00 BD 68 47 00 9C 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1E CF 01 00 F4 03 04 00 91 3E A6 66 B6 04 01 00 00 53 94 F5 7B 6D 6B E0 2B [18:42:10]CommunicateWithHost err = 0 [18:42:10]CheckOFDResponse [18:42:10]1017 (14) - 77093643461234 [18:42:10]1041 (16) - 0000000000874939 [18:42:10]1040 (4) - 118558 [18:42:10]1012 (4) - 28.07.2024 12:50 [18:42:10]1206 (1) - 0 [18:42:10]OFD Sender: Remove packet 118558 [18:42:10]ProducePacketName [18:42:10]name=ofd_packets/00118558 [18:42:10]NVStorageDeleteData [18:42:10]Write to MH i2c: 01 00 00 B8 14 CC [18:42:10]Write i2c OK [18:42:10]MH_I2C_Read... [18:42:10]Read from MH i2c: 01 [18:42:10]MH_I2C_Read... [18:42:10]Read from MH i2c: 01 07 00 [18:42:10]MH_I2C_Read... [18:42:10]Read from MH i2c: 01 07 00 B8 14 00 00 00 00 00 DE 0C BD [18:42:10]RasterBufferAndPrint [18:42:10]line [18:42:10]line [18:42:10]line [18:42:10]line [18:42:10]line [18:42:10]written 0, free lines is 3300 [18:42:10]MH_Cut [18:42:10]Write to MH i2c: D1 01 00 BF 14 01 A5 [18:42:10]Write i2c OK [18:42:10]MH_I2C_Read... [18:42:10]Read from MH i2c: D1 [18:42:10]MH_I2C_Read... [18:42:10]Read from MH i2c: D1 01 00 [18:42:10]MH_I2C_Read... [18:42:10]Read from MH i2c: D1 01 00 BF 14 00 A4 [18:42:10]Write to MH i2c: 01 00 00 C0 14 D4 [18:42:10]Write i2c OK [18:42:10]MH_I2C_Read... [18:42:10]OFD Sender: No OFD packet to send [18:42:11]*** Cut start [18:42:11]*** Partial cut [18:42:11]*** CUTSNS_PIN = 1 [18:42:11]*** CUTSNS_PIN = 0 [18:42:11]*** Brake cut motor [18:42:11]Read from MH i2c: 01 [18:42:11]MH_I2C_Read... [18:42:11]*** Stop cut motor [18:42:11]Read from MH i2c: *** Cut end [18:42:11]01 07 00 [18:42:11]MH_I2C_Read... [18:42:11]Read from MH i2c: 01 07 00 C0 14 00 00 00 00 00 FF 0F E9 [18:42:11]process_action close_receipt done [18:42:11]requested_data is exist [18:42:11]produce_requested_data [18:42:11]requested_item fm.sn is exist - process it [18:42:11]wFMCommunicate request_size=4 [18:42:11]MH_SAM_APDU [18:42:11]CAPDU: 80 11 00 00 [18:42:11]Write to MH i2c: E2 08 00 C1 14 80 11 00 00 00 00 00 00 4F [18:42:11]Write i2c OK [18:42:11]MH_I2C_Read... [18:42:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:12]Read from MH i2c: E2 [18:42:12]MH_I2C_Read... [18:42:12]Read from MH i2c: E2 17 00 [18:42:12]MH_I2C_Read... [18:42:12]Read from MH i2c: E2 17 00 C1 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AA [18:42:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:42:12]wFMCommunicate OK [18:42:12]requested_item fd.num is exist - process it [18:42:12]SAM_PROTO_GetFieldsCounters [18:42:12]wFMCommunicate request_size=4 [18:42:12]MH_SAM_APDU [18:42:12]CAPDU: 80 13 00 00 [18:42:12]Write to MH i2c: E2 08 00 C2 14 80 13 00 00 00 00 00 00 52 [18:42:12]Write i2c OK [18:42:12]MH_I2C_Read... [18:42:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:12]Read from MH i2c: E2 [18:42:12]MH_I2C_Read... [18:42:12]Read from MH i2c: E2 62 00 [18:42:12]MH_I2C_Read... [18:42:12]Read from MH i2c: E2 62 00 C2 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1E CF 01 00 0E 04 04 00 B1 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 C2 [18:42:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1E CF 01 00 0E 04 04 00 B1 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 [18:42:12]wFMCommunicate OK [18:42:12]SAM_PROTO_GetFieldsCounters done [18:42:12]requested_item shift.num is exist - process it [18:42:12]requested_item shift.opened is exist - process it [18:42:12]req_shift_opened [18:42:12]FM_GetShiftState [18:42:12]SAM_PROTO_GetShiftState [18:42:12]wFMCommunicate request_size=4 [18:42:12]MH_SAM_APDU [18:42:12]CAPDU: 80 13 01 00 [18:42:12]Write to MH i2c: E2 08 00 C3 14 80 13 01 00 00 00 00 00 54 [18:42:12]Write i2c OK [18:42:12]MH_I2C_Read... [18:42:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:12]Read from MH i2c: E2 [18:42:12]MH_I2C_Read... [18:42:12]Read from MH i2c: E2 0E 00 [18:42:12]MH_I2C_Read... [18:42:12]Read from MH i2c: E2 0E 00 C3 14 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 2B [18:42:12]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:42:12]wFMCommunicate OK [18:42:12]SAM_PROTO_GetShiftState done [18:42:12]FM_GetShiftState done [18:42:12]req_shift_opened done [18:42:12]requested_item shift.open_date is exist - process it [18:42:12]req_shift_open_date [18:42:12]req_shift_open_date done [18:42:12]produce_requested_data done [18:42:12]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118558,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:42:12]process_action_free close_receipt [18:42:12]json_value_free [18:42:12]json_value_free done [18:42:12]process_json_proto returns [18:42:12]Send response to host [18:42:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118558,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:42:12]free response buf [18:42:12]execute_script done [18:42:12]execute_script returns [18:42:12]free content buf [18:42:12]Sock 9.Close socket [18:42:12]Sock 9.Thread stoped [18:42:16]OFD Sender: No OFD packet to send [18:42:21]OFD Sender: No OFD packet to send [18:42:26]OFD Sender: No OFD packet to send [18:42:31]OFD Sender: No OFD packet to send [18:42:36]OFD Sender: No OFD packet to send [18:42:41]OFD Sender: No OFD packet to send [18:42:46]OFD Sender: No OFD packet to send [18:42:51]OFD Sender: No OFD packet to send [18:42:56]OFD Sender: No OFD packet to send [18:43:01]OFD Sender: No OFD packet to send [18:43:06]OFD Sender: No OFD packet to send [18:43:11]OFD Sender: No OFD packet to send [18:43:16]OFD Sender: No OFD packet to send [18:43:21]OFD Sender: No OFD packet to send [18:43:26]OFD Sender: No OFD packet to send [18:43:31]OFD Sender: No OFD packet to send [18:43:36]OFD Sender: No OFD packet to send [18:43:41]OFD Sender: No OFD packet to send [18:43:46]OFD Sender: No OFD packet to send [18:43:51]OFD Sender: No OFD packet to send [18:43:56]OFD Sender: No OFD packet to send [18:44:01]OFD Sender: No OFD packet to send [18:44:06]OFD Sender: No OFD packet to send [18:44:11]OFD Sender: No OFD packet to send [18:44:16]OFD Sender: No OFD packet to send [18:44:21]OFD Sender: No OFD packet to send [18:44:26]OFD Sender: No OFD packet to send [18:44:31]OFD Sender: No OFD packet to send [18:44:36]OFD Sender: No OFD packet to send [18:44:41]OFD Sender: No OFD packet to send [18:44:46]OFD Sender: No OFD packet to send [18:44:51]OFD Sender: No OFD packet to send [18:44:56]OFD Sender: No OFD packet to send [18:45:01]OFD Sender: No OFD packet to send [18:45:06]OFD Sender: No OFD packet to send [18:45:11]OFD Sender: No OFD packet to send [18:45:16]OFD Sender: No OFD packet to send [18:45:21]OFD Sender: No OFD packet to send [18:45:24]accept exits with 7 [18:45:24]New connection [18:45:24]New thread 3067383140 created [18:45:24]Thread 3067239780 joined [18:45:24]Waiting for new connection... [18:45:24] Sock 7.Parse request [18:45:24]Sock 7.Check first char [18:45:24]Sock 7.First char is OK [18:45:24]request: POST /json_proto HTTP/1.0 [18:45:24]Method: POST [18:45:24]URL: /json_proto [18:45:24]Method is POST - this is cgi request [18:45:24]url: /json_proto [18:45:24]query_string will be loaded in cgi processing [18:45:24]execute_cgi json_proto POST (null) [18:45:24]execute_cgi path=json_proto method=POST [18:45:24]POST find Content-Length [18:45:24]Host: 172.17.45.7:8080 [18:45:24]Content-Length: 822 [18:45:24]Content-Type: application/json [18:45:24] [18:45:24]POST finish read [18:45:24]Found Content-Length = 822 [18:45:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 29.430, "sum" : 1995.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1995.00, "payments": [ { "type": 1, "sum" : 1995.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:24]execute_script... [18:45: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)949445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 29.430, "sum" : 1995.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1995.00, "payments": [ { "type": 1, "sum" : 1995.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:24]POST & json_proto [18:45:24]process_json_proto [18:45:24]json parsed OK: [18:45:24]protocol is kg_v1.0 [18:45:24]action value=close_receipt [18:45:24]process_action close_receipt [18:45:24]cmd_close_receipt [18:45:24]MH_GetDate [18:45:24]Write to MH i2c: F0 00 00 C4 14 C7 [18:45:24]Write i2c OK [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: F0 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: F0 09 00 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: F0 09 00 C4 14 00 C6 91 A6 66 90 0F 3E 66 76 [18:45:24]GetLastDocTimeStamp 1722192129 [18:45:24]current date 1722192326 [18:45:24]FM_GetShiftState [18:45:24]SAM_PROTO_GetShiftState [18:45:24]wFMCommunicate request_size=4 [18:45:24]MH_SAM_APDU [18:45:24]CAPDU: 80 13 01 00 [18:45:24]Write to MH i2c: E2 08 00 C5 14 80 13 01 00 00 00 00 00 56 [18:45:24]Write i2c OK [18:45:24]MH_I2C_Read... [18:45:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:24]Read from MH i2c: E2 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: E2 0E 00 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: E2 0E 00 C5 14 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 2D [18:45:24]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:45:24]wFMCommunicate OK [18:45:24]SAM_PROTO_GetShiftState done [18:45:24]FM_GetShiftState done [18:45:24]opened in 1722125364 [18:45:24]opened+sec_in_day 1722211764 [18:45:24]quantity*price = 199535 [18:45:24]sum+1 = 199536 [18:45:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1995.00 НСП 1% : 17.66 НДС 12% : 211.90 Наличными: 0.00 Безнал.: 1995.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 228 28.07.2024 18:45 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118559 ФПД: 232688459289001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184526&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118559&fm=232688459289001&tin=02508201610067®Number=0000000000092660&sum=199500 [18:45:25]StoreToDocumentArchive [18:45:25]shift 433 fd 118559 [18:45:25]save to /storage/0433/doc_00118559 [18:45:25]save last doc name /storage/0433/doc_00118559 to /storage/kkm_last_doc_name [18:45:25]save OK [18:45:25]Clear old archive folders... [18:45:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:45:25]tlvbuf is B6F11AB0 [18:45:25]SAM_PROTO_ClearQueue [18:45:25]wFMCommunicate request_size=4 [18:45:25]MH_SAM_APDU [18:45:25]CAPDU: 80 09 00 00 [18:45:25]Write to MH i2c: E2 08 00 D2 14 80 09 00 00 00 00 00 00 58 [18:45:25]Write i2c OK [18:45:25]MH_I2C_Read... [18:45:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:25]Read from MH i2c: E2 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: E2 03 00 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: E2 03 00 D2 14 00 90 00 5A [18:45:25]RAPDU: 90 00 [18:45:25]wFMCommunicate OK [18:45:25]SAM_PROTO_ClearQueue done [18:45:25]KKMCreateOFDPacket [18:45:25]OFDProtocolAddRootSTLVToBuf [18:45:25]FM_MakeSignedData [18:45:25]FM_MakeSignedData [18:45:25]SAM_PROTO_SignData [18:45:25]wFMCommunicate request_size=4 [18:45:25]MH_SAM_APDU [18:45:25]CAPDU: 80 0D 01 02 [18:45:25]Write to MH i2c: E2 08 00 D3 14 80 0D 01 02 00 00 00 00 60 [18:45:25]Write i2c OK [18:45:25]MH_I2C_Read... [18:45:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:25]Read from MH i2c: E2 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: E2 03 00 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: E2 03 00 D3 14 00 90 00 5B [18:45:25]RAPDU: 90 00 [18:45:25]wFMCommunicate OK [18:45:25]wFMCommunicate request_size=255 [18:45:25]MH_SAM_APDU [18:45: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 34 FF 03 08 00 03 F6 72 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6F 0B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 0B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 C6 91 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1F CF 01 00 35 04 06 00 D3 [18:45:25]Write to MH i2c: E2 02 01 D4 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 34 FF 03 08 00 03 F6 72 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6F 0B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 0B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 C6 91 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1F CF 01 00 35 04 06 00 D3 00 00 5D [18:45:25]Write i2c OK [18:45:25]MH_I2C_Read... [18:45:26]OFD Sender: No OFD packet to send [18:45:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:26]Read from MH i2c: E2 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 03 00 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 03 00 D4 14 00 90 00 5C [18:45:26]RAPDU: 90 00 [18:45:26]wFMCommunicate OK [18:45:26]wFMCommunicate request_size=10 [18:45:26]MH_SAM_APDU [18:45:26]CAPDU: 80 0D 02 02 05 A1 00 F5 91 A9 [18:45:26]Write to MH i2c: E2 0D 00 D5 14 80 0D 02 02 05 00 A1 00 F5 91 A9 00 00 3D [18:45:26]Write i2c OK [18:45:26]MH_I2C_Read... [18:45:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:26]Read from MH i2c: E2 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 03 00 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 03 00 D5 14 00 90 00 5D [18:45:26]RAPDU: 90 00 [18:45:26]wFMCommunicate OK [18:45:26]wFMCommunicate request_size=4 [18:45:26]MH_SAM_APDU [18:45:26]CAPDU: 80 0D 03 02 [18:45:26]Write to MH i2c: E2 08 00 D6 14 80 0D 03 02 00 00 00 00 65 [18:45:26]Write i2c OK [18:45:26]MH_I2C_Read... [18:45:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:26]Read from MH i2c: E2 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 0B 00 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 0B 00 D6 14 00 99 53 21 8A 8C 97 09 AC 90 00 D5 [18:45:26]RAPDU: 99 53 21 8A 8C 97 09 AC 90 00 [18:45:26]wFMCommunicate OK [18:45:26]SAM_PROTO_SignData done [18:45:26]FM_MakeSignedData done [18:45:26]CreateOFDProtocolMessage [18:45:26]wFMCommunicate request_size=4 [18:45:26]MH_SAM_APDU [18:45:26]CAPDU: 80 11 00 00 [18:45:26]Write to MH i2c: E2 08 00 D7 14 80 11 00 00 00 00 00 00 65 [18:45:26]Write i2c OK [18:45:26]MH_I2C_Read... [18:45:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:26]Read from MH i2c: E2 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 17 00 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 17 00 D7 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C0 [18:45:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:45:26]wFMCommunicate OK [18:45:26]CreateOFDProtocolMessage done [18:45:26]OFDSenderStorePacket 118559 [18:45:26]StoreOFDPacket docnum=118559 [18:45:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C5 61 07 01 2A 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F6 72 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6F 0B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 0B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 C6 91 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1F CF 01 00 35 04 06 00 D3 A1 00 F5 91 A9 99 53 21 8A 8C 97 09 AC [18:45:26]CheckFolder [18:45:26]dirname=/storage/ofd_packets [18:45:26]CheckFolder done [18:45:26]ProducePacketName [18:45:26]name=ofd_packets/00118559 [18:45:26]NVStorageSaveData ofd_packets/00118559 [18:45:26]File name is /storage/ofd_packets/00118559 [18:45:26]Write 301 bytes [18:45:26]NVStorageSaveData done [18:45:26]OFDSenderStorePacket done [18:45:26]KKMCreateOFDPacket done [18:45:26]NVStorageSaveData kkm_last_timestamp [18:45:26]File name is /storage/kkm_last_timestamp [18:45:26]Write 4 bytes [18:45:26]NVStorageSaveData done [18:45:26]ExternCall_PrintAddStr [18:45:26]wPrintStart [18:45:26]Write to MH i2c: 01 00 00 D8 14 EC [18:45:26]Write i2c OK [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: 01 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: 01 07 00 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: 01 07 00 D8 14 00 00 00 00 00 FF 0F 01 [18:45:26]RasterBufferAndPrint [18:45:26]line Счет N : (1)949445 [18:45:26]line ИНН: 02508201610067 [18:45:26]line Контрольно-Кассовый Чек [18:45:26]line ПРОДАЖА [18:45:26]line ТРК (МРК, ГНК) : 41 [18:45:26]line Товар: 2710124130 [18:45:26]line Аи-92-К-4 [18:45:26]line 29.430 * 67.80 [18:45:26]line = 1995.35 [18:45:26]line НДС 12% НСП 1% [18:45:26]line > о реализуемом товаре [18:45:26]line ОКРУГЛЕНИЕ: -0.35 [18:45:26]line ИТОГО: 1995.00 [18:45:26]line НСП 1% : 17.66 [18:45:26]line НДС 12% : 211.90 [18:45:26]line Наличными: 0.00 [18:45:26]line Безнал.: 1995.00 [18:45:26]line Место: АЗС № 134 "Партнер Нефть" [18:45:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:45:26]line СНО: Общий режим [18:45:26]line Чек 228 28.07.2024 18:45 [18:45:26]line Смена: 433 ФФД: 1.0 [18:45:26]line ЗНМ: 0300000044 [18:45:26]line РНМ: 0000000000092660 [18:45:26]line Версия ККМ: 001 [18:45:26]line Платежная система: O! деньги [18:45:26]line ФМ: 0000000000874939 [18:45:26]line ФД: 118559 [18:45:26]line ФПД: 232688459289001 [18:45:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184526&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118559&fm=232688459289001&tin=02508201610067®Number=0000000000092660&sum=199500 [18:45:26]written 0, free lines is 4095 [18:45:26]OFD Sender: Processing packet 118559 [packets to send 86, broken 85] [18:45:26]ProducePacketName [18:45:26]name=ofd_packets/00118559 [18:45:26]OFD Sender: To server: pG, [18:45:26]CommunicateWithHost lk.salyk.kg:30040 [18:45:26]ConnectInit lk.salyk.kg [18:45:26]Connected sock=10 [18:45: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 39 33 39 0F 01 00 00 C5 61 07 01 2A 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F6 72 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6F 0B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 0B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 C6 91 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1F CF 01 00 35 04 06 00 D3 A1 00 F5 91 A9 99 53 21 8A 8C 97 09 AC [18:45:26]Write to MH i2c: 01 00 00 02 15 17 [18:45:26]Write i2c OK [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: 01 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: 01 07 00 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: 01 07 00 02 15 00 00 00 00 00 DF 0C 09 [18:45:26]RasterBufferAndPrint [18:45:26]line [18:45:26]line [18:45:26]line [18:45:26]line [18:45:26]line [18:45:26]written 0, free lines is 3301 [18:45:26]MH_Cut [18:45:26]Write to MH i2c: D1 01 00 09 15 01 F0 [18:45:26]Write i2c OK [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: D1 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: D1 01 00 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: D1 01 00 09 15 00 EF [18:45:26]Write to MH i2c: 01 00 00 0A 15 1F [18:45:26]Write i2c OK [18:45:26]MH_I2C_Read... [18:45:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5A 7C 47 00 2D 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 39 33 39 10 04 04 00 1F CF 01 00 F4 03 04 00 56 3F A6 66 B6 04 01 00 00 33 7F 60 D3 F7 D7 89 4E [18:45:27]CommunicateWithHost err = 0 [18:45:27]CheckOFDResponse [18:45:27]1017 (14) - 77093643461234 [18:45:27]1041 (16) - 0000000000874939 [18:45:27]1040 (4) - 118559 [18:45:27]1012 (4) - 28.07.2024 12:53 [18:45:27]1206 (1) - 0 [18:45:27]OFD Sender: Remove packet 118559 [18:45:27]ProducePacketName [18:45:27]name=ofd_packets/00118559 [18:45:27]NVStorageDeleteData [18:45:27]OFD Sender: No OFD packet to send [18:45:27]*** Cut start [18:45:27]*** Partial cut [18:45:27]*** CUTSNS_PIN = 1 [18:45:27]*** CUTSNS_PIN = 0 [18:45:27]*** Brake cut motor [18:45:28]Read from MH i2c: 01 [18:45:28]MH_I2C_Read... [18:45:28]*** Stop cut motor [18:45:28]*** Cut end [18:45:28]Read from MH i2c: 01 07 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: 01 07 00 0A 15 00 00 00 00 00 FF 0F 34 [18:45:28]process_action close_receipt done [18:45:28]requested_data is exist [18:45:28]produce_requested_data [18:45:28]requested_item fm.sn is exist - process it [18:45:28]wFMCommunicate request_size=4 [18:45:28]MH_SAM_APDU [18:45:28]CAPDU: 80 11 00 00 [18:45:28]Write to MH i2c: E2 08 00 0B 15 80 11 00 00 00 00 00 00 9A [18:45:28]Write i2c OK [18:45:28]MH_I2C_Read... [18:45:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:28]Read from MH i2c: E2 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 17 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 17 00 0B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F5 [18:45:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:45:28]wFMCommunicate OK [18:45:28]requested_item fd.num is exist - process it [18:45:28]SAM_PROTO_GetFieldsCounters [18:45:28]wFMCommunicate request_size=4 [18:45:28]MH_SAM_APDU [18:45:28]CAPDU: 80 13 00 00 [18:45:28]Write to MH i2c: E2 08 00 0C 15 80 13 00 00 00 00 00 00 9D [18:45:28]Write i2c OK [18:45:28]MH_I2C_Read... [18:45:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:28]Read from MH i2c: E2 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 62 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 62 00 0C 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1F CF 01 00 0E 04 04 00 B1 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 11 [18:45:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1F CF 01 00 0E 04 04 00 B1 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 [18:45:28]wFMCommunicate OK [18:45:28]SAM_PROTO_GetFieldsCounters done [18:45:28]requested_item shift.num is exist - process it [18:45:28]requested_item shift.opened is exist - process it [18:45:28]req_shift_opened [18:45:28]FM_GetShiftState [18:45:28]SAM_PROTO_GetShiftState [18:45:28]wFMCommunicate request_size=4 [18:45:28]MH_SAM_APDU [18:45:28]CAPDU: 80 13 01 00 [18:45:28]Write to MH i2c: E2 08 00 0D 15 80 13 01 00 00 00 00 00 9F [18:45:28]Write i2c OK [18:45:28]MH_I2C_Read... [18:45:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:28]Read from MH i2c: E2 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 0E 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 0E 00 0D 15 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 76 [18:45:28]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:45:28]wFMCommunicate OK [18:45:28]SAM_PROTO_GetShiftState done [18:45:28]FM_GetShiftState done [18:45:28]req_shift_opened done [18:45:28]requested_item shift.open_date is exist - process it [18:45:28]req_shift_open_date [18:45:28]req_shift_open_date done [18:45:28]produce_requested_data done [18:45:28]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118559,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:45:28]process_action_free close_receipt [18:45:28]json_value_free [18:45:28]json_value_free done [18:45:28]process_json_proto returns [18:45:28]Send response to host [18:45:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118559,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:45:28]free response buf [18:45:28]execute_script done [18:45:28]execute_script returns [18:45:28]free content buf [18:45:28]Sock 7.Close socket [18:45:28]Sock 7.Thread stoped [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:48]accept exits with 9 [18:49:48]New connection [18:49:48]New thread 3067239780 created [18:49:48]Thread 3067383140 joined [18:49:48]Waiting for new connection... [18:49:48] Sock 9.Parse request [18:49:48]Sock 9.Check first char [18:49:48]Sock 9.First char is OK [18:49:48]request: POST /json_proto HTTP/1.0 [18:49:48]Method: POST [18:49:48]URL: /json_proto [18:49:48]Method is POST - this is cgi request [18:49:48]url: /json_proto [18:49:48]query_string will be loaded in cgi processing [18:49:48]execute_cgi json_proto POST (null) [18:49:48]execute_cgi path=json_proto method=POST [18:49:48]POST find Content-Length [18:49:48]Host: 172.17.45.7:8080 [18:49:48]Content-Length: 678 [18:49:48]Content-Type: application/json [18:49:48] [18:49:48]POST finish read [18:49:48]Found Content-Length = 678 [18:49:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 12.540, "sum" : 850.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:48]execute_script... [18:49: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)949446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 12.540, "sum" : 850.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:48]POST & json_proto [18:49:48]process_json_proto [18:49:48]json parsed OK: [18:49:48]protocol is kg_v1.0 [18:49:48]action value=close_receipt [18:49:48]process_action close_receipt [18:49:48]cmd_close_receipt [18:49:48]MH_GetDate [18:49:48]Write to MH i2c: F0 00 00 0E 15 12 [18:49:48]Write i2c OK [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: F0 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: F0 09 00 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: F0 09 00 0E 15 00 CD 92 A6 66 90 0F 3E 66 C9 [18:49:48]GetLastDocTimeStamp 1722192326 [18:49:48]current date 1722192589 [18:49:48]FM_GetShiftState [18:49:48]SAM_PROTO_GetShiftState [18:49:48]wFMCommunicate request_size=4 [18:49:48]MH_SAM_APDU [18:49:48]CAPDU: 80 13 01 00 [18:49:48]Write to MH i2c: E2 08 00 0F 15 80 13 01 00 00 00 00 00 A1 [18:49:48]Write i2c OK [18:49:48]MH_I2C_Read... [18:49:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:48]Read from MH i2c: E2 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 0E 00 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 0E 00 0F 15 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 78 [18:49:48]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:49:48]wFMCommunicate OK [18:49:48]SAM_PROTO_GetShiftState done [18:49:48]FM_GetShiftState done [18:49:48]opened in 1722125364 [18:49:48]opened+sec_in_day 1722211764 [18:49:48]quantity*price = 85021 [18:49:48]sum+1 = 85022 [18:49:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 850.00 Внесено: 850.00 СДАЧА: 0.00 НСП 1% : 7.52 НДС 12% : 90.29 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 229 28.07.2024 18:49 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118560 ФПД: 132465513706954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184949&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118560&fm=132465513706954&tin=02508201610067®Number=0000000000092660&sum=85000 [18:49:49]StoreToDocumentArchive [18:49:49]shift 433 fd 118560 [18:49:49]save to /storage/0433/doc_00118560 [18:49:49]save last doc name /storage/0433/doc_00118560 to /storage/kkm_last_doc_name [18:49:49]save OK [18:49:49]Clear old archive folders... [18:49:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:49:49]tlvbuf is 01E97F60 [18:49:49]SAM_PROTO_ClearQueue [18:49:49]wFMCommunicate request_size=4 [18:49:49]MH_SAM_APDU [18:49:49]CAPDU: 80 09 00 00 [18:49:49]Write to MH i2c: E2 08 00 1C 15 80 09 00 00 00 00 00 00 A3 [18:49:49]Write i2c OK [18:49:49]MH_I2C_Read... [18:49:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:49]Read from MH i2c: E2 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 03 00 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 03 00 1C 15 00 90 00 A5 [18:49:49]RAPDU: 90 00 [18:49:49]wFMCommunicate OK [18:49:49]SAM_PROTO_ClearQueue done [18:49:49]KKMCreateOFDPacket [18:49:49]OFDProtocolAddRootSTLVToBuf [18:49:49]FM_MakeSignedData [18:49:49]FM_MakeSignedData [18:49:49]SAM_PROTO_SignData [18:49:49]wFMCommunicate request_size=4 [18:49:49]MH_SAM_APDU [18:49:49]CAPDU: 80 0D 01 02 [18:49:49]Write to MH i2c: E2 08 00 1D 15 80 0D 01 02 00 00 00 00 AB [18:49:49]Write i2c OK [18:49:49]MH_I2C_Read... [18:49:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:49]Read from MH i2c: E2 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 03 00 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 03 00 1D 15 00 90 00 A6 [18:49:49]RAPDU: 90 00 [18:49:49]wFMCommunicate OK [18:49:49]wFMCommunicate request_size=255 [18:49:49]MH_SAM_APDU [18:49: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 34 FF 03 08 00 03 FC 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1D 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 45 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 E5 00 00 00 F4 03 04 00 CD 92 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 20 CF 01 00 35 04 06 00 78 [18:49:49]Write to MH i2c: E2 02 01 1E 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 34 FF 03 08 00 03 FC 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1D 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 45 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 E5 00 00 00 F4 03 04 00 CD 92 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 20 CF 01 00 35 04 06 00 78 00 00 54 [18:49:49]Write i2c OK [18:49:49]MH_I2C_Read... [18:49:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:49]Read from MH i2c: E2 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 03 00 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 03 00 1E 15 00 90 00 A7 [18:49:49]RAPDU: 90 00 [18:49:49]wFMCommunicate OK [18:49:49]wFMCommunicate request_size=10 [18:49:49]MH_SAM_APDU [18:49:49]CAPDU: 80 0D 02 02 05 7A 07 E3 B5 CA [18:49:49]Write to MH i2c: E2 0D 00 1F 15 80 0D 02 02 05 00 7A 07 E3 B5 CA 00 00 9B [18:49:49]Write i2c OK [18:49:49]MH_I2C_Read... [18:49:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:49]Read from MH i2c: E2 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 03 00 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 03 00 1F 15 00 90 00 A8 [18:49:49]RAPDU: 90 00 [18:49:49]wFMCommunicate OK [18:49:49]wFMCommunicate request_size=4 [18:49:49]MH_SAM_APDU [18:49:49]CAPDU: 80 0D 03 02 [18:49:49]Write to MH i2c: E2 08 00 20 15 80 0D 03 02 00 00 00 00 B0 [18:49:49]Write i2c OK [18:49:49]MH_I2C_Read... [18:49:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:49]Read from MH i2c: E2 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 0B 00 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 0B 00 20 15 00 7B 85 A1 BD C0 C2 A4 AA 90 00 DF [18:49:49]RAPDU: 7B 85 A1 BD C0 C2 A4 AA 90 00 [18:49:49]wFMCommunicate OK [18:49:49]SAM_PROTO_SignData done [18:49:49]FM_MakeSignedData done [18:49:49]CreateOFDProtocolMessage [18:49:49]wFMCommunicate request_size=4 [18:49:49]MH_SAM_APDU [18:49:49]CAPDU: 80 11 00 00 [18:49:49]Write to MH i2c: E2 08 00 21 15 80 11 00 00 00 00 00 00 B0 [18:49:49]Write i2c OK [18:49:49]MH_I2C_Read... [18:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:49]Read from MH i2c: E2 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 17 00 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 17 00 21 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0B [18:49:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:49:49]wFMCommunicate OK [18:49:49]CreateOFDProtocolMessage done [18:49:49]OFDSenderStorePacket 118560 [18:49:49]StoreOFDPacket docnum=118560 [18:49:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CA 31 07 01 95 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1D 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 45 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 E5 00 00 00 F4 03 04 00 CD 92 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 20 CF 01 00 35 04 06 00 78 7A 07 E3 B5 CA 7B 85 A1 BD C0 C2 A4 AA [18:49:49]CheckFolder [18:49:49]dirname=/storage/ofd_packets [18:49:49]CheckFolder done [18:49:49]ProducePacketName [18:49:49]name=ofd_packets/00118560 [18:49:49]NVStorageSaveData ofd_packets/00118560 [18:49:49]File name is /storage/ofd_packets/00118560 [18:49:49]Write 301 bytes [18:49:49]NVStorageSaveData done [18:49:49]OFDSenderStorePacket done [18:49:49]KKMCreateOFDPacket done [18:49:49]NVStorageSaveData kkm_last_timestamp [18:49:49]File name is /storage/kkm_last_timestamp [18:49:49]Write 4 bytes [18:49:49]NVStorageSaveData done [18:49:49]OFD Sender: Processing packet 118560 [packets to send 86, broken 85] [18:49:49]ProducePacketName [18:49:49]name=ofd_packets/00118560 [18:49:49]OFD Sender: To server: pG, [18:49:49]CommunicateWithHost lk.salyk.kg:30040 [18:49:49]ConnectInit lk.salyk.kg [18:49:49]ExternCall_PrintAddStr [18:49:49]wPrintStart [18:49:49]Write to MH i2c: 01 00 00 22 15 37 [18:49:49]Write i2c OK [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: 01 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: 01 07 00 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: 01 07 00 22 15 00 00 00 00 00 FF 0F 4C [18:49:49]RasterBufferAndPrint [18:49:49]line Счет N : (1)949446 [18:49:49]line ИНН: 02508201610067 [18:49:49]line Контрольно-Кассовый Чек [18:49:49]line ПРОДАЖА [18:49:49]line ТРК (МРК, ГНК) : 51 [18:49:49]line Товар: 2710124130 [18:49:49]line Аи-92-К-4 [18:49:49]line 12.540 * 67.80 [18:49:49]line = 850.21 [18:49:49]line НДС 12% НСП 1% [18:49:49]line > о реализуемом товаре [18:49:49]line ОКРУГЛЕНИЕ: -0.21 [18:49:49]line ИТОГО: 850.00 [18:49:49]line Внесено: 850.00 [18:49:49]line СДАЧА: 0.00 [18:49:49]line НСП 1% : 7.52 [18:49:49]line НДС 12% : 90.29 [18:49:49]line Наличными: 850.00 [18:49:49]line Безнал.: 0.00 [18:49:49]line Место: АЗС № 134 "Партнер Нефть" [18:49:49]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:49:49]line СНО: Общий режим [18:49:49]line Чек 229 28.07.2024 18:49 [18:49:49]line Смена: 433 ФФД: 1.0 [18:49:49]line ЗНМ: 0300000044 [18:49:49]line РНМ: 0000000000092660 [18:49:49]line Версия ККМ: 001 [18:49:49]line ФМ: 0000000000874939 [18:49:49]line ФД: 118560 [18:49:49]line ФПД: 132465513706954 [18:49:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184949&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118560&fm=132465513706954&tin=02508201610067®Number=0000000000092660&sum=85000 [18:49:50]Connected sock=11 [18:49: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 39 33 39 0F 01 00 00 CA 31 07 01 95 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1D 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 45 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 E5 00 00 00 F4 03 04 00 CD 92 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 20 CF 01 00 35 04 06 00 78 7A 07 E3 B5 CA 7B 85 A1 BD C0 C2 A4 AA [18:49:50]written 0, free lines is 4095 [18:49:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 54 5F 47 00 81 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 39 33 39 10 04 04 00 20 CF 01 00 F4 03 04 00 5D 40 A6 66 B6 04 01 00 00 D4 F0 6C 94 3C 0F 0A 9D [18:49:50]CommunicateWithHost err = 0 [18:49:50]CheckOFDResponse [18:49:50]1017 (14) - 77093643461234 [18:49:50]1041 (16) - 0000000000874939 [18:49:50]1040 (4) - 118560 [18:49:50]1012 (4) - 28.07.2024 12:58 [18:49:50]1206 (1) - 0 [18:49:50]OFD Sender: Remove packet 118560 [18:49:50]ProducePacketName [18:49:50]name=ofd_packets/00118560 [18:49:50]NVStorageDeleteData [18:49:50]Write to MH i2c: 01 00 00 4C 15 61 [18:49:50]Write i2c OK [18:49:50]MH_I2C_Read... [18:49:50]Read from MH i2c: 01 [18:49:50]MH_I2C_Read... [18:49:50]Read from MH i2c: 01 07 00 [18:49:50]MH_I2C_Read... [18:49:50]Read from MH i2c: 01 07 00 4C 15 00 00 00 00 00 D3 0C 47 [18:49:50]RasterBufferAndPrint [18:49:50]line [18:49:50]line [18:49:50]line [18:49:50]line [18:49:50]line [18:49:50]written 0, free lines is 3290 [18:49:50]MH_Cut [18:49:50]Write to MH i2c: D1 01 00 53 15 01 3A [18:49:50]Write i2c OK [18:49:50]MH_I2C_Read... [18:49:50]Read from MH i2c: D1 [18:49:50]MH_I2C_Read... [18:49:50]Read from MH i2c: D1 01 00 [18:49:50]MH_I2C_Read... [18:49:50]Read from MH i2c: D1 01 00 53 15 00 39 [18:49:50]Write to MH i2c: 01 00 00 54 15 69 [18:49:50]Write i2c OK [18:49:50]MH_I2C_Read... [18:49:50]OFD Sender: No OFD packet to send [18:49:51]*** Cut start [18:49:51]*** Partial cut [18:49:51]*** CUTSNS_PIN = 1 [18:49:51]*** CUTSNS_PIN = 0 [18:49:51]*** Brake cut motor [18:49:51]Read from MH i2c: 01 [18:49:51]MH_I2C_Read... [18:49:51]*** Stop cut motor [18:49:51]*** Cut end [18:49:51]Read from MH i2c: 01 07 00 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: 01 07 00 54 15 00 00 00 00 00 FF 0F 7E [18:49:51]process_action close_receipt done [18:49:51]requested_data is exist [18:49:51]produce_requested_data [18:49:51]requested_item fm.sn is exist - process it [18:49:51]wFMCommunicate request_size=4 [18:49:51]MH_SAM_APDU [18:49:51]CAPDU: 80 11 00 00 [18:49:51]Write to MH i2c: E2 08 00 55 15 80 11 00 00 00 00 00 00 E4 [18:49:51]Write i2c OK [18:49:51]MH_I2C_Read... [18:49:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:51]Read from MH i2c: E2 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: E2 17 00 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: E2 17 00 55 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3F [18:49:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:49:51]wFMCommunicate OK [18:49:51]requested_item fd.num is exist - process it [18:49:51]SAM_PROTO_GetFieldsCounters [18:49:51]wFMCommunicate request_size=4 [18:49:51]MH_SAM_APDU [18:49:51]CAPDU: 80 13 00 00 [18:49:51]Write to MH i2c: E2 08 00 56 15 80 13 00 00 00 00 00 00 E7 [18:49:51]Write i2c OK [18:49:51]MH_I2C_Read... [18:49:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:52]Read from MH i2c: E2 [18:49:52]MH_I2C_Read... [18:49:52]Read from MH i2c: E2 62 00 [18:49:52]MH_I2C_Read... [18:49:52]Read from MH i2c: E2 62 00 56 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 20 CF 01 00 0E 04 04 00 B1 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 5F [18:49:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 20 CF 01 00 0E 04 04 00 B1 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 [18:49:52]wFMCommunicate OK [18:49:52]SAM_PROTO_GetFieldsCounters done [18:49:52]requested_item shift.num is exist - process it [18:49:52]requested_item shift.opened is exist - process it [18:49:52]req_shift_opened [18:49:52]FM_GetShiftState [18:49:52]SAM_PROTO_GetShiftState [18:49:52]wFMCommunicate request_size=4 [18:49:52]MH_SAM_APDU [18:49:52]CAPDU: 80 13 01 00 [18:49:52]Write to MH i2c: E2 08 00 57 15 80 13 01 00 00 00 00 00 E9 [18:49:52]Write i2c OK [18:49:52]MH_I2C_Read... [18:49:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:52]Read from MH i2c: E2 [18:49:52]MH_I2C_Read... [18:49:52]Read from MH i2c: E2 0E 00 [18:49:52]MH_I2C_Read... [18:49:52]Read from MH i2c: E2 0E 00 57 15 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 C0 [18:49:52]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:49:52]wFMCommunicate OK [18:49:52]SAM_PROTO_GetShiftState done [18:49:52]FM_GetShiftState done [18:49:52]req_shift_opened done [18:49:52]requested_item shift.open_date is exist - process it [18:49:52]req_shift_open_date [18:49:52]req_shift_open_date done [18:49:52]produce_requested_data done [18:49:52]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118560,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:49:52]process_action_free close_receipt [18:49:52]json_value_free [18:49:52]json_value_free done [18:49:52]process_json_proto returns [18:49:52]Send response to host [18:49:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118560,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:49:52]free response buf [18:49:52]execute_script done [18:49:52]execute_script returns [18:49:52]free content buf [18:49:52]Sock 9.Close socket [18:49:52]Sock 9.Thread stoped [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:05]OFD Sender: No OFD packet to send [18:50:10]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]OFD Sender: No OFD packet to send [18:50:25]OFD Sender: No OFD packet to send [18:50:30]OFD Sender: No OFD packet to send [18:50:35]OFD Sender: No OFD packet to send [18:50:40]OFD Sender: No OFD packet to send [18:50:45]OFD Sender: No OFD packet to send [18:50:50]OFD Sender: No OFD packet to send [18:50:55]OFD Sender: No OFD packet to send [18:51:00]OFD Sender: No OFD packet to send [18:51:05]OFD Sender: No OFD packet to send [18:51:10]OFD Sender: No OFD packet to send [18:51:15]OFD Sender: No OFD packet to send [18:51:20]OFD Sender: No OFD packet to send [18:51:25]OFD Sender: No OFD packet to send [18:51:30]OFD Sender: No OFD packet to send [18:51:35]OFD Sender: No OFD packet to send [18:51:40]OFD Sender: No OFD packet to send [18:51:45]OFD Sender: No OFD packet to send [18:51:50]OFD Sender: No OFD packet to send [18:51:55]OFD Sender: No OFD packet to send [18:52:00]OFD Sender: No OFD packet to send [18:52:05]OFD Sender: No OFD packet to send [18:52:10]OFD Sender: No OFD packet to send [18:52:15]OFD Sender: No OFD packet to send [18:52:17]accept exits with 7 [18:52:17]New connection [18:52:17]New thread 3067383140 created [18:52:17]Thread 3067239780 joined [18:52:17]Waiting for new connection... [18:52:17] Sock 7.Parse request [18:52:17]Sock 7.Check first char [18:52:17]Sock 7.First char is OK [18:52:17]request: POST /json_proto HTTP/1.0 [18:52:17]Method: POST [18:52:17]URL: /json_proto [18:52:17]Method is POST - this is cgi request [18:52:17]url: /json_proto [18:52:17]query_string will be loaded in cgi processing [18:52:17]execute_cgi json_proto POST (null) [18:52:17]execute_cgi path=json_proto method=POST [18:52:17]POST find Content-Length [18:52:17]Host: 172.17.45.7:8080 [18:52:17]Content-Length: 819 [18:52:17]Content-Type: application/json [18:52:17] [18:52:17]POST finish read [18:52:17]Found Content-Length = 819 [18:52:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:17]execute_script... [18:52: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)949447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:17]POST & json_proto [18:52:17]process_json_proto [18:52:17]json parsed OK: [18:52:17]protocol is kg_v1.0 [18:52:17]action value=close_receipt [18:52:17]process_action close_receipt [18:52:17]cmd_close_receipt [18:52:17]MH_GetDate [18:52:17]Write to MH i2c: F0 00 00 58 15 5C [18:52:17]Write i2c OK [18:52:17]MH_I2C_Read... [18:52:17]Read from MH i2c: F0 [18:52:17]MH_I2C_Read... [18:52:17]Read from MH i2c: F0 09 00 [18:52:17]MH_I2C_Read... [18:52:17]Read from MH i2c: F0 09 00 58 15 00 62 93 A6 66 90 0F 3E 66 A9 [18:52:17]GetLastDocTimeStamp 1722192589 [18:52:17]current date 1722192738 [18:52:17]FM_GetShiftState [18:52:17]SAM_PROTO_GetShiftState [18:52:17]wFMCommunicate request_size=4 [18:52:17]MH_SAM_APDU [18:52:17]CAPDU: 80 13 01 00 [18:52:17]Write to MH i2c: E2 08 00 59 15 80 13 01 00 00 00 00 00 EB [18:52:17]Write i2c OK [18:52:17]MH_I2C_Read... [18:52:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:17]Read from MH i2c: E2 [18:52:17]MH_I2C_Read... [18:52:17]Read from MH i2c: E2 0E 00 [18:52:17]MH_I2C_Read... [18:52:17]Read from MH i2c: E2 0E 00 59 15 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 C2 [18:52:17]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:52:17]wFMCommunicate OK [18:52:17]SAM_PROTO_GetShiftState done [18:52:17]FM_GetShiftState done [18:52:17]opened in 1722125364 [18:52:17]opened+sec_in_day 1722211764 [18:52:17]quantity*price = 300075 [18:52:17]sum+1 = 300077 [18:52:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 230 28.07.2024 18:52 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118561 ФПД: 259515454376920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T185218&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118561&fm=259515454376920&tin=02508201610067®Number=0000000000092660&sum=300000 [18:52:18]StoreToDocumentArchive [18:52:18]shift 433 fd 118561 [18:52:18]save to /storage/0433/doc_00118561 [18:52:18]save last doc name /storage/0433/doc_00118561 to /storage/kkm_last_doc_name [18:52:18]save OK [18:52:18]Clear old archive folders... [18:52:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:52:18]tlvbuf is 01E8A3C0 [18:52:18]SAM_PROTO_ClearQueue [18:52:18]wFMCommunicate request_size=4 [18:52:18]MH_SAM_APDU [18:52:18]CAPDU: 80 09 00 00 [18:52:18]Write to MH i2c: E2 08 00 66 15 80 09 00 00 00 00 00 00 ED [18:52:18]Write i2c OK [18:52:18]MH_I2C_Read... [18:52:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:52:18]Read from MH i2c: E2 [18:52:18]MH_I2C_Read... [18:52:18]Read from MH i2c: E2 03 00 [18:52:18]MH_I2C_Read... [18:52:18]Read from MH i2c: E2 03 00 66 15 00 90 00 EF [18:52:18]RAPDU: 90 00 [18:52:18]wFMCommunicate OK [18:52:18]SAM_PROTO_ClearQueue done [18:52:18]KKMCreateOFDPacket [18:52:18]OFDProtocolAddRootSTLVToBuf [18:52:18]FM_MakeSignedData [18:52:18]FM_MakeSignedData [18:52:18]SAM_PROTO_SignData [18:52:18]wFMCommunicate request_size=4 [18:52:18]MH_SAM_APDU [18:52:18]CAPDU: 80 0D 01 02 [18:52:18]Write to MH i2c: E2 08 00 67 15 80 0D 01 02 00 00 00 00 F5 [18:52:18]Write i2c OK [18:52:18]MH_I2C_Read... [18:52:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:52:18]Read from MH i2c: E2 [18:52:18]MH_I2C_Read... [18:52:18]Read from MH i2c: E2 03 00 [18:52:18]MH_I2C_Read... [18:52:18]Read from MH i2c: E2 03 00 67 15 00 90 00 F0 [18:52:18]RAPDU: 90 00 [18:52:18]wFMCommunicate OK [18:52:18]wFMCommunicate request_size=255 [18:52:18]MH_SAM_APDU [18:52:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 62 93 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 21 CF 01 00 35 04 06 00 EC 07 26 78 [18:52:18]Write to MH i2c: E2 02 01 68 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 62 93 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 21 CF 01 00 35 04 06 00 EC 07 26 78 00 00 D7 [18:52:18]Write i2c OK [18:52:18]MH_I2C_Read... [18:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:18]Read from MH i2c: E2 [18:52:18]MH_I2C_Read... [18:52:18]Read from MH i2c: E2 03 00 [18:52:18]MH_I2C_Read... [18:52:18]Read from MH i2c: E2 03 00 68 15 00 90 00 F1 [18:52:18]RAPDU: 90 00 [18:52:18]wFMCommunicate OK [18:52:18]wFMCommunicate request_size=7 [18:52:18]MH_SAM_APDU [18:52:18]CAPDU: 80 0D 02 02 02 CB D8 [18:52:18]Write to MH i2c: E2 0A 00 69 15 80 0D 02 02 02 00 CB D8 00 00 9F [18:52:18]Write i2c OK [18:52:18]MH_I2C_Read... [18:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:18]Read from MH i2c: E2 [18:52:18]MH_I2C_Read... [18:52:18]Read from MH i2c: E2 03 00 [18:52:18]MH_I2C_Read... [18:52:18]Read from MH i2c: E2 03 00 69 15 00 90 00 F2 [18:52:18]RAPDU: 90 00 [18:52:18]wFMCommunicate OK [18:52:18]wFMCommunicate request_size=4 [18:52:18]MH_SAM_APDU [18:52:18]CAPDU: 80 0D 03 02 [18:52:18]Write to MH i2c: E2 08 00 6A 15 80 0D 03 02 00 00 00 00 FA [18:52:18]Write i2c OK [18:52:18]MH_I2C_Read... [18:52:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:18]Read from MH i2c: E2 [18:52:18]MH_I2C_Read... [18:52:18]Read from MH i2c: E2 0B 00 [18:52:18]MH_I2C_Read... [18:52:18]Read from MH i2c: E2 0B 00 6A 15 00 D1 BC 21 41 B1 D4 72 BB 90 00 9C [18:52:18]RAPDU: D1 BC 21 41 B1 D4 72 BB 90 00 [18:52:18]wFMCommunicate OK [18:52:18]SAM_PROTO_SignData done [18:52:18]FM_MakeSignedData done [18:52:18]CreateOFDProtocolMessage [18:52:18]wFMCommunicate request_size=4 [18:52:18]MH_SAM_APDU [18:52:18]CAPDU: 80 11 00 00 [18:52:18]Write to MH i2c: E2 08 00 6B 15 80 11 00 00 00 00 00 00 FA [18:52:18]Write i2c OK [18:52:18]MH_I2C_Read... [18:52:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:18]Read from MH i2c: E2 [18:52:18]MH_I2C_Read... [18:52:18]Read from MH i2c: E2 17 00 [18:52:18]MH_I2C_Read... [18:52:18]Read from MH i2c: E2 17 00 6B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 55 [18:52:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:52:18]wFMCommunicate OK [18:52:18]CreateOFDProtocolMessage done [18:52:18]OFDSenderStorePacket 118561 [18:52:18]StoreOFDPacket docnum=118561 [18:52:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 3C 29 04 01 33 05 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 62 93 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 21 CF 01 00 35 04 06 00 EC 07 26 78 CB D8 D1 BC 21 41 B1 D4 72 BB [18:52:18]CheckFolder [18:52:18]dirname=/storage/ofd_packets [18:52:18]CheckFolder done [18:52:18]ProducePacketName [18:52:18]name=ofd_packets/00118561 [18:52:18]NVStorageSaveData ofd_packets/00118561 [18:52:18]File name is /storage/ofd_packets/00118561 [18:52:18]Write 298 bytes [18:52:18]NVStorageSaveData done [18:52:18]OFDSenderStorePacket done [18:52:18]KKMCreateOFDPacket done [18:52:18]NVStorageSaveData kkm_last_timestamp [18:52:18]File name is /storage/kkm_last_timestamp [18:52:18]Write 4 bytes [18:52:18]NVStorageSaveData done [18:52:18]ExternCall_PrintAddStr [18:52:18]wPrintStart [18:52:18]Write to MH i2c: 01 00 00 6C 15 81 [18:52:18]Write i2c OK [18:52:18]MH_I2C_Read... [18:52:18]Read from MH i2c: 01 [18:52:18]MH_I2C_Read... [18:52:18]Read from MH i2c: 01 07 00 [18:52:18]MH_I2C_Read... [18:52:18]Read from MH i2c: 01 07 00 6C 15 00 00 00 00 00 FF 0F 96 [18:52:18]RasterBufferAndPrint [18:52:18]line Счет N : (1)949447 [18:52:18]line ИНН: 02508201610067 [18:52:18]line Контрольно-Кассовый Чек [18:52:18]line ПРОДАЖА [18:52:18]line ТРК (МРК, ГНК) : 11 [18:52:18]line Товар: 2710194800 [18:52:18]line ДТ-К-5 [18:52:18]line 39.380 * 76.20 [18:52:18]line = 3000.76 [18:52:18]line НДС 12% НСП 1% [18:52:18]line > о реализуемом товаре [18:52:18]line ОКРУГЛЕНИЕ: -0.76 [18:52:18]line ИТОГО: 3000.00 [18:52:18]line НСП 1% : 26.55 [18:52:18]line НДС 12% : 318.66 [18:52:18]line Наличными: 0.00 [18:52:18]line Безнал.: 3000.00 [18:52:18]line Место: АЗС № 134 "Партнер Нефть" [18:52:18]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:52:18]line СНО: Общий режим [18:52:18]line Чек 230 28.07.2024 18:52 [18:52:18]line Смена: 433 ФФД: 1.0 [18:52:18]line ЗНМ: 0300000044 [18:52:18]line РНМ: 0000000000092660 [18:52:18]line Версия ККМ: 001 [18:52:18]line Платежная система: O! деньги [18:52:18]line ФМ: 0000000000874939 [18:52:18]line ФД: 118561 [18:52:18]line ФПД: 259515454376920 [18:52:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T185218&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118561&fm=259515454376920&tin=02508201610067®Number=0000000000092660&sum=300000 [18:52:19]OFD Sender: Processing packet 118561 [packets to send 86, broken 85] [18:52:19]ProducePacketName [18:52:19]name=ofd_packets/00118561 [18:52:19]OFD Sender: To server: pG, [18:52:19]CommunicateWithHost lk.salyk.kg:30040 [18:52:19]ConnectInit lk.salyk.kg [18:52:19]written 0, free lines is 4095 [18:52:19]Connected sock=10 [18:52: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 39 33 39 0C 01 00 00 3C 29 04 01 33 05 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 62 93 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 21 CF 01 00 35 04 06 00 EC 07 26 78 CB D8 D1 BC 21 41 B1 D4 72 BB [18:52:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E4 70 47 00 72 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 39 33 39 10 04 04 00 21 CF 01 00 F4 03 04 00 F2 40 A6 66 B6 04 01 00 00 EF 83 1C E0 39 89 49 29 [18:52:19]CommunicateWithHost err = 0 [18:52:19]CheckOFDResponse [18:52:19]1017 (14) - 77093643461234 [18:52:19]1041 (16) - 0000000000874939 [18:52:19]1040 (4) - 118561 [18:52:19]1012 (4) - 28.07.2024 13:00 [18:52:19]1206 (1) - 0 [18:52:19]OFD Sender: Remove packet 118561 [18:52:19]ProducePacketName [18:52:19]name=ofd_packets/00118561 [18:52:19]NVStorageDeleteData [18:52:19]Write to MH i2c: 01 00 00 96 15 AB [18:52:19]Write i2c OK [18:52:19]MH_I2C_Read... [18:52:19]Read from MH i2c: 01 [18:52:19]MH_I2C_Read... [18:52:19]Read from MH i2c: 01 07 00 [18:52:19]MH_I2C_Read... [18:52:19]Read from MH i2c: 01 07 00 96 15 00 00 00 00 00 D6 0C 94 [18:52:19]RasterBufferAndPrint [18:52:19]line [18:52:19]line [18:52:19]line [18:52:19]line [18:52:19]line [18:52:19]written 0, free lines is 3293 [18:52:19]MH_Cut [18:52:19]Write to MH i2c: D1 01 00 9D 15 01 84 [18:52:19]Write i2c OK [18:52:19]MH_I2C_Read... [18:52:19]Read from MH i2c: D1 [18:52:19]MH_I2C_Read... [18:52:19]Read from MH i2c: D1 01 00 [18:52:19]MH_I2C_Read... [18:52:19]Read from MH i2c: D1 01 00 9D 15 00 83 [18:52:19]Write to MH i2c: 01 00 00 9E 15 B3 [18:52:19]Write i2c OK [18:52:19]MH_I2C_Read... [18:52:19]OFD Sender: No OFD packet to send [18:52:20]*** Cut start [18:52:20]*** Partial cut [18:52:20]*** CUTSNS_PIN = 1 [18:52:20]*** CUTSNS_PIN = 0 [18:52:20]*** Brake cut motor [18:52:20]Read from MH i2c: 01 [18:52:20]MH_I2C_Read... [18:52:20]*** Stop cut motor [18:52:20]*** Cut end [18:52:20]Read from MH i2c: 01 07 00 [18:52:20]MH_I2C_Read... [18:52:20]Read from MH i2c: 01 07 00 9E 15 00 00 00 00 00 FF 0F C8 [18:52:20]process_action close_receipt done [18:52:20]requested_data is exist [18:52:20]produce_requested_data [18:52:20]requested_item fm.sn is exist - process it [18:52:20]wFMCommunicate request_size=4 [18:52:20]MH_SAM_APDU [18:52:20]CAPDU: 80 11 00 00 [18:52:20]Write to MH i2c: E2 08 00 9F 15 80 11 00 00 00 00 00 00 2E [18:52:20]Write i2c OK [18:52:20]MH_I2C_Read... [18:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:20]Read from MH i2c: E2 [18:52:20]MH_I2C_Read... [18:52:20]Read from MH i2c: E2 17 00 [18:52:20]MH_I2C_Read... [18:52:20]Read from MH i2c: E2 17 00 9F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 89 [18:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:52:20]wFMCommunicate OK [18:52:20]requested_item fd.num is exist - process it [18:52:20]SAM_PROTO_GetFieldsCounters [18:52:20]wFMCommunicate request_size=4 [18:52:20]MH_SAM_APDU [18:52:20]CAPDU: 80 13 00 00 [18:52:20]Write to MH i2c: E2 08 00 A0 15 80 13 00 00 00 00 00 00 31 [18:52:20]Write i2c OK [18:52:20]MH_I2C_Read... [18:52:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:21]Read from MH i2c: E2 [18:52:21]MH_I2C_Read... [18:52:21]Read from MH i2c: E2 62 00 [18:52:21]MH_I2C_Read... [18:52:21]Read from MH i2c: E2 62 00 A0 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 21 CF 01 00 0E 04 04 00 B1 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 AD [18:52:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 21 CF 01 00 0E 04 04 00 B1 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 [18:52:21]wFMCommunicate OK [18:52:21]SAM_PROTO_GetFieldsCounters done [18:52:21]requested_item shift.num is exist - process it [18:52:21]requested_item shift.opened is exist - process it [18:52:21]req_shift_opened [18:52:21]FM_GetShiftState [18:52:21]SAM_PROTO_GetShiftState [18:52:21]wFMCommunicate request_size=4 [18:52:21]MH_SAM_APDU [18:52:21]CAPDU: 80 13 01 00 [18:52:21]Write to MH i2c: E2 08 00 A1 15 80 13 01 00 00 00 00 00 33 [18:52:21]Write i2c OK [18:52:21]MH_I2C_Read... [18:52:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:21]Read from MH i2c: E2 [18:52:21]MH_I2C_Read... [18:52:21]Read from MH i2c: E2 0E 00 [18:52:21]MH_I2C_Read... [18:52:21]Read from MH i2c: E2 0E 00 A1 15 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 0A [18:52:21]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:52:21]wFMCommunicate OK [18:52:21]SAM_PROTO_GetShiftState done [18:52:21]FM_GetShiftState done [18:52:21]req_shift_opened done [18:52:21]requested_item shift.open_date is exist - process it [18:52:21]req_shift_open_date [18:52:21]req_shift_open_date done [18:52:21]produce_requested_data done [18:52:21]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118561,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:52:21]process_action_free close_receipt [18:52:21]json_value_free [18:52:21]json_value_free done [18:52:21]process_json_proto returns [18:52:21]Send response to host [18:52:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118561,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:52:21]free response buf [18:52:21]execute_script done [18:52:21]execute_script returns [18:52:21]free content buf [18:52:21]Sock 7.Close socket [18:52:21]Sock 7.Thread stoped [18:52:24]OFD Sender: No OFD packet to send [18:52:29]OFD Sender: No OFD packet to send [18:52:34]OFD Sender: No OFD packet to send [18:52:39]OFD Sender: No OFD packet to send [18:52:44]OFD Sender: No OFD packet to send [18:52:49]OFD Sender: No OFD packet to send [18:52:54]OFD Sender: No OFD packet to send [18:52:59]OFD Sender: No OFD packet to send [18:53:04]OFD Sender: No OFD packet to send [18:53:09]OFD Sender: No OFD packet to send [18:53:14]OFD Sender: No OFD packet to send [18:53:19]OFD Sender: No OFD packet to send [18:53:25]OFD Sender: No OFD packet to send [18:53:30]OFD Sender: No OFD packet to send [18:53:35]OFD Sender: No OFD packet to send [18:53:40]OFD Sender: No OFD packet to send [18:53:45]OFD Sender: No OFD packet to send [18:53:50]OFD Sender: No OFD packet to send [18:53:55]OFD Sender: No OFD packet to send [18:54:00]OFD Sender: No OFD packet to send [18:54:05]OFD Sender: No OFD packet to send [18:54:10]OFD Sender: No OFD packet to send [18:54:15]OFD Sender: No OFD packet to send [18:54:20]OFD Sender: No OFD packet to send [18:54:25]OFD Sender: No OFD packet to send [18:54:30]OFD Sender: No OFD packet to send [18:54:35]OFD Sender: No OFD packet to send [18:54:40]OFD Sender: No OFD packet to send [18:54:45]OFD Sender: No OFD packet to send [18:54:50]OFD Sender: No OFD packet to send [18:54:55]OFD Sender: No OFD packet to send [18:55:00]OFD Sender: No OFD packet to send [18:55:05]OFD Sender: No OFD packet to send [18:55:10]OFD Sender: No OFD packet to send [18:55:15]OFD Sender: No OFD packet to send [18:55:20]OFD Sender: No OFD packet to send [18:55:25]OFD Sender: No OFD packet to send [18:55:30]OFD Sender: No OFD packet to send [18:55:35]OFD Sender: No OFD packet to send [18:55:40]OFD Sender: No OFD packet to send [18:55:45]OFD Sender: No OFD packet to send [18:55:50]OFD Sender: No OFD packet to send [18:55:55]OFD Sender: No OFD packet to send [18:56:00]OFD Sender: No OFD packet to send [18:56:05]OFD Sender: No OFD packet to send [18:56:10]OFD Sender: No OFD packet to send [18:56:15]OFD Sender: No OFD packet to send [18:56:20]OFD Sender: No OFD packet to send [18:56:25]OFD Sender: No OFD packet to send [18:56:30]OFD Sender: No OFD packet to send [18:56:35]OFD Sender: No OFD packet to send [18:56:40]OFD Sender: No OFD packet to send [18:56:45]OFD Sender: No OFD packet to send [18:56:50]OFD Sender: No OFD packet to send [18:56:55]OFD Sender: No OFD packet to send [18:57:00]OFD Sender: No OFD packet to send [18:57:05]OFD Sender: No OFD packet to send [18:57:10]OFD Sender: No OFD packet to send [18:57:15]OFD Sender: No OFD packet to send [18:57:17]accept exits with 9 [18:57:17]New connection [18:57:17]New thread 3067239780 created [18:57:17]Thread 3067383140 joined [18:57:17]Waiting for new connection... [18:57:17] Sock 9.Parse request [18:57:17]Sock 9.Check first char [18:57:17]Sock 9.First char is OK [18:57:17]request: POST /json_proto HTTP/1.0 [18:57:17]Method: POST [18:57:17]URL: /json_proto [18:57:17]Method is POST - this is cgi request [18:57:17]url: /json_proto [18:57:17]query_string will be loaded in cgi processing [18:57:17]execute_cgi json_proto POST (null) [18:57:17]execute_cgi path=json_proto method=POST [18:57:17]POST find Content-Length [18:57:17]Host: 172.17.45.7:8080 [18:57:17]Content-Length: 677 [18:57:17]Content-Type: application/json [18:57:17] [18:57:17]POST finish read [18:57:17]Found Content-Length = 677 [18:57:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:17]execute_script... [18:57: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)949448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:17]POST & json_proto [18:57:17]process_json_proto [18:57:17]json parsed OK: [18:57:17]protocol is kg_v1.0 [18:57:17]action value=close_receipt [18:57:17]process_action close_receipt [18:57:17]cmd_close_receipt [18:57:17]MH_GetDate [18:57:17]Write to MH i2c: F0 00 00 A2 15 A6 [18:57:17]Write i2c OK [18:57:17]MH_I2C_Read... [18:57:17]Read from MH i2c: F0 [18:57:17]MH_I2C_Read... [18:57:17]Read from MH i2c: F0 09 00 [18:57:17]MH_I2C_Read... [18:57:17]Read from MH i2c: F0 09 00 A2 15 00 8F 94 A6 66 90 0F 3E 66 21 [18:57:17]GetLastDocTimeStamp 1722192738 [18:57:17]current date 1722193039 [18:57:17]FM_GetShiftState [18:57:17]SAM_PROTO_GetShiftState [18:57:17]wFMCommunicate request_size=4 [18:57:17]MH_SAM_APDU [18:57:17]CAPDU: 80 13 01 00 [18:57:17]Write to MH i2c: E2 08 00 A3 15 80 13 01 00 00 00 00 00 35 [18:57:17]Write i2c OK [18:57:17]MH_I2C_Read... [18:57:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:18]Read from MH i2c: E2 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: E2 0E 00 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: E2 0E 00 A3 15 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 0C [18:57:18]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:57:18]wFMCommunicate OK [18:57:18]SAM_PROTO_GetShiftState done [18:57:18]FM_GetShiftState done [18:57:18]opened in 1722125364 [18:57:18]opened+sec_in_day 1722211764 [18:57:18]quantity*price = 50036 [18:57:18]sum+1 = 50037 [18:57:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 231 28.07.2024 18:57 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118562 ФПД: 225683904585581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T185719&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118562&fm=225683904585581&tin=02508201610067®Number=0000000000092660&sum=50000 [18:57:19]StoreToDocumentArchive [18:57:19]shift 433 fd 118562 [18:57:19]save to /storage/0433/doc_00118562 [18:57:19]save last doc name /storage/0433/doc_00118562 to /storage/kkm_last_doc_name [18:57:19]save OK [18:57:19]Clear old archive folders... [18:57:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:57:19]tlvbuf is B6FC1B20 [18:57:19]SAM_PROTO_ClearQueue [18:57:19]wFMCommunicate request_size=4 [18:57:19]MH_SAM_APDU [18:57:19]CAPDU: 80 09 00 00 [18:57:19]Write to MH i2c: E2 08 00 B0 15 80 09 00 00 00 00 00 00 37 [18:57:19]Write i2c OK [18:57:19]MH_I2C_Read... [18:57:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:19]Read from MH i2c: E2 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: E2 03 00 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: E2 03 00 B0 15 00 90 00 39 [18:57:19]RAPDU: 90 00 [18:57:19]wFMCommunicate OK [18:57:19]SAM_PROTO_ClearQueue done [18:57:19]KKMCreateOFDPacket [18:57:19]OFDProtocolAddRootSTLVToBuf [18:57:19]FM_MakeSignedData [18:57:19]FM_MakeSignedData [18:57:19]SAM_PROTO_SignData [18:57:19]wFMCommunicate request_size=4 [18:57:19]MH_SAM_APDU [18:57:19]CAPDU: 80 0D 01 02 [18:57:19]Write to MH i2c: E2 08 00 B1 15 80 0D 01 02 00 00 00 00 3F [18:57:19]Write i2c OK [18:57:19]MH_I2C_Read... [18:57:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:19]Read from MH i2c: E2 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: E2 03 00 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: E2 03 00 B1 15 00 90 00 3A [18:57:19]RAPDU: 90 00 [18:57:19]wFMCommunicate OK [18:57:19]wFMCommunicate request_size=255 [18:57:19]MH_SAM_APDU [18:57: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 8F 94 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 22 CF 01 00 35 04 06 00 CD [18:57:19]Write to MH i2c: E2 02 01 B2 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 8F 94 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 22 CF 01 00 35 04 06 00 CD 00 00 4A [18:57:19]Write i2c OK [18:57:19]MH_I2C_Read... [18:57:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:19]Read from MH i2c: E2 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: E2 03 00 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: E2 03 00 B2 15 00 90 00 3B [18:57:19]RAPDU: 90 00 [18:57:19]wFMCommunicate OK [18:57:19]wFMCommunicate request_size=10 [18:57:19]MH_SAM_APDU [18:57:19]CAPDU: 80 0D 02 02 05 42 20 F6 DF 6D [18:57:19]Write to MH i2c: E2 0D 00 B3 15 80 0D 02 02 05 00 42 20 F6 DF 6D 00 00 F0 [18:57:19]Write i2c OK [18:57:19]MH_I2C_Read... [18:57:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:19]Read from MH i2c: E2 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: E2 03 00 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: E2 03 00 B3 15 00 90 00 3C [18:57:19]RAPDU: 90 00 [18:57:19]wFMCommunicate OK [18:57:19]wFMCommunicate request_size=4 [18:57:19]MH_SAM_APDU [18:57:19]CAPDU: 80 0D 03 02 [18:57:19]Write to MH i2c: E2 08 00 B4 15 80 0D 03 02 00 00 00 00 44 [18:57:19]Write i2c OK [18:57:19]MH_I2C_Read... [18:57:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:19]Read from MH i2c: E2 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: E2 0B 00 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: E2 0B 00 B4 15 00 DC E7 A6 86 4B 4C 40 88 90 00 93 [18:57:19]RAPDU: DC E7 A6 86 4B 4C 40 88 90 00 [18:57:19]wFMCommunicate OK [18:57:19]SAM_PROTO_SignData done [18:57:19]FM_MakeSignedData done [18:57:19]CreateOFDProtocolMessage [18:57:19]wFMCommunicate request_size=4 [18:57:19]MH_SAM_APDU [18:57:19]CAPDU: 80 11 00 00 [18:57:19]Write to MH i2c: E2 08 00 B5 15 80 11 00 00 00 00 00 00 44 [18:57:19]Write i2c OK [18:57:19]MH_I2C_Read... [18:57:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:19]Read from MH i2c: E2 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: E2 17 00 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: E2 17 00 B5 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9F [18:57:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:57:19]wFMCommunicate OK [18:57:19]CreateOFDProtocolMessage done [18:57:19]OFDSenderStorePacket 118562 [18:57:19]StoreOFDPacket docnum=118562 [18:57:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E6 8B 07 01 D3 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 8F 94 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 22 CF 01 00 35 04 06 00 CD 42 20 F6 DF 6D DC E7 A6 86 4B 4C 40 88 [18:57:19]CheckFolder [18:57:19]dirname=/storage/ofd_packets [18:57:19]CheckFolder done [18:57:19]ProducePacketName [18:57:19]name=ofd_packets/00118562 [18:57:19]NVStorageSaveData ofd_packets/00118562 [18:57:19]File name is /storage/ofd_packets/00118562 [18:57:19]Write 301 bytes [18:57:19]NVStorageSaveData done [18:57:19]OFDSenderStorePacket done [18:57:19]KKMCreateOFDPacket done [18:57:19]NVStorageSaveData kkm_last_timestamp [18:57:19]File name is /storage/kkm_last_timestamp [18:57:19]Write 4 bytes [18:57:19]NVStorageSaveData done [18:57:19]ExternCall_PrintAddStr [18:57:19]wPrintStart [18:57:19]Write to MH i2c: 01 00 00 B6 15 CB [18:57:19]Write i2c OK [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: 01 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: 01 07 00 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: 01 07 00 B6 15 00 00 00 00 00 FF 0F E0 [18:57:19]RasterBufferAndPrint [18:57:19]line Счет N : (1)949448 [18:57:19]line ИНН: 02508201610067 [18:57:19]line Контрольно-Кассовый Чек [18:57:19]line ПРОДАЖА [18:57:19]line ТРК (МРК, ГНК) : 31 [18:57:19]line Товар: 2710124130 [18:57:19]line Аи-92-К-4 [18:57:19]line 7.380 * 67.80 [18:57:19]line = 500.36 [18:57:19]line НДС 12% НСП 1% [18:57:19]line > о реализуемом товаре [18:57:19]line ОКРУГЛЕНИЕ: -0.36 [18:57:19]line ИТОГО: 500.00 [18:57:19]line Внесено: 500.00 [18:57:19]line СДАЧА: 0.00 [18:57:19]line НСП 1% : 4.43 [18:57:19]line НДС 12% : 53.14 [18:57:19]line Наличными: 500.00 [18:57:19]line Безнал.: 0.00 [18:57:19]line Место: АЗС № 134 "Партнер Нефть" [18:57:19]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:57:19]line СНО: Общий режим [18:57:19]line Чек 231 28.07.2024 18:57 [18:57:19]line Смена: 433 ФФД: 1.0 [18:57:19]line ЗНМ: 0300000044 [18:57:19]line РНМ: 0000000000092660 [18:57:19]line Версия ККМ: 001 [18:57:19]line ФМ: 0000000000874939 [18:57:19]line ФД: 118562 [18:57:19]line ФПД: 225683904585581 [18:57:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T185719&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118562&fm=225683904585581&tin=02508201610067®Number=0000000000092660&sum=50000 [18:57:20]OFD Sender: Processing packet 118562 [packets to send 86, broken 85] [18:57:20]ProducePacketName [18:57:20]name=ofd_packets/00118562 [18:57:20]OFD Sender: To server: pG, [18:57:20]CommunicateWithHost lk.salyk.kg:30040 [18:57:20]ConnectInit lk.salyk.kg [18:57:20]written 0, free lines is 4095 [18:57:20]Connected sock=10 [18:57:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E6 8B 07 01 D3 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 8F 94 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 22 CF 01 00 35 04 06 00 CD 42 20 F6 DF 6D DC E7 A6 86 4B 4C 40 88 [18:57:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F7 12 47 00 5E 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 22 CF 01 00 F4 03 04 00 1F 42 A6 66 B6 04 01 00 00 63 9B 71 33 59 F1 9C 04 [18:57:20]CommunicateWithHost err = 0 [18:57:20]CheckOFDResponse [18:57:20]1017 (14) - 77093643461234 [18:57:20]1041 (16) - 0000000000874939 [18:57:20]1040 (4) - 118562 [18:57:20]1012 (4) - 28.07.2024 13:05 [18:57:20]1206 (1) - 0 [18:57:20]OFD Sender: Remove packet 118562 [18:57:20]ProducePacketName [18:57:20]name=ofd_packets/00118562 [18:57:20]NVStorageDeleteData [18:57:20]Write to MH i2c: 01 00 00 E0 15 F5 [18:57:20]Write i2c OK [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: 01 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: 01 07 00 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: 01 07 00 E0 15 00 00 00 00 00 DC 0C E4 [18:57:20]RasterBufferAndPrint [18:57:20]line [18:57:20]line [18:57:20]line [18:57:20]line [18:57:20]line [18:57:20]written 0, free lines is 3298 [18:57:20]MH_Cut [18:57:20]Write to MH i2c: D1 01 00 E7 15 01 CE [18:57:20]Write i2c OK [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: D1 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: D1 01 00 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: D1 01 00 E7 15 00 CD [18:57:20]Write to MH i2c: 01 00 00 E8 15 FD [18:57:20]Write i2c OK [18:57:20]MH_I2C_Read... [18:57:20]OFD Sender: No OFD packet to send [18:57:21]*** Cut start [18:57:21]*** Partial cut [18:57:21]*** CUTSNS_PIN = 1 [18:57:21]*** CUTSNS_PIN = 0 [18:57:21]*** Brake cut motor [18:57:21]Read from MH i2c: 01 [18:57:21]MH_I2C_Read... [18:57:21]*** Stop cut motor [18:57:21]*** Cut end [18:57:21]Read from MH i2c: 01 07 00 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: 01 07 00 E8 15 00 00 00 00 00 FF 0F 12 [18:57:21]process_action close_receipt done [18:57:21]requested_data is exist [18:57:21]produce_requested_data [18:57:21]requested_item fm.sn is exist - process it [18:57:21]wFMCommunicate request_size=4 [18:57:21]MH_SAM_APDU [18:57:21]CAPDU: 80 11 00 00 [18:57:21]Write to MH i2c: E2 08 00 E9 15 80 11 00 00 00 00 00 00 78 [18:57:21]Write i2c OK [18:57:21]MH_I2C_Read... [18:57:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:21]Read from MH i2c: E2 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 17 00 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 17 00 E9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D3 [18:57:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:57:21]wFMCommunicate OK [18:57:21]requested_item fd.num is exist - process it [18:57:21]SAM_PROTO_GetFieldsCounters [18:57:21]wFMCommunicate request_size=4 [18:57:21]MH_SAM_APDU [18:57:21]CAPDU: 80 13 00 00 [18:57:21]Write to MH i2c: E2 08 00 EA 15 80 13 00 00 00 00 00 00 7B [18:57:21]Write i2c OK [18:57:21]MH_I2C_Read... [18:57:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:22]Read from MH i2c: E2 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 62 00 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 62 00 EA 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 22 CF 01 00 0E 04 04 00 B1 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 FB [18:57:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 22 CF 01 00 0E 04 04 00 B1 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 [18:57:22]wFMCommunicate OK [18:57:22]SAM_PROTO_GetFieldsCounters done [18:57:22]requested_item shift.num is exist - process it [18:57:22]requested_item shift.opened is exist - process it [18:57:22]req_shift_opened [18:57:22]FM_GetShiftState [18:57:22]SAM_PROTO_GetShiftState [18:57:22]wFMCommunicate request_size=4 [18:57:22]MH_SAM_APDU [18:57:22]CAPDU: 80 13 01 00 [18:57:22]Write to MH i2c: E2 08 00 EB 15 80 13 01 00 00 00 00 00 7D [18:57:22]Write i2c OK [18:57:22]MH_I2C_Read... [18:57:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:22]Read from MH i2c: E2 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 0E 00 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 0E 00 EB 15 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 54 [18:57:22]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [18:57:22]wFMCommunicate OK [18:57:22]SAM_PROTO_GetShiftState done [18:57:22]FM_GetShiftState done [18:57:22]req_shift_opened done [18:57:22]requested_item shift.open_date is exist - process it [18:57:22]req_shift_open_date [18:57:22]req_shift_open_date done [18:57:22]produce_requested_data done [18:57:22]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118562,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [18:57:22]process_action_free close_receipt [18:57:22]json_value_free [18:57:22]json_value_free done [18:57:22]process_json_proto returns [18:57:22]Send response to host [18:57:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118562,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [18:57:22]free response buf [18:57:22]execute_script done [18:57:22]execute_script returns [18:57:22]free content buf [18:57:22]Sock 9.Close socket [18:57:22]Sock 9.Thread stoped [18:57:25]OFD Sender: No OFD packet to send [18:57:30]OFD Sender: No OFD packet to send [18:57:35]OFD Sender: No OFD packet to send [18:57:40]OFD Sender: No OFD packet to send [18:57:45]OFD Sender: No OFD packet to send [18:57:50]OFD Sender: No OFD packet to send [18:57:55]OFD Sender: No OFD packet to send [18:58:00]OFD Sender: No OFD packet to send [18:58:05]OFD Sender: No OFD packet to send [18:58:10]OFD Sender: No OFD packet to send [18:58:15]OFD Sender: No OFD packet to send [18:58:20]OFD Sender: No OFD packet to send [18:58:25]OFD Sender: No OFD packet to send [18:58:30]OFD Sender: No OFD packet to send [18:58:35]OFD Sender: No OFD packet to send [18:58:40]OFD Sender: No OFD packet to send [18:58:45]OFD Sender: No OFD packet to send [18:58:50]OFD Sender: No OFD packet to send [18:58:55]OFD Sender: No OFD packet to send [18:59:00]OFD Sender: No OFD packet to send [18:59:05]OFD Sender: No OFD packet to send [18:59:10]OFD Sender: No OFD packet to send [18:59:15]OFD Sender: No OFD packet to send [18:59:20]OFD Sender: No OFD packet to send [18:59:25]OFD Sender: No OFD packet to send [18:59:30]OFD Sender: No OFD packet to send [18:59:35]OFD Sender: No OFD packet to send [18:59:40]OFD Sender: No OFD packet to send [18:59:45]OFD Sender: No OFD packet to send [18:59:50]OFD Sender: No OFD packet to send [18:59:55]OFD Sender: No OFD packet to send [19:00:00]OFD Sender: No OFD packet to send [19:00:05]OFD Sender: No OFD packet to send [19:00:10]OFD Sender: No OFD packet to send [19:00:15]OFD Sender: No OFD packet to send [19:00:20]OFD Sender: No OFD packet to send [19:00:25]OFD Sender: No OFD packet to send [19:00:30]OFD Sender: No OFD packet to send [19:00:35]OFD Sender: No OFD packet to send [19:00:40]OFD Sender: No OFD packet to send [19:00:45]OFD Sender: No OFD packet to send [19:00:50]OFD Sender: No OFD packet to send [19:00:55]OFD Sender: No OFD packet to send [19:01:00]OFD Sender: No OFD packet to send [19:01:06]OFD Sender: No OFD packet to send [19:01:11]OFD Sender: No OFD packet to send [19:01:16]OFD Sender: No OFD packet to send [19:01:21]OFD Sender: No OFD packet to send [19:01:26]OFD Sender: No OFD packet to send [19:01:31]OFD Sender: No OFD packet to send [19:01:36]OFD Sender: No OFD packet to send [19:01:41]OFD Sender: No OFD packet to send [19:01:46]OFD Sender: No OFD packet to send [19:01:51]OFD Sender: No OFD packet to send [19:01:56]OFD Sender: No OFD packet to send [19:02:01]OFD Sender: No OFD packet to send [19:02:06]OFD Sender: No OFD packet to send [19:02:11]OFD Sender: No OFD packet to send [19:02:16]OFD Sender: No OFD packet to send [19:02:21]OFD Sender: No OFD packet to send [19:02:26]OFD Sender: No OFD packet to send [19:02:31]OFD Sender: No OFD packet to send [19:02:36]OFD Sender: No OFD packet to send [19:02:41]OFD Sender: No OFD packet to send [19:02:46]OFD Sender: No OFD packet to send [19:02:51]OFD Sender: No OFD packet to send [19:02:56]OFD Sender: No OFD packet to send [19:03:01]OFD Sender: No OFD packet to send [19:03:06]OFD Sender: No OFD packet to send [19:03:11]OFD Sender: No OFD packet to send [19:03:16]OFD Sender: No OFD packet to send [19:03:21]OFD Sender: No OFD packet to send [19:03:26]OFD Sender: No OFD packet to send [19:03:31]OFD Sender: No OFD packet to send [19:03:36]OFD Sender: No OFD packet to send [19:03:41]OFD Sender: No OFD packet to send [19:03:46]OFD Sender: No OFD packet to send [19:03:51]OFD Sender: No OFD packet to send [19:03:56]OFD Sender: No OFD packet to send [19:04:01]OFD Sender: No OFD packet to send [19:04:06]OFD Sender: No OFD packet to send [19:04:11]OFD Sender: No OFD packet to send [19:04:16]OFD Sender: No OFD packet to send [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04:31]OFD Sender: No OFD packet to send [19:04:36]OFD Sender: No OFD packet to send [19:04:41]OFD Sender: No OFD packet to send [19:04:46]OFD Sender: No OFD packet to send [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]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:51]OFD Sender: No OFD packet to send [19:09:56]OFD Sender: No OFD packet to send [19:10:01]OFD Sender: No OFD packet to send [19:10:06]OFD Sender: No OFD packet to send [19:10:11]OFD Sender: No OFD packet to send [19:10:16]OFD Sender: No OFD packet to send [19:10:21]OFD Sender: No OFD packet to send [19:10:26]OFD Sender: No OFD packet to send [19:10:31]OFD Sender: No OFD packet to send [19:10:36]OFD Sender: No OFD packet to send [19:10:41]OFD Sender: No OFD packet to send [19:10:46]OFD Sender: No OFD packet to send [19:10:51]OFD Sender: No OFD packet to send [19:10:56]OFD Sender: No OFD packet to send [19:11:01]OFD Sender: No OFD packet to send [19:11:06]OFD Sender: No OFD packet to send [19:11:11]OFD Sender: No OFD packet to send [19:11:16]OFD Sender: No OFD packet to send [19:11:21]OFD Sender: No OFD packet to send [19:11:26]OFD Sender: No OFD packet to send [19:11:31]OFD Sender: No OFD packet to send [19:11:36]OFD Sender: No OFD packet to send [19:11:41]OFD Sender: No OFD packet to send [19:11:46]OFD Sender: No OFD packet to send [19:11:51]OFD Sender: No OFD packet to send [19:11:56]OFD Sender: No OFD packet to send [19:12:01]OFD Sender: No OFD packet to send [19:12:06]OFD Sender: No OFD packet to send [19:12:11]OFD Sender: No OFD packet to send [19:12:16]OFD Sender: No OFD packet to send [19:12:21]OFD Sender: No OFD packet to send [19:12:26]OFD Sender: No OFD packet to send [19:12:31]OFD Sender: No OFD packet to send [19:12:36]OFD Sender: No OFD packet to send [19:12:41]OFD Sender: No OFD packet to send [19:12:46]OFD Sender: No OFD packet to send [19:12:51]OFD Sender: No OFD packet to send [19:12:56]OFD Sender: No OFD packet to send [19:13:01]OFD Sender: No OFD packet to send [19:13:06]OFD Sender: No OFD packet to send [19:13:11]OFD Sender: No OFD packet to send [19:13:16]OFD Sender: No OFD packet to send [19:13:21]OFD Sender: No OFD packet to send [19:13:26]OFD Sender: No OFD packet to send [19:13:31]OFD Sender: No OFD packet to send [19:13:36]OFD Sender: No OFD packet to send [19:13:41]OFD Sender: No OFD packet to send [19:13:46]OFD Sender: No OFD packet to send [19:13:51]OFD Sender: No OFD packet to send [19:13:56]OFD Sender: No OFD packet to send [19:14:01]OFD Sender: No OFD packet to send [19:14:06]OFD Sender: No OFD packet to send [19:14:11]OFD Sender: No OFD packet to send [19:14:16]OFD Sender: No OFD packet to send [19:14:21]OFD Sender: No OFD packet to send [19:14:26]OFD Sender: No OFD packet to send [19:14:31]OFD Sender: No OFD packet to send [19:14:36]OFD Sender: No OFD packet to send [19:14:41]OFD Sender: No OFD packet to send [19:14:46]OFD Sender: No OFD packet to send [19:14:51]OFD Sender: No OFD packet to send [19:14:56]OFD Sender: No OFD packet to send [19:15:01]OFD Sender: No OFD packet to send [19:15:06]OFD Sender: No OFD packet to send [19:15:11]OFD Sender: No OFD packet to send [19:15:16]OFD Sender: No OFD packet to send [19:15:21]accept exits with 7 [19:15:21]New connection [19:15:21]New thread 3067383140 created [19:15:21]Thread 3067239780 joined [19:15:21]Waiting for new connection... [19:15:21] Sock 7.Parse request [19:15:21]Sock 7.Check first char [19:15:21]Sock 7.First char is OK [19:15:21]request: POST /json_proto HTTP/1.0 [19:15:21]Method: POST [19:15:21]URL: /json_proto [19:15:21]Method is POST - this is cgi request [19:15:21]url: /json_proto [19:15:21]query_string will be loaded in cgi processing [19:15:21]execute_cgi json_proto POST (null) [19:15:21]execute_cgi path=json_proto method=POST [19:15:21]POST find Content-Length [19:15:21]Host: 172.17.45.7:8080 [19:15:21]Content-Length: 677 [19:15:21]Content-Type: application/json [19:15:21] [19:15:21]POST finish read [19:15:21]Found Content-Length = 677 [19:15:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:21]execute_script... [19: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)949449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:21]POST & json_proto [19:15:21]process_json_proto [19:15:21]json parsed OK: [19:15:21]protocol is kg_v1.0 [19:15:21]action value=close_receipt [19:15:21]process_action close_receipt [19:15:21]cmd_close_receipt [19:15:21]MH_GetDate [19:15:21]Write to MH i2c: F0 00 00 EC 15 F0 [19:15:21]Write i2c OK [19:15:21]MH_I2C_Read... [19:15:21]Read from MH i2c: F0 [19:15:21]MH_I2C_Read... [19:15:21]Read from MH i2c: F0 09 00 [19:15:21]MH_I2C_Read... [19:15:21]Read from MH i2c: F0 09 00 EC 15 00 CB 98 A6 66 90 0F 3E 66 AB [19:15:21]GetLastDocTimeStamp 1722193039 [19:15:21]current date 1722194123 [19:15:21]FM_GetShiftState [19:15:21]SAM_PROTO_GetShiftState [19:15:21]wFMCommunicate request_size=4 [19:15:21]MH_SAM_APDU [19:15:21]CAPDU: 80 13 01 00 [19:15:21]Write to MH i2c: E2 08 00 ED 15 80 13 01 00 00 00 00 00 7F [19:15:21]Write i2c OK [19:15:21]MH_I2C_Read... [19:15:21]OFD Sender: No OFD packet to send [19:15:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:21]Read from MH i2c: E2 [19:15:21]MH_I2C_Read... [19:15:21]Read from MH i2c: E2 0E 00 [19:15:21]MH_I2C_Read... [19:15:21]Read from MH i2c: E2 0E 00 ED 15 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 56 [19:15:21]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:15:21]wFMCommunicate OK [19:15:21]SAM_PROTO_GetShiftState done [19:15:21]FM_GetShiftState done [19:15:21]opened in 1722125364 [19:15:21]opened+sec_in_day 1722211764 [19:15:21]quantity*price = 50036 [19:15:21]sum+1 = 50037 [19:15:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 232 28.07.2024 19:15 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118563 ФПД: 55462781529606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T191523&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118563&fm=55462781529606&tin=02508201610067®Number=0000000000092660&sum=50000 [19:15:23]StoreToDocumentArchive [19:15:23]shift 433 fd 118563 [19:15:23]save to /storage/0433/doc_00118563 [19:15:23]save last doc name /storage/0433/doc_00118563 to /storage/kkm_last_doc_name [19:15:23]save OK [19:15:23]Clear old archive folders... [19:15:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:15:23]tlvbuf is 01EEF110 [19:15:23]SAM_PROTO_ClearQueue [19:15:23]wFMCommunicate request_size=4 [19:15:23]MH_SAM_APDU [19:15:23]CAPDU: 80 09 00 00 [19:15:23]Write to MH i2c: E2 08 00 FA 15 80 09 00 00 00 00 00 00 81 [19:15:23]Write i2c OK [19:15:23]MH_I2C_Read... [19:15:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:23]Read from MH i2c: E2 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 03 00 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 03 00 FA 15 00 90 00 83 [19:15:23]RAPDU: 90 00 [19:15:23]wFMCommunicate OK [19:15:23]SAM_PROTO_ClearQueue done [19:15:23]KKMCreateOFDPacket [19:15:23]OFDProtocolAddRootSTLVToBuf [19:15:23]FM_MakeSignedData [19:15:23]FM_MakeSignedData [19:15:23]SAM_PROTO_SignData [19:15:23]wFMCommunicate request_size=4 [19:15:23]MH_SAM_APDU [19:15:23]CAPDU: 80 0D 01 02 [19:15:23]Write to MH i2c: E2 08 00 FB 15 80 0D 01 02 00 00 00 00 89 [19:15:23]Write i2c OK [19:15:23]MH_I2C_Read... [19:15:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:23]Read from MH i2c: E2 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 03 00 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 03 00 FB 15 00 90 00 84 [19:15:23]RAPDU: 90 00 [19:15:23]wFMCommunicate OK [19:15:23]wFMCommunicate request_size=255 [19:15:23]MH_SAM_APDU [19:15:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 CB 98 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 23 CF 01 00 35 04 06 00 32 [19:15:23]Write to MH i2c: E2 02 01 FC 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 CB 98 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 23 CF 01 00 35 04 06 00 32 00 00 3B [19:15:23]Write i2c OK [19:15:23]MH_I2C_Read... [19:15:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:23]Read from MH i2c: E2 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 03 00 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 03 00 FC 15 00 90 00 85 [19:15:23]RAPDU: 90 00 [19:15:23]wFMCommunicate OK [19:15:23]wFMCommunicate request_size=10 [19:15:23]MH_SAM_APDU [19:15:23]CAPDU: 80 0D 02 02 05 71 6F 64 2E 06 [19:15:23]Write to MH i2c: E2 0D 00 FD 15 80 0D 02 02 05 00 71 6F 64 2E 06 00 00 0E [19:15:23]Write i2c OK [19:15:23]MH_I2C_Read... [19:15:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:23]Read from MH i2c: E2 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 03 00 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 03 00 FD 15 00 90 00 86 [19:15:23]RAPDU: 90 00 [19:15:23]wFMCommunicate OK [19:15:23]wFMCommunicate request_size=4 [19:15:23]MH_SAM_APDU [19:15:23]CAPDU: 80 0D 03 02 [19:15:23]Write to MH i2c: E2 08 00 FE 15 80 0D 03 02 00 00 00 00 8E [19:15:23]Write i2c OK [19:15:23]MH_I2C_Read... [19:15:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:23]Read from MH i2c: E2 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 0B 00 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 0B 00 FE 15 00 36 D6 1F 42 06 10 EA 9C 90 00 98 [19:15:23]RAPDU: 36 D6 1F 42 06 10 EA 9C 90 00 [19:15:23]wFMCommunicate OK [19:15:23]SAM_PROTO_SignData done [19:15:23]FM_MakeSignedData done [19:15:23]CreateOFDProtocolMessage [19:15:23]wFMCommunicate request_size=4 [19:15:23]MH_SAM_APDU [19:15:23]CAPDU: 80 11 00 00 [19:15:23]Write to MH i2c: E2 08 00 FF 15 80 11 00 00 00 00 00 00 8E [19:15:23]Write i2c OK [19:15:23]MH_I2C_Read... [19:15:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:23]Read from MH i2c: E2 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 17 00 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 17 00 FF 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E9 [19:15:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:15:23]wFMCommunicate OK [19:15:23]CreateOFDProtocolMessage done [19:15:23]OFDSenderStorePacket 118563 [19:15:23]StoreOFDPacket docnum=118563 [19:15:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4D 5D 07 01 C4 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 CB 98 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 23 CF 01 00 35 04 06 00 32 71 6F 64 2E 06 36 D6 1F 42 06 10 EA 9C [19:15:23]CheckFolder [19:15:23]dirname=/storage/ofd_packets [19:15:23]CheckFolder done [19:15:23]ProducePacketName [19:15:23]name=ofd_packets/00118563 [19:15:23]NVStorageSaveData ofd_packets/00118563 [19:15:23]File name is /storage/ofd_packets/00118563 [19:15:23]Write 301 bytes [19:15:23]NVStorageSaveData done [19:15:23]OFDSenderStorePacket done [19:15:23]KKMCreateOFDPacket done [19:15:23]NVStorageSaveData kkm_last_timestamp [19:15:23]File name is /storage/kkm_last_timestamp [19:15:23]Write 4 bytes [19:15:23]NVStorageSaveData done [19:15:23]ExternCall_PrintAddStr [19:15:23]wPrintStart [19:15:23]Write to MH i2c: 01 00 00 00 16 16 [19:15:23]Write i2c OK [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: 01 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: 01 07 00 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: 01 07 00 00 16 00 00 00 00 00 FF 0F 2B [19:15:23]RasterBufferAndPrint [19:15:23]line Счет N : (1)949449 [19:15:23]line ИНН: 02508201610067 [19:15:23]line Контрольно-Кассовый Чек [19:15:23]line ПРОДАЖА [19:15:23]line ТРК (МРК, ГНК) : 41 [19:15:23]line Товар: 2710124130 [19:15:23]line Аи-92-К-4 [19:15:23]line 7.380 * 67.80 [19:15:23]line = 500.36 [19:15:23]line НДС 12% НСП 1% [19:15:23]line > о реализуемом товаре [19:15:23]line ОКРУГЛЕНИЕ: -0.36 [19:15:23]line ИТОГО: 500.00 [19:15:23]line Внесено: 500.00 [19:15:23]line СДАЧА: 0.00 [19:15:23]line НСП 1% : 4.43 [19:15:23]line НДС 12% : 53.14 [19:15:23]line Наличными: 500.00 [19:15:23]line Безнал.: 0.00 [19:15:23]line Место: АЗС № 134 "Партнер Нефть" [19:15:23]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:15:23]line СНО: Общий режим [19:15:23]line Чек 232 28.07.2024 19:15 [19:15:23]line Смена: 433 ФФД: 1.0 [19:15:23]line ЗНМ: 0300000044 [19:15:23]line РНМ: 0000000000092660 [19:15:23]line Версия ККМ: 001 [19:15:23]line ФМ: 0000000000874939 [19:15:23]line ФД: 118563 [19:15:23]line ФПД: 55462781529606 [19:15:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T191523&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118563&fm=55462781529606&tin=02508201610067®Number=0000000000092660&sum=50000 [19:15:23]OFD Sender: Processing packet 118563 [packets to send 86, broken 85] [19:15:23]ProducePacketName [19:15:23]name=ofd_packets/00118563 [19:15:23]OFD Sender: To server: pG, [19:15:23]CommunicateWithHost lk.salyk.kg:30040 [19:15:23]ConnectInit lk.salyk.kg [19:15:23]written 0, free lines is 4095 [19:15:24]Connected sock=10 [19: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 39 33 39 0F 01 00 00 4D 5D 07 01 C4 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 CB 98 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 23 CF 01 00 35 04 06 00 32 71 6F 64 2E 06 36 D6 1F 42 06 10 EA 9C [19: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 39 33 39 4F 00 00 00 DA 1E 47 00 3D 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 39 33 39 10 04 04 00 23 CF 01 00 F4 03 04 00 5B 46 A6 66 B6 04 01 00 00 90 27 1D E3 95 F2 A8 EA [19:15:24]CommunicateWithHost err = 0 [19:15:24]CheckOFDResponse [19:15:24]1017 (14) - 77093643461234 [19:15:24]1041 (16) - 0000000000874939 [19:15:24]1040 (4) - 118563 [19:15:24]1012 (4) - 28.07.2024 13:23 [19:15:24]1206 (1) - 0 [19:15:24]OFD Sender: Remove packet 118563 [19:15:24]ProducePacketName [19:15:24]name=ofd_packets/00118563 [19:15:24]NVStorageDeleteData [19:15:24]Write to MH i2c: 01 00 00 2A 16 40 [19:15:24]Write i2c OK [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: 01 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: 01 07 00 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: 01 07 00 2A 16 00 00 00 00 00 D2 0C 25 [19:15:24]RasterBufferAndPrint [19:15:24]line [19:15:24]line [19:15:24]line [19:15:24]line [19:15:24]line [19:15:24]written 0, free lines is 3288 [19:15:24]MH_Cut [19:15:24]Write to MH i2c: D1 01 00 31 16 01 19 [19:15:24]Write i2c OK [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: D1 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: D1 01 00 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: D1 01 00 31 16 00 18 [19:15:24]Write to MH i2c: 01 00 00 32 16 48 [19:15:24]Write i2c OK [19:15:24]MH_I2C_Read... [19:15:24]OFD Sender: No OFD packet to send [19:15:25]*** Cut start [19:15:25]*** Partial cut [19:15:25]*** CUTSNS_PIN = 1 [19:15:25]*** CUTSNS_PIN = 0 [19:15:25]*** Brake cut motor [19:15:25]Read from MH i2c: 01 [19:15:25]MH_I2C_Read... [19:15:25]*** Stop cut motor [19:15:25]*** Cut end [19:15:25]Read from MH i2c: 01 07 00 [19:15:25]MH_I2C_Read... [19:15:25]Read from MH i2c: 01 07 00 32 16 00 00 00 00 00 FF 0F 5D [19:15:25]process_action close_receipt done [19:15:25]requested_data is exist [19:15:25]produce_requested_data [19:15:25]requested_item fm.sn is exist - process it [19:15:25]wFMCommunicate request_size=4 [19:15:25]MH_SAM_APDU [19:15:25]CAPDU: 80 11 00 00 [19:15:25]Write to MH i2c: E2 08 00 33 16 80 11 00 00 00 00 00 00 C3 [19:15:25]Write i2c OK [19:15:25]MH_I2C_Read... [19:15:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:25]Read from MH i2c: E2 [19:15:25]MH_I2C_Read... [19:15:25]Read from MH i2c: E2 17 00 [19:15:25]MH_I2C_Read... [19:15:25]Read from MH i2c: E2 17 00 33 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1E [19:15:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:15:25]wFMCommunicate OK [19:15:25]requested_item fd.num is exist - process it [19:15:25]SAM_PROTO_GetFieldsCounters [19:15:25]wFMCommunicate request_size=4 [19:15:25]MH_SAM_APDU [19:15:25]CAPDU: 80 13 00 00 [19:15:25]Write to MH i2c: E2 08 00 34 16 80 13 00 00 00 00 00 00 C6 [19:15:25]Write i2c OK [19:15:25]MH_I2C_Read... [19:15:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:25]Read from MH i2c: E2 [19:15:25]MH_I2C_Read... [19:15:25]Read from MH i2c: E2 62 00 [19:15:25]MH_I2C_Read... [19:15:25]Read from MH i2c: E2 62 00 34 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 23 CF 01 00 0E 04 04 00 B1 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 4A [19:15:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 23 CF 01 00 0E 04 04 00 B1 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 [19:15:25]wFMCommunicate OK [19:15:25]SAM_PROTO_GetFieldsCounters done [19:15:25]requested_item shift.num is exist - process it [19:15:25]requested_item shift.opened is exist - process it [19:15:25]req_shift_opened [19:15:25]FM_GetShiftState [19:15:25]SAM_PROTO_GetShiftState [19:15:25]wFMCommunicate request_size=4 [19:15:25]MH_SAM_APDU [19:15:25]CAPDU: 80 13 01 00 [19:15:25]Write to MH i2c: E2 08 00 35 16 80 13 01 00 00 00 00 00 C8 [19:15:25]Write i2c OK [19:15:25]MH_I2C_Read... [19:15:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:25]Read from MH i2c: E2 [19:15:25]MH_I2C_Read... [19:15:25]Read from MH i2c: E2 0E 00 [19:15:25]MH_I2C_Read... [19:15:25]Read from MH i2c: E2 0E 00 35 16 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 9F [19:15:25]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:15:25]wFMCommunicate OK [19:15:25]SAM_PROTO_GetShiftState done [19:15:25]FM_GetShiftState done [19:15:25]req_shift_opened done [19:15:25]requested_item shift.open_date is exist - process it [19:15:25]req_shift_open_date [19:15:25]req_shift_open_date done [19:15:25]produce_requested_data done [19:15:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118563,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [19:15:25]process_action_free close_receipt [19:15:25]json_value_free [19:15:25]json_value_free done [19:15:25]process_json_proto returns [19:15:25]Send response to host [19:15:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118563,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [19:15:25]free response buf [19:15:25]execute_script done [19:15:25]execute_script returns [19:15:25]free content buf [19:15:25]Sock 7.Close socket [19:15:25]Sock 7.Thread stoped [19:15:29]OFD Sender: No OFD packet to send [19:15:34]OFD Sender: No OFD packet to send [19:15:39]OFD Sender: No OFD packet to send [19:15:44]OFD Sender: No OFD packet to send [19:15:49]OFD Sender: No OFD packet to send [19:15:54]OFD Sender: No OFD packet to send [19:15:59]OFD Sender: No OFD packet to send [19:16:04]OFD Sender: No OFD packet to send [19:16:09]OFD Sender: No OFD packet to send [19:16:14]OFD Sender: No OFD packet to send [19:16:19]OFD Sender: No OFD packet to send [19:16:24]OFD Sender: No OFD packet to send [19:16:29]OFD Sender: No OFD packet to send [19:16:34]OFD Sender: No OFD packet to send [19:16:39]OFD Sender: No OFD packet to send [19:16:44]OFD Sender: No OFD packet to send [19:16:49]OFD Sender: No OFD packet to send [19:16:54]OFD Sender: No OFD packet to send [19:16:59]OFD Sender: No OFD packet to send [19:17:04]OFD Sender: No OFD packet to send [19:17:09]OFD Sender: No OFD packet to send [19:17:14]OFD Sender: No OFD packet to send [19:17:19]OFD Sender: No OFD packet to send [19:17:24]OFD Sender: No OFD packet to send [19:17:29]OFD Sender: No OFD packet to send [19:17:34]OFD Sender: No OFD packet to send [19:17:39]OFD Sender: No OFD packet to send [19:17:44]OFD Sender: No OFD packet to send [19:17:49]OFD Sender: No OFD packet to send [19:17:54]OFD Sender: No OFD packet to send [19:17:59]OFD Sender: No OFD packet to send [19:18:04]OFD Sender: No OFD packet to send [19:18:09]OFD Sender: No OFD packet to send [19:18:14]OFD Sender: No OFD packet to send [19:18:19]OFD Sender: No OFD packet to send [19:18:24]OFD Sender: No OFD packet to send [19:18:29]OFD Sender: No OFD packet to send [19:18:34]OFD Sender: No OFD packet to send [19:18:39]OFD Sender: No OFD packet to send [19:18:44]OFD Sender: No OFD packet to send [19:18:49]OFD Sender: No OFD packet to send [19:18:54]OFD Sender: No OFD packet to send [19:18:59]OFD Sender: No OFD packet to send [19:19:04]OFD Sender: No OFD packet to send [19:19:09]OFD Sender: No OFD packet to send [19:19:14]OFD Sender: No OFD packet to send [19:19:19]OFD Sender: No OFD packet to send [19:19:24]OFD Sender: No OFD packet to send [19:19:29]OFD Sender: No OFD packet to send [19:19:34]OFD Sender: No OFD packet to send [19:19:39]OFD Sender: No OFD packet to send [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:55]OFD Sender: No OFD packet to send [19:20:00]OFD Sender: No OFD packet to send [19:20:05]OFD Sender: No OFD packet to send [19:20:10]OFD Sender: No OFD packet to send [19:20:15]OFD Sender: No OFD packet to send [19:20:20]OFD Sender: No OFD packet to send [19:20:25]OFD Sender: No OFD packet to send [19:20:30]OFD Sender: No OFD packet to send [19:20:35]OFD Sender: No OFD packet to send [19:20:40]OFD Sender: No OFD packet to send [19:20:45]OFD Sender: No OFD packet to send [19:20:50]OFD Sender: No OFD packet to send [19:20:55]OFD Sender: No OFD packet to send [19:21:00]OFD Sender: No OFD packet to send [19:21:05]OFD Sender: No OFD packet to send [19:21:10]OFD Sender: No OFD packet to send [19:21:15]OFD Sender: No OFD packet to send [19:21:20]OFD Sender: No OFD packet to send [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:45]OFD Sender: No OFD packet to send [19:21:50]OFD Sender: No OFD packet to send [19:21:55]OFD Sender: No OFD packet to send [19:22:00]OFD Sender: No OFD packet to send [19:22:05]OFD Sender: No OFD packet to send [19:22:10]OFD Sender: No OFD packet to send [19:22:15]OFD Sender: No OFD packet to send [19:22:20]OFD Sender: No OFD packet to send [19:22:25]OFD Sender: No OFD packet to send [19:22:27]accept exits with 9 [19:22:27]New connection [19:22:27]New thread 3067239780 created [19:22:27]Thread 3067383140 joined [19:22:27]Waiting for new connection... [19:22:27] Sock 9.Parse request [19:22:27]Sock 9.Check first char [19:22:27]Sock 9.First char is OK [19:22:27]request: POST /json_proto HTTP/1.0 [19:22:27]Method: POST [19:22:27]URL: /json_proto [19:22:27]Method is POST - this is cgi request [19:22:27]url: /json_proto [19:22:27]query_string will be loaded in cgi processing [19:22:27]execute_cgi json_proto POST (null) [19:22:27]execute_cgi path=json_proto method=POST [19:22:27]POST find Content-Length [19:22:27]Host: 172.17.45.7:8080 [19:22:27]Content-Length: 677 [19:22:27]Content-Type: application/json [19:22:27] [19:22:27]POST finish read [19:22:27]Found Content-Length = 677 [19:22:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 6.050, "sum" : 410.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 410.00, "total" : 410.00, "payments": [ { "type": 0, "sum" : 410.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:27]execute_script... [19:22: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)949452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 6.050, "sum" : 410.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 410.00, "total" : 410.00, "payments": [ { "type": 0, "sum" : 410.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:27]POST & json_proto [19:22:27]process_json_proto [19:22:27]json parsed OK: [19:22:27]protocol is kg_v1.0 [19:22:27]action value=close_receipt [19:22:27]process_action close_receipt [19:22:27]cmd_close_receipt [19:22:27]MH_GetDate [19:22:27]Write to MH i2c: F0 00 00 36 16 3B [19:22:27]Write i2c OK [19:22:27]MH_I2C_Read... [19:22:27]Read from MH i2c: F0 [19:22:27]MH_I2C_Read... [19:22:27]Read from MH i2c: F0 09 00 [19:22:27]MH_I2C_Read... [19:22:27]Read from MH i2c: F0 09 00 36 16 00 74 9A A6 66 90 0F 3E 66 A1 [19:22:27]GetLastDocTimeStamp 1722194123 [19:22:27]current date 1722194548 [19:22:27]FM_GetShiftState [19:22:27]SAM_PROTO_GetShiftState [19:22:27]wFMCommunicate request_size=4 [19:22:27]MH_SAM_APDU [19:22:27]CAPDU: 80 13 01 00 [19:22:27]Write to MH i2c: E2 08 00 37 16 80 13 01 00 00 00 00 00 CA [19:22:27]Write i2c OK [19:22:27]MH_I2C_Read... [19:22:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:27]Read from MH i2c: E2 [19:22:27]MH_I2C_Read... [19:22:27]Read from MH i2c: E2 0E 00 [19:22:27]MH_I2C_Read... [19:22:27]Read from MH i2c: E2 0E 00 37 16 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A1 [19:22:27]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:22:27]wFMCommunicate OK [19:22:27]SAM_PROTO_GetShiftState done [19:22:27]FM_GetShiftState done [19:22:27]opened in 1722125364 [19:22:27]opened+sec_in_day 1722211764 [19:22:27]quantity*price = 41019 [19:22:27]sum+1 = 41020 [19:22:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 410.00 Внесено: 410.00 СДАЧА: 0.00 НСП 1% : 3.63 НДС 12% : 43.56 Наличными: 410.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 233 28.07.2024 19:22 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118564 ФПД: 175736530814716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T192229&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118564&fm=175736530814716&tin=02508201610067®Number=0000000000092660&sum=41000 [19:22:28]StoreToDocumentArchive [19:22:28]shift 433 fd 118564 [19:22:28]save to /storage/0433/doc_00118564 [19:22:28]save last doc name /storage/0433/doc_00118564 to /storage/kkm_last_doc_name [19:22:28]save OK [19:22:28]Clear old archive folders... [19:22:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:22:28]tlvbuf is 01E70470 [19:22:28]SAM_PROTO_ClearQueue [19:22:28]wFMCommunicate request_size=4 [19:22:28]MH_SAM_APDU [19:22:28]CAPDU: 80 09 00 00 [19:22:28]Write to MH i2c: E2 08 00 44 16 80 09 00 00 00 00 00 00 CC [19:22:28]Write i2c OK [19:22:28]MH_I2C_Read... [19:22:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:28]Read from MH i2c: E2 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: E2 03 00 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: E2 03 00 44 16 00 90 00 CE [19:22:28]RAPDU: 90 00 [19:22:28]wFMCommunicate OK [19:22:28]SAM_PROTO_ClearQueue done [19:22:28]KKMCreateOFDPacket [19:22:28]OFDProtocolAddRootSTLVToBuf [19:22:28]FM_MakeSignedData [19:22:28]FM_MakeSignedData [19:22:28]SAM_PROTO_SignData [19:22:28]wFMCommunicate request_size=4 [19:22:28]MH_SAM_APDU [19:22:28]CAPDU: 80 0D 01 02 [19:22:28]Write to MH i2c: E2 08 00 45 16 80 0D 01 02 00 00 00 00 D4 [19:22:28]Write i2c OK [19:22:28]MH_I2C_Read... [19:22:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:28]Read from MH i2c: E2 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: E2 03 00 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: E2 03 00 45 16 00 90 00 CF [19:22:28]RAPDU: 90 00 [19:22:28]wFMCommunicate OK [19:22:28]wFMCommunicate request_size=255 [19:22:28]MH_SAM_APDU [19:22: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 34 FF 03 08 00 03 A2 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3B A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 75 9A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 24 CF 01 00 35 04 06 00 9F [19:22:28]Write to MH i2c: E2 02 01 46 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 34 FF 03 08 00 03 A2 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3B A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 75 9A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 24 CF 01 00 35 04 06 00 9F 00 00 67 [19:22:28]Write i2c OK [19:22:28]MH_I2C_Read... [19:22:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:28]Read from MH i2c: E2 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: E2 03 00 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: E2 03 00 46 16 00 90 00 D0 [19:22:28]RAPDU: 90 00 [19:22:28]wFMCommunicate OK [19:22:28]wFMCommunicate request_size=10 [19:22:28]MH_SAM_APDU [19:22:28]CAPDU: 80 0D 02 02 05 D4 D9 7E 46 FC [19:22:28]Write to MH i2c: E2 0D 00 47 16 80 0D 02 02 05 00 D4 D9 7E 46 FC 00 00 4E [19:22:28]Write i2c OK [19:22:28]MH_I2C_Read... [19:22:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:28]Read from MH i2c: E2 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: E2 03 00 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: E2 03 00 47 16 00 90 00 D1 [19:22:28]RAPDU: 90 00 [19:22:28]wFMCommunicate OK [19:22:28]wFMCommunicate request_size=4 [19:22:28]MH_SAM_APDU [19:22:28]CAPDU: 80 0D 03 02 [19:22:28]Write to MH i2c: E2 08 00 48 16 80 0D 03 02 00 00 00 00 D9 [19:22:28]Write i2c OK [19:22:28]MH_I2C_Read... [19:22:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:28]Read from MH i2c: E2 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: E2 0B 00 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: E2 0B 00 48 16 00 5B 12 9D A8 1A 28 22 66 90 00 56 [19:22:28]RAPDU: 5B 12 9D A8 1A 28 22 66 90 00 [19:22:28]wFMCommunicate OK [19:22:28]SAM_PROTO_SignData done [19:22:28]FM_MakeSignedData done [19:22:28]CreateOFDProtocolMessage [19:22:28]wFMCommunicate request_size=4 [19:22:28]MH_SAM_APDU [19:22:28]CAPDU: 80 11 00 00 [19:22:28]Write to MH i2c: E2 08 00 49 16 80 11 00 00 00 00 00 00 D9 [19:22:28]Write i2c OK [19:22:28]MH_I2C_Read... [19:22:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:28]Read from MH i2c: E2 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: E2 17 00 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: E2 17 00 49 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 34 [19:22:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:22:28]wFMCommunicate OK [19:22:28]CreateOFDProtocolMessage done [19:22:28]OFDSenderStorePacket 118564 [19:22:28]StoreOFDPacket docnum=118564 [19:22:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 16 41 07 01 1A 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 A2 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3B A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 75 9A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 24 CF 01 00 35 04 06 00 9F D4 D9 7E 46 FC 5B 12 9D A8 1A 28 22 66 [19:22:28]CheckFolder [19:22:28]dirname=/storage/ofd_packets [19:22:28]CheckFolder done [19:22:28]ProducePacketName [19:22:28]name=ofd_packets/00118564 [19:22:28]NVStorageSaveData ofd_packets/00118564 [19:22:28]File name is /storage/ofd_packets/00118564 [19:22:28]Write 301 bytes [19:22:28]NVStorageSaveData done [19:22:28]OFDSenderStorePacket done [19:22:28]KKMCreateOFDPacket done [19:22:28]NVStorageSaveData kkm_last_timestamp [19:22:28]File name is /storage/kkm_last_timestamp [19:22:28]Write 4 bytes [19:22:28]NVStorageSaveData done [19:22:28]ExternCall_PrintAddStr [19:22:28]wPrintStart [19:22:28]Write to MH i2c: 01 00 00 4A 16 60 [19:22:28]Write i2c OK [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: 01 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: 01 07 00 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: 01 07 00 4A 16 00 00 00 00 00 FF 0F 75 [19:22:28]RasterBufferAndPrint [19:22:28]line Счет N : (1)949452 [19:22:28]line ИНН: 02508201610067 [19:22:28]line Контрольно-Кассовый Чек [19:22:28]line ПРОДАЖА [19:22:28]line ТРК (МРК, ГНК) : 31 [19:22:28]line Товар: 2710124130 [19:22:28]line Аи-92-К-4 [19:22:28]line 6.050 * 67.80 [19:22:28]line = 410.19 [19:22:28]line НДС 12% НСП 1% [19:22:28]line > о реализуемом товаре [19:22:28]line ОКРУГЛЕНИЕ: -0.19 [19:22:28]line ИТОГО: 410.00 [19:22:28]line Внесено: 410.00 [19:22:28]line СДАЧА: 0.00 [19:22:28]line НСП 1% : 3.63 [19:22:28]line НДС 12% : 43.56 [19:22:28]line Наличными: 410.00 [19:22:28]line Безнал.: 0.00 [19:22:28]line Место: АЗС № 134 "Партнер Нефть" [19:22:28]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:22:28]line СНО: Общий режим [19:22:28]line Чек 233 28.07.2024 19:22 [19:22:28]line Смена: 433 ФФД: 1.0 [19:22:28]line ЗНМ: 0300000044 [19:22:28]line РНМ: 0000000000092660 [19:22:28]line Версия ККМ: 001 [19:22:28]line ФМ: 0000000000874939 [19:22:28]line ФД: 118564 [19:22:28]line ФПД: 175736530814716 [19:22:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T192229&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118564&fm=175736530814716&tin=02508201610067®Number=0000000000092660&sum=41000 [19:22:29]OFD Sender: Processing packet 118564 [packets to send 86, broken 85] [19:22:29]ProducePacketName [19:22:29]name=ofd_packets/00118564 [19:22:29]OFD Sender: To server: pG, [19:22:29]CommunicateWithHost lk.salyk.kg:30040 [19:22:29]ConnectInit lk.salyk.kg [19:22:29]written 0, free lines is 4095 [19:22:29]Connected sock=10 [19:22:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 16 41 07 01 1A 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 A2 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3B A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 75 9A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 24 CF 01 00 35 04 06 00 9F D4 D9 7E 46 FC 5B 12 9D A8 1A 28 22 66 [19:22:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3D 88 47 00 0B 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 39 33 39 10 04 04 00 24 CF 01 00 F4 03 04 00 04 48 A6 66 B6 04 01 00 00 72 6D 9B EF 3F 26 06 72 [19:22:29]CommunicateWithHost err = 0 [19:22:29]CheckOFDResponse [19:22:29]1017 (14) - 77093643461234 [19:22:29]1041 (16) - 0000000000874939 [19:22:29]1040 (4) - 118564 [19:22:29]1012 (4) - 28.07.2024 13:30 [19:22:29]1206 (1) - 0 [19:22:29]OFD Sender: Remove packet 118564 [19:22:29]ProducePacketName [19:22:29]name=ofd_packets/00118564 [19:22:29]NVStorageDeleteData [19:22:29]Write to MH i2c: 01 00 00 74 16 8A [19:22:29]Write i2c OK [19:22:29]MH_I2C_Read... [19:22:29]Read from MH i2c: 01 [19:22:29]MH_I2C_Read... [19:22:29]Read from MH i2c: 01 07 00 [19:22:29]MH_I2C_Read... [19:22:29]Read from MH i2c: 01 07 00 74 16 00 00 00 00 00 CD 0C 6A [19:22:29]RasterBufferAndPrint [19:22:29]line [19:22:29]line [19:22:29]line [19:22:29]line [19:22:29]line [19:22:29]written 0, free lines is 3283 [19:22:29]MH_Cut [19:22:29]Write to MH i2c: D1 01 00 7B 16 01 63 [19:22:29]Write i2c OK [19:22:29]MH_I2C_Read... [19:22:29]Read from MH i2c: D1 [19:22:29]MH_I2C_Read... [19:22:29]Read from MH i2c: D1 01 00 [19:22:29]MH_I2C_Read... [19:22:29]Read from MH i2c: D1 01 00 7B 16 00 62 [19:22:29]Write to MH i2c: 01 00 00 7C 16 92 [19:22:29]Write i2c OK [19:22:29]MH_I2C_Read... [19:22:29]OFD Sender: No OFD packet to send [19:22:30]*** Cut start [19:22:30]*** Partial cut [19:22:30]*** CUTSNS_PIN = 1 [19:22:30]*** CUTSNS_PIN = 0 [19:22:30]*** Brake cut motor [19:22:30]Read from MH i2c: 01 [19:22:30]MH_I2C_Read... [19:22:30]*** Stop cut motor [19:22:30]*** Cut end [19:22:30]Read from MH i2c: 01 07 00 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: 01 07 00 7C 16 00 00 00 00 00 FF 0F A7 [19:22:30]process_action close_receipt done [19:22:30]requested_data is exist [19:22:30]produce_requested_data [19:22:30]requested_item fm.sn is exist - process it [19:22:30]wFMCommunicate request_size=4 [19:22:30]MH_SAM_APDU [19:22:30]CAPDU: 80 11 00 00 [19:22:30]Write to MH i2c: E2 08 00 7D 16 80 11 00 00 00 00 00 00 0D [19:22:30]Write i2c OK [19:22:30]MH_I2C_Read... [19:22:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:30]Read from MH i2c: E2 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: E2 17 00 [19:22:30]MH_I2C_Read... [19:22:30]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 39 33 39 90 00 68 [19:22:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:22:30]wFMCommunicate OK [19:22:30]requested_item fd.num is exist - process it [19:22:30]SAM_PROTO_GetFieldsCounters [19:22:30]wFMCommunicate request_size=4 [19:22:30]MH_SAM_APDU [19:22:30]CAPDU: 80 13 00 00 [19:22:30]Write to MH i2c: E2 08 00 7E 16 80 13 00 00 00 00 00 00 10 [19:22:30]Write i2c OK [19:22:30]MH_I2C_Read... [19:22:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:31]Read from MH i2c: E2 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: E2 62 00 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: E2 62 00 7E 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 24 CF 01 00 0E 04 04 00 B1 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 98 [19:22:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 24 CF 01 00 0E 04 04 00 B1 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 [19:22:31]wFMCommunicate OK [19:22:31]SAM_PROTO_GetFieldsCounters done [19:22:31]requested_item shift.num is exist - process it [19:22:31]requested_item shift.opened is exist - process it [19:22:31]req_shift_opened [19:22:31]FM_GetShiftState [19:22:31]SAM_PROTO_GetShiftState [19:22:31]wFMCommunicate request_size=4 [19:22:31]MH_SAM_APDU [19:22:31]CAPDU: 80 13 01 00 [19:22:31]Write to MH i2c: E2 08 00 7F 16 80 13 01 00 00 00 00 00 12 [19:22:31]Write i2c OK [19:22:31]MH_I2C_Read... [19:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:31]Read from MH i2c: E2 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: E2 0E 00 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: E2 0E 00 7F 16 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 E9 [19:22:31]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:22:31]wFMCommunicate OK [19:22:31]SAM_PROTO_GetShiftState done [19:22:31]FM_GetShiftState done [19:22:31]req_shift_opened done [19:22:31]requested_item shift.open_date is exist - process it [19:22:31]req_shift_open_date [19:22:31]req_shift_open_date done [19:22:31]produce_requested_data done [19:22:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118564,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [19:22:31]process_action_free close_receipt [19:22:31]json_value_free [19:22:31]json_value_free done [19:22:31]process_json_proto returns [19:22:31]Send response to host [19:22:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118564,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [19:22:31]free response buf [19:22:31]execute_script done [19:22:31]execute_script returns [19:22:31]free content buf [19:22:31]Sock 9.Close socket [19:22:31]Sock 9.Thread stoped [19:22:34]OFD Sender: No OFD packet to send [19:22:39]OFD Sender: No OFD packet to send [19:22:44]OFD Sender: No OFD packet to send [19:22:49]OFD Sender: No OFD packet to send [19:22:54]OFD Sender: No OFD packet to send [19:22:59]OFD Sender: No OFD packet to send [19:23:04]OFD Sender: No OFD packet to send [19:23:09]accept exits with 7 [19:23:09]New connection [19:23:09]New thread 3067383140 created [19:23:09]Thread 3067239780 joined [19:23:09]Waiting for new connection... [19:23:09] Sock 7.Parse request [19:23:09]Sock 7.Check first char [19:23:09]Sock 7.First char is OK [19:23:09]request: POST /json_proto HTTP/1.0 [19:23:09]Method: POST [19:23:09]URL: /json_proto [19:23:09]Method is POST - this is cgi request [19:23:09]url: /json_proto [19:23:09]query_string will be loaded in cgi processing [19:23:09]execute_cgi json_proto POST (null) [19:23:09]execute_cgi path=json_proto method=POST [19:23:09]POST find Content-Length [19:23:09]Host: 172.17.45.7:8080 [19:23:09]Content-Length: 679 [19:23:09]Content-Type: application/json [19:23:09] [19:23:09]POST finish read [19:23:09]Found Content-Length = 679 [19:23:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:09]execute_script... [19:23: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)949453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:09]POST & json_proto [19:23:09]process_json_proto [19:23:09]json parsed OK: [19:23:09]protocol is kg_v1.0 [19:23:09]action value=close_receipt [19:23:09]process_action close_receipt [19:23:09]cmd_close_receipt [19:23:09]MH_GetDate [19:23:09]Write to MH i2c: F0 00 00 80 16 85 [19:23:09]Write i2c OK [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: F0 [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: F0 09 00 [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: F0 09 00 80 16 00 9F 9A A6 66 90 0F 3E 66 16 [19:23:09]GetLastDocTimeStamp 1722194549 [19:23:09]current date 1722194591 [19:23:09]FM_GetShiftState [19:23:09]SAM_PROTO_GetShiftState [19:23:09]wFMCommunicate request_size=4 [19:23:09]MH_SAM_APDU [19:23:09]CAPDU: 80 13 01 00 [19:23:09]Write to MH i2c: E2 08 00 81 16 80 13 01 00 00 00 00 00 14 [19:23:09]Write i2c OK [19:23:09]MH_I2C_Read... [19:23:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:09]Read from MH i2c: E2 [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: E2 0E 00 [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: E2 0E 00 81 16 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 EB [19:23:09]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:23:09]wFMCommunicate OK [19:23:09]SAM_PROTO_GetShiftState done [19:23:09]FM_GetShiftState done [19:23:09]opened in 1722125364 [19:23:09]opened+sec_in_day 1722211764 [19:23:09]quantity*price = 110032 [19:23:09]sum+1 = 110034 [19:23:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.85 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 234 28.07.2024 19:23 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118565 ФПД: 276550847867156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T192311&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118565&fm=276550847867156&tin=02508201610067®Number=0000000000092660&sum=110000 [19:23:10]StoreToDocumentArchive [19:23:10]shift 433 fd 118565 [19:23:10]save to /storage/0433/doc_00118565 [19:23:10]save last doc name /storage/0433/doc_00118565 to /storage/kkm_last_doc_name [19:23:10]save OK [19:23:10]Clear old archive folders... [19:23:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:23:10]tlvbuf is B6FC1230 [19:23:10]SAM_PROTO_ClearQueue [19:23:10]wFMCommunicate request_size=4 [19:23:10]MH_SAM_APDU [19:23:10]CAPDU: 80 09 00 00 [19:23:10]Write to MH i2c: E2 08 00 8E 16 80 09 00 00 00 00 00 00 16 [19:23:10]Write i2c OK [19:23:10]MH_I2C_Read... [19:23:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:10]Read from MH i2c: E2 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: E2 03 00 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: E2 03 00 8E 16 00 90 00 18 [19:23:10]RAPDU: 90 00 [19:23:10]wFMCommunicate OK [19:23:10]SAM_PROTO_ClearQueue done [19:23:10]KKMCreateOFDPacket [19:23:10]OFDProtocolAddRootSTLVToBuf [19:23:10]FM_MakeSignedData [19:23:10]FM_MakeSignedData [19:23:10]SAM_PROTO_SignData [19:23:10]wFMCommunicate request_size=4 [19:23:10]MH_SAM_APDU [19:23:10]CAPDU: 80 0D 01 02 [19:23:10]Write to MH i2c: E2 08 00 8F 16 80 0D 01 02 00 00 00 00 1E [19:23:10]Write i2c OK [19:23:10]MH_I2C_Read... [19:23:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:10]Read from MH i2c: E2 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: E2 03 00 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: E2 03 00 8F 16 00 90 00 19 [19:23:10]RAPDU: 90 00 [19:23:10]wFMCommunicate OK [19:23:10]wFMCommunicate request_size=255 [19:23:10]MH_SAM_APDU [19:23:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 9F 9A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 25 CF 01 00 35 04 06 00 FB 85 83 0C [19:23:10]Write to MH i2c: E2 02 01 90 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 9F 9A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 25 CF 01 00 35 04 06 00 FB 85 83 0C 00 00 CA [19:23:10]Write i2c OK [19:23:10]MH_I2C_Read... [19:23:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:11]Read from MH i2c: E2 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: E2 03 00 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: E2 03 00 90 16 00 90 00 1A [19:23:11]RAPDU: 90 00 [19:23:11]wFMCommunicate OK [19:23:11]wFMCommunicate request_size=7 [19:23:11]MH_SAM_APDU [19:23:11]CAPDU: 80 0D 02 02 02 A9 14 [19:23:11]Write to MH i2c: E2 0A 00 91 16 80 0D 02 02 02 00 A9 14 00 00 E2 [19:23:11]Write i2c OK [19:23:11]MH_I2C_Read... [19:23:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:11]Read from MH i2c: E2 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: E2 03 00 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: E2 03 00 91 16 00 90 00 1B [19:23:11]RAPDU: 90 00 [19:23:11]wFMCommunicate OK [19:23:11]wFMCommunicate request_size=4 [19:23:11]MH_SAM_APDU [19:23:11]CAPDU: 80 0D 03 02 [19:23:11]Write to MH i2c: E2 08 00 92 16 80 0D 03 02 00 00 00 00 23 [19:23:11]Write i2c OK [19:23:11]MH_I2C_Read... [19:23:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:11]Read from MH i2c: E2 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: E2 0B 00 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: E2 0B 00 92 16 00 F7 6D 7C 77 B6 D3 85 1B 90 00 A4 [19:23:11]RAPDU: F7 6D 7C 77 B6 D3 85 1B 90 00 [19:23:11]wFMCommunicate OK [19:23:11]SAM_PROTO_SignData done [19:23:11]FM_MakeSignedData done [19:23:11]CreateOFDProtocolMessage [19:23:11]wFMCommunicate request_size=4 [19:23:11]MH_SAM_APDU [19:23:11]CAPDU: 80 11 00 00 [19:23:11]Write to MH i2c: E2 08 00 93 16 80 11 00 00 00 00 00 00 23 [19:23:11]Write i2c OK [19:23:11]MH_I2C_Read... [19:23:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:11]Read from MH i2c: E2 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: E2 17 00 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: E2 17 00 93 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7E [19:23:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:23:11]wFMCommunicate OK [19:23:11]CreateOFDProtocolMessage done [19:23:11]OFDSenderStorePacket 118565 [19:23:11]StoreOFDPacket docnum=118565 [19:23:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 54 3F 04 01 1B 18 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 9F 9A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 25 CF 01 00 35 04 06 00 FB 85 83 0C A9 14 F7 6D 7C 77 B6 D3 85 1B [19:23:11]CheckFolder [19:23:11]dirname=/storage/ofd_packets [19:23:11]CheckFolder done [19:23:11]ProducePacketName [19:23:11]name=ofd_packets/00118565 [19:23:11]NVStorageSaveData ofd_packets/00118565 [19:23:11]File name is /storage/ofd_packets/00118565 [19:23:11]Write 298 bytes [19:23:11]NVStorageSaveData done [19:23:11]OFDSenderStorePacket done [19:23:11]KKMCreateOFDPacket done [19:23:11]NVStorageSaveData kkm_last_timestamp [19:23:11]File name is /storage/kkm_last_timestamp [19:23:11]Write 4 bytes [19:23:11]NVStorageSaveData done [19:23:11]ExternCall_PrintAddStr [19:23:11]wPrintStart [19:23:11]Write to MH i2c: 01 00 00 94 16 AA [19:23:11]Write i2c OK [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: 01 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: 01 07 00 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: 01 07 00 94 16 00 00 00 00 00 FF 0F BF [19:23:11]RasterBufferAndPrint [19:23:11]line Счет N : (1)949453 [19:23:11]line ИНН: 02508201610067 [19:23:11]line Контрольно-Кассовый Чек [19:23:11]line ПРОДАЖА [19:23:11]line ТРК (МРК, ГНК) : 54 [19:23:11]line Товар: 2710194800 [19:23:11]line ДТ-К-5 [19:23:11]line 14.440 * 76.20 [19:23:11]line = 1100.33 [19:23:11]line НДС 12% НСП 1% [19:23:11]line > о реализуемом товаре [19:23:11]line ОКРУГЛЕНИЕ: -0.33 [19:23:11]line ИТОГО: 1100.00 [19:23:11]line Внесено: 1100.00 [19:23:11]line СДАЧА: 0.00 [19:23:11]line НСП 1% : 9.74 [19:23:11]line НДС 12% : 116.85 [19:23:11]line Наличными: 1100.00 [19:23:11]line Безнал.: 0.00 [19:23:11]line Место: АЗС № 134 "Партнер Нефть" [19:23:11]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:23:11]line СНО: Общий режим [19:23:11]line Чек 234 28.07.2024 19:23 [19:23:11]line Смена: 433 ФФД: 1.0 [19:23:11]line ЗНМ: 0300000044 [19:23:11]line РНМ: 0000000000092660 [19:23:11]line Версия ККМ: 001 [19:23:11]line ФМ: 0000000000874939 [19:23:11]line ФД: 118565 [19:23:11]line ФПД: 276550847867156 [19:23:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T192311&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118565&fm=276550847867156&tin=02508201610067®Number=0000000000092660&sum=110000 [19:23:11]OFD Sender: Processing packet 118565 [packets to send 86, broken 85] [19:23:11]ProducePacketName [19:23:11]name=ofd_packets/00118565 [19:23:11]OFD Sender: To server: pG, [19:23:11]CommunicateWithHost lk.salyk.kg:30040 [19:23:11]ConnectInit lk.salyk.kg [19:23:11]written 0, free lines is 4095 [19:23:11]Connected sock=10 [19:23:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 54 3F 04 01 1B 18 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 9F 9A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 25 CF 01 00 35 04 06 00 FB 85 83 0C A9 14 F7 6D 7C 77 B6 D3 85 1B [19:23:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 37 EB 47 00 B8 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 39 33 39 10 04 04 00 25 CF 01 00 F4 03 04 00 2F 48 A6 66 B6 04 01 00 00 35 2C 64 6C 01 EF 17 A3 [19:23:11]CommunicateWithHost err = 0 [19:23:11]CheckOFDResponse [19:23:11]1017 (14) - 77093643461234 [19:23:11]1041 (16) - 0000000000874939 [19:23:11]1040 (4) - 118565 [19:23:11]1012 (4) - 28.07.2024 13:31 [19:23:11]1206 (1) - 0 [19:23:11]OFD Sender: Remove packet 118565 [19:23:11]ProducePacketName [19:23:11]name=ofd_packets/00118565 [19:23:11]NVStorageDeleteData [19:23:11]Write to MH i2c: 01 00 00 BE 16 D4 [19:23:11]Write i2c OK [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: 01 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: 01 07 00 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: 01 07 00 BE 16 00 00 00 00 00 D7 0C BE [19:23:11]RasterBufferAndPrint [19:23:11]line [19:23:11]line [19:23:11]line [19:23:11]line [19:23:11]line [19:23:11]written 0, free lines is 3296 [19:23:11]MH_Cut [19:23:11]Write to MH i2c: D1 01 00 C5 16 01 AD [19:23:11]Write i2c OK [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: D1 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: D1 01 00 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: D1 01 00 C5 16 00 AC [19:23:11]Write to MH i2c: 01 00 00 C6 16 DC [19:23:11]Write i2c OK [19:23:11]MH_I2C_Read... [19:23:12]OFD Sender: No OFD packet to send [19:23:12]*** Cut start [19:23:12]*** Partial cut [19:23:12]*** CUTSNS_PIN = 1 [19:23:12]*** CUTSNS_PIN = 0 [19:23:12]*** Brake cut motor [19:23:13]Read from MH i2c: 01 [19:23:13]MH_I2C_Read... [19:23:13]*** Stop cut motor [19:23:13]*** Cut end [19:23:13]Read from MH i2c: 01 07 00 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: 01 07 00 C6 16 00 00 00 00 00 FF 0F F1 [19:23:13]process_action close_receipt done [19:23:13]requested_data is exist [19:23:13]produce_requested_data [19:23:13]requested_item fm.sn is exist - process it [19:23:13]wFMCommunicate request_size=4 [19:23:13]MH_SAM_APDU [19:23:13]CAPDU: 80 11 00 00 [19:23:13]Write to MH i2c: E2 08 00 C7 16 80 11 00 00 00 00 00 00 57 [19:23:13]Write i2c OK [19:23:13]MH_I2C_Read... [19:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:13]Read from MH i2c: E2 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 17 00 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 17 00 C7 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B2 [19:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:23:13]wFMCommunicate OK [19:23:13]requested_item fd.num is exist - process it [19:23:13]SAM_PROTO_GetFieldsCounters [19:23:13]wFMCommunicate request_size=4 [19:23:13]MH_SAM_APDU [19:23:13]CAPDU: 80 13 00 00 [19:23:13]Write to MH i2c: E2 08 00 C8 16 80 13 00 00 00 00 00 00 5A [19:23:13]Write i2c OK [19:23:13]MH_I2C_Read... [19:23:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:13]Read from MH i2c: E2 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 62 00 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 62 00 C8 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 25 CF 01 00 0E 04 04 00 B1 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 E6 [19:23: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 25 CF 01 00 0E 04 04 00 B1 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 [19:23:13]wFMCommunicate OK [19:23:13]SAM_PROTO_GetFieldsCounters done [19:23:13]requested_item shift.num is exist - process it [19:23:13]requested_item shift.opened is exist - process it [19:23:13]req_shift_opened [19:23:13]FM_GetShiftState [19:23:13]SAM_PROTO_GetShiftState [19:23:13]wFMCommunicate request_size=4 [19:23:13]MH_SAM_APDU [19:23:13]CAPDU: 80 13 01 00 [19:23:13]Write to MH i2c: E2 08 00 C9 16 80 13 01 00 00 00 00 00 5C [19:23:13]Write i2c OK [19:23:13]MH_I2C_Read... [19:23:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:13]Read from MH i2c: E2 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 0E 00 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 0E 00 C9 16 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 33 [19:23:13]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:23:13]wFMCommunicate OK [19:23:13]SAM_PROTO_GetShiftState done [19:23:13]FM_GetShiftState done [19:23:13]req_shift_opened done [19:23:13]requested_item shift.open_date is exist - process it [19:23:13]req_shift_open_date [19:23:13]req_shift_open_date done [19:23:13]produce_requested_data done [19:23:13]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118565,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [19:23:13]process_action_free close_receipt [19:23:13]json_value_free [19:23:13]json_value_free done [19:23:13]process_json_proto returns [19:23:13]Send response to host [19:23:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118565,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [19:23:13]free response buf [19:23:13]execute_script done [19:23:13]execute_script returns [19:23:13]free content buf [19:23:13]Sock 7.Close socket [19:23:13]Sock 7.Thread stoped [19:23:17]OFD Sender: No OFD packet to send [19:23:22]OFD Sender: No OFD packet to send [19:23:27]OFD Sender: No OFD packet to send [19:23:32]OFD Sender: No OFD packet to send [19:23:37]OFD Sender: No OFD packet to send [19:23:42]OFD Sender: No OFD packet to send [19:23:47]OFD Sender: No OFD packet to send [19:23:52]OFD Sender: No OFD packet to send [19:23:57]OFD Sender: No OFD packet to send [19:24:02]OFD Sender: No OFD packet to send [19:24:02]accept exits with 9 [19:24:02]New connection [19:24:02]New thread 3067239780 created [19:24:02]Thread 3067383140 joined [19:24:02]Waiting for new connection... [19:24:02] Sock 9.Parse request [19:24:02]Sock 9.Check first char [19:24:02]Sock 9.First char is OK [19:24:02]request: POST /json_proto HTTP/1.0 [19:24:02]Method: POST [19:24:02]URL: /json_proto [19:24:02]Method is POST - this is cgi request [19:24:02]url: /json_proto [19:24:02]query_string will be loaded in cgi processing [19:24:02]execute_cgi json_proto POST (null) [19:24:02]execute_cgi path=json_proto method=POST [19:24:02]POST find Content-Length [19:24:02]Host: 172.17.45.7:8080 [19:24:02]Content-Length: 677 [19:24:02]Content-Type: application/json [19:24:02] [19:24:02]POST finish read [19:24:02]Found Content-Length = 677 [19:24:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949454", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:02]execute_script... [19:24: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)949454", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:02]POST & json_proto [19:24:02]process_json_proto [19:24:02]json parsed OK: [19:24:02]protocol is kg_v1.0 [19:24:02]action value=close_receipt [19:24:02]process_action close_receipt [19:24:02]cmd_close_receipt [19:24:02]MH_GetDate [19:24:02]Write to MH i2c: F0 00 00 CA 16 CF [19:24:02]Write i2c OK [19:24:02]MH_I2C_Read... [19:24:02]Read from MH i2c: F0 [19:24:02]MH_I2C_Read... [19:24:02]Read from MH i2c: F0 09 00 [19:24:02]MH_I2C_Read... [19:24:02]Read from MH i2c: F0 09 00 CA 16 00 D4 9A A6 66 90 0F 3E 66 95 [19:24:02]GetLastDocTimeStamp 1722194591 [19:24:02]current date 1722194644 [19:24:02]FM_GetShiftState [19:24:02]SAM_PROTO_GetShiftState [19:24:02]wFMCommunicate request_size=4 [19:24:02]MH_SAM_APDU [19:24:02]CAPDU: 80 13 01 00 [19:24:02]Write to MH i2c: E2 08 00 CB 16 80 13 01 00 00 00 00 00 5E [19:24:02]Write i2c OK [19:24:02]MH_I2C_Read... [19:24:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:02]Read from MH i2c: E2 [19:24:02]MH_I2C_Read... [19:24:02]Read from MH i2c: E2 0E 00 [19:24:02]MH_I2C_Read... [19:24:02]Read from MH i2c: E2 0E 00 CB 16 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 35 [19:24:02]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:24:02]wFMCommunicate OK [19:24:02]SAM_PROTO_GetShiftState done [19:24:02]FM_GetShiftState done [19:24:02]opened in 1722125364 [19:24:02]opened+sec_in_day 1722211764 [19:24:02]quantity*price = 50036 [19:24:02]sum+1 = 50037 [19:24:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 235 28.07.2024 19:24 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118566 ФПД: 129572349992617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T192404&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118566&fm=129572349992617&tin=02508201610067®Number=0000000000092660&sum=50000 [19:24:04]StoreToDocumentArchive [19:24:04]shift 433 fd 118566 [19:24:04]save to /storage/0433/doc_00118566 [19:24:04]save last doc name /storage/0433/doc_00118566 to /storage/kkm_last_doc_name [19:24:04]save OK [19:24:04]Clear old archive folders... [19:24:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:24:04]tlvbuf is 01E4D7B0 [19:24:04]SAM_PROTO_ClearQueue [19:24:04]wFMCommunicate request_size=4 [19:24:04]MH_SAM_APDU [19:24:04]CAPDU: 80 09 00 00 [19:24:04]Write to MH i2c: E2 08 00 D8 16 80 09 00 00 00 00 00 00 60 [19:24:04]Write i2c OK [19:24:04]MH_I2C_Read... [19:24:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:04]Read from MH i2c: E2 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 03 00 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 03 00 D8 16 00 90 00 62 [19:24:04]RAPDU: 90 00 [19:24:04]wFMCommunicate OK [19:24:04]SAM_PROTO_ClearQueue done [19:24:04]KKMCreateOFDPacket [19:24:04]OFDProtocolAddRootSTLVToBuf [19:24:04]FM_MakeSignedData [19:24:04]FM_MakeSignedData [19:24:04]SAM_PROTO_SignData [19:24:04]wFMCommunicate request_size=4 [19:24:04]MH_SAM_APDU [19:24:04]CAPDU: 80 0D 01 02 [19:24:04]Write to MH i2c: E2 08 00 D9 16 80 0D 01 02 00 00 00 00 68 [19:24:04]Write i2c OK [19:24:04]MH_I2C_Read... [19:24:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:04]Read from MH i2c: E2 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 03 00 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 03 00 D9 16 00 90 00 63 [19:24:04]RAPDU: 90 00 [19:24:04]wFMCommunicate OK [19:24:04]wFMCommunicate request_size=255 [19:24:04]MH_SAM_APDU [19: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 D4 9A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 26 CF 01 00 35 04 06 00 75 [19:24:04]Write to MH i2c: E2 02 01 DA 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 D4 9A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 26 CF 01 00 35 04 06 00 75 00 00 6E [19:24:04]Write i2c OK [19:24:04]MH_I2C_Read... [19:24:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:04]Read from MH i2c: E2 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 03 00 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 03 00 DA 16 00 90 00 64 [19:24:04]RAPDU: 90 00 [19:24:04]wFMCommunicate OK [19:24:04]wFMCommunicate request_size=10 [19:24:04]MH_SAM_APDU [19:24:04]CAPDU: 80 0D 02 02 05 D8 69 E4 DE A9 [19:24:04]Write to MH i2c: E2 0D 00 DB 16 80 0D 02 02 05 00 D8 69 E4 DE A9 00 00 21 [19:24:04]Write i2c OK [19:24:04]MH_I2C_Read... [19:24:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:04]Read from MH i2c: E2 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 03 00 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 03 00 DB 16 00 90 00 65 [19:24:04]RAPDU: 90 00 [19:24:04]wFMCommunicate OK [19:24:04]wFMCommunicate request_size=4 [19:24:04]MH_SAM_APDU [19:24:04]CAPDU: 80 0D 03 02 [19:24:04]Write to MH i2c: E2 08 00 DC 16 80 0D 03 02 00 00 00 00 6D [19:24:04]Write i2c OK [19:24:04]MH_I2C_Read... [19:24:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:04]Read from MH i2c: E2 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 0B 00 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 0B 00 DC 16 00 3B 12 24 06 43 39 5D 00 90 00 BE [19:24:04]RAPDU: 3B 12 24 06 43 39 5D 00 90 00 [19:24:04]wFMCommunicate OK [19:24:04]SAM_PROTO_SignData done [19:24:04]FM_MakeSignedData done [19:24:04]CreateOFDProtocolMessage [19:24:04]wFMCommunicate request_size=4 [19:24:04]MH_SAM_APDU [19:24:04]CAPDU: 80 11 00 00 [19:24:04]Write to MH i2c: E2 08 00 DD 16 80 11 00 00 00 00 00 00 6D [19:24:04]Write i2c OK [19:24:04]MH_I2C_Read... [19:24:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:04]Read from MH i2c: E2 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 17 00 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 17 00 DD 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C8 [19:24:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:24:04]wFMCommunicate OK [19:24:04]CreateOFDProtocolMessage done [19:24:04]OFDSenderStorePacket 118566 [19:24:04]StoreOFDPacket docnum=118566 [19:24:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 97 AF 07 01 FC 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 D4 9A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 26 CF 01 00 35 04 06 00 75 D8 69 E4 DE A9 3B 12 24 06 43 39 5D 00 [19:24:04]CheckFolder [19:24:04]dirname=/storage/ofd_packets [19:24:04]CheckFolder done [19:24:04]ProducePacketName [19:24:04]name=ofd_packets/00118566 [19:24:04]NVStorageSaveData ofd_packets/00118566 [19:24:04]File name is /storage/ofd_packets/00118566 [19:24:04]Write 301 bytes [19:24:04]NVStorageSaveData done [19:24:04]OFDSenderStorePacket done [19:24:04]KKMCreateOFDPacket done [19:24:04]NVStorageSaveData kkm_last_timestamp [19:24:04]File name is /storage/kkm_last_timestamp [19:24:04]Write 4 bytes [19:24:04]NVStorageSaveData done [19:24:04]OFD Sender: Processing packet 118566 [packets to send 86, broken 85] [19:24:04]ProducePacketName [19:24:04]name=ofd_packets/00118566 [19:24:04]OFD Sender: To server: pG, [19:24:04]CommunicateWithHost lk.salyk.kg:30040 [19:24:04]ConnectInit lk.salyk.kg [19:24:04]ExternCall_PrintAddStr [19:24:04]wPrintStart [19:24:04]Write to MH i2c: 01 00 00 DE 16 F4 [19:24:04]Write i2c OK [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: 01 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: 01 07 00 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: 01 07 00 DE 16 00 00 00 00 00 FF 0F 09 [19:24:04]RasterBufferAndPrint [19:24:04]line Счет N : (1)949454 [19:24:04]line ИНН: 02508201610067 [19:24:04]line Контрольно-Кассовый Чек [19:24:04]line ПРОДАЖА [19:24:04]line ТРК (МРК, ГНК) : 41 [19:24:04]line Товар: 2710124130 [19:24:04]line Аи-92-К-4 [19:24:04]line 7.380 * 67.80 [19:24:04]line = 500.36 [19:24:04]line НДС 12% НСП 1% [19:24:04]line > о реализуемом товаре [19:24:04]line ОКРУГЛЕНИЕ: -0.36 [19:24:04]line ИТОГО: 500.00 [19:24:04]line Внесено: 500.00 [19:24:04]line СДАЧА: 0.00 [19:24:04]line НСП 1% : 4.43 [19:24:04]line НДС 12% : 53.14 [19:24:04]line Наличными: 500.00 [19:24:04]line Безнал.: 0.00 [19:24:04]line Место: АЗС № 134 "Партнер Нефть" [19:24:04]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:24:04]line СНО: Общий режим [19:24:04]line Чек 235 28.07.2024 19:24 [19:24:04]line Смена: 433 ФФД: 1.0 [19:24:04]line ЗНМ: 0300000044 [19:24:04]line РНМ: 0000000000092660 [19:24:04]line Версия ККМ: 001 [19:24:04]line ФМ: 0000000000874939 [19:24:04]line ФД: 118566 [19:24:04]line ФПД: 129572349992617 [19:24:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T192404&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118566&fm=129572349992617&tin=02508201610067®Number=0000000000092660&sum=50000 [19:24:04]Connected sock=11 [19:24:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 97 AF 07 01 FC 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 D4 9A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 26 CF 01 00 35 04 06 00 75 D8 69 E4 DE A9 3B 12 24 06 43 39 5D 00 [19:24:04]written 0, free lines is 4095 [19: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 39 33 39 4F 00 00 00 46 0F 47 00 43 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 39 33 39 10 04 04 00 26 CF 01 00 F4 03 04 00 64 48 A6 66 B6 04 01 00 00 7E 1C 9A 7E 61 47 75 E1 [19:24:05]CommunicateWithHost err = 0 [19:24:05]CheckOFDResponse [19:24:05]1017 (14) - 77093643461234 [19:24:05]1041 (16) - 0000000000874939 [19:24:05]1040 (4) - 118566 [19:24:05]1012 (4) - 28.07.2024 13:32 [19:24:05]1206 (1) - 0 [19:24:05]OFD Sender: Remove packet 118566 [19:24:05]ProducePacketName [19:24:05]name=ofd_packets/00118566 [19:24:05]NVStorageDeleteData [19:24:05]Write to MH i2c: 01 00 00 08 17 1F [19:24:05]Write i2c OK [19:24:05]MH_I2C_Read... [19:24:05]Read from MH i2c: 01 [19:24:05]MH_I2C_Read... [19:24:05]Read from MH i2c: 01 07 00 [19:24:05]MH_I2C_Read... [19:24:05]Read from MH i2c: 01 07 00 08 17 00 00 00 00 00 DC 0C 0E [19:24:05]RasterBufferAndPrint [19:24:05]line [19:24:05]line [19:24:05]line [19:24:05]line [19:24:05]line [19:24:05]written 0, free lines is 3298 [19:24:05]MH_Cut [19:24:05]Write to MH i2c: D1 01 00 0F 17 01 F8 [19:24:05]Write i2c OK [19:24:05]MH_I2C_Read... [19:24:05]Read from MH i2c: D1 [19:24:05]MH_I2C_Read... [19:24:05]Read from MH i2c: D1 01 00 [19:24:05]MH_I2C_Read... [19:24:05]Read from MH i2c: D1 01 00 0F 17 00 F7 [19:24:05]Write to MH i2c: 01 00 00 10 17 27 [19:24:05]Write i2c OK [19:24:05]MH_I2C_Read... [19:24:05]OFD Sender: No OFD packet to send [19:24:06]*** Cut start [19:24:06]*** Partial cut [19:24:06]*** CUTSNS_PIN = 1 [19:24:06]*** CUTSNS_PIN = 0 [19:24:06]*** Brake cut motor [19:24:06]Read from MH i2c: 01 [19:24:06]MH_I2C_Read... [19:24:06]*** Stop cut motor [19:24:06]*** Cut end [19:24:06]Read from MH i2c: 01 07 00 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: 01 07 00 10 17 00 00 00 00 00 FF 0F 3C [19:24:06]process_action close_receipt done [19:24:06]requested_data is exist [19:24:06]produce_requested_data [19:24:06]requested_item fm.sn is exist - process it [19:24:06]wFMCommunicate request_size=4 [19:24:06]MH_SAM_APDU [19:24:06]CAPDU: 80 11 00 00 [19:24:06]Write to MH i2c: E2 08 00 11 17 80 11 00 00 00 00 00 00 A2 [19:24:06]Write i2c OK [19:24:06]MH_I2C_Read... [19:24:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:06]Read from MH i2c: E2 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: E2 17 00 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: E2 17 00 11 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FD [19:24:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:24:06]wFMCommunicate OK [19:24:06]requested_item fd.num is exist - process it [19:24:06]SAM_PROTO_GetFieldsCounters [19:24:06]wFMCommunicate request_size=4 [19:24:06]MH_SAM_APDU [19:24:06]CAPDU: 80 13 00 00 [19:24:06]Write to MH i2c: E2 08 00 12 17 80 13 00 00 00 00 00 00 A5 [19:24:06]Write i2c OK [19:24:06]MH_I2C_Read... [19:24:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:06]Read from MH i2c: E2 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: E2 62 00 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: E2 62 00 12 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 26 CF 01 00 0E 04 04 00 B1 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 35 [19:24:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 26 CF 01 00 0E 04 04 00 B1 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 [19:24:06]wFMCommunicate OK [19:24:06]SAM_PROTO_GetFieldsCounters done [19:24:06]requested_item shift.num is exist - process it [19:24:06]requested_item shift.opened is exist - process it [19:24:06]req_shift_opened [19:24:06]FM_GetShiftState [19:24:06]SAM_PROTO_GetShiftState [19:24:06]wFMCommunicate request_size=4 [19:24:06]MH_SAM_APDU [19:24:06]CAPDU: 80 13 01 00 [19:24:06]Write to MH i2c: E2 08 00 13 17 80 13 01 00 00 00 00 00 A7 [19:24:06]Write i2c OK [19:24:06]MH_I2C_Read... [19:24:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:06]Read from MH i2c: E2 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: E2 0E 00 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: E2 0E 00 13 17 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 7E [19:24:06]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:24:06]wFMCommunicate OK [19:24:06]SAM_PROTO_GetShiftState done [19:24:06]FM_GetShiftState done [19:24:06]req_shift_opened done [19:24:06]requested_item shift.open_date is exist - process it [19:24:06]req_shift_open_date [19:24:06]req_shift_open_date done [19:24:06]produce_requested_data done [19:24:06]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118566,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [19:24:06]process_action_free close_receipt [19:24:06]json_value_free [19:24:06]json_value_free done [19:24:06]process_json_proto returns [19:24:06]Send response to host [19:24:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118566,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [19:24:06]free response buf [19:24:06]execute_script done [19:24:06]execute_script returns [19:24:06]free content buf [19:24:06]Sock 9.Close socket [19:24:06]Sock 9.Thread stoped [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:22]accept exits with 7 [19:24:22]New connection [19:24:22]New thread 3067383140 created [19:24:22]Thread 3067239780 joined [19:24:22]Waiting for new connection... [19:24:22] Sock 7.Parse request [19:24:22]Sock 7.Check first char [19:24:22]Sock 7.First char is OK [19:24:22]request: POST /json_proto HTTP/1.0 [19:24:22]Method: POST [19:24:22]URL: /json_proto [19:24:22]Method is POST - this is cgi request [19:24:22]url: /json_proto [19:24:22]query_string will be loaded in cgi processing [19:24:22]execute_cgi json_proto POST (null) [19:24:22]execute_cgi path=json_proto method=POST [19:24:22]POST find Content-Length [19:24:22]Host: 172.17.45.7:8080 [19:24:22]Content-Length: 820 [19:24:22]Content-Type: application/json [19:24:22] [19:24:22]POST finish read [19:24:22]Found Content-Length = 820 [19:24:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 118.120, "sum" : 9000.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 9000.00, "payments": [ { "type": 1, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:22]execute_script... [19:24: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)949450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 118.120, "sum" : 9000.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 9000.00, "payments": [ { "type": 1, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:22]POST & json_proto [19:24:22]process_json_proto [19:24:22]json parsed OK: [19:24:22]protocol is kg_v1.0 [19:24:22]action value=close_receipt [19:24:22]process_action close_receipt [19:24:22]cmd_close_receipt [19:24:22]MH_GetDate [19:24:22]Write to MH i2c: F0 00 00 14 17 1A [19:24:22]Write i2c OK [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: F0 [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: F0 09 00 [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: F0 09 00 14 17 00 E8 9A A6 66 90 0F 3E 66 F4 [19:24:22]GetLastDocTimeStamp 1722194644 [19:24:22]current date 1722194664 [19:24:22]FM_GetShiftState [19:24:22]SAM_PROTO_GetShiftState [19:24:22]wFMCommunicate request_size=4 [19:24:22]MH_SAM_APDU [19:24:22]CAPDU: 80 13 01 00 [19:24:22]Write to MH i2c: E2 08 00 15 17 80 13 01 00 00 00 00 00 A9 [19:24:22]Write i2c OK [19:24:22]MH_I2C_Read... [19:24:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:22]Read from MH i2c: E2 [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: E2 0E 00 [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: E2 0E 00 15 17 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 80 [19:24:22]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:24:22]wFMCommunicate OK [19:24:22]SAM_PROTO_GetShiftState done [19:24:22]FM_GetShiftState done [19:24:22]opened in 1722125364 [19:24:22]opened+sec_in_day 1722211764 [19:24:22]quantity*price = 900074 [19:24:22]sum+1 = 900075 [19:24:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 9000.00 НСП 1% : 79.65 НДС 12% : 955.83 Наличными: 0.00 Безнал.: 9000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 236 28.07.2024 19:24 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118567 ФПД: 226579348055052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T192424&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118567&fm=226579348055052&tin=02508201610067®Number=0000000000092660&sum=900000 [19:24:23]StoreToDocumentArchive [19:24:23]shift 433 fd 118567 [19:24:23]save to /storage/0433/doc_00118567 [19:24:23]save last doc name /storage/0433/doc_00118567 to /storage/kkm_last_doc_name [19:24:23]save OK [19:24:23]Clear old archive folders... [19:24:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:24:23]tlvbuf is B6F2A750 [19:24:23]SAM_PROTO_ClearQueue [19:24:23]wFMCommunicate request_size=4 [19:24:23]MH_SAM_APDU [19:24:23]CAPDU: 80 09 00 00 [19:24:23]Write to MH i2c: E2 08 00 22 17 80 09 00 00 00 00 00 00 AB [19:24:23]Write i2c OK [19:24:23]MH_I2C_Read... [19:24:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:24]Read from MH i2c: E2 [19:24:24]MH_I2C_Read... [19:24:24]Read from MH i2c: E2 03 00 [19:24:24]MH_I2C_Read... [19:24:24]Read from MH i2c: E2 03 00 22 17 00 90 00 AD [19:24:24]RAPDU: 90 00 [19:24:24]wFMCommunicate OK [19:24:24]SAM_PROTO_ClearQueue done [19:24:24]KKMCreateOFDPacket [19:24:24]OFDProtocolAddRootSTLVToBuf [19:24:24]FM_MakeSignedData [19:24:24]FM_MakeSignedData [19:24:24]SAM_PROTO_SignData [19:24:24]wFMCommunicate request_size=4 [19:24:24]MH_SAM_APDU [19:24:24]CAPDU: 80 0D 01 02 [19:24:24]Write to MH i2c: E2 08 00 23 17 80 0D 01 02 00 00 00 00 B3 [19:24:24]Write i2c OK [19:24:24]MH_I2C_Read... [19:24:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:24]Read from MH i2c: E2 [19:24:24]MH_I2C_Read... [19:24:24]Read from MH i2c: E2 03 00 [19:24:24]MH_I2C_Read... [19:24:24]Read from MH i2c: E2 03 00 23 17 00 90 00 AE [19:24:24]RAPDU: 90 00 [19:24:24]wFMCommunicate OK [19:24:24]wFMCommunicate request_size=255 [19:24:24]MH_SAM_APDU [19:24:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 E8 9A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 27 CF 01 00 35 04 06 00 CE 12 9D 8D [19:24:24]Write to MH i2c: E2 02 01 24 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 E8 9A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 27 CF 01 00 35 04 06 00 CE 12 9D 8D 00 00 F2 [19:24:24]Write i2c OK [19:24:24]MH_I2C_Read... [19:24:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:24]Read from MH i2c: E2 [19:24:24]MH_I2C_Read... [19:24:24]Read from MH i2c: E2 03 00 [19:24:24]MH_I2C_Read... [19:24:24]Read from MH i2c: E2 03 00 24 17 00 90 00 AF [19:24:24]RAPDU: 90 00 [19:24:24]wFMCommunicate OK [19:24:24]wFMCommunicate request_size=7 [19:24:24]MH_SAM_APDU [19:24:24]CAPDU: 80 0D 02 02 02 E4 0C [19:24:24]Write to MH i2c: E2 0A 00 25 17 80 0D 02 02 02 00 E4 0C 00 00 AA [19:24:24]Write i2c OK [19:24:24]MH_I2C_Read... [19:24:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:24]Read from MH i2c: E2 [19:24:24]MH_I2C_Read... [19:24:24]Read from MH i2c: E2 03 00 [19:24:24]MH_I2C_Read... [19:24:24]Read from MH i2c: E2 03 00 25 17 00 90 00 B0 [19:24:24]RAPDU: 90 00 [19:24:24]wFMCommunicate OK [19:24:24]wFMCommunicate request_size=4 [19:24:24]MH_SAM_APDU [19:24:24]CAPDU: 80 0D 03 02 [19:24:24]Write to MH i2c: E2 08 00 26 17 80 0D 03 02 00 00 00 00 B8 [19:24:24]Write i2c OK [19:24:24]MH_I2C_Read... [19:24:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:24]Read from MH i2c: E2 [19:24:24]MH_I2C_Read... [19:24:24]Read from MH i2c: E2 0B 00 [19:24:24]MH_I2C_Read... [19:24:24]Read from MH i2c: E2 0B 00 26 17 00 06 C5 FD A3 CD FC 1F 1A 90 00 26 [19:24:24]RAPDU: 06 C5 FD A3 CD FC 1F 1A 90 00 [19:24:24]wFMCommunicate OK [19:24:24]SAM_PROTO_SignData done [19:24:24]FM_MakeSignedData done [19:24:24]CreateOFDProtocolMessage [19:24:24]wFMCommunicate request_size=4 [19:24:24]MH_SAM_APDU [19:24:24]CAPDU: 80 11 00 00 [19:24:24]Write to MH i2c: E2 08 00 27 17 80 11 00 00 00 00 00 00 B8 [19:24:24]Write i2c OK [19:24:24]MH_I2C_Read... [19:24:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:24]Read from MH i2c: E2 [19:24:24]MH_I2C_Read... [19:24:24]Read from MH i2c: E2 17 00 [19:24:24]MH_I2C_Read... [19:24:24]Read from MH i2c: E2 17 00 27 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 13 [19:24:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:24:24]wFMCommunicate OK [19:24:24]CreateOFDProtocolMessage done [19:24:24]OFDSenderStorePacket 118567 [19:24:24]StoreOFDPacket docnum=118567 [19:24:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 31 17 04 01 E5 D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 E8 9A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 27 CF 01 00 35 04 06 00 CE 12 9D 8D E4 0C 06 C5 FD A3 CD FC 1F 1A [19:24:24]CheckFolder [19:24:24]dirname=/storage/ofd_packets [19:24:24]CheckFolder done [19:24:24]ProducePacketName [19:24:24]name=ofd_packets/00118567 [19:24:24]NVStorageSaveData ofd_packets/00118567 [19:24:24]File name is /storage/ofd_packets/00118567 [19:24:24]Write 298 bytes [19:24:24]NVStorageSaveData done [19:24:24]OFDSenderStorePacket done [19:24:24]KKMCreateOFDPacket done [19:24:24]NVStorageSaveData kkm_last_timestamp [19:24:24]File name is /storage/kkm_last_timestamp [19:24:24]Write 4 bytes [19:24:24]NVStorageSaveData done [19:24:24]ExternCall_PrintAddStr [19:24:24]wPrintStart [19:24:24]Write to MH i2c: 01 00 00 28 17 3F [19:24:24]Write i2c OK [19:24:24]MH_I2C_Read... [19:24:24]Read from MH i2c: 01 [19:24:24]MH_I2C_Read... [19:24:24]Read from MH i2c: 01 07 00 [19:24:24]MH_I2C_Read... [19:24:24]Read from MH i2c: 01 07 00 28 17 00 00 00 00 00 FF 0F 54 [19:24:24]RasterBufferAndPrint [19:24:24]line Счет N : (1)949450 [19:24:24]line ИНН: 02508201610067 [19:24:24]line Контрольно-Кассовый Чек [19:24:24]line ПРОДАЖА [19:24:24]line ТРК (МРК, ГНК) : 21 [19:24:24]line Товар: 2710194800 [19:24:24]line ДТ-К-5 [19:24:24]line 118.120 * 76.20 [19:24:24]line = 9000.74 [19:24:24]line НДС 12% НСП 1% [19:24:24]line > о реализуемом товаре [19:24:24]line ОКРУГЛЕНИЕ: -0.74 [19:24:24]line ИТОГО: 9000.00 [19:24:24]line НСП 1% : 79.65 [19:24:24]line НДС 12% : 955.83 [19:24:24]line Наличными: 0.00 [19:24:24]line Безнал.: 9000.00 [19:24:24]line Место: АЗС № 134 "Партнер Нефть" [19:24:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:24:24]line СНО: Общий режим [19:24:24]line Чек 236 28.07.2024 19:24 [19:24:24]line Смена: 433 ФФД: 1.0 [19:24:24]line ЗНМ: 0300000044 [19:24:24]line РНМ: 0000000000092660 [19:24:24]line Версия ККМ: 001 [19:24:24]line Платежная система: O! деньги [19:24:24]line ФМ: 0000000000874939 [19:24:24]line ФД: 118567 [19:24:24]line ФПД: 226579348055052 [19:24:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T192424&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118567&fm=226579348055052&tin=02508201610067®Number=0000000000092660&sum=900000 [19:24:24]OFD Sender: Processing packet 118567 [packets to send 86, broken 85] [19:24:24]ProducePacketName [19:24:24]name=ofd_packets/00118567 [19:24:24]OFD Sender: To server: pG, [19:24:24]CommunicateWithHost lk.salyk.kg:30040 [19:24:24]ConnectInit lk.salyk.kg [19:24:24]written 0, free lines is 4095 [19:24:24]Connected sock=10 [19:24:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 31 17 04 01 E5 D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 E8 9A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 27 CF 01 00 35 04 06 00 CE 12 9D 8D E4 0C 06 C5 FD A3 CD FC 1F 1A [19:24:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EC 8B 47 00 56 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 39 33 39 10 04 04 00 27 CF 01 00 F4 03 04 00 78 48 A6 66 B6 04 01 00 00 EA 5D 64 37 31 EC F3 AB [19:24:25]CommunicateWithHost err = 0 [19:24:25]CheckOFDResponse [19:24:25]1017 (14) - 77093643461234 [19:24:25]1041 (16) - 0000000000874939 [19:24:25]1040 (4) - 118567 [19:24:25]1012 (4) - 28.07.2024 13:32 [19:24:25]1206 (1) - 0 [19:24:25]OFD Sender: Remove packet 118567 [19:24:25]ProducePacketName [19:24:25]name=ofd_packets/00118567 [19:24:25]NVStorageDeleteData [19:24:25]Write to MH i2c: 01 00 00 52 17 69 [19:24:25]Write i2c OK [19:24:25]MH_I2C_Read... [19:24:25]Read from MH i2c: 01 [19:24:25]MH_I2C_Read... [19:24:25]Read from MH i2c: 01 07 00 [19:24:25]MH_I2C_Read... [19:24:25]Read from MH i2c: 01 07 00 52 17 00 00 00 00 00 EB 0C 67 [19:24:25]RasterBufferAndPrint [19:24:25]line [19:24:25]line [19:24:25]line [19:24:25]line [19:24:25]line [19:24:25]written 0, free lines is 3314 [19:24:25]MH_Cut [19:24:25]Write to MH i2c: D1 01 00 59 17 01 42 [19:24:25]Write i2c OK [19:24:25]MH_I2C_Read... [19:24:25]Read from MH i2c: D1 [19:24:25]MH_I2C_Read... [19:24:25]Read from MH i2c: D1 01 00 [19:24:25]MH_I2C_Read... [19:24:25]Read from MH i2c: D1 01 00 59 17 00 41 [19:24:25]Write to MH i2c: 01 00 00 5A 17 71 [19:24:25]Write i2c OK [19:24:25]MH_I2C_Read... [19:24:25]OFD Sender: No OFD packet to send [19:24:25]*** Cut start [19:24:25]*** Partial cut [19:24:25]*** CUTSNS_PIN = 1 [19:24:26]*** CUTSNS_PIN = 0 [19:24:26]*** Brake cut motor [19:24:26]Read from MH i2c: 01 [19:24:26]MH_I2C_Read... [19:24:26]*** Stop cut motor [19:24:26]*** Cut end [19:24:26]Read from MH i2c: 01 07 00 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: 01 07 00 5A 17 00 00 00 00 00 FF 0F 86 [19:24:26]process_action close_receipt done [19:24:26]requested_data is exist [19:24:26]produce_requested_data [19:24:26]requested_item fm.sn is exist - process it [19:24:26]wFMCommunicate request_size=4 [19:24:26]MH_SAM_APDU [19:24:26]CAPDU: 80 11 00 00 [19:24:26]Write to MH i2c: E2 08 00 5B 17 80 11 00 00 00 00 00 00 EC [19:24:26]Write i2c OK [19:24:26]MH_I2C_Read... [19:24:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:26]Read from MH i2c: E2 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 17 00 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 17 00 5B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 47 [19:24:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:24:26]wFMCommunicate OK [19:24:26]requested_item fd.num is exist - process it [19:24:26]SAM_PROTO_GetFieldsCounters [19:24:26]wFMCommunicate request_size=4 [19:24:26]MH_SAM_APDU [19:24:26]CAPDU: 80 13 00 00 [19:24:26]Write to MH i2c: E2 08 00 5C 17 80 13 00 00 00 00 00 00 EF [19:24:26]Write i2c OK [19:24:26]MH_I2C_Read... [19:24:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:26]Read from MH i2c: E2 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 62 00 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 62 00 5C 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 27 CF 01 00 0E 04 04 00 B1 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 83 [19:24:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 27 CF 01 00 0E 04 04 00 B1 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 [19:24:26]wFMCommunicate OK [19:24:26]SAM_PROTO_GetFieldsCounters done [19:24:26]requested_item shift.num is exist - process it [19:24:26]requested_item shift.opened is exist - process it [19:24:26]req_shift_opened [19:24:26]FM_GetShiftState [19:24:26]SAM_PROTO_GetShiftState [19:24:26]wFMCommunicate request_size=4 [19:24:26]MH_SAM_APDU [19:24:26]CAPDU: 80 13 01 00 [19:24:26]Write to MH i2c: E2 08 00 5D 17 80 13 01 00 00 00 00 00 F1 [19:24:26]Write i2c OK [19:24:26]MH_I2C_Read... [19:24:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:26]Read from MH i2c: E2 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 0E 00 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 0E 00 5D 17 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 C8 [19:24:26]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:24:26]wFMCommunicate OK [19:24:26]SAM_PROTO_GetShiftState done [19:24:26]FM_GetShiftState done [19:24:26]req_shift_opened done [19:24:26]requested_item shift.open_date is exist - process it [19:24:26]req_shift_open_date [19:24:26]req_shift_open_date done [19:24:26]produce_requested_data done [19:24:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118567,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [19:24:26]process_action_free close_receipt [19:24:26]json_value_free [19:24:26]json_value_free done [19:24:26]process_json_proto returns [19:24:26]Send response to host [19:24:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118567,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [19:24:26]free response buf [19:24:26]execute_script done [19:24:26]execute_script returns [19:24:26]free content buf [19:24:26]Sock 7.Close socket [19:24:26]Sock 7.Thread stoped [19:24:27]accept exits with 9 [19:24:27]New connection [19:24:27]New thread 3067239780 created [19:24:27]Thread 3067383140 joined [19:24:27]Waiting for new connection... [19:24:27] Sock 9.Parse request [19:24:27]Sock 9.Check first char [19:24:27]Sock 9.First char is OK [19:24:27]request: POST /json_proto HTTP/1.0 [19:24:27]Method: POST [19:24:27]URL: /json_proto [19:24:27]Method is POST - this is cgi request [19:24:27]url: /json_proto [19:24:27]query_string will be loaded in cgi processing [19:24:27]execute_cgi json_proto POST (null) [19:24:27]execute_cgi path=json_proto method=POST [19:24:27]POST find Content-Length [19:24:27]Host: 172.17.45.7:8080 [19:24:27]Content-Length: 819 [19:24:27]Content-Type: application/json [19:24:27] [19:24:27]POST finish read [19:24:27]Found Content-Length = 819 [19:24:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 78.750, "sum" : 6000.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 6000.00, "payments": [ { "type": 1, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:27]execute_script... [19:24: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)949451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 78.750, "sum" : 6000.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 6000.00, "payments": [ { "type": 1, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:27]POST & json_proto [19:24:27]process_json_proto [19:24:27]json parsed OK: [19:24:27]protocol is kg_v1.0 [19:24:27]action value=close_receipt [19:24:27]process_action close_receipt [19:24:27]cmd_close_receipt [19:24:27]MH_GetDate [19:24:27]Write to MH i2c: F0 00 00 5E 17 64 [19:24:27]Write i2c OK [19:24:27]MH_I2C_Read... [19:24:27]Read from MH i2c: F0 [19:24:27]MH_I2C_Read... [19:24:27]Read from MH i2c: F0 09 00 [19:24:27]MH_I2C_Read... [19:24:27]Read from MH i2c: F0 09 00 5E 17 00 ED 9A A6 66 90 0F 3E 66 43 [19:24:27]GetLastDocTimeStamp 1722194664 [19:24:27]current date 1722194669 [19:24:27]FM_GetShiftState [19:24:27]SAM_PROTO_GetShiftState [19:24:27]wFMCommunicate request_size=4 [19:24:27]MH_SAM_APDU [19:24:27]CAPDU: 80 13 01 00 [19:24:27]Write to MH i2c: E2 08 00 5F 17 80 13 01 00 00 00 00 00 F3 [19:24:27]Write i2c OK [19:24:27]MH_I2C_Read... [19:24:27]Read from MH i2c: E2 [19:24:27]MH_I2C_Read... [19:24:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:27]Read from MH i2c: E2 0E 00 [19:24:27]MH_I2C_Read... [19:24:27]Read from MH i2c: E2 0E 00 5F 17 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 CA [19:24:27]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:24:27]wFMCommunicate OK [19:24:27]SAM_PROTO_GetShiftState done [19:24:27]FM_GetShiftState done [19:24:27]opened in 1722125364 [19:24:27]opened+sec_in_day 1722211764 [19:24:27]quantity*price = 600075 [19:24:27]sum+1 = 600076 [19:24:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.75 ИТОГО: 6000.00 НСП 1% : 53.10 НДС 12% : 637.25 Наличными: 0.00 Безнал.: 6000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 237 28.07.2024 19:24 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118568 ФПД: 208952924469554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T192429&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118568&fm=208952924469554&tin=02508201610067®Number=0000000000092660&sum=600000 [19:24:28]StoreToDocumentArchive [19:24:28]shift 433 fd 118568 [19:24:28]save to /storage/0433/doc_00118568 [19:24:28]save last doc name /storage/0433/doc_00118568 to /storage/kkm_last_doc_name [19:24:28]save OK [19:24:28]Clear old archive folders... [19:24:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:24:28]tlvbuf is 01EA2FA0 [19:24:28]SAM_PROTO_ClearQueue [19:24:28]wFMCommunicate request_size=4 [19:24:28]MH_SAM_APDU [19:24:28]CAPDU: 80 09 00 00 [19:24:28]Write to MH i2c: E2 08 00 6C 17 80 09 00 00 00 00 00 00 F5 [19:24:28]Write i2c OK [19:24:28]MH_I2C_Read... [19:24:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:28]Read from MH i2c: E2 [19:24:28]MH_I2C_Read... [19:24:28]Read from MH i2c: E2 03 00 [19:24:28]MH_I2C_Read... [19:24:28]Read from MH i2c: E2 03 00 6C 17 00 90 00 F7 [19:24:28]RAPDU: 90 00 [19:24:28]wFMCommunicate OK [19:24:28]SAM_PROTO_ClearQueue done [19:24:28]KKMCreateOFDPacket [19:24:28]OFDProtocolAddRootSTLVToBuf [19:24:28]FM_MakeSignedData [19:24:28]FM_MakeSignedData [19:24:28]SAM_PROTO_SignData [19:24:28]wFMCommunicate request_size=4 [19:24:28]MH_SAM_APDU [19:24:28]CAPDU: 80 0D 01 02 [19:24:28]Write to MH i2c: E2 08 00 6D 17 80 0D 01 02 00 00 00 00 FD [19:24:28]Write i2c OK [19:24:28]MH_I2C_Read... [19:24:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:28]Read from MH i2c: E2 [19:24:28]MH_I2C_Read... [19:24:28]Read from MH i2c: E2 03 00 [19:24:28]MH_I2C_Read... [19:24:28]Read from MH i2c: E2 03 00 6D 17 00 90 00 F8 [19:24:28]RAPDU: 90 00 [19:24:28]wFMCommunicate OK [19:24:28]wFMCommunicate request_size=255 [19:24:28]MH_SAM_APDU [19:24:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 ED 9A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 28 CF 01 00 35 04 06 00 BE 0A A4 D6 [19:24:28]Write to MH i2c: E2 02 01 6E 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 ED 9A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 28 CF 01 00 35 04 06 00 BE 0A A4 D6 00 00 57 [19:24:28]Write i2c OK [19:24:28]MH_I2C_Read... [19:24:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:29]Read from MH i2c: E2 [19:24:29]MH_I2C_Read... [19:24:29]Read from MH i2c: E2 03 00 [19:24:29]MH_I2C_Read... [19:24:29]Read from MH i2c: E2 03 00 6E 17 00 90 00 F9 [19:24:29]RAPDU: 90 00 [19:24:29]wFMCommunicate OK [19:24:29]wFMCommunicate request_size=7 [19:24:29]MH_SAM_APDU [19:24:29]CAPDU: 80 0D 02 02 02 79 32 [19:24:29]Write to MH i2c: E2 0A 00 6F 17 80 0D 02 02 02 00 79 32 00 00 AF [19:24:29]Write i2c OK [19:24:29]MH_I2C_Read... [19:24:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:29]Read from MH i2c: E2 [19:24:29]MH_I2C_Read... [19:24:29]Read from MH i2c: E2 03 00 [19:24:29]MH_I2C_Read... [19:24:29]Read from MH i2c: E2 03 00 6F 17 00 90 00 FA [19:24:29]RAPDU: 90 00 [19:24:29]wFMCommunicate OK [19:24:29]wFMCommunicate request_size=4 [19:24:29]MH_SAM_APDU [19:24:29]CAPDU: 80 0D 03 02 [19:24:29]Write to MH i2c: E2 08 00 70 17 80 0D 03 02 00 00 00 00 02 [19:24:29]Write i2c OK [19:24:29]MH_I2C_Read... [19:24:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:29]Read from MH i2c: E2 [19:24:29]MH_I2C_Read... [19:24:29]Read from MH i2c: E2 0B 00 [19:24:29]MH_I2C_Read... [19:24:29]Read from MH i2c: E2 0B 00 70 17 00 80 F6 2C 4D A9 4B 1E EA 90 00 EE [19:24:29]RAPDU: 80 F6 2C 4D A9 4B 1E EA 90 00 [19:24:29]wFMCommunicate OK [19:24:29]SAM_PROTO_SignData done [19:24:29]FM_MakeSignedData done [19:24:29]CreateOFDProtocolMessage [19:24:29]wFMCommunicate request_size=4 [19:24:29]MH_SAM_APDU [19:24:29]CAPDU: 80 11 00 00 [19:24:29]Write to MH i2c: E2 08 00 71 17 80 11 00 00 00 00 00 00 02 [19:24:29]Write i2c OK [19:24:29]MH_I2C_Read... [19:24:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:29]Read from MH i2c: E2 [19:24:29]MH_I2C_Read... [19:24:29]Read from MH i2c: E2 17 00 [19:24:29]MH_I2C_Read... [19:24:29]Read from MH i2c: E2 17 00 71 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5D [19:24:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:24:29]wFMCommunicate OK [19:24:29]CreateOFDProtocolMessage done [19:24:29]OFDSenderStorePacket 118568 [19:24:29]StoreOFDPacket docnum=118568 [19:24:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 66 6D 04 01 75 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 ED 9A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 28 CF 01 00 35 04 06 00 BE 0A A4 D6 79 32 80 F6 2C 4D A9 4B 1E EA [19:24:29]CheckFolder [19:24:29]dirname=/storage/ofd_packets [19:24:29]CheckFolder done [19:24:29]ProducePacketName [19:24:29]name=ofd_packets/00118568 [19:24:29]NVStorageSaveData ofd_packets/00118568 [19:24:29]File name is /storage/ofd_packets/00118568 [19:24:29]Write 298 bytes [19:24:29]NVStorageSaveData done [19:24:29]OFDSenderStorePacket done [19:24:29]KKMCreateOFDPacket done [19:24:29]NVStorageSaveData kkm_last_timestamp [19:24:29]File name is /storage/kkm_last_timestamp [19:24:29]Write 4 bytes [19:24:29]NVStorageSaveData done [19:24:29]ExternCall_PrintAddStr [19:24:29]wPrintStart [19:24:29]Write to MH i2c: 01 00 00 72 17 89 [19:24:29]Write i2c OK [19:24:29]MH_I2C_Read... [19:24:29]Read from MH i2c: 01 [19:24:29]MH_I2C_Read... [19:24:29]Read from MH i2c: 01 07 00 [19:24:29]MH_I2C_Read... [19:24:29]Read from MH i2c: 01 07 00 72 17 00 00 00 00 00 FF 0F 9E [19:24:29]RasterBufferAndPrint [19:24:29]line Счет N : (1)949451 [19:24:29]line ИНН: 02508201610067 [19:24:29]line Контрольно-Кассовый Чек [19:24:29]line ПРОДАЖА [19:24:29]line ТРК (МРК, ГНК) : 11 [19:24:29]line Товар: 2710194800 [19:24:29]line ДТ-К-5 [19:24:29]line 78.750 * 76.20 [19:24:29]line = 6000.75 [19:24:29]line НДС 12% НСП 1% [19:24:29]line > о реализуемом товаре [19:24:29]line ОКРУГЛЕНИЕ: -0.75 [19:24:29]line ИТОГО: 6000.00 [19:24:29]line НСП 1% : 53.10 [19:24:29]line НДС 12% : 637.25 [19:24:29]line Наличными: 0.00 [19:24:29]line Безнал.: 6000.00 [19:24:29]line Место: АЗС № 134 "Партнер Нефть" [19:24:29]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:24:29]line СНО: Общий режим [19:24:29]line Чек 237 28.07.2024 19:24 [19:24:29]line Смена: 433 ФФД: 1.0 [19:24:29]line ЗНМ: 0300000044 [19:24:29]line РНМ: 0000000000092660 [19:24:29]line Версия ККМ: 001 [19:24:29]line Платежная система: O! деньги [19:24:29]line ФМ: 0000000000874939 [19:24:29]line ФД: 118568 [19:24:29]line ФПД: 208952924469554 [19:24:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T192429&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118568&fm=208952924469554&tin=02508201610067®Number=0000000000092660&sum=600000 [19:24:29]OFD Sender: Processing packet 118568 [packets to send 86, broken 85] [19:24:29]ProducePacketName [19:24:29]name=ofd_packets/00118568 [19:24:29]OFD Sender: To server: pG, [19:24:29]CommunicateWithHost lk.salyk.kg:30040 [19:24:29]ConnectInit lk.salyk.kg [19:24:29]written 0, free lines is 4095 [19:24:29]Connected sock=10 [19:24:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 66 6D 04 01 75 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 ED 9A A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 28 CF 01 00 35 04 06 00 BE 0A A4 D6 79 32 80 F6 2C 4D A9 4B 1E EA [19:24:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BE 89 47 00 93 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 28 CF 01 00 F4 03 04 00 7D 48 A6 66 B6 04 01 00 00 C6 74 2B BC E9 97 8B DC [19:24:29]CommunicateWithHost err = 0 [19:24:29]CheckOFDResponse [19:24:29]1017 (14) - 77093643461234 [19:24:29]1041 (16) - 0000000000874939 [19:24:29]1040 (4) - 118568 [19:24:29]1012 (4) - 28.07.2024 13:32 [19:24:29]1206 (1) - 0 [19:24:29]OFD Sender: Remove packet 118568 [19:24:29]ProducePacketName [19:24:29]name=ofd_packets/00118568 [19:24:29]NVStorageDeleteData [19:24:30]Write to MH i2c: 01 00 00 9C 17 B3 [19:24:30]Write i2c OK [19:24:30]MH_I2C_Read... [19:24:30]Read from MH i2c: 01 [19:24:30]MH_I2C_Read... [19:24:30]Read from MH i2c: 01 07 00 [19:24:30]MH_I2C_Read... [19:24:30]Read from MH i2c: 01 07 00 9C 17 00 00 00 00 00 F2 0C B8 [19:24:30]RasterBufferAndPrint [19:24:30]line [19:24:30]line [19:24:30]line [19:24:30]line [19:24:30]line [19:24:30]written 0, free lines is 3324 [19:24:30]MH_Cut [19:24:30]Write to MH i2c: D1 01 00 A3 17 01 8C [19:24:30]Write i2c OK [19:24:30]MH_I2C_Read... [19:24:30]Read from MH i2c: D1 [19:24:30]MH_I2C_Read... [19:24:30]Read from MH i2c: D1 01 00 [19:24:30]MH_I2C_Read... [19:24:30]Read from MH i2c: D1 01 00 A3 17 00 8B [19:24:30]Write to MH i2c: 01 00 00 A4 17 BB [19:24:30]Write i2c OK [19:24:30]MH_I2C_Read... [19:24:30]OFD Sender: No OFD packet to send [19:24:30]*** Cut start [19:24:30]*** Partial cut [19:24:30]*** CUTSNS_PIN = 1 [19:24:30]*** CUTSNS_PIN = 0 [19:24:31]*** Brake cut motor [19:24:31]Read from MH i2c: 01 [19:24:31]MH_I2C_Read... [19:24:31]*** Stop cut motor [19:24:31]*** Cut end [19:24:31]Read from MH i2c: 01 07 00 [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: 01 07 00 A4 17 00 00 00 00 00 FF 0F D0 [19:24:31]process_action close_receipt done [19:24:31]requested_data is exist [19:24:31]produce_requested_data [19:24:31]requested_item fm.sn is exist - process it [19:24:31]wFMCommunicate request_size=4 [19:24:31]MH_SAM_APDU [19:24:31]CAPDU: 80 11 00 00 [19:24:31]Write to MH i2c: E2 08 00 A5 17 80 11 00 00 00 00 00 00 36 [19:24:31]Write i2c OK [19:24:31]MH_I2C_Read... [19:24:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:31]Read from MH i2c: E2 [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: E2 17 00 [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: E2 17 00 A5 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 91 [19:24:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:24:31]wFMCommunicate OK [19:24:31]requested_item fd.num is exist - process it [19:24:31]SAM_PROTO_GetFieldsCounters [19:24:31]wFMCommunicate request_size=4 [19:24:31]MH_SAM_APDU [19:24:31]CAPDU: 80 13 00 00 [19:24:31]Write to MH i2c: E2 08 00 A6 17 80 13 00 00 00 00 00 00 39 [19:24:31]Write i2c OK [19:24:31]MH_I2C_Read... [19:24:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:31]Read from MH i2c: E2 [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: E2 62 00 [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: E2 62 00 A6 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 28 CF 01 00 0E 04 04 00 B1 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 D1 [19:24:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 28 CF 01 00 0E 04 04 00 B1 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 [19:24:31]wFMCommunicate OK [19:24:31]SAM_PROTO_GetFieldsCounters done [19:24:31]requested_item shift.num is exist - process it [19:24:31]requested_item shift.opened is exist - process it [19:24:31]req_shift_opened [19:24:31]FM_GetShiftState [19:24:31]SAM_PROTO_GetShiftState [19:24:31]wFMCommunicate request_size=4 [19:24:31]MH_SAM_APDU [19:24:31]CAPDU: 80 13 01 00 [19:24:31]Write to MH i2c: E2 08 00 A7 17 80 13 01 00 00 00 00 00 3B [19:24:31]Write i2c OK [19:24:31]MH_I2C_Read... [19:24:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:31]Read from MH i2c: E2 [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: E2 0E 00 [19:24:31]MH_I2C_Read... [19:24:31]Read from MH i2c: E2 0E 00 A7 17 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 12 [19:24:31]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:24:31]wFMCommunicate OK [19:24:31]SAM_PROTO_GetShiftState done [19:24:31]FM_GetShiftState done [19:24:31]req_shift_opened done [19:24:31]requested_item shift.open_date is exist - process it [19:24:31]req_shift_open_date [19:24:31]req_shift_open_date done [19:24:31]produce_requested_data done [19:24:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118568,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [19:24:31]process_action_free close_receipt [19:24:31]json_value_free [19:24:31]json_value_free done [19:24:31]process_json_proto returns [19:24:31]Send response to host [19:24:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118568,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [19:24:31]free response buf [19:24:31]execute_script done [19:24:31]execute_script returns [19:24:31]free content buf [19:24:31]Sock 9.Close socket [19:24:31]Sock 9.Thread stoped [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:44]accept exits with 7 [19:26:44]New connection [19:26:44]New thread 3067383140 created [19:26:44]Thread 3067239780 joined [19:26:44]Waiting for new connection... [19:26:44] Sock 7.Parse request [19:26:44]Sock 7.Check first char [19:26:44]Sock 7.First char is OK [19:26:44]request: POST /json_proto HTTP/1.0 [19:26:44]Method: POST [19:26:44]URL: /json_proto [19:26:44]Method is POST - this is cgi request [19:26:44]url: /json_proto [19:26:44]query_string will be loaded in cgi processing [19:26:44]execute_cgi json_proto POST (null) [19:26:44]execute_cgi path=json_proto method=POST [19:26:44]POST find Content-Length [19:26:44]Host: 172.17.45.7:8080 [19:26:44]Content-Length: 677 [19:26:44]Content-Type: application/json [19:26:44] [19:26:44]POST finish read [19:26:44]Found Content-Length = 677 [19:26:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:44]execute_script... [19: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)949455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:44]POST & json_proto [19:26:44]process_json_proto [19:26:44]json parsed OK: [19:26:44]protocol is kg_v1.0 [19:26:44]action value=close_receipt [19:26:44]process_action close_receipt [19:26:44]cmd_close_receipt [19:26:44]MH_GetDate [19:26:44]Write to MH i2c: F0 00 00 A8 17 AE [19:26:44]Write i2c OK [19:26:44]MH_I2C_Read... [19:26:44]Read from MH i2c: F0 [19:26:44]MH_I2C_Read... [19:26:44]Read from MH i2c: F0 09 00 [19:26:44]MH_I2C_Read... [19:26:44]Read from MH i2c: F0 09 00 A8 17 00 76 9B A6 66 90 0F 3E 66 17 [19:26:44]GetLastDocTimeStamp 1722194669 [19:26:44]current date 1722194806 [19:26:44]FM_GetShiftState [19:26:44]SAM_PROTO_GetShiftState [19:26:44]wFMCommunicate request_size=4 [19:26:44]MH_SAM_APDU [19:26:44]CAPDU: 80 13 01 00 [19:26:44]Write to MH i2c: E2 08 00 A9 17 80 13 01 00 00 00 00 00 3D [19:26:44]Write i2c OK [19:26:44]MH_I2C_Read... [19:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:44]Read from MH i2c: E2 [19:26:44]MH_I2C_Read... [19:26:44]Read from MH i2c: E2 0E 00 [19:26:44]MH_I2C_Read... [19:26:44]Read from MH i2c: E2 0E 00 A9 17 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 14 [19:26:44]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:26:44]wFMCommunicate OK [19:26:44]SAM_PROTO_GetShiftState done [19:26:44]FM_GetShiftState done [19:26:44]opened in 1722125364 [19:26:44]opened+sec_in_day 1722211764 [19:26:44]quantity*price = 20001 [19:26:44]sum+1 = 20002 [19:26:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 238 28.07.2024 19:26 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118569 ФПД: 135329558698950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T192646&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118569&fm=135329558698950&tin=02508201610067®Number=0000000000092660&sum=20000 [19:26:46]StoreToDocumentArchive [19:26:46]shift 433 fd 118569 [19:26:46]save to /storage/0433/doc_00118569 [19:26:46]save last doc name /storage/0433/doc_00118569 to /storage/kkm_last_doc_name [19:26:46]save OK [19:26:46]Clear old archive folders... [19:26:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:26:46]tlvbuf is 01E692C0 [19:26:46]SAM_PROTO_ClearQueue [19:26:46]wFMCommunicate request_size=4 [19:26:46]MH_SAM_APDU [19:26:46]CAPDU: 80 09 00 00 [19:26:46]Write to MH i2c: E2 08 00 B6 17 80 09 00 00 00 00 00 00 3F [19:26:46]Write i2c OK [19:26:46]MH_I2C_Read... [19:26:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:46]Read from MH i2c: E2 [19:26:46]MH_I2C_Read... [19:26:46]Read from MH i2c: E2 03 00 [19:26:46]MH_I2C_Read... [19:26:46]Read from MH i2c: E2 03 00 B6 17 00 90 00 41 [19:26:46]RAPDU: 90 00 [19:26:46]wFMCommunicate OK [19:26:46]SAM_PROTO_ClearQueue done [19:26:46]KKMCreateOFDPacket [19:26:46]OFDProtocolAddRootSTLVToBuf [19:26:46]FM_MakeSignedData [19:26:46]FM_MakeSignedData [19:26:46]SAM_PROTO_SignData [19:26:46]wFMCommunicate request_size=4 [19:26:46]MH_SAM_APDU [19:26:46]CAPDU: 80 0D 01 02 [19:26:46]Write to MH i2c: E2 08 00 B7 17 80 0D 01 02 00 00 00 00 47 [19:26:46]Write i2c OK [19:26:46]MH_I2C_Read... [19:26:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:46]Read from MH i2c: E2 [19:26:46]MH_I2C_Read... [19:26:46]Read from MH i2c: E2 03 00 [19:26:46]MH_I2C_Read... [19:26:46]Read from MH i2c: E2 03 00 B7 17 00 90 00 42 [19:26:46]RAPDU: 90 00 [19:26:46]wFMCommunicate OK [19:26:46]wFMCommunicate request_size=255 [19:26:46]MH_SAM_APDU [19:26: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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 76 9B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 29 CF 01 00 35 04 06 00 7B [19:26:46]Write to MH i2c: E2 02 01 B8 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 76 9B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 29 CF 01 00 35 04 06 00 7B 00 00 FE [19:26:46]Write i2c OK [19:26:46]MH_I2C_Read... [19:26:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:46]Read from MH i2c: E2 [19:26:46]MH_I2C_Read... [19:26:46]Read from MH i2c: E2 03 00 [19:26:46]MH_I2C_Read... [19:26:46]Read from MH i2c: E2 03 00 B8 17 00 90 00 43 [19:26:46]RAPDU: 90 00 [19:26:46]wFMCommunicate OK [19:26:46]wFMCommunicate request_size=10 [19:26:46]MH_SAM_APDU [19:26:46]CAPDU: 80 0D 02 02 05 14 DE 46 1B C6 [19:26:46]Write to MH i2c: E2 0D 00 B9 17 80 0D 02 02 05 00 14 DE 46 1B C6 00 00 6D [19:26:46]Write i2c OK [19:26:46]MH_I2C_Read... [19:26:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:46]Read from MH i2c: E2 [19:26:46]MH_I2C_Read... [19:26:46]Read from MH i2c: E2 03 00 [19:26:46]MH_I2C_Read... [19:26:46]Read from MH i2c: E2 03 00 B9 17 00 90 00 44 [19:26:46]RAPDU: 90 00 [19:26:46]wFMCommunicate OK [19:26:46]wFMCommunicate request_size=4 [19:26:46]MH_SAM_APDU [19:26:46]CAPDU: 80 0D 03 02 [19:26:46]Write to MH i2c: E2 08 00 BA 17 80 0D 03 02 00 00 00 00 4C [19:26:46]Write i2c OK [19:26:46]MH_I2C_Read... [19:26:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:46]Read from MH i2c: E2 [19:26:46]MH_I2C_Read... [19:26:46]Read from MH i2c: E2 0B 00 [19:26:46]MH_I2C_Read... [19:26:46]Read from MH i2c: E2 0B 00 BA 17 00 72 E9 1E 5A D1 FA 6C 00 90 00 57 [19:26:46]RAPDU: 72 E9 1E 5A D1 FA 6C 00 90 00 [19:26:46]wFMCommunicate OK [19:26:46]SAM_PROTO_SignData done [19:26:46]FM_MakeSignedData done [19:26:46]CreateOFDProtocolMessage [19:26:46]wFMCommunicate request_size=4 [19:26:46]MH_SAM_APDU [19:26:46]CAPDU: 80 11 00 00 [19:26:46]Write to MH i2c: E2 08 00 BB 17 80 11 00 00 00 00 00 00 4C [19:26:46]Write i2c OK [19:26:46]MH_I2C_Read... [19:26:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:46]Read from MH i2c: E2 [19:26:46]MH_I2C_Read... [19:26:46]Read from MH i2c: E2 17 00 [19:26:46]MH_I2C_Read... [19:26:46]Read from MH i2c: E2 17 00 BB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A7 [19:26:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:26:46]wFMCommunicate OK [19:26:46]CreateOFDProtocolMessage done [19:26:46]OFDSenderStorePacket 118569 [19:26:46]StoreOFDPacket docnum=118569 [19:26:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F4 56 07 01 1F 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 76 9B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 29 CF 01 00 35 04 06 00 7B 14 DE 46 1B C6 72 E9 1E 5A D1 FA 6C 00 [19:26:46]CheckFolder [19:26:46]dirname=/storage/ofd_packets [19:26:46]CheckFolder done [19:26:46]ProducePacketName [19:26:46]name=ofd_packets/00118569 [19:26:46]NVStorageSaveData ofd_packets/00118569 [19:26:46]File name is /storage/ofd_packets/00118569 [19:26:46]Write 301 bytes [19:26:46]NVStorageSaveData done [19:26:46]OFDSenderStorePacket done [19:26:46]KKMCreateOFDPacket done [19:26:46]NVStorageSaveData kkm_last_timestamp [19:26:46]File name is /storage/kkm_last_timestamp [19:26:46]Write 4 bytes [19:26:46]NVStorageSaveData done [19:26:46]ExternCall_PrintAddStr [19:26:46]wPrintStart [19:26:46]Write to MH i2c: 01 00 00 BC 17 D3 [19:26:46]Write i2c OK [19:26:46]MH_I2C_Read... [19:26:46]Read from MH i2c: 01 [19:26:46]MH_I2C_Read... [19:26:46]Read from MH i2c: 01 07 00 [19:26:46]MH_I2C_Read... [19:26:46]Read from MH i2c: 01 07 00 BC 17 00 00 00 00 00 FF 0F E8 [19:26:46]RasterBufferAndPrint [19:26:46]line Счет N : (1)949455 [19:26:46]line ИНН: 02508201610067 [19:26:46]line Контрольно-Кассовый Чек [19:26:46]line ПРОДАЖА [19:26:46]line ТРК (МРК, ГНК) : 41 [19:26:46]line Товар: 2710124130 [19:26:46]line Аи-92-К-4 [19:26:46]line 2.950 * 67.80 [19:26:46]line = 200.01 [19:26:46]line НДС 12% НСП 1% [19:26:46]line > о реализуемом товаре [19:26:46]line ОКРУГЛЕНИЕ: -0.01 [19:26:46]line ИТОГО: 200.00 [19:26:46]line Внесено: 200.00 [19:26:46]line СДАЧА: 0.00 [19:26:46]line НСП 1% : 1.77 [19:26:46]line НДС 12% : 21.24 [19:26:46]line Наличными: 200.00 [19:26:46]line Безнал.: 0.00 [19:26:46]line Место: АЗС № 134 "Партнер Нефть" [19:26:46]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:26:46]line СНО: Общий режим [19:26:46]line Чек 238 28.07.2024 19:26 [19:26:46]line Смена: 433 ФФД: 1.0 [19:26:46]line ЗНМ: 0300000044 [19:26:46]line РНМ: 0000000000092660 [19:26:46]line Версия ККМ: 001 [19:26:46]line ФМ: 0000000000874939 [19:26:46]line ФД: 118569 [19:26:46]line ФПД: 135329558698950 [19:26:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T192646&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118569&fm=135329558698950&tin=02508201610067®Number=0000000000092660&sum=20000 [19:26:46]OFD Sender: Processing packet 118569 [packets to send 86, broken 85] [19:26:46]ProducePacketName [19:26:46]name=ofd_packets/00118569 [19:26:46]OFD Sender: To server: pG, [19:26:46]CommunicateWithHost lk.salyk.kg:30040 [19:26:46]ConnectInit lk.salyk.kg [19:26:46]written 0, free lines is 4095 [19:26:46]Connected sock=10 [19: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 39 33 39 0F 01 00 00 F4 56 07 01 1F 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 76 9B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 29 CF 01 00 35 04 06 00 7B 14 DE 46 1B C6 72 E9 1E 5A D1 FA 6C 00 [19: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 39 33 39 4F 00 00 00 99 D5 47 00 9D C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 29 CF 01 00 F4 03 04 00 06 49 A6 66 B6 04 01 00 00 0A 95 D0 2F 9C 36 2E 0B [19:26:46]CommunicateWithHost err = 0 [19:26:46]CheckOFDResponse [19:26:46]1017 (14) - 77093643461234 [19:26:46]1041 (16) - 0000000000874939 [19:26:46]1040 (4) - 118569 [19:26:46]1012 (4) - 28.07.2024 13:35 [19:26:46]1206 (1) - 0 [19:26:46]OFD Sender: Remove packet 118569 [19:26:46]ProducePacketName [19:26:46]name=ofd_packets/00118569 [19:26:46]NVStorageDeleteData [19:26:47]Write to MH i2c: 01 00 00 E6 17 FD [19:26:47]Write i2c OK [19:26:47]MH_I2C_Read... [19:26:47]Read from MH i2c: 01 [19:26:47]MH_I2C_Read... [19:26:47]Read from MH i2c: 01 07 00 [19:26:47]MH_I2C_Read... [19:26:47]Read from MH i2c: 01 07 00 E6 17 00 00 00 00 00 F2 0C 02 [19:26:47]RasterBufferAndPrint [19:26:47]line [19:26:47]line [19:26:47]line [19:26:47]line [19:26:47]line [19:26:47]written 0, free lines is 3322 [19:26:47]MH_Cut [19:26:47]Write to MH i2c: D1 01 00 ED 17 01 D6 [19:26:47]Write i2c OK [19:26:47]MH_I2C_Read... [19:26:47]Read from MH i2c: D1 [19:26:47]MH_I2C_Read... [19:26:47]Read from MH i2c: D1 01 00 [19:26:47]MH_I2C_Read... [19:26:47]Read from MH i2c: D1 01 00 ED 17 00 D5 [19:26:47]Write to MH i2c: 01 00 00 EE 17 05 [19:26:47]Write i2c OK [19:26:47]MH_I2C_Read... [19:26:47]OFD Sender: No OFD packet to send [19:26:47]*** Cut start [19:26:47]*** Partial cut [19:26:47]*** CUTSNS_PIN = 1 [19:26:47]*** CUTSNS_PIN = 0 [19:26:48]*** Brake cut motor [19:26:48]Read from MH i2c: 01 [19:26:48]MH_I2C_Read... [19:26:48]*** Stop cut motor [19:26:48]*** Cut end [19:26:48]Read from MH i2c: 01 07 00 [19:26:48]MH_I2C_Read... [19:26:48]Read from MH i2c: 01 07 00 EE 17 00 00 00 00 00 FF 0F 1A [19:26:48]process_action close_receipt done [19:26:48]requested_data is exist [19:26:48]produce_requested_data [19:26:48]requested_item fm.sn is exist - process it [19:26:48]wFMCommunicate request_size=4 [19:26:48]MH_SAM_APDU [19:26:48]CAPDU: 80 11 00 00 [19:26:48]Write to MH i2c: E2 08 00 EF 17 80 11 00 00 00 00 00 00 80 [19:26:48]Write i2c OK [19:26:48]MH_I2C_Read... [19:26:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:48]Read from MH i2c: E2 [19:26:48]MH_I2C_Read... [19:26:48]Read from MH i2c: E2 17 00 [19:26:48]MH_I2C_Read... [19:26:48]Read from MH i2c: E2 17 00 EF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DB [19:26:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:26:48]wFMCommunicate OK [19:26:48]requested_item fd.num is exist - process it [19:26:48]SAM_PROTO_GetFieldsCounters [19:26:48]wFMCommunicate request_size=4 [19:26:48]MH_SAM_APDU [19:26:48]CAPDU: 80 13 00 00 [19:26:48]Write to MH i2c: E2 08 00 F0 17 80 13 00 00 00 00 00 00 83 [19:26:48]Write i2c OK [19:26:48]MH_I2C_Read... [19:26:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:48]Read from MH i2c: E2 [19:26:48]MH_I2C_Read... [19:26:48]Read from MH i2c: E2 62 00 [19:26:48]MH_I2C_Read... [19:26:48]Read from MH i2c: E2 62 00 F0 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 29 CF 01 00 0E 04 04 00 B1 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 1F [19:26:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 29 CF 01 00 0E 04 04 00 B1 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 [19:26:48]wFMCommunicate OK [19:26:48]SAM_PROTO_GetFieldsCounters done [19:26:48]requested_item shift.num is exist - process it [19:26:48]requested_item shift.opened is exist - process it [19:26:48]req_shift_opened [19:26:48]FM_GetShiftState [19:26:48]SAM_PROTO_GetShiftState [19:26:48]wFMCommunicate request_size=4 [19:26:48]MH_SAM_APDU [19:26:48]CAPDU: 80 13 01 00 [19:26:48]Write to MH i2c: E2 08 00 F1 17 80 13 01 00 00 00 00 00 85 [19:26:48]Write i2c OK [19:26:48]MH_I2C_Read... [19:26:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:48]Read from MH i2c: E2 [19:26:48]MH_I2C_Read... [19:26:48]Read from MH i2c: E2 0E 00 [19:26:48]MH_I2C_Read... [19:26:48]Read from MH i2c: E2 0E 00 F1 17 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 5C [19:26:48]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:26:48]wFMCommunicate OK [19:26:48]SAM_PROTO_GetShiftState done [19:26:48]FM_GetShiftState done [19:26:48]req_shift_opened done [19:26:48]requested_item shift.open_date is exist - process it [19:26:48]req_shift_open_date [19:26:48]req_shift_open_date done [19:26:48]produce_requested_data done [19:26:48]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118569,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [19:26:48]process_action_free close_receipt [19:26:48]json_value_free [19:26:48]json_value_free done [19:26:48]process_json_proto returns [19:26:48]Send response to host [19:26:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118569,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [19:26:48]free response buf [19:26:48]execute_script done [19:26:48]execute_script returns [19:26:48]free content buf [19:26:48]Sock 7.Close socket [19:26:48]Sock 7.Thread stoped [19:26:52]OFD Sender: No OFD packet to send [19:26:57]OFD Sender: No OFD packet to send [19:27:02]OFD Sender: No OFD packet to send [19:27:07]OFD Sender: No OFD packet to send [19:27:12]OFD Sender: No OFD packet to send [19:27:17]OFD Sender: No OFD packet to send [19:27:22]OFD Sender: No OFD packet to send [19:27:27]OFD Sender: No OFD packet to send [19:27:32]OFD Sender: No OFD packet to send [19:27:37]OFD Sender: No OFD packet to send [19:27:40]accept exits with 9 [19:27:40]New connection [19:27:40]New thread 3067239780 created [19:27:40]Thread 3067383140 joined [19:27:40]Waiting for new connection... [19:27:40] Sock 9.Parse request [19:27:40]Sock 9.Check first char [19:27:40]Sock 9.First char is OK [19:27:40]request: POST /json_proto HTTP/1.0 [19:27:40]Method: POST [19:27:40]URL: /json_proto [19:27:40]Method is POST - this is cgi request [19:27:40]url: /json_proto [19:27:40]query_string will be loaded in cgi processing [19:27:40]execute_cgi json_proto POST (null) [19:27:40]execute_cgi path=json_proto method=POST [19:27:40]POST find Content-Length [19:27:40]Host: 172.17.45.7:8080 [19:27:40]Content-Length: 677 [19:27:40]Content-Type: application/json [19:27:40] [19:27:40]POST finish read [19:27:40]Found Content-Length = 677 [19:27:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:40]execute_script... [19:27: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)949456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:40]POST & json_proto [19:27:40]process_json_proto [19:27:40]json parsed OK: [19:27:40]protocol is kg_v1.0 [19:27:40]action value=close_receipt [19:27:40]process_action close_receipt [19:27:40]cmd_close_receipt [19:27:40]MH_GetDate [19:27:40]Write to MH i2c: F0 00 00 F2 17 F8 [19:27:40]Write i2c OK [19:27:40]MH_I2C_Read... [19:27:40]Read from MH i2c: F0 [19:27:40]MH_I2C_Read... [19:27:40]Read from MH i2c: F0 09 00 [19:27:40]MH_I2C_Read... [19:27:40]Read from MH i2c: F0 09 00 F2 17 00 AE 9B A6 66 90 0F 3E 66 99 [19:27:40]GetLastDocTimeStamp 1722194806 [19:27:40]current date 1722194862 [19:27:40]FM_GetShiftState [19:27:40]SAM_PROTO_GetShiftState [19:27:40]wFMCommunicate request_size=4 [19:27:40]MH_SAM_APDU [19:27:40]CAPDU: 80 13 01 00 [19:27:40]Write to MH i2c: E2 08 00 F3 17 80 13 01 00 00 00 00 00 87 [19:27:40]Write i2c OK [19:27:40]MH_I2C_Read... [19:27:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:41]Read from MH i2c: E2 [19:27:41]MH_I2C_Read... [19:27:41]Read from MH i2c: E2 0E 00 [19:27:41]MH_I2C_Read... [19:27:41]Read from MH i2c: E2 0E 00 F3 17 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 5E [19:27:41]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:27:41]wFMCommunicate OK [19:27:41]SAM_PROTO_GetShiftState done [19:27:41]FM_GetShiftState done [19:27:41]opened in 1722125364 [19:27:41]opened+sec_in_day 1722211764 [19:27:41]quantity*price = 40002 [19:27:41]sum+1 = 40003 [19:27:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 239 28.07.2024 19:27 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118570 ФПД: 155795894641712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T192742&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118570&fm=155795894641712&tin=02508201610067®Number=0000000000092660&sum=40000 [19:27:42]StoreToDocumentArchive [19:27:42]shift 433 fd 118570 [19:27:42]save to /storage/0433/doc_00118570 [19:27:42]save last doc name /storage/0433/doc_00118570 to /storage/kkm_last_doc_name [19:27:42]save OK [19:27:42]Clear old archive folders... [19:27:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:27:42]tlvbuf is 01EEEC50 [19:27:42]SAM_PROTO_ClearQueue [19:27:42]wFMCommunicate request_size=4 [19:27:42]MH_SAM_APDU [19:27:42]CAPDU: 80 09 00 00 [19:27:42]Write to MH i2c: E2 08 00 00 18 80 09 00 00 00 00 00 00 8A [19:27:42]Write i2c OK [19:27:42]MH_I2C_Read... [19:27:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:42]Read from MH i2c: E2 [19:27:42]MH_I2C_Read... [19:27:42]Read from MH i2c: E2 03 00 [19:27:42]MH_I2C_Read... [19:27:42]Read from MH i2c: E2 03 00 00 18 00 90 00 8C [19:27:42]RAPDU: 90 00 [19:27:42]wFMCommunicate OK [19:27:42]SAM_PROTO_ClearQueue done [19:27:42]KKMCreateOFDPacket [19:27:42]OFDProtocolAddRootSTLVToBuf [19:27:42]FM_MakeSignedData [19:27:42]FM_MakeSignedData [19:27:42]SAM_PROTO_SignData [19:27:42]wFMCommunicate request_size=4 [19:27:42]MH_SAM_APDU [19:27:42]CAPDU: 80 0D 01 02 [19:27:42]Write to MH i2c: E2 08 00 01 18 80 0D 01 02 00 00 00 00 92 [19:27:42]Write i2c OK [19:27:42]MH_I2C_Read... [19:27:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:42]Read from MH i2c: E2 [19:27:42]MH_I2C_Read... [19:27:42]Read from MH i2c: E2 03 00 [19:27:42]MH_I2C_Read... [19:27:42]Read from MH i2c: E2 03 00 01 18 00 90 00 8D [19:27:42]RAPDU: 90 00 [19:27:42]wFMCommunicate OK [19:27:42]wFMCommunicate request_size=255 [19:27:42]MH_SAM_APDU [19:27:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 EF 00 00 00 F4 03 04 00 AE 9B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2A CF 01 00 35 04 06 00 8D [19:27:42]Write to MH i2c: E2 02 01 02 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 EF 00 00 00 F4 03 04 00 AE 9B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2A CF 01 00 35 04 06 00 8D 00 00 78 [19:27:42]Write i2c OK [19:27:42]MH_I2C_Read... [19:27:42]OFD Sender: No OFD packet to send [19:27:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:42]Read from MH i2c: E2 [19:27:42]MH_I2C_Read... [19:27:42]Read from MH i2c: E2 03 00 [19:27:42]MH_I2C_Read... [19:27:42]Read from MH i2c: E2 03 00 02 18 00 90 00 8E [19:27:42]RAPDU: 90 00 [19:27:42]wFMCommunicate OK [19:27:42]wFMCommunicate request_size=10 [19:27:42]MH_SAM_APDU [19:27:42]CAPDU: 80 0D 02 02 05 B2 0E F5 24 30 [19:27:42]Write to MH i2c: E2 0D 00 03 18 80 0D 02 02 05 00 B2 0E F5 24 30 00 00 A8 [19:27:42]Write i2c OK [19:27:42]MH_I2C_Read... [19:27:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:42]Read from MH i2c: E2 [19:27:42]MH_I2C_Read... [19:27:42]Read from MH i2c: E2 03 00 [19:27:42]MH_I2C_Read... [19:27:42]Read from MH i2c: E2 03 00 03 18 00 90 00 8F [19:27:42]RAPDU: 90 00 [19:27:42]wFMCommunicate OK [19:27:42]wFMCommunicate request_size=4 [19:27:42]MH_SAM_APDU [19:27:42]CAPDU: 80 0D 03 02 [19:27:42]Write to MH i2c: E2 08 00 04 18 80 0D 03 02 00 00 00 00 97 [19:27:42]Write i2c OK [19:27:42]MH_I2C_Read... [19:27:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:42]Read from MH i2c: E2 [19:27:42]MH_I2C_Read... [19:27:42]Read from MH i2c: E2 0B 00 [19:27:42]MH_I2C_Read... [19:27:42]Read from MH i2c: E2 0B 00 04 18 00 C1 2F 43 34 B5 48 8D A2 90 00 2B [19:27:42]RAPDU: C1 2F 43 34 B5 48 8D A2 90 00 [19:27:42]wFMCommunicate OK [19:27:42]SAM_PROTO_SignData done [19:27:42]FM_MakeSignedData done [19:27:42]CreateOFDProtocolMessage [19:27:42]wFMCommunicate request_size=4 [19:27:42]MH_SAM_APDU [19:27:42]CAPDU: 80 11 00 00 [19:27:42]Write to MH i2c: E2 08 00 05 18 80 11 00 00 00 00 00 00 97 [19:27:42]Write i2c OK [19:27:42]MH_I2C_Read... [19:27:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:42]Read from MH i2c: E2 [19:27:42]MH_I2C_Read... [19:27:42]Read from MH i2c: E2 17 00 [19:27:42]MH_I2C_Read... [19:27:42]Read from MH i2c: E2 17 00 05 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F2 [19:27:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:27:42]wFMCommunicate OK [19:27:42]CreateOFDProtocolMessage done [19:27:42]OFDSenderStorePacket 118570 [19:27:42]StoreOFDPacket docnum=118570 [19:27:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 80 60 07 01 74 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 EF 00 00 00 F4 03 04 00 AE 9B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2A CF 01 00 35 04 06 00 8D B2 0E F5 24 30 C1 2F 43 34 B5 48 8D A2 [19:27:42]CheckFolder [19:27:42]dirname=/storage/ofd_packets [19:27:42]CheckFolder done [19:27:42]ProducePacketName [19:27:42]name=ofd_packets/00118570 [19:27:42]NVStorageSaveData ofd_packets/00118570 [19:27:42]File name is /storage/ofd_packets/00118570 [19:27:42]Write 301 bytes [19:27:42]NVStorageSaveData done [19:27:42]OFDSenderStorePacket done [19:27:42]KKMCreateOFDPacket done [19:27:42]NVStorageSaveData kkm_last_timestamp [19:27:42]File name is /storage/kkm_last_timestamp [19:27:42]Write 4 bytes [19:27:42]NVStorageSaveData done [19:27:42]ExternCall_PrintAddStr [19:27:42]wPrintStart [19:27:42]Write to MH i2c: 01 00 00 06 18 1E [19:27:42]Write i2c OK [19:27:42]MH_I2C_Read... [19:27:42]Read from MH i2c: 01 [19:27:42]MH_I2C_Read... [19:27:42]Read from MH i2c: 01 07 00 [19:27:42]MH_I2C_Read... [19:27:42]Read from MH i2c: 01 07 00 06 18 00 00 00 00 00 FF 0F 33 [19:27:42]RasterBufferAndPrint [19:27:42]line Счет N : (1)949456 [19:27:42]line ИНН: 02508201610067 [19:27:42]line Контрольно-Кассовый Чек [19:27:42]line ПРОДАЖА [19:27:42]line ТРК (МРК, ГНК) : 61 [19:27:42]line Товар: 2710124130 [19:27:42]line Аи-92-К-4 [19:27:42]line 5.900 * 67.80 [19:27:42]line = 400.02 [19:27:42]line НДС 12% НСП 1% [19:27:42]line > о реализуемом товаре [19:27:42]line ОКРУГЛЕНИЕ: -0.02 [19:27:42]line ИТОГО: 400.00 [19:27:42]line Внесено: 400.00 [19:27:42]line СДАЧА: 0.00 [19:27:42]line НСП 1% : 3.54 [19:27:42]line НДС 12% : 42.48 [19:27:42]line Наличными: 400.00 [19:27:42]line Безнал.: 0.00 [19:27:42]line Место: АЗС № 134 "Партнер Нефть" [19:27:42]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:27:42]line СНО: Общий режим [19:27:42]line Чек 239 28.07.2024 19:27 [19:27:42]line Смена: 433 ФФД: 1.0 [19:27:42]line ЗНМ: 0300000044 [19:27:42]line РНМ: 0000000000092660 [19:27:42]line Версия ККМ: 001 [19:27:42]line ФМ: 0000000000874939 [19:27:42]line ФД: 118570 [19:27:42]line ФПД: 155795894641712 [19:27:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T192742&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118570&fm=155795894641712&tin=02508201610067®Number=0000000000092660&sum=40000 [19:27:42]written 0, free lines is 4095 [19:27:42]OFD Sender: Processing packet 118570 [packets to send 86, broken 85] [19:27:42]ProducePacketName [19:27:42]name=ofd_packets/00118570 [19:27:42]OFD Sender: To server: pG, [19:27:42]CommunicateWithHost lk.salyk.kg:30040 [19:27:42]ConnectInit lk.salyk.kg [19:27:42]Connected sock=10 [19:27: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 39 33 39 0F 01 00 00 80 60 07 01 74 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 EF 00 00 00 F4 03 04 00 AE 9B A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2A CF 01 00 35 04 06 00 8D B2 0E F5 24 30 C1 2F 43 34 B5 48 8D A2 [19:27:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EB 4A 47 00 BD 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 39 33 39 10 04 04 00 2A CF 01 00 F4 03 04 00 3E 49 A6 66 B6 04 01 00 00 BA 0D 9C 92 BA FB CE CE [19:27:43]CommunicateWithHost err = 0 [19:27:43]CheckOFDResponse [19:27:43]1017 (14) - 77093643461234 [19:27:43]1041 (16) - 0000000000874939 [19:27:43]1040 (4) - 118570 [19:27:43]1012 (4) - 28.07.2024 13:35 [19:27:43]1206 (1) - 0 [19:27:43]OFD Sender: Remove packet 118570 [19:27:43]ProducePacketName [19:27:43]name=ofd_packets/00118570 [19:27:43]NVStorageDeleteData [19:27:43]Write to MH i2c: 01 00 00 30 18 48 [19:27:43]Write i2c OK [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: 01 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: 01 07 00 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: 01 07 00 30 18 00 00 00 00 00 EF 0C 4A [19:27:43]RasterBufferAndPrint [19:27:43]line [19:27:43]line [19:27:43]line [19:27:43]line [19:27:43]line [19:27:43]written 0, free lines is 3317 [19:27:43]MH_Cut [19:27:43]Write to MH i2c: D1 01 00 37 18 01 21 [19:27:43]Write i2c OK [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: D1 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: D1 01 00 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: D1 01 00 37 18 00 20 [19:27:43]Write to MH i2c: 01 00 00 38 18 50 [19:27:43]Write i2c OK [19:27:43]MH_I2C_Read... [19:27:43]OFD Sender: No OFD packet to send [19:27:43]*** Cut start [19:27:43]*** Partial cut [19:27:43]*** CUTSNS_PIN = 1 [19:27:43]*** CUTSNS_PIN = 0 [19:27:44]*** Brake cut motor [19:27:44]Read from MH i2c: 01 [19:27:44]MH_I2C_Read... [19:27:44]*** Stop cut motor [19:27:44]*** Cut end [19:27:44]Read from MH i2c: 01 07 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: 01 07 00 38 18 00 00 00 00 00 FF 0F 65 [19:27:44]process_action close_receipt done [19:27:44]requested_data is exist [19:27:44]produce_requested_data [19:27:44]requested_item fm.sn is exist - process it [19:27:44]wFMCommunicate request_size=4 [19:27:44]MH_SAM_APDU [19:27:44]CAPDU: 80 11 00 00 [19:27:44]Write to MH i2c: E2 08 00 39 18 80 11 00 00 00 00 00 00 CB [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:44]Read from MH i2c: E2 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 17 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 17 00 39 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 26 [19:27:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:27:44]wFMCommunicate OK [19:27:44]requested_item fd.num is exist - process it [19:27:44]SAM_PROTO_GetFieldsCounters [19:27:44]wFMCommunicate request_size=4 [19:27:44]MH_SAM_APDU [19:27:44]CAPDU: 80 13 00 00 [19:27:44]Write to MH i2c: E2 08 00 3A 18 80 13 00 00 00 00 00 00 CE [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:44]Read from MH i2c: E2 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 62 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 62 00 3A 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2A CF 01 00 0E 04 04 00 B1 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 6E [19:27: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2A CF 01 00 0E 04 04 00 B1 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 [19:27:44]wFMCommunicate OK [19:27:44]SAM_PROTO_GetFieldsCounters done [19:27:44]requested_item shift.num is exist - process it [19:27:44]requested_item shift.opened is exist - process it [19:27:44]req_shift_opened [19:27:44]FM_GetShiftState [19:27:44]SAM_PROTO_GetShiftState [19:27:44]wFMCommunicate request_size=4 [19:27:44]MH_SAM_APDU [19:27:44]CAPDU: 80 13 01 00 [19:27:44]Write to MH i2c: E2 08 00 3B 18 80 13 01 00 00 00 00 00 D0 [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:44]Read from MH i2c: E2 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 0E 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 0E 00 3B 18 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A7 [19:27:44]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:27:44]wFMCommunicate OK [19:27:44]SAM_PROTO_GetShiftState done [19:27:44]FM_GetShiftState done [19:27:44]req_shift_opened done [19:27:44]requested_item shift.open_date is exist - process it [19:27:44]req_shift_open_date [19:27:44]req_shift_open_date done [19:27:44]produce_requested_data done [19:27:44]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118570,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [19:27:44]process_action_free close_receipt [19:27:44]json_value_free [19:27:44]json_value_free done [19:27:44]process_json_proto returns [19:27:44]Send response to host [19:27:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118570,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [19:27:44]free response buf [19:27:44]execute_script done [19:27:44]execute_script returns [19:27:44]free content buf [19:27:44]Sock 9.Close socket [19:27:44]Sock 9.Thread stoped [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32:08]OFD Sender: No OFD packet to send [19:32:13]OFD Sender: No OFD packet to send [19:32:18]OFD Sender: No OFD packet to send [19:32:23]OFD Sender: No OFD packet to send [19:32:28]OFD Sender: No OFD packet to send [19:32:33]OFD Sender: No OFD packet to send [19:32:38]OFD Sender: No OFD packet to send [19:32:43]OFD Sender: No OFD packet to send [19:32:48]OFD Sender: No OFD packet to send [19:32:53]OFD Sender: No OFD packet to send [19:32:58]OFD Sender: No OFD packet to send [19:33:03]OFD Sender: No OFD packet to send [19:33:08]OFD Sender: No OFD packet to send [19:33:13]OFD Sender: No OFD packet to send [19:33:18]OFD Sender: No OFD packet to send [19:33:23]OFD Sender: No OFD packet to send [19:33:28]OFD Sender: No OFD packet to send [19:33:33]OFD Sender: No OFD packet to send [19:33:38]OFD Sender: No OFD packet to send [19:33:43]OFD Sender: No OFD packet to send [19:33:48]OFD Sender: No OFD packet to send [19:33:53]OFD Sender: No OFD packet to send [19:33:58]OFD Sender: No OFD packet to send [19:34:03]OFD Sender: No OFD packet to send [19:34:08]OFD Sender: No OFD packet to send [19:34:13]OFD Sender: No OFD packet to send [19:34:18]OFD Sender: No OFD packet to send [19:34:23]OFD Sender: No OFD packet to send [19:34:28]OFD Sender: No OFD packet to send [19:34:33]OFD Sender: No OFD packet to send [19:34:38]OFD Sender: No OFD packet to send [19:34:43]OFD Sender: No OFD packet to send [19:34:44]accept exits with 7 [19:34:44]New connection [19:34:44]New thread 3067383140 created [19:34:44]Thread 3067239780 joined [19:34:44]Waiting for new connection... [19:34:44] Sock 7.Parse request [19:34:44]Sock 7.Check first char [19:34:44]Sock 7.First char is OK [19:34:44]request: POST /json_proto HTTP/1.0 [19:34:44]Method: POST [19:34:44]URL: /json_proto [19:34:44]Method is POST - this is cgi request [19:34:44]url: /json_proto [19:34:44]query_string will be loaded in cgi processing [19:34:44]execute_cgi json_proto POST (null) [19:34:44]execute_cgi path=json_proto method=POST [19:34:44]POST find Content-Length [19:34:44]Host: 172.17.45.7:8080 [19:34:44]Content-Length: 677 [19:34:44]Content-Type: application/json [19:34:44] [19:34:44]POST finish read [19:34:44]Found Content-Length = 677 [19:34:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:44]execute_script... [19:34:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:44]POST & json_proto [19:34:44]process_json_proto [19:34:44]json parsed OK: [19:34:44]protocol is kg_v1.0 [19:34:44]action value=close_receipt [19:34:44]process_action close_receipt [19:34:44]cmd_close_receipt [19:34:44]MH_GetDate [19:34:44]Write to MH i2c: F0 00 00 3C 18 43 [19:34:44]Write i2c OK [19:34:44]MH_I2C_Read... [19:34:44]Read from MH i2c: F0 [19:34:44]MH_I2C_Read... [19:34:44]Read from MH i2c: F0 09 00 [19:34:44]MH_I2C_Read... [19:34:44]Read from MH i2c: F0 09 00 3C 18 00 56 9D A6 66 90 0F 3E 66 8E [19:34:44]GetLastDocTimeStamp 1722194862 [19:34:44]current date 1722195286 [19:34:44]FM_GetShiftState [19:34:44]SAM_PROTO_GetShiftState [19:34:44]wFMCommunicate request_size=4 [19:34:44]MH_SAM_APDU [19:34:44]CAPDU: 80 13 01 00 [19:34:44]Write to MH i2c: E2 08 00 3D 18 80 13 01 00 00 00 00 00 D2 [19:34:44]Write i2c OK [19:34:44]MH_I2C_Read... [19:34:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:44]Read from MH i2c: E2 [19:34:44]MH_I2C_Read... [19:34:44]Read from MH i2c: E2 0E 00 [19:34:44]MH_I2C_Read... [19:34:44]Read from MH i2c: E2 0E 00 3D 18 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A9 [19:34:44]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:34:44]wFMCommunicate OK [19:34:44]SAM_PROTO_GetShiftState done [19:34:44]FM_GetShiftState done [19:34:44]opened in 1722125364 [19:34:44]opened+sec_in_day 1722211764 [19:34:44]quantity*price = 30051 [19:34:44]sum+1 = 30052 [19:34:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 240 28.07.2024 19:34 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118571 ФПД: 76595263742133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T193446&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118571&fm=76595263742133&tin=02508201610067®Number=0000000000092660&sum=30000 [19:34:45]StoreToDocumentArchive [19:34:45]shift 433 fd 118571 [19:34:45]save to /storage/0433/doc_00118571 [19:34:45]save last doc name /storage/0433/doc_00118571 to /storage/kkm_last_doc_name [19:34:45]save OK [19:34:45]Clear old archive folders... [19:34:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:34:45]tlvbuf is 01ED6640 [19:34:45]SAM_PROTO_ClearQueue [19:34:45]wFMCommunicate request_size=4 [19:34:45]MH_SAM_APDU [19:34:45]CAPDU: 80 09 00 00 [19:34:45]Write to MH i2c: E2 08 00 4A 18 80 09 00 00 00 00 00 00 D4 [19:34:45]Write i2c OK [19:34:45]MH_I2C_Read... [19:34:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:45]Read from MH i2c: E2 [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: E2 03 00 [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: E2 03 00 4A 18 00 90 00 D6 [19:34:45]RAPDU: 90 00 [19:34:45]wFMCommunicate OK [19:34:45]SAM_PROTO_ClearQueue done [19:34:45]KKMCreateOFDPacket [19:34:45]OFDProtocolAddRootSTLVToBuf [19:34:45]FM_MakeSignedData [19:34:45]FM_MakeSignedData [19:34:45]SAM_PROTO_SignData [19:34:45]wFMCommunicate request_size=4 [19:34:45]MH_SAM_APDU [19:34:45]CAPDU: 80 0D 01 02 [19:34:45]Write to MH i2c: E2 08 00 4B 18 80 0D 01 02 00 00 00 00 DC [19:34:45]Write i2c OK [19:34:45]MH_I2C_Read... [19:34:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:45]Read from MH i2c: E2 [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: E2 03 00 [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: E2 03 00 4B 18 00 90 00 D7 [19:34:45]RAPDU: 90 00 [19:34:45]wFMCommunicate OK [19:34:45]wFMCommunicate request_size=255 [19:34:45]MH_SAM_APDU [19:34:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 56 9D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2B CF 01 00 35 04 06 00 45 [19:34:45]Write to MH i2c: E2 02 01 4C 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 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 56 9D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2B CF 01 00 35 04 06 00 45 00 00 78 [19:34:45]Write i2c OK [19:34:45]MH_I2C_Read... [19:34:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:46]Read from MH i2c: E2 [19:34:46]MH_I2C_Read... [19:34:46]Read from MH i2c: E2 03 00 [19:34:46]MH_I2C_Read... [19:34:46]Read from MH i2c: E2 03 00 4C 18 00 90 00 D8 [19:34:46]RAPDU: 90 00 [19:34:46]wFMCommunicate OK [19:34:46]wFMCommunicate request_size=10 [19:34:46]MH_SAM_APDU [19:34:46]CAPDU: 80 0D 02 02 05 A9 B9 7C A0 B5 [19:34:46]Write to MH i2c: E2 0D 00 4D 18 80 0D 02 02 05 00 A9 B9 7C A0 B5 00 00 1C [19:34:46]Write i2c OK [19:34:46]MH_I2C_Read... [19:34:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:46]Read from MH i2c: E2 [19:34:46]MH_I2C_Read... [19:34:46]Read from MH i2c: E2 03 00 [19:34:46]MH_I2C_Read... [19:34:46]Read from MH i2c: E2 03 00 4D 18 00 90 00 D9 [19:34:46]RAPDU: 90 00 [19:34:46]wFMCommunicate OK [19:34:46]wFMCommunicate request_size=4 [19:34:46]MH_SAM_APDU [19:34:46]CAPDU: 80 0D 03 02 [19:34:46]Write to MH i2c: E2 08 00 4E 18 80 0D 03 02 00 00 00 00 E1 [19:34:46]Write i2c OK [19:34:46]MH_I2C_Read... [19:34:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:46]Read from MH i2c: E2 [19:34:46]MH_I2C_Read... [19:34:46]Read from MH i2c: E2 0B 00 [19:34:46]MH_I2C_Read... [19:34:46]Read from MH i2c: E2 0B 00 4E 18 00 C2 D8 22 BA 6B 3F 7C 37 90 00 B5 [19:34:46]RAPDU: C2 D8 22 BA 6B 3F 7C 37 90 00 [19:34:46]wFMCommunicate OK [19:34:46]SAM_PROTO_SignData done [19:34:46]FM_MakeSignedData done [19:34:46]CreateOFDProtocolMessage [19:34:46]wFMCommunicate request_size=4 [19:34:46]MH_SAM_APDU [19:34:46]CAPDU: 80 11 00 00 [19:34:46]Write to MH i2c: E2 08 00 4F 18 80 11 00 00 00 00 00 00 E1 [19:34:46]Write i2c OK [19:34:46]MH_I2C_Read... [19:34:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:46]Read from MH i2c: E2 [19:34:46]MH_I2C_Read... [19:34:46]Read from MH i2c: E2 17 00 [19:34:46]MH_I2C_Read... [19:34:46]Read from MH i2c: E2 17 00 4F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3C [19:34:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:34:46]wFMCommunicate OK [19:34:46]CreateOFDProtocolMessage done [19:34:46]OFDSenderStorePacket 118571 [19:34:46]StoreOFDPacket docnum=118571 [19:34:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 15 6F 07 01 80 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 56 9D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2B CF 01 00 35 04 06 00 45 A9 B9 7C A0 B5 C2 D8 22 BA 6B 3F 7C 37 [19:34:46]CheckFolder [19:34:46]dirname=/storage/ofd_packets [19:34:46]CheckFolder done [19:34:46]ProducePacketName [19:34:46]name=ofd_packets/00118571 [19:34:46]NVStorageSaveData ofd_packets/00118571 [19:34:46]File name is /storage/ofd_packets/00118571 [19:34:46]Write 301 bytes [19:34:46]NVStorageSaveData done [19:34:46]OFDSenderStorePacket done [19:34:46]KKMCreateOFDPacket done [19:34:46]NVStorageSaveData kkm_last_timestamp [19:34:46]File name is /storage/kkm_last_timestamp [19:34:46]Write 4 bytes [19:34:46]NVStorageSaveData done [19:34:46]ExternCall_PrintAddStr [19:34:46]wPrintStart [19:34:46]Write to MH i2c: 01 00 00 50 18 68 [19:34:46]Write i2c OK [19:34:46]MH_I2C_Read... [19:34:46]Read from MH i2c: 01 [19:34:46]MH_I2C_Read... [19:34:46]Read from MH i2c: 01 07 00 [19:34:46]MH_I2C_Read... [19:34:46]Read from MH i2c: 01 07 00 50 18 00 00 00 00 00 FF 0F 7D [19:34:46]RasterBufferAndPrint [19:34:46]line Счет N : (1)949457 [19:34:46]line ИНН: 02508201610067 [19:34:46]line Контрольно-Кассовый Чек [19:34:46]line ПРОДАЖА [19:34:46]line ТРК (МРК, ГНК) : 43 [19:34:46]line Товар: 2710124500 [19:34:46]line Аи-95-К-3 [19:34:46]line 4.050 * 74.20 [19:34:46]line = 300.51 [19:34:46]line НДС 12% НСП 1% [19:34:46]line > о реализуемом товаре [19:34:46]line ОКРУГЛЕНИЕ: -0.51 [19:34:46]line ИТОГО: 300.00 [19:34:46]line Внесено: 300.00 [19:34:46]line СДАЧА: 0.00 [19:34:46]line НСП 1% : 2.66 [19:34:46]line НДС 12% : 31.91 [19:34:46]line Наличными: 300.00 [19:34:46]line Безнал.: 0.00 [19:34:46]line Место: АЗС № 134 "Партнер Нефть" [19:34:46]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:34:46]line СНО: Общий режим [19:34:46]line Чек 240 28.07.2024 19:34 [19:34:46]line Смена: 433 ФФД: 1.0 [19:34:46]line ЗНМ: 0300000044 [19:34:46]line РНМ: 0000000000092660 [19:34:46]line Версия ККМ: 001 [19:34:46]line ФМ: 0000000000874939 [19:34:46]line ФД: 118571 [19:34:46]line ФПД: 76595263742133 [19:34:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T193446&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118571&fm=76595263742133&tin=02508201610067®Number=0000000000092660&sum=30000 [19:34:46]OFD Sender: Processing packet 118571 [packets to send 86, broken 85] [19:34:46]ProducePacketName [19:34:46]name=ofd_packets/00118571 [19:34:46]OFD Sender: To server: pG, [19:34:46]CommunicateWithHost lk.salyk.kg:30040 [19:34:46]ConnectInit lk.salyk.kg [19:34:46]written 0, free lines is 4095 [19:34:46]Connected sock=10 [19:34:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 15 6F 07 01 80 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 56 9D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2B CF 01 00 35 04 06 00 45 A9 B9 7C A0 B5 C2 D8 22 BA 6B 3F 7C 37 [19:34:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 03 FD 47 00 C0 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 39 33 39 10 04 04 00 2B CF 01 00 F4 03 04 00 E6 4A A6 66 B6 04 01 00 00 7C 83 78 FE 5A 7C FB 1F [19:34:46]CommunicateWithHost err = 0 [19:34:46]CheckOFDResponse [19:34:46]1017 (14) - 77093643461234 [19:34:46]1041 (16) - 0000000000874939 [19:34:46]1040 (4) - 118571 [19:34:46]1012 (4) - 28.07.2024 13:43 [19:34:46]1206 (1) - 0 [19:34:46]OFD Sender: Remove packet 118571 [19:34:46]ProducePacketName [19:34:46]name=ofd_packets/00118571 [19:34:46]NVStorageDeleteData [19:34:46]Write to MH i2c: 01 00 00 7A 18 92 [19:34:46]Write i2c OK [19:34:46]MH_I2C_Read... [19:34:46]Read from MH i2c: 01 [19:34:46]MH_I2C_Read... [19:34:46]Read from MH i2c: 01 07 00 [19:34:46]MH_I2C_Read... [19:34:46]Read from MH i2c: 01 07 00 7A 18 00 00 00 00 00 DC 0C 81 [19:34:46]RasterBufferAndPrint [19:34:46]line [19:34:46]line [19:34:46]line [19:34:46]line [19:34:46]line [19:34:46]written 0, free lines is 3298 [19:34:47]MH_Cut [19:34:47]Write to MH i2c: D1 01 00 81 18 01 6B [19:34:47]Write i2c OK [19:34:47]MH_I2C_Read... [19:34:47]Read from MH i2c: D1 [19:34:47]MH_I2C_Read... [19:34:47]Read from MH i2c: D1 01 00 [19:34:47]MH_I2C_Read... [19:34:47]Read from MH i2c: D1 01 00 81 18 00 6A [19:34:47]Write to MH i2c: 01 00 00 82 18 9A [19:34:47]Write i2c OK [19:34:47]MH_I2C_Read... [19:34:47]OFD Sender: No OFD packet to send [19:34:47]*** Cut start [19:34:47]*** Partial cut [19:34:47]*** CUTSNS_PIN = 1 [19:34:47]*** CUTSNS_PIN = 0 [19:34:47]*** Brake cut motor [19:34:48]Read from MH i2c: 01 [19:34:48]MH_I2C_Read... [19:34:48]*** Stop cut motor [19:34:48]*** Cut end [19:34:48]Read from MH i2c: 01 07 00 [19:34:48]MH_I2C_Read... [19:34:48]Read from MH i2c: 01 07 00 82 18 00 00 00 00 00 FF 0F AF [19:34:48]process_action close_receipt done [19:34:48]requested_data is exist [19:34:48]produce_requested_data [19:34:48]requested_item fm.sn is exist - process it [19:34:48]wFMCommunicate request_size=4 [19:34:48]MH_SAM_APDU [19:34:48]CAPDU: 80 11 00 00 [19:34:48]Write to MH i2c: E2 08 00 83 18 80 11 00 00 00 00 00 00 15 [19:34:48]Write i2c OK [19:34:48]MH_I2C_Read... [19:34:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:48]Read from MH i2c: E2 [19:34:48]MH_I2C_Read... [19:34:48]Read from MH i2c: E2 17 00 [19:34:48]MH_I2C_Read... [19:34:48]Read from MH i2c: E2 17 00 83 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 70 [19:34:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:34:48]wFMCommunicate OK [19:34:48]requested_item fd.num is exist - process it [19:34:48]SAM_PROTO_GetFieldsCounters [19:34:48]wFMCommunicate request_size=4 [19:34:48]MH_SAM_APDU [19:34:48]CAPDU: 80 13 00 00 [19:34:48]Write to MH i2c: E2 08 00 84 18 80 13 00 00 00 00 00 00 18 [19:34:48]Write i2c OK [19:34:48]MH_I2C_Read... [19:34:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:48]Read from MH i2c: E2 [19:34:48]MH_I2C_Read... [19:34:48]Read from MH i2c: E2 62 00 [19:34:48]MH_I2C_Read... [19:34:48]Read from MH i2c: E2 62 00 84 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2B CF 01 00 0E 04 04 00 B1 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 BC [19:34:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2B CF 01 00 0E 04 04 00 B1 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 [19:34:48]wFMCommunicate OK [19:34:48]SAM_PROTO_GetFieldsCounters done [19:34:48]requested_item shift.num is exist - process it [19:34:48]requested_item shift.opened is exist - process it [19:34:48]req_shift_opened [19:34:48]FM_GetShiftState [19:34:48]SAM_PROTO_GetShiftState [19:34:48]wFMCommunicate request_size=4 [19:34:48]MH_SAM_APDU [19:34:48]CAPDU: 80 13 01 00 [19:34:48]Write to MH i2c: E2 08 00 85 18 80 13 01 00 00 00 00 00 1A [19:34:48]Write i2c OK [19:34:48]MH_I2C_Read... [19:34:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:48]Read from MH i2c: E2 [19:34:48]MH_I2C_Read... [19:34:48]Read from MH i2c: E2 0E 00 [19:34:48]MH_I2C_Read... [19:34:48]Read from MH i2c: E2 0E 00 85 18 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 F1 [19:34:48]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:34:48]wFMCommunicate OK [19:34:48]SAM_PROTO_GetShiftState done [19:34:48]FM_GetShiftState done [19:34:48]req_shift_opened done [19:34:48]requested_item shift.open_date is exist - process it [19:34:48]req_shift_open_date [19:34:48]req_shift_open_date done [19:34:48]produce_requested_data done [19:34:48]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118571,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [19:34:48]process_action_free close_receipt [19:34:48]json_value_free [19:34:48]json_value_free done [19:34:48]process_json_proto returns [19:34:48]Send response to host [19:34:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118571,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [19:34:48]free response buf [19:34:48]execute_script done [19:34:48]execute_script returns [19:34:48]free content buf [19:34:48]Sock 7.Close socket [19:34:48]Sock 7.Thread stoped [19:34:52]OFD Sender: No OFD packet to send [19:34:57]OFD Sender: No OFD packet to send [19:35:02]OFD Sender: No OFD packet to send [19:35:07]OFD Sender: No OFD packet to send [19:35:12]OFD Sender: No OFD packet to send [19:35:17]OFD Sender: No OFD packet to send [19:35:22]OFD Sender: No OFD packet to send [19:35:27]OFD Sender: No OFD packet to send [19:35:27]accept exits with 9 [19:35:27]New connection [19:35:27]New thread 3067239780 created [19:35:27]Thread 3067383140 joined [19:35:27]Waiting for new connection... [19:35:27] Sock 9.Parse request [19:35:27]Sock 9.Check first char [19:35:27]Sock 9.First char is OK [19:35:27]request: POST /json_proto HTTP/1.0 [19:35:27]Method: POST [19:35:27]URL: /json_proto [19:35:27]Method is POST - this is cgi request [19:35:27]url: /json_proto [19:35:27]query_string will be loaded in cgi processing [19:35:27]execute_cgi json_proto POST (null) [19:35:27]execute_cgi path=json_proto method=POST [19:35:27]POST find Content-Length [19:35:27]Host: 172.17.45.7:8080 [19:35:27]Content-Length: 677 [19:35:27]Content-Type: application/json [19:35:27] [19:35:27]POST finish read [19:35:27]Found Content-Length = 677 [19:35:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:27]execute_script... [19:35: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)949458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:27]POST & json_proto [19:35:27]process_json_proto [19:35:27]json parsed OK: [19:35:27]protocol is kg_v1.0 [19:35:27]action value=close_receipt [19:35:27]process_action close_receipt [19:35:27]cmd_close_receipt [19:35:27]MH_GetDate [19:35:27]Write to MH i2c: F0 00 00 86 18 8D [19:35:27]Write i2c OK [19:35:27]MH_I2C_Read... [19:35:27]Read from MH i2c: F0 [19:35:27]MH_I2C_Read... [19:35:27]Read from MH i2c: F0 09 00 [19:35:27]MH_I2C_Read... [19:35:27]Read from MH i2c: F0 09 00 86 18 00 81 9D A6 66 90 0F 3E 66 03 [19:35:27]GetLastDocTimeStamp 1722195286 [19:35:27]current date 1722195329 [19:35:27]FM_GetShiftState [19:35:27]SAM_PROTO_GetShiftState [19:35:27]wFMCommunicate request_size=4 [19:35:27]MH_SAM_APDU [19:35:27]CAPDU: 80 13 01 00 [19:35:27]Write to MH i2c: E2 08 00 87 18 80 13 01 00 00 00 00 00 1C [19:35:27]Write i2c OK [19:35:27]MH_I2C_Read... [19:35:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:28]Read from MH i2c: E2 [19:35:28]MH_I2C_Read... [19:35:28]Read from MH i2c: E2 0E 00 [19:35:28]MH_I2C_Read... [19:35:28]Read from MH i2c: E2 0E 00 87 18 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 F3 [19:35:28]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:35:28]wFMCommunicate OK [19:35:28]SAM_PROTO_GetShiftState done [19:35:28]FM_GetShiftState done [19:35:28]opened in 1722125364 [19:35:28]opened+sec_in_day 1722211764 [19:35:28]quantity*price = 50036 [19:35:28]sum+1 = 50037 [19:35:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 241 28.07.2024 19:35 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118572 ФПД: 52970436547110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T193529&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118572&fm=52970436547110&tin=02508201610067®Number=0000000000092660&sum=50000 [19:35:29]StoreToDocumentArchive [19:35:29]shift 433 fd 118572 [19:35:29]save to /storage/0433/doc_00118572 [19:35:29]save last doc name /storage/0433/doc_00118572 to /storage/kkm_last_doc_name [19:35:29]save OK [19:35:29]Clear old archive folders... [19:35:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:35:29]tlvbuf is B6FC1340 [19:35:29]SAM_PROTO_ClearQueue [19:35:29]wFMCommunicate request_size=4 [19:35:29]MH_SAM_APDU [19:35:29]CAPDU: 80 09 00 00 [19:35:29]Write to MH i2c: E2 08 00 94 18 80 09 00 00 00 00 00 00 1E [19:35:29]Write i2c OK [19:35:29]MH_I2C_Read... [19:35:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:29]Read from MH i2c: E2 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 03 00 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 03 00 94 18 00 90 00 20 [19:35:29]RAPDU: 90 00 [19:35:29]wFMCommunicate OK [19:35:29]SAM_PROTO_ClearQueue done [19:35:29]KKMCreateOFDPacket [19:35:29]OFDProtocolAddRootSTLVToBuf [19:35:29]FM_MakeSignedData [19:35:29]FM_MakeSignedData [19:35:29]SAM_PROTO_SignData [19:35:29]wFMCommunicate request_size=4 [19:35:29]MH_SAM_APDU [19:35:29]CAPDU: 80 0D 01 02 [19:35:29]Write to MH i2c: E2 08 00 95 18 80 0D 01 02 00 00 00 00 26 [19:35:29]Write i2c OK [19:35:29]MH_I2C_Read... [19:35:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:29]Read from MH i2c: E2 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 03 00 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 03 00 95 18 00 90 00 21 [19:35:29]RAPDU: 90 00 [19:35:29]wFMCommunicate OK [19:35:29]wFMCommunicate request_size=255 [19:35:29]MH_SAM_APDU [19:35:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 81 9D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2C CF 01 00 35 04 06 00 30 [19:35:29]Write to MH i2c: E2 02 01 96 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 81 9D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2C CF 01 00 35 04 06 00 30 00 00 A3 [19:35:29]Write i2c OK [19:35:29]MH_I2C_Read... [19:35:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:29]Read from MH i2c: E2 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 03 00 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 03 00 96 18 00 90 00 22 [19:35:29]RAPDU: 90 00 [19:35:29]wFMCommunicate OK [19:35:29]wFMCommunicate request_size=10 [19:35:29]MH_SAM_APDU [19:35:29]CAPDU: 80 0D 02 02 05 2D 24 0D D2 26 [19:35:29]Write to MH i2c: E2 0D 00 97 18 80 0D 02 02 05 00 2D 24 0D D2 26 00 00 89 [19:35:29]Write i2c OK [19:35:29]MH_I2C_Read... [19:35:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:29]Read from MH i2c: E2 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 03 00 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 03 00 97 18 00 90 00 23 [19:35:29]RAPDU: 90 00 [19:35:29]wFMCommunicate OK [19:35:29]wFMCommunicate request_size=4 [19:35:29]MH_SAM_APDU [19:35:29]CAPDU: 80 0D 03 02 [19:35:29]Write to MH i2c: E2 08 00 98 18 80 0D 03 02 00 00 00 00 2B [19:35:29]Write i2c OK [19:35:29]MH_I2C_Read... [19:35:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:29]Read from MH i2c: E2 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 0B 00 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 0B 00 98 18 00 5D D4 EE 38 87 AE 1F B9 90 00 90 [19:35:29]RAPDU: 5D D4 EE 38 87 AE 1F B9 90 00 [19:35:29]wFMCommunicate OK [19:35:29]SAM_PROTO_SignData done [19:35:29]FM_MakeSignedData done [19:35:29]CreateOFDProtocolMessage [19:35:29]wFMCommunicate request_size=4 [19:35:29]MH_SAM_APDU [19:35:29]CAPDU: 80 11 00 00 [19:35:29]Write to MH i2c: E2 08 00 99 18 80 11 00 00 00 00 00 00 2B [19:35:29]Write i2c OK [19:35:29]MH_I2C_Read... [19:35:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:29]Read from MH i2c: E2 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 17 00 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 17 00 99 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 86 [19:35:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:35:29]wFMCommunicate OK [19:35:29]CreateOFDProtocolMessage done [19:35:29]OFDSenderStorePacket 118572 [19:35:29]StoreOFDPacket docnum=118572 [19:35:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4B 2F 07 01 B3 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 81 9D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2C CF 01 00 35 04 06 00 30 2D 24 0D D2 26 5D D4 EE 38 87 AE 1F B9 [19:35:29]CheckFolder [19:35:29]dirname=/storage/ofd_packets [19:35:29]CheckFolder done [19:35:29]ProducePacketName [19:35:29]name=ofd_packets/00118572 [19:35:29]NVStorageSaveData ofd_packets/00118572 [19:35:29]File name is /storage/ofd_packets/00118572 [19:35:29]Write 301 bytes [19:35:29]NVStorageSaveData done [19:35:29]OFDSenderStorePacket done [19:35:29]KKMCreateOFDPacket done [19:35:29]NVStorageSaveData kkm_last_timestamp [19:35:29]File name is /storage/kkm_last_timestamp [19:35:29]Write 4 bytes [19:35:29]NVStorageSaveData done [19:35:29]ExternCall_PrintAddStr [19:35:29]wPrintStart [19:35:29]Write to MH i2c: 01 00 00 9A 18 B2 [19:35:29]Write i2c OK [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: 01 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: 01 07 00 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: 01 07 00 9A 18 00 00 00 00 00 FF 0F C7 [19:35:29]RasterBufferAndPrint [19:35:29]line Счет N : (1)949458 [19:35:29]line ИНН: 02508201610067 [19:35:29]line Контрольно-Кассовый Чек [19:35:29]line ПРОДАЖА [19:35:29]line ТРК (МРК, ГНК) : 61 [19:35:29]line Товар: 2710124130 [19:35:29]line Аи-92-К-4 [19:35:29]line 7.380 * 67.80 [19:35:29]line = 500.36 [19:35:29]line НДС 12% НСП 1% [19:35:29]line > о реализуемом товаре [19:35:29]line ОКРУГЛЕНИЕ: -0.36 [19:35:29]line ИТОГО: 500.00 [19:35:29]line Внесено: 500.00 [19:35:29]line СДАЧА: 0.00 [19:35:29]line НСП 1% : 4.43 [19:35:29]line НДС 12% : 53.14 [19:35:29]line Наличными: 500.00 [19:35:29]line Безнал.: 0.00 [19:35:29]line Место: АЗС № 134 "Партнер Нефть" [19:35:29]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:35:29]line СНО: Общий режим [19:35:29]line Чек 241 28.07.2024 19:35 [19:35:29]line Смена: 433 ФФД: 1.0 [19:35:29]line ЗНМ: 0300000044 [19:35:29]line РНМ: 0000000000092660 [19:35:29]line Версия ККМ: 001 [19:35:29]line ФМ: 0000000000874939 [19:35:29]line ФД: 118572 [19:35:29]line ФПД: 52970436547110 [19:35:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T193529&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118572&fm=52970436547110&tin=02508201610067®Number=0000000000092660&sum=50000 [19:35:29]OFD Sender: Processing packet 118572 [packets to send 86, broken 85] [19:35:29]ProducePacketName [19:35:29]name=ofd_packets/00118572 [19:35:29]OFD Sender: To server: pG, [19:35:29]CommunicateWithHost lk.salyk.kg:30040 [19:35:29]ConnectInit lk.salyk.kg [19:35:29]written 0, free lines is 4095 [19:35:30]Connected sock=10 [19:35:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4B 2F 07 01 B3 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 81 9D A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2C CF 01 00 35 04 06 00 30 2D 24 0D D2 26 5D D4 EE 38 87 AE 1F B9 [19:35:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 26 12 47 00 F7 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 39 33 39 10 04 04 00 2C CF 01 00 F4 03 04 00 11 4B A6 66 B6 04 01 00 00 2C 0A 3F BF 11 B3 C6 73 [19:35:30]CommunicateWithHost err = 0 [19:35:30]CheckOFDResponse [19:35:30]1017 (14) - 77093643461234 [19:35:30]1041 (16) - 0000000000874939 [19:35:30]1040 (4) - 118572 [19:35:30]1012 (4) - 28.07.2024 13:43 [19:35:30]1206 (1) - 0 [19:35:30]OFD Sender: Remove packet 118572 [19:35:30]ProducePacketName [19:35:30]name=ofd_packets/00118572 [19:35:30]NVStorageDeleteData [19:35:30]Write to MH i2c: 01 00 00 C4 18 DC [19:35:30]Write i2c OK [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: 01 [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: 01 07 00 [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: 01 07 00 C4 18 00 00 00 00 00 D3 0C C2 [19:35:30]RasterBufferAndPrint [19:35:30]line [19:35:30]line [19:35:30]line [19:35:30]line [19:35:30]line [19:35:30]written 0, free lines is 3289 [19:35:30]MH_Cut [19:35:30]Write to MH i2c: D1 01 00 CB 18 01 B5 [19:35:30]Write i2c OK [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: D1 [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: D1 01 00 [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: D1 01 00 CB 18 00 B4 [19:35:30]Write to MH i2c: 01 00 00 CC 18 E4 [19:35:30]Write i2c OK [19:35:30]MH_I2C_Read... [19:35:30]OFD Sender: No OFD packet to send [19:35:31]*** Cut start [19:35:31]*** Partial cut [19:35:31]*** CUTSNS_PIN = 1 [19:35:31]*** CUTSNS_PIN = 0 [19:35:31]*** Brake cut motor [19:35:31]Read from MH i2c: 01 [19:35:31]MH_I2C_Read... [19:35:31]*** Stop cut motor [19:35:31]*** Cut end [19:35:31]Read from MH i2c: 01 07 00 [19:35:31]MH_I2C_Read... [19:35:31]Read from MH i2c: 01 07 00 CC 18 00 00 00 00 00 FF 0F F9 [19:35:31]process_action close_receipt done [19:35:31]requested_data is exist [19:35:31]produce_requested_data [19:35:31]requested_item fm.sn is exist - process it [19:35:31]wFMCommunicate request_size=4 [19:35:31]MH_SAM_APDU [19:35:31]CAPDU: 80 11 00 00 [19:35:31]Write to MH i2c: E2 08 00 CD 18 80 11 00 00 00 00 00 00 5F [19:35:31]Write i2c OK [19:35:31]MH_I2C_Read... [19:35:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:31]Read from MH i2c: E2 [19:35:31]MH_I2C_Read... [19:35:31]Read from MH i2c: E2 17 00 [19:35:31]MH_I2C_Read... [19:35:31]Read from MH i2c: E2 17 00 CD 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BA [19:35:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:35:31]wFMCommunicate OK [19:35:31]requested_item fd.num is exist - process it [19:35:31]SAM_PROTO_GetFieldsCounters [19:35:31]wFMCommunicate request_size=4 [19:35:31]MH_SAM_APDU [19:35:31]CAPDU: 80 13 00 00 [19:35:31]Write to MH i2c: E2 08 00 CE 18 80 13 00 00 00 00 00 00 62 [19:35:31]Write i2c OK [19:35:31]MH_I2C_Read... [19:35:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:31]Read from MH i2c: E2 [19:35:31]MH_I2C_Read... [19:35:31]Read from MH i2c: E2 62 00 [19:35:31]MH_I2C_Read... [19:35:31]Read from MH i2c: E2 62 00 CE 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2C CF 01 00 0E 04 04 00 B1 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 0A [19:35:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2C CF 01 00 0E 04 04 00 B1 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 [19:35:31]wFMCommunicate OK [19:35:31]SAM_PROTO_GetFieldsCounters done [19:35:31]requested_item shift.num is exist - process it [19:35:31]requested_item shift.opened is exist - process it [19:35:31]req_shift_opened [19:35:31]FM_GetShiftState [19:35:31]SAM_PROTO_GetShiftState [19:35:31]wFMCommunicate request_size=4 [19:35:31]MH_SAM_APDU [19:35:31]CAPDU: 80 13 01 00 [19:35:31]Write to MH i2c: E2 08 00 CF 18 80 13 01 00 00 00 00 00 64 [19:35:31]Write i2c OK [19:35:31]MH_I2C_Read... [19:35:32]Read from MH i2c: E2 [19:35:32]MH_I2C_Read... [19:35:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:32]Read from MH i2c: E2 0E 00 [19:35:32]MH_I2C_Read... [19:35:32]Read from MH i2c: E2 0E 00 CF 18 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 3B [19:35:32]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:35:32]wFMCommunicate OK [19:35:32]SAM_PROTO_GetShiftState done [19:35:32]FM_GetShiftState done [19:35:32]req_shift_opened done [19:35:32]requested_item shift.open_date is exist - process it [19:35:32]req_shift_open_date [19:35:32]req_shift_open_date done [19:35:32]produce_requested_data done [19:35:32]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118572,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [19:35:32]process_action_free close_receipt [19:35:32]json_value_free [19:35:32]json_value_free done [19:35:32]process_json_proto returns [19:35:32]Send response to host [19:35:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118572,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [19:35:32]free response buf [19:35:32]execute_script done [19:35:32]execute_script returns [19:35:32]free content buf [19:35:32]Sock 9.Close socket [19:35:32]Sock 9.Thread stoped [19:35:35]OFD Sender: No OFD packet to send [19:35:40]OFD Sender: No OFD packet to send [19:35:45]OFD Sender: No OFD packet to send [19:35:50]OFD Sender: No OFD packet to send [19:35:55]OFD Sender: No OFD packet to send [19:36:00]OFD Sender: No OFD packet to send [19:36:05]OFD Sender: No OFD packet to send [19:36:10]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: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:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:25]accept exits with 7 [19:40:25]New connection [19:40:25]New thread 3067383140 created [19:40:25]Thread 3067239780 joined [19:40:25]Waiting for new connection... [19:40:25] Sock 7.Parse request [19:40:25]Sock 7.Check first char [19:40:25]Sock 7.First char is OK [19:40:25]request: POST /json_proto HTTP/1.0 [19:40:25]Method: POST [19:40:25]URL: /json_proto [19:40:25]Method is POST - this is cgi request [19:40:25]url: /json_proto [19:40:25]query_string will be loaded in cgi processing [19:40:25]execute_cgi json_proto POST (null) [19:40:25]execute_cgi path=json_proto method=POST [19:40:25]POST find Content-Length [19:40:25]Host: 172.17.45.7:8080 [19:40:25]Content-Length: 679 [19:40:25]Content-Type: application/json [19:40:25] [19:40:25]POST finish read [19:40:25]Found Content-Length = 679 [19:40:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:25]execute_script... [19:40:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:25]POST & json_proto [19:40:25]process_json_proto [19:40:25]json parsed OK: [19:40:25]protocol is kg_v1.0 [19:40:25]action value=close_receipt [19:40:25]process_action close_receipt [19:40:25]cmd_close_receipt [19:40:25]MH_GetDate [19:40:25]Write to MH i2c: F0 00 00 D0 18 D7 [19:40:25]Write i2c OK [19:40:25]MH_I2C_Read... [19:40:25]Read from MH i2c: F0 [19:40:25]MH_I2C_Read... [19:40:25]Read from MH i2c: F0 09 00 [19:40:25]MH_I2C_Read... [19:40:25]Read from MH i2c: F0 09 00 D0 18 00 AB 9E A6 66 90 0F 3E 66 78 [19:40:25]GetLastDocTimeStamp 1722195329 [19:40:25]current date 1722195627 [19:40:25]FM_GetShiftState [19:40:25]SAM_PROTO_GetShiftState [19:40:25]wFMCommunicate request_size=4 [19:40:25]MH_SAM_APDU [19:40:25]CAPDU: 80 13 01 00 [19:40:25]Write to MH i2c: E2 08 00 D1 18 80 13 01 00 00 00 00 00 66 [19:40:25]Write i2c OK [19:40:25]MH_I2C_Read... [19:40:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:25]Read from MH i2c: E2 [19:40:25]MH_I2C_Read... [19:40:25]Read from MH i2c: E2 0E 00 [19:40:25]MH_I2C_Read... [19:40:25]Read from MH i2c: E2 0E 00 D1 18 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 3D [19:40:25]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:40:25]wFMCommunicate OK [19:40:25]SAM_PROTO_GetShiftState done [19:40:25]FM_GetShiftState done [19:40:25]opened in 1722125364 [19:40:25]opened+sec_in_day 1722211764 [19:40:25]quantity*price = 100050 [19:40:25]sum+1 = 100052 [19:40:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 242 28.07.2024 19:40 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118573 ФПД: 146395081840335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T194027&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118573&fm=146395081840335&tin=02508201610067®Number=0000000000092660&sum=100000 [19:40:26]StoreToDocumentArchive [19:40:26]shift 433 fd 118573 [19:40:26]save to /storage/0433/doc_00118573 [19:40:26]save last doc name /storage/0433/doc_00118573 to /storage/kkm_last_doc_name [19:40:26]save OK [19:40:26]Clear old archive folders... [19:40:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:40:26]tlvbuf is 01EEE680 [19:40:26]SAM_PROTO_ClearQueue [19:40:26]wFMCommunicate request_size=4 [19:40:26]MH_SAM_APDU [19:40:26]CAPDU: 80 09 00 00 [19:40:26]Write to MH i2c: E2 08 00 DE 18 80 09 00 00 00 00 00 00 68 [19:40:26]Write i2c OK [19:40:26]MH_I2C_Read... [19:40:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:26]Read from MH i2c: E2 [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: E2 03 00 [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: E2 03 00 DE 18 00 90 00 6A [19:40:26]RAPDU: 90 00 [19:40:26]wFMCommunicate OK [19:40:26]SAM_PROTO_ClearQueue done [19:40:26]KKMCreateOFDPacket [19:40:26]OFDProtocolAddRootSTLVToBuf [19:40:26]FM_MakeSignedData [19:40:26]FM_MakeSignedData [19:40:26]SAM_PROTO_SignData [19:40:26]wFMCommunicate request_size=4 [19:40:26]MH_SAM_APDU [19:40:26]CAPDU: 80 0D 01 02 [19:40:26]Write to MH i2c: E2 08 00 DF 18 80 0D 01 02 00 00 00 00 70 [19:40:26]Write i2c OK [19:40:26]MH_I2C_Read... [19:40:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:27]Read from MH i2c: E2 [19:40:27]MH_I2C_Read... [19:40:27]Read from MH i2c: E2 03 00 [19:40:27]MH_I2C_Read... [19:40:27]Read from MH i2c: E2 03 00 DF 18 00 90 00 6B [19:40:27]RAPDU: 90 00 [19:40:27]wFMCommunicate OK [19:40:27]wFMCommunicate request_size=255 [19:40:27]MH_SAM_APDU [19:40:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 AB 9E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2D CF 01 00 35 04 06 00 85 25 42 D9 [19:40:27]Write to MH i2c: E2 02 01 E0 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 AB 9E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2D CF 01 00 35 04 06 00 85 25 42 D9 00 00 BB [19:40:27]Write i2c OK [19:40:27]MH_I2C_Read... [19:40:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:27]Read from MH i2c: E2 [19:40:27]MH_I2C_Read... [19:40:27]Read from MH i2c: E2 03 00 [19:40:27]MH_I2C_Read... [19:40:27]Read from MH i2c: E2 03 00 E0 18 00 90 00 6C [19:40:27]RAPDU: 90 00 [19:40:27]wFMCommunicate OK [19:40:27]wFMCommunicate request_size=7 [19:40:27]MH_SAM_APDU [19:40:27]CAPDU: 80 0D 02 02 02 96 CF [19:40:27]Write to MH i2c: E2 0A 00 E1 18 80 0D 02 02 02 00 96 CF 00 00 DC [19:40:27]Write i2c OK [19:40:27]MH_I2C_Read... [19:40:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:27]Read from MH i2c: E2 [19:40:27]MH_I2C_Read... [19:40:27]Read from MH i2c: E2 03 00 [19:40:27]MH_I2C_Read... [19:40:27]Read from MH i2c: E2 03 00 E1 18 00 90 00 6D [19:40:27]RAPDU: 90 00 [19:40:27]wFMCommunicate OK [19:40:27]wFMCommunicate request_size=4 [19:40:27]MH_SAM_APDU [19:40:27]CAPDU: 80 0D 03 02 [19:40:27]Write to MH i2c: E2 08 00 E2 18 80 0D 03 02 00 00 00 00 75 [19:40:27]Write i2c OK [19:40:27]MH_I2C_Read... [19:40:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:27]Read from MH i2c: E2 [19:40:27]MH_I2C_Read... [19:40:27]Read from MH i2c: E2 0B 00 [19:40:27]MH_I2C_Read... [19:40:27]Read from MH i2c: E2 0B 00 E2 18 00 7E C8 A1 1C C0 81 4B 0F 90 00 14 [19:40:27]RAPDU: 7E C8 A1 1C C0 81 4B 0F 90 00 [19:40:27]wFMCommunicate OK [19:40:27]SAM_PROTO_SignData done [19:40:27]FM_MakeSignedData done [19:40:27]CreateOFDProtocolMessage [19:40:27]wFMCommunicate request_size=4 [19:40:27]MH_SAM_APDU [19:40:27]CAPDU: 80 11 00 00 [19:40:27]Write to MH i2c: E2 08 00 E3 18 80 11 00 00 00 00 00 00 75 [19:40:27]Write i2c OK [19:40:27]MH_I2C_Read... [19:40:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:27]Read from MH i2c: E2 [19:40:27]MH_I2C_Read... [19:40:27]Read from MH i2c: E2 17 00 [19:40:27]MH_I2C_Read... [19:40:27]Read from MH i2c: E2 17 00 E3 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D0 [19:40:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:40:27]wFMCommunicate OK [19:40:27]CreateOFDProtocolMessage done [19:40:27]OFDSenderStorePacket 118573 [19:40:27]StoreOFDPacket docnum=118573 [19:40:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 DB 31 04 01 B6 E2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 AB 9E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2D CF 01 00 35 04 06 00 85 25 42 D9 96 CF 7E C8 A1 1C C0 81 4B 0F [19:40:27]CheckFolder [19:40:27]dirname=/storage/ofd_packets [19:40:27]CheckFolder done [19:40:27]ProducePacketName [19:40:27]name=ofd_packets/00118573 [19:40:27]NVStorageSaveData ofd_packets/00118573 [19:40:27]File name is /storage/ofd_packets/00118573 [19:40:27]Write 298 bytes [19:40:27]NVStorageSaveData done [19:40:27]OFDSenderStorePacket done [19:40:27]KKMCreateOFDPacket done [19:40:27]NVStorageSaveData kkm_last_timestamp [19:40:27]File name is /storage/kkm_last_timestamp [19:40:27]Write 4 bytes [19:40:27]NVStorageSaveData done [19:40:27]ExternCall_PrintAddStr [19:40:27]wPrintStart [19:40:27]Write to MH i2c: 01 00 00 E4 18 FC [19:40:27]Write i2c OK [19:40:27]MH_I2C_Read... [19:40:27]Read from MH i2c: 01 [19:40:27]MH_I2C_Read... [19:40:27]Read from MH i2c: 01 07 00 [19:40:27]MH_I2C_Read... [19:40:27]Read from MH i2c: 01 07 00 E4 18 00 00 00 00 00 FF 0F 11 [19:40:27]RasterBufferAndPrint [19:40:27]line Счет N : (1)949459 [19:40:27]line ИНН: 02508201610067 [19:40:27]line Контрольно-Кассовый Чек [19:40:27]line ПРОДАЖА [19:40:27]line ТРК (МРК, ГНК) : 44 [19:40:27]line Товар: 2710194800 [19:40:27]line ДТ-К-5 [19:40:27]line 13.130 * 76.20 [19:40:27]line = 1000.51 [19:40:27]line НДС 12% НСП 1% [19:40:27]line > о реализуемом товаре [19:40:27]line ОКРУГЛЕНИЕ: -0.51 [19:40:27]line ИТОГО: 1000.00 [19:40:27]line Внесено: 1000.00 [19:40:27]line СДАЧА: 0.00 [19:40:27]line НСП 1% : 8.85 [19:40:27]line НДС 12% : 106.25 [19:40:27]line Наличными: 1000.00 [19:40:27]line Безнал.: 0.00 [19:40:27]line Место: АЗС № 134 "Партнер Нефть" [19:40:27]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:40:27]line СНО: Общий режим [19:40:27]line Чек 242 28.07.2024 19:40 [19:40:27]line Смена: 433 ФФД: 1.0 [19:40:27]line ЗНМ: 0300000044 [19:40:27]line РНМ: 0000000000092660 [19:40:27]line Версия ККМ: 001 [19:40:27]line ФМ: 0000000000874939 [19:40:27]line ФД: 118573 [19:40:27]line ФПД: 146395081840335 [19:40:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T194027&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118573&fm=146395081840335&tin=02508201610067®Number=0000000000092660&sum=100000 [19:40:27]OFD Sender: Processing packet 118573 [packets to send 86, broken 85] [19:40:27]ProducePacketName [19:40:27]name=ofd_packets/00118573 [19:40:27]OFD Sender: To server: pG, [19:40:27]CommunicateWithHost lk.salyk.kg:30040 [19:40:27]ConnectInit lk.salyk.kg [19:40:27]written 0, free lines is 4095 [19:40:27]Connected sock=10 [19:40:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 DB 31 04 01 B6 E2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 AB 9E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2D CF 01 00 35 04 06 00 85 25 42 D9 96 CF 7E C8 A1 1C C0 81 4B 0F [19:40:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 06 98 47 00 CB E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2D CF 01 00 F4 03 04 00 3B 4C A6 66 B6 04 01 00 00 57 8B B7 A3 25 C7 DC D8 [19:40:28]CommunicateWithHost err = 0 [19:40:28]CheckOFDResponse [19:40:28]1017 (14) - 77093643461234 [19:40:28]1041 (16) - 0000000000874939 [19:40:28]1040 (4) - 118573 [19:40:28]1012 (4) - 28.07.2024 13:48 [19:40:28]1206 (1) - 0 [19:40:28]OFD Sender: Remove packet 118573 [19:40:28]ProducePacketName [19:40:28]name=ofd_packets/00118573 [19:40:28]NVStorageDeleteData [19:40:28]Write to MH i2c: 01 00 00 0E 19 27 [19:40:28]Write i2c OK [19:40:28]MH_I2C_Read... [19:40:28]Read from MH i2c: 01 [19:40:28]MH_I2C_Read... [19:40:28]Read from MH i2c: 01 07 00 [19:40:28]MH_I2C_Read... [19:40:28]Read from MH i2c: 01 07 00 0E 19 00 00 00 00 00 D7 0C 11 [19:40:28]RasterBufferAndPrint [19:40:28]line [19:40:28]line [19:40:28]line [19:40:28]line [19:40:28]line [19:40:28]written 0, free lines is 3295 [19:40:28]MH_Cut [19:40:28]Write to MH i2c: D1 01 00 15 19 01 00 [19:40:28]Write i2c OK [19:40:28]MH_I2C_Read... [19:40:28]Read from MH i2c: D1 [19:40:28]MH_I2C_Read... [19:40:28]Read from MH i2c: D1 01 00 [19:40:28]MH_I2C_Read... [19:40:28]Read from MH i2c: D1 01 00 15 19 00 FF [19:40:28]Write to MH i2c: 01 00 00 16 19 2F [19:40:28]Write i2c OK [19:40:28]MH_I2C_Read... [19:40:28]OFD Sender: No OFD packet to send [19:40:28]*** Cut start [19:40:28]*** Partial cut [19:40:28]*** CUTSNS_PIN = 1 [19:40:29]*** CUTSNS_PIN = 0 [19:40:29]*** Brake cut motor [19:40:29]Read from MH i2c: 01 [19:40:29]MH_I2C_Read... [19:40:29]*** Stop cut motor [19:40:29]*** Cut end [19:40:29]Read from MH i2c: 01 07 00 [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: 01 07 00 16 19 00 00 00 00 00 FF 0F 44 [19:40:29]process_action close_receipt done [19:40:29]requested_data is exist [19:40:29]produce_requested_data [19:40:29]requested_item fm.sn is exist - process it [19:40:29]wFMCommunicate request_size=4 [19:40:29]MH_SAM_APDU [19:40:29]CAPDU: 80 11 00 00 [19:40:29]Write to MH i2c: E2 08 00 17 19 80 11 00 00 00 00 00 00 AA [19:40:29]Write i2c OK [19:40:29]MH_I2C_Read... [19:40:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:29]Read from MH i2c: E2 [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: E2 17 00 [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: E2 17 00 17 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 05 [19:40:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:40:29]wFMCommunicate OK [19:40:29]requested_item fd.num is exist - process it [19:40:29]SAM_PROTO_GetFieldsCounters [19:40:29]wFMCommunicate request_size=4 [19:40:29]MH_SAM_APDU [19:40:29]CAPDU: 80 13 00 00 [19:40:29]Write to MH i2c: E2 08 00 18 19 80 13 00 00 00 00 00 00 AD [19:40:29]Write i2c OK [19:40:29]MH_I2C_Read... [19:40:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:29]Read from MH i2c: E2 [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: E2 62 00 [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: E2 62 00 18 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2D CF 01 00 0E 04 04 00 B1 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 59 [19:40:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2D CF 01 00 0E 04 04 00 B1 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 [19:40:29]wFMCommunicate OK [19:40:29]SAM_PROTO_GetFieldsCounters done [19:40:29]requested_item shift.num is exist - process it [19:40:29]requested_item shift.opened is exist - process it [19:40:29]req_shift_opened [19:40:29]FM_GetShiftState [19:40:29]SAM_PROTO_GetShiftState [19:40:29]wFMCommunicate request_size=4 [19:40:29]MH_SAM_APDU [19:40:29]CAPDU: 80 13 01 00 [19:40:29]Write to MH i2c: E2 08 00 19 19 80 13 01 00 00 00 00 00 AF [19:40:29]Write i2c OK [19:40:29]MH_I2C_Read... [19:40:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:29]Read from MH i2c: E2 [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: E2 0E 00 [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: E2 0E 00 19 19 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 86 [19:40:29]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:40:29]wFMCommunicate OK [19:40:29]SAM_PROTO_GetShiftState done [19:40:29]FM_GetShiftState done [19:40:29]req_shift_opened done [19:40:29]requested_item shift.open_date is exist - process it [19:40:29]req_shift_open_date [19:40:29]req_shift_open_date done [19:40:29]produce_requested_data done [19:40:29]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118573,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [19:40:29]process_action_free close_receipt [19:40:29]json_value_free [19:40:29]json_value_free done [19:40:29]process_json_proto returns [19:40:29]Send response to host [19:40:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118573,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [19:40:29]free response buf [19:40:29]execute_script done [19:40:29]execute_script returns [19:40:29]free content buf [19:40:29]Sock 7.Close socket [19:40:29]Sock 7.Thread stoped [19:40:33]OFD Sender: No OFD packet to send [19:40:38]OFD Sender: No OFD packet to send [19:40:43]OFD Sender: No OFD packet to send [19:40:48]OFD Sender: No OFD packet to send [19:40:53]OFD Sender: No OFD packet to send [19:40:58]OFD Sender: No OFD packet to send [19:41:00]accept exits with 9 [19:41:00]New connection [19:41:00]New thread 3067239780 created [19:41:00]Thread 3067383140 joined [19:41:00]Waiting for new connection... [19:41:00] Sock 9.Parse request [19:41:00]Sock 9.Check first char [19:41:00]Sock 9.First char is OK [19:41:00]request: POST /json_proto HTTP/1.0 [19:41:00]Method: POST [19:41:00]URL: /json_proto [19:41:00]Method is POST - this is cgi request [19:41:00]url: /json_proto [19:41:00]query_string will be loaded in cgi processing [19:41:00]execute_cgi json_proto POST (null) [19:41:00]execute_cgi path=json_proto method=POST [19:41:00]POST find Content-Length [19:41:00]Host: 172.17.45.7:8080 [19:41:00]Content-Length: 679 [19:41:00]Content-Type: application/json [19:41:00] [19:41:00]POST finish read [19:41:00]Found Content-Length = 679 [19:41:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:00]execute_script... [19: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)949460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:00]POST & json_proto [19:41:00]process_json_proto [19:41:00]json parsed OK: [19:41:00]protocol is kg_v1.0 [19:41:00]action value=close_receipt [19:41:00]process_action close_receipt [19:41:00]cmd_close_receipt [19:41:00]MH_GetDate [19:41:00]Write to MH i2c: F0 00 00 1A 19 22 [19:41:00]Write i2c OK [19:41:00]MH_I2C_Read... [19:41:00]Read from MH i2c: F0 [19:41:00]MH_I2C_Read... [19:41:00]Read from MH i2c: F0 09 00 [19:41:00]MH_I2C_Read... [19:41:00]Read from MH i2c: F0 09 00 1A 19 00 CE 9E A6 66 90 0F 3E 66 E6 [19:41:00]GetLastDocTimeStamp 1722195627 [19:41:00]current date 1722195662 [19:41:00]FM_GetShiftState [19:41:00]SAM_PROTO_GetShiftState [19:41:00]wFMCommunicate request_size=4 [19:41:00]MH_SAM_APDU [19:41:00]CAPDU: 80 13 01 00 [19:41:00]Write to MH i2c: E2 08 00 1B 19 80 13 01 00 00 00 00 00 B1 [19:41:00]Write i2c OK [19:41:00]MH_I2C_Read... [19:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:00]Read from MH i2c: E2 [19:41:00]MH_I2C_Read... [19:41:00]Read from MH i2c: E2 0E 00 [19:41:00]MH_I2C_Read... [19:41:00]Read from MH i2c: E2 0E 00 1B 19 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 88 [19:41:00]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:41:00]wFMCommunicate OK [19:41:00]SAM_PROTO_GetShiftState done [19:41:00]FM_GetShiftState done [19:41:00]opened in 1722125364 [19:41:00]opened+sec_in_day 1722211764 [19:41:00]quantity*price = 100050 [19:41:00]sum+1 = 100052 [19:41:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 243 28.07.2024 19:41 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118574 ФПД: 90811145787899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T194102&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118574&fm=90811145787899&tin=02508201610067®Number=0000000000092660&sum=100000 [19:41:01]StoreToDocumentArchive [19:41:01]shift 433 fd 118574 [19:41:01]save to /storage/0433/doc_00118574 [19:41:01]save last doc name /storage/0433/doc_00118574 to /storage/kkm_last_doc_name [19:41:01]save OK [19:41:01]Clear old archive folders... [19:41:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:41:01]tlvbuf is B6F11140 [19:41:01]SAM_PROTO_ClearQueue [19:41:01]wFMCommunicate request_size=4 [19:41:01]MH_SAM_APDU [19:41:01]CAPDU: 80 09 00 00 [19:41:01]Write to MH i2c: E2 08 00 28 19 80 09 00 00 00 00 00 00 B3 [19:41:01]Write i2c OK [19:41:01]MH_I2C_Read... [19:41:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:41:01]Read from MH i2c: E2 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: E2 03 00 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: E2 03 00 28 19 00 90 00 B5 [19:41:01]RAPDU: 90 00 [19:41:01]wFMCommunicate OK [19:41:01]SAM_PROTO_ClearQueue done [19:41:01]KKMCreateOFDPacket [19:41:01]OFDProtocolAddRootSTLVToBuf [19:41:01]FM_MakeSignedData [19:41:01]FM_MakeSignedData [19:41:01]SAM_PROTO_SignData [19:41:01]wFMCommunicate request_size=4 [19:41:01]MH_SAM_APDU [19:41:01]CAPDU: 80 0D 01 02 [19:41:01]Write to MH i2c: E2 08 00 29 19 80 0D 01 02 00 00 00 00 BB [19:41:01]Write i2c OK [19:41:01]MH_I2C_Read... [19:41:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:41:01]Read from MH i2c: E2 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: E2 03 00 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: E2 03 00 29 19 00 90 00 B6 [19:41:01]RAPDU: 90 00 [19:41:01]wFMCommunicate OK [19:41:01]wFMCommunicate request_size=255 [19:41:01]MH_SAM_APDU [19:41:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 CE 9E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2E CF 01 00 35 04 06 00 52 97 9E 16 [19:41:01]Write to MH i2c: E2 02 01 2A 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 CE 9E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2E CF 01 00 35 04 06 00 52 97 9E 16 00 00 03 [19:41:01]Write i2c OK [19:41:01]MH_I2C_Read... [19:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:01]Read from MH i2c: E2 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: E2 03 00 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: E2 03 00 2A 19 00 90 00 B7 [19:41:01]RAPDU: 90 00 [19:41:01]wFMCommunicate OK [19:41:01]wFMCommunicate request_size=7 [19:41:01]MH_SAM_APDU [19:41:01]CAPDU: 80 0D 02 02 02 19 FB [19:41:01]Write to MH i2c: E2 0A 00 2B 19 80 0D 02 02 02 00 19 FB 00 00 D6 [19:41:01]Write i2c OK [19:41:01]MH_I2C_Read... [19:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:01]Read from MH i2c: E2 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: E2 03 00 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: E2 03 00 2B 19 00 90 00 B8 [19:41:01]RAPDU: 90 00 [19:41:01]wFMCommunicate OK [19:41:01]wFMCommunicate request_size=4 [19:41:01]MH_SAM_APDU [19:41:01]CAPDU: 80 0D 03 02 [19:41:01]Write to MH i2c: E2 08 00 2C 19 80 0D 03 02 00 00 00 00 C0 [19:41:01]Write i2c OK [19:41:01]MH_I2C_Read... [19:41:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:41:01]Read from MH i2c: E2 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: E2 0B 00 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: E2 0B 00 2C 19 00 6A 8C E7 65 97 8B 76 E1 90 00 7C [19:41:01]RAPDU: 6A 8C E7 65 97 8B 76 E1 90 00 [19:41:01]wFMCommunicate OK [19:41:01]SAM_PROTO_SignData done [19:41:01]FM_MakeSignedData done [19:41:01]CreateOFDProtocolMessage [19:41:01]wFMCommunicate request_size=4 [19:41:01]MH_SAM_APDU [19:41:01]CAPDU: 80 11 00 00 [19:41:01]Write to MH i2c: E2 08 00 2D 19 80 11 00 00 00 00 00 00 C0 [19:41:01]Write i2c OK [19:41:01]MH_I2C_Read... [19:41:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:01]Read from MH i2c: E2 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: E2 17 00 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: E2 17 00 2D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1B [19:41:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:41:01]wFMCommunicate OK [19:41:01]CreateOFDProtocolMessage done [19:41:01]OFDSenderStorePacket 118574 [19:41:01]StoreOFDPacket docnum=118574 [19:41:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 FD 42 04 01 2F CA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 CE 9E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2E CF 01 00 35 04 06 00 52 97 9E 16 19 FB 6A 8C E7 65 97 8B 76 E1 [19:41:01]CheckFolder [19:41:01]dirname=/storage/ofd_packets [19:41:01]CheckFolder done [19:41:01]ProducePacketName [19:41:01]name=ofd_packets/00118574 [19:41:01]NVStorageSaveData ofd_packets/00118574 [19:41:01]File name is /storage/ofd_packets/00118574 [19:41:01]Write 298 bytes [19:41:01]NVStorageSaveData done [19:41:01]OFDSenderStorePacket done [19:41:01]KKMCreateOFDPacket done [19:41:01]NVStorageSaveData kkm_last_timestamp [19:41:01]File name is /storage/kkm_last_timestamp [19:41:01]Write 4 bytes [19:41:01]NVStorageSaveData done [19:41:01]ExternCall_PrintAddStr [19:41:01]wPrintStart [19:41:01]Write to MH i2c: 01 00 00 2E 19 47 [19:41:01]Write i2c OK [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: 01 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: 01 07 00 [19:41:01]MH_I2C_Read... [19:41:01]Read from MH i2c: 01 07 00 2E 19 00 00 00 00 00 FF 0F 5C [19:41:01]RasterBufferAndPrint [19:41:01]line Счет N : (1)949460 [19:41:01]line ИНН: 02508201610067 [19:41:01]line Контрольно-Кассовый Чек [19:41:01]line ПРОДАЖА [19:41:01]line ТРК (МРК, ГНК) : 11 [19:41:01]line Товар: 2710194800 [19:41:01]line ДТ-К-5 [19:41:01]line 13.130 * 76.20 [19:41:01]line = 1000.51 [19:41:01]line НДС 12% НСП 1% [19:41:01]line > о реализуемом товаре [19:41:01]line ОКРУГЛЕНИЕ: -0.51 [19:41:01]line ИТОГО: 1000.00 [19:41:01]line Внесено: 1000.00 [19:41:01]line СДАЧА: 0.00 [19:41:01]line НСП 1% : 8.85 [19:41:01]line НДС 12% : 106.25 [19:41:01]line Наличными: 1000.00 [19:41:01]line Безнал.: 0.00 [19:41:01]line Место: АЗС № 134 "Партнер Нефть" [19:41:01]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:41:01]line СНО: Общий режим [19:41:01]line Чек 243 28.07.2024 19:41 [19:41:01]line Смена: 433 ФФД: 1.0 [19:41:01]line ЗНМ: 0300000044 [19:41:01]line РНМ: 0000000000092660 [19:41:02]line Версия ККМ: 001 [19:41:02]line ФМ: 0000000000874939 [19:41:02]line ФД: 118574 [19:41:02]line ФПД: 90811145787899 [19:41:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T194102&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118574&fm=90811145787899&tin=02508201610067®Number=0000000000092660&sum=100000 [19:41:02]OFD Sender: Processing packet 118574 [packets to send 86, broken 85] [19:41:02]ProducePacketName [19:41:02]name=ofd_packets/00118574 [19:41:02]OFD Sender: To server: pG, [19:41:02]CommunicateWithHost lk.salyk.kg:30040 [19:41:02]ConnectInit lk.salyk.kg [19:41:02]written 0, free lines is 4095 [19:41:02]Connected sock=10 [19: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 39 33 39 0C 01 00 00 FD 42 04 01 2F CA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 CE 9E A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2E CF 01 00 35 04 06 00 52 97 9E 16 19 FB 6A 8C E7 65 97 8B 76 E1 [19: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 39 33 39 4F 00 00 00 85 F9 47 00 A8 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 39 33 39 10 04 04 00 2E CF 01 00 F4 03 04 00 5D 4C A6 66 B6 04 01 00 00 FF F3 37 10 83 6D 61 55 [19:41:02]CommunicateWithHost err = 0 [19:41:02]CheckOFDResponse [19:41:02]1017 (14) - 77093643461234 [19:41:02]1041 (16) - 0000000000874939 [19:41:02]1040 (4) - 118574 [19:41:02]1012 (4) - 28.07.2024 13:49 [19:41:02]1206 (1) - 0 [19:41:02]OFD Sender: Remove packet 118574 [19:41:02]ProducePacketName [19:41:02]name=ofd_packets/00118574 [19:41:02]NVStorageDeleteData [19:41:02]Write to MH i2c: 01 00 00 58 19 71 [19:41:02]Write i2c OK [19:41:02]MH_I2C_Read... [19:41:02]Read from MH i2c: 01 [19:41:02]MH_I2C_Read... [19:41:02]Read from MH i2c: 01 07 00 [19:41:02]MH_I2C_Read... [19:41:02]Read from MH i2c: 01 07 00 58 19 00 00 00 00 00 D9 0C 5D [19:41:02]RasterBufferAndPrint [19:41:02]line [19:41:02]line [19:41:02]line [19:41:02]line [19:41:02]line [19:41:02]written 0, free lines is 3297 [19:41:02]MH_Cut [19:41:02]Write to MH i2c: D1 01 00 5F 19 01 4A [19:41:02]Write i2c OK [19:41:02]MH_I2C_Read... [19:41:02]Read from MH i2c: D1 [19:41:02]MH_I2C_Read... [19:41:02]Read from MH i2c: D1 01 00 [19:41:02]MH_I2C_Read... [19:41:02]Read from MH i2c: D1 01 00 5F 19 00 49 [19:41:02]Write to MH i2c: 01 00 00 60 19 79 [19:41:02]Write i2c OK [19:41:02]MH_I2C_Read... [19:41:02]OFD Sender: No OFD packet to send [19:41:03]*** Cut start [19:41:03]*** Partial cut [19:41:03]*** CUTSNS_PIN = 1 [19:41:03]*** CUTSNS_PIN = 0 [19:41:03]*** Brake cut motor [19:41:03]Read from MH i2c: 01 [19:41:03]MH_I2C_Read... [19:41:03]*** Stop cut motor [19:41:03]*** Cut end [19:41:03]Read from MH i2c: 01 07 00 [19:41:03]MH_I2C_Read... [19:41:03]Read from MH i2c: 01 07 00 60 19 00 00 00 00 00 FF 0F 8E [19:41:03]process_action close_receipt done [19:41:03]requested_data is exist [19:41:03]produce_requested_data [19:41:03]requested_item fm.sn is exist - process it [19:41:03]wFMCommunicate request_size=4 [19:41:03]MH_SAM_APDU [19:41:03]CAPDU: 80 11 00 00 [19:41:03]Write to MH i2c: E2 08 00 61 19 80 11 00 00 00 00 00 00 F4 [19:41:03]Write i2c OK [19:41:03]MH_I2C_Read... [19:41:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:03]Read from MH i2c: E2 [19:41:03]MH_I2C_Read... [19:41:03]Read from MH i2c: E2 17 00 [19:41:03]MH_I2C_Read... [19:41:03]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 39 33 39 90 00 4F [19:41:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:41:03]wFMCommunicate OK [19:41:03]requested_item fd.num is exist - process it [19:41:03]SAM_PROTO_GetFieldsCounters [19:41:03]wFMCommunicate request_size=4 [19:41:03]MH_SAM_APDU [19:41:03]CAPDU: 80 13 00 00 [19:41:03]Write to MH i2c: E2 08 00 62 19 80 13 00 00 00 00 00 00 F7 [19:41:03]Write i2c OK [19:41:03]MH_I2C_Read... [19:41:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:04]Read from MH i2c: E2 [19:41:04]MH_I2C_Read... [19:41:04]Read from MH i2c: E2 62 00 [19:41:04]MH_I2C_Read... [19:41:04]Read from MH i2c: E2 62 00 62 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2E CF 01 00 0E 04 04 00 B1 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 A7 [19:41:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2E CF 01 00 0E 04 04 00 B1 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 [19:41:04]wFMCommunicate OK [19:41:04]SAM_PROTO_GetFieldsCounters done [19:41:04]requested_item shift.num is exist - process it [19:41:04]requested_item shift.opened is exist - process it [19:41:04]req_shift_opened [19:41:04]FM_GetShiftState [19:41:04]SAM_PROTO_GetShiftState [19:41:04]wFMCommunicate request_size=4 [19:41:04]MH_SAM_APDU [19:41:04]CAPDU: 80 13 01 00 [19:41:04]Write to MH i2c: E2 08 00 63 19 80 13 01 00 00 00 00 00 F9 [19:41:04]Write i2c OK [19:41:04]MH_I2C_Read... [19:41:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:04]Read from MH i2c: E2 [19:41:04]MH_I2C_Read... [19:41:04]Read from MH i2c: E2 0E 00 [19:41:04]MH_I2C_Read... [19:41:04]Read from MH i2c: E2 0E 00 63 19 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 D0 [19:41:04]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:41:04]wFMCommunicate OK [19:41:04]SAM_PROTO_GetShiftState done [19:41:04]FM_GetShiftState done [19:41:04]req_shift_opened done [19:41:04]requested_item shift.open_date is exist - process it [19:41:04]req_shift_open_date [19:41:04]req_shift_open_date done [19:41:04]produce_requested_data done [19:41:04]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118574,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [19:41:04]process_action_free close_receipt [19:41:04]json_value_free [19:41:04]json_value_free done [19:41:04]process_json_proto returns [19:41:04]Send response to host [19:41:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118574,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [19:41:04]free response buf [19:41:04]execute_script done [19:41:04]execute_script returns [19:41:04]free content buf [19:41:04]Sock 9.Close socket [19:41:04]Sock 9.Thread stoped [19:41:07]OFD Sender: No OFD packet to send [19:41:12]OFD Sender: No OFD packet to send [19:41:17]OFD Sender: No OFD packet to send [19:41:22]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42: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:18]accept exits with 7 [19:43:18]New connection [19:43:18]New thread 3067383140 created [19:43:18]Thread 3067239780 joined [19:43:18]Waiting for new connection... [19:43:18] Sock 7.Parse request [19:43:18]Sock 7.Check first char [19:43:18]Sock 7.First char is OK [19:43:18]request: POST /json_proto HTTP/1.0 [19:43:18]Method: POST [19:43:18]URL: /json_proto [19:43:18]Method is POST - this is cgi request [19:43:18]url: /json_proto [19:43:18]query_string will be loaded in cgi processing [19:43:18]execute_cgi json_proto POST (null) [19:43:18]execute_cgi path=json_proto method=POST [19:43:18]POST find Content-Length [19:43:18]Host: 172.17.45.7:8080 [19:43:18]Content-Length: 678 [19:43:18]Content-Type: application/json [19:43:18] [19:43:18]POST finish read [19:43:18]Found Content-Length = 678 [19:43:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.030, "sum" : 680.03, "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" ] } } [19:43:18]execute_script... [19:43: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)949461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.030, "sum" : 680.03, "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" ] } } [19:43:18]POST & json_proto [19:43:18]process_json_proto [19:43:18]json parsed OK: [19:43:18]protocol is kg_v1.0 [19:43:18]action value=close_receipt [19:43:18]process_action close_receipt [19:43:18]cmd_close_receipt [19:43:18]MH_GetDate [19:43:18]Write to MH i2c: F0 00 00 64 19 6C [19:43:18]Write i2c OK [19:43:18]MH_I2C_Read... [19:43:18]Read from MH i2c: F0 [19:43:18]MH_I2C_Read... [19:43:18]Read from MH i2c: F0 09 00 [19:43:18]MH_I2C_Read... [19:43:18]Read from MH i2c: F0 09 00 64 19 00 58 9F A6 66 90 0F 3E 66 BB [19:43:18]GetLastDocTimeStamp 1722195662 [19:43:18]current date 1722195800 [19:43:18]FM_GetShiftState [19:43:18]SAM_PROTO_GetShiftState [19:43:18]wFMCommunicate request_size=4 [19:43:18]MH_SAM_APDU [19:43:18]CAPDU: 80 13 01 00 [19:43:18]Write to MH i2c: E2 08 00 65 19 80 13 01 00 00 00 00 00 FB [19:43:18]Write i2c OK [19:43:18]MH_I2C_Read... [19:43:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:18]Read from MH i2c: E2 [19:43:18]MH_I2C_Read... [19:43:18]Read from MH i2c: E2 0E 00 [19:43:18]MH_I2C_Read... [19:43:18]Read from MH i2c: E2 0E 00 65 19 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 D2 [19:43:18]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:43:18]wFMCommunicate OK [19:43:18]SAM_PROTO_GetShiftState done [19:43:18]FM_GetShiftState done [19:43:18]opened in 1722125364 [19:43:18]opened+sec_in_day 1722211764 [19:43:18]quantity*price = 68003 [19:43:18]sum+1 = 68004 [19:43:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 680.00 Внесено: 680.00 СДАЧА: 0.00 НСП 1% : 6.02 НДС 12% : 72.22 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 244 28.07.2024 19:43 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118575 ФПД: 188939000702747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T194320&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118575&fm=188939000702747&tin=02508201610067®Number=0000000000092660&sum=68000 [19:43:19]StoreToDocumentArchive [19:43:19]shift 433 fd 118575 [19:43:19]save to /storage/0433/doc_00118575 [19:43:19]save last doc name /storage/0433/doc_00118575 to /storage/kkm_last_doc_name [19:43:19]save OK [19:43:19]Clear old archive folders... [19:43:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:43:19]tlvbuf is 01E70470 [19:43:19]SAM_PROTO_ClearQueue [19:43:19]wFMCommunicate request_size=4 [19:43:19]MH_SAM_APDU [19:43:19]CAPDU: 80 09 00 00 [19:43:19]Write to MH i2c: E2 08 00 72 19 80 09 00 00 00 00 00 00 FD [19:43:19]Write i2c OK [19:43:19]MH_I2C_Read... [19:43:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:43:19]Read from MH i2c: E2 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 03 00 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 03 00 72 19 00 90 00 FF [19:43:19]RAPDU: 90 00 [19:43:19]wFMCommunicate OK [19:43:19]SAM_PROTO_ClearQueue done [19:43:19]KKMCreateOFDPacket [19:43:19]OFDProtocolAddRootSTLVToBuf [19:43:19]FM_MakeSignedData [19:43:19]FM_MakeSignedData [19:43:19]SAM_PROTO_SignData [19:43:19]wFMCommunicate request_size=4 [19:43:19]MH_SAM_APDU [19:43:19]CAPDU: 80 0D 01 02 [19:43:19]Write to MH i2c: E2 08 00 73 19 80 0D 01 02 00 00 00 00 05 [19:43:19]Write i2c OK [19:43:19]MH_I2C_Read... [19:43:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:43:19]Read from MH i2c: E2 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 03 00 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 03 00 73 19 00 90 00 00 [19:43:19]RAPDU: 90 00 [19:43:19]wFMCommunicate OK [19:43:19]wFMCommunicate request_size=255 [19:43:19]MH_SAM_APDU [19:43: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 34 FF 03 08 00 03 2E 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A3 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 36 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 F4 00 00 00 F4 03 04 00 58 9F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2F CF 01 00 35 04 06 00 AB [19:43:19]Write to MH i2c: E2 02 01 74 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 34 FF 03 08 00 03 2E 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A3 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 36 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 F4 00 00 00 F4 03 04 00 58 9F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2F CF 01 00 35 04 06 00 AB 00 00 01 [19:43:19]Write i2c OK [19:43:19]MH_I2C_Read... [19:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:19]Read from MH i2c: E2 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 03 00 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 03 00 74 19 00 90 00 01 [19:43:19]RAPDU: 90 00 [19:43:19]wFMCommunicate OK [19:43:19]wFMCommunicate request_size=10 [19:43:19]MH_SAM_APDU [19:43:19]CAPDU: 80 0D 02 02 05 D6 CA 05 67 1B [19:43:19]Write to MH i2c: E2 0D 00 75 19 80 0D 02 02 05 00 D6 CA 05 67 1B 00 00 39 [19:43:19]Write i2c OK [19:43:19]MH_I2C_Read... [19:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:19]Read from MH i2c: E2 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 03 00 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 03 00 75 19 00 90 00 02 [19:43:19]RAPDU: 90 00 [19:43:19]wFMCommunicate OK [19:43:19]wFMCommunicate request_size=4 [19:43:19]MH_SAM_APDU [19:43:19]CAPDU: 80 0D 03 02 [19:43:19]Write to MH i2c: E2 08 00 76 19 80 0D 03 02 00 00 00 00 0A [19:43:19]Write i2c OK [19:43:19]MH_I2C_Read... [19:43:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:43:19]Read from MH i2c: E2 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 0B 00 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 0B 00 76 19 00 6C E3 A7 2F 47 C7 DC 76 90 00 90 [19:43:19]RAPDU: 6C E3 A7 2F 47 C7 DC 76 90 00 [19:43:19]wFMCommunicate OK [19:43:19]SAM_PROTO_SignData done [19:43:19]FM_MakeSignedData done [19:43:19]CreateOFDProtocolMessage [19:43:19]wFMCommunicate request_size=4 [19:43:19]MH_SAM_APDU [19:43:19]CAPDU: 80 11 00 00 [19:43:19]Write to MH i2c: E2 08 00 77 19 80 11 00 00 00 00 00 00 0A [19:43:19]Write i2c OK [19:43:19]MH_I2C_Read... [19:43:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:19]Read from MH i2c: E2 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 17 00 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 17 00 77 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 65 [19:43:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:43:19]wFMCommunicate OK [19:43:19]CreateOFDProtocolMessage done [19:43:19]OFDSenderStorePacket 118575 [19:43:19]StoreOFDPacket docnum=118575 [19:43:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5B B7 07 01 F8 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 2E 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A3 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 36 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 F4 00 00 00 F4 03 04 00 58 9F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2F CF 01 00 35 04 06 00 AB D6 CA 05 67 1B 6C E3 A7 2F 47 C7 DC 76 [19:43:19]CheckFolder [19:43:19]dirname=/storage/ofd_packets [19:43:19]CheckFolder done [19:43:19]ProducePacketName [19:43:19]name=ofd_packets/00118575 [19:43:19]NVStorageSaveData ofd_packets/00118575 [19:43:19]File name is /storage/ofd_packets/00118575 [19:43:19]Write 301 bytes [19:43:19]NVStorageSaveData done [19:43:19]OFDSenderStorePacket done [19:43:19]KKMCreateOFDPacket done [19:43:19]NVStorageSaveData kkm_last_timestamp [19:43:19]File name is /storage/kkm_last_timestamp [19:43:19]Write 4 bytes [19:43:19]NVStorageSaveData done [19:43:19]ExternCall_PrintAddStr [19:43:19]wPrintStart [19:43:19]Write to MH i2c: 01 00 00 78 19 91 [19:43:19]Write i2c OK [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: 01 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: 01 07 00 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: 01 07 00 78 19 00 00 00 00 00 FF 0F A6 [19:43:19]RasterBufferAndPrint [19:43:19]line Счет N : (1)949461 [19:43:19]line ИНН: 02508201610067 [19:43:19]line Контрольно-Кассовый Чек [19:43:19]line ПРОДАЖА [19:43:19]line ТРК (МРК, ГНК) : 41 [19:43:19]line Товар: 2710124130 [19:43:19]line Аи-92-К-4 [19:43:19]line 10.030 * 67.80 [19:43:19]line = 680.03 [19:43:19]line НДС 12% НСП 1% [19:43:19]line > о реализуемом товаре [19:43:19]line ОКРУГЛЕНИЕ: -0.03 [19:43:19]line ИТОГО: 680.00 [19:43:19]line Внесено: 680.00 [19:43:19]line СДАЧА: 0.00 [19:43:19]line НСП 1% : 6.02 [19:43:19]line НДС 12% : 72.22 [19:43:19]line Наличными: 680.00 [19:43:19]line Безнал.: 0.00 [19:43:19]line Место: АЗС № 134 "Партнер Нефть" [19:43:19]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:43:19]line СНО: Общий режим [19:43:19]line Чек 244 28.07.2024 19:43 [19:43:19]line Смена: 433 ФФД: 1.0 [19:43:19]line ЗНМ: 0300000044 [19:43:19]line РНМ: 0000000000092660 [19:43:19]line Версия ККМ: 001 [19:43:19]line ФМ: 0000000000874939 [19:43:19]line ФД: 118575 [19:43:19]line ФПД: 188939000702747 [19:43:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T194320&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118575&fm=188939000702747&tin=02508201610067®Number=0000000000092660&sum=68000 [19:43:20]written 0, free lines is 4095 [19:43:20]OFD Sender: Processing packet 118575 [packets to send 86, broken 85] [19:43:20]ProducePacketName [19:43:20]name=ofd_packets/00118575 [19:43:20]OFD Sender: To server: pG, [19:43:20]CommunicateWithHost lk.salyk.kg:30040 [19:43:20]ConnectInit lk.salyk.kg [19:43:20]Connected sock=9 [19:43:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5B B7 07 01 F8 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 2E 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A3 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 36 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 F4 00 00 00 F4 03 04 00 58 9F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2F CF 01 00 35 04 06 00 AB D6 CA 05 67 1B 6C E3 A7 2F 47 C7 DC 76 [19:43:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5D B2 47 00 4C EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2F CF 01 00 F4 03 04 00 E7 4C A6 66 B6 04 01 00 00 6B 5F C7 64 FD 7E F6 5A [19:43:20]CommunicateWithHost err = 0 [19:43:20]CheckOFDResponse [19:43:20]1017 (14) - 77093643461234 [19:43:20]1041 (16) - 0000000000874939 [19:43:20]1040 (4) - 118575 [19:43:20]1012 (4) - 28.07.2024 13:51 [19:43:20]1206 (1) - 0 [19:43:20]OFD Sender: Remove packet 118575 [19:43:20]ProducePacketName [19:43:20]name=ofd_packets/00118575 [19:43:20]NVStorageDeleteData [19:43:20]Write to MH i2c: 01 00 00 A2 19 BB [19:43:20]Write i2c OK [19:43:20]MH_I2C_Read... [19:43:20]Read from MH i2c: 01 [19:43:20]MH_I2C_Read... [19:43:20]Read from MH i2c: 01 07 00 [19:43:20]MH_I2C_Read... [19:43:20]Read from MH i2c: 01 07 00 A2 19 00 00 00 00 00 D9 0C A7 [19:43:20]RasterBufferAndPrint [19:43:20]line [19:43:20]line [19:43:20]line [19:43:20]line [19:43:20]line [19:43:20]written 0, free lines is 3297 [19:43:20]MH_Cut [19:43:20]Write to MH i2c: D1 01 00 A9 19 01 94 [19:43:20]Write i2c OK [19:43:20]MH_I2C_Read... [19:43:20]Read from MH i2c: D1 [19:43:20]MH_I2C_Read... [19:43:20]Read from MH i2c: D1 01 00 [19:43:20]MH_I2C_Read... [19:43:20]Read from MH i2c: D1 01 00 A9 19 00 93 [19:43:20]Write to MH i2c: 01 00 00 AA 19 C3 [19:43:20]Write i2c OK [19:43:20]MH_I2C_Read... [19:43:20]OFD Sender: No OFD packet to send [19:43:21]*** Cut start [19:43:21]*** Partial cut [19:43:21]*** CUTSNS_PIN = 1 [19:43:21]*** CUTSNS_PIN = 0 [19:43:21]*** Brake cut motor [19:43:21]Read from MH i2c: 01 [19:43:21]MH_I2C_Read... [19:43:21]*** Stop cut motor [19:43:21]*** Cut end [19:43:21]Read from MH i2c: 01 07 00 [19:43:21]MH_I2C_Read... [19:43:21]Read from MH i2c: 01 07 00 AA 19 00 00 00 00 00 FF 0F D8 [19:43:21]process_action close_receipt done [19:43:21]requested_data is exist [19:43:21]produce_requested_data [19:43:21]requested_item fm.sn is exist - process it [19:43:21]wFMCommunicate request_size=4 [19:43:21]MH_SAM_APDU [19:43:21]CAPDU: 80 11 00 00 [19:43:21]Write to MH i2c: E2 08 00 AB 19 80 11 00 00 00 00 00 00 3E [19:43:21]Write i2c OK [19:43:21]MH_I2C_Read... [19:43:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:21]Read from MH i2c: E2 [19:43:21]MH_I2C_Read... [19:43:21]Read from MH i2c: E2 17 00 [19:43:21]MH_I2C_Read... [19:43:21]Read from MH i2c: E2 17 00 AB 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 99 [19:43:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:43:21]wFMCommunicate OK [19:43:21]requested_item fd.num is exist - process it [19:43:21]SAM_PROTO_GetFieldsCounters [19:43:21]wFMCommunicate request_size=4 [19:43:21]MH_SAM_APDU [19:43:21]CAPDU: 80 13 00 00 [19:43:21]Write to MH i2c: E2 08 00 AC 19 80 13 00 00 00 00 00 00 41 [19:43:21]Write i2c OK [19:43:21]MH_I2C_Read... [19:43:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:43:22]Read from MH i2c: E2 [19:43:22]MH_I2C_Read... [19:43:22]Read from MH i2c: E2 62 00 [19:43:22]MH_I2C_Read... [19:43:22]Read from MH i2c: E2 62 00 AC 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2F CF 01 00 0E 04 04 00 B1 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 F5 [19:43:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2F CF 01 00 0E 04 04 00 B1 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 [19:43:22]wFMCommunicate OK [19:43:22]SAM_PROTO_GetFieldsCounters done [19:43:22]requested_item shift.num is exist - process it [19:43:22]requested_item shift.opened is exist - process it [19:43:22]req_shift_opened [19:43:22]FM_GetShiftState [19:43:22]SAM_PROTO_GetShiftState [19:43:22]wFMCommunicate request_size=4 [19:43:22]MH_SAM_APDU [19:43:22]CAPDU: 80 13 01 00 [19:43:22]Write to MH i2c: E2 08 00 AD 19 80 13 01 00 00 00 00 00 43 [19:43:22]Write i2c OK [19:43:22]MH_I2C_Read... [19:43:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:22]Read from MH i2c: E2 [19:43:22]MH_I2C_Read... [19:43:22]Read from MH i2c: E2 0E 00 [19:43:22]MH_I2C_Read... [19:43:22]Read from MH i2c: E2 0E 00 AD 19 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 1A [19:43:22]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:43:22]wFMCommunicate OK [19:43:22]SAM_PROTO_GetShiftState done [19:43:22]FM_GetShiftState done [19:43:22]req_shift_opened done [19:43:22]requested_item shift.open_date is exist - process it [19:43:22]req_shift_open_date [19:43:22]req_shift_open_date done [19:43:22]produce_requested_data done [19:43:22]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118575,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [19:43:22]process_action_free close_receipt [19:43:22]json_value_free [19:43:22]json_value_free done [19:43:22]process_json_proto returns [19:43:22]Send response to host [19:43:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118575,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [19:43:22]free response buf [19:43:22]execute_script done [19:43:22]execute_script returns [19:43:22]free content buf [19:43:22]Sock 7.Close socket [19:43:22]Sock 7.Thread stoped [19:43:25]OFD Sender: No OFD packet to send [19:43:27]accept exits with 10 [19:43:27]New connection [19:43:27]New thread 3067239780 created [19:43:27]Thread 3067383140 joined [19:43:27]Waiting for new connection... [19:43:27] Sock 10.Parse request [19:43:27]Sock 10.Check first char [19:43:27]Sock 10.First char is OK [19:43:27]request: POST /json_proto HTTP/1.0 [19:43:27]Method: POST [19:43:27]URL: /json_proto [19:43:27]Method is POST - this is cgi request [19:43:27]url: /json_proto [19:43:27]query_string will be loaded in cgi processing [19:43:27]execute_cgi json_proto POST (null) [19:43:27]execute_cgi path=json_proto method=POST [19:43:27]POST find Content-Length [19:43:27]Host: 172.17.45.7:8080 [19:43:27]Content-Length: 682 [19:43:27]Content-Type: application/json [19:43:27] [19:43:27]POST finish read [19:43:27]Found Content-Length = 682 [19:43:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:27]execute_script... [19:43: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)949462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:27]POST & json_proto [19:43:27]process_json_proto [19:43:27]json parsed OK: [19:43:27]protocol is kg_v1.0 [19:43:27]action value=close_receipt [19:43:27]process_action close_receipt [19:43:27]cmd_close_receipt [19:43:27]MH_GetDate [19:43:27]Write to MH i2c: F0 00 00 AE 19 B6 [19:43:27]Write i2c OK [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: F0 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: F0 09 00 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: F0 09 00 AE 19 00 61 9F A6 66 90 0F 3E 66 0E [19:43:27]GetLastDocTimeStamp 1722195800 [19:43:27]current date 1722195809 [19:43:27]FM_GetShiftState [19:43:27]SAM_PROTO_GetShiftState [19:43:27]wFMCommunicate request_size=4 [19:43:27]MH_SAM_APDU [19:43:27]CAPDU: 80 13 01 00 [19:43:27]Write to MH i2c: E2 08 00 AF 19 80 13 01 00 00 00 00 00 45 [19:43:27]Write i2c OK [19:43:27]MH_I2C_Read... [19:43:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:28]Read from MH i2c: E2 [19:43:28]MH_I2C_Read... [19:43:28]Read from MH i2c: E2 0E 00 [19:43:28]MH_I2C_Read... [19:43:28]Read from MH i2c: E2 0E 00 AF 19 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 1C [19:43:28]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:43:28]wFMCommunicate OK [19:43:28]SAM_PROTO_GetShiftState done [19:43:28]FM_GetShiftState done [19:43:28]opened in 1722125364 [19:43:28]opened+sec_in_day 1722211764 [19:43:28]quantity*price = 100005 [19:43:28]sum+1 = 100006 [19:43:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 245 28.07.2024 19:43 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118576 ФПД: 51053670460620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T194329&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118576&fm=51053670460620&tin=02508201610067®Number=0000000000092660&sum=100000 [19:43:29]StoreToDocumentArchive [19:43:29]shift 433 fd 118576 [19:43:29]save to /storage/0433/doc_00118576 [19:43:29]save last doc name /storage/0433/doc_00118576 to /storage/kkm_last_doc_name [19:43:29]save OK [19:43:29]Clear old archive folders... [19:43:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:43:29]tlvbuf is 01E70820 [19:43:29]SAM_PROTO_ClearQueue [19:43:29]wFMCommunicate request_size=4 [19:43:29]MH_SAM_APDU [19:43:29]CAPDU: 80 09 00 00 [19:43:29]Write to MH i2c: E2 08 00 BC 19 80 09 00 00 00 00 00 00 47 [19:43:29]Write i2c OK [19:43:29]MH_I2C_Read... [19:43:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:43:29]Read from MH i2c: E2 [19:43:29]MH_I2C_Read... [19:43:29]Read from MH i2c: E2 03 00 [19:43:29]MH_I2C_Read... [19:43:29]Read from MH i2c: E2 03 00 BC 19 00 90 00 49 [19:43:29]RAPDU: 90 00 [19:43:29]wFMCommunicate OK [19:43:29]SAM_PROTO_ClearQueue done [19:43:29]KKMCreateOFDPacket [19:43:29]OFDProtocolAddRootSTLVToBuf [19:43:29]FM_MakeSignedData [19:43:29]FM_MakeSignedData [19:43:29]SAM_PROTO_SignData [19:43:29]wFMCommunicate request_size=4 [19:43:29]MH_SAM_APDU [19:43:29]CAPDU: 80 0D 01 02 [19:43:29]Write to MH i2c: E2 08 00 BD 19 80 0D 01 02 00 00 00 00 4F [19:43:29]Write i2c OK [19:43:29]MH_I2C_Read... [19:43:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:43:29]Read from MH i2c: E2 [19:43:29]MH_I2C_Read... [19:43:29]Read from MH i2c: E2 03 00 [19:43:29]MH_I2C_Read... [19:43:29]Read from MH i2c: E2 03 00 BD 19 00 90 00 4A [19:43:29]RAPDU: 90 00 [19:43:29]wFMCommunicate OK [19:43:29]wFMCommunicate request_size=255 [19:43:29]MH_SAM_APDU [19:43: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 61 9F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 30 CF 01 00 35 04 06 00 2E [19:43:29]Write to MH i2c: E2 02 01 BE 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 61 9F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 30 CF 01 00 35 04 06 00 2E 00 00 43 [19:43:29]Write i2c OK [19:43:29]MH_I2C_Read... [19:43:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:29]Read from MH i2c: E2 [19:43:29]MH_I2C_Read... [19:43:29]Read from MH i2c: E2 03 00 [19:43:29]MH_I2C_Read... [19:43:29]Read from MH i2c: E2 03 00 BE 19 00 90 00 4B [19:43:29]RAPDU: 90 00 [19:43:29]wFMCommunicate OK [19:43:29]wFMCommunicate request_size=10 [19:43:29]MH_SAM_APDU [19:43:29]CAPDU: 80 0D 02 02 05 6E DB E4 6C CC [19:43:29]Write to MH i2c: E2 0D 00 BF 19 80 0D 02 02 05 00 6E DB E4 6C CC 00 00 C1 [19:43:29]Write i2c OK [19:43:29]MH_I2C_Read... [19:43:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:29]Read from MH i2c: E2 [19:43:29]MH_I2C_Read... [19:43:29]Read from MH i2c: E2 03 00 [19:43:29]MH_I2C_Read... [19:43:29]Read from MH i2c: E2 03 00 BF 19 00 90 00 4C [19:43:29]RAPDU: 90 00 [19:43:29]wFMCommunicate OK [19:43:29]wFMCommunicate request_size=4 [19:43:29]MH_SAM_APDU [19:43:29]CAPDU: 80 0D 03 02 [19:43:29]Write to MH i2c: E2 08 00 C0 19 80 0D 03 02 00 00 00 00 54 [19:43:29]Write i2c OK [19:43:29]MH_I2C_Read... [19:43:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:43:29]Read from MH i2c: E2 [19:43:29]MH_I2C_Read... [19:43:29]Read from MH i2c: E2 0B 00 [19:43:29]MH_I2C_Read... [19:43:29]Read from MH i2c: E2 0B 00 C0 19 00 B0 04 DE F5 C0 42 D1 0E 90 00 BD [19:43:29]RAPDU: B0 04 DE F5 C0 42 D1 0E 90 00 [19:43:29]wFMCommunicate OK [19:43:29]SAM_PROTO_SignData done [19:43:29]FM_MakeSignedData done [19:43:29]CreateOFDProtocolMessage [19:43:29]wFMCommunicate request_size=4 [19:43:29]MH_SAM_APDU [19:43:29]CAPDU: 80 11 00 00 [19:43:29]Write to MH i2c: E2 08 00 C1 19 80 11 00 00 00 00 00 00 54 [19:43:29]Write i2c OK [19:43:29]MH_I2C_Read... [19:43:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:29]Read from MH i2c: E2 [19:43:29]MH_I2C_Read... [19:43:29]Read from MH i2c: E2 17 00 [19:43:29]MH_I2C_Read... [19:43:29]Read from MH i2c: E2 17 00 C1 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AF [19:43:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:43:29]wFMCommunicate OK [19:43:29]CreateOFDProtocolMessage done [19:43:29]OFDSenderStorePacket 118576 [19:43:29]StoreOFDPacket docnum=118576 [19:43:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E1 E3 07 01 AF A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 61 9F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 30 CF 01 00 35 04 06 00 2E 6E DB E4 6C CC B0 04 DE F5 C0 42 D1 0E [19:43:29]CheckFolder [19:43:29]dirname=/storage/ofd_packets [19:43:29]CheckFolder done [19:43:29]ProducePacketName [19:43:29]name=ofd_packets/00118576 [19:43:29]NVStorageSaveData ofd_packets/00118576 [19:43:29]File name is /storage/ofd_packets/00118576 [19:43:29]Write 301 bytes [19:43:29]NVStorageSaveData done [19:43:29]OFDSenderStorePacket done [19:43:29]KKMCreateOFDPacket done [19:43:29]NVStorageSaveData kkm_last_timestamp [19:43:29]File name is /storage/kkm_last_timestamp [19:43:29]Write 4 bytes [19:43:29]NVStorageSaveData done [19:43:29]ExternCall_PrintAddStr [19:43:29]wPrintStart [19:43:29]Write to MH i2c: 01 00 00 C2 19 DB [19:43:29]Write i2c OK [19:43:29]MH_I2C_Read... [19:43:29]Read from MH i2c: 01 [19:43:29]MH_I2C_Read... [19:43:29]Read from MH i2c: 01 07 00 [19:43:29]MH_I2C_Read... [19:43:29]Read from MH i2c: 01 07 00 C2 19 00 00 00 00 00 FF 0F F0 [19:43:29]RasterBufferAndPrint [19:43:29]line Счет N : (1)949462 [19:43:29]line ИНН: 02508201610067 [19:43:29]line Контрольно-Кассовый Чек [19:43:29]line ПРОДАЖА [19:43:29]line ТРК (МРК, ГНК) : 61 [19:43:29]line Товар: 2710124130 [19:43:29]line Аи-92-К-4 [19:43:29]line 14.750 * 67.80 [19:43:29]line = 1000.05 [19:43:29]line НДС 12% НСП 1% [19:43:29]line > о реализуемом товаре [19:43:29]line ОКРУГЛЕНИЕ: -0.05 [19:43:29]line ИТОГО: 1000.00 [19:43:29]line Внесено: 1000.00 [19:43:29]line СДАЧА: 0.00 [19:43:29]line НСП 1% : 8.85 [19:43:29]line НДС 12% : 106.20 [19:43:29]line Наличными: 1000.00 [19:43:29]line Безнал.: 0.00 [19:43:29]line Место: АЗС № 134 "Партнер Нефть" [19:43:29]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:43:29]line СНО: Общий режим [19:43:29]line Чек 245 28.07.2024 19:43 [19:43:29]line Смена: 433 ФФД: 1.0 [19:43:29]line ЗНМ: 0300000044 [19:43:29]line РНМ: 0000000000092660 [19:43:29]line Версия ККМ: 001 [19:43:29]line ФМ: 0000000000874939 [19:43:29]line ФД: 118576 [19:43:29]line ФПД: 51053670460620 [19:43:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T194329&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118576&fm=51053670460620&tin=02508201610067®Number=0000000000092660&sum=100000 [19:43:29]written 0, free lines is 4095 [19:43:29]OFD Sender: Processing packet 118576 [packets to send 86, broken 85] [19:43:29]ProducePacketName [19:43:29]name=ofd_packets/00118576 [19:43:29]OFD Sender: To server: pG, [19:43:29]CommunicateWithHost lk.salyk.kg:30040 [19:43:29]ConnectInit lk.salyk.kg [19:43:29]Connected sock=9 [19:43:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E1 E3 07 01 AF A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 61 9F A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 30 CF 01 00 35 04 06 00 2E 6E DB E4 6C CC B0 04 DE F5 C0 42 D1 0E [19: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 39 33 39 4F 00 00 00 92 0A 47 00 7F 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 39 33 39 10 04 04 00 30 CF 01 00 F4 03 04 00 F1 4C A6 66 B6 04 01 00 00 76 CD 06 4D 64 7F 4F A4 [19:43:30]CommunicateWithHost err = 0 [19:43:30]CheckOFDResponse [19:43:30]1017 (14) - 77093643461234 [19:43:30]1041 (16) - 0000000000874939 [19:43:30]1040 (4) - 118576 [19:43:30]1012 (4) - 28.07.2024 13:51 [19:43:30]1206 (1) - 0 [19:43:30]OFD Sender: Remove packet 118576 [19:43:30]ProducePacketName [19:43:30]name=ofd_packets/00118576 [19:43:30]NVStorageDeleteData [19:43:30]Write to MH i2c: 01 00 00 EC 19 05 [19:43:30]Write i2c OK [19:43:30]MH_I2C_Read... [19:43:30]Read from MH i2c: 01 [19:43:30]MH_I2C_Read... [19:43:30]Read from MH i2c: 01 07 00 [19:43:30]MH_I2C_Read... [19:43:30]Read from MH i2c: 01 07 00 EC 19 00 00 00 00 00 DC 0C F4 [19:43:30]RasterBufferAndPrint [19:43:30]line [19:43:30]line [19:43:30]line [19:43:30]line [19:43:30]line [19:43:30]written 0, free lines is 3301 [19:43:30]MH_Cut [19:43:30]Write to MH i2c: D1 01 00 F3 19 01 DE [19:43:30]Write i2c OK [19:43:30]MH_I2C_Read... [19:43:30]Read from MH i2c: D1 [19:43:30]MH_I2C_Read... [19:43:30]Read from MH i2c: D1 01 00 [19:43:30]MH_I2C_Read... [19:43:30]Read from MH i2c: D1 01 00 F3 19 00 DD [19:43:30]Write to MH i2c: 01 00 00 F4 19 0D [19:43:30]Write i2c OK [19:43:30]MH_I2C_Read... [19:43:30]OFD Sender: No OFD packet to send [19:43:30]*** Cut start [19:43:30]*** Partial cut [19:43:30]*** CUTSNS_PIN = 1 [19:43:30]*** CUTSNS_PIN = 0 [19:43:31]*** Brake cut motor [19:43:31]Read from MH i2c: 01 [19:43:31]MH_I2C_Read... [19:43:31]*** Stop cut motor [19:43:31]*** Cut end [19:43:31]Read from MH i2c: 01 07 00 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: 01 07 00 F4 19 00 00 00 00 00 FF 0F 22 [19:43:31]process_action close_receipt done [19:43:31]requested_data is exist [19:43:31]produce_requested_data [19:43:31]requested_item fm.sn is exist - process it [19:43:31]wFMCommunicate request_size=4 [19:43:31]MH_SAM_APDU [19:43:31]CAPDU: 80 11 00 00 [19:43:31]Write to MH i2c: E2 08 00 F5 19 80 11 00 00 00 00 00 00 88 [19:43:31]Write i2c OK [19:43:31]MH_I2C_Read... [19:43:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:31]Read from MH i2c: E2 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 17 00 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 17 00 F5 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E3 [19:43:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:43:31]wFMCommunicate OK [19:43:31]requested_item fd.num is exist - process it [19:43:31]SAM_PROTO_GetFieldsCounters [19:43:31]wFMCommunicate request_size=4 [19:43:31]MH_SAM_APDU [19:43:31]CAPDU: 80 13 00 00 [19:43:31]Write to MH i2c: E2 08 00 F6 19 80 13 00 00 00 00 00 00 8B [19:43:31]Write i2c OK [19:43:31]MH_I2C_Read... [19:43:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:43:31]Read from MH i2c: E2 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 62 00 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 62 00 F6 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 30 CF 01 00 0E 04 04 00 B1 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 43 [19:43:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 30 CF 01 00 0E 04 04 00 B1 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 [19:43:31]wFMCommunicate OK [19:43:31]SAM_PROTO_GetFieldsCounters done [19:43:31]requested_item shift.num is exist - process it [19:43:31]requested_item shift.opened is exist - process it [19:43:31]req_shift_opened [19:43:31]FM_GetShiftState [19:43:31]SAM_PROTO_GetShiftState [19:43:31]wFMCommunicate request_size=4 [19:43:31]MH_SAM_APDU [19:43:31]CAPDU: 80 13 01 00 [19:43:31]Write to MH i2c: E2 08 00 F7 19 80 13 01 00 00 00 00 00 8D [19:43:31]Write i2c OK [19:43:31]MH_I2C_Read... [19:43:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:31]Read from MH i2c: E2 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 0E 00 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 0E 00 F7 19 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 64 [19:43:31]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:43:31]wFMCommunicate OK [19:43:31]SAM_PROTO_GetShiftState done [19:43:31]FM_GetShiftState done [19:43:31]req_shift_opened done [19:43:31]requested_item shift.open_date is exist - process it [19:43:31]req_shift_open_date [19:43:31]req_shift_open_date done [19:43:31]produce_requested_data done [19:43:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118576,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [19:43:31]process_action_free close_receipt [19:43:31]json_value_free [19:43:31]json_value_free done [19:43:31]process_json_proto returns [19:43:31]Send response to host [19:43:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118576,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [19:43:31]free response buf [19:43:31]execute_script done [19:43:31]execute_script returns [19:43:31]free content buf [19:43:31]Sock 10.Close socket [19:43:31]Sock 10.Thread stoped [19:43:35]OFD Sender: No OFD packet to send [19:43:40]OFD Sender: No OFD packet to send [19:43:45]OFD Sender: No OFD packet to send [19:43:50]OFD Sender: No OFD packet to send [19:43:55]OFD Sender: No OFD packet to send [19:44:00]OFD Sender: No OFD packet to send [19:44:05]OFD Sender: No OFD packet to send [19:44:10]OFD Sender: No OFD packet to send [19:44:15]OFD Sender: No OFD packet to send [19:44:20]OFD Sender: No OFD packet to send [19:44:25]OFD Sender: No OFD packet to send [19:44:30]OFD Sender: No OFD packet to send [19:44:35]OFD Sender: No OFD packet to send [19:44:40]OFD Sender: No OFD packet to send [19:44:45]OFD Sender: No OFD packet to send [19:44:50]OFD Sender: No OFD packet to send [19:44:55]OFD Sender: No OFD packet to send [19:45:00]OFD Sender: No OFD packet to send [19:45:05]OFD Sender: No OFD packet to send [19:45:10]OFD Sender: No OFD packet to send [19:45:15]OFD Sender: No OFD packet to send [19:45:20]OFD Sender: No OFD packet to send [19:45:25]OFD Sender: No OFD packet to send [19:45:30]OFD Sender: No OFD packet to send [19:45:35]OFD Sender: No OFD packet to send [19:45:40]OFD Sender: No OFD packet to send [19:45:45]OFD Sender: No OFD packet to send [19:45:50]OFD Sender: No OFD packet to send [19:45:55]OFD Sender: No OFD packet to send [19:46:00]OFD Sender: No OFD packet to send [19:46:05]OFD Sender: No OFD packet to send [19:46:10]OFD Sender: No OFD packet to send [19:46:15]OFD Sender: No OFD packet to send [19:46:20]OFD Sender: No OFD packet to send [19:46:25]OFD Sender: No OFD packet to send [19:46:30]OFD Sender: No OFD packet to send [19:46:35]OFD Sender: No OFD packet to send [19:46:40]OFD Sender: No OFD packet to send [19:46:45]OFD Sender: No OFD packet to send [19:46:50]OFD Sender: No OFD packet to send [19:46:55]OFD Sender: No OFD packet to send [19:47:00]OFD Sender: No OFD packet to send [19:47:05]OFD Sender: No OFD packet to send [19:47:10]OFD Sender: No OFD packet to send [19:47:15]OFD Sender: No OFD packet to send [19:47:20]OFD Sender: No OFD packet to send [19:47:25]OFD Sender: No OFD packet to send [19:47:30]OFD Sender: No OFD packet to send [19:47:35]OFD Sender: No OFD packet to send [19:47:40]OFD Sender: No OFD packet to send [19:47:45]OFD Sender: No OFD packet to send [19:47:50]OFD Sender: No OFD packet to send [19:47:55]OFD Sender: No OFD packet to send [19:48:00]OFD Sender: No OFD packet to send [19:48:05]OFD Sender: No OFD packet to send [19:48:10]OFD Sender: No OFD packet to send [19:48:15]OFD Sender: No OFD packet to send [19:48:20]OFD Sender: No OFD packet to send [19:48:25]OFD Sender: No OFD packet to send [19:48:30]OFD Sender: No OFD packet to send [19:48:35]OFD Sender: No OFD packet to send [19:48:40]OFD Sender: No OFD packet to send [19:48:45]OFD Sender: No OFD packet to send [19:48:50]OFD Sender: No OFD packet to send [19:48:55]OFD Sender: No OFD packet to send [19:49:00]OFD Sender: No OFD packet to send [19:49:05]OFD Sender: No OFD packet to send [19:49:11]OFD Sender: No OFD packet to send [19:49:16]OFD Sender: No OFD packet to send [19:49:21]OFD Sender: No OFD packet to send [19:49:26]OFD Sender: No OFD packet to send [19:49:31]OFD Sender: No OFD packet to send [19:49:36]OFD Sender: No OFD packet to send [19:49:41]OFD Sender: No OFD packet to send [19:49:46]OFD Sender: No OFD packet to send [19:49:51]OFD Sender: No OFD packet to send [19:49:56]OFD Sender: No OFD packet to send [19:50:01]OFD Sender: No OFD packet to send [19:50:06]OFD Sender: No OFD packet to send [19:50:11]OFD Sender: No OFD packet to send [19:50:16]OFD Sender: No OFD packet to send [19:50:21]OFD Sender: No OFD packet to send [19:50:26]OFD Sender: No OFD packet to send [19:50:31]OFD Sender: No OFD packet to send [19:50:36]OFD Sender: No OFD packet to send [19:50:41]OFD Sender: No OFD packet to send [19:50:46]OFD Sender: No OFD packet to send [19:50:51]OFD Sender: No OFD packet to send [19:50:56]OFD Sender: No OFD packet to send [19:51:01]OFD Sender: No OFD packet to send [19:51:06]OFD Sender: No OFD packet to send [19:51:11]OFD Sender: No OFD packet to send [19:51:16]OFD Sender: No OFD packet to send [19:51:21]OFD Sender: No OFD packet to send [19:51:26]OFD Sender: No OFD packet to send [19:51:31]OFD Sender: No OFD packet to send [19:51:36]OFD Sender: No OFD packet to send [19:51:41]OFD Sender: No OFD packet to send [19:51:46]OFD Sender: No OFD packet to send [19:51:51]OFD Sender: No OFD packet to send [19:51:56]OFD Sender: No OFD packet to send [19:52:01]OFD Sender: No OFD packet to send [19:52:06]accept exits with 7 [19:52:06]New connection [19:52:06]New thread 3067383140 created [19:52:06]Thread 3067239780 joined [19:52:06]Waiting for new connection... [19:52:06]OFD Sender: No OFD packet to send [19:52:06] Sock 7.Parse request [19:52:06]Sock 7.Check first char [19:52:06]Sock 7.First char is OK [19:52:06]request: POST /json_proto HTTP/1.0 [19:52:06]Method: POST [19:52:06]URL: /json_proto [19:52:06]Method is POST - this is cgi request [19:52:06]url: /json_proto [19:52:06]query_string will be loaded in cgi processing [19:52:06]execute_cgi json_proto POST (null) [19:52:06]execute_cgi path=json_proto method=POST [19:52:06]POST find Content-Length [19:52:06]Host: 172.17.45.7:8080 [19:52:06]Content-Length: 822 [19:52:06]Content-Type: application/json [19:52:06] [19:52:06]POST finish read [19:52:06]Found Content-Length = 822 [19:52:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:06]execute_script... [19:52:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:06]POST & json_proto [19:52:06]process_json_proto [19:52:06]json parsed OK: [19:52:06]protocol is kg_v1.0 [19:52:06]action value=close_receipt [19:52:06]process_action close_receipt [19:52:06]cmd_close_receipt [19:52:06]MH_GetDate [19:52:06]Write to MH i2c: F0 00 00 F8 19 00 [19:52:06]Write i2c OK [19:52:06]MH_I2C_Read... [19:52:06]Read from MH i2c: F0 [19:52:06]MH_I2C_Read... [19:52:06]Read from MH i2c: F0 09 00 [19:52:06]MH_I2C_Read... [19:52:06]Read from MH i2c: F0 09 00 F8 19 00 68 A1 A6 66 90 0F 3E 66 61 [19:52:06]GetLastDocTimeStamp 1722195809 [19:52:06]current date 1722196328 [19:52:06]FM_GetShiftState [19:52:06]SAM_PROTO_GetShiftState [19:52:06]wFMCommunicate request_size=4 [19:52:06]MH_SAM_APDU [19:52:06]CAPDU: 80 13 01 00 [19:52:06]Write to MH i2c: E2 08 00 F9 19 80 13 01 00 00 00 00 00 8F [19:52:06]Write i2c OK [19:52:06]MH_I2C_Read... [19:52:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:06]Read from MH i2c: E2 [19:52:06]MH_I2C_Read... [19:52:06]Read from MH i2c: E2 0E 00 [19:52:06]MH_I2C_Read... [19:52:06]Read from MH i2c: E2 0E 00 F9 19 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 66 [19:52:06]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:52:06]wFMCommunicate OK [19:52:06]SAM_PROTO_GetShiftState done [19:52:06]FM_GetShiftState done [19:52:06]opened in 1722125364 [19:52:06]opened+sec_in_day 1722211764 [19:52:06]quantity*price = 150032 [19:52:06]sum+1 = 150033 [19:52:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 246 28.07.2024 19:52 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118577 ФПД: 110523992705492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T195208&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118577&fm=110523992705492&tin=02508201610067®Number=0000000000092660&sum=150000 [19:52:07]StoreToDocumentArchive [19:52:07]shift 433 fd 118577 [19:52:07]save to /storage/0433/doc_00118577 [19:52:07]save last doc name /storage/0433/doc_00118577 to /storage/kkm_last_doc_name [19:52:07]save OK [19:52:07]Clear old archive folders... [19:52:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:52:07]tlvbuf is 01E983D0 [19:52:07]SAM_PROTO_ClearQueue [19:52:07]wFMCommunicate request_size=4 [19:52:07]MH_SAM_APDU [19:52:07]CAPDU: 80 09 00 00 [19:52:07]Write to MH i2c: E2 08 00 06 1A 80 09 00 00 00 00 00 00 92 [19:52:07]Write i2c OK [19:52:07]MH_I2C_Read... [19:52:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:52:07]Read from MH i2c: E2 [19:52:07]MH_I2C_Read... [19:52:07]Read from MH i2c: E2 03 00 [19:52:07]MH_I2C_Read... [19:52:07]Read from MH i2c: E2 03 00 06 1A 00 90 00 94 [19:52:07]RAPDU: 90 00 [19:52:07]wFMCommunicate OK [19:52:07]SAM_PROTO_ClearQueue done [19:52:07]KKMCreateOFDPacket [19:52:07]OFDProtocolAddRootSTLVToBuf [19:52:07]FM_MakeSignedData [19:52:07]FM_MakeSignedData [19:52:07]SAM_PROTO_SignData [19:52:07]wFMCommunicate request_size=4 [19:52:07]MH_SAM_APDU [19:52:07]CAPDU: 80 0D 01 02 [19:52:07]Write to MH i2c: E2 08 00 07 1A 80 0D 01 02 00 00 00 00 9A [19:52:07]Write i2c OK [19:52:07]MH_I2C_Read... [19:52:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:52:07]Read from MH i2c: E2 [19:52:07]MH_I2C_Read... [19:52:07]Read from MH i2c: E2 03 00 [19:52:07]MH_I2C_Read... [19:52:07]Read from MH i2c: E2 03 00 07 1A 00 90 00 95 [19:52:07]RAPDU: 90 00 [19:52:07]wFMCommunicate OK [19:52:07]wFMCommunicate request_size=255 [19:52:07]MH_SAM_APDU [19:52:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 68 A1 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 31 CF 01 00 35 04 06 00 64 [19:52:07]Write to MH i2c: E2 02 01 08 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 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 68 A1 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 31 CF 01 00 35 04 06 00 64 00 00 B2 [19:52:07]Write i2c OK [19:52:07]MH_I2C_Read... [19:52:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:07]Read from MH i2c: E2 [19:52:07]MH_I2C_Read... [19:52:07]Read from MH i2c: E2 03 00 [19:52:07]MH_I2C_Read... [19:52:07]Read from MH i2c: E2 03 00 08 1A 00 90 00 96 [19:52:07]RAPDU: 90 00 [19:52:07]wFMCommunicate OK [19:52:07]wFMCommunicate request_size=10 [19:52:07]MH_SAM_APDU [19:52:07]CAPDU: 80 0D 02 02 05 85 5F 53 09 D4 [19:52:07]Write to MH i2c: E2 0D 00 09 1A 80 0D 02 02 05 00 85 5F 53 09 D4 00 00 BB [19:52:07]Write i2c OK [19:52:07]MH_I2C_Read... [19:52:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:07]Read from MH i2c: E2 [19:52:07]MH_I2C_Read... [19:52:07]Read from MH i2c: E2 03 00 [19:52:07]MH_I2C_Read... [19:52:07]Read from MH i2c: E2 03 00 09 1A 00 90 00 97 [19:52:07]RAPDU: 90 00 [19:52:07]wFMCommunicate OK [19:52:07]wFMCommunicate request_size=4 [19:52:07]MH_SAM_APDU [19:52:07]CAPDU: 80 0D 03 02 [19:52:07]Write to MH i2c: E2 08 00 0A 1A 80 0D 03 02 00 00 00 00 9F [19:52:07]Write i2c OK [19:52:07]MH_I2C_Read... [19:52:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:52:07]Read from MH i2c: E2 [19:52:07]MH_I2C_Read... [19:52:07]Read from MH i2c: E2 0B 00 [19:52:07]MH_I2C_Read... [19:52:07]Read from MH i2c: E2 0B 00 0A 1A 00 54 C9 98 24 4A 15 C0 ED 90 00 85 [19:52:07]RAPDU: 54 C9 98 24 4A 15 C0 ED 90 00 [19:52:07]wFMCommunicate OK [19:52:07]SAM_PROTO_SignData done [19:52:07]FM_MakeSignedData done [19:52:07]CreateOFDProtocolMessage [19:52:07]wFMCommunicate request_size=4 [19:52:07]MH_SAM_APDU [19:52:07]CAPDU: 80 11 00 00 [19:52:07]Write to MH i2c: E2 08 00 0B 1A 80 11 00 00 00 00 00 00 9F [19:52:07]Write i2c OK [19:52:07]MH_I2C_Read... [19:52:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:07]Read from MH i2c: E2 [19:52:07]MH_I2C_Read... [19:52:07]Read from MH i2c: E2 17 00 [19:52:07]MH_I2C_Read... [19:52:07]Read from MH i2c: E2 17 00 0B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FA [19:52:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:52:07]wFMCommunicate OK [19:52:07]CreateOFDProtocolMessage done [19:52:07]OFDSenderStorePacket 118577 [19:52:07]StoreOFDPacket docnum=118577 [19:52:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 70 24 07 01 21 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 68 A1 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 31 CF 01 00 35 04 06 00 64 85 5F 53 09 D4 54 C9 98 24 4A 15 C0 ED [19:52:07]CheckFolder [19:52:07]dirname=/storage/ofd_packets [19:52:07]CheckFolder done [19:52:07]ProducePacketName [19:52:07]name=ofd_packets/00118577 [19:52:07]NVStorageSaveData ofd_packets/00118577 [19:52:07]File name is /storage/ofd_packets/00118577 [19:52:07]Write 301 bytes [19:52:07]NVStorageSaveData done [19:52:07]OFDSenderStorePacket done [19:52:07]KKMCreateOFDPacket done [19:52:07]NVStorageSaveData kkm_last_timestamp [19:52:07]File name is /storage/kkm_last_timestamp [19:52:07]Write 4 bytes [19:52:07]NVStorageSaveData done [19:52:07]ExternCall_PrintAddStr [19:52:07]wPrintStart [19:52:07]Write to MH i2c: 01 00 00 0C 1A 26 [19:52:07]Write i2c OK [19:52:07]MH_I2C_Read... [19:52:07]Read from MH i2c: 01 [19:52:07]MH_I2C_Read... [19:52:07]Read from MH i2c: 01 07 00 [19:52:07]MH_I2C_Read... [19:52:07]Read from MH i2c: 01 07 00 0C 1A 00 00 00 00 00 FF 0F 3B [19:52:07]RasterBufferAndPrint [19:52:07]line Счет N : (1)949463 [19:52:07]line ИНН: 02508201610067 [19:52:07]line Контрольно-Кассовый Чек [19:52:07]line ПРОДАЖА [19:52:07]line ТРК (МРК, ГНК) : 33 [19:52:07]line Товар: 2710124500 [19:52:07]line Аи-95-К-3 [19:52:07]line 20.220 * 74.20 [19:52:07]line = 1500.32 [19:52:07]line НДС 12% НСП 1% [19:52:07]line > о реализуемом товаре [19:52:07]line ОКРУГЛЕНИЕ: -0.32 [19:52:07]line ИТОГО: 1500.00 [19:52:07]line НСП 1% : 13.28 [19:52:07]line НДС 12% : 159.33 [19:52:07]line Наличными: 0.00 [19:52:07]line Безнал.: 1500.00 [19:52:07]line Место: АЗС № 134 "Партнер Нефть" [19:52:07]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:52:07]line СНО: Общий режим [19:52:07]line Чек 246 28.07.2024 19:52 [19:52:07]line Смена: 433 ФФД: 1.0 [19:52:07]line ЗНМ: 0300000044 [19:52:07]line РНМ: 0000000000092660 [19:52:07]line Версия ККМ: 001 [19:52:07]line Платежная система: O! деньги [19:52:07]line ФМ: 0000000000874939 [19:52:07]line ФД: 118577 [19:52:07]line ФПД: 110523992705492 [19:52:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T195208&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118577&fm=110523992705492&tin=02508201610067®Number=0000000000092660&sum=150000 [19:52:08]written 0, free lines is 4095 [19:52:08]OFD Sender: Processing packet 118577 [packets to send 86, broken 85] [19:52:08]ProducePacketName [19:52:08]name=ofd_packets/00118577 [19:52:08]OFD Sender: To server: pG, [19:52:08]CommunicateWithHost lk.salyk.kg:30040 [19:52:08]ConnectInit lk.salyk.kg [19:52:08]Connected sock=10 [19:52:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 70 24 07 01 21 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 68 A1 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 31 CF 01 00 35 04 06 00 64 85 5F 53 09 D4 54 C9 98 24 4A 15 C0 ED [19:52:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 70 00 47 00 FC 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 31 CF 01 00 F4 03 04 00 F7 4E A6 66 B6 04 01 00 00 4A 80 51 CB 4A A3 77 2E [19:52:08]CommunicateWithHost err = 0 [19:52:08]CheckOFDResponse [19:52:08]1017 (14) - 77093643461234 [19:52:08]1041 (16) - 0000000000874939 [19:52:08]1040 (4) - 118577 [19:52:08]1012 (4) - 28.07.2024 14:00 [19:52:08]1206 (1) - 0 [19:52:08]OFD Sender: Remove packet 118577 [19:52:08]ProducePacketName [19:52:08]name=ofd_packets/00118577 [19:52:08]NVStorageDeleteData [19:52:08]Write to MH i2c: 01 00 00 36 1A 50 [19:52:08]Write i2c OK [19:52:08]MH_I2C_Read... [19:52:08]Read from MH i2c: 01 [19:52:08]MH_I2C_Read... [19:52:08]Read from MH i2c: 01 07 00 [19:52:08]MH_I2C_Read... [19:52:08]Read from MH i2c: 01 07 00 36 1A 00 00 00 00 00 F3 0C 56 [19:52:08]RasterBufferAndPrint [19:52:08]line [19:52:08]line [19:52:08]line [19:52:08]line [19:52:08]line [19:52:08]written 0, free lines is 3325 [19:52:08]MH_Cut [19:52:08]Write to MH i2c: D1 01 00 3D 1A 01 29 [19:52:08]Write i2c OK [19:52:08]MH_I2C_Read... [19:52:08]Read from MH i2c: D1 [19:52:08]MH_I2C_Read... [19:52:08]Read from MH i2c: D1 01 00 [19:52:08]MH_I2C_Read... [19:52:08]Read from MH i2c: D1 01 00 3D 1A 00 28 [19:52:08]Write to MH i2c: 01 00 00 3E 1A 58 [19:52:08]Write i2c OK [19:52:08]MH_I2C_Read... [19:52:09]OFD Sender: No OFD packet to send [19:52:09]*** Cut start [19:52:09]*** Partial cut [19:52:09]*** CUTSNS_PIN = 1 [19:52:09]*** CUTSNS_PIN = 0 [19:52:09]*** Brake cut motor [19:52:10]Read from MH i2c: 01 [19:52:10]MH_I2C_Read... [19:52:10]*** Stop cut motor [19:52:10]*** Cut end [19:52:10]Read from MH i2c: 01 07 00 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: 01 07 00 3E 1A 00 00 00 00 00 FF 0F 6D [19:52:10]process_action close_receipt done [19:52:10]requested_data is exist [19:52:10]produce_requested_data [19:52:10]requested_item fm.sn is exist - process it [19:52:10]wFMCommunicate request_size=4 [19:52:10]MH_SAM_APDU [19:52:10]CAPDU: 80 11 00 00 [19:52:10]Write to MH i2c: E2 08 00 3F 1A 80 11 00 00 00 00 00 00 D3 [19:52:10]Write i2c OK [19:52:10]MH_I2C_Read... [19:52:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:10]Read from MH i2c: E2 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 17 00 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 17 00 3F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2E [19:52:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:52:10]wFMCommunicate OK [19:52:10]requested_item fd.num is exist - process it [19:52:10]SAM_PROTO_GetFieldsCounters [19:52:10]wFMCommunicate request_size=4 [19:52:10]MH_SAM_APDU [19:52:10]CAPDU: 80 13 00 00 [19:52:10]Write to MH i2c: E2 08 00 40 1A 80 13 00 00 00 00 00 00 D6 [19:52:10]Write i2c OK [19:52:10]MH_I2C_Read... [19:52:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:52:10]Read from MH i2c: E2 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 62 00 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 62 00 40 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 31 CF 01 00 0E 04 04 00 B1 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 92 [19:52:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 31 CF 01 00 0E 04 04 00 B1 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 [19:52:10]wFMCommunicate OK [19:52:10]SAM_PROTO_GetFieldsCounters done [19:52:10]requested_item shift.num is exist - process it [19:52:10]requested_item shift.opened is exist - process it [19:52:10]req_shift_opened [19:52:10]FM_GetShiftState [19:52:10]SAM_PROTO_GetShiftState [19:52:10]wFMCommunicate request_size=4 [19:52:10]MH_SAM_APDU [19:52:10]CAPDU: 80 13 01 00 [19:52:10]Write to MH i2c: E2 08 00 41 1A 80 13 01 00 00 00 00 00 D8 [19:52:10]Write i2c OK [19:52:10]MH_I2C_Read... [19:52:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:10]Read from MH i2c: E2 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 0E 00 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 0E 00 41 1A 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 AF [19:52:10]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:52:10]wFMCommunicate OK [19:52:10]SAM_PROTO_GetShiftState done [19:52:10]FM_GetShiftState done [19:52:10]req_shift_opened done [19:52:10]requested_item shift.open_date is exist - process it [19:52:10]req_shift_open_date [19:52:10]req_shift_open_date done [19:52:10]produce_requested_data done [19:52:10]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118577,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [19:52:10]process_action_free close_receipt [19:52:10]json_value_free [19:52:10]json_value_free done [19:52:10]process_json_proto returns [19:52:10]Send response to host [19:52:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118577,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [19:52:10]free response buf [19:52:10]execute_script done [19:52:10]execute_script returns [19:52:10]free content buf [19:52:10]Sock 7.Close socket [19:52:10]Sock 7.Thread stoped [19:52:14]OFD Sender: No OFD packet to send [19:52:19]OFD Sender: No OFD packet to send [19:52:24]OFD Sender: No OFD packet to send [19:52:29]OFD Sender: No OFD packet to send [19:52:34]OFD Sender: No OFD packet to send [19:52:39]OFD Sender: No OFD packet to send [19:52:44]OFD Sender: No OFD packet to send [19:52:49]OFD Sender: No OFD packet to send [19:52:54]OFD Sender: No OFD packet to send [19:52:59]OFD Sender: No OFD packet to send [19:53:04]OFD Sender: No OFD packet to send [19:53:09]OFD Sender: No OFD packet to send [19:53:14]OFD Sender: No OFD packet to send [19:53:19]OFD Sender: No OFD packet to send [19:53:24]OFD Sender: No OFD packet to send [19:53:29]OFD Sender: No OFD packet to send [19:53:34]OFD Sender: No OFD packet to send [19:53:39]OFD Sender: No OFD packet to send [19:53:44]OFD Sender: No OFD packet to send [19:53:49]OFD Sender: No OFD packet to send [19:53:54]OFD Sender: No OFD packet to send [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:09]OFD Sender: No OFD packet to send [19:54:14]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:46]accept exits with 9 [19:56:46]New connection [19:56:46]New thread 3067239780 created [19:56:46]Thread 3067383140 joined [19:56:46]Waiting for new connection... [19:56:46] Sock 9.Parse request [19:56:46]Sock 9.Check first char [19:56:46]Sock 9.First char is OK [19:56:46]request: POST /json_proto HTTP/1.0 [19:56:46]Method: POST [19:56:46]URL: /json_proto [19:56:46]Method is POST - this is cgi request [19:56:46]url: /json_proto [19:56:46]query_string will be loaded in cgi processing [19:56:46]execute_cgi json_proto POST (null) [19:56:46]execute_cgi path=json_proto method=POST [19:56:46]POST find Content-Length [19:56:46]Host: 172.17.45.7:8080 [19:56:46]Content-Length: 674 [19:56:46]Content-Type: application/json [19:56:46] [19:56:46]POST finish read [19:56:46]Found Content-Length = 674 [19:56:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:46]execute_script... [19:56: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)949467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:46]POST & json_proto [19:56:46]process_json_proto [19:56:46]json parsed OK: [19:56:46]protocol is kg_v1.0 [19:56:46]action value=close_receipt [19:56:46]process_action close_receipt [19:56:46]cmd_close_receipt [19:56:46]MH_GetDate [19:56:46]Write to MH i2c: F0 00 00 42 1A 4B [19:56:46]Write i2c OK [19:56:46]MH_I2C_Read... [19:56:46]Read from MH i2c: F0 [19:56:46]MH_I2C_Read... [19:56:46]Read from MH i2c: F0 09 00 [19:56:46]MH_I2C_Read... [19:56:46]Read from MH i2c: F0 09 00 42 1A 00 80 A2 A6 66 90 0F 3E 66 C5 [19:56:46]GetLastDocTimeStamp 1722196328 [19:56:46]current date 1722196608 [19:56:46]FM_GetShiftState [19:56:46]SAM_PROTO_GetShiftState [19:56:46]wFMCommunicate request_size=4 [19:56:46]MH_SAM_APDU [19:56:46]CAPDU: 80 13 01 00 [19:56:46]Write to MH i2c: E2 08 00 43 1A 80 13 01 00 00 00 00 00 DA [19:56:46]Write i2c OK [19:56:46]MH_I2C_Read... [19:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:46]Read from MH i2c: E2 [19:56:46]MH_I2C_Read... [19:56:46]Read from MH i2c: E2 0E 00 [19:56:46]MH_I2C_Read... [19:56:46]Read from MH i2c: E2 0E 00 43 1A 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 B1 [19:56:46]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:56:46]wFMCommunicate OK [19:56:46]SAM_PROTO_GetShiftState done [19:56:46]FM_GetShiftState done [19:56:46]opened in 1722125364 [19:56:46]opened+sec_in_day 1722211764 [19:56:46]quantity*price = 60045 [19:56:46]sum+1 = 60047 [19:56:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 247 28.07.2024 19:56 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118578 ФПД: 136292033607461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T195648&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118578&fm=136292033607461&tin=02508201610067®Number=0000000000092660&sum=60000 [19:56:47]StoreToDocumentArchive [19:56:47]shift 433 fd 118578 [19:56:47]save to /storage/0433/doc_00118578 [19:56:47]save last doc name /storage/0433/doc_00118578 to /storage/kkm_last_doc_name [19:56:47]save OK [19:56:47]Clear old archive folders... [19:56:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:56:47]tlvbuf is B6F2A0E0 [19:56:47]SAM_PROTO_ClearQueue [19:56:47]wFMCommunicate request_size=4 [19:56:47]MH_SAM_APDU [19:56:47]CAPDU: 80 09 00 00 [19:56:47]Write to MH i2c: E2 08 00 50 1A 80 09 00 00 00 00 00 00 DC [19:56:47]Write i2c OK [19:56:47]MH_I2C_Read... [19:56:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:56:47]Read from MH i2c: E2 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 03 00 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 03 00 50 1A 00 90 00 DE [19:56:47]RAPDU: 90 00 [19:56:47]wFMCommunicate OK [19:56:47]SAM_PROTO_ClearQueue done [19:56:47]KKMCreateOFDPacket [19:56:47]OFDProtocolAddRootSTLVToBuf [19:56:47]FM_MakeSignedData [19:56:47]FM_MakeSignedData [19:56:47]SAM_PROTO_SignData [19:56:47]wFMCommunicate request_size=4 [19:56:47]MH_SAM_APDU [19:56:47]CAPDU: 80 0D 01 02 [19:56:47]Write to MH i2c: E2 08 00 51 1A 80 0D 01 02 00 00 00 00 E4 [19:56:47]Write i2c OK [19:56:47]MH_I2C_Read... [19:56:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:56:47]Read from MH i2c: E2 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 03 00 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 03 00 51 1A 00 90 00 DF [19:56:47]RAPDU: 90 00 [19:56:47]wFMCommunicate OK [19:56:47]wFMCommunicate request_size=255 [19:56:47]MH_SAM_APDU [19:56:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E9 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 F7 00 00 00 F4 03 04 00 80 A2 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 32 CF 01 00 35 04 06 00 7B F4 F6 3F [19:56:47]Write to MH i2c: E2 02 01 52 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E9 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 F7 00 00 00 F4 03 04 00 80 A2 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 32 CF 01 00 35 04 06 00 7B F4 F6 3F 00 00 B2 [19:56:47]Write i2c OK [19:56:47]MH_I2C_Read... [19:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:47]Read from MH i2c: E2 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 03 00 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 03 00 52 1A 00 90 00 E0 [19:56:47]RAPDU: 90 00 [19:56:47]wFMCommunicate OK [19:56:47]wFMCommunicate request_size=7 [19:56:47]MH_SAM_APDU [19:56:47]CAPDU: 80 0D 02 02 02 B7 25 [19:56:47]Write to MH i2c: E2 0A 00 53 1A 80 0D 02 02 02 00 B7 25 00 00 C7 [19:56:47]Write i2c OK [19:56:47]MH_I2C_Read... [19:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:47]Read from MH i2c: E2 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 03 00 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 03 00 53 1A 00 90 00 E1 [19:56:47]RAPDU: 90 00 [19:56:47]wFMCommunicate OK [19:56:47]wFMCommunicate request_size=4 [19:56:47]MH_SAM_APDU [19:56:47]CAPDU: 80 0D 03 02 [19:56:47]Write to MH i2c: E2 08 00 54 1A 80 0D 03 02 00 00 00 00 E9 [19:56:47]Write i2c OK [19:56:47]MH_I2C_Read... [19:56:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:56:47]Read from MH i2c: E2 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 0B 00 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 0B 00 54 1A 00 24 34 E1 9A 9F 7C D9 A0 90 00 51 [19:56:47]RAPDU: 24 34 E1 9A 9F 7C D9 A0 90 00 [19:56:47]wFMCommunicate OK [19:56:47]SAM_PROTO_SignData done [19:56:47]FM_MakeSignedData done [19:56:47]CreateOFDProtocolMessage [19:56:47]wFMCommunicate request_size=4 [19:56:47]MH_SAM_APDU [19:56:47]CAPDU: 80 11 00 00 [19:56:47]Write to MH i2c: E2 08 00 55 1A 80 11 00 00 00 00 00 00 E9 [19:56:47]Write i2c OK [19:56:47]MH_I2C_Read... [19:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:47]Read from MH i2c: E2 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 17 00 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 17 00 55 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 44 [19:56:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:56:47]wFMCommunicate OK [19:56:47]CreateOFDProtocolMessage done [19:56:47]OFDSenderStorePacket 118578 [19:56:47]StoreOFDPacket docnum=118578 [19:56:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 5D B4 04 01 52 6D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E9 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 F7 00 00 00 F4 03 04 00 80 A2 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 32 CF 01 00 35 04 06 00 7B F4 F6 3F B7 25 24 34 E1 9A 9F 7C D9 A0 [19:56:47]CheckFolder [19:56:47]dirname=/storage/ofd_packets [19:56:47]CheckFolder done [19:56:47]ProducePacketName [19:56:47]name=ofd_packets/00118578 [19:56:47]NVStorageSaveData ofd_packets/00118578 [19:56:47]File name is /storage/ofd_packets/00118578 [19:56:47]Write 298 bytes [19:56:47]NVStorageSaveData done [19:56:47]OFDSenderStorePacket done [19:56:47]KKMCreateOFDPacket done [19:56:47]NVStorageSaveData kkm_last_timestamp [19:56:47]File name is /storage/kkm_last_timestamp [19:56:47]Write 4 bytes [19:56:47]NVStorageSaveData done [19:56:47]ExternCall_PrintAddStr [19:56:47]wPrintStart [19:56:47]Write to MH i2c: 01 00 00 56 1A 70 [19:56:47]Write i2c OK [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: 01 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: 01 07 00 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: 01 07 00 56 1A 00 00 00 00 00 FF 0F 85 [19:56:47]RasterBufferAndPrint [19:56:47]line Счет N : (1)949467 [19:56:47]line ИНН: 02508201610067 [19:56:47]line Контрольно-Кассовый Чек [19:56:47]line ПРОДАЖА [19:56:47]line ТРК (МРК, ГНК) : 64 [19:56:47]line Товар: 2710194800 [19:56:47]line ДТ-К-5 [19:56:47]line 7.880 * 76.20 [19:56:47]line = 600.46 [19:56:47]line НДС 12% НСП 1% [19:56:47]line > о реализуемом товаре [19:56:47]line ОКРУГЛЕНИЕ: -0.46 [19:56:47]line ИТОГО: 600.00 [19:56:47]line Внесено: 600.00 [19:56:47]line СДАЧА: 0.00 [19:56:47]line НСП 1% : 5.31 [19:56:47]line НДС 12% : 63.77 [19:56:47]line Наличными: 600.00 [19:56:47]line Безнал.: 0.00 [19:56:47]line Место: АЗС № 134 "Партнер Нефть" [19:56:47]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:56:47]line СНО: Общий режим [19:56:47]line Чек 247 28.07.2024 19:56 [19:56:47]line Смена: 433 ФФД: 1.0 [19:56:47]line ЗНМ: 0300000044 [19:56:47]line РНМ: 0000000000092660 [19:56:47]line Версия ККМ: 001 [19:56:47]line ФМ: 0000000000874939 [19:56:47]line ФД: 118578 [19:56:47]line ФПД: 136292033607461 [19:56:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T195648&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118578&fm=136292033607461&tin=02508201610067®Number=0000000000092660&sum=60000 [19:56:48]OFD Sender: Processing packet 118578 [packets to send 86, broken 85] [19:56:48]ProducePacketName [19:56:48]name=ofd_packets/00118578 [19:56:48]OFD Sender: To server: pG, [19:56:48]CommunicateWithHost lk.salyk.kg:30040 [19:56:48]ConnectInit lk.salyk.kg [19:56:48]written 0, free lines is 4095 [19:56:48]Connected sock=10 [19:56: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 39 33 39 0C 01 00 00 5D B4 04 01 52 6D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E9 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 F7 00 00 00 F4 03 04 00 80 A2 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 32 CF 01 00 35 04 06 00 7B F4 F6 3F B7 25 24 34 E1 9A 9F 7C D9 A0 [19:56:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B5 2D 47 00 0E 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 39 33 39 10 04 04 00 32 CF 01 00 F4 03 04 00 0F 50 A6 66 B6 04 01 00 00 2F 31 1F B5 EB 86 E8 CA [19:56:48]CommunicateWithHost err = 0 [19:56:48]CheckOFDResponse [19:56:48]1017 (14) - 77093643461234 [19:56:48]1041 (16) - 0000000000874939 [19:56:48]1040 (4) - 118578 [19:56:48]1012 (4) - 28.07.2024 14:05 [19:56:48]1206 (1) - 0 [19:56:48]OFD Sender: Remove packet 118578 [19:56:48]ProducePacketName [19:56:48]name=ofd_packets/00118578 [19:56:48]NVStorageDeleteData [19:56:48]Write to MH i2c: 01 00 00 80 1A 9A [19:56:48]Write i2c OK [19:56:48]MH_I2C_Read... [19:56:48]Read from MH i2c: 01 [19:56:48]MH_I2C_Read... [19:56:48]Read from MH i2c: 01 07 00 [19:56:48]MH_I2C_Read... [19:56:48]Read from MH i2c: 01 07 00 80 1A 00 00 00 00 00 EE 0C 9B [19:56:48]RasterBufferAndPrint [19:56:48]line [19:56:48]line [19:56:48]line [19:56:48]line [19:56:48]line [19:56:48]written 0, free lines is 3317 [19:56:48]MH_Cut [19:56:48]Write to MH i2c: D1 01 00 87 1A 01 73 [19:56:48]Write i2c OK [19:56:48]MH_I2C_Read... [19:56:48]Read from MH i2c: D1 [19:56:48]MH_I2C_Read... [19:56:48]Read from MH i2c: D1 01 00 [19:56:48]MH_I2C_Read... [19:56:48]Read from MH i2c: D1 01 00 87 1A 00 72 [19:56:48]Write to MH i2c: 01 00 00 88 1A A2 [19:56:48]Write i2c OK [19:56:48]MH_I2C_Read... [19:56:49]OFD Sender: No OFD packet to send [19:56:49]*** Cut start [19:56:49]*** Partial cut [19:56:49]*** CUTSNS_PIN = 1 [19:56:49]*** CUTSNS_PIN = 0 [19:56:49]*** Brake cut motor [19:56:50]Read from MH i2c: 01 [19:56:50]MH_I2C_Read... [19:56:50]*** Stop cut motor [19:56:50]*** Cut end [19:56:50]Read from MH i2c: 01 07 00 [19:56:50]MH_I2C_Read... [19:56:50]Read from MH i2c: 01 07 00 88 1A 00 00 00 00 00 FF 0F B7 [19:56:50]process_action close_receipt done [19:56:50]requested_data is exist [19:56:50]produce_requested_data [19:56:50]requested_item fm.sn is exist - process it [19:56:50]wFMCommunicate request_size=4 [19:56:50]MH_SAM_APDU [19:56:50]CAPDU: 80 11 00 00 [19:56:50]Write to MH i2c: E2 08 00 89 1A 80 11 00 00 00 00 00 00 1D [19:56:50]Write i2c OK [19:56:50]MH_I2C_Read... [19:56:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:50]Read from MH i2c: E2 [19:56:50]MH_I2C_Read... [19:56:50]Read from MH i2c: E2 17 00 [19:56:50]MH_I2C_Read... [19:56:50]Read from MH i2c: E2 17 00 89 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 78 [19:56:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:56:50]wFMCommunicate OK [19:56:50]requested_item fd.num is exist - process it [19:56:50]SAM_PROTO_GetFieldsCounters [19:56:50]wFMCommunicate request_size=4 [19:56:50]MH_SAM_APDU [19:56:50]CAPDU: 80 13 00 00 [19:56:50]Write to MH i2c: E2 08 00 8A 1A 80 13 00 00 00 00 00 00 20 [19:56:50]Write i2c OK [19:56:50]MH_I2C_Read... [19:56:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:56:50]Read from MH i2c: E2 [19:56:50]MH_I2C_Read... [19:56:50]Read from MH i2c: E2 62 00 [19:56:50]MH_I2C_Read... [19:56:50]Read from MH i2c: E2 62 00 8A 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 32 CF 01 00 0E 04 04 00 B1 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 E0 [19:56:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 32 CF 01 00 0E 04 04 00 B1 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 [19:56:50]wFMCommunicate OK [19:56:50]SAM_PROTO_GetFieldsCounters done [19:56:50]requested_item shift.num is exist - process it [19:56:50]requested_item shift.opened is exist - process it [19:56:50]req_shift_opened [19:56:50]FM_GetShiftState [19:56:50]SAM_PROTO_GetShiftState [19:56:50]wFMCommunicate request_size=4 [19:56:50]MH_SAM_APDU [19:56:50]CAPDU: 80 13 01 00 [19:56:50]Write to MH i2c: E2 08 00 8B 1A 80 13 01 00 00 00 00 00 22 [19:56:50]Write i2c OK [19:56:50]MH_I2C_Read... [19:56:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:50]Read from MH i2c: E2 [19:56:50]MH_I2C_Read... [19:56:50]Read from MH i2c: E2 0E 00 [19:56:50]MH_I2C_Read... [19:56:50]Read from MH i2c: E2 0E 00 8B 1A 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 F9 [19:56:50]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:56:50]wFMCommunicate OK [19:56:50]SAM_PROTO_GetShiftState done [19:56:50]FM_GetShiftState done [19:56:50]req_shift_opened done [19:56:50]requested_item shift.open_date is exist - process it [19:56:50]req_shift_open_date [19:56:50]req_shift_open_date done [19:56:50]produce_requested_data done [19:56:50]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118578,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [19:56:50]process_action_free close_receipt [19:56:50]json_value_free [19:56:50]json_value_free done [19:56:50]process_json_proto returns [19:56:50]Send response to host [19:56:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118578,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [19:56:50]free response buf [19:56:50]execute_script done [19:56:50]execute_script returns [19:56:50]free content buf [19:56:50]Sock 9.Close socket [19:56:50]Sock 9.Thread stoped [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:04]OFD Sender: No OFD packet to send [19:58:09]OFD Sender: No OFD packet to send [19:58:14]OFD Sender: No OFD packet to send [19:58:19]OFD Sender: No OFD packet to send [19:58:24]OFD Sender: No OFD packet to send [19:58:29]OFD Sender: No OFD packet to send [19:58:34]OFD Sender: No OFD packet to send [19:58:39]OFD Sender: No OFD packet to send [19:58:44]OFD Sender: No OFD packet to send [19:58:49]OFD Sender: No OFD packet to send [19:58:54]OFD Sender: No OFD packet to send [19:58:59]OFD Sender: No OFD packet to send [19:59:04]OFD Sender: No OFD packet to send [19:59:09]OFD Sender: No OFD packet to send [19:59:14]OFD Sender: No OFD packet to send [19:59:19]OFD Sender: No OFD packet to send [19:59:24]OFD Sender: No OFD packet to send [19:59:29]OFD Sender: No OFD packet to send [19:59:34]OFD Sender: No OFD packet to send [19:59:38]accept exits with 7 [19:59:38]New connection [19:59:38]New thread 3067383140 created [19:59:38]Thread 3067239780 joined [19:59:38]Waiting for new connection... [19:59:38] Sock 7.Parse request [19:59:38]Sock 7.Check first char [19:59:38]Sock 7.First char is OK [19:59:38]request: POST /json_proto HTTP/1.0 [19:59:38]Method: POST [19:59:38]URL: /json_proto [19:59:38]Method is POST - this is cgi request [19:59:38]url: /json_proto [19:59:38]query_string will be loaded in cgi processing [19:59:38]execute_cgi json_proto POST (null) [19:59:38]execute_cgi path=json_proto method=POST [19:59:38]POST find Content-Length [19:59:38]Host: 172.17.45.7:8080 [19:59:38]Content-Length: 677 [19:59:38]Content-Type: application/json [19:59:38] [19:59:38]POST finish read [19:59:38]Found Content-Length = 677 [19:59:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:38]execute_script... [19: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)949468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:38]POST & json_proto [19:59:38]process_json_proto [19:59:38]json parsed OK: [19:59:38]protocol is kg_v1.0 [19:59:38]action value=close_receipt [19:59:38]process_action close_receipt [19:59:38]cmd_close_receipt [19:59:38]MH_GetDate [19:59:38]Write to MH i2c: F0 00 00 8C 1A 95 [19:59:38]Write i2c OK [19:59:38]MH_I2C_Read... [19:59:38]Read from MH i2c: F0 [19:59:38]MH_I2C_Read... [19:59:38]Read from MH i2c: F0 09 00 [19:59:38]MH_I2C_Read... [19:59:38]Read from MH i2c: F0 09 00 8C 1A 00 2C A3 A6 66 90 0F 3E 66 BC [19:59:38]GetLastDocTimeStamp 1722196608 [19:59:38]current date 1722196780 [19:59:38]FM_GetShiftState [19:59:38]SAM_PROTO_GetShiftState [19:59:38]wFMCommunicate request_size=4 [19:59:38]MH_SAM_APDU [19:59:38]CAPDU: 80 13 01 00 [19:59:38]Write to MH i2c: E2 08 00 8D 1A 80 13 01 00 00 00 00 00 24 [19:59:38]Write i2c OK [19:59:38]MH_I2C_Read... [19:59:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:38]Read from MH i2c: E2 [19:59:38]MH_I2C_Read... [19:59:38]Read from MH i2c: E2 0E 00 [19:59:38]MH_I2C_Read... [19:59:38]Read from MH i2c: E2 0E 00 8D 1A 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 FB [19:59:38]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:59:38]wFMCommunicate OK [19:59:38]SAM_PROTO_GetShiftState done [19:59:38]FM_GetShiftState done [19:59:38]opened in 1722125364 [19:59:38]opened+sec_in_day 1722211764 [19:59:38]quantity*price = 50036 [19:59:38]sum+1 = 50037 [19:59:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 248 28.07.2024 19:59 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118579 ФПД: 52654523441588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T195940&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118579&fm=52654523441588&tin=02508201610067®Number=0000000000092660&sum=50000 [19:59:39]StoreToDocumentArchive [19:59:39]shift 433 fd 118579 [19:59:39]save to /storage/0433/doc_00118579 [19:59:39]save last doc name /storage/0433/doc_00118579 to /storage/kkm_last_doc_name [19:59:39]save OK [19:59:39]Clear old archive folders... [19:59:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:59:39]tlvbuf is B6FBE2D0 [19:59:39]SAM_PROTO_ClearQueue [19:59:39]wFMCommunicate request_size=4 [19:59:39]MH_SAM_APDU [19:59:39]CAPDU: 80 09 00 00 [19:59:39]Write to MH i2c: E2 08 00 9A 1A 80 09 00 00 00 00 00 00 26 [19:59:39]Write i2c OK [19:59:39]MH_I2C_Read... [19:59:39]Read from MH i2c: E2 [19:59:39]MH_I2C_Read... [19:59:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:59:39]Read from MH i2c: E2 03 00 [19:59:39]MH_I2C_Read... [19:59:39]Read from MH i2c: E2 03 00 9A 1A 00 90 00 28 [19:59:39]RAPDU: 90 00 [19:59:39]wFMCommunicate OK [19:59:39]SAM_PROTO_ClearQueue done [19:59:39]KKMCreateOFDPacket [19:59:39]OFDProtocolAddRootSTLVToBuf [19:59:39]FM_MakeSignedData [19:59:39]FM_MakeSignedData [19:59:39]SAM_PROTO_SignData [19:59:39]wFMCommunicate request_size=4 [19:59:39]MH_SAM_APDU [19:59:39]CAPDU: 80 0D 01 02 [19:59:39]Write to MH i2c: E2 08 00 9B 1A 80 0D 01 02 00 00 00 00 2E [19:59:39]Write i2c OK [19:59:39]MH_I2C_Read... [19:59:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:59:39]Read from MH i2c: E2 [19:59:39]MH_I2C_Read... [19:59:39]Read from MH i2c: E2 03 00 [19:59:39]MH_I2C_Read... [19:59:39]Read from MH i2c: E2 03 00 9B 1A 00 90 00 29 [19:59:39]RAPDU: 90 00 [19:59:39]wFMCommunicate OK [19:59:39]wFMCommunicate request_size=255 [19:59:39]MH_SAM_APDU [19: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 2C A3 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 33 CF 01 00 35 04 06 00 2F [19:59:39]Write to MH i2c: E2 02 01 9C 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 2C A3 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 33 CF 01 00 35 04 06 00 2F 00 00 69 [19:59:39]Write i2c OK [19:59:39]MH_I2C_Read... [19:59:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:40]Read from MH i2c: E2 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: E2 03 00 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: E2 03 00 9C 1A 00 90 00 2A [19:59:40]RAPDU: 90 00 [19:59:40]wFMCommunicate OK [19:59:40]wFMCommunicate request_size=10 [19:59:40]MH_SAM_APDU [19:59:40]CAPDU: 80 0D 02 02 05 E3 96 2A 61 B4 [19:59:40]Write to MH i2c: E2 0D 00 9D 1A 80 0D 02 02 05 00 E3 96 2A 61 B4 00 00 F3 [19:59:40]Write i2c OK [19:59:40]MH_I2C_Read... [19:59:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:40]Read from MH i2c: E2 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: E2 03 00 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: E2 03 00 9D 1A 00 90 00 2B [19:59:40]RAPDU: 90 00 [19:59:40]wFMCommunicate OK [19:59:40]wFMCommunicate request_size=4 [19:59:40]MH_SAM_APDU [19:59:40]CAPDU: 80 0D 03 02 [19:59:40]Write to MH i2c: E2 08 00 9E 1A 80 0D 03 02 00 00 00 00 33 [19:59:40]Write i2c OK [19:59:40]MH_I2C_Read... [19:59:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:59:40]Read from MH i2c: E2 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: E2 0B 00 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: E2 0B 00 9E 1A 00 25 D2 92 EA 92 6B EC 9D 90 00 2D [19:59:40]RAPDU: 25 D2 92 EA 92 6B EC 9D 90 00 [19:59:40]wFMCommunicate OK [19:59:40]SAM_PROTO_SignData done [19:59:40]FM_MakeSignedData done [19:59:40]CreateOFDProtocolMessage [19:59:40]wFMCommunicate request_size=4 [19:59:40]MH_SAM_APDU [19:59:40]CAPDU: 80 11 00 00 [19:59:40]Write to MH i2c: E2 08 00 9F 1A 80 11 00 00 00 00 00 00 33 [19:59:40]Write i2c OK [19:59:40]MH_I2C_Read... [19:59:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:40]Read from MH i2c: E2 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: E2 17 00 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: E2 17 00 9F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8E [19:59:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:59:40]wFMCommunicate OK [19:59:40]CreateOFDProtocolMessage done [19:59:40]OFDSenderStorePacket 118579 [19:59:40]StoreOFDPacket docnum=118579 [19:59:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B6 2B 07 01 46 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 2C A3 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 33 CF 01 00 35 04 06 00 2F E3 96 2A 61 B4 25 D2 92 EA 92 6B EC 9D [19:59:40]CheckFolder [19:59:40]dirname=/storage/ofd_packets [19:59:40]CheckFolder done [19:59:40]ProducePacketName [19:59:40]name=ofd_packets/00118579 [19:59:40]NVStorageSaveData ofd_packets/00118579 [19:59:40]File name is /storage/ofd_packets/00118579 [19:59:40]Write 301 bytes [19:59:40]NVStorageSaveData done [19:59:40]OFDSenderStorePacket done [19:59:40]KKMCreateOFDPacket done [19:59:40]NVStorageSaveData kkm_last_timestamp [19:59:40]File name is /storage/kkm_last_timestamp [19:59:40]Write 4 bytes [19:59:40]NVStorageSaveData done [19:59:40]ExternCall_PrintAddStr [19:59:40]wPrintStart [19:59:40]Write to MH i2c: 01 00 00 A0 1A BA [19:59:40]Write i2c OK [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: 01 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: 01 07 00 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: 01 07 00 A0 1A 00 00 00 00 00 FF 0F CF [19:59:40]RasterBufferAndPrint [19:59:40]line Счет N : (1)949468 [19:59:40]line ИНН: 02508201610067 [19:59:40]line Контрольно-Кассовый Чек [19:59:40]line ПРОДАЖА [19:59:40]line ТРК (МРК, ГНК) : 61 [19:59:40]line Товар: 2710124130 [19:59:40]line Аи-92-К-4 [19:59:40]line 7.380 * 67.80 [19:59:40]line = 500.36 [19:59:40]line НДС 12% НСП 1% [19:59:40]line > о реализуемом товаре [19:59:40]line ОКРУГЛЕНИЕ: -0.36 [19:59:40]line ИТОГО: 500.00 [19:59:40]line Внесено: 500.00 [19:59:40]line СДАЧА: 0.00 [19:59:40]line НСП 1% : 4.43 [19:59:40]line НДС 12% : 53.14 [19:59:40]line Наличными: 500.00 [19:59:40]line Безнал.: 0.00 [19:59:40]line Место: АЗС № 134 "Партнер Нефть" [19:59:40]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:59:40]line СНО: Общий режим [19:59:40]line Чек 248 28.07.2024 19:59 [19:59:40]line Смена: 433 ФФД: 1.0 [19:59:40]line ЗНМ: 0300000044 [19:59:40]line РНМ: 0000000000092660 [19:59:40]line Версия ККМ: 001 [19:59:40]line ФМ: 0000000000874939 [19:59:40]line ФД: 118579 [19:59:40]line ФПД: 52654523441588 [19:59:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T195940&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118579&fm=52654523441588&tin=02508201610067®Number=0000000000092660&sum=50000 [19:59:40]OFD Sender: Processing packet 118579 [packets to send 86, broken 85] [19:59:40]ProducePacketName [19:59:40]name=ofd_packets/00118579 [19:59:40]OFD Sender: To server: pG, [19:59:40]CommunicateWithHost lk.salyk.kg:30040 [19:59:40]ConnectInit lk.salyk.kg [19:59:40]written 0, free lines is 4095 [19:59:40]Connected sock=10 [19: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 39 33 39 0F 01 00 00 B6 2B 07 01 46 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 2C A3 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 33 CF 01 00 35 04 06 00 2F E3 96 2A 61 B4 25 D2 92 EA 92 6B EC 9D [19:59:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 53 D6 47 00 E8 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 39 33 39 10 04 04 00 33 CF 01 00 F4 03 04 00 BC 50 A6 66 B6 04 01 00 00 98 98 85 FC 37 3A 81 55 [19:59:41]CommunicateWithHost err = 0 [19:59:41]CheckOFDResponse [19:59:41]1017 (14) - 77093643461234 [19:59:41]1041 (16) - 0000000000874939 [19:59:41]1040 (4) - 118579 [19:59:41]1012 (4) - 28.07.2024 14:07 [19:59:41]1206 (1) - 0 [19:59:41]OFD Sender: Remove packet 118579 [19:59:41]ProducePacketName [19:59:41]name=ofd_packets/00118579 [19:59:41]NVStorageDeleteData [19:59:41]Write to MH i2c: 01 00 00 CA 1A E4 [19:59:41]Write i2c OK [19:59:41]MH_I2C_Read... [19:59:41]Read from MH i2c: 01 [19:59:41]MH_I2C_Read... [19:59:41]Read from MH i2c: 01 07 00 [19:59:41]MH_I2C_Read... [19:59:41]Read from MH i2c: 01 07 00 CA 1A 00 00 00 00 00 DC 0C D3 [19:59:41]RasterBufferAndPrint [19:59:41]line [19:59:41]line [19:59:41]line [19:59:41]line [19:59:41]line [19:59:41]written 0, free lines is 3298 [19:59:41]MH_Cut [19:59:41]Write to MH i2c: D1 01 00 D1 1A 01 BD [19:59:41]Write i2c OK [19:59:41]MH_I2C_Read... [19:59:41]Read from MH i2c: D1 [19:59:41]MH_I2C_Read... [19:59:41]Read from MH i2c: D1 01 00 [19:59:41]MH_I2C_Read... [19:59:41]Read from MH i2c: D1 01 00 D1 1A 00 BC [19:59:41]Write to MH i2c: 01 00 00 D2 1A EC [19:59:41]Write i2c OK [19:59:41]MH_I2C_Read... [19:59:41]OFD Sender: No OFD packet to send [19:59:41]*** Cut start [19:59:41]*** Partial cut [19:59:41]*** CUTSNS_PIN = 1 [19:59:41]*** CUTSNS_PIN = 0 [19:59:42]*** Brake cut motor [19:59:42]Read from MH i2c: 01 [19:59:42]MH_I2C_Read... [19:59:42]*** Stop cut motor [19:59:42]*** Cut end [19:59:42]Read from MH i2c: 01 07 00 [19:59:42]MH_I2C_Read... [19:59:42]Read from MH i2c: 01 07 00 D2 1A 00 00 00 00 00 FF 0F 01 [19:59:42]process_action close_receipt done [19:59:42]requested_data is exist [19:59:42]produce_requested_data [19:59:42]requested_item fm.sn is exist - process it [19:59:42]wFMCommunicate request_size=4 [19:59:42]MH_SAM_APDU [19:59:42]CAPDU: 80 11 00 00 [19:59:42]Write to MH i2c: E2 08 00 D3 1A 80 11 00 00 00 00 00 00 67 [19:59:42]Write i2c OK [19:59:42]MH_I2C_Read... [19:59:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:42]Read from MH i2c: E2 [19:59:42]MH_I2C_Read... [19:59:42]Read from MH i2c: E2 17 00 [19:59:42]MH_I2C_Read... [19:59:42]Read from MH i2c: E2 17 00 D3 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C2 [19:59:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:59:42]wFMCommunicate OK [19:59:42]requested_item fd.num is exist - process it [19:59:42]SAM_PROTO_GetFieldsCounters [19:59:42]wFMCommunicate request_size=4 [19:59:42]MH_SAM_APDU [19:59:42]CAPDU: 80 13 00 00 [19:59:42]Write to MH i2c: E2 08 00 D4 1A 80 13 00 00 00 00 00 00 6A [19:59:42]Write i2c OK [19:59:42]MH_I2C_Read... [19:59:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:59:42]Read from MH i2c: E2 [19:59:42]MH_I2C_Read... [19:59:42]Read from MH i2c: E2 62 00 [19:59:42]MH_I2C_Read... [19:59:42]Read from MH i2c: E2 62 00 D4 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 33 CF 01 00 0E 04 04 00 B1 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 2E [19: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 33 CF 01 00 0E 04 04 00 B1 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 [19:59:42]wFMCommunicate OK [19:59:42]SAM_PROTO_GetFieldsCounters done [19:59:42]requested_item shift.num is exist - process it [19:59:42]requested_item shift.opened is exist - process it [19:59:42]req_shift_opened [19:59:42]FM_GetShiftState [19:59:42]SAM_PROTO_GetShiftState [19:59:42]wFMCommunicate request_size=4 [19:59:42]MH_SAM_APDU [19:59:42]CAPDU: 80 13 01 00 [19:59:42]Write to MH i2c: E2 08 00 D5 1A 80 13 01 00 00 00 00 00 6C [19:59:42]Write i2c OK [19:59:42]MH_I2C_Read... [19:59:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:42]Read from MH i2c: E2 [19:59:42]MH_I2C_Read... [19:59:42]Read from MH i2c: E2 0E 00 [19:59:42]MH_I2C_Read... [19:59:42]Read from MH i2c: E2 0E 00 D5 1A 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 43 [19:59:42]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [19:59:42]wFMCommunicate OK [19:59:42]SAM_PROTO_GetShiftState done [19:59:42]FM_GetShiftState done [19:59:42]req_shift_opened done [19:59:42]requested_item shift.open_date is exist - process it [19:59:42]req_shift_open_date [19:59:42]req_shift_open_date done [19:59:42]produce_requested_data done [19:59:42]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118579,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [19:59:42]process_action_free close_receipt [19:59:42]json_value_free [19:59:42]json_value_free done [19:59:42]process_json_proto returns [19:59:42]Send response to host [19:59:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118579,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [19:59:42]free response buf [19:59:42]execute_script done [19:59:42]execute_script returns [19:59:42]free content buf [19:59:42]Sock 7.Close socket [19:59:42]Sock 7.Thread stoped [19:59:46]OFD Sender: No OFD packet to send [19:59:51]OFD Sender: No OFD packet to send [19:59:56]OFD Sender: No OFD packet to send [20:00:01]OFD Sender: No OFD packet to send [20:00:06]OFD Sender: No OFD packet to send [20:00:11]OFD Sender: No OFD packet to send [20:00:16]OFD Sender: No OFD packet to send [20:00:21]OFD Sender: No OFD packet to send [20:00:26]OFD Sender: No OFD packet to send [20:00:31]OFD Sender: No OFD packet to send [20:00:36]OFD Sender: No OFD packet to send [20:00:37]accept exits with 9 [20:00:37]New connection [20:00:37]New thread 3067239780 created [20:00:37]Thread 3067383140 joined [20:00:37]Waiting for new connection... [20:00:37] Sock 9.Parse request [20:00:37]Sock 9.Check first char [20:00:37]Sock 9.First char is OK [20:00:37]request: POST /json_proto HTTP/1.0 [20:00:37]Method: POST [20:00:37]URL: /json_proto [20:00:37]Method is POST - this is cgi request [20:00:37]url: /json_proto [20:00:37]query_string will be loaded in cgi processing [20:00:37]execute_cgi json_proto POST (null) [20:00:37]execute_cgi path=json_proto method=POST [20:00:37]POST find Content-Length [20:00:37]Host: 172.17.45.7:8080 [20:00:37]Content-Length: 1227 [20:00:37]Content-Type: application/json [20:00:37] [20:00:37]POST finish read [20:00:37]Found Content-Length = 1227 [20:00: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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949466\u000A28.07.2024 19:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 44\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4084396/4084393/4084394/4084395/4084397\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:37]execute_script... [20:00: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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949466\u000A28.07.2024 19:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 44\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4084396/4084393/4084394/4084395/4084397\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:37]POST & json_proto [20:00:37]process_json_proto [20:00:37]json parsed OK: [20:00:37]protocol is kg_v1.0 [20:00:37]action value=print_text [20:00:37]process_action print_text [20:00:37]cmd_print_text [20:00:37]ExternCall_PrintAddStr [20:00:37]wPrintStart [20:00:37]Write to MH i2c: 01 00 00 D6 1A F0 [20:00:37]Write i2c OK [20:00:37]MH_I2C_Read... [20:00:37]Read from MH i2c: 01 [20:00:37]MH_I2C_Read... [20:00:37]Read from MH i2c: 01 07 00 [20:00:37]MH_I2C_Read... [20:00:37]Read from MH i2c: 01 07 00 D6 1A 00 00 00 00 00 FF 0F 05 [20:00:37]RasterBufferAndPrint [20:00:37]line *****ТОВАРНЫЙ ЧЕК***** [20:00:37]line АЗС-134 [20:00:37]line Партнер нефть [20:00:37]line 02508201610067 [20:00:37]line Кассир : Хошимов З. [20:00:37]line Счет N : (1)949466 [20:00:37]line 28.07.2024 19:58 [20:00:37]line ПРОДАЖА [20:00:37]line ТРК (МРК, ГНК): 44 [20:00:37]line Вид ГСМ : 2710194800 [20:00:37]line ДТ-К-5 [20:00:37]line 100.000 x 76.20 [20:00:37]line ИТОГ: 7620.00 [20:00:37]line Тип оплаты: Талоны: Топливные Талоны [20:00:37]line 4084396/4084393/4084394/4084395/4084397 [20:00:37]line ______________________ [20:00:37]line (подпись) [20:00:37]written 0, free lines is 4095 [20:00:37]Write to MH i2c: 01 00 00 EB 1A 05 [20:00:37]Write i2c OK [20:00:37]MH_I2C_Read... [20:00:37]Read from MH i2c: 01 [20:00:37]MH_I2C_Read... [20:00:37]Read from MH i2c: 01 07 00 [20:00:37]MH_I2C_Read... [20:00:37]Read from MH i2c: 01 07 00 EB 1A 00 00 00 00 00 09 0E 23 [20:00:37]RasterBufferAndPrint [20:00:37]line [20:00:37]line [20:00:37]line [20:00:37]line [20:00:37]line [20:00:37]written 0, free lines is 3595 [20:00:37]MH_Cut [20:00:37]Write to MH i2c: D1 01 00 F2 1A 01 DE [20:00:37]Write i2c OK [20:00:37]MH_I2C_Read... [20:00:37]Read from MH i2c: D1 [20:00:37]MH_I2C_Read... [20:00:37]Read from MH i2c: D1 01 00 [20:00:37]MH_I2C_Read... [20:00:37]Read from MH i2c: D1 01 00 F2 1A 00 DD [20:00:37]Write to MH i2c: 01 00 00 F3 1A 0D [20:00:37]Write i2c OK [20:00:37]MH_I2C_Read... [20:00:37]*** Cut start [20:00:37]*** Partial cut [20:00:37]*** CUTSNS_PIN = 1 [20:00:37]*** CUTSNS_PIN = 0 [20:00:38]*** Brake cut motor [20:00:38]Read from MH i2c: 01 [20:00:38]MH_I2C_Read... [20:00:38]*** Stop cut motor [20:00:38]*** Cut end [20:00:38]Read from MH i2c: 01 07 00 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: 01 07 00 F3 1A 00 00 00 00 00 FF 0F 22 [20:00:38]process_action print_text done [20:00:38]requested_data is exist [20:00:38]produce_requested_data [20:00:38]requested_item fm.sn is exist - process it [20:00:38]wFMCommunicate request_size=4 [20:00:38]MH_SAM_APDU [20:00:38]CAPDU: 80 11 00 00 [20:00:38]Write to MH i2c: E2 08 00 F4 1A 80 11 00 00 00 00 00 00 88 [20:00:38]Write i2c OK [20:00:38]MH_I2C_Read... [20:00:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:38]Read from MH i2c: E2 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: E2 17 00 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: E2 17 00 F4 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E3 [20:00:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:00:38]wFMCommunicate OK [20:00:38]requested_item fd.num is exist - process it [20:00:38]SAM_PROTO_GetFieldsCounters [20:00:38]wFMCommunicate request_size=4 [20:00:38]MH_SAM_APDU [20:00:38]CAPDU: 80 13 00 00 [20:00:38]Write to MH i2c: E2 08 00 F5 1A 80 13 00 00 00 00 00 00 8B [20:00:38]Write i2c OK [20:00:38]MH_I2C_Read... [20:00:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:38]Read from MH i2c: E2 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: E2 62 00 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: E2 62 00 F5 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 33 CF 01 00 0E 04 04 00 B1 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 4F [20:00:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 33 CF 01 00 0E 04 04 00 B1 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 [20:00:38]wFMCommunicate OK [20:00:38]SAM_PROTO_GetFieldsCounters done [20:00:38]requested_item shift.num is exist - process it [20:00:38]requested_item shift.opened is exist - process it [20:00:38]req_shift_opened [20:00:38]FM_GetShiftState [20:00:38]SAM_PROTO_GetShiftState [20:00:38]wFMCommunicate request_size=4 [20:00:38]MH_SAM_APDU [20:00:38]CAPDU: 80 13 01 00 [20:00:38]Write to MH i2c: E2 08 00 F6 1A 80 13 01 00 00 00 00 00 8D [20:00:38]Write i2c OK [20:00:38]MH_I2C_Read... [20:00:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:38]Read from MH i2c: E2 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: E2 0E 00 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: E2 0E 00 F6 1A 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 64 [20:00:38]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [20:00:38]wFMCommunicate OK [20:00:38]SAM_PROTO_GetShiftState done [20:00:38]FM_GetShiftState done [20:00:38]req_shift_opened done [20:00:38]requested_item shift.open_date is exist - process it [20:00:38]req_shift_open_date [20:00:38]req_shift_open_date done [20:00:38]produce_requested_data done [20:00:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118579,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [20:00:38]process_action_free print_text [20:00:38]json_value_free [20:00:38]json_value_free done [20:00:38]process_json_proto returns [20:00:38]Send response to host [20:00:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118579,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [20:00:38]free response buf [20:00:38]execute_script done [20:00:38]execute_script returns [20:00:38]free content buf [20:00:38]Sock 9.Close socket [20:00:38]Sock 9.Thread stoped [20:00:41]OFD Sender: No OFD packet to send [20:00:46]OFD Sender: No OFD packet to send [20:00:51]OFD Sender: No OFD packet to send [20:00:56]OFD Sender: No OFD packet to send [20:01:01]accept exits with 7 [20:01:01]New connection [20:01:01]New thread 3067383140 created [20:01:01]Thread 3067239780 joined [20:01:01]Waiting for new connection... [20:01:01] Sock 7.Parse request [20:01:01]Sock 7.Check first char [20:01:01]Sock 7.First char is OK [20:01:01]request: POST /json_proto HTTP/1.0 [20:01:01]Method: POST [20:01:01]URL: /json_proto [20:01:01]Method is POST - this is cgi request [20:01:01]url: /json_proto [20:01:01]query_string will be loaded in cgi processing [20:01:01]execute_cgi json_proto POST (null) [20:01:01]execute_cgi path=json_proto method=POST [20:01:01]POST find Content-Length [20:01:01]Host: 172.17.45.7:8080 [20:01:01]Content-Length: 820 [20:01:01]Content-Type: application/json [20:01:01] [20:01:01]POST finish read [20:01:01]Found Content-Length = 820 [20:01:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 118.120, "sum" : 9000.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 9000.00, "payments": [ { "type": 1, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:01]execute_script... [20:01:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 118.120, "sum" : 9000.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 9000.00, "payments": [ { "type": 1, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:01]POST & json_proto [20:01:01]process_json_proto [20:01:01]json parsed OK: [20:01:01]protocol is kg_v1.0 [20:01:01]action value=close_receipt [20:01:01]process_action close_receipt [20:01:01]cmd_close_receipt [20:01:01]MH_GetDate [20:01:01]Write to MH i2c: F0 00 00 F7 1A 00 [20:01:01]Write i2c OK [20:01:01]MH_I2C_Read... [20:01:01]Read from MH i2c: F0 [20:01:01]MH_I2C_Read... [20:01:01]Read from MH i2c: F0 09 00 [20:01:01]MH_I2C_Read... [20:01:01]Read from MH i2c: F0 09 00 F7 1A 00 7F A3 A6 66 90 0F 3E 66 7A [20:01:01]GetLastDocTimeStamp 1722196780 [20:01:01]current date 1722196863 [20:01:01]FM_GetShiftState [20:01:01]SAM_PROTO_GetShiftState [20:01:01]wFMCommunicate request_size=4 [20:01:01]MH_SAM_APDU [20:01:01]CAPDU: 80 13 01 00 [20:01:01]Write to MH i2c: E2 08 00 F8 1A 80 13 01 00 00 00 00 00 8F [20:01:01]Write i2c OK [20:01:01]MH_I2C_Read... [20:01:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:01]Read from MH i2c: E2 [20:01:01]MH_I2C_Read... [20:01:01]Read from MH i2c: E2 0E 00 [20:01:01]MH_I2C_Read... [20:01:01]Read from MH i2c: E2 0E 00 F8 1A 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 66 [20:01:01]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [20:01:01]wFMCommunicate OK [20:01:01]SAM_PROTO_GetShiftState done [20:01:01]FM_GetShiftState done [20:01:01]opened in 1722125364 [20:01:01]opened+sec_in_day 1722211764 [20:01:01]quantity*price = 900074 [20:01:01]sum+1 = 900075 [20:01:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 9000.00 НСП 1% : 79.65 НДС 12% : 955.83 Наличными: 0.00 Безнал.: 9000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 249 28.07.2024 20:01 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118580 ФПД: 34992735592148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T200103&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118580&fm=34992735592148&tin=02508201610067®Number=0000000000092660&sum=900000 [20:01:02]StoreToDocumentArchive [20:01:02]shift 433 fd 118580 [20:01:02]save to /storage/0433/doc_00118580 [20:01:02]save last doc name /storage/0433/doc_00118580 to /storage/kkm_last_doc_name [20:01:02]save OK [20:01:02]Clear old archive folders... [20:01:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:01:02]tlvbuf is 01E8A0D0 [20:01:02]SAM_PROTO_ClearQueue [20:01:02]wFMCommunicate request_size=4 [20:01:02]MH_SAM_APDU [20:01:02]CAPDU: 80 09 00 00 [20:01:02]Write to MH i2c: E2 08 00 05 1B 80 09 00 00 00 00 00 00 92 [20:01:02]Write i2c OK [20:01:02]MH_I2C_Read... [20:01:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:01:02]Read from MH i2c: E2 [20:01:02]MH_I2C_Read... [20:01:02]Read from MH i2c: E2 03 00 [20:01:02]MH_I2C_Read... [20:01:02]Read from MH i2c: E2 03 00 05 1B 00 90 00 94 [20:01:02]RAPDU: 90 00 [20:01:02]wFMCommunicate OK [20:01:02]SAM_PROTO_ClearQueue done [20:01:02]KKMCreateOFDPacket [20:01:02]OFDProtocolAddRootSTLVToBuf [20:01:02]FM_MakeSignedData [20:01:02]FM_MakeSignedData [20:01:02]SAM_PROTO_SignData [20:01:02]wFMCommunicate request_size=4 [20:01:02]MH_SAM_APDU [20:01:02]CAPDU: 80 0D 01 02 [20:01:02]Write to MH i2c: E2 08 00 06 1B 80 0D 01 02 00 00 00 00 9A [20:01:02]Write i2c OK [20:01:02]MH_I2C_Read... [20:01:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:01:02]Read from MH i2c: E2 [20:01:02]MH_I2C_Read... [20:01:02]Read from MH i2c: E2 03 00 [20:01:02]MH_I2C_Read... [20:01:02]Read from MH i2c: E2 03 00 06 1B 00 90 00 95 [20:01:02]RAPDU: 90 00 [20:01:02]wFMCommunicate OK [20:01:02]wFMCommunicate request_size=255 [20:01:02]MH_SAM_APDU [20:01:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 7F A3 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 34 CF 01 00 35 04 06 00 1F D3 61 93 [20:01:02]Write to MH i2c: E2 02 01 07 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 7F A3 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 34 CF 01 00 35 04 06 00 1F D3 61 93 00 00 6F [20:01:02]Write i2c OK [20:01:02]MH_I2C_Read... [20:01:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:02]Read from MH i2c: E2 [20:01:02]MH_I2C_Read... [20:01:02]Read from MH i2c: E2 03 00 [20:01:02]MH_I2C_Read... [20:01:02]Read from MH i2c: E2 03 00 07 1B 00 90 00 96 [20:01:02]RAPDU: 90 00 [20:01:02]wFMCommunicate OK [20:01:02]wFMCommunicate request_size=7 [20:01:02]MH_SAM_APDU [20:01:02]CAPDU: 80 0D 02 02 02 1E D4 [20:01:02]Write to MH i2c: E2 0A 00 08 1B 80 0D 02 02 02 00 1E D4 00 00 93 [20:01:02]Write i2c OK [20:01:02]MH_I2C_Read... [20:01:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:03]Read from MH i2c: E2 [20:01:03]MH_I2C_Read... [20:01:03]Read from MH i2c: E2 03 00 [20:01:03]MH_I2C_Read... [20:01:03]Read from MH i2c: E2 03 00 08 1B 00 90 00 97 [20:01:03]RAPDU: 90 00 [20:01:03]wFMCommunicate OK [20:01:03]wFMCommunicate request_size=4 [20:01:03]MH_SAM_APDU [20:01:03]CAPDU: 80 0D 03 02 [20:01:03]Write to MH i2c: E2 08 00 09 1B 80 0D 03 02 00 00 00 00 9F [20:01:03]Write i2c OK [20:01:03]MH_I2C_Read... [20:01:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:01:03]Read from MH i2c: E2 [20:01:03]MH_I2C_Read... [20:01:03]Read from MH i2c: E2 0B 00 [20:01:03]MH_I2C_Read... [20:01:03]Read from MH i2c: E2 0B 00 09 1B 00 A7 0D EF CB 57 91 79 17 90 00 86 [20:01:03]RAPDU: A7 0D EF CB 57 91 79 17 90 00 [20:01:03]wFMCommunicate OK [20:01:03]SAM_PROTO_SignData done [20:01:03]FM_MakeSignedData done [20:01:03]CreateOFDProtocolMessage [20:01:03]wFMCommunicate request_size=4 [20:01:03]MH_SAM_APDU [20:01:03]CAPDU: 80 11 00 00 [20:01:03]Write to MH i2c: E2 08 00 0A 1B 80 11 00 00 00 00 00 00 9F [20:01:03]Write i2c OK [20:01:03]MH_I2C_Read... [20:01:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:03]Read from MH i2c: E2 [20:01:03]MH_I2C_Read... [20:01:03]Read from MH i2c: E2 17 00 [20:01:03]MH_I2C_Read... [20:01:03]Read from MH i2c: E2 17 00 0A 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FA [20:01:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:01:03]wFMCommunicate OK [20:01:03]CreateOFDProtocolMessage done [20:01:03]OFDSenderStorePacket 118580 [20:01:03]StoreOFDPacket docnum=118580 [20:01:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 EA 53 04 01 2D 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 7F A3 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 34 CF 01 00 35 04 06 00 1F D3 61 93 1E D4 A7 0D EF CB 57 91 79 17 [20:01:03]CheckFolder [20:01:03]dirname=/storage/ofd_packets [20:01:03]CheckFolder done [20:01:03]ProducePacketName [20:01:03]name=ofd_packets/00118580 [20:01:03]NVStorageSaveData ofd_packets/00118580 [20:01:03]File name is /storage/ofd_packets/00118580 [20:01:03]Write 298 bytes [20:01:03]NVStorageSaveData done [20:01:03]OFDSenderStorePacket done [20:01:03]KKMCreateOFDPacket done [20:01:03]NVStorageSaveData kkm_last_timestamp [20:01:03]File name is /storage/kkm_last_timestamp [20:01:03]Write 4 bytes [20:01:03]NVStorageSaveData done [20:01:03]ExternCall_PrintAddStr [20:01:03]wPrintStart [20:01:03]Write to MH i2c: 01 00 00 0B 1B 26 [20:01:03]Write i2c OK [20:01:03]MH_I2C_Read... [20:01:03]Read from MH i2c: 01 [20:01:03]MH_I2C_Read... [20:01:03]Read from MH i2c: 01 07 00 [20:01:03]MH_I2C_Read... [20:01:03]Read from MH i2c: 01 07 00 0B 1B 00 00 00 00 00 FF 0F 3B [20:01:03]RasterBufferAndPrint [20:01:03]line Счет N : (1)949464 [20:01:03]line ИНН: 02508201610067 [20:01:03]line Контрольно-Кассовый Чек [20:01:03]line ПРОДАЖА [20:01:03]line ТРК (МРК, ГНК) : 21 [20:01:03]line Товар: 2710194800 [20:01:03]line ДТ-К-5 [20:01:03]line 118.120 * 76.20 [20:01:03]line = 9000.74 [20:01:03]line НДС 12% НСП 1% [20:01:03]line > о реализуемом товаре [20:01:03]line ОКРУГЛЕНИЕ: -0.74 [20:01:03]line ИТОГО: 9000.00 [20:01:03]line НСП 1% : 79.65 [20:01:03]line НДС 12% : 955.83 [20:01:03]line Наличными: 0.00 [20:01:03]line Безнал.: 9000.00 [20:01:03]line Место: АЗС № 134 "Партнер Нефть" [20:01:03]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:01:03]line СНО: Общий режим [20:01:03]line Чек 249 28.07.2024 20:01 [20:01:03]line Смена: 433 ФФД: 1.0 [20:01:03]line ЗНМ: 0300000044 [20:01:03]line РНМ: 0000000000092660 [20:01:03]line Версия ККМ: 001 [20:01:03]line Платежная система: O! деньги [20:01:03]line ФМ: 0000000000874939 [20:01:03]line ФД: 118580 [20:01:03]line ФПД: 34992735592148 [20:01:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T200103&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118580&fm=34992735592148&tin=02508201610067®Number=0000000000092660&sum=900000 [20:01:03]OFD Sender: Processing packet 118580 [packets to send 86, broken 85] [20:01:03]ProducePacketName [20:01:03]name=ofd_packets/00118580 [20:01:03]OFD Sender: To server: pG, [20:01:03]CommunicateWithHost lk.salyk.kg:30040 [20:01:03]ConnectInit lk.salyk.kg [20:01:03]written 0, free lines is 4095 [20:01:03]Connected sock=11 [20:01:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 EA 53 04 01 2D 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 7F A3 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 34 CF 01 00 35 04 06 00 1F D3 61 93 1E D4 A7 0D EF CB 57 91 79 17 [20:01:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5D 33 47 00 5A 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 39 33 39 10 04 04 00 34 CF 01 00 F4 03 04 00 0F 51 A6 66 B6 04 01 00 00 D8 0E 29 80 3F FD E7 1E [20:01:03]CommunicateWithHost err = 0 [20:01:03]CheckOFDResponse [20:01:03]1017 (14) - 77093643461234 [20:01:03]1041 (16) - 0000000000874939 [20:01:03]1040 (4) - 118580 [20:01:03]1012 (4) - 28.07.2024 14:09 [20:01:03]1206 (1) - 0 [20:01:03]OFD Sender: Remove packet 118580 [20:01:03]ProducePacketName [20:01:03]name=ofd_packets/00118580 [20:01:03]NVStorageDeleteData [20:01:03]Write to MH i2c: 01 00 00 35 1B 50 [20:01:03]Write i2c OK [20:01:03]MH_I2C_Read... [20:01:03]Read from MH i2c: 01 [20:01:03]MH_I2C_Read... [20:01:03]Read from MH i2c: 01 07 00 [20:01:03]MH_I2C_Read... [20:01:03]Read from MH i2c: 01 07 00 35 1B 00 00 00 00 00 EE 0C 51 [20:01:03]RasterBufferAndPrint [20:01:03]line [20:01:03]line [20:01:03]line [20:01:03]line [20:01:03]line [20:01:03]written 0, free lines is 3317 [20:01:03]MH_Cut [20:01:03]Write to MH i2c: D1 01 00 3C 1B 01 29 [20:01:03]Write i2c OK [20:01:03]MH_I2C_Read... [20:01:03]Read from MH i2c: D1 [20:01:03]MH_I2C_Read... [20:01:03]Read from MH i2c: D1 01 00 [20:01:03]MH_I2C_Read... [20:01:03]Read from MH i2c: D1 01 00 3C 1B 00 28 [20:01:03]Write to MH i2c: 01 00 00 3D 1B 58 [20:01:03]Write i2c OK [20:01:03]MH_I2C_Read... [20:01:04]OFD Sender: No OFD packet to send [20:01:04]*** Cut start [20:01:04]*** Partial cut [20:01:04]*** CUTSNS_PIN = 1 [20:01:04]*** CUTSNS_PIN = 0 [20:01:04]*** Brake cut motor [20:01:05]Read from MH i2c: 01 [20:01:05]MH_I2C_Read... [20:01:05]*** Stop cut motor [20:01:05]*** Cut end [20:01:05]Read from MH i2c: 01 07 00 [20:01:05]MH_I2C_Read... [20:01:05]Read from MH i2c: 01 07 00 3D 1B 00 00 00 00 00 FF 0F 6D [20:01:05]process_action close_receipt done [20:01:05]requested_data is exist [20:01:05]produce_requested_data [20:01:05]requested_item fm.sn is exist - process it [20:01:05]wFMCommunicate request_size=4 [20:01:05]MH_SAM_APDU [20:01:05]CAPDU: 80 11 00 00 [20:01:05]Write to MH i2c: E2 08 00 3E 1B 80 11 00 00 00 00 00 00 D3 [20:01:05]Write i2c OK [20:01:05]MH_I2C_Read... [20:01:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:05]Read from MH i2c: E2 [20:01:05]MH_I2C_Read... [20:01:05]Read from MH i2c: E2 17 00 [20:01:05]MH_I2C_Read... [20:01:05]Read from MH i2c: E2 17 00 3E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2E [20:01:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:01:05]wFMCommunicate OK [20:01:05]requested_item fd.num is exist - process it [20:01:05]SAM_PROTO_GetFieldsCounters [20:01:05]wFMCommunicate request_size=4 [20:01:05]MH_SAM_APDU [20:01:05]CAPDU: 80 13 00 00 [20:01:05]Write to MH i2c: E2 08 00 3F 1B 80 13 00 00 00 00 00 00 D6 [20:01:05]Write i2c OK [20:01:05]MH_I2C_Read... [20:01:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:01:05]Read from MH i2c: E2 [20:01:05]MH_I2C_Read... [20:01:05]Read from MH i2c: E2 62 00 [20:01:05]MH_I2C_Read... [20:01:05]Read from MH i2c: E2 62 00 3F 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 34 CF 01 00 0E 04 04 00 B1 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 9E [20:01:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 34 CF 01 00 0E 04 04 00 B1 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 [20:01:05]wFMCommunicate OK [20:01:05]SAM_PROTO_GetFieldsCounters done [20:01:05]requested_item shift.num is exist - process it [20:01:05]requested_item shift.opened is exist - process it [20:01:05]req_shift_opened [20:01:05]FM_GetShiftState [20:01:05]SAM_PROTO_GetShiftState [20:01:05]wFMCommunicate request_size=4 [20:01:05]MH_SAM_APDU [20:01:05]CAPDU: 80 13 01 00 [20:01:05]Write to MH i2c: E2 08 00 40 1B 80 13 01 00 00 00 00 00 D8 [20:01:05]Write i2c OK [20:01:05]MH_I2C_Read... [20:01:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:05]Read from MH i2c: E2 [20:01:05]MH_I2C_Read... [20:01:05]Read from MH i2c: E2 0E 00 [20:01:05]MH_I2C_Read... [20:01:05]Read from MH i2c: E2 0E 00 40 1B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 AF [20:01:05]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [20:01:05]wFMCommunicate OK [20:01:05]SAM_PROTO_GetShiftState done [20:01:05]FM_GetShiftState done [20:01:05]req_shift_opened done [20:01:05]requested_item shift.open_date is exist - process it [20:01:05]req_shift_open_date [20:01:05]req_shift_open_date done [20:01:05]produce_requested_data done [20:01:05]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118580,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [20:01:05]process_action_free close_receipt [20:01:05]json_value_free [20:01:05]json_value_free done [20:01:05]process_json_proto returns [20:01:05]Send response to host [20:01:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118580,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [20:01:05]free response buf [20:01:05]execute_script done [20:01:05]execute_script returns [20:01:05]free content buf [20:01:05]Sock 7.Close socket [20:01:05]Sock 7.Thread stoped [20:01:08]accept exits with 9 [20:01:08]New connection [20:01:08]New thread 3067239780 created [20:01:08]Thread 3067383140 joined [20:01:08]Waiting for new connection... [20:01:08] Sock 9.Parse request [20:01:08]Sock 9.Check first char [20:01:08]Sock 9.First char is OK [20:01:08]request: POST /json_proto HTTP/1.0 [20:01:08]Method: POST [20:01:08]URL: /json_proto [20:01:08]Method is POST - this is cgi request [20:01:08]url: /json_proto [20:01:08]query_string will be loaded in cgi processing [20:01:08]execute_cgi json_proto POST (null) [20:01:08]execute_cgi path=json_proto method=POST [20:01:08]POST find Content-Length [20:01:08]Host: 172.17.45.7:8080 [20:01:08]Content-Length: 820 [20:01:08]Content-Type: application/json [20:01:08] [20:01:08]POST finish read [20:01:08]Found Content-Length = 820 [20:01:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 118.120, "sum" : 9000.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 9000.00, "payments": [ { "type": 1, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:08]execute_script... [20:01:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 118.120, "sum" : 9000.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 9000.00, "payments": [ { "type": 1, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:08]POST & json_proto [20:01:08]process_json_proto [20:01:08]json parsed OK: [20:01:08]protocol is kg_v1.0 [20:01:08]action value=close_receipt [20:01:08]process_action close_receipt [20:01:08]cmd_close_receipt [20:01:08]MH_GetDate [20:01:08]Write to MH i2c: F0 00 00 41 1B 4B [20:01:08]Write i2c OK [20:01:08]MH_I2C_Read... [20:01:08]Read from MH i2c: F0 [20:01:08]MH_I2C_Read... [20:01:08]Read from MH i2c: F0 09 00 [20:01:08]MH_I2C_Read... [20:01:08]Read from MH i2c: F0 09 00 41 1B 00 86 A3 A6 66 90 0F 3E 66 CC [20:01:08]GetLastDocTimeStamp 1722196863 [20:01:08]current date 1722196870 [20:01:08]FM_GetShiftState [20:01:08]SAM_PROTO_GetShiftState [20:01:08]wFMCommunicate request_size=4 [20:01:08]MH_SAM_APDU [20:01:08]CAPDU: 80 13 01 00 [20:01:08]Write to MH i2c: E2 08 00 42 1B 80 13 01 00 00 00 00 00 DA [20:01:08]Write i2c OK [20:01:08]MH_I2C_Read... [20:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:08]Read from MH i2c: E2 [20:01:08]MH_I2C_Read... [20:01:08]Read from MH i2c: E2 0E 00 [20:01:08]MH_I2C_Read... [20:01:08]Read from MH i2c: E2 0E 00 42 1B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 B1 [20:01:08]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [20:01:08]wFMCommunicate OK [20:01:08]SAM_PROTO_GetShiftState done [20:01:08]FM_GetShiftState done [20:01:08]opened in 1722125364 [20:01:08]opened+sec_in_day 1722211764 [20:01:08]quantity*price = 900074 [20:01:08]sum+1 = 900075 [20:01:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 9000.00 НСП 1% : 79.65 НДС 12% : 955.83 Наличными: 0.00 Безнал.: 9000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 250 28.07.2024 20:01 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118581 ФПД: 209609439339352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T200110&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118581&fm=209609439339352&tin=02508201610067®Number=0000000000092660&sum=900000 [20:01:09]StoreToDocumentArchive [20:01:09]shift 433 fd 118581 [20:01:09]save to /storage/0433/doc_00118581 [20:01:09]save last doc name /storage/0433/doc_00118581 to /storage/kkm_last_doc_name [20:01:09]save OK [20:01:09]Clear old archive folders... [20:01:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:01:09]tlvbuf is 01EEE680 [20:01:09]SAM_PROTO_ClearQueue [20:01:09]wFMCommunicate request_size=4 [20:01:09]MH_SAM_APDU [20:01:09]CAPDU: 80 09 00 00 [20:01:09]Write to MH i2c: E2 08 00 4F 1B 80 09 00 00 00 00 00 00 DC [20:01:09]Write i2c OK [20:01:09]MH_I2C_Read... [20:01:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:01:09]Read from MH i2c: E2 [20:01:09]MH_I2C_Read... [20:01:09]Read from MH i2c: E2 03 00 [20:01:09]MH_I2C_Read... [20:01:09]Read from MH i2c: E2 03 00 4F 1B 00 90 00 DE [20:01:09]RAPDU: 90 00 [20:01:09]wFMCommunicate OK [20:01:09]SAM_PROTO_ClearQueue done [20:01:09]KKMCreateOFDPacket [20:01:09]OFDProtocolAddRootSTLVToBuf [20:01:09]FM_MakeSignedData [20:01:09]FM_MakeSignedData [20:01:09]SAM_PROTO_SignData [20:01:09]wFMCommunicate request_size=4 [20:01:09]MH_SAM_APDU [20:01:09]CAPDU: 80 0D 01 02 [20:01:09]Write to MH i2c: E2 08 00 50 1B 80 0D 01 02 00 00 00 00 E4 [20:01:09]Write i2c OK [20:01:09]MH_I2C_Read... [20:01:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:01:10]Read from MH i2c: E2 [20:01:10]MH_I2C_Read... [20:01:10]Read from MH i2c: E2 03 00 [20:01:10]MH_I2C_Read... [20:01:10]Read from MH i2c: E2 03 00 50 1B 00 90 00 DF [20:01:10]RAPDU: 90 00 [20:01:10]wFMCommunicate OK [20:01:10]wFMCommunicate request_size=255 [20:01:10]MH_SAM_APDU [20:01:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 86 A3 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 35 CF 01 00 35 04 06 00 BE A3 80 2C [20:01:10]Write to MH i2c: E2 02 01 51 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 86 A3 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 35 CF 01 00 35 04 06 00 BE A3 80 2C 00 00 E9 [20:01:10]Write i2c OK [20:01:10]MH_I2C_Read... [20:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:10]Read from MH i2c: E2 [20:01:10]MH_I2C_Read... [20:01:10]Read from MH i2c: E2 03 00 [20:01:10]MH_I2C_Read... [20:01:10]Read from MH i2c: E2 03 00 51 1B 00 90 00 E0 [20:01:10]RAPDU: 90 00 [20:01:10]wFMCommunicate OK [20:01:10]wFMCommunicate request_size=7 [20:01:10]MH_SAM_APDU [20:01:10]CAPDU: 80 0D 02 02 02 63 58 [20:01:10]Write to MH i2c: E2 0A 00 52 1B 80 0D 02 02 02 00 63 58 00 00 A6 [20:01:10]Write i2c OK [20:01:10]MH_I2C_Read... [20:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:10]Read from MH i2c: E2 [20:01:10]MH_I2C_Read... [20:01:10]Read from MH i2c: E2 03 00 [20:01:10]MH_I2C_Read... [20:01:10]Read from MH i2c: E2 03 00 52 1B 00 90 00 E1 [20:01:10]RAPDU: 90 00 [20:01:10]wFMCommunicate OK [20:01:10]wFMCommunicate request_size=4 [20:01:10]MH_SAM_APDU [20:01:10]CAPDU: 80 0D 03 02 [20:01:10]Write to MH i2c: E2 08 00 53 1B 80 0D 03 02 00 00 00 00 E9 [20:01:10]Write i2c OK [20:01:10]MH_I2C_Read... [20:01:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:01:10]Read from MH i2c: E2 [20:01:10]MH_I2C_Read... [20:01:10]Read from MH i2c: E2 0B 00 [20:01:10]MH_I2C_Read... [20:01:10]Read from MH i2c: E2 0B 00 53 1B 00 0F AC FF AE 15 E0 8A C2 90 00 93 [20:01:10]RAPDU: 0F AC FF AE 15 E0 8A C2 90 00 [20:01:10]wFMCommunicate OK [20:01:10]SAM_PROTO_SignData done [20:01:10]FM_MakeSignedData done [20:01:10]CreateOFDProtocolMessage [20:01:10]wFMCommunicate request_size=4 [20:01:10]MH_SAM_APDU [20:01:10]CAPDU: 80 11 00 00 [20:01:10]Write to MH i2c: E2 08 00 54 1B 80 11 00 00 00 00 00 00 E9 [20:01:10]Write i2c OK [20:01:10]MH_I2C_Read... [20:01:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:10]Read from MH i2c: E2 [20:01:10]MH_I2C_Read... [20:01:10]Read from MH i2c: E2 17 00 [20:01:10]MH_I2C_Read... [20:01:10]Read from MH i2c: E2 17 00 54 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 44 [20:01:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:01:10]wFMCommunicate OK [20:01:10]CreateOFDProtocolMessage done [20:01:10]OFDSenderStorePacket 118581 [20:01:10]StoreOFDPacket docnum=118581 [20:01:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F8 E1 04 01 99 BA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 86 A3 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 35 CF 01 00 35 04 06 00 BE A3 80 2C 63 58 0F AC FF AE 15 E0 8A C2 [20:01:10]CheckFolder [20:01:10]dirname=/storage/ofd_packets [20:01:10]CheckFolder done [20:01:10]ProducePacketName [20:01:10]name=ofd_packets/00118581 [20:01:10]NVStorageSaveData ofd_packets/00118581 [20:01:10]File name is /storage/ofd_packets/00118581 [20:01:10]Write 298 bytes [20:01:10]NVStorageSaveData done [20:01:10]OFDSenderStorePacket done [20:01:10]KKMCreateOFDPacket done [20:01:10]NVStorageSaveData kkm_last_timestamp [20:01:10]File name is /storage/kkm_last_timestamp [20:01:10]Write 4 bytes [20:01:10]NVStorageSaveData done [20:01:10]ExternCall_PrintAddStr [20:01:10]wPrintStart [20:01:10]Write to MH i2c: 01 00 00 55 1B 70 [20:01:10]Write i2c OK [20:01:10]MH_I2C_Read... [20:01:10]Read from MH i2c: 01 [20:01:10]MH_I2C_Read... [20:01:10]Read from MH i2c: 01 07 00 [20:01:10]MH_I2C_Read... [20:01:10]Read from MH i2c: 01 07 00 55 1B 00 00 00 00 00 FF 0F 85 [20:01:10]RasterBufferAndPrint [20:01:10]line Счет N : (1)949465 [20:01:10]line ИНН: 02508201610067 [20:01:10]line Контрольно-Кассовый Чек [20:01:10]line ПРОДАЖА [20:01:10]line ТРК (МРК, ГНК) : 11 [20:01:10]line Товар: 2710194800 [20:01:10]line ДТ-К-5 [20:01:10]line 118.120 * 76.20 [20:01:10]line = 9000.74 [20:01:10]line НДС 12% НСП 1% [20:01:10]line > о реализуемом товаре [20:01:10]line ОКРУГЛЕНИЕ: -0.74 [20:01:10]line ИТОГО: 9000.00 [20:01:10]line НСП 1% : 79.65 [20:01:10]line НДС 12% : 955.83 [20:01:10]line Наличными: 0.00 [20:01:10]line Безнал.: 9000.00 [20:01:10]line Место: АЗС № 134 "Партнер Нефть" [20:01:10]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:01:10]line СНО: Общий режим [20:01:10]line Чек 250 28.07.2024 20:01 [20:01:10]line Смена: 433 ФФД: 1.0 [20:01:10]line ЗНМ: 0300000044 [20:01:10]line РНМ: 0000000000092660 [20:01:10]line Версия ККМ: 001 [20:01:10]line Платежная система: O! деньги [20:01:10]line ФМ: 0000000000874939 [20:01:10]line ФД: 118581 [20:01:10]line ФПД: 209609439339352 [20:01:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T200110&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118581&fm=209609439339352&tin=02508201610067®Number=0000000000092660&sum=900000 [20:01:10]written 0, free lines is 4095 [20:01:10]OFD Sender: Processing packet 118581 [packets to send 86, broken 85] [20:01:10]ProducePacketName [20:01:10]name=ofd_packets/00118581 [20:01:10]OFD Sender: To server: pG, [20:01:10]CommunicateWithHost lk.salyk.kg:30040 [20:01:10]ConnectInit lk.salyk.kg [20:01:10]Connected sock=7 [20:01:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F8 E1 04 01 99 BA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 86 A3 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 35 CF 01 00 35 04 06 00 BE A3 80 2C 63 58 0F AC FF AE 15 E0 8A C2 [20:01:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 CB 93 47 00 E2 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 39 33 39 10 04 04 00 35 CF 01 00 F4 03 04 00 16 51 A6 66 B6 04 01 00 00 D0 60 AE AE 7E D7 1F 31 [20:01:10]CommunicateWithHost err = 0 [20:01:10]CheckOFDResponse [20:01:10]1017 (14) - 77093643461234 [20:01:10]1041 (16) - 0000000000874939 [20:01:10]1040 (4) - 118581 [20:01:10]1012 (4) - 28.07.2024 14:09 [20:01:10]1206 (1) - 0 [20:01:10]OFD Sender: Remove packet 118581 [20:01:10]ProducePacketName [20:01:10]name=ofd_packets/00118581 [20:01:10]NVStorageDeleteData [20:01:10]Write to MH i2c: 01 00 00 7F 1B 9A [20:01:10]Write i2c OK [20:01:10]MH_I2C_Read... [20:01:10]Read from MH i2c: 01 [20:01:10]MH_I2C_Read... [20:01:10]Read from MH i2c: 01 07 00 [20:01:10]MH_I2C_Read... [20:01:10]Read from MH i2c: 01 07 00 7F 1B 00 00 00 00 00 FC 0C A9 [20:01:10]RasterBufferAndPrint [20:01:10]line [20:01:10]line [20:01:10]line [20:01:10]line [20:01:10]line [20:01:10]written 0, free lines is 3333 [20:01:10]MH_Cut [20:01:10]Write to MH i2c: D1 01 00 86 1B 01 73 [20:01:10]Write i2c OK [20:01:10]MH_I2C_Read... [20:01:10]Read from MH i2c: D1 [20:01:10]MH_I2C_Read... [20:01:10]Read from MH i2c: D1 01 00 [20:01:10]MH_I2C_Read... [20:01:10]Read from MH i2c: D1 01 00 86 1B 00 72 [20:01:10]Write to MH i2c: 01 00 00 87 1B A2 [20:01:10]Write i2c OK [20:01:10]MH_I2C_Read... [20:01:11]OFD Sender: No OFD packet to send [20:01:11]*** Cut start [20:01:11]*** Partial cut [20:01:11]*** CUTSNS_PIN = 1 [20:01:11]*** CUTSNS_PIN = 0 [20:01:11]*** Brake cut motor [20:01:12]Read from MH i2c: 01 [20:01:12]MH_I2C_Read... [20:01:12]*** Stop cut motor [20:01:12]*** Cut end [20:01:12]Read from MH i2c: 01 07 00 [20:01:12]MH_I2C_Read... [20:01:12]Read from MH i2c: 01 07 00 87 1B 00 00 00 00 00 FF 0F B7 [20:01:12]process_action close_receipt done [20:01:12]requested_data is exist [20:01:12]produce_requested_data [20:01:12]requested_item fm.sn is exist - process it [20:01:12]wFMCommunicate request_size=4 [20:01:12]MH_SAM_APDU [20:01:12]CAPDU: 80 11 00 00 [20:01:12]Write to MH i2c: E2 08 00 88 1B 80 11 00 00 00 00 00 00 1D [20:01:12]Write i2c OK [20:01:12]MH_I2C_Read... [20:01:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:12]Read from MH i2c: E2 [20:01:12]MH_I2C_Read... [20:01:12]Read from MH i2c: E2 17 00 [20:01:12]MH_I2C_Read... [20:01:12]Read from MH i2c: E2 17 00 88 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 78 [20:01:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:01:12]wFMCommunicate OK [20:01:12]requested_item fd.num is exist - process it [20:01:12]SAM_PROTO_GetFieldsCounters [20:01:12]wFMCommunicate request_size=4 [20:01:12]MH_SAM_APDU [20:01:12]CAPDU: 80 13 00 00 [20:01:12]Write to MH i2c: E2 08 00 89 1B 80 13 00 00 00 00 00 00 20 [20:01:12]Write i2c OK [20:01:12]MH_I2C_Read... [20:01:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:01:12]Read from MH i2c: E2 [20:01:12]MH_I2C_Read... [20:01:12]Read from MH i2c: E2 62 00 [20:01:12]MH_I2C_Read... [20:01:12]Read from MH i2c: E2 62 00 89 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 35 CF 01 00 0E 04 04 00 B1 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 EC [20:01:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 35 CF 01 00 0E 04 04 00 B1 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 [20:01:12]wFMCommunicate OK [20:01:12]SAM_PROTO_GetFieldsCounters done [20:01:12]requested_item shift.num is exist - process it [20:01:12]requested_item shift.opened is exist - process it [20:01:12]req_shift_opened [20:01:12]FM_GetShiftState [20:01:12]SAM_PROTO_GetShiftState [20:01:12]wFMCommunicate request_size=4 [20:01:12]MH_SAM_APDU [20:01:12]CAPDU: 80 13 01 00 [20:01:12]Write to MH i2c: E2 08 00 8A 1B 80 13 01 00 00 00 00 00 22 [20:01:12]Write i2c OK [20:01:12]MH_I2C_Read... [20:01:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:12]Read from MH i2c: E2 [20:01:12]MH_I2C_Read... [20:01:12]Read from MH i2c: E2 0E 00 [20:01:12]MH_I2C_Read... [20:01:12]Read from MH i2c: E2 0E 00 8A 1B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 F9 [20:01:12]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [20:01:12]wFMCommunicate OK [20:01:12]SAM_PROTO_GetShiftState done [20:01:12]FM_GetShiftState done [20:01:12]req_shift_opened done [20:01:12]requested_item shift.open_date is exist - process it [20:01:12]req_shift_open_date [20:01:12]req_shift_open_date done [20:01:12]produce_requested_data done [20:01:12]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118581,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [20:01:12]process_action_free close_receipt [20:01:12]json_value_free [20:01:12]json_value_free done [20:01:12]process_json_proto returns [20:01:12]Send response to host [20:01:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118581,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [20:01:12]free response buf [20:01:12]execute_script done [20:01:12]execute_script returns [20:01:12]free content buf [20:01:12]Sock 9.Close socket [20:01:12]Sock 9.Thread stoped [20:01:16]OFD Sender: No OFD packet to send [20:01:21]OFD Sender: No OFD packet to send [20:01:26]OFD Sender: No OFD packet to send [20:01:31]OFD Sender: No OFD packet to send [20:01:36]OFD Sender: No OFD packet to send [20:01:41]OFD Sender: No OFD packet to send [20:01:46]OFD Sender: No OFD packet to send [20:01:51]OFD Sender: No OFD packet to send [20:01:56]OFD Sender: No OFD packet to send [20:02:01]OFD Sender: No OFD packet to send [20:02:06]OFD Sender: No OFD packet to send [20:02:11]OFD Sender: No OFD packet to send [20:02:16]OFD Sender: No OFD packet to send [20:02:21]OFD Sender: No OFD packet to send [20:02:26]OFD Sender: No OFD packet to send [20:02:31]OFD Sender: No OFD packet to send [20:02:36]OFD Sender: No OFD packet to send [20:02:41]OFD Sender: No OFD packet to send [20:02:46]OFD Sender: No OFD packet to send [20:02:51]OFD Sender: No OFD packet to send [20:02:56]OFD Sender: No OFD packet to send [20:03:01]OFD Sender: No OFD packet to send [20:03:06]OFD Sender: No OFD packet to send [20:03:11]OFD Sender: No OFD packet to send [20:03:16]OFD Sender: No OFD packet to send [20:03:21]OFD Sender: No OFD packet to send [20:03:26]OFD Sender: No OFD packet to send [20:03:31]OFD Sender: No OFD packet to send [20:03:36]OFD Sender: No OFD packet to send [20:03:41]OFD Sender: No OFD packet to send [20:03:46]OFD Sender: No OFD packet to send [20:03:51]OFD Sender: No OFD packet to send [20:03:56]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:16]accept exits with 10 [20:04:16]New connection [20:04:16]New thread 3067383140 created [20:04:16]Thread 3067239780 joined [20:04:16]Waiting for new connection... [20:04:16] Sock 10.Parse request [20:04:16]Sock 10.Check first char [20:04:16]Sock 10.First char is OK [20:04:16]request: POST /json_proto HTTP/1.0 [20:04:16]Method: POST [20:04:16]URL: /json_proto [20:04:16]Method is POST - this is cgi request [20:04:16]url: /json_proto [20:04:16]query_string will be loaded in cgi processing [20:04:16]execute_cgi json_proto POST (null) [20:04:16]execute_cgi path=json_proto method=POST [20:04:16]POST find Content-Length [20:04:16]Host: 172.17.45.7:8080 [20:04:16]Content-Length: 819 [20:04:16]Content-Type: application/json [20:04:16] [20:04:16]POST finish read [20:04:16]Found Content-Length = 819 [20:04:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 47.250, "sum" : 3600.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", "total" : 3600.00, "payments": [ { "type": 1, "sum" : 3600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:04:16]execute_script... [20:04:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 47.250, "sum" : 3600.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", "total" : 3600.00, "payments": [ { "type": 1, "sum" : 3600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:04:16]POST & json_proto [20:04:16]process_json_proto [20:04:16]json parsed OK: [20:04:16]protocol is kg_v1.0 [20:04:16]action value=close_receipt [20:04:16]process_action close_receipt [20:04:16]cmd_close_receipt [20:04:16]MH_GetDate [20:04:16]Write to MH i2c: F0 00 00 8B 1B 95 [20:04:16]Write i2c OK [20:04:16]MH_I2C_Read... [20:04:16]Read from MH i2c: F0 [20:04:16]MH_I2C_Read... [20:04:16]Read from MH i2c: F0 09 00 [20:04:16]MH_I2C_Read... [20:04:16]Read from MH i2c: F0 09 00 8B 1B 00 42 A4 A6 66 90 0F 3E 66 D3 [20:04:16]GetLastDocTimeStamp 1722196870 [20:04:16]current date 1722197058 [20:04:16]FM_GetShiftState [20:04:16]SAM_PROTO_GetShiftState [20:04:16]wFMCommunicate request_size=4 [20:04:16]MH_SAM_APDU [20:04:16]CAPDU: 80 13 01 00 [20:04:16]Write to MH i2c: E2 08 00 8C 1B 80 13 01 00 00 00 00 00 24 [20:04:16]Write i2c OK [20:04:16]MH_I2C_Read... [20:04:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:16]Read from MH i2c: E2 [20:04:16]MH_I2C_Read... [20:04:16]Read from MH i2c: E2 0E 00 [20:04:16]MH_I2C_Read... [20:04:16]Read from MH i2c: E2 0E 00 8C 1B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 FB [20:04:16]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [20:04:16]wFMCommunicate OK [20:04:16]SAM_PROTO_GetShiftState done [20:04:16]FM_GetShiftState done [20:04:16]opened in 1722125364 [20:04:16]opened+sec_in_day 1722211764 [20:04:16]quantity*price = 360045 [20:04:16]sum+1 = 360046 [20:04:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 3600.00 НСП 1% : 31.86 НДС 12% : 382.35 Наличными: 0.00 Безнал.: 3600.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 251 28.07.2024 20:04 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118582 ФПД: 225414592405584 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T200418&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118582&fm=225414592405584&tin=02508201610067®Number=0000000000092660&sum=360000 [20:04:18]StoreToDocumentArchive [20:04:18]shift 433 fd 118582 [20:04:18]save to /storage/0433/doc_00118582 [20:04:18]save last doc name /storage/0433/doc_00118582 to /storage/kkm_last_doc_name [20:04:18]save OK [20:04:18]Clear old archive folders... [20:04:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:04:18]tlvbuf is 01EC00A0 [20:04:18]SAM_PROTO_ClearQueue [20:04:18]wFMCommunicate request_size=4 [20:04:18]MH_SAM_APDU [20:04:18]CAPDU: 80 09 00 00 [20:04:18]Write to MH i2c: E2 08 00 99 1B 80 09 00 00 00 00 00 00 26 [20:04:18]Write i2c OK [20:04:18]MH_I2C_Read... [20:04:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:04:18]Read from MH i2c: E2 [20:04:18]MH_I2C_Read... [20:04:18]Read from MH i2c: E2 03 00 [20:04:18]MH_I2C_Read... [20:04:18]Read from MH i2c: E2 03 00 99 1B 00 90 00 28 [20:04:18]RAPDU: 90 00 [20:04:18]wFMCommunicate OK [20:04:18]SAM_PROTO_ClearQueue done [20:04:18]KKMCreateOFDPacket [20:04:18]OFDProtocolAddRootSTLVToBuf [20:04:18]FM_MakeSignedData [20:04:18]FM_MakeSignedData [20:04:18]SAM_PROTO_SignData [20:04:18]wFMCommunicate request_size=4 [20:04:18]MH_SAM_APDU [20:04:18]CAPDU: 80 0D 01 02 [20:04:18]Write to MH i2c: E2 08 00 9A 1B 80 0D 01 02 00 00 00 00 2E [20:04:18]Write i2c OK [20:04:18]MH_I2C_Read... [20:04:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:04:18]Read from MH i2c: E2 [20:04:18]MH_I2C_Read... [20:04:18]Read from MH i2c: E2 03 00 [20:04:18]MH_I2C_Read... [20:04:18]Read from MH i2c: E2 03 00 9A 1B 00 90 00 29 [20:04:18]RAPDU: 90 00 [20:04:18]wFMCommunicate OK [20:04:18]wFMCommunicate request_size=255 [20:04:18]MH_SAM_APDU [20:04:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 B8 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6D 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 95 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 7E 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 42 A4 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 36 CF 01 00 35 04 06 00 CD 03 6C B5 [20:04:18]Write to MH i2c: E2 02 01 9B 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 B8 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6D 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 95 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 7E 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 42 A4 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 36 CF 01 00 35 04 06 00 CD 03 6C B5 00 00 3B [20:04:18]Write i2c OK [20:04:18]MH_I2C_Read... [20:04:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:18]Read from MH i2c: E2 [20:04:18]MH_I2C_Read... [20:04:18]Read from MH i2c: E2 03 00 [20:04:18]MH_I2C_Read... [20:04:18]Read from MH i2c: E2 03 00 9B 1B 00 90 00 2A [20:04:18]RAPDU: 90 00 [20:04:18]wFMCommunicate OK [20:04:18]wFMCommunicate request_size=7 [20:04:18]MH_SAM_APDU [20:04:18]CAPDU: 80 0D 02 02 02 20 50 [20:04:18]Write to MH i2c: E2 0A 00 9C 1B 80 0D 02 02 02 00 20 50 00 00 A5 [20:04:18]Write i2c OK [20:04:18]MH_I2C_Read... [20:04:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:18]Read from MH i2c: E2 [20:04:18]MH_I2C_Read... [20:04:18]Read from MH i2c: E2 03 00 [20:04:18]MH_I2C_Read... [20:04:18]Read from MH i2c: E2 03 00 9C 1B 00 90 00 2B [20:04:18]RAPDU: 90 00 [20:04:18]wFMCommunicate OK [20:04:18]wFMCommunicate request_size=4 [20:04:18]MH_SAM_APDU [20:04:18]CAPDU: 80 0D 03 02 [20:04:18]Write to MH i2c: E2 08 00 9D 1B 80 0D 03 02 00 00 00 00 33 [20:04:18]Write i2c OK [20:04:18]MH_I2C_Read... [20:04:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:04:18]Read from MH i2c: E2 [20:04:18]MH_I2C_Read... [20:04:18]Read from MH i2c: E2 0B 00 [20:04:18]MH_I2C_Read... [20:04:18]Read from MH i2c: E2 0B 00 9D 1B 00 30 2A E7 4E CC D4 A6 33 90 00 3C [20:04:18]RAPDU: 30 2A E7 4E CC D4 A6 33 90 00 [20:04:18]wFMCommunicate OK [20:04:18]SAM_PROTO_SignData done [20:04:18]FM_MakeSignedData done [20:04:18]CreateOFDProtocolMessage [20:04:18]wFMCommunicate request_size=4 [20:04:18]MH_SAM_APDU [20:04:18]CAPDU: 80 11 00 00 [20:04:18]Write to MH i2c: E2 08 00 9E 1B 80 11 00 00 00 00 00 00 33 [20:04:18]Write i2c OK [20:04:18]MH_I2C_Read... [20:04:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:18]Read from MH i2c: E2 [20:04:18]MH_I2C_Read... [20:04:18]Read from MH i2c: E2 17 00 [20:04:18]MH_I2C_Read... [20:04:18]Read from MH i2c: E2 17 00 9E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8E [20:04:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:04:18]wFMCommunicate OK [20:04:18]CreateOFDProtocolMessage done [20:04:18]OFDSenderStorePacket 118582 [20:04:18]StoreOFDPacket docnum=118582 [20:04:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 03 51 04 01 6D F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 B8 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6D 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 95 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 7E 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 42 A4 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 36 CF 01 00 35 04 06 00 CD 03 6C B5 20 50 30 2A E7 4E CC D4 A6 33 [20:04:18]CheckFolder [20:04:18]dirname=/storage/ofd_packets [20:04:18]CheckFolder done [20:04:18]ProducePacketName [20:04:18]name=ofd_packets/00118582 [20:04:18]NVStorageSaveData ofd_packets/00118582 [20:04:18]File name is /storage/ofd_packets/00118582 [20:04:18]Write 298 bytes [20:04:18]NVStorageSaveData done [20:04:18]OFDSenderStorePacket done [20:04:18]KKMCreateOFDPacket done [20:04:18]NVStorageSaveData kkm_last_timestamp [20:04:18]File name is /storage/kkm_last_timestamp [20:04:18]Write 4 bytes [20:04:18]NVStorageSaveData done [20:04:18]ExternCall_PrintAddStr [20:04:18]wPrintStart [20:04:18]Write to MH i2c: 01 00 00 9F 1B BA [20:04:18]Write i2c OK [20:04:18]MH_I2C_Read... [20:04:18]Read from MH i2c: 01 [20:04:18]MH_I2C_Read... [20:04:18]Read from MH i2c: 01 07 00 [20:04:18]MH_I2C_Read... [20:04:18]Read from MH i2c: 01 07 00 9F 1B 00 00 00 00 00 FF 0F CF [20:04:18]RasterBufferAndPrint [20:04:18]line Счет N : (1)949469 [20:04:18]line ИНН: 02508201610067 [20:04:18]line Контрольно-Кассовый Чек [20:04:18]line ПРОДАЖА [20:04:18]line ТРК (МРК, ГНК) : 21 [20:04:18]line Товар: 2710194800 [20:04:18]line ДТ-К-5 [20:04:18]line 47.250 * 76.20 [20:04:18]line = 3600.45 [20:04:18]line НДС 12% НСП 1% [20:04:18]line > о реализуемом товаре [20:04:18]line ОКРУГЛЕНИЕ: -0.45 [20:04:18]line ИТОГО: 3600.00 [20:04:18]line НСП 1% : 31.86 [20:04:18]line НДС 12% : 382.35 [20:04:18]line Наличными: 0.00 [20:04:18]line Безнал.: 3600.00 [20:04:18]line Место: АЗС № 134 "Партнер Нефть" [20:04:18]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:04:18]line СНО: Общий режим [20:04:18]line Чек 251 28.07.2024 20:04 [20:04:18]line Смена: 433 ФФД: 1.0 [20:04:18]line ЗНМ: 0300000044 [20:04:18]line РНМ: 0000000000092660 [20:04:18]line Версия ККМ: 001 [20:04:18]line Платежная система: O! деньги [20:04:18]line ФМ: 0000000000874939 [20:04:18]line ФД: 118582 [20:04:18]line ФПД: 225414592405584 [20:04:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T200418&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118582&fm=225414592405584&tin=02508201610067®Number=0000000000092660&sum=360000 [20:04:18]OFD Sender: Processing packet 118582 [packets to send 86, broken 85] [20:04:18]ProducePacketName [20:04:18]name=ofd_packets/00118582 [20:04:18]OFD Sender: To server: pG, [20:04:18]CommunicateWithHost lk.salyk.kg:30040 [20:04:18]ConnectInit lk.salyk.kg [20:04:18]written 0, free lines is 4095 [20:04:19]Connected sock=9 [20:04: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 39 33 39 0C 01 00 00 03 51 04 01 6D F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 B8 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6D 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 95 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 7E 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 42 A4 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 36 CF 01 00 35 04 06 00 CD 03 6C B5 20 50 30 2A E7 4E CC D4 A6 33 [20:04:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1B D9 47 00 68 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 39 33 39 10 04 04 00 36 CF 01 00 F4 03 04 00 D2 51 A6 66 B6 04 01 00 00 15 01 20 97 00 5A 41 98 [20:04:19]CommunicateWithHost err = 0 [20:04:19]CheckOFDResponse [20:04:19]1017 (14) - 77093643461234 [20:04:19]1041 (16) - 0000000000874939 [20:04:19]1040 (4) - 118582 [20:04:19]1012 (4) - 28.07.2024 14:12 [20:04:19]1206 (1) - 0 [20:04:19]OFD Sender: Remove packet 118582 [20:04:19]ProducePacketName [20:04:19]name=ofd_packets/00118582 [20:04:19]NVStorageDeleteData [20:04:19]Write to MH i2c: 01 00 00 C9 1B E4 [20:04:19]Write i2c OK [20:04:19]MH_I2C_Read... [20:04:19]Read from MH i2c: 01 [20:04:19]MH_I2C_Read... [20:04:19]Read from MH i2c: 01 07 00 [20:04:19]MH_I2C_Read... [20:04:19]Read from MH i2c: 01 07 00 C9 1B 00 00 00 00 00 F1 0C E8 [20:04:19]RasterBufferAndPrint [20:04:19]line [20:04:19]line [20:04:19]line [20:04:19]line [20:04:19]line [20:04:19]written 0, free lines is 3319 [20:04:19]MH_Cut [20:04:19]Write to MH i2c: D1 01 00 D0 1B 01 BD [20:04:19]Write i2c OK [20:04:19]MH_I2C_Read... [20:04:19]Read from MH i2c: D1 [20:04:19]MH_I2C_Read... [20:04:19]Read from MH i2c: D1 01 00 [20:04:19]MH_I2C_Read... [20:04:19]Read from MH i2c: D1 01 00 D0 1B 00 BC [20:04:19]Write to MH i2c: 01 00 00 D1 1B EC [20:04:19]Write i2c OK [20:04:19]MH_I2C_Read... [20:04:19]OFD Sender: No OFD packet to send [20:04:20]*** Cut start [20:04:20]*** Partial cut [20:04:20]*** CUTSNS_PIN = 1 [20:04:20]*** CUTSNS_PIN = 0 [20:04:20]*** Brake cut motor [20:04:20]Read from MH i2c: 01 [20:04:20]MH_I2C_Read... [20:04:20]*** Stop cut motor [20:04:20]*** Cut end [20:04:20]Read from MH i2c: 01 07 00 [20:04:20]MH_I2C_Read... [20:04:20]Read from MH i2c: 01 07 00 D1 1B 00 00 00 00 00 FF 0F 01 [20:04:20]process_action close_receipt done [20:04:20]requested_data is exist [20:04:20]produce_requested_data [20:04:20]requested_item fm.sn is exist - process it [20:04:20]wFMCommunicate request_size=4 [20:04:20]MH_SAM_APDU [20:04:20]CAPDU: 80 11 00 00 [20:04:20]Write to MH i2c: E2 08 00 D2 1B 80 11 00 00 00 00 00 00 67 [20:04:20]Write i2c OK [20:04:20]MH_I2C_Read... [20:04:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:20]Read from MH i2c: E2 [20:04:20]MH_I2C_Read... [20:04:20]Read from MH i2c: E2 17 00 [20:04:20]MH_I2C_Read... [20:04:20]Read from MH i2c: E2 17 00 D2 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C2 [20:04:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:04:20]wFMCommunicate OK [20:04:20]requested_item fd.num is exist - process it [20:04:20]SAM_PROTO_GetFieldsCounters [20:04:20]wFMCommunicate request_size=4 [20:04:20]MH_SAM_APDU [20:04:20]CAPDU: 80 13 00 00 [20:04:20]Write to MH i2c: E2 08 00 D3 1B 80 13 00 00 00 00 00 00 6A [20:04:20]Write i2c OK [20:04:20]MH_I2C_Read... [20:04:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:04:20]Read from MH i2c: E2 [20:04:20]MH_I2C_Read... [20:04:20]Read from MH i2c: E2 62 00 [20:04:20]MH_I2C_Read... [20:04:20]Read from MH i2c: E2 62 00 D3 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 36 CF 01 00 0E 04 04 00 B1 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 3A [20:04:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 36 CF 01 00 0E 04 04 00 B1 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 [20:04:20]wFMCommunicate OK [20:04:20]SAM_PROTO_GetFieldsCounters done [20:04:20]requested_item shift.num is exist - process it [20:04:20]requested_item shift.opened is exist - process it [20:04:20]req_shift_opened [20:04:20]FM_GetShiftState [20:04:20]SAM_PROTO_GetShiftState [20:04:20]wFMCommunicate request_size=4 [20:04:20]MH_SAM_APDU [20:04:20]CAPDU: 80 13 01 00 [20:04:20]Write to MH i2c: E2 08 00 D4 1B 80 13 01 00 00 00 00 00 6C [20:04:20]Write i2c OK [20:04:20]MH_I2C_Read... [20:04:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:20]Read from MH i2c: E2 [20:04:20]MH_I2C_Read... [20:04:20]Read from MH i2c: E2 0E 00 [20:04:20]MH_I2C_Read... [20:04:20]Read from MH i2c: E2 0E 00 D4 1B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 43 [20:04:20]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [20:04:20]wFMCommunicate OK [20:04:20]SAM_PROTO_GetShiftState done [20:04:20]FM_GetShiftState done [20:04:20]req_shift_opened done [20:04:20]requested_item shift.open_date is exist - process it [20:04:20]req_shift_open_date [20:04:20]req_shift_open_date done [20:04:20]produce_requested_data done [20:04:20]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118582,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [20:04:20]process_action_free close_receipt [20:04:20]json_value_free [20:04:20]json_value_free done [20:04:20]process_json_proto returns [20:04:20]Send response to host [20:04:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118582,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [20:04:20]free response buf [20:04:20]execute_script done [20:04:20]execute_script returns [20:04:20]free content buf [20:04:20]Sock 10.Close socket [20:04:20]Sock 10.Thread stoped [20:04:24]OFD Sender: No OFD packet to send [20:04:29]OFD Sender: No OFD packet to send [20:04:34]OFD Sender: No OFD packet to send [20:04:39]OFD Sender: No OFD packet to send [20:04:44]OFD Sender: No OFD packet to send [20:04:49]OFD Sender: No OFD packet to send [20:04:54]OFD Sender: No OFD packet to send [20:04:59]OFD Sender: No OFD packet to send [20:05:04]OFD Sender: No OFD packet to send [20:05:09]OFD Sender: No OFD packet to send [20:05:14]OFD Sender: No OFD packet to send [20:05:19]OFD Sender: No OFD packet to send [20:05:24]OFD Sender: No OFD packet to send [20:05:29]OFD Sender: No OFD packet to send [20:05:34]OFD Sender: No OFD packet to send [20:05:39]OFD Sender: No OFD packet to send [20:05:44]OFD Sender: No OFD packet to send [20:05:49]OFD Sender: No OFD packet to send [20:05:54]OFD Sender: No OFD packet to send [20:05:59]OFD Sender: No OFD packet to send [20:06:04]OFD Sender: No OFD packet to send [20:06:09]OFD Sender: No OFD packet to send [20:06:14]OFD Sender: No OFD packet to send [20:06:19]OFD Sender: No OFD packet to send [20:06:24]OFD Sender: No OFD packet to send [20:06:29]OFD Sender: No OFD packet to send [20:06:34]OFD Sender: No OFD packet to send [20:06:39]OFD Sender: No OFD packet to send [20:06:44]OFD Sender: No OFD packet to send [20:06:49]OFD Sender: No OFD packet to send [20:06:54]OFD Sender: No OFD packet to send [20:06:59]OFD Sender: No OFD packet to send [20:07:04]OFD Sender: No OFD packet to send [20:07:09]OFD Sender: No OFD packet to send [20:07:14]OFD Sender: No OFD packet to send [20:07:19]OFD Sender: No OFD packet to send [20:07:24]OFD Sender: No OFD packet to send [20:07:29]OFD Sender: No OFD packet to send [20:07:34]OFD Sender: No OFD packet to send [20:07:39]OFD Sender: No OFD packet to send [20:07:44]OFD Sender: No OFD packet to send [20:07:49]OFD Sender: No OFD packet to send [20:07:54]OFD Sender: No OFD packet to send [20:07:59]OFD Sender: No OFD packet to send [20:08:04]OFD Sender: No OFD packet to send [20:08:09]OFD Sender: No OFD packet to send [20:08:14]OFD Sender: No OFD packet to send [20:08:19]OFD Sender: No OFD packet to send [20:08:24]OFD Sender: No OFD packet to send [20:08:29]OFD Sender: No OFD packet to send [20:08:34]OFD Sender: No OFD packet to send [20:08:36]accept exits with 7 [20:08:36]New connection [20:08:36]New thread 3067239780 created [20:08:36]Thread 3067383140 joined [20:08:36]Waiting for new connection... [20:08:36] Sock 7.Parse request [20:08:36]Sock 7.Check first char [20:08:36]Sock 7.First char is OK [20:08:36]request: POST /json_proto HTTP/1.0 [20:08:36]Method: POST [20:08:36]URL: /json_proto [20:08:36]Method is POST - this is cgi request [20:08:36]url: /json_proto [20:08:36]query_string will be loaded in cgi processing [20:08:36]execute_cgi json_proto POST (null) [20:08:36]execute_cgi path=json_proto method=POST [20:08:36]POST find Content-Length [20:08:36]Host: 172.17.45.7:8080 [20:08:36]Content-Length: 679 [20:08:36]Content-Type: application/json [20:08:36] [20:08:36]POST finish read [20:08:36]Found Content-Length = 679 [20:08:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:36]execute_script... [20:08: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)949470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:36]POST & json_proto [20:08:36]process_json_proto [20:08:36]json parsed OK: [20:08:36]protocol is kg_v1.0 [20:08:36]action value=close_receipt [20:08:36]process_action close_receipt [20:08:36]cmd_close_receipt [20:08:36]MH_GetDate [20:08:36]Write to MH i2c: F0 00 00 D5 1B DF [20:08:36]Write i2c OK [20:08:36]MH_I2C_Read... [20:08:36]Read from MH i2c: F0 [20:08:36]MH_I2C_Read... [20:08:36]Read from MH i2c: F0 09 00 [20:08:36]MH_I2C_Read... [20:08:36]Read from MH i2c: F0 09 00 D5 1B 00 46 A5 A6 66 90 0F 3E 66 22 [20:08:36]GetLastDocTimeStamp 1722197058 [20:08:36]current date 1722197318 [20:08:36]FM_GetShiftState [20:08:36]SAM_PROTO_GetShiftState [20:08:36]wFMCommunicate request_size=4 [20:08:36]MH_SAM_APDU [20:08:36]CAPDU: 80 13 01 00 [20:08:36]Write to MH i2c: E2 08 00 D6 1B 80 13 01 00 00 00 00 00 6E [20:08:36]Write i2c OK [20:08:36]MH_I2C_Read... [20:08:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:36]Read from MH i2c: E2 [20:08:36]MH_I2C_Read... [20:08:36]Read from MH i2c: E2 0E 00 [20:08:36]MH_I2C_Read... [20:08:36]Read from MH i2c: E2 0E 00 D6 1B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 45 [20:08:36]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [20:08:36]wFMCommunicate OK [20:08:36]SAM_PROTO_GetShiftState done [20:08:36]FM_GetShiftState done [20:08:36]opened in 1722125364 [20:08:36]opened+sec_in_day 1722211764 [20:08:36]quantity*price = 100050 [20:08:36]sum+1 = 100052 [20:08:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 252 28.07.2024 20:08 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118583 ФПД: 211930807612827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T200838&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118583&fm=211930807612827&tin=02508201610067®Number=0000000000092660&sum=100000 [20:08:37]StoreToDocumentArchive [20:08:37]shift 433 fd 118583 [20:08:37]save to /storage/0433/doc_00118583 [20:08:37]save last doc name /storage/0433/doc_00118583 to /storage/kkm_last_doc_name [20:08:37]save OK [20:08:37]Clear old archive folders... [20:08:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:08:37]tlvbuf is 01E4D120 [20:08:37]SAM_PROTO_ClearQueue [20:08:37]wFMCommunicate request_size=4 [20:08:37]MH_SAM_APDU [20:08:37]CAPDU: 80 09 00 00 [20:08:37]Write to MH i2c: E2 08 00 E3 1B 80 09 00 00 00 00 00 00 70 [20:08:37]Write i2c OK [20:08:37]MH_I2C_Read... [20:08:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:37]Read from MH i2c: E2 [20:08:37]MH_I2C_Read... [20:08:37]Read from MH i2c: E2 03 00 [20:08:37]MH_I2C_Read... [20:08:37]Read from MH i2c: E2 03 00 E3 1B 00 90 00 72 [20:08:37]RAPDU: 90 00 [20:08:37]wFMCommunicate OK [20:08:37]SAM_PROTO_ClearQueue done [20:08:37]KKMCreateOFDPacket [20:08:37]OFDProtocolAddRootSTLVToBuf [20:08:37]FM_MakeSignedData [20:08:37]FM_MakeSignedData [20:08:37]SAM_PROTO_SignData [20:08:37]wFMCommunicate request_size=4 [20:08:37]MH_SAM_APDU [20:08:37]CAPDU: 80 0D 01 02 [20:08:37]Write to MH i2c: E2 08 00 E4 1B 80 0D 01 02 00 00 00 00 78 [20:08:37]Write i2c OK [20:08:37]MH_I2C_Read... [20:08:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:37]Read from MH i2c: E2 [20:08:37]MH_I2C_Read... [20:08:37]Read from MH i2c: E2 03 00 [20:08:37]MH_I2C_Read... [20:08:37]Read from MH i2c: E2 03 00 E4 1B 00 90 00 73 [20:08:37]RAPDU: 90 00 [20:08:37]wFMCommunicate OK [20:08:37]wFMCommunicate request_size=255 [20:08:37]MH_SAM_APDU [20:08:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 46 A5 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 37 CF 01 00 35 04 06 00 C0 BF FC 81 [20:08:37]Write to MH i2c: E2 02 01 E5 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 46 A5 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 37 CF 01 00 35 04 06 00 C0 BF FC 81 00 00 B0 [20:08:37]Write i2c OK [20:08:37]MH_I2C_Read... [20:08:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:37]Read from MH i2c: E2 [20:08:37]MH_I2C_Read... [20:08:37]Read from MH i2c: E2 03 00 [20:08:37]MH_I2C_Read... [20:08:37]Read from MH i2c: E2 03 00 E5 1B 00 90 00 74 [20:08:37]RAPDU: 90 00 [20:08:37]wFMCommunicate OK [20:08:37]wFMCommunicate request_size=7 [20:08:37]MH_SAM_APDU [20:08:37]CAPDU: 80 0D 02 02 02 35 9B [20:08:37]Write to MH i2c: E2 0A 00 E6 1B 80 0D 02 02 02 00 35 9B 00 00 4F [20:08:38]Write i2c OK [20:08:38]MH_I2C_Read... [20:08:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:38]Read from MH i2c: E2 [20:08:38]MH_I2C_Read... [20:08:38]Read from MH i2c: E2 03 00 [20:08:38]MH_I2C_Read... [20:08:38]Read from MH i2c: E2 03 00 E6 1B 00 90 00 75 [20:08:38]RAPDU: 90 00 [20:08:38]wFMCommunicate OK [20:08:38]wFMCommunicate request_size=4 [20:08:38]MH_SAM_APDU [20:08:38]CAPDU: 80 0D 03 02 [20:08:38]Write to MH i2c: E2 08 00 E7 1B 80 0D 03 02 00 00 00 00 7D [20:08:38]Write i2c OK [20:08:38]MH_I2C_Read... [20:08:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:38]Read from MH i2c: E2 [20:08:38]MH_I2C_Read... [20:08:38]Read from MH i2c: E2 0B 00 [20:08:38]MH_I2C_Read... [20:08:38]Read from MH i2c: E2 0B 00 E7 1B 00 20 3D BB 0E D8 45 49 25 90 00 2F [20:08:38]RAPDU: 20 3D BB 0E D8 45 49 25 90 00 [20:08:38]wFMCommunicate OK [20:08:38]SAM_PROTO_SignData done [20:08:38]FM_MakeSignedData done [20:08:38]CreateOFDProtocolMessage [20:08:38]wFMCommunicate request_size=4 [20:08:38]MH_SAM_APDU [20:08:38]CAPDU: 80 11 00 00 [20:08:38]Write to MH i2c: E2 08 00 E8 1B 80 11 00 00 00 00 00 00 7D [20:08:38]Write i2c OK [20:08:38]MH_I2C_Read... [20:08:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:38]Read from MH i2c: E2 [20:08:38]MH_I2C_Read... [20:08:38]Read from MH i2c: E2 17 00 [20:08:38]MH_I2C_Read... [20:08:38]Read from MH i2c: E2 17 00 E8 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D8 [20:08:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:08:38]wFMCommunicate OK [20:08:38]CreateOFDProtocolMessage done [20:08:38]OFDSenderStorePacket 118583 [20:08:38]StoreOFDPacket docnum=118583 [20:08:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F7 E8 04 01 B4 4E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 46 A5 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 37 CF 01 00 35 04 06 00 C0 BF FC 81 35 9B 20 3D BB 0E D8 45 49 25 [20:08:38]CheckFolder [20:08:38]dirname=/storage/ofd_packets [20:08:38]CheckFolder done [20:08:38]ProducePacketName [20:08:38]name=ofd_packets/00118583 [20:08:38]NVStorageSaveData ofd_packets/00118583 [20:08:38]File name is /storage/ofd_packets/00118583 [20:08:38]Write 298 bytes [20:08:38]NVStorageSaveData done [20:08:38]OFDSenderStorePacket done [20:08:38]KKMCreateOFDPacket done [20:08:38]NVStorageSaveData kkm_last_timestamp [20:08:38]File name is /storage/kkm_last_timestamp [20:08:38]Write 4 bytes [20:08:38]NVStorageSaveData done [20:08:38]ExternCall_PrintAddStr [20:08:38]wPrintStart [20:08:38]Write to MH i2c: 01 00 00 E9 1B 04 [20:08:38]Write i2c OK [20:08:38]MH_I2C_Read... [20:08:38]Read from MH i2c: 01 [20:08:38]MH_I2C_Read... [20:08:38]Read from MH i2c: 01 07 00 [20:08:38]MH_I2C_Read... [20:08:38]Read from MH i2c: 01 07 00 E9 1B 00 00 00 00 00 FF 0F 19 [20:08:38]RasterBufferAndPrint [20:08:38]line Счет N : (1)949470 [20:08:38]line ИНН: 02508201610067 [20:08:38]line Контрольно-Кассовый Чек [20:08:38]line ПРОДАЖА [20:08:38]line ТРК (МРК, ГНК) : 44 [20:08:38]line Товар: 2710194800 [20:08:38]line ДТ-К-5 [20:08:38]line 13.130 * 76.20 [20:08:38]line = 1000.51 [20:08:38]line НДС 12% НСП 1% [20:08:38]line > о реализуемом товаре [20:08:38]line ОКРУГЛЕНИЕ: -0.51 [20:08:38]line ИТОГО: 1000.00 [20:08:38]line Внесено: 1000.00 [20:08:38]line СДАЧА: 0.00 [20:08:38]line НСП 1% : 8.85 [20:08:38]line НДС 12% : 106.25 [20:08:38]line Наличными: 1000.00 [20:08:38]line Безнал.: 0.00 [20:08:38]line Место: АЗС № 134 "Партнер Нефть" [20:08:38]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:08:38]line СНО: Общий режим [20:08:38]line Чек 252 28.07.2024 20:08 [20:08:38]line Смена: 433 ФФД: 1.0 [20:08:38]line ЗНМ: 0300000044 [20:08:38]line РНМ: 0000000000092660 [20:08:38]line Версия ККМ: 001 [20:08:38]line ФМ: 0000000000874939 [20:08:38]line ФД: 118583 [20:08:38]line ФПД: 211930807612827 [20:08:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T200838&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118583&fm=211930807612827&tin=02508201610067®Number=0000000000092660&sum=100000 [20:08:38]OFD Sender: Processing packet 118583 [packets to send 86, broken 85] [20:08:38]ProducePacketName [20:08:38]name=ofd_packets/00118583 [20:08:38]OFD Sender: To server: pG, [20:08:38]CommunicateWithHost lk.salyk.kg:30040 [20:08:38]ConnectInit lk.salyk.kg [20:08:38]written 0, free lines is 4095 [20:08:38]Connected sock=10 [20:08: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 39 33 39 0C 01 00 00 F7 E8 04 01 B4 4E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 46 A5 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 37 CF 01 00 35 04 06 00 C0 BF FC 81 35 9B 20 3D BB 0E D8 45 49 25 [20:08:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1C BD 47 00 D4 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 39 33 39 10 04 04 00 37 CF 01 00 F4 03 04 00 D6 52 A6 66 B6 04 01 00 00 0A 48 11 44 2F 1A B9 30 [20:08:38]CommunicateWithHost err = 0 [20:08:38]CheckOFDResponse [20:08:38]1017 (14) - 77093643461234 [20:08:38]1041 (16) - 0000000000874939 [20:08:38]1040 (4) - 118583 [20:08:38]1012 (4) - 28.07.2024 14:16 [20:08:38]1206 (1) - 0 [20:08:38]OFD Sender: Remove packet 118583 [20:08:38]ProducePacketName [20:08:38]name=ofd_packets/00118583 [20:08:38]NVStorageDeleteData [20:08:38]Write to MH i2c: 01 00 00 13 1C 2F [20:08:38]Write i2c OK [20:08:38]MH_I2C_Read... [20:08:38]Read from MH i2c: 01 [20:08:38]MH_I2C_Read... [20:08:38]Read from MH i2c: 01 07 00 [20:08:38]MH_I2C_Read... [20:08:38]Read from MH i2c: 01 07 00 13 1C 00 00 00 00 00 DC 0C 1E [20:08:38]RasterBufferAndPrint [20:08:38]line [20:08:38]line [20:08:38]line [20:08:38]line [20:08:38]line [20:08:38]written 0, free lines is 3298 [20:08:38]MH_Cut [20:08:38]Write to MH i2c: D1 01 00 1A 1C 01 08 [20:08:38]Write i2c OK [20:08:38]MH_I2C_Read... [20:08:38]Read from MH i2c: D1 [20:08:38]MH_I2C_Read... [20:08:38]Read from MH i2c: D1 01 00 [20:08:38]MH_I2C_Read... [20:08:38]Read from MH i2c: D1 01 00 1A 1C 00 07 [20:08:38]Write to MH i2c: 01 00 00 1B 1C 37 [20:08:38]Write i2c OK [20:08:38]MH_I2C_Read... [20:08:39]OFD Sender: No OFD packet to send [20:08:39]*** Cut start [20:08:39]*** Partial cut [20:08:39]*** CUTSNS_PIN = 1 [20:08:39]*** CUTSNS_PIN = 0 [20:08:39]*** Brake cut motor [20:08:40]Read from MH i2c: 01 [20:08:40]MH_I2C_Read... [20:08:40]*** Stop cut motor [20:08:40]*** Cut end [20:08:40]Read from MH i2c: 01 07 00 [20:08:40]MH_I2C_Read... [20:08:40]Read from MH i2c: 01 07 00 1B 1C 00 00 00 00 00 FF 0F 4C [20:08:40]process_action close_receipt done [20:08:40]requested_data is exist [20:08:40]produce_requested_data [20:08:40]requested_item fm.sn is exist - process it [20:08:40]wFMCommunicate request_size=4 [20:08:40]MH_SAM_APDU [20:08:40]CAPDU: 80 11 00 00 [20:08:40]Write to MH i2c: E2 08 00 1C 1C 80 11 00 00 00 00 00 00 B2 [20:08:40]Write i2c OK [20:08:40]MH_I2C_Read... [20:08:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:40]Read from MH i2c: E2 [20:08:40]MH_I2C_Read... [20:08:40]Read from MH i2c: E2 17 00 [20:08:40]MH_I2C_Read... [20:08:40]Read from MH i2c: E2 17 00 1C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0D [20:08:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:08:40]wFMCommunicate OK [20:08:40]requested_item fd.num is exist - process it [20:08:40]SAM_PROTO_GetFieldsCounters [20:08:40]wFMCommunicate request_size=4 [20:08:40]MH_SAM_APDU [20:08:40]CAPDU: 80 13 00 00 [20:08:40]Write to MH i2c: E2 08 00 1D 1C 80 13 00 00 00 00 00 00 B5 [20:08:40]Write i2c OK [20:08:40]MH_I2C_Read... [20:08:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:40]Read from MH i2c: E2 [20:08:40]MH_I2C_Read... [20:08:40]Read from MH i2c: E2 62 00 [20:08:40]MH_I2C_Read... [20:08:40]Read from MH i2c: E2 62 00 1D 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 37 CF 01 00 0E 04 04 00 B1 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 89 [20:08:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 37 CF 01 00 0E 04 04 00 B1 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 [20:08:40]wFMCommunicate OK [20:08:40]SAM_PROTO_GetFieldsCounters done [20:08:40]requested_item shift.num is exist - process it [20:08:40]requested_item shift.opened is exist - process it [20:08:40]req_shift_opened [20:08:40]FM_GetShiftState [20:08:40]SAM_PROTO_GetShiftState [20:08:40]wFMCommunicate request_size=4 [20:08:40]MH_SAM_APDU [20:08:40]CAPDU: 80 13 01 00 [20:08:40]Write to MH i2c: E2 08 00 1E 1C 80 13 01 00 00 00 00 00 B7 [20:08:40]Write i2c OK [20:08:40]MH_I2C_Read... [20:08:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:40]Read from MH i2c: E2 [20:08:40]MH_I2C_Read... [20:08:40]Read from MH i2c: E2 0E 00 [20:08:40]MH_I2C_Read... [20:08:40]Read from MH i2c: E2 0E 00 1E 1C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 8E [20:08:40]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [20:08:40]wFMCommunicate OK [20:08:40]SAM_PROTO_GetShiftState done [20:08:40]FM_GetShiftState done [20:08:40]req_shift_opened done [20:08:40]requested_item shift.open_date is exist - process it [20:08:40]req_shift_open_date [20:08:40]req_shift_open_date done [20:08:40]produce_requested_data done [20:08:40]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118583,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [20:08:40]process_action_free close_receipt [20:08:40]json_value_free [20:08:40]json_value_free done [20:08:40]process_json_proto returns [20:08:40]Send response to host [20:08:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118583,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [20:08:40]free response buf [20:08:40]execute_script done [20:08:40]execute_script returns [20:08:40]free content buf [20:08:40]Sock 7.Close socket [20:08:40]Sock 7.Thread stoped [20:08:44]OFD Sender: No OFD packet to send [20:08:49]OFD Sender: No OFD packet to send [20:08:54]OFD Sender: No OFD packet to send [20:08:59]OFD Sender: No OFD packet to send [20:09:04]OFD Sender: No OFD packet to send [20:09:09]OFD Sender: No OFD packet to send [20:09:14]OFD Sender: No OFD packet to send [20:09:19]OFD Sender: No OFD packet to send [20:09:24]OFD Sender: No OFD packet to send [20:09:29]OFD Sender: No OFD packet to send [20:09:34]OFD Sender: No OFD packet to send [20:09:39]OFD Sender: No OFD packet to send [20:09:44]OFD Sender: No OFD packet to send [20:09:49]OFD Sender: No OFD packet to send [20:09:54]OFD Sender: No OFD packet to send [20:09:59]OFD Sender: No OFD packet to send [20:10:04]OFD Sender: No OFD packet to send [20:10:09]OFD Sender: No OFD packet to send [20:10:14]OFD Sender: No OFD packet to send [20:10:19]OFD Sender: No OFD packet to send [20:10:24]OFD Sender: No OFD packet to send [20:10:29]OFD Sender: No OFD packet to send [20:10:34]OFD Sender: No OFD packet to send [20:10:39]OFD Sender: No OFD packet to send [20:10:44]OFD Sender: No OFD packet to send [20:10:49]OFD Sender: No OFD packet to send [20:10:54]OFD Sender: No OFD packet to send [20:10:59]OFD Sender: No OFD packet to send [20:11:04]OFD Sender: No OFD packet to send [20:11:09]OFD Sender: No OFD packet to send [20:11:14]OFD Sender: No OFD packet to send [20:11:19]OFD Sender: No OFD packet to send [20:11:24]OFD Sender: No OFD packet to send [20:11:29]OFD Sender: No OFD packet to send [20:11:34]OFD Sender: No OFD packet to send [20:11:39]OFD Sender: No OFD packet to send [20:11:44]OFD Sender: No OFD packet to send [20:11:49]OFD Sender: No OFD packet to send [20:11:54]OFD Sender: No OFD packet to send [20:11:59]OFD Sender: No OFD packet to send [20:12:04]OFD Sender: No OFD packet to send [20:12:09]OFD Sender: No OFD packet to send [20:12:14]OFD Sender: No OFD packet to send [20:12:19]OFD Sender: No OFD packet to send [20:12:24]OFD Sender: No OFD packet to send [20:12:29]OFD Sender: No OFD packet to send [20:12:34]OFD Sender: No OFD packet to send [20:12:39]OFD Sender: No OFD packet to send [20:12:44]OFD Sender: No OFD packet to send [20:12:49]OFD Sender: No OFD packet to send [20:12:54]OFD Sender: No OFD packet to send [20:12:59]OFD Sender: No OFD packet to send [20:13:04]OFD Sender: No OFD packet to send [20:13:09]OFD Sender: No OFD packet to send [20:13:14]OFD Sender: No OFD packet to send [20:13:19]OFD Sender: No OFD packet to send [20:13:24]OFD Sender: No OFD packet to send [20:13:29]OFD Sender: No OFD packet to send [20:13:34]OFD Sender: No OFD packet to send [20:13:39]OFD Sender: No OFD packet to send [20:13:44]OFD Sender: No OFD packet to send [20:13:49]OFD Sender: No OFD packet to send [20:13:54]OFD Sender: No OFD packet to send [20:13:59]OFD Sender: No OFD packet to send [20:14:04]OFD Sender: No OFD packet to send [20:14:09]OFD Sender: No OFD packet to send [20:14:14]OFD Sender: No OFD packet to send [20:14:19]OFD Sender: No OFD packet to send [20:14:24]OFD Sender: No OFD packet to send [20:14:29]OFD Sender: No OFD packet to send [20:14:34]OFD Sender: No OFD packet to send [20:14:39]OFD Sender: No OFD packet to send [20:14:44]OFD Sender: No OFD packet to send [20:14:49]OFD Sender: No OFD packet to send [20:14:54]OFD Sender: No OFD packet to send [20:14:59]OFD Sender: No OFD packet to send [20:15:04]OFD Sender: No OFD packet to send [20:15:09]OFD Sender: No OFD packet to send [20:15:14]OFD Sender: No OFD packet to send [20:15:19]OFD Sender: No OFD packet to send [20:15:24]OFD Sender: No OFD packet to send [20:15:29]OFD Sender: No OFD packet to send [20:15:34]OFD Sender: No OFD packet to send [20:15:39]OFD Sender: No OFD packet to send [20:15:44]OFD Sender: No OFD packet to send [20:15:49]OFD Sender: No OFD packet to send [20:15:52]accept exits with 9 [20:15:52]New connection [20:15:52]New thread 3067383140 created [20:15:52]Thread 3067239780 joined [20:15:52]Waiting for new connection... [20:15:52] Sock 9.Parse request [20:15:52]Sock 9.Check first char [20:15:52]Sock 9.First char is OK [20:15:52]request: POST /json_proto HTTP/1.0 [20:15:52]Method: POST [20:15:52]URL: /json_proto [20:15:52]Method is POST - this is cgi request [20:15:52]url: /json_proto [20:15:52]query_string will be loaded in cgi processing [20:15:52]execute_cgi json_proto POST (null) [20:15:52]execute_cgi path=json_proto method=POST [20:15:52]POST find Content-Length [20:15:52]Host: 172.17.45.7:8080 [20:15:52]Content-Length: 677 [20:15:52]Content-Type: application/json [20:15:52] [20:15:52]POST finish read [20:15:52]Found Content-Length = 677 [20:15:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:52]execute_script... [20:15: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)949471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:52]POST & json_proto [20:15:52]process_json_proto [20:15:52]json parsed OK: [20:15:52]protocol is kg_v1.0 [20:15:52]action value=close_receipt [20:15:52]process_action close_receipt [20:15:52]cmd_close_receipt [20:15:52]MH_GetDate [20:15:52]Write to MH i2c: F0 00 00 1F 1C 2A [20:15:52]Write i2c OK [20:15:52]MH_I2C_Read... [20:15:52]Read from MH i2c: F0 [20:15:52]MH_I2C_Read... [20:15:52]Read from MH i2c: F0 09 00 [20:15:52]MH_I2C_Read... [20:15:52]Read from MH i2c: F0 09 00 1F 1C 00 FA A6 A6 66 90 0F 3E 66 22 [20:15:52]GetLastDocTimeStamp 1722197318 [20:15:52]current date 1722197754 [20:15:52]FM_GetShiftState [20:15:52]SAM_PROTO_GetShiftState [20:15:52]wFMCommunicate request_size=4 [20:15:52]MH_SAM_APDU [20:15:52]CAPDU: 80 13 01 00 [20:15:52]Write to MH i2c: E2 08 00 20 1C 80 13 01 00 00 00 00 00 B9 [20:15:52]Write i2c OK [20:15:52]MH_I2C_Read... [20:15:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:52]Read from MH i2c: E2 [20:15:52]MH_I2C_Read... [20:15:52]Read from MH i2c: E2 0E 00 [20:15:52]MH_I2C_Read... [20:15:52]Read from MH i2c: E2 0E 00 20 1C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 90 [20:15:52]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [20:15:52]wFMCommunicate OK [20:15:52]SAM_PROTO_GetShiftState done [20:15:52]FM_GetShiftState done [20:15:52]opened in 1722125364 [20:15:52]opened+sec_in_day 1722211764 [20:15:52]quantity*price = 30035 [20:15:52]sum+1 = 30036 [20:15:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 253 28.07.2024 20:15 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118584 ФПД: 259670937763781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T201554&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118584&fm=259670937763781&tin=02508201610067®Number=0000000000092660&sum=30000 [20:15:53]StoreToDocumentArchive [20:15:53]shift 433 fd 118584 [20:15:53]save to /storage/0433/doc_00118584 [20:15:53]save last doc name /storage/0433/doc_00118584 to /storage/kkm_last_doc_name [20:15:53]save OK [20:15:53]Clear old archive folders... [20:15:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:15:53]tlvbuf is B6F43D10 [20:15:53]SAM_PROTO_ClearQueue [20:15:53]wFMCommunicate request_size=4 [20:15:53]MH_SAM_APDU [20:15:53]CAPDU: 80 09 00 00 [20:15:53]Write to MH i2c: E2 08 00 2D 1C 80 09 00 00 00 00 00 00 BB [20:15:53]Write i2c OK [20:15:53]MH_I2C_Read... [20:15:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:53]Read from MH i2c: E2 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: E2 03 00 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: E2 03 00 2D 1C 00 90 00 BD [20:15:53]RAPDU: 90 00 [20:15:53]wFMCommunicate OK [20:15:53]SAM_PROTO_ClearQueue done [20:15:53]KKMCreateOFDPacket [20:15:53]OFDProtocolAddRootSTLVToBuf [20:15:53]FM_MakeSignedData [20:15:53]FM_MakeSignedData [20:15:53]SAM_PROTO_SignData [20:15:53]wFMCommunicate request_size=4 [20:15:53]MH_SAM_APDU [20:15:53]CAPDU: 80 0D 01 02 [20:15:53]Write to MH i2c: E2 08 00 2E 1C 80 0D 01 02 00 00 00 00 C3 [20:15:53]Write i2c OK [20:15:53]MH_I2C_Read... [20:15:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:53]Read from MH i2c: E2 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: E2 03 00 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: E2 03 00 2E 1C 00 90 00 BE [20:15:53]RAPDU: 90 00 [20:15:53]wFMCommunicate OK [20:15:53]wFMCommunicate request_size=255 [20:15:53]MH_SAM_APDU [20:15: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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 FA A6 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 38 CF 01 00 35 04 06 00 EC [20:15:53]Write to MH i2c: E2 02 01 2F 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 FA A6 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 38 CF 01 00 35 04 06 00 EC 00 00 B5 [20:15:53]Write i2c OK [20:15:53]MH_I2C_Read... [20:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:53]Read from MH i2c: E2 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: E2 03 00 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: E2 03 00 2F 1C 00 90 00 BF [20:15:53]RAPDU: 90 00 [20:15:53]wFMCommunicate OK [20:15:53]wFMCommunicate request_size=10 [20:15:53]MH_SAM_APDU [20:15:53]CAPDU: 80 0D 02 02 05 2B 5A 00 FF C5 [20:15:53]Write to MH i2c: E2 0D 00 30 1C 80 0D 02 02 05 00 2B 5A 00 FF C5 00 00 19 [20:15:53]Write i2c OK [20:15:53]MH_I2C_Read... [20:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:53]Read from MH i2c: E2 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: E2 03 00 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: E2 03 00 30 1C 00 90 00 C0 [20:15:53]RAPDU: 90 00 [20:15:53]wFMCommunicate OK [20:15:53]wFMCommunicate request_size=4 [20:15:53]MH_SAM_APDU [20:15:53]CAPDU: 80 0D 03 02 [20:15:53]Write to MH i2c: E2 08 00 31 1C 80 0D 03 02 00 00 00 00 C8 [20:15:53]Write i2c OK [20:15:53]MH_I2C_Read... [20:15:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:54]Read from MH i2c: E2 [20:15:54]MH_I2C_Read... [20:15:54]Read from MH i2c: E2 0B 00 [20:15:54]MH_I2C_Read... [20:15:54]Read from MH i2c: E2 0B 00 31 1C 00 79 7F 9F 43 B1 E0 D8 A5 90 00 B1 [20:15:54]RAPDU: 79 7F 9F 43 B1 E0 D8 A5 90 00 [20:15:54]wFMCommunicate OK [20:15:54]SAM_PROTO_SignData done [20:15:54]FM_MakeSignedData done [20:15:54]CreateOFDProtocolMessage [20:15:54]wFMCommunicate request_size=4 [20:15:54]MH_SAM_APDU [20:15:54]CAPDU: 80 11 00 00 [20:15:54]Write to MH i2c: E2 08 00 32 1C 80 11 00 00 00 00 00 00 C8 [20:15:54]Write i2c OK [20:15:54]MH_I2C_Read... [20:15:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:54]Read from MH i2c: E2 [20:15:54]MH_I2C_Read... [20:15:54]Read from MH i2c: E2 17 00 [20:15:54]MH_I2C_Read... [20:15:54]Read from MH i2c: E2 17 00 32 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 23 [20:15:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:15:54]wFMCommunicate OK [20:15:54]CreateOFDProtocolMessage done [20:15:54]OFDSenderStorePacket 118584 [20:15:54]StoreOFDPacket docnum=118584 [20:15:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 3B 72 07 01 41 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 FA A6 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 38 CF 01 00 35 04 06 00 EC 2B 5A 00 FF C5 79 7F 9F 43 B1 E0 D8 A5 [20:15:54]CheckFolder [20:15:54]dirname=/storage/ofd_packets [20:15:54]CheckFolder done [20:15:54]ProducePacketName [20:15:54]name=ofd_packets/00118584 [20:15:54]NVStorageSaveData ofd_packets/00118584 [20:15:54]File name is /storage/ofd_packets/00118584 [20:15:54]Write 301 bytes [20:15:54]NVStorageSaveData done [20:15:54]OFDSenderStorePacket done [20:15:54]KKMCreateOFDPacket done [20:15:54]NVStorageSaveData kkm_last_timestamp [20:15:54]File name is /storage/kkm_last_timestamp [20:15:54]Write 4 bytes [20:15:54]NVStorageSaveData done [20:15:54]ExternCall_PrintAddStr [20:15:54]wPrintStart [20:15:54]Write to MH i2c: 01 00 00 33 1C 4F [20:15:54]Write i2c OK [20:15:54]MH_I2C_Read... [20:15:54]Read from MH i2c: 01 [20:15:54]MH_I2C_Read... [20:15:54]Read from MH i2c: 01 07 00 [20:15:54]MH_I2C_Read... [20:15:54]Read from MH i2c: 01 07 00 33 1C 00 00 00 00 00 FF 0F 64 [20:15:54]RasterBufferAndPrint [20:15:54]line Счет N : (1)949471 [20:15:54]line ИНН: 02508201610067 [20:15:54]line Контрольно-Кассовый Чек [20:15:54]line ПРОДАЖА [20:15:54]line ТРК (МРК, ГНК) : 31 [20:15:54]line Товар: 2710124130 [20:15:54]line Аи-92-К-4 [20:15:54]line 4.430 * 67.80 [20:15:54]line = 300.35 [20:15:54]line НДС 12% НСП 1% [20:15:54]line > о реализуемом товаре [20:15:54]line ОКРУГЛЕНИЕ: -0.35 [20:15:54]line ИТОГО: 300.00 [20:15:54]line Внесено: 300.00 [20:15:54]line СДАЧА: 0.00 [20:15:54]line НСП 1% : 2.66 [20:15:54]line НДС 12% : 31.90 [20:15:54]line Наличными: 300.00 [20:15:54]line Безнал.: 0.00 [20:15:54]line Место: АЗС № 134 "Партнер Нефть" [20:15:54]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:15:54]line СНО: Общий режим [20:15:54]line Чек 253 28.07.2024 20:15 [20:15:54]line Смена: 433 ФФД: 1.0 [20:15:54]line ЗНМ: 0300000044 [20:15:54]line РНМ: 0000000000092660 [20:15:54]line Версия ККМ: 001 [20:15:54]line ФМ: 0000000000874939 [20:15:54]line ФД: 118584 [20:15:54]line ФПД: 259670937763781 [20:15:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T201554&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118584&fm=259670937763781&tin=02508201610067®Number=0000000000092660&sum=30000 [20:15:54]written 0, free lines is 4095 [20:15:54]OFD Sender: Processing packet 118584 [packets to send 86, broken 85] [20:15:54]ProducePacketName [20:15:54]name=ofd_packets/00118584 [20:15:54]OFD Sender: To server: pG, [20:15:54]CommunicateWithHost lk.salyk.kg:30040 [20:15:54]ConnectInit lk.salyk.kg [20:15:54]Connected sock=10 [20:15:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 3B 72 07 01 41 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 FA A6 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 38 CF 01 00 35 04 06 00 EC 2B 5A 00 FF C5 79 7F 9F 43 B1 E0 D8 A5 [20:15:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B8 15 47 00 E7 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 38 CF 01 00 F4 03 04 00 89 54 A6 66 B6 04 01 00 00 C2 33 C1 EC FD 89 84 D1 [20:15:54]CommunicateWithHost err = 0 [20:15:54]CheckOFDResponse [20:15:54]1017 (14) - 77093643461234 [20:15:54]1041 (16) - 0000000000874939 [20:15:54]1040 (4) - 118584 [20:15:54]1012 (4) - 28.07.2024 14:24 [20:15:54]1206 (1) - 0 [20:15:54]OFD Sender: Remove packet 118584 [20:15:54]ProducePacketName [20:15:54]name=ofd_packets/00118584 [20:15:54]NVStorageDeleteData [20:15:54]Write to MH i2c: 01 00 00 5D 1C 79 [20:15:54]Write i2c OK [20:15:54]MH_I2C_Read... [20:15:54]Read from MH i2c: 01 [20:15:54]MH_I2C_Read... [20:15:54]Read from MH i2c: 01 07 00 [20:15:54]MH_I2C_Read... [20:15:54]Read from MH i2c: 01 07 00 5D 1C 00 00 00 00 00 E0 0C 6C [20:15:54]RasterBufferAndPrint [20:15:54]line [20:15:54]line [20:15:54]line [20:15:54]line [20:15:54]line [20:15:54]written 0, free lines is 3302 [20:15:54]MH_Cut [20:15:54]Write to MH i2c: D1 01 00 64 1C 01 52 [20:15:54]Write i2c OK [20:15:54]MH_I2C_Read... [20:15:54]Read from MH i2c: D1 [20:15:54]MH_I2C_Read... [20:15:54]Read from MH i2c: D1 01 00 [20:15:54]MH_I2C_Read... [20:15:54]Read from MH i2c: D1 01 00 64 1C 00 51 [20:15:54]Write to MH i2c: 01 00 00 65 1C 81 [20:15:54]Write i2c OK [20:15:54]MH_I2C_Read... [20:15:54]OFD Sender: No OFD packet to send [20:15:55]*** Cut start [20:15:55]*** Partial cut [20:15:55]*** CUTSNS_PIN = 1 [20:15:55]*** CUTSNS_PIN = 0 [20:15:55]*** Brake cut motor [20:15:55]Read from MH i2c: 01 [20:15:55]MH_I2C_Read... [20:15:55]*** Stop cut motor [20:15:55]*** Cut end [20:15:55]Read from MH i2c: 01 07 00 [20:15:55]MH_I2C_Read... [20:15:55]Read from MH i2c: 01 07 00 65 1C 00 00 00 00 00 FF 0F 96 [20:15:55]process_action close_receipt done [20:15:55]requested_data is exist [20:15:55]produce_requested_data [20:15:55]requested_item fm.sn is exist - process it [20:15:55]wFMCommunicate request_size=4 [20:15:55]MH_SAM_APDU [20:15:55]CAPDU: 80 11 00 00 [20:15:55]Write to MH i2c: E2 08 00 66 1C 80 11 00 00 00 00 00 00 FC [20:15:55]Write i2c OK [20:15:55]MH_I2C_Read... [20:15:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:55]Read from MH i2c: E2 [20:15:55]MH_I2C_Read... [20:15:55]Read from MH i2c: E2 17 00 [20:15:55]MH_I2C_Read... [20:15:55]Read from MH i2c: E2 17 00 66 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 57 [20:15:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:15:55]wFMCommunicate OK [20:15:55]requested_item fd.num is exist - process it [20:15:55]SAM_PROTO_GetFieldsCounters [20:15:55]wFMCommunicate request_size=4 [20:15:55]MH_SAM_APDU [20:15:55]CAPDU: 80 13 00 00 [20:15:55]Write to MH i2c: E2 08 00 67 1C 80 13 00 00 00 00 00 00 FF [20:15:55]Write i2c OK [20:15:55]MH_I2C_Read... [20:15:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:56]Read from MH i2c: E2 [20:15:56]MH_I2C_Read... [20:15:56]Read from MH i2c: E2 62 00 [20:15:56]MH_I2C_Read... [20:15:56]Read from MH i2c: E2 62 00 67 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 38 CF 01 00 0E 04 04 00 B1 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 D7 [20:15:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 38 CF 01 00 0E 04 04 00 B1 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 [20:15:56]wFMCommunicate OK [20:15:56]SAM_PROTO_GetFieldsCounters done [20:15:56]requested_item shift.num is exist - process it [20:15:56]requested_item shift.opened is exist - process it [20:15:56]req_shift_opened [20:15:56]FM_GetShiftState [20:15:56]SAM_PROTO_GetShiftState [20:15:56]wFMCommunicate request_size=4 [20:15:56]MH_SAM_APDU [20:15:56]CAPDU: 80 13 01 00 [20:15:56]Write to MH i2c: E2 08 00 68 1C 80 13 01 00 00 00 00 00 01 [20:15:56]Write i2c OK [20:15:56]MH_I2C_Read... [20:15:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:56]Read from MH i2c: E2 [20:15:56]MH_I2C_Read... [20:15:56]Read from MH i2c: E2 0E 00 [20:15:56]MH_I2C_Read... [20:15:56]Read from MH i2c: E2 0E 00 68 1C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 D8 [20:15:56]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [20:15:56]wFMCommunicate OK [20:15:56]SAM_PROTO_GetShiftState done [20:15:56]FM_GetShiftState done [20:15:56]req_shift_opened done [20:15:56]requested_item shift.open_date is exist - process it [20:15:56]req_shift_open_date [20:15:56]req_shift_open_date done [20:15:56]produce_requested_data done [20:15:56]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118584,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [20:15:56]process_action_free close_receipt [20:15:56]json_value_free [20:15:56]json_value_free done [20:15:56]process_json_proto returns [20:15:56]Send response to host [20:15:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118584,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [20:15:56]free response buf [20:15:56]execute_script done [20:15:56]execute_script returns [20:15:56]free content buf [20:15:56]Sock 9.Close socket [20:15:56]Sock 9.Thread stoped [20:15:59]OFD Sender: No OFD packet to send [20:16:04]OFD Sender: No OFD packet to send [20:16:09]OFD Sender: No OFD packet to send [20:16:14]OFD Sender: No OFD packet to send [20:16:19]OFD Sender: No OFD packet to send [20:16:24]OFD Sender: No OFD packet to send [20:16:29]OFD Sender: No OFD packet to send [20:16:34]OFD Sender: No OFD packet to send [20:16:39]OFD Sender: No OFD packet to send [20:16:44]OFD Sender: No OFD packet to send [20:16:49]OFD Sender: No OFD packet to send [20:16:54]OFD Sender: No OFD packet to send [20:16:59]OFD Sender: No OFD packet to send [20:17:04]OFD Sender: No OFD packet to send [20:17:09]accept exits with 7 [20:17:09]New connection [20:17:09]New thread 3067239780 created [20:17:09]Thread 3067383140 joined [20:17:09]Waiting for new connection... [20:17:09] Sock 7.Parse request [20:17:09]Sock 7.Check first char [20:17:09]Sock 7.First char is OK [20:17:09]request: POST /json_proto HTTP/1.0 [20:17:09]Method: POST [20:17:09]URL: /json_proto [20:17:09]Method is POST - this is cgi request [20:17:09]url: /json_proto [20:17:09]query_string will be loaded in cgi processing [20:17:09]execute_cgi json_proto POST (null) [20:17:09]execute_cgi path=json_proto method=POST [20:17:09]POST find Content-Length [20:17:09]Host: 172.17.45.7:8080 [20:17:09]Content-Length: 834 [20:17:09]Content-Type: application/json [20:17:09] [20:17:09]POST finish read [20:17:09]Found Content-Length = 834 [20:17:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.54, "quantity" : 6.800, "sum" : 500.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:09]execute_script... [20:17: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)949472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.54, "quantity" : 6.800, "sum" : 500.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:09]POST & json_proto [20:17:09]process_json_proto [20:17:09]json parsed OK: [20:17:09]protocol is kg_v1.0 [20:17:09]action value=close_receipt [20:17:09]process_action close_receipt [20:17:09]cmd_close_receipt [20:17:09]MH_GetDate [20:17:09]Write to MH i2c: F0 00 00 69 1C 74 [20:17:09]Write i2c OK [20:17:09]MH_I2C_Read... [20:17:09]Read from MH i2c: F0 [20:17:09]MH_I2C_Read... [20:17:09]Read from MH i2c: F0 09 00 [20:17:09]MH_I2C_Read... [20:17:09]Read from MH i2c: F0 09 00 69 1C 00 47 A7 A6 66 90 0F 3E 66 BA [20:17:09]GetLastDocTimeStamp 1722197754 [20:17:09]current date 1722197831 [20:17:09]FM_GetShiftState [20:17:09]SAM_PROTO_GetShiftState [20:17:09]wFMCommunicate request_size=4 [20:17:09]MH_SAM_APDU [20:17:09]CAPDU: 80 13 01 00 [20:17:09]Write to MH i2c: E2 08 00 6A 1C 80 13 01 00 00 00 00 00 03 [20:17:09]Write i2c OK [20:17:09]MH_I2C_Read... [20:17:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:09]Read from MH i2c: E2 [20:17:09]MH_I2C_Read... [20:17:09]Read from MH i2c: E2 0E 00 [20:17:09]MH_I2C_Read... [20:17:09]Read from MH i2c: E2 0E 00 6A 1C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 DA [20:17:09]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [20:17:09]wFMCommunicate OK [20:17:09]SAM_PROTO_GetShiftState done [20:17:09]FM_GetShiftState done [20:17:09]opened in 1722125364 [20:17:09]opened+sec_in_day 1722211764 [20:17:09]quantity*price = 50007 [20:17:09]sum+1 = 50008 [20:17:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 254 28.07.2024 20:17 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 118585 ФПД: 109083960675554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T201711&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118585&fm=109083960675554&tin=02508201610067®Number=0000000000092660&sum=50000 [20:17:10]StoreToDocumentArchive [20:17:10]shift 433 fd 118585 [20:17:10]save to /storage/0433/doc_00118585 [20:17:10]save last doc name /storage/0433/doc_00118585 to /storage/kkm_last_doc_name [20:17:10]save OK [20:17:10]Clear old archive folders... [20:17:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:17:10]tlvbuf is B6F2A8E0 [20:17:10]SAM_PROTO_ClearQueue [20:17:10]wFMCommunicate request_size=4 [20:17:10]MH_SAM_APDU [20:17:10]CAPDU: 80 09 00 00 [20:17:10]Write to MH i2c: E2 08 00 77 1C 80 09 00 00 00 00 00 00 05 [20:17:10]Write i2c OK [20:17:10]MH_I2C_Read... [20:17:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:17:10]Read from MH i2c: E2 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 03 00 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 03 00 77 1C 00 90 00 07 [20:17:10]RAPDU: 90 00 [20:17:10]wFMCommunicate OK [20:17:10]SAM_PROTO_ClearQueue done [20:17:10]KKMCreateOFDPacket [20:17:10]OFDProtocolAddRootSTLVToBuf [20:17:10]FM_MakeSignedData [20:17:10]FM_MakeSignedData [20:17:10]SAM_PROTO_SignData [20:17:10]wFMCommunicate request_size=4 [20:17:10]MH_SAM_APDU [20:17:10]CAPDU: 80 0D 01 02 [20:17:10]Write to MH i2c: E2 08 00 78 1C 80 0D 01 02 00 00 00 00 0D [20:17:10]Write i2c OK [20:17:10]MH_I2C_Read... [20:17:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:17:10]Read from MH i2c: E2 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 03 00 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 03 00 78 1C 00 90 00 08 [20:17:10]RAPDU: 90 00 [20:17:10]wFMCommunicate OK [20:17:10]wFMCommunicate request_size=255 [20:17:10]MH_SAM_APDU [20:17: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 33 FF 03 08 00 03 90 1A 00 00 00 00 00 37 04 06 00 BA 1C 00 00 00 00 13 04 06 00 57 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 47 A7 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 CF 01 00 35 04 06 00 63 [20:17:10]Write to MH i2c: E2 02 01 79 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 90 1A 00 00 00 00 00 37 04 06 00 BA 1C 00 00 00 00 13 04 06 00 57 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 47 A7 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 CF 01 00 35 04 06 00 63 00 00 82 [20:17:10]Write i2c OK [20:17:10]MH_I2C_Read... [20:17:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:11]Read from MH i2c: E2 [20:17:11]MH_I2C_Read... [20:17:11]Read from MH i2c: E2 03 00 [20:17:11]MH_I2C_Read... [20:17:11]Read from MH i2c: E2 03 00 79 1C 00 90 00 09 [20:17:11]RAPDU: 90 00 [20:17:11]wFMCommunicate OK [20:17:11]wFMCommunicate request_size=10 [20:17:11]MH_SAM_APDU [20:17:11]CAPDU: 80 0D 02 02 05 36 16 BA 0C E2 [20:17:11]Write to MH i2c: E2 0D 00 7A 1C 80 0D 02 02 05 00 36 16 BA 0C E2 00 00 0E [20:17:11]Write i2c OK [20:17:11]MH_I2C_Read... [20:17:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:11]Read from MH i2c: E2 [20:17:11]MH_I2C_Read... [20:17:11]Read from MH i2c: E2 03 00 [20:17:11]MH_I2C_Read... [20:17:11]Read from MH i2c: E2 03 00 7A 1C 00 90 00 0A [20:17:11]RAPDU: 90 00 [20:17:11]wFMCommunicate OK [20:17:11]wFMCommunicate request_size=4 [20:17:11]MH_SAM_APDU [20:17:11]CAPDU: 80 0D 03 02 [20:17:11]Write to MH i2c: E2 08 00 7B 1C 80 0D 03 02 00 00 00 00 12 [20:17:11]Write i2c OK [20:17:11]MH_I2C_Read... [20:17:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:17:11]Read from MH i2c: E2 [20:17:11]MH_I2C_Read... [20:17:11]Read from MH i2c: E2 0B 00 [20:17:11]MH_I2C_Read... [20:17:11]Read from MH i2c: E2 0B 00 7B 1C 00 7A 19 97 5F 9C 41 78 87 90 00 78 [20:17:11]RAPDU: 7A 19 97 5F 9C 41 78 87 90 00 [20:17:11]wFMCommunicate OK [20:17:11]SAM_PROTO_SignData done [20:17:11]FM_MakeSignedData done [20:17:11]CreateOFDProtocolMessage [20:17:11]wFMCommunicate request_size=4 [20:17:11]MH_SAM_APDU [20:17:11]CAPDU: 80 11 00 00 [20:17:11]Write to MH i2c: E2 08 00 7C 1C 80 11 00 00 00 00 00 00 12 [20:17:11]Write i2c OK [20:17:11]MH_I2C_Read... [20:17:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:11]Read from MH i2c: E2 [20:17:11]MH_I2C_Read... [20:17:11]Read from MH i2c: E2 17 00 [20:17:11]MH_I2C_Read... [20:17:11]Read from MH i2c: E2 17 00 7C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6D [20:17:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:17:11]wFMCommunicate OK [20:17:11]CreateOFDProtocolMessage done [20:17:11]OFDSenderStorePacket 118585 [20:17:11]StoreOFDPacket docnum=118585 [20:17:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 0D 48 07 01 E2 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 90 1A 00 00 00 00 00 37 04 06 00 BA 1C 00 00 00 00 13 04 06 00 57 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 47 A7 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 CF 01 00 35 04 06 00 63 36 16 BA 0C E2 7A 19 97 5F 9C 41 78 87 [20:17:11]CheckFolder [20:17:11]dirname=/storage/ofd_packets [20:17:11]CheckFolder done [20:17:11]ProducePacketName [20:17:11]name=ofd_packets/00118585 [20:17:11]NVStorageSaveData ofd_packets/00118585 [20:17:11]File name is /storage/ofd_packets/00118585 [20:17:11]Write 301 bytes [20:17:11]NVStorageSaveData done [20:17:11]OFDSenderStorePacket done [20:17:11]KKMCreateOFDPacket done [20:17:11]NVStorageSaveData kkm_last_timestamp [20:17:11]File name is /storage/kkm_last_timestamp [20:17:11]Write 4 bytes [20:17:11]NVStorageSaveData done [20:17:11]ExternCall_PrintAddStr [20:17:11]wPrintStart [20:17:11]Write to MH i2c: 01 00 00 7D 1C 99 [20:17:11]Write i2c OK [20:17:11]MH_I2C_Read... [20:17:11]Read from MH i2c: 01 [20:17:11]MH_I2C_Read... [20:17:11]Read from MH i2c: 01 07 00 [20:17:11]MH_I2C_Read... [20:17:11]Read from MH i2c: 01 07 00 7D 1C 00 00 00 00 00 FF 0F AE [20:17:11]RasterBufferAndPrint [20:17:11]line Счет N : (1)949472 [20:17:11]line ИНН: 02508201610067 [20:17:11]line Контрольно-Кассовый Чек [20:17:11]line ПРОДАЖА [20:17:11]line ТРК (МРК, ГНК) : 43 [20:17:11]line Товар: 2710124500 [20:17:11]line Аи-95-К-3 [20:17:11]line 6.800 * 73.54 [20:17:11]line = 500.07 [20:17:11]line НДС 12% НСП 1% [20:17:11]line > о реализуемом товаре [20:17:11]line ОКРУГЛЕНИЕ: -0.07 [20:17:11]line ИТОГО: 500.00 [20:17:11]line НСП 1% : 4.42 [20:17:11]line НДС 12% : 53.10 [20:17:11]line Наличными: 0.00 [20:17:11]line Безнал.: 500.00 [20:17:11]line Место: АЗС № 134 "Партнер Нефть" [20:17:11]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:17:11]line СНО: Общий режим [20:17:11]line Чек 254 28.07.2024 20:17 [20:17:11]line Смена: 433 ФФД: 1.0 [20:17:11]line ЗНМ: 0300000044 [20:17:11]line РНМ: 0000000000092660 [20:17:11]line Версия ККМ: 001 [20:17:11]line Платежная система: Бакай Банк [20:17:11]line ФМ: 0000000000874939 [20:17:11]line ФД: 118585 [20:17:11]line ФПД: 109083960675554 [20:17:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T201711&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118585&fm=109083960675554&tin=02508201610067®Number=0000000000092660&sum=50000 [20:17:11]written 0, free lines is 4095 [20:17:11]OFD Sender: Processing packet 118585 [packets to send 86, broken 85] [20:17:11]ProducePacketName [20:17:11]name=ofd_packets/00118585 [20:17:11]OFD Sender: To server: pG, [20:17:11]CommunicateWithHost lk.salyk.kg:30040 [20:17:11]ConnectInit lk.salyk.kg [20:17:11]Connected sock=10 [20:17:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 0D 48 07 01 E2 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 90 1A 00 00 00 00 00 37 04 06 00 BA 1C 00 00 00 00 13 04 06 00 57 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 47 A7 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 CF 01 00 35 04 06 00 63 36 16 BA 0C E2 7A 19 97 5F 9C 41 78 87 [20:17:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5A 34 47 00 AF 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 39 33 39 10 04 04 00 39 CF 01 00 F4 03 04 00 D7 54 A6 66 B6 04 01 00 00 23 1F 44 14 6D 6A 84 6C [20:17:11]CommunicateWithHost err = 0 [20:17:11]CheckOFDResponse [20:17:11]1017 (14) - 77093643461234 [20:17:11]1041 (16) - 0000000000874939 [20:17:11]1040 (4) - 118585 [20:17:11]1012 (4) - 28.07.2024 14:25 [20:17:11]1206 (1) - 0 [20:17:11]OFD Sender: Remove packet 118585 [20:17:11]ProducePacketName [20:17:11]name=ofd_packets/00118585 [20:17:11]NVStorageDeleteData [20:17:12]Write to MH i2c: 01 00 00 A7 1C C3 [20:17:12]Write i2c OK [20:17:12]MH_I2C_Read... [20:17:12]Read from MH i2c: 01 [20:17:12]MH_I2C_Read... [20:17:12]Read from MH i2c: 01 07 00 [20:17:12]MH_I2C_Read... [20:17:12]Read from MH i2c: 01 07 00 A7 1C 00 00 00 00 00 F0 0C C6 [20:17:12]RasterBufferAndPrint [20:17:12]line [20:17:12]line [20:17:12]line [20:17:12]line [20:17:12]line [20:17:12]written 0, free lines is 3319 [20:17:12]MH_Cut [20:17:12]Write to MH i2c: D1 01 00 AE 1C 01 9C [20:17:12]Write i2c OK [20:17:12]MH_I2C_Read... [20:17:12]Read from MH i2c: D1 [20:17:12]MH_I2C_Read... [20:17:12]Read from MH i2c: D1 01 00 [20:17:12]MH_I2C_Read... [20:17:12]Read from MH i2c: D1 01 00 AE 1C 00 9B [20:17:12]Write to MH i2c: 01 00 00 AF 1C CB [20:17:12]Write i2c OK [20:17:12]MH_I2C_Read... [20:17:12]OFD Sender: No OFD packet to send [20:17:12]*** Cut start [20:17:12]*** Partial cut [20:17:12]*** CUTSNS_PIN = 1 [20:17:12]*** CUTSNS_PIN = 0 [20:17:13]*** Brake cut motor [20:17:13]Read from MH i2c: 01 [20:17:13]MH_I2C_Read... [20:17:13]*** Stop cut motor [20:17:13]*** Cut end [20:17:13]Read from MH i2c: 01 07 00 [20:17:13]MH_I2C_Read... [20:17:13]Read from MH i2c: 01 07 00 AF 1C 00 00 00 00 00 FF 0F E0 [20:17:13]process_action close_receipt done [20:17:13]requested_data is exist [20:17:13]produce_requested_data [20:17:13]requested_item fm.sn is exist - process it [20:17:13]wFMCommunicate request_size=4 [20:17:13]MH_SAM_APDU [20:17:13]CAPDU: 80 11 00 00 [20:17:13]Write to MH i2c: E2 08 00 B0 1C 80 11 00 00 00 00 00 00 46 [20:17:13]Write i2c OK [20:17:13]MH_I2C_Read... [20:17:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:13]Read from MH i2c: E2 [20:17:13]MH_I2C_Read... [20:17:13]Read from MH i2c: E2 17 00 [20:17:13]MH_I2C_Read... [20:17:13]Read from MH i2c: E2 17 00 B0 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A1 [20:17:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:17:13]wFMCommunicate OK [20:17:13]requested_item fd.num is exist - process it [20:17:13]SAM_PROTO_GetFieldsCounters [20:17:13]wFMCommunicate request_size=4 [20:17:13]MH_SAM_APDU [20:17:13]CAPDU: 80 13 00 00 [20:17:13]Write to MH i2c: E2 08 00 B1 1C 80 13 00 00 00 00 00 00 49 [20:17:13]Write i2c OK [20:17:13]MH_I2C_Read... [20:17:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:17:13]Read from MH i2c: E2 [20:17:13]MH_I2C_Read... [20:17:13]Read from MH i2c: E2 62 00 [20:17:13]MH_I2C_Read... [20:17:13]Read from MH i2c: E2 62 00 B1 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 39 CF 01 00 0E 04 04 00 B1 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 25 [20:17:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 39 CF 01 00 0E 04 04 00 B1 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 [20:17:13]wFMCommunicate OK [20:17:13]SAM_PROTO_GetFieldsCounters done [20:17:13]requested_item shift.num is exist - process it [20:17:13]requested_item shift.opened is exist - process it [20:17:13]req_shift_opened [20:17:13]FM_GetShiftState [20:17:13]SAM_PROTO_GetShiftState [20:17:13]wFMCommunicate request_size=4 [20:17:13]MH_SAM_APDU [20:17:13]CAPDU: 80 13 01 00 [20:17:13]Write to MH i2c: E2 08 00 B2 1C 80 13 01 00 00 00 00 00 4B [20:17:13]Write i2c OK [20:17:13]MH_I2C_Read... [20:17:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:13]Read from MH i2c: E2 [20:17:13]MH_I2C_Read... [20:17:13]Read from MH i2c: E2 0E 00 [20:17:13]MH_I2C_Read... [20:17:13]Read from MH i2c: E2 0E 00 B2 1C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 22 [20:17:13]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [20:17:13]wFMCommunicate OK [20:17:13]SAM_PROTO_GetShiftState done [20:17:13]FM_GetShiftState done [20:17:13]req_shift_opened done [20:17:13]requested_item shift.open_date is exist - process it [20:17:13]req_shift_open_date [20:17:13]req_shift_open_date done [20:17:13]produce_requested_data done [20:17:13]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118585,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [20:17:13]process_action_free close_receipt [20:17:13]json_value_free [20:17:13]json_value_free done [20:17:13]process_json_proto returns [20:17:13]Send response to host [20:17:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118585,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [20:17:13]free response buf [20:17:13]execute_script done [20:17:13]execute_script returns [20:17:13]free content buf [20:17:13]Sock 7.Close socket [20:17:13]Sock 7.Thread stoped [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:08]accept exits with 9 [20:18:08]New connection [20:18:08]New thread 3067383140 created [20:18:08]Thread 3067239780 joined [20:18:08]Waiting for new connection... [20:18:08] Sock 9.Parse request [20:18:08]Sock 9.Check first char [20:18:08]Sock 9.First char is OK [20:18:08]request: POST /json_proto HTTP/1.0 [20:18:08]Method: POST [20:18:08]URL: /json_proto [20:18:08]Method is POST - this is cgi request [20:18:08]url: /json_proto [20:18:08]query_string will be loaded in cgi processing [20:18:08]execute_cgi json_proto POST (null) [20:18:08]execute_cgi path=json_proto method=POST [20:18:08]POST find Content-Length [20:18:08]Host: 172.17.45.7:8080 [20:18:08]Content-Length: 822 [20:18:08]Content-Type: application/json [20:18:08] [20:18:08]POST finish read [20:18:08]Found Content-Length = 822 [20:18:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.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", "total" : 2500.00, "payments": [ { "type": 1, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:08]execute_script... [20:18: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)949473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.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", "total" : 2500.00, "payments": [ { "type": 1, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:08]POST & json_proto [20:18:08]process_json_proto [20:18:08]json parsed OK: [20:18:08]protocol is kg_v1.0 [20:18:08]action value=close_receipt [20:18:08]process_action close_receipt [20:18:08]cmd_close_receipt [20:18:08]MH_GetDate [20:18:08]Write to MH i2c: F0 00 00 B3 1C BE [20:18:08]Write i2c OK [20:18:08]MH_I2C_Read... [20:18:08]Read from MH i2c: F0 [20:18:08]MH_I2C_Read... [20:18:08]Read from MH i2c: F0 09 00 [20:18:08]MH_I2C_Read... [20:18:08]Read from MH i2c: F0 09 00 B3 1C 00 82 A7 A6 66 90 0F 3E 66 3F [20:18:08]GetLastDocTimeStamp 1722197831 [20:18:08]current date 1722197890 [20:18:08]FM_GetShiftState [20:18:08]SAM_PROTO_GetShiftState [20:18:08]wFMCommunicate request_size=4 [20:18:08]MH_SAM_APDU [20:18:08]CAPDU: 80 13 01 00 [20:18:08]Write to MH i2c: E2 08 00 B4 1C 80 13 01 00 00 00 00 00 4D [20:18:08]Write i2c OK [20:18:08]MH_I2C_Read... [20:18:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:08]Read from MH i2c: E2 [20:18:08]MH_I2C_Read... [20:18:08]Read from MH i2c: E2 0E 00 [20:18:08]MH_I2C_Read... [20:18:08]Read from MH i2c: E2 0E 00 B4 1C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 24 [20:18:08]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [20:18:08]wFMCommunicate OK [20:18:08]SAM_PROTO_GetShiftState done [20:18:08]FM_GetShiftState done [20:18:08]opened in 1722125364 [20:18:08]opened+sec_in_day 1722211764 [20:18:08]quantity*price = 250054 [20:18:08]sum+1 = 250055 [20:18:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2500.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 0.00 Безнал.: 2500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 255 28.07.2024 20:18 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118586 ФПД: 162453336879147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T201810&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118586&fm=162453336879147&tin=02508201610067®Number=0000000000092660&sum=250000 [20:18:09]StoreToDocumentArchive [20:18:09]shift 433 fd 118586 [20:18:09]save to /storage/0433/doc_00118586 [20:18:09]save last doc name /storage/0433/doc_00118586 to /storage/kkm_last_doc_name [20:18:09]save OK [20:18:09]Clear old archive folders... [20:18:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:18:09]tlvbuf is B6F119F0 [20:18:09]SAM_PROTO_ClearQueue [20:18:09]wFMCommunicate request_size=4 [20:18:09]MH_SAM_APDU [20:18:09]CAPDU: 80 09 00 00 [20:18:09]Write to MH i2c: E2 08 00 C1 1C 80 09 00 00 00 00 00 00 4F [20:18:09]Write i2c OK [20:18:09]MH_I2C_Read... [20:18:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:09]Read from MH i2c: E2 [20:18:09]MH_I2C_Read... [20:18:09]Read from MH i2c: E2 03 00 [20:18:09]MH_I2C_Read... [20:18:09]Read from MH i2c: E2 03 00 C1 1C 00 90 00 51 [20:18:09]RAPDU: 90 00 [20:18:09]wFMCommunicate OK [20:18:09]SAM_PROTO_ClearQueue done [20:18:09]KKMCreateOFDPacket [20:18:09]OFDProtocolAddRootSTLVToBuf [20:18:09]FM_MakeSignedData [20:18:09]FM_MakeSignedData [20:18:09]SAM_PROTO_SignData [20:18:09]wFMCommunicate request_size=4 [20:18:09]MH_SAM_APDU [20:18:09]CAPDU: 80 0D 01 02 [20:18:09]Write to MH i2c: E2 08 00 C2 1C 80 0D 01 02 00 00 00 00 57 [20:18:09]Write i2c OK [20:18:09]MH_I2C_Read... [20:18:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:09]Read from MH i2c: E2 [20:18:09]MH_I2C_Read... [20:18:09]Read from MH i2c: E2 03 00 [20:18:09]MH_I2C_Read... [20:18:09]Read from MH i2c: E2 03 00 C2 1C 00 90 00 52 [20:18:09]RAPDU: 90 00 [20:18:09]wFMCommunicate OK [20:18:09]wFMCommunicate request_size=255 [20:18:09]MH_SAM_APDU [20:18:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 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 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 82 A7 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3A CF 01 00 35 04 06 00 93 [20:18:09]Write to MH i2c: E2 02 01 C3 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 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 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 82 A7 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3A CF 01 00 35 04 06 00 93 00 00 58 [20:18:09]Write i2c OK [20:18:09]MH_I2C_Read... [20:18:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:10]Read from MH i2c: E2 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 03 00 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 03 00 C3 1C 00 90 00 53 [20:18:10]RAPDU: 90 00 [20:18:10]wFMCommunicate OK [20:18:10]wFMCommunicate request_size=10 [20:18:10]MH_SAM_APDU [20:18:10]CAPDU: 80 0D 02 02 05 C0 1D 6F F0 2B [20:18:10]Write to MH i2c: E2 0D 00 C4 1C 80 0D 02 02 05 00 C0 1D 6F F0 2B 00 00 CB [20:18:10]Write i2c OK [20:18:10]MH_I2C_Read... [20:18:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:10]Read from MH i2c: E2 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 03 00 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 03 00 C4 1C 00 90 00 54 [20:18:10]RAPDU: 90 00 [20:18:10]wFMCommunicate OK [20:18:10]wFMCommunicate request_size=4 [20:18:10]MH_SAM_APDU [20:18:10]CAPDU: 80 0D 03 02 [20:18:10]Write to MH i2c: E2 08 00 C5 1C 80 0D 03 02 00 00 00 00 5C [20:18:10]Write i2c OK [20:18:10]MH_I2C_Read... [20:18:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:10]Read from MH i2c: E2 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 0B 00 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 0B 00 C5 1C 00 25 70 98 6D AE 1A 22 7A 90 00 5B [20:18:10]RAPDU: 25 70 98 6D AE 1A 22 7A 90 00 [20:18:10]wFMCommunicate OK [20:18:10]SAM_PROTO_SignData done [20:18:10]FM_MakeSignedData done [20:18:10]CreateOFDProtocolMessage [20:18:10]wFMCommunicate request_size=4 [20:18:10]MH_SAM_APDU [20:18:10]CAPDU: 80 11 00 00 [20:18:10]Write to MH i2c: E2 08 00 C6 1C 80 11 00 00 00 00 00 00 5C [20:18:10]Write i2c OK [20:18:10]MH_I2C_Read... [20:18:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:10]Read from MH i2c: E2 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 17 00 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 17 00 C6 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B7 [20:18:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:18:10]wFMCommunicate OK [20:18:10]CreateOFDProtocolMessage done [20:18:10]OFDSenderStorePacket 118586 [20:18:10]StoreOFDPacket docnum=118586 [20:18:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 6B 21 07 01 8D 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 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 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 82 A7 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3A CF 01 00 35 04 06 00 93 C0 1D 6F F0 2B 25 70 98 6D AE 1A 22 7A [20:18:10]CheckFolder [20:18:10]dirname=/storage/ofd_packets [20:18:10]CheckFolder done [20:18:10]ProducePacketName [20:18:10]name=ofd_packets/00118586 [20:18:10]NVStorageSaveData ofd_packets/00118586 [20:18:10]File name is /storage/ofd_packets/00118586 [20:18:10]Write 301 bytes [20:18:10]NVStorageSaveData done [20:18:10]OFDSenderStorePacket done [20:18:10]KKMCreateOFDPacket done [20:18:10]NVStorageSaveData kkm_last_timestamp [20:18:10]File name is /storage/kkm_last_timestamp [20:18:10]Write 4 bytes [20:18:10]NVStorageSaveData done [20:18:10]ExternCall_PrintAddStr [20:18:10]wPrintStart [20:18:10]Write to MH i2c: 01 00 00 C7 1C E3 [20:18:10]Write i2c OK [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: 01 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: 01 07 00 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: 01 07 00 C7 1C 00 00 00 00 00 FF 0F F8 [20:18:10]RasterBufferAndPrint [20:18:10]line Счет N : (1)949473 [20:18:10]line ИНН: 02508201610067 [20:18:10]line Контрольно-Кассовый Чек [20:18:10]line ПРОДАЖА [20:18:10]line ТРК (МРК, ГНК) : 63 [20:18:10]line Товар: 2710124500 [20:18:10]line Аи-95-К-3 [20:18:10]line 33.700 * 74.20 [20:18:10]line = 2500.54 [20:18:10]line НДС 12% НСП 1% [20:18:10]line > о реализуемом товаре [20:18:10]line ОКРУГЛЕНИЕ: -0.54 [20:18:10]line ИТОГО: 2500.00 [20:18:10]line НСП 1% : 22.13 [20:18:10]line НДС 12% : 265.54 [20:18:10]line Наличными: 0.00 [20:18:10]line Безнал.: 2500.00 [20:18:10]line Место: АЗС № 134 "Партнер Нефть" [20:18:10]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:18:10]line СНО: Общий режим [20:18:10]line Чек 255 28.07.2024 20:18 [20:18:10]line Смена: 433 ФФД: 1.0 [20:18:10]line ЗНМ: 0300000044 [20:18:10]line РНМ: 0000000000092660 [20:18:10]line Версия ККМ: 001 [20:18:10]line Платежная система: O! деньги [20:18:10]line ФМ: 0000000000874939 [20:18:10]line ФД: 118586 [20:18:10]line ФПД: 162453336879147 [20:18:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T201810&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118586&fm=162453336879147&tin=02508201610067®Number=0000000000092660&sum=250000 [20:18:10]written 0, free lines is 4095 [20:18:10]OFD Sender: Processing packet 118586 [packets to send 86, broken 85] [20:18:10]ProducePacketName [20:18:10]name=ofd_packets/00118586 [20:18:10]OFD Sender: To server: pG, [20:18:10]CommunicateWithHost lk.salyk.kg:30040 [20:18:10]ConnectInit lk.salyk.kg [20:18:10]Connected sock=10 [20:18:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 6B 21 07 01 8D 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 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 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 82 A7 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3A CF 01 00 35 04 06 00 93 C0 1D 6F F0 2B 25 70 98 6D AE 1A 22 7A [20:18:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F2 DD 47 00 AB 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 39 33 39 10 04 04 00 3A CF 01 00 F4 03 04 00 12 55 A6 66 B6 04 01 00 00 82 20 2D 47 42 DC 72 E2 [20:18:10]CommunicateWithHost err = 0 [20:18:10]CheckOFDResponse [20:18:10]1017 (14) - 77093643461234 [20:18:10]1041 (16) - 0000000000874939 [20:18:10]1040 (4) - 118586 [20:18:10]1012 (4) - 28.07.2024 14:26 [20:18:10]1206 (1) - 0 [20:18:10]OFD Sender: Remove packet 118586 [20:18:10]ProducePacketName [20:18:10]name=ofd_packets/00118586 [20:18:10]NVStorageDeleteData [20:18:11]Write to MH i2c: 01 00 00 F1 1C 0D [20:18:11]Write i2c OK [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: 01 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: 01 07 00 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: 01 07 00 F1 1C 00 00 00 00 00 E4 0C 04 [20:18:11]RasterBufferAndPrint [20:18:11]line [20:18:11]line [20:18:11]line [20:18:11]line [20:18:11]line [20:18:11]written 0, free lines is 3307 [20:18:11]MH_Cut [20:18:11]Write to MH i2c: D1 01 00 F8 1C 01 E6 [20:18:11]Write i2c OK [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: D1 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: D1 01 00 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: D1 01 00 F8 1C 00 E5 [20:18:11]Write to MH i2c: 01 00 00 F9 1C 15 [20:18:11]Write i2c OK [20:18:11]MH_I2C_Read... [20:18:11]OFD Sender: No OFD packet to send [20:18:11]*** Cut start [20:18:11]*** Partial cut [20:18:11]*** CUTSNS_PIN = 1 [20:18:11]*** CUTSNS_PIN = 0 [20:18:12]*** Brake cut motor [20:18:12]Read from MH i2c: 01 [20:18:12]MH_I2C_Read... [20:18:12]*** Stop cut motor [20:18:12]*** Cut end [20:18:12]Read from MH i2c: 01 07 00 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: 01 07 00 F9 1C 00 00 00 00 00 FF 0F 2A [20:18:12]process_action close_receipt done [20:18:12]requested_data is exist [20:18:12]produce_requested_data [20:18:12]requested_item fm.sn is exist - process it [20:18:12]wFMCommunicate request_size=4 [20:18:12]MH_SAM_APDU [20:18:12]CAPDU: 80 11 00 00 [20:18:12]Write to MH i2c: E2 08 00 FA 1C 80 11 00 00 00 00 00 00 90 [20:18:12]Write i2c OK [20:18:12]MH_I2C_Read... [20:18:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:12]Read from MH i2c: E2 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 17 00 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 17 00 FA 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EB [20:18:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:18:12]wFMCommunicate OK [20:18:12]requested_item fd.num is exist - process it [20:18:12]SAM_PROTO_GetFieldsCounters [20:18:12]wFMCommunicate request_size=4 [20:18:12]MH_SAM_APDU [20:18:12]CAPDU: 80 13 00 00 [20:18:12]Write to MH i2c: E2 08 00 FB 1C 80 13 00 00 00 00 00 00 93 [20:18:12]Write i2c OK [20:18:12]MH_I2C_Read... [20:18:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:12]Read from MH i2c: E2 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 62 00 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 62 00 FB 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3A CF 01 00 0E 04 04 00 B1 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 74 [20:18:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3A CF 01 00 0E 04 04 00 B1 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 [20:18:12]wFMCommunicate OK [20:18:12]SAM_PROTO_GetFieldsCounters done [20:18:12]requested_item shift.num is exist - process it [20:18:12]requested_item shift.opened is exist - process it [20:18:12]req_shift_opened [20:18:12]FM_GetShiftState [20:18:12]SAM_PROTO_GetShiftState [20:18:12]wFMCommunicate request_size=4 [20:18:12]MH_SAM_APDU [20:18:12]CAPDU: 80 13 01 00 [20:18:12]Write to MH i2c: E2 08 00 FC 1C 80 13 01 00 00 00 00 00 95 [20:18:12]Write i2c OK [20:18:12]MH_I2C_Read... [20:18:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:12]Read from MH i2c: E2 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 0E 00 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 0E 00 FC 1C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 6C [20:18:12]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [20:18:12]wFMCommunicate OK [20:18:12]SAM_PROTO_GetShiftState done [20:18:12]FM_GetShiftState done [20:18:12]req_shift_opened done [20:18:12]requested_item shift.open_date is exist - process it [20:18:12]req_shift_open_date [20:18:12]req_shift_open_date done [20:18:12]produce_requested_data done [20:18:12]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118586,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [20:18:12]process_action_free close_receipt [20:18:12]json_value_free [20:18:12]json_value_free done [20:18:12]process_json_proto returns [20:18:12]Send response to host [20:18:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118586,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [20:18:12]free response buf [20:18:12]execute_script done [20:18:12]execute_script returns [20:18:12]free content buf [20:18:12]Sock 9.Close socket [20:18:12]Sock 9.Thread stoped [20:18:16]OFD Sender: No OFD packet to send [20:18:20]accept exits with 7 [20:18:20]New connection [20:18:20]New thread 3067239780 created [20:18:20]Thread 3067383140 joined [20:18:20]Waiting for new connection... [20:18:20] Sock 7.Parse request [20:18:20]Sock 7.Check first char [20:18:20]Sock 7.First char is OK [20:18:20]request: POST /json_proto HTTP/1.0 [20:18:20]Method: POST [20:18:20]URL: /json_proto [20:18:20]Method is POST - this is cgi request [20:18:20]url: /json_proto [20:18:20]query_string will be loaded in cgi processing [20:18:20]execute_cgi json_proto POST (null) [20:18:20]execute_cgi path=json_proto method=POST [20:18:20]POST find Content-Length [20:18:20]Host: 172.17.45.7:8080 [20:18:20]Content-Length: 679 [20:18:20]Content-Type: application/json [20:18:20] [20:18:20]POST finish read [20:18:20]Found Content-Length = 679 [20:18:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:20]execute_script... [20:18:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:20]POST & json_proto [20:18:20]process_json_proto [20:18:20]json parsed OK: [20:18:20]protocol is kg_v1.0 [20:18:20]action value=close_receipt [20:18:20]process_action close_receipt [20:18:20]cmd_close_receipt [20:18:20]MH_GetDate [20:18:20]Write to MH i2c: F0 00 00 FD 1C 08 [20:18:20]Write i2c OK [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: F0 [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: F0 09 00 [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: F0 09 00 FD 1C 00 8E A7 A6 66 90 0F 3E 66 95 [20:18:20]GetLastDocTimeStamp 1722197890 [20:18:20]current date 1722197902 [20:18:20]FM_GetShiftState [20:18:20]SAM_PROTO_GetShiftState [20:18:20]wFMCommunicate request_size=4 [20:18:20]MH_SAM_APDU [20:18:20]CAPDU: 80 13 01 00 [20:18:20]Write to MH i2c: E2 08 00 FE 1C 80 13 01 00 00 00 00 00 97 [20:18:20]Write i2c OK [20:18:20]MH_I2C_Read... [20:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:20]Read from MH i2c: E2 [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: E2 0E 00 [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: E2 0E 00 FE 1C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 6E [20:18:20]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [20:18:20]wFMCommunicate OK [20:18:20]SAM_PROTO_GetShiftState done [20:18:20]FM_GetShiftState done [20:18:20]opened in 1722125364 [20:18:20]opened+sec_in_day 1722211764 [20:18:20]quantity*price = 120015 [20:18:20]sum+1 = 120016 [20:18:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 256 28.07.2024 20:18 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118587 ФПД: 152986209670445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T201822&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118587&fm=152986209670445&tin=02508201610067®Number=0000000000092660&sum=120000 [20:18:21]StoreToDocumentArchive [20:18:21]shift 433 fd 118587 [20:18:21]save to /storage/0433/doc_00118587 [20:18:21]save last doc name /storage/0433/doc_00118587 to /storage/kkm_last_doc_name [20:18:21]save OK [20:18:21]Clear old archive folders... [20:18:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:18:21]tlvbuf is 01EEEF20 [20:18:21]SAM_PROTO_ClearQueue [20:18:21]wFMCommunicate request_size=4 [20:18:21]MH_SAM_APDU [20:18:21]CAPDU: 80 09 00 00 [20:18:21]Write to MH i2c: E2 08 00 0B 1D 80 09 00 00 00 00 00 00 9A [20:18:21]Write i2c OK [20:18:21]MH_I2C_Read... [20:18:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:21]Read from MH i2c: E2 [20:18:21]MH_I2C_Read... [20:18:21]Read from MH i2c: E2 03 00 [20:18:21]MH_I2C_Read... [20:18:21]Read from MH i2c: E2 03 00 0B 1D 00 90 00 9C [20:18:21]RAPDU: 90 00 [20:18:21]wFMCommunicate OK [20:18:21]SAM_PROTO_ClearQueue done [20:18:21]KKMCreateOFDPacket [20:18:21]OFDProtocolAddRootSTLVToBuf [20:18:21]FM_MakeSignedData [20:18:21]FM_MakeSignedData [20:18:21]SAM_PROTO_SignData [20:18:21]wFMCommunicate request_size=4 [20:18:21]MH_SAM_APDU [20:18:21]CAPDU: 80 0D 01 02 [20:18:21]Write to MH i2c: E2 08 00 0C 1D 80 0D 01 02 00 00 00 00 A2 [20:18:21]Write i2c OK [20:18:21]MH_I2C_Read... [20:18:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:21]Read from MH i2c: E2 [20:18:21]MH_I2C_Read... [20:18:21]Read from MH i2c: E2 03 00 [20:18:21]MH_I2C_Read... [20:18:21]Read from MH i2c: E2 03 00 0C 1D 00 90 00 9D [20:18:21]RAPDU: 90 00 [20:18:21]wFMCommunicate OK [20:18:21]wFMCommunicate request_size=255 [20:18:21]MH_SAM_APDU [20:18:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 8E A7 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3B CF 01 00 35 04 06 00 8B 23 E0 AE [20:18:21]Write to MH i2c: E2 02 01 0D 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 8E A7 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3B CF 01 00 35 04 06 00 8B 23 E0 AE 00 00 DB [20:18:21]Write i2c OK [20:18:21]MH_I2C_Read... [20:18:21]OFD Sender: No OFD packet to send [20:18:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:21]Read from MH i2c: E2 [20:18:21]MH_I2C_Read... [20:18:21]Read from MH i2c: E2 03 00 [20:18:21]MH_I2C_Read... [20:18:21]Read from MH i2c: E2 03 00 0D 1D 00 90 00 9E [20:18:21]RAPDU: 90 00 [20:18:21]wFMCommunicate OK [20:18:21]wFMCommunicate request_size=7 [20:18:21]MH_SAM_APDU [20:18:21]CAPDU: 80 0D 02 02 02 D5 2D [20:18:21]Write to MH i2c: E2 0A 00 0E 1D 80 0D 02 02 02 00 D5 2D 00 00 AB [20:18:21]Write i2c OK [20:18:21]MH_I2C_Read... [20:18:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:21]Read from MH i2c: E2 [20:18:21]MH_I2C_Read... [20:18:21]Read from MH i2c: E2 03 00 [20:18:21]MH_I2C_Read... [20:18:21]Read from MH i2c: E2 03 00 0E 1D 00 90 00 9F [20:18:21]RAPDU: 90 00 [20:18:21]wFMCommunicate OK [20:18:21]wFMCommunicate request_size=4 [20:18:21]MH_SAM_APDU [20:18:21]CAPDU: 80 0D 03 02 [20:18:21]Write to MH i2c: E2 08 00 0F 1D 80 0D 03 02 00 00 00 00 A7 [20:18:21]Write i2c OK [20:18:21]MH_I2C_Read... [20:18:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:21]Read from MH i2c: E2 [20:18:21]MH_I2C_Read... [20:18:21]Read from MH i2c: E2 0B 00 [20:18:21]MH_I2C_Read... [20:18:21]Read from MH i2c: E2 0B 00 0F 1D 00 9A 75 FA B0 59 E3 2C 24 90 00 ED [20:18:21]RAPDU: 9A 75 FA B0 59 E3 2C 24 90 00 [20:18:21]wFMCommunicate OK [20:18:21]SAM_PROTO_SignData done [20:18:21]FM_MakeSignedData done [20:18:21]CreateOFDProtocolMessage [20:18:21]wFMCommunicate request_size=4 [20:18:21]MH_SAM_APDU [20:18:21]CAPDU: 80 11 00 00 [20:18:21]Write to MH i2c: E2 08 00 10 1D 80 11 00 00 00 00 00 00 A7 [20:18:21]Write i2c OK [20:18:21]MH_I2C_Read... [20:18:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:21]Read from MH i2c: E2 [20:18:21]MH_I2C_Read... [20:18:21]Read from MH i2c: E2 17 00 [20:18:21]MH_I2C_Read... [20:18:21]Read from MH i2c: E2 17 00 10 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 02 [20:18:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:18:21]wFMCommunicate OK [20:18:21]CreateOFDProtocolMessage done [20:18:21]OFDSenderStorePacket 118587 [20:18:21]StoreOFDPacket docnum=118587 [20:18:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 4F FA 04 01 0C E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 8E A7 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3B CF 01 00 35 04 06 00 8B 23 E0 AE D5 2D 9A 75 FA B0 59 E3 2C 24 [20:18:21]CheckFolder [20:18:21]dirname=/storage/ofd_packets [20:18:21]CheckFolder done [20:18:21]ProducePacketName [20:18:21]name=ofd_packets/00118587 [20:18:21]NVStorageSaveData ofd_packets/00118587 [20:18:21]File name is /storage/ofd_packets/00118587 [20:18:21]Write 298 bytes [20:18:21]NVStorageSaveData done [20:18:21]OFDSenderStorePacket done [20:18:21]KKMCreateOFDPacket done [20:18:21]NVStorageSaveData kkm_last_timestamp [20:18:21]File name is /storage/kkm_last_timestamp [20:18:21]Write 4 bytes [20:18:21]NVStorageSaveData done [20:18:21]ExternCall_PrintAddStr [20:18:21]wPrintStart [20:18:21]Write to MH i2c: 01 00 00 11 1D 2E [20:18:21]Write i2c OK [20:18:21]MH_I2C_Read... [20:18:21]Read from MH i2c: 01 [20:18:21]MH_I2C_Read... [20:18:21]Read from MH i2c: 01 07 00 [20:18:21]MH_I2C_Read... [20:18:21]Read from MH i2c: 01 07 00 11 1D 00 00 00 00 00 FF 0F 43 [20:18:21]RasterBufferAndPrint [20:18:21]line Счет N : (1)949474 [20:18:21]line ИНН: 02508201610067 [20:18:21]line Контрольно-Кассовый Чек [20:18:21]line ПРОДАЖА [20:18:21]line ТРК (МРК, ГНК) : 44 [20:18:21]line Товар: 2710194800 [20:18:21]line ДТ-К-5 [20:18:21]line 15.750 * 76.20 [20:18:21]line = 1200.15 [20:18:21]line НДС 12% НСП 1% [20:18:21]line > о реализуемом товаре [20:18:21]line ОКРУГЛЕНИЕ: -0.15 [20:18:21]line ИТОГО: 1200.00 [20:18:21]line Внесено: 1200.00 [20:18:21]line СДАЧА: 0.00 [20:18:21]line НСП 1% : 10.62 [20:18:21]line НДС 12% : 127.45 [20:18:21]line Наличными: 1200.00 [20:18:21]line Безнал.: 0.00 [20:18:21]line Место: АЗС № 134 "Партнер Нефть" [20:18:21]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:18:21]line СНО: Общий режим [20:18:21]line Чек 256 28.07.2024 20:18 [20:18:21]line Смена: 433 ФФД: 1.0 [20:18:21]line ЗНМ: 0300000044 [20:18:21]line РНМ: 0000000000092660 [20:18:21]line Версия ККМ: 001 [20:18:21]line ФМ: 0000000000874939 [20:18:21]line ФД: 118587 [20:18:21]line ФПД: 152986209670445 [20:18:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T201822&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118587&fm=152986209670445&tin=02508201610067®Number=0000000000092660&sum=120000 [20:18:21]OFD Sender: Processing packet 118587 [packets to send 86, broken 85] [20:18:21]ProducePacketName [20:18:21]name=ofd_packets/00118587 [20:18:21]OFD Sender: To server: pG, [20:18:21]CommunicateWithHost lk.salyk.kg:30040 [20:18:21]ConnectInit lk.salyk.kg [20:18:21]written 0, free lines is 4095 [20:18:21]Connected sock=10 [20:18: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 39 33 39 0C 01 00 00 4F FA 04 01 0C E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 8E A7 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3B CF 01 00 35 04 06 00 8B 23 E0 AE D5 2D 9A 75 FA B0 59 E3 2C 24 [20:18:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D4 D0 47 00 67 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 39 33 39 10 04 04 00 3B CF 01 00 F4 03 04 00 1D 55 A6 66 B6 04 01 00 00 AA 03 01 59 85 C4 9F DD [20:18:22]CommunicateWithHost err = 0 [20:18:22]CheckOFDResponse [20:18:22]1017 (14) - 77093643461234 [20:18:22]1041 (16) - 0000000000874939 [20:18:22]1040 (4) - 118587 [20:18:22]1012 (4) - 28.07.2024 14:26 [20:18:22]1206 (1) - 0 [20:18:22]OFD Sender: Remove packet 118587 [20:18:22]ProducePacketName [20:18:22]name=ofd_packets/00118587 [20:18:22]NVStorageDeleteData [20:18:22]Write to MH i2c: 01 00 00 3B 1D 58 [20:18:22]Write i2c OK [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: 01 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: 01 07 00 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: 01 07 00 3B 1D 00 00 00 00 00 E9 0C 54 [20:18:22]RasterBufferAndPrint [20:18:22]line [20:18:22]line [20:18:22]line [20:18:22]line [20:18:22]line [20:18:22]written 0, free lines is 3311 [20:18:22]MH_Cut [20:18:22]Write to MH i2c: D1 01 00 42 1D 01 31 [20:18:22]Write i2c OK [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: D1 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: D1 01 00 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: D1 01 00 42 1D 00 30 [20:18:22]Write to MH i2c: 01 00 00 43 1D 60 [20:18:22]Write i2c OK [20:18:22]MH_I2C_Read... [20:18:22]OFD Sender: No OFD packet to send [20:18:23]*** Cut start [20:18:23]*** Partial cut [20:18:23]*** CUTSNS_PIN = 1 [20:18:23]*** CUTSNS_PIN = 0 [20:18:23]*** Brake cut motor [20:18:23]Read from MH i2c: 01 [20:18:23]MH_I2C_Read... [20:18:23]*** Stop cut motor [20:18:23]*** Cut end [20:18:23]Read from MH i2c: 01 07 00 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: 01 07 00 43 1D 00 00 00 00 00 FF 0F 75 [20:18:23]process_action close_receipt done [20:18:23]requested_data is exist [20:18:23]produce_requested_data [20:18:23]requested_item fm.sn is exist - process it [20:18:23]wFMCommunicate request_size=4 [20:18:23]MH_SAM_APDU [20:18:23]CAPDU: 80 11 00 00 [20:18:23]Write to MH i2c: E2 08 00 44 1D 80 11 00 00 00 00 00 00 DB [20:18:23]Write i2c OK [20:18:23]MH_I2C_Read... [20:18:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:23]Read from MH i2c: E2 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 17 00 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 17 00 44 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 36 [20:18:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:18:23]wFMCommunicate OK [20:18:23]requested_item fd.num is exist - process it [20:18:23]SAM_PROTO_GetFieldsCounters [20:18:23]wFMCommunicate request_size=4 [20:18:23]MH_SAM_APDU [20:18:23]CAPDU: 80 13 00 00 [20:18:23]Write to MH i2c: E2 08 00 45 1D 80 13 00 00 00 00 00 00 DE [20:18:23]Write i2c OK [20:18:23]MH_I2C_Read... [20:18:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:23]Read from MH i2c: E2 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 62 00 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 62 00 45 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3B CF 01 00 0E 04 04 00 B1 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 C5 [20:18:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3B CF 01 00 0E 04 04 00 B1 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 [20:18:23]wFMCommunicate OK [20:18:23]SAM_PROTO_GetFieldsCounters done [20:18:23]requested_item shift.num is exist - process it [20:18:23]requested_item shift.opened is exist - process it [20:18:23]req_shift_opened [20:18:23]FM_GetShiftState [20:18:23]SAM_PROTO_GetShiftState [20:18:23]wFMCommunicate request_size=4 [20:18:23]MH_SAM_APDU [20:18:23]CAPDU: 80 13 01 00 [20:18:23]Write to MH i2c: E2 08 00 46 1D 80 13 01 00 00 00 00 00 E0 [20:18:23]Write i2c OK [20:18:23]MH_I2C_Read... [20:18:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:23]Read from MH i2c: E2 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 0E 00 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 0E 00 46 1D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 B7 [20:18:23]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [20:18:23]wFMCommunicate OK [20:18:23]SAM_PROTO_GetShiftState done [20:18:23]FM_GetShiftState done [20:18:23]req_shift_opened done [20:18:23]requested_item shift.open_date is exist - process it [20:18:23]req_shift_open_date [20:18:23]req_shift_open_date done [20:18:23]produce_requested_data done [20:18:23]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118587,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [20:18:23]process_action_free close_receipt [20:18:23]json_value_free [20:18:23]json_value_free done [20:18:23]process_json_proto returns [20:18:23]Send response to host [20:18:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118587,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [20:18:23]free response buf [20:18:23]execute_script done [20:18:23]execute_script returns [20:18:23]free content buf [20:18:23]Sock 7.Close socket [20:18:23]Sock 7.Thread stoped [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:53]OFD Sender: No OFD packet to send [20:22:58]OFD Sender: No OFD packet to send [20:23:03]OFD Sender: No OFD packet to send [20:23:08]OFD Sender: No OFD packet to send [20:23:13]OFD Sender: No OFD packet to send [20:23:18]OFD Sender: No OFD packet to send [20:23:23]OFD Sender: No OFD packet to send [20:23:28]OFD Sender: No OFD packet to send [20:23:33]OFD Sender: No OFD packet to send [20:23:38]OFD Sender: No OFD packet to send [20:23:43]OFD Sender: No OFD packet to send [20:23:48]OFD Sender: No OFD packet to send [20:23:53]OFD Sender: No OFD packet to send [20:23:58]OFD Sender: No OFD packet to send [20:24:03]OFD Sender: No OFD packet to send [20:24:08]OFD Sender: No OFD packet to send [20:24:13]OFD Sender: No OFD packet to send [20:24:18]OFD Sender: No OFD packet to send [20:24:23]OFD Sender: No OFD packet to send [20:24:28]OFD Sender: No OFD packet to send [20:24:33]OFD Sender: No OFD packet to send [20:24:38]OFD Sender: No OFD packet to send [20:24:43]OFD Sender: No OFD packet to send [20:24:48]OFD Sender: No OFD packet to send [20:24:53]OFD Sender: No OFD packet to send [20:24:58]OFD Sender: No OFD packet to send [20:25:03]OFD Sender: No OFD packet to send [20:25:08]OFD Sender: No OFD packet to send [20:25:13]OFD Sender: No OFD packet to send [20:25:18]OFD Sender: No OFD packet to send [20:25:23]OFD Sender: No OFD packet to send [20:25:28]OFD Sender: No OFD packet to send [20:25:33]OFD Sender: No OFD packet to send [20:25:38]OFD Sender: No OFD packet to send [20:25:43]OFD Sender: No OFD packet to send [20:25:48]OFD Sender: No OFD packet to send [20:25:53]OFD Sender: No OFD packet to send [20:25: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:21]accept exits with 9 [20:26:21]New connection [20:26:21]New thread 3067383140 created [20:26:21]Thread 3067239780 joined [20:26:21]Waiting for new connection... [20:26:21] Sock 9.Parse request [20:26:21]Sock 9.Check first char [20:26:21]Sock 9.First char is OK [20:26:21]request: POST /json_proto HTTP/1.0 [20:26:21]Method: POST [20:26:21]URL: /json_proto [20:26:21]Method is POST - this is cgi request [20:26:21]url: /json_proto [20:26:21]query_string will be loaded in cgi processing [20:26:21]execute_cgi json_proto POST (null) [20:26:21]execute_cgi path=json_proto method=POST [20:26:21]POST find Content-Length [20:26:21]Host: 172.17.45.7:8080 [20:26:21]Content-Length: 682 [20:26:21]Content-Type: application/json [20:26:21] [20:26:21]POST finish read [20:26:21]Found Content-Length = 682 [20:26:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:21]execute_script... [20:26: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)949475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:21]POST & json_proto [20:26:21]process_json_proto [20:26:21]json parsed OK: [20:26:21]protocol is kg_v1.0 [20:26:21]action value=close_receipt [20:26:21]process_action close_receipt [20:26:21]cmd_close_receipt [20:26:21]MH_GetDate [20:26:21]Write to MH i2c: F0 00 00 47 1D 53 [20:26:21]Write i2c OK [20:26:21]MH_I2C_Read... [20:26:21]Read from MH i2c: F0 [20:26:21]MH_I2C_Read... [20:26:21]Read from MH i2c: F0 09 00 [20:26:21]MH_I2C_Read... [20:26:21]Read from MH i2c: F0 09 00 47 1D 00 6F A9 A6 66 90 0F 3E 66 C3 [20:26:21]GetLastDocTimeStamp 1722197902 [20:26:21]current date 1722198383 [20:26:21]FM_GetShiftState [20:26:21]SAM_PROTO_GetShiftState [20:26:21]wFMCommunicate request_size=4 [20:26:21]MH_SAM_APDU [20:26:21]CAPDU: 80 13 01 00 [20:26:21]Write to MH i2c: E2 08 00 48 1D 80 13 01 00 00 00 00 00 E2 [20:26:21]Write i2c OK [20:26:21]MH_I2C_Read... [20:26:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:21]Read from MH i2c: E2 [20:26:21]MH_I2C_Read... [20:26:21]Read from MH i2c: E2 0E 00 [20:26:21]MH_I2C_Read... [20:26:21]Read from MH i2c: E2 0E 00 48 1D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 B9 [20:26:21]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [20:26:21]wFMCommunicate OK [20:26:21]SAM_PROTO_GetShiftState done [20:26:21]FM_GetShiftState done [20:26:21]opened in 1722125364 [20:26:21]opened+sec_in_day 1722211764 [20:26:21]quantity*price = 100005 [20:26:21]sum+1 = 100006 [20:26:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 257 28.07.2024 20:26 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118588 ФПД: 111125894240861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T202623&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118588&fm=111125894240861&tin=02508201610067®Number=0000000000092660&sum=100000 [20:26:22]StoreToDocumentArchive [20:26:22]shift 433 fd 118588 [20:26:22]save to /storage/0433/doc_00118588 [20:26:22]save last doc name /storage/0433/doc_00118588 to /storage/kkm_last_doc_name [20:26:22]save OK [20:26:22]Clear old archive folders... [20:26:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:26:22]tlvbuf is B6FC1BA0 [20:26:22]SAM_PROTO_ClearQueue [20:26:22]wFMCommunicate request_size=4 [20:26:22]MH_SAM_APDU [20:26:22]CAPDU: 80 09 00 00 [20:26:22]Write to MH i2c: E2 08 00 55 1D 80 09 00 00 00 00 00 00 E4 [20:26:22]Write i2c OK [20:26:22]MH_I2C_Read... [20:26:22]Read from MH i2c: E2 [20:26:22]MH_I2C_Read... [20:26:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:22]Read from MH i2c: E2 03 00 [20:26:22]MH_I2C_Read... [20:26:22]Read from MH i2c: E2 03 00 55 1D 00 90 00 E6 [20:26:22]RAPDU: 90 00 [20:26:22]wFMCommunicate OK [20:26:22]SAM_PROTO_ClearQueue done [20:26:22]KKMCreateOFDPacket [20:26:22]OFDProtocolAddRootSTLVToBuf [20:26:22]FM_MakeSignedData [20:26:22]FM_MakeSignedData [20:26:22]SAM_PROTO_SignData [20:26:22]wFMCommunicate request_size=4 [20:26:22]MH_SAM_APDU [20:26:22]CAPDU: 80 0D 01 02 [20:26:22]Write to MH i2c: E2 08 00 56 1D 80 0D 01 02 00 00 00 00 EC [20:26:22]Write i2c OK [20:26:22]MH_I2C_Read... [20:26:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:22]Read from MH i2c: E2 [20:26:22]MH_I2C_Read... [20:26:22]Read from MH i2c: E2 03 00 [20:26:22]MH_I2C_Read... [20:26:22]Read from MH i2c: E2 03 00 56 1D 00 90 00 E7 [20:26:22]RAPDU: 90 00 [20:26:22]wFMCommunicate OK [20:26:22]wFMCommunicate request_size=255 [20:26:22]MH_SAM_APDU [20:26: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 6F A9 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3C CF 01 00 35 04 06 00 65 [20:26:22]Write to MH i2c: E2 02 01 57 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 6F A9 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3C CF 01 00 35 04 06 00 65 00 00 48 [20:26:22]Write i2c OK [20:26:22]MH_I2C_Read... [20:26:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:23]Read from MH i2c: E2 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 03 00 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 03 00 57 1D 00 90 00 E8 [20:26:23]RAPDU: 90 00 [20:26:23]wFMCommunicate OK [20:26:23]wFMCommunicate request_size=10 [20:26:23]MH_SAM_APDU [20:26:23]CAPDU: 80 0D 02 02 05 11 83 73 9A 5D [20:26:23]Write to MH i2c: E2 0D 00 58 1D 80 0D 02 02 05 00 11 83 73 9A 5D 00 00 F7 [20:26:23]Write i2c OK [20:26:23]MH_I2C_Read... [20:26:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:23]Read from MH i2c: E2 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 03 00 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 03 00 58 1D 00 90 00 E9 [20:26:23]RAPDU: 90 00 [20:26:23]wFMCommunicate OK [20:26:23]wFMCommunicate request_size=4 [20:26:23]MH_SAM_APDU [20:26:23]CAPDU: 80 0D 03 02 [20:26:23]Write to MH i2c: E2 08 00 59 1D 80 0D 03 02 00 00 00 00 F1 [20:26:23]Write i2c OK [20:26:23]MH_I2C_Read... [20:26:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:23]OFD Sender: No OFD packet to send [20:26:23]Read from MH i2c: E2 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 0B 00 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 0B 00 59 1D 00 2F 7A F7 07 D6 8D 6B D1 90 00 38 [20:26:23]RAPDU: 2F 7A F7 07 D6 8D 6B D1 90 00 [20:26:23]wFMCommunicate OK [20:26:23]SAM_PROTO_SignData done [20:26:23]FM_MakeSignedData done [20:26:23]CreateOFDProtocolMessage [20:26:23]wFMCommunicate request_size=4 [20:26:23]MH_SAM_APDU [20:26:23]CAPDU: 80 11 00 00 [20:26:23]Write to MH i2c: E2 08 00 5A 1D 80 11 00 00 00 00 00 00 F1 [20:26:23]Write i2c OK [20:26:23]MH_I2C_Read... [20:26:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:23]Read from MH i2c: E2 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 17 00 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 17 00 5A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4C [20:26:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:26:23]wFMCommunicate OK [20:26:23]CreateOFDProtocolMessage done [20:26:23]OFDSenderStorePacket 118588 [20:26:23]StoreOFDPacket docnum=118588 [20:26:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 13 53 07 01 D9 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 6F A9 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3C CF 01 00 35 04 06 00 65 11 83 73 9A 5D 2F 7A F7 07 D6 8D 6B D1 [20:26:23]CheckFolder [20:26:23]dirname=/storage/ofd_packets [20:26:23]CheckFolder done [20:26:23]ProducePacketName [20:26:23]name=ofd_packets/00118588 [20:26:23]NVStorageSaveData ofd_packets/00118588 [20:26:23]File name is /storage/ofd_packets/00118588 [20:26:23]Write 301 bytes [20:26:23]NVStorageSaveData done [20:26:23]OFDSenderStorePacket done [20:26:23]KKMCreateOFDPacket done [20:26:23]NVStorageSaveData kkm_last_timestamp [20:26:23]File name is /storage/kkm_last_timestamp [20:26:23]Write 4 bytes [20:26:23]NVStorageSaveData done [20:26:23]ExternCall_PrintAddStr [20:26:23]wPrintStart [20:26:23]Write to MH i2c: 01 00 00 5B 1D 78 [20:26:23]Write i2c OK [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: 01 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: 01 07 00 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: 01 07 00 5B 1D 00 00 00 00 00 FF 0F 8D [20:26:23]RasterBufferAndPrint [20:26:23]line Счет N : (1)949475 [20:26:23]line ИНН: 02508201610067 [20:26:23]line Контрольно-Кассовый Чек [20:26:23]line ПРОДАЖА [20:26:23]line ТРК (МРК, ГНК) : 41 [20:26:23]line Товар: 2710124130 [20:26:23]line Аи-92-К-4 [20:26:23]line 14.750 * 67.80 [20:26:23]line = 1000.05 [20:26:23]line НДС 12% НСП 1% [20:26:23]line > о реализуемом товаре [20:26:23]line ОКРУГЛЕНИЕ: -0.05 [20:26:23]line ИТОГО: 1000.00 [20:26:23]line Внесено: 1000.00 [20:26:23]line СДАЧА: 0.00 [20:26:23]line НСП 1% : 8.85 [20:26:23]line НДС 12% : 106.20 [20:26:23]line Наличными: 1000.00 [20:26:23]line Безнал.: 0.00 [20:26:23]line Место: АЗС № 134 "Партнер Нефть" [20:26:23]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:26:23]line СНО: Общий режим [20:26:23]line Чек 257 28.07.2024 20:26 [20:26:23]line Смена: 433 ФФД: 1.0 [20:26:23]line ЗНМ: 0300000044 [20:26:23]line РНМ: 0000000000092660 [20:26:23]line Версия ККМ: 001 [20:26:23]line ФМ: 0000000000874939 [20:26:23]line ФД: 118588 [20:26:23]line ФПД: 111125894240861 [20:26:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T202623&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118588&fm=111125894240861&tin=02508201610067®Number=0000000000092660&sum=100000 [20:26:23]OFD Sender: Processing packet 118588 [packets to send 86, broken 85] [20:26:23]ProducePacketName [20:26:23]name=ofd_packets/00118588 [20:26:23]OFD Sender: To server: pG, [20:26:23]CommunicateWithHost lk.salyk.kg:30040 [20:26:23]ConnectInit lk.salyk.kg [20:26:23]written 0, free lines is 4095 [20:26:23]Connected sock=10 [20:26:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 13 53 07 01 D9 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 6F A9 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3C CF 01 00 35 04 06 00 65 11 83 73 9A 5D 2F 7A F7 07 D6 8D 6B D1 [20:26:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 FE 39 47 00 8D 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 39 33 39 10 04 04 00 3C CF 01 00 F4 03 04 00 FF 56 A6 66 B6 04 01 00 00 F9 38 47 31 22 30 A8 E6 [20:26:23]CommunicateWithHost err = 0 [20:26:23]CheckOFDResponse [20:26:23]1017 (14) - 77093643461234 [20:26:23]1041 (16) - 0000000000874939 [20:26:23]1040 (4) - 118588 [20:26:23]1012 (4) - 28.07.2024 14:34 [20:26:23]1206 (1) - 0 [20:26:23]OFD Sender: Remove packet 118588 [20:26:23]ProducePacketName [20:26:23]name=ofd_packets/00118588 [20:26:23]NVStorageDeleteData [20:26:24]Write to MH i2c: 01 00 00 85 1D A2 [20:26:24]Write i2c OK [20:26:24]MH_I2C_Read... [20:26:24]Read from MH i2c: 01 [20:26:24]MH_I2C_Read... [20:26:24]Read from MH i2c: 01 07 00 [20:26:24]MH_I2C_Read... [20:26:24]Read from MH i2c: 01 07 00 85 1D 00 00 00 00 00 DE 0C 93 [20:26:24]RasterBufferAndPrint [20:26:24]line [20:26:24]line [20:26:24]line [20:26:24]line [20:26:24]line [20:26:24]written 0, free lines is 3300 [20:26:24]MH_Cut [20:26:24]Write to MH i2c: D1 01 00 8C 1D 01 7B [20:26:24]Write i2c OK [20:26:24]MH_I2C_Read... [20:26:24]Read from MH i2c: D1 [20:26:24]MH_I2C_Read... [20:26:24]Read from MH i2c: D1 01 00 [20:26:24]MH_I2C_Read... [20:26:24]Read from MH i2c: D1 01 00 8C 1D 00 7A [20:26:24]Write to MH i2c: 01 00 00 8D 1D AA [20:26:24]Write i2c OK [20:26:24]MH_I2C_Read... [20:26:24]OFD Sender: No OFD packet to send [20:26:24]*** Cut start [20:26:24]*** Partial cut [20:26:24]*** CUTSNS_PIN = 1 [20:26:24]*** CUTSNS_PIN = 0 [20:26:25]*** Brake cut motor [20:26:25]Read from MH i2c: 01 [20:26:25]MH_I2C_Read... [20:26:25]*** Stop cut motor [20:26:25]*** Cut end [20:26:25]Read from MH i2c: 01 07 00 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: 01 07 00 8D 1D 00 00 00 00 00 FF 0F BF [20:26:25]process_action close_receipt done [20:26:25]requested_data is exist [20:26:25]produce_requested_data [20:26:25]requested_item fm.sn is exist - process it [20:26:25]wFMCommunicate request_size=4 [20:26:25]MH_SAM_APDU [20:26:25]CAPDU: 80 11 00 00 [20:26:25]Write to MH i2c: E2 08 00 8E 1D 80 11 00 00 00 00 00 00 25 [20:26:25]Write i2c OK [20:26:25]MH_I2C_Read... [20:26:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:25]Read from MH i2c: E2 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 17 00 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 17 00 8E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 80 [20:26:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:26:25]wFMCommunicate OK [20:26:25]requested_item fd.num is exist - process it [20:26:25]SAM_PROTO_GetFieldsCounters [20:26:25]wFMCommunicate request_size=4 [20:26:25]MH_SAM_APDU [20:26:25]CAPDU: 80 13 00 00 [20:26:25]Write to MH i2c: E2 08 00 8F 1D 80 13 00 00 00 00 00 00 28 [20:26:25]Write i2c OK [20:26:25]MH_I2C_Read... [20:26:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:26:25]Read from MH i2c: E2 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 62 00 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 62 00 8F 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3C CF 01 00 0E 04 04 00 B1 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 13 [20:26:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3C CF 01 00 0E 04 04 00 B1 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 [20:26:25]wFMCommunicate OK [20:26:25]SAM_PROTO_GetFieldsCounters done [20:26:25]requested_item shift.num is exist - process it [20:26:25]requested_item shift.opened is exist - process it [20:26:25]req_shift_opened [20:26:25]FM_GetShiftState [20:26:25]SAM_PROTO_GetShiftState [20:26:25]wFMCommunicate request_size=4 [20:26:25]MH_SAM_APDU [20:26:25]CAPDU: 80 13 01 00 [20:26:25]Write to MH i2c: E2 08 00 90 1D 80 13 01 00 00 00 00 00 2A [20:26:25]Write i2c OK [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 [20:26:25]MH_I2C_Read... [20:26:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:25]Read from MH i2c: E2 0E 00 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 0E 00 90 1D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 01 [20:26:25]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [20:26:25]wFMCommunicate OK [20:26:25]SAM_PROTO_GetShiftState done [20:26:25]FM_GetShiftState done [20:26:25]req_shift_opened done [20:26:25]requested_item shift.open_date is exist - process it [20:26:25]req_shift_open_date [20:26:25]req_shift_open_date done [20:26:25]produce_requested_data done [20:26:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118588,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [20:26:25]process_action_free close_receipt [20:26:25]json_value_free [20:26:25]json_value_free done [20:26:25]process_json_proto returns [20:26:25]Send response to host [20:26:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118588,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [20:26:25]free response buf [20:26:25]execute_script done [20:26:25]execute_script returns [20:26:25]free content buf [20:26:25]Sock 9.Close socket [20:26:25]Sock 9.Thread stoped [20:26:29]OFD Sender: No OFD packet to send [20:26:34]OFD Sender: No OFD packet to send [20:26:39]OFD Sender: No OFD packet to send [20:26:40]accept exits with 7 [20:26:40]New connection [20:26:40]New thread 3067239780 created [20:26:40]Thread 3067383140 joined [20:26:40]Waiting for new connection... [20:26:40] Sock 7.Parse request [20:26:40]Sock 7.Check first char [20:26:40]Sock 7.First char is OK [20:26:40]request: POST /json_proto HTTP/1.0 [20:26:40]Method: POST [20:26:40]URL: /json_proto [20:26:40]Method is POST - this is cgi request [20:26:40]url: /json_proto [20:26:40]query_string will be loaded in cgi processing [20:26:40]execute_cgi json_proto POST (null) [20:26:40]execute_cgi path=json_proto method=POST [20:26:40]POST find Content-Length [20:26:40]Host: 172.17.45.7:8080 [20:26:40]Content-Length: 682 [20:26:40]Content-Type: application/json [20:26:40] [20:26:40]POST finish read [20:26:40]Found Content-Length = 682 [20:26:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 20.060, "sum" : 1360.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1360.00, "total" : 1360.00, "payments": [ { "type": 0, "sum" : 1360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:40]execute_script... [20:26:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 20.060, "sum" : 1360.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1360.00, "total" : 1360.00, "payments": [ { "type": 0, "sum" : 1360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:40]POST & json_proto [20:26:40]process_json_proto [20:26:40]json parsed OK: [20:26:40]protocol is kg_v1.0 [20:26:40]action value=close_receipt [20:26:40]process_action close_receipt [20:26:40]cmd_close_receipt [20:26:40]MH_GetDate [20:26:40]Write to MH i2c: F0 00 00 91 1D 9D [20:26:40]Write i2c OK [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: F0 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: F0 09 00 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: F0 09 00 91 1D 00 82 A9 A6 66 90 0F 3E 66 20 [20:26:40]GetLastDocTimeStamp 1722198383 [20:26:40]current date 1722198402 [20:26:40]FM_GetShiftState [20:26:40]SAM_PROTO_GetShiftState [20:26:40]wFMCommunicate request_size=4 [20:26:40]MH_SAM_APDU [20:26:40]CAPDU: 80 13 01 00 [20:26:40]Write to MH i2c: E2 08 00 92 1D 80 13 01 00 00 00 00 00 2C [20:26:40]Write i2c OK [20:26:40]MH_I2C_Read... [20:26:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:40]Read from MH i2c: E2 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: E2 0E 00 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: E2 0E 00 92 1D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 03 [20:26:40]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [20:26:40]wFMCommunicate OK [20:26:40]SAM_PROTO_GetShiftState done [20:26:40]FM_GetShiftState done [20:26:40]opened in 1722125364 [20:26:40]opened+sec_in_day 1722211764 [20:26:40]quantity*price = 136006 [20:26:40]sum+1 = 136008 [20:26:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 1360.00 Внесено: 1360.00 СДАЧА: 0.00 НСП 1% : 12.04 НДС 12% : 144.43 Наличными: 1360.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 258 28.07.2024 20:26 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118589 ФПД: 202457347914500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T202642&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118589&fm=202457347914500&tin=02508201610067®Number=0000000000092660&sum=136000 [20:26:41]StoreToDocumentArchive [20:26:41]shift 433 fd 118589 [20:26:41]save to /storage/0433/doc_00118589 [20:26:41]save last doc name /storage/0433/doc_00118589 to /storage/kkm_last_doc_name [20:26:41]save OK [20:26:41]Clear old archive folders... [20:26:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:26:41]tlvbuf is B6FBE300 [20:26:41]SAM_PROTO_ClearQueue [20:26:41]wFMCommunicate request_size=4 [20:26:41]MH_SAM_APDU [20:26:41]CAPDU: 80 09 00 00 [20:26:41]Write to MH i2c: E2 08 00 9F 1D 80 09 00 00 00 00 00 00 2E [20:26:41]Write i2c OK [20:26:41]MH_I2C_Read... [20:26:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:41]Read from MH i2c: E2 [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: E2 03 00 [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: E2 03 00 9F 1D 00 90 00 30 [20:26:41]RAPDU: 90 00 [20:26:41]wFMCommunicate OK [20:26:41]SAM_PROTO_ClearQueue done [20:26:41]KKMCreateOFDPacket [20:26:41]OFDProtocolAddRootSTLVToBuf [20:26:41]FM_MakeSignedData [20:26:41]FM_MakeSignedData [20:26:41]SAM_PROTO_SignData [20:26:41]wFMCommunicate request_size=4 [20:26:41]MH_SAM_APDU [20:26:41]CAPDU: 80 0D 01 02 [20:26:41]Write to MH i2c: E2 08 00 A0 1D 80 0D 01 02 00 00 00 00 36 [20:26:41]Write i2c OK [20:26:41]MH_I2C_Read... [20:26:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:41]Read from MH i2c: E2 [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: E2 03 00 [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: E2 03 00 A0 1D 00 90 00 31 [20:26:41]RAPDU: 90 00 [20:26:41]wFMCommunicate OK [20:26:41]wFMCommunicate request_size=255 [20:26:41]MH_SAM_APDU [20:26: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 34 FF 03 08 00 03 5C 4E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 47 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 38 00 00 00 00 07 04 06 00 40 13 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 82 A9 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D CF 01 00 35 04 06 00 B8 [20:26:41]Write to MH i2c: E2 02 01 A1 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 34 FF 03 08 00 03 5C 4E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 47 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 38 00 00 00 00 07 04 06 00 40 13 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 82 A9 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D CF 01 00 35 04 06 00 B8 00 00 97 [20:26:41]Write i2c OK [20:26:41]MH_I2C_Read... [20:26:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:41]Read from MH i2c: E2 [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: E2 03 00 [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: E2 03 00 A1 1D 00 90 00 32 [20:26:41]RAPDU: 90 00 [20:26:41]wFMCommunicate OK [20:26:41]wFMCommunicate request_size=10 [20:26:41]MH_SAM_APDU [20:26:41]CAPDU: 80 0D 02 02 05 22 46 4D FB 04 [20:26:41]Write to MH i2c: E2 0D 00 A2 1D 80 0D 02 02 05 00 22 46 4D FB 04 00 00 F7 [20:26:41]Write i2c OK [20:26:41]MH_I2C_Read... [20:26:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:41]Read from MH i2c: E2 [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: E2 03 00 [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: E2 03 00 A2 1D 00 90 00 33 [20:26:41]RAPDU: 90 00 [20:26:41]wFMCommunicate OK [20:26:41]wFMCommunicate request_size=4 [20:26:41]MH_SAM_APDU [20:26:41]CAPDU: 80 0D 03 02 [20:26:41]Write to MH i2c: E2 08 00 A3 1D 80 0D 03 02 00 00 00 00 3B [20:26:41]Write i2c OK [20:26:41]MH_I2C_Read... [20:26:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:41]Read from MH i2c: E2 [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: E2 0B 00 [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: E2 0B 00 A3 1D 00 E2 37 FF 8F 6E 75 BC FB 90 00 7D [20:26:41]RAPDU: E2 37 FF 8F 6E 75 BC FB 90 00 [20:26:41]wFMCommunicate OK [20:26:41]SAM_PROTO_SignData done [20:26:41]FM_MakeSignedData done [20:26:41]CreateOFDProtocolMessage [20:26:41]wFMCommunicate request_size=4 [20:26:42]MH_SAM_APDU [20:26:42]CAPDU: 80 11 00 00 [20:26:42]Write to MH i2c: E2 08 00 A4 1D 80 11 00 00 00 00 00 00 3B [20:26:42]Write i2c OK [20:26:42]MH_I2C_Read... [20:26:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:42]Read from MH i2c: E2 [20:26:42]MH_I2C_Read... [20:26:42]Read from MH i2c: E2 17 00 [20:26:42]MH_I2C_Read... [20:26:42]Read from MH i2c: E2 17 00 A4 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 96 [20:26:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:26:42]wFMCommunicate OK [20:26:42]CreateOFDProtocolMessage done [20:26:42]OFDSenderStorePacket 118589 [20:26:42]StoreOFDPacket docnum=118589 [20:26:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2F 9C 07 01 9E 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 34 FF 03 08 00 03 5C 4E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 47 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 38 00 00 00 00 07 04 06 00 40 13 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 82 A9 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D CF 01 00 35 04 06 00 B8 22 46 4D FB 04 E2 37 FF 8F 6E 75 BC FB [20:26:42]CheckFolder [20:26:42]dirname=/storage/ofd_packets [20:26:42]CheckFolder done [20:26:42]ProducePacketName [20:26:42]name=ofd_packets/00118589 [20:26:42]NVStorageSaveData ofd_packets/00118589 [20:26:42]File name is /storage/ofd_packets/00118589 [20:26:42]Write 301 bytes [20:26:42]NVStorageSaveData done [20:26:42]OFDSenderStorePacket done [20:26:42]KKMCreateOFDPacket done [20:26:42]NVStorageSaveData kkm_last_timestamp [20:26:42]File name is /storage/kkm_last_timestamp [20:26:42]Write 4 bytes [20:26:42]NVStorageSaveData done [20:26:42]ExternCall_PrintAddStr [20:26:42]wPrintStart [20:26:42]Write to MH i2c: 01 00 00 A5 1D C2 [20:26:42]Write i2c OK [20:26:42]MH_I2C_Read... [20:26:42]Read from MH i2c: 01 [20:26:42]MH_I2C_Read... [20:26:42]Read from MH i2c: 01 07 00 [20:26:42]MH_I2C_Read... [20:26:42]Read from MH i2c: 01 07 00 A5 1D 00 00 00 00 00 FF 0F D7 [20:26:42]RasterBufferAndPrint [20:26:42]line Счет N : (1)949476 [20:26:42]line ИНН: 02508201610067 [20:26:42]line Контрольно-Кассовый Чек [20:26:42]line ПРОДАЖА [20:26:42]line ТРК (МРК, ГНК) : 51 [20:26:42]line Товар: 2710124130 [20:26:42]line Аи-92-К-4 [20:26:42]line 20.060 * 67.80 [20:26:42]line = 1360.07 [20:26:42]line НДС 12% НСП 1% [20:26:42]line > о реализуемом товаре [20:26:42]line ОКРУГЛЕНИЕ: -0.07 [20:26:42]line ИТОГО: 1360.00 [20:26:42]line Внесено: 1360.00 [20:26:42]line СДАЧА: 0.00 [20:26:42]line НСП 1% : 12.04 [20:26:42]line НДС 12% : 144.43 [20:26:42]line Наличными: 1360.00 [20:26:42]line Безнал.: 0.00 [20:26:42]line Место: АЗС № 134 "Партнер Нефть" [20:26:42]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:26:42]line СНО: Общий режим [20:26:42]line Чек 258 28.07.2024 20:26 [20:26:42]line Смена: 433 ФФД: 1.0 [20:26:42]line ЗНМ: 0300000044 [20:26:42]line РНМ: 0000000000092660 [20:26:42]line Версия ККМ: 001 [20:26:42]line ФМ: 0000000000874939 [20:26:42]line ФД: 118589 [20:26:42]line ФПД: 202457347914500 [20:26:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T202642&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118589&fm=202457347914500&tin=02508201610067®Number=0000000000092660&sum=136000 [20:26:42]OFD Sender: Processing packet 118589 [packets to send 86, broken 85] [20:26:42]ProducePacketName [20:26:42]name=ofd_packets/00118589 [20:26:42]OFD Sender: To server: pG, [20:26:42]CommunicateWithHost lk.salyk.kg:30040 [20:26:42]ConnectInit lk.salyk.kg [20:26:42]written 0, free lines is 4095 [20:26:42]Connected sock=10 [20:26:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2F 9C 07 01 9E 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 34 FF 03 08 00 03 5C 4E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 47 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 38 00 00 00 00 07 04 06 00 40 13 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 82 A9 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D CF 01 00 35 04 06 00 B8 22 46 4D FB 04 E2 37 FF 8F 6E 75 BC FB [20:26:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 2E 64 47 00 BB DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D CF 01 00 F4 03 04 00 12 57 A6 66 B6 04 01 00 00 3D CC B1 03 D3 28 21 30 [20:26:42]CommunicateWithHost err = 0 [20:26:42]CheckOFDResponse [20:26:42]1017 (14) - 77093643461234 [20:26:42]1041 (16) - 0000000000874939 [20:26:42]1040 (4) - 118589 [20:26:42]1012 (4) - 28.07.2024 14:34 [20:26:42]1206 (1) - 0 [20:26:42]OFD Sender: Remove packet 118589 [20:26:42]ProducePacketName [20:26:42]name=ofd_packets/00118589 [20:26:42]NVStorageDeleteData [20:26:42]Write to MH i2c: 01 00 00 CF 1D EC [20:26:42]Write i2c OK [20:26:42]MH_I2C_Read... [20:26:42]Read from MH i2c: 01 [20:26:42]MH_I2C_Read... [20:26:42]Read from MH i2c: 01 07 00 [20:26:42]MH_I2C_Read... [20:26:42]Read from MH i2c: 01 07 00 CF 1D 00 00 00 00 00 EE 0C ED [20:26:42]RasterBufferAndPrint [20:26:42]line [20:26:42]line [20:26:42]line [20:26:42]line [20:26:42]line [20:26:42]written 0, free lines is 3317 [20:26:42]MH_Cut [20:26:42]Write to MH i2c: D1 01 00 D6 1D 01 C5 [20:26:42]Write i2c OK [20:26:42]MH_I2C_Read... [20:26:42]Read from MH i2c: D1 [20:26:42]MH_I2C_Read... [20:26:42]Read from MH i2c: D1 01 00 [20:26:42]MH_I2C_Read... [20:26:42]Read from MH i2c: D1 01 00 D6 1D 00 C4 [20:26:42]Write to MH i2c: 01 00 00 D7 1D F4 [20:26:42]Write i2c OK [20:26:42]MH_I2C_Read... [20:26:43]OFD Sender: No OFD packet to send [20:26:43]*** Cut start [20:26:43]*** Partial cut [20:26:43]*** CUTSNS_PIN = 1 [20:26:43]*** CUTSNS_PIN = 0 [20:26:43]*** Brake cut motor [20:26:44]Read from MH i2c: 01 [20:26:44]MH_I2C_Read... [20:26:44]*** Stop cut motor [20:26:44]*** Cut end [20:26:44]Read from MH i2c: 01 07 00 [20:26:44]MH_I2C_Read... [20:26:44]Read from MH i2c: 01 07 00 D7 1D 00 00 00 00 00 FF 0F 09 [20:26:44]process_action close_receipt done [20:26:44]requested_data is exist [20:26:44]produce_requested_data [20:26:44]requested_item fm.sn is exist - process it [20:26:44]wFMCommunicate request_size=4 [20:26:44]MH_SAM_APDU [20:26:44]CAPDU: 80 11 00 00 [20:26:44]Write to MH i2c: E2 08 00 D8 1D 80 11 00 00 00 00 00 00 6F [20:26:44]Write i2c OK [20:26:44]MH_I2C_Read... [20:26:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:44]Read from MH i2c: E2 [20:26:44]MH_I2C_Read... [20:26:44]Read from MH i2c: E2 17 00 [20:26:44]MH_I2C_Read... [20:26:44]Read from MH i2c: E2 17 00 D8 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CA [20:26:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:26:44]wFMCommunicate OK [20:26:44]requested_item fd.num is exist - process it [20:26:44]SAM_PROTO_GetFieldsCounters [20:26:44]wFMCommunicate request_size=4 [20:26:44]MH_SAM_APDU [20:26:44]CAPDU: 80 13 00 00 [20:26:44]Write to MH i2c: E2 08 00 D9 1D 80 13 00 00 00 00 00 00 72 [20:26:44]Write i2c OK [20:26:44]MH_I2C_Read... [20:26:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:26:44]Read from MH i2c: E2 [20:26:44]MH_I2C_Read... [20:26:44]Read from MH i2c: E2 62 00 [20:26:44]MH_I2C_Read... [20:26:44]Read from MH i2c: E2 62 00 D9 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3D CF 01 00 0E 04 04 00 B1 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 61 [20:26:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3D CF 01 00 0E 04 04 00 B1 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 [20:26:44]wFMCommunicate OK [20:26:44]SAM_PROTO_GetFieldsCounters done [20:26:44]requested_item shift.num is exist - process it [20:26:44]requested_item shift.opened is exist - process it [20:26:44]req_shift_opened [20:26:44]FM_GetShiftState [20:26:44]SAM_PROTO_GetShiftState [20:26:44]wFMCommunicate request_size=4 [20:26:44]MH_SAM_APDU [20:26:44]CAPDU: 80 13 01 00 [20:26:44]Write to MH i2c: E2 08 00 DA 1D 80 13 01 00 00 00 00 00 74 [20:26:44]Write i2c OK [20:26:44]MH_I2C_Read... [20:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:44]Read from MH i2c: E2 [20:26:44]MH_I2C_Read... [20:26:44]Read from MH i2c: E2 0E 00 [20:26:44]MH_I2C_Read... [20:26:44]Read from MH i2c: E2 0E 00 DA 1D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 4B [20:26:44]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [20:26:44]wFMCommunicate OK [20:26:44]SAM_PROTO_GetShiftState done [20:26:44]FM_GetShiftState done [20:26:44]req_shift_opened done [20:26:44]requested_item shift.open_date is exist - process it [20:26:44]req_shift_open_date [20:26:44]req_shift_open_date done [20:26:44]produce_requested_data done [20:26:44]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118589,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [20:26:44]process_action_free close_receipt [20:26:44]json_value_free [20:26:44]json_value_free done [20:26:44]process_json_proto returns [20:26:44]Send response to host [20:26:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118589,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [20:26:44]free response buf [20:26:44]execute_script done [20:26:44]execute_script returns [20:26:44]free content buf [20:26:44]Sock 7.Close socket [20:26:44]Sock 7.Thread stoped [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:38]OFD Sender: No OFD packet to send [20:28:43]OFD Sender: No OFD packet to send [20:28:48]OFD Sender: No OFD packet to send [20:28:53]OFD Sender: No OFD packet to send [20:28:58]OFD Sender: No OFD packet to send [20:29:03]OFD Sender: No OFD packet to send [20:29:08]OFD Sender: No OFD packet to send [20:29:13]OFD Sender: No OFD packet to send [20:29:18]OFD Sender: No OFD packet to send [20:29:23]OFD Sender: No OFD packet to send [20:29:28]OFD Sender: No OFD packet to send [20:29:33]OFD Sender: No OFD packet to send [20:29:38]OFD Sender: No OFD packet to send [20:29:43]OFD Sender: No OFD packet to send [20:29:48]OFD Sender: No OFD packet to send [20:29:53]OFD Sender: No OFD packet to send [20:29:58]OFD Sender: No OFD packet to send [20:30:03]OFD Sender: No OFD packet to send [20:30:08]OFD Sender: No OFD packet to send [20:30:13]OFD Sender: No OFD packet to send [20:30:14]accept exits with 9 [20:30:14]New connection [20:30:14]New thread 3067383140 created [20:30:14]Thread 3067239780 joined [20:30:14]Waiting for new connection... [20:30:14] Sock 9.Parse request [20:30:14]Sock 9.Check first char [20:30:14]Sock 9.First char is OK [20:30:14]request: POST /json_proto HTTP/1.0 [20:30:14]Method: POST [20:30:14]URL: /json_proto [20:30:14]Method is POST - this is cgi request [20:30:14]url: /json_proto [20:30:14]query_string will be loaded in cgi processing [20:30:14]execute_cgi json_proto POST (null) [20:30:14]execute_cgi path=json_proto method=POST [20:30:14]POST find Content-Length [20:30:14]Host: 172.17.45.7:8080 [20:30:14]Content-Length: 675 [20:30:14]Content-Type: application/json [20:30:14] [20:30:14]POST finish read [20:30:14]Found Content-Length = 675 [20:30:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.880, "sum" : 905.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 905.00, "total" : 905.00, "payments": [ { "type": 0, "sum" : 905.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:14]execute_script... [20:30: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)949477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.880, "sum" : 905.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 905.00, "total" : 905.00, "payments": [ { "type": 0, "sum" : 905.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:14]POST & json_proto [20:30:14]process_json_proto [20:30:14]json parsed OK: [20:30:14]protocol is kg_v1.0 [20:30:14]action value=close_receipt [20:30:14]process_action close_receipt [20:30:14]cmd_close_receipt [20:30:14]MH_GetDate [20:30:14]Write to MH i2c: F0 00 00 DB 1D E7 [20:30:14]Write i2c OK [20:30:14]MH_I2C_Read... [20:30:14]Read from MH i2c: F0 [20:30:14]MH_I2C_Read... [20:30:14]Read from MH i2c: F0 09 00 [20:30:14]MH_I2C_Read... [20:30:14]Read from MH i2c: F0 09 00 DB 1D 00 58 AA A6 66 90 0F 3E 66 41 [20:30:14]GetLastDocTimeStamp 1722198402 [20:30:14]current date 1722198616 [20:30:14]FM_GetShiftState [20:30:14]SAM_PROTO_GetShiftState [20:30:14]wFMCommunicate request_size=4 [20:30:14]MH_SAM_APDU [20:30:14]CAPDU: 80 13 01 00 [20:30:14]Write to MH i2c: E2 08 00 DC 1D 80 13 01 00 00 00 00 00 76 [20:30:14]Write i2c OK [20:30:14]MH_I2C_Read... [20:30:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:14]Read from MH i2c: E2 [20:30:14]MH_I2C_Read... [20:30:14]Read from MH i2c: E2 0E 00 [20:30:14]MH_I2C_Read... [20:30:14]Read from MH i2c: E2 0E 00 DC 1D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 4D [20:30:14]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [20:30:14]wFMCommunicate OK [20:30:14]SAM_PROTO_GetShiftState done [20:30:14]FM_GetShiftState done [20:30:14]opened in 1722125364 [20:30:14]opened+sec_in_day 1722211764 [20:30:14]quantity*price = 90525 [20:30:14]sum+1 = 90527 [20:30:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 905.00 Внесено: 905.00 СДАЧА: 0.00 НСП 1% : 8.01 НДС 12% : 96.13 Наличными: 905.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 259 28.07.2024 20:30 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118590 ФПД: 158481520110681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T203016&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118590&fm=158481520110681&tin=02508201610067®Number=0000000000092660&sum=90500 [20:30:15]StoreToDocumentArchive [20:30:15]shift 433 fd 118590 [20:30:15]save to /storage/0433/doc_00118590 [20:30:15]save last doc name /storage/0433/doc_00118590 to /storage/kkm_last_doc_name [20:30:15]save OK [20:30:15]Clear old archive folders... [20:30:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:30:15]tlvbuf is B6E11730 [20:30:15]SAM_PROTO_ClearQueue [20:30:15]wFMCommunicate request_size=4 [20:30:15]MH_SAM_APDU [20:30:15]CAPDU: 80 09 00 00 [20:30:15]Write to MH i2c: E2 08 00 E9 1D 80 09 00 00 00 00 00 00 78 [20:30:15]Write i2c OK [20:30:15]MH_I2C_Read... [20:30:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:30:15]Read from MH i2c: E2 [20:30:15]MH_I2C_Read... [20:30:15]Read from MH i2c: E2 03 00 [20:30:15]MH_I2C_Read... [20:30:15]Read from MH i2c: E2 03 00 E9 1D 00 90 00 7A [20:30:15]RAPDU: 90 00 [20:30:15]wFMCommunicate OK [20:30:15]SAM_PROTO_ClearQueue done [20:30:15]KKMCreateOFDPacket [20:30:15]OFDProtocolAddRootSTLVToBuf [20:30:15]FM_MakeSignedData [20:30:15]FM_MakeSignedData [20:30:15]SAM_PROTO_SignData [20:30:15]wFMCommunicate request_size=4 [20:30:15]MH_SAM_APDU [20:30:15]CAPDU: 80 0D 01 02 [20:30:15]Write to MH i2c: E2 08 00 EA 1D 80 0D 01 02 00 00 00 00 80 [20:30:15]Write i2c OK [20:30:15]MH_I2C_Read... [20:30:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:30:15]Read from MH i2c: E2 [20:30:15]MH_I2C_Read... [20:30:15]Read from MH i2c: E2 03 00 [20:30:15]MH_I2C_Read... [20:30:15]Read from MH i2c: E2 03 00 EA 1D 00 90 00 7B [20:30:15]RAPDU: 90 00 [20:30:15]wFMCommunicate OK [20:30:15]wFMCommunicate request_size=255 [20:30:15]MH_SAM_APDU [20:30:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9E 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 25 00 00 00 00 07 04 06 00 84 61 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 58 AA A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E CF 01 00 35 04 06 00 90 23 5A B5 [20:30:15]Write to MH i2c: E2 02 01 EB 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9E 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 25 00 00 00 00 07 04 06 00 84 61 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 58 AA A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E CF 01 00 35 04 06 00 90 23 5A B5 00 00 95 [20:30:15]Write i2c OK [20:30:15]MH_I2C_Read... [20:30:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:16]Read from MH i2c: E2 [20:30:16]MH_I2C_Read... [20:30:16]Read from MH i2c: E2 03 00 [20:30:16]MH_I2C_Read... [20:30:16]Read from MH i2c: E2 03 00 EB 1D 00 90 00 7C [20:30:16]RAPDU: 90 00 [20:30:16]wFMCommunicate OK [20:30:16]wFMCommunicate request_size=7 [20:30:16]MH_SAM_APDU [20:30:16]CAPDU: 80 0D 02 02 02 AC 59 [20:30:16]Write to MH i2c: E2 0A 00 EC 1D 80 0D 02 02 02 00 AC 59 00 00 8C [20:30:16]Write i2c OK [20:30:16]MH_I2C_Read... [20:30:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:16]Read from MH i2c: E2 [20:30:16]MH_I2C_Read... [20:30:16]Read from MH i2c: E2 03 00 [20:30:16]MH_I2C_Read... [20:30:16]Read from MH i2c: E2 03 00 EC 1D 00 90 00 7D [20:30:16]RAPDU: 90 00 [20:30:16]wFMCommunicate OK [20:30:16]wFMCommunicate request_size=4 [20:30:16]MH_SAM_APDU [20:30:16]CAPDU: 80 0D 03 02 [20:30:16]Write to MH i2c: E2 08 00 ED 1D 80 0D 03 02 00 00 00 00 85 [20:30:16]Write i2c OK [20:30:16]MH_I2C_Read... [20:30:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:30:16]Read from MH i2c: E2 [20:30:16]MH_I2C_Read... [20:30:16]Read from MH i2c: E2 0B 00 [20:30:16]MH_I2C_Read... [20:30:16]Read from MH i2c: E2 0B 00 ED 1D 00 89 3E 18 DF 67 FD 3C 6F 90 00 53 [20:30:16]RAPDU: 89 3E 18 DF 67 FD 3C 6F 90 00 [20:30:16]wFMCommunicate OK [20:30:16]SAM_PROTO_SignData done [20:30:16]FM_MakeSignedData done [20:30:16]CreateOFDProtocolMessage [20:30:16]wFMCommunicate request_size=4 [20:30:16]MH_SAM_APDU [20:30:16]CAPDU: 80 11 00 00 [20:30:16]Write to MH i2c: E2 08 00 EE 1D 80 11 00 00 00 00 00 00 85 [20:30:16]Write i2c OK [20:30:16]MH_I2C_Read... [20:30:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:16]Read from MH i2c: E2 [20:30:16]MH_I2C_Read... [20:30:16]Read from MH i2c: E2 17 00 [20:30:16]MH_I2C_Read... [20:30:16]Read from MH i2c: E2 17 00 EE 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E0 [20:30:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:30:16]wFMCommunicate OK [20:30:16]CreateOFDProtocolMessage done [20:30:16]OFDSenderStorePacket 118590 [20:30:16]StoreOFDPacket docnum=118590 [20:30:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 23 CF 04 01 81 FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9E 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 25 00 00 00 00 07 04 06 00 84 61 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 58 AA A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E CF 01 00 35 04 06 00 90 23 5A B5 AC 59 89 3E 18 DF 67 FD 3C 6F [20:30:16]CheckFolder [20:30:16]dirname=/storage/ofd_packets [20:30:16]CheckFolder done [20:30:16]ProducePacketName [20:30:16]name=ofd_packets/00118590 [20:30:16]NVStorageSaveData ofd_packets/00118590 [20:30:16]File name is /storage/ofd_packets/00118590 [20:30:16]Write 298 bytes [20:30:16]NVStorageSaveData done [20:30:16]OFDSenderStorePacket done [20:30:16]KKMCreateOFDPacket done [20:30:16]NVStorageSaveData kkm_last_timestamp [20:30:16]File name is /storage/kkm_last_timestamp [20:30:16]Write 4 bytes [20:30:16]NVStorageSaveData done [20:30:16]ExternCall_PrintAddStr [20:30:16]wPrintStart [20:30:16]Write to MH i2c: 01 00 00 EF 1D 0C [20:30:16]Write i2c OK [20:30:16]MH_I2C_Read... [20:30:16]Read from MH i2c: 01 [20:30:16]MH_I2C_Read... [20:30:16]Read from MH i2c: 01 07 00 [20:30:16]MH_I2C_Read... [20:30:16]Read from MH i2c: 01 07 00 EF 1D 00 00 00 00 00 FF 0F 21 [20:30:16]RasterBufferAndPrint [20:30:16]line Счет N : (1)949477 [20:30:16]line ИНН: 02508201610067 [20:30:16]line Контрольно-Кассовый Чек [20:30:16]line ПРОДАЖА [20:30:16]line ТРК (МРК, ГНК) : 64 [20:30:16]line Товар: 2710194800 [20:30:16]line ДТ-К-5 [20:30:16]line 11.880 * 76.20 [20:30:16]line = 905.26 [20:30:16]line НДС 12% НСП 1% [20:30:16]line > о реализуемом товаре [20:30:16]line ОКРУГЛЕНИЕ: -0.26 [20:30:16]line ИТОГО: 905.00 [20:30:16]line Внесено: 905.00 [20:30:16]line СДАЧА: 0.00 [20:30:16]line НСП 1% : 8.01 [20:30:16]line НДС 12% : 96.13 [20:30:16]line Наличными: 905.00 [20:30:16]line Безнал.: 0.00 [20:30:16]line Место: АЗС № 134 "Партнер Нефть" [20:30:16]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:30:16]line СНО: Общий режим [20:30:16]line Чек 259 28.07.2024 20:30 [20:30:16]line Смена: 433 ФФД: 1.0 [20:30:16]line ЗНМ: 0300000044 [20:30:16]line РНМ: 0000000000092660 [20:30:16]line Версия ККМ: 001 [20:30:16]line ФМ: 0000000000874939 [20:30:16]line ФД: 118590 [20:30:16]line ФПД: 158481520110681 [20:30:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T203016&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118590&fm=158481520110681&tin=02508201610067®Number=0000000000092660&sum=90500 [20:30:16]OFD Sender: Processing packet 118590 [packets to send 86, broken 85] [20:30:16]ProducePacketName [20:30:16]name=ofd_packets/00118590 [20:30:16]OFD Sender: To server: pG, [20:30:16]CommunicateWithHost lk.salyk.kg:30040 [20:30:16]ConnectInit lk.salyk.kg [20:30:16]written 0, free lines is 4095 [20:30:16]Connected sock=10 [20:30: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 39 33 39 0C 01 00 00 23 CF 04 01 81 FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9E 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 25 00 00 00 00 07 04 06 00 84 61 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 58 AA A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E CF 01 00 35 04 06 00 90 23 5A B5 AC 59 89 3E 18 DF 67 FD 3C 6F [20:30:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3A 29 47 00 7E 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 39 33 39 10 04 04 00 3E CF 01 00 F4 03 04 00 E8 57 A6 66 B6 04 01 00 00 D0 22 55 39 6B A3 48 D8 [20:30:17]CommunicateWithHost err = 0 [20:30:17]CheckOFDResponse [20:30:17]1017 (14) - 77093643461234 [20:30:17]1041 (16) - 0000000000874939 [20:30:17]1040 (4) - 118590 [20:30:17]1012 (4) - 28.07.2024 14:38 [20:30:17]1206 (1) - 0 [20:30:17]OFD Sender: Remove packet 118590 [20:30:17]ProducePacketName [20:30:17]name=ofd_packets/00118590 [20:30:17]NVStorageDeleteData [20:30:17]Write to MH i2c: 01 00 00 19 1E 37 [20:30:17]Write i2c OK [20:30:17]MH_I2C_Read... [20:30:17]Read from MH i2c: 01 [20:30:17]MH_I2C_Read... [20:30:17]Read from MH i2c: 01 07 00 [20:30:17]MH_I2C_Read... [20:30:17]Read from MH i2c: 01 07 00 19 1E 00 00 00 00 00 DE 0C 28 [20:30:17]RasterBufferAndPrint [20:30:17]line [20:30:17]line [20:30:17]line [20:30:17]line [20:30:17]line [20:30:17]written 0, free lines is 3301 [20:30:17]MH_Cut [20:30:17]Write to MH i2c: D1 01 00 20 1E 01 10 [20:30:17]Write i2c OK [20:30:17]MH_I2C_Read... [20:30:17]Read from MH i2c: D1 [20:30:17]MH_I2C_Read... [20:30:17]Read from MH i2c: D1 01 00 [20:30:17]MH_I2C_Read... [20:30:17]Read from MH i2c: D1 01 00 20 1E 00 0F [20:30:17]Write to MH i2c: 01 00 00 21 1E 3F [20:30:17]Write i2c OK [20:30:17]MH_I2C_Read... [20:30:17]OFD Sender: No OFD packet to send [20:30:17]*** Cut start [20:30:17]*** Partial cut [20:30:17]*** CUTSNS_PIN = 1 [20:30:17]*** CUTSNS_PIN = 0 [20:30:18]*** Brake cut motor [20:30:18]Read from MH i2c: 01 [20:30:18]MH_I2C_Read... [20:30:18]*** Stop cut motor [20:30:18]*** Cut end [20:30:18]Read from MH i2c: 01 07 00 [20:30:18]MH_I2C_Read... [20:30:18]Read from MH i2c: 01 07 00 21 1E 00 00 00 00 00 FF 0F 54 [20:30:18]process_action close_receipt done [20:30:18]requested_data is exist [20:30:18]produce_requested_data [20:30:18]requested_item fm.sn is exist - process it [20:30:18]wFMCommunicate request_size=4 [20:30:18]MH_SAM_APDU [20:30:18]CAPDU: 80 11 00 00 [20:30:18]Write to MH i2c: E2 08 00 22 1E 80 11 00 00 00 00 00 00 BA [20:30:18]Write i2c OK [20:30:18]MH_I2C_Read... [20:30:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:18]Read from MH i2c: E2 [20:30:18]MH_I2C_Read... [20:30:18]Read from MH i2c: E2 17 00 [20:30:18]MH_I2C_Read... [20:30:18]Read from MH i2c: E2 17 00 22 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 15 [20:30:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:30:18]wFMCommunicate OK [20:30:18]requested_item fd.num is exist - process it [20:30:18]SAM_PROTO_GetFieldsCounters [20:30:18]wFMCommunicate request_size=4 [20:30:18]MH_SAM_APDU [20:30:18]CAPDU: 80 13 00 00 [20:30:18]Write to MH i2c: E2 08 00 23 1E 80 13 00 00 00 00 00 00 BD [20:30:18]Write i2c OK [20:30:18]MH_I2C_Read... [20:30:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:30:18]Read from MH i2c: E2 [20:30:18]MH_I2C_Read... [20:30:18]Read from MH i2c: E2 62 00 [20:30:18]MH_I2C_Read... [20:30:18]Read from MH i2c: E2 62 00 23 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3E CF 01 00 0E 04 04 00 B1 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 B0 [20:30:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3E CF 01 00 0E 04 04 00 B1 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 [20:30:18]wFMCommunicate OK [20:30:18]SAM_PROTO_GetFieldsCounters done [20:30:18]requested_item shift.num is exist - process it [20:30:18]requested_item shift.opened is exist - process it [20:30:18]req_shift_opened [20:30:18]FM_GetShiftState [20:30:18]SAM_PROTO_GetShiftState [20:30:18]wFMCommunicate request_size=4 [20:30:18]MH_SAM_APDU [20:30:18]CAPDU: 80 13 01 00 [20:30:18]Write to MH i2c: E2 08 00 24 1E 80 13 01 00 00 00 00 00 BF [20:30:18]Write i2c OK [20:30:18]MH_I2C_Read... [20:30:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:18]Read from MH i2c: E2 [20:30:18]MH_I2C_Read... [20:30:18]Read from MH i2c: E2 0E 00 [20:30:18]MH_I2C_Read... [20:30:18]Read from MH i2c: E2 0E 00 24 1E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 96 [20:30:18]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [20:30:18]wFMCommunicate OK [20:30:18]SAM_PROTO_GetShiftState done [20:30:18]FM_GetShiftState done [20:30:18]req_shift_opened done [20:30:18]requested_item shift.open_date is exist - process it [20:30:18]req_shift_open_date [20:30:18]req_shift_open_date done [20:30:18]produce_requested_data done [20:30:18]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118590,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [20:30:18]process_action_free close_receipt [20:30:18]json_value_free [20:30:18]json_value_free done [20:30:18]process_json_proto returns [20:30:18]Send response to host [20:30:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118590,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [20:30:18]free response buf [20:30:18]execute_script done [20:30:18]execute_script returns [20:30:18]free content buf [20:30:18]Sock 9.Close socket [20:30:18]Sock 9.Thread stoped [20:30:22]OFD Sender: No OFD packet to send [20:30:27]OFD Sender: No OFD packet to send [20:30:32]OFD Sender: No OFD packet to send [20:30:37]OFD Sender: No OFD packet to send [20:30:42]OFD Sender: No OFD packet to send [20:30:47]OFD Sender: No OFD packet to send [20:30:52]OFD Sender: No OFD packet to send [20:30:57]OFD Sender: No OFD packet to send [20:31:02]OFD Sender: No OFD packet to send [20:31:07]OFD Sender: No OFD packet to send [20:31:12]OFD Sender: No OFD packet to send [20:31:17]OFD Sender: No OFD packet to send [20:31:22]OFD Sender: No OFD packet to send [20:31:27]OFD Sender: No OFD packet to send [20:31:32]OFD Sender: No OFD packet to send [20:31:37]OFD Sender: No OFD packet to send [20:31:42]OFD Sender: No OFD packet to send [20:31:47]OFD Sender: No OFD packet to send [20:31:52]OFD Sender: No OFD packet to send [20:31:57]OFD Sender: No OFD packet to send [20:32:02]OFD Sender: No OFD packet to send [20:32:07]OFD Sender: No OFD packet to send [20:32:12]OFD Sender: No OFD packet to send [20:32:17]OFD Sender: No OFD packet to send [20:32:22]OFD Sender: No OFD packet to send [20:32:27]OFD Sender: No OFD packet to send [20:32:32]OFD Sender: No OFD packet to send [20:32:37]OFD Sender: No OFD packet to send [20:32:42]OFD Sender: No OFD packet to send [20:32:47]OFD Sender: No OFD packet to send [20:32:52]OFD Sender: No OFD packet to send [20:32:57]OFD Sender: No OFD packet to send [20:33:02]OFD Sender: No OFD packet to send [20:33:07]OFD Sender: No OFD packet to send [20:33:12]OFD Sender: No OFD packet to send [20:33:17]OFD Sender: No OFD packet to send [20:33:22]OFD Sender: No OFD packet to send [20:33:27]OFD Sender: No OFD packet to send [20:33:32]OFD Sender: No OFD packet to send [20:33:37]OFD Sender: No OFD packet to send [20:33:42]OFD Sender: No OFD packet to send [20:33:47]OFD Sender: No OFD packet to send [20:33:52]OFD Sender: No OFD packet to send [20:33:57]OFD Sender: No OFD packet to send [20:34:02]OFD Sender: No OFD packet to send [20:34:07]OFD Sender: No OFD packet to send [20:34:12]OFD Sender: No OFD packet to send [20:34:17]OFD Sender: No OFD packet to send [20:34:22]OFD Sender: No OFD packet to send [20:34:27]OFD Sender: No OFD packet to send [20:34:32]OFD Sender: No OFD packet to send [20:34:37]OFD Sender: No OFD packet to send [20:34:42]OFD Sender: No OFD packet to send [20:34:47]OFD Sender: No OFD packet to send [20:34:52]OFD Sender: No OFD packet to send [20:34:57]OFD Sender: No OFD packet to send [20:35:02]OFD Sender: No OFD packet to send [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:27]OFD Sender: No OFD packet to send [20:35:32]OFD Sender: No OFD packet to send [20:35:37]OFD Sender: No OFD packet to send [20:35:42]OFD Sender: No OFD packet to send [20:35:47]OFD Sender: No OFD packet to send [20:35:52]OFD Sender: No OFD packet to send [20:35:57]OFD Sender: No OFD packet to send [20:36:02]OFD Sender: No OFD packet to send [20:36:07]OFD Sender: No OFD packet to send [20:36:12]OFD Sender: No OFD packet to send [20:36:17]OFD Sender: No OFD packet to send [20:36:22]OFD Sender: No OFD packet to send [20:36:27]OFD Sender: No OFD packet to send [20:36:32]OFD Sender: No OFD packet to send [20:36:37]OFD Sender: No OFD packet to send [20:36:42]OFD Sender: No OFD packet to send [20:36:47]OFD Sender: No OFD packet to send [20:36:52]OFD Sender: No OFD packet to send [20:36:57]OFD Sender: No OFD packet to send [20:37:02]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:12]OFD Sender: No OFD packet to send [20:37:18]OFD Sender: No OFD packet to send [20:37:23]OFD Sender: No OFD packet to send [20:37:28]OFD Sender: No OFD packet to send [20:37:33]OFD Sender: No OFD packet to send [20:37:38]OFD Sender: No OFD packet to send [20:37:43]OFD Sender: No OFD packet to send [20:37:48]OFD Sender: No OFD packet to send [20:37:53]OFD Sender: No OFD packet to send [20:37:58]OFD Sender: No OFD packet to send [20:38:03]OFD Sender: No OFD packet to send [20:38:08]OFD Sender: No OFD packet to send [20:38:13]OFD Sender: No OFD packet to send [20:38:18]OFD Sender: No OFD packet to send [20:38:23]OFD Sender: No OFD packet to send [20:38:28]OFD Sender: No OFD packet to send [20:38:33]OFD Sender: No OFD packet to send [20:38:38]OFD Sender: No OFD packet to send [20:38:43]OFD Sender: No OFD packet to send [20:38:48]OFD Sender: No OFD packet to send [20:38:53]OFD Sender: No OFD packet to send [20:38:58]OFD Sender: No OFD packet to send [20:39:03]OFD Sender: No OFD packet to send [20:39:08]OFD Sender: No OFD packet to send [20:39:13]OFD Sender: No OFD packet to send [20:39:18]OFD Sender: No OFD packet to send [20:39:23]OFD Sender: No OFD packet to send [20:39:28]OFD Sender: No OFD packet to send [20:39:33]OFD Sender: No OFD packet to send [20:39:38]OFD Sender: No OFD packet to send [20:39:43]OFD Sender: No OFD packet to send [20:39:48]OFD Sender: No OFD packet to send [20:39:53]OFD Sender: No OFD packet to send [20:39:58]OFD Sender: No OFD packet to send [20:40:03]OFD Sender: No OFD packet to send [20:40:08]OFD Sender: No OFD packet to send [20:40:13]OFD Sender: No OFD packet to send [20:40:18]OFD Sender: No OFD packet to send [20:40:23]OFD Sender: No OFD packet to send [20:40:28]OFD Sender: No OFD packet to send [20:40:33]OFD Sender: No OFD packet to send [20:40:38]OFD Sender: No OFD packet to send [20:40:43]OFD Sender: No OFD packet to send [20:40:48]OFD Sender: No OFD packet to send [20:40:53]OFD Sender: No OFD packet to send [20:40:58]OFD Sender: No OFD packet to send [20:41:03]OFD Sender: No OFD packet to send [20:41:08]OFD Sender: No OFD packet to send [20:41:13]OFD Sender: No OFD packet to send [20:41:18]OFD Sender: No OFD packet to send [20:41:23]OFD Sender: No OFD packet to send [20:41:28]OFD Sender: No OFD packet to send [20:41:33]OFD Sender: No OFD packet to send [20:41:38]OFD Sender: No OFD packet to send [20:41:43]OFD Sender: No OFD packet to send [20:41:48]OFD Sender: No OFD packet to send [20:41:53]OFD Sender: No OFD packet to send [20:41:58]OFD Sender: No OFD packet to send [20:42:03]OFD Sender: No OFD packet to send [20:42:08]OFD Sender: No OFD packet to send [20:42:13]OFD Sender: No OFD packet to send [20:42:18]OFD Sender: No OFD packet to send [20:42:23]OFD Sender: No OFD packet to send [20:42:28]OFD Sender: No OFD packet to send [20:42:33]OFD Sender: No OFD packet to send [20:42:38]OFD Sender: No OFD packet to send [20:42:43]OFD Sender: No OFD packet to send [20:42:48]OFD Sender: No OFD packet to send [20:42:53]OFD Sender: No OFD packet to send [20:42:58]OFD Sender: No OFD packet to send [20:43:03]OFD Sender: No OFD packet to send [20:43:08]OFD Sender: No OFD packet to send [20:43:13]OFD Sender: No OFD packet to send [20:43:18]OFD Sender: No OFD packet to send [20:43:23]OFD Sender: No OFD packet to send [20:43:28]OFD Sender: No OFD packet to send [20:43:33]OFD Sender: No OFD packet to send [20:43:38]OFD Sender: No OFD packet to send [20:43:43]OFD Sender: No OFD packet to send [20:43:48]OFD Sender: No OFD packet to send [20:43:53]OFD Sender: No OFD packet to send [20:43:58]OFD Sender: No OFD packet to send [20:44:03]OFD Sender: No OFD packet to send [20:44:08]OFD Sender: No OFD packet to send [20:44:13]OFD Sender: No OFD packet to send [20:44:18]OFD Sender: No OFD packet to send [20:44:23]OFD Sender: No OFD packet to send [20:44:28]OFD Sender: No OFD packet to send [20:44:33]OFD Sender: No OFD packet to send [20:44:38]OFD Sender: No OFD packet to send [20:44:43]OFD Sender: No OFD packet to send [20:44:48]OFD Sender: No OFD packet to send [20:44:53]OFD Sender: No OFD packet to send [20:44:58]OFD Sender: No OFD packet to send [20:45:03]OFD Sender: No OFD packet to send [20:45:08]OFD Sender: No OFD packet to send [20:45:13]OFD Sender: No OFD packet to send [20:45:18]OFD Sender: No OFD packet to send [20:45:23]OFD Sender: No OFD packet to send [20:45:28]OFD Sender: No OFD packet to send [20:45:33]OFD Sender: No OFD packet to send [20:45:38]OFD Sender: No OFD packet to send [20:45:43]OFD Sender: No OFD packet to send [20:45:48]OFD Sender: No OFD packet to send [20:45:53]OFD Sender: No OFD packet to send [20:45:58]OFD Sender: No OFD packet to send [20:46:03]OFD Sender: No OFD packet to send [20:46:08]OFD Sender: No OFD packet to send [20:46:13]OFD Sender: No OFD packet to send [20:46:18]OFD Sender: No OFD packet to send [20:46:23]OFD Sender: No OFD packet to send [20:46:28]OFD Sender: No OFD packet to send [20:46:33]OFD Sender: No OFD packet to send [20:46:38]OFD Sender: No OFD packet to send [20:46:43]OFD Sender: No OFD packet to send [20:46:48]OFD Sender: No OFD packet to send [20:46:53]OFD Sender: No OFD packet to send [20:46:58]OFD Sender: No OFD packet to send [20:47:03]OFD Sender: No OFD packet to send [20:47:08]OFD Sender: No OFD packet to send [20:47:13]OFD Sender: No OFD packet to send [20:47:18]OFD Sender: No OFD packet to send [20:47:23]OFD Sender: No OFD packet to send [20:47:28]OFD Sender: No OFD packet to send [20:47:33]OFD Sender: No OFD packet to send [20:47:38]OFD Sender: No OFD packet to send [20:47:43]OFD Sender: No OFD packet to send [20:47:48]OFD Sender: No OFD packet to send [20:47:53]OFD Sender: No OFD packet to send [20:47:58]OFD Sender: No OFD packet to send [20:48:03]OFD Sender: No OFD packet to send [20:48:08]OFD Sender: No OFD packet to send [20:48:13]OFD Sender: No OFD packet to send [20:48:18]OFD Sender: No OFD packet to send [20:48:23]OFD Sender: No OFD packet to send [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:38]OFD Sender: No OFD packet to send [20:48:43]OFD Sender: No OFD packet to send [20:48:48]OFD Sender: No OFD packet to send [20:48:53]OFD Sender: No OFD packet to send [20:48:58]OFD Sender: No OFD packet to send [20:49:03]OFD Sender: No OFD packet to send [20:49:08]OFD Sender: No OFD packet to send [20:49:13]OFD Sender: No OFD packet to send [20:49:18]OFD Sender: No OFD packet to send [20:49:23]OFD Sender: No OFD packet to send [20:49:28]OFD Sender: No OFD packet to send [20:49:33]OFD Sender: No OFD packet to send [20:49:38]OFD Sender: No OFD packet to send [20:49:43]OFD Sender: No OFD packet to send [20:49:48]OFD Sender: No OFD packet to send [20:49:53]OFD Sender: No OFD packet to send [20:49:58]OFD Sender: No OFD packet to send [20:50:03]OFD Sender: No OFD packet to send [20:50:08]OFD Sender: No OFD packet to send [20:50:13]OFD Sender: No OFD packet to send [20:50:18]OFD Sender: No OFD packet to send [20:50:23]OFD Sender: No OFD packet to send [20:50:28]OFD Sender: No OFD packet to send [20:50:33]OFD Sender: No OFD packet to send [20:50:38]OFD Sender: No OFD packet to send [20:50:43]OFD Sender: No OFD packet to send [20:50:48]OFD Sender: No OFD packet to send [20:50:53]OFD Sender: No OFD packet to send [20:50:58]OFD Sender: No OFD packet to send [20:51:03]OFD Sender: No OFD packet to send [20:51:08]OFD Sender: No OFD packet to send [20:51:13]OFD Sender: No OFD packet to send [20:51:18]OFD Sender: No OFD packet to send [20:51:23]OFD Sender: No OFD packet to send [20:51:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:53]OFD Sender: No OFD packet to send [20:51:58]OFD Sender: No OFD packet to send [20:52:03]OFD Sender: No OFD packet to send [20:52:08]OFD Sender: No OFD packet to send [20:52:13]OFD Sender: No OFD packet to send [20:52:18]OFD Sender: No OFD packet to send [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]OFD Sender: No OFD packet to send [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:07]accept exits with 7 [20:53:07]New connection [20:53:07]New thread 3067239780 created [20:53:07]Thread 3067383140 joined [20:53:07]Waiting for new connection... [20:53:07] Sock 7.Parse request [20:53:07]Sock 7.Check first char [20:53:07]Sock 7.First char is OK [20:53:07]request: POST /json_proto HTTP/1.0 [20:53:07]Method: POST [20:53:07]URL: /json_proto [20:53:07]Method is POST - this is cgi request [20:53:07]url: /json_proto [20:53:07]query_string will be loaded in cgi processing [20:53:07]execute_cgi json_proto POST (null) [20:53:07]execute_cgi path=json_proto method=POST [20:53:07]POST find Content-Length [20:53:07]Host: 172.17.45.7:8080 [20:53:07]Content-Length: 1195 [20:53:07]Content-Type: application/json [20:53:07] [20:53:07]POST finish read [20:53:07]Found Content-Length = 1195 [20:53:07]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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949478\u000A28.07.2024 20:50\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 : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3988670\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:07]execute_script... [20:53:07]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-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949478\u000A28.07.2024 20:50\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 : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3988670\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:07]POST & json_proto [20:53:07]process_json_proto [20:53:07]json parsed OK: [20:53:07]protocol is kg_v1.0 [20:53:07]action value=print_text [20:53:07]process_action print_text [20:53:07]cmd_print_text [20:53:07]ExternCall_PrintAddStr [20:53:07]wPrintStart [20:53:07]Write to MH i2c: 01 00 00 25 1E 43 [20:53:07]Write i2c OK [20:53:07]MH_I2C_Read... [20:53:07]Read from MH i2c: 01 [20:53:07]MH_I2C_Read... [20:53:07]Read from MH i2c: 01 07 00 [20:53:07]MH_I2C_Read... [20:53:07]Read from MH i2c: 01 07 00 25 1E 00 00 00 00 00 FF 0F 58 [20:53:07]RasterBufferAndPrint [20:53:07]line *****ТОВАРНЫЙ ЧЕК***** [20:53:07]line АЗС-134 [20:53:07]line Партнер нефть [20:53:07]line 02508201610067 [20:53:07]line Кассир : Хошимов З. [20:53:07]line Счет N : (1)949478 [20:53:07]line 28.07.2024 20:50 [20:53:07]line ПРОДАЖА [20:53:07]line ТРК (МРК, ГНК): 21 [20:53:07]line Вид ГСМ : 2710194800 [20:53:07]line ДТ-К-5 [20:53:07]line 100.000 x 76.20 [20:53:07]line ИТОГ: 7620.00 [20:53:07]line Тип оплаты: Талоны: Топливные Талоны [20:53:07]line 3988670 [20:53:07]line ______________________ [20:53:07]line (подпись) [20:53:07]written 0, free lines is 4095 [20:53:08]Write to MH i2c: 01 00 00 39 1E 57 [20:53:08]Write i2c OK [20:53:08]MH_I2C_Read... [20:53:08]Read from MH i2c: 01 [20:53:08]MH_I2C_Read... [20:53:08]Read from MH i2c: 01 07 00 [20:53:08]MH_I2C_Read... [20:53:08]Read from MH i2c: 01 07 00 39 1E 00 00 00 00 00 0F 0E 7B [20:53:08]RasterBufferAndPrint [20:53:08]line [20:53:08]line [20:53:08]line [20:53:08]line [20:53:08]line [20:53:08]written 0, free lines is 3600 [20:53:08]MH_Cut [20:53:08]Write to MH i2c: D1 01 00 40 1E 01 30 [20:53:08]Write i2c OK [20:53:08]MH_I2C_Read... [20:53:08]Read from MH i2c: D1 [20:53:08]MH_I2C_Read... [20:53:08]Read from MH i2c: D1 01 00 [20:53:08]MH_I2C_Read... [20:53:08]Read from MH i2c: D1 01 00 40 1E 00 2F [20:53:08]Write to MH i2c: 01 00 00 41 1E 5F [20:53:08]Write i2c OK [20:53:08]MH_I2C_Read... [20:53:08]*** Cut start [20:53:08]*** Partial cut [20:53:08]*** CUTSNS_PIN = 1 [20:53:08]*** CUTSNS_PIN = 0 [20:53:08]*** Brake cut motor [20:53:08]OFD Sender: No OFD packet to send [20:53:09]Read from MH i2c: 01 [20:53:09]MH_I2C_Read... [20:53:09]Read from MH i2c: 01 07 00 [20:53:09]MH_I2C_Read... [20:53:09]*** Stop cut motor [20:53:09]*** Cut end [20:53:09]Read from MH i2c: 01 07 00 41 1E 00 00 00 00 00 FF 0F 74 [20:53:09]process_action print_text done [20:53:09]requested_data is exist [20:53:09]produce_requested_data [20:53:09]requested_item fm.sn is exist - process it [20:53:09]wFMCommunicate request_size=4 [20:53:09]MH_SAM_APDU [20:53:09]CAPDU: 80 11 00 00 [20:53:09]Write to MH i2c: E2 08 00 42 1E 80 11 00 00 00 00 00 00 DA [20:53:09]Write i2c OK [20:53:09]MH_I2C_Read... [20:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:09]Read from MH i2c: E2 [20:53:09]MH_I2C_Read... [20:53:09]Read from MH i2c: E2 17 00 [20:53:09]MH_I2C_Read... [20:53:09]Read from MH i2c: E2 17 00 42 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 35 [20:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:53:09]wFMCommunicate OK [20:53:09]requested_item fd.num is exist - process it [20:53:09]SAM_PROTO_GetFieldsCounters [20:53:09]wFMCommunicate request_size=4 [20:53:09]MH_SAM_APDU [20:53:09]CAPDU: 80 13 00 00 [20:53:09]Write to MH i2c: E2 08 00 43 1E 80 13 00 00 00 00 00 00 DD [20:53:09]Write i2c OK [20:53:09]MH_I2C_Read... [20:53:09]Read from MH i2c: E2 [20:53:09]MH_I2C_Read... [20:53:09]Read from MH i2c: *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:09]E2 62 00 [20:53:09]MH_I2C_Read... [20:53:09]Read from MH i2c: E2 62 00 43 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3E CF 01 00 0E 04 04 00 B1 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 D0 [20:53:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3E CF 01 00 0E 04 04 00 B1 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 [20:53:09]wFMCommunicate OK [20:53:09]SAM_PROTO_GetFieldsCounters done [20:53:09]requested_item shift.num is exist - process it [20:53:09]requested_item shift.opened is exist - process it [20:53:09]req_shift_opened [20:53:09]FM_GetShiftState [20:53:09]SAM_PROTO_GetShiftState [20:53:09]wFMCommunicate request_size=4 [20:53:09]MH_SAM_APDU [20:53:09]CAPDU: 80 13 01 00 [20:53:09]Write to MH i2c: E2 08 00 44 1E 80 13 01 00 00 00 00 00 DF [20:53:09]Write i2c OK [20:53:09]MH_I2C_Read... [20:53:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:09]Read from MH i2c: E2 [20:53:09]MH_I2C_Read... [20:53:09]Read from MH i2c: E2 0E 00 [20:53:09]MH_I2C_Read... [20:53:09]Read from MH i2c: E2 0E 00 44 1E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 B6 [20:53:09]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [20:53:09]wFMCommunicate OK [20:53:09]SAM_PROTO_GetShiftState done [20:53:09]FM_GetShiftState done [20:53:09]req_shift_opened done [20:53:09]requested_item shift.open_date is exist - process it [20:53:09]req_shift_open_date [20:53:09]req_shift_open_date done [20:53:09]produce_requested_data done [20:53:09]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118590,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [20:53:09]process_action_free print_text [20:53:09]json_value_free [20:53:09]json_value_free done [20:53:09]process_json_proto returns [20:53:09]Send response to host [20:53:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118590,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [20:53:09]free response buf [20:53:09]execute_script done [20:53:09]execute_script returns [20:53:09]free content buf [20:53:09]Sock 7.Close socket [20:53:09]Sock 7.Thread stoped [20:53:14]OFD Sender: No OFD packet to send [20:53:19]OFD Sender: No OFD packet to send [20:53:24]OFD Sender: No OFD packet to send [20:53:29]OFD Sender: No OFD packet to send [20:53:34]OFD Sender: No OFD packet to send [20:53:39]OFD Sender: No OFD packet to send [20:53:44]OFD Sender: No OFD packet to send [20:53:49]OFD Sender: No OFD packet to send [20:53:54]OFD Sender: No OFD packet to send [20:53:59]OFD Sender: No OFD packet to send [20:54:04]OFD Sender: No OFD packet to send [20:54:09]OFD Sender: No OFD packet to send [20:54:14]OFD Sender: No OFD packet to send [20:54:19]OFD Sender: No OFD packet to send [20:54:24]OFD Sender: No OFD packet to send [20:54:29]OFD Sender: No OFD packet to send [20:54:34]OFD Sender: No OFD packet to send [20:54:39]OFD Sender: No OFD packet to send [20:54:44]OFD Sender: No OFD packet to send [20:54:49]OFD Sender: No OFD packet to send [20:54:54]OFD Sender: No OFD packet to send [20:54:59]OFD Sender: No OFD packet to send [20:55:04]OFD Sender: No OFD packet to send [20:55:09]OFD Sender: No OFD packet to send [20:55:14]OFD Sender: No OFD packet to send [20:55:19]OFD Sender: No OFD packet to send [20:55:24]OFD Sender: No OFD packet to send [20:55:29]OFD Sender: No OFD packet to send [20:55:34]OFD Sender: No OFD packet to send [20:55:39]OFD Sender: No OFD packet to send [20:55:44]OFD Sender: No OFD packet to send [20:55:49]OFD Sender: No OFD packet to send [20:55:54]OFD Sender: No OFD packet to send [20:55:59]OFD Sender: No OFD packet to send [20:56:04]OFD Sender: No OFD packet to send [20:56:09]OFD Sender: No OFD packet to send [20:56:14]OFD Sender: No OFD packet to send [20:56:19]OFD Sender: No OFD packet to send [20:56:24]OFD Sender: No OFD packet to send [20:56:29]OFD Sender: No OFD packet to send [20:56:34]OFD Sender: No OFD packet to send [20:56:39]OFD Sender: No OFD packet to send [20:56:44]OFD Sender: No OFD packet to send [20:56:49]OFD Sender: No OFD packet to send [20:56:54]OFD Sender: No OFD packet to send [20:56:59]OFD Sender: No OFD packet to send [20:57:04]OFD Sender: No OFD packet to send [20:57:09]OFD Sender: No OFD packet to send [20:57:14]OFD Sender: No OFD packet to send [20:57:19]OFD Sender: No OFD packet to send [20:57:24]OFD Sender: No OFD packet to send [20:57:29]OFD Sender: No OFD packet to send [20:57:34]OFD Sender: No OFD packet to send [20:57:39]OFD Sender: No OFD packet to send [20:57:40]accept exits with 9 [20:57:40]New connection [20:57:40]New thread 3067383140 created [20:57:40]Thread 3067239780 joined [20:57:40]Waiting for new connection... [20:57:40] Sock 9.Parse request [20:57:40]Sock 9.Check first char [20:57:40]Sock 9.First char is OK [20:57:40]request: POST /json_proto HTTP/1.0 [20:57:40]Method: POST [20:57:40]URL: /json_proto [20:57:40]Method is POST - this is cgi request [20:57:40]url: /json_proto [20:57:40]query_string will be loaded in cgi processing [20:57:40]execute_cgi json_proto POST (null) [20:57:40]execute_cgi path=json_proto method=POST [20:57:40]POST find Content-Length [20:57:40]Host: 172.17.45.7:8080 [20:57:40]Content-Length: 819 [20:57:40]Content-Type: application/json [20:57:40] [20:57:40]POST finish read [20:57:40]Found Content-Length = 819 [20:57:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 91.870, "sum" : 7000.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 7000.00, "payments": [ { "type": 1, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:40]execute_script... [20:57: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)949479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 91.870, "sum" : 7000.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 7000.00, "payments": [ { "type": 1, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:40]POST & json_proto [20:57:40]process_json_proto [20:57:40]json parsed OK: [20:57:40]protocol is kg_v1.0 [20:57:40]action value=close_receipt [20:57:40]process_action close_receipt [20:57:40]cmd_close_receipt [20:57:40]MH_GetDate [20:57:40]Write to MH i2c: F0 00 00 45 1E 52 [20:57:40]Write i2c OK [20:57:40]MH_I2C_Read... [20:57:40]Read from MH i2c: F0 [20:57:40]MH_I2C_Read... [20:57:40]Read from MH i2c: F0 09 00 [20:57:40]MH_I2C_Read... [20:57:40]Read from MH i2c: F0 09 00 45 1E 00 C6 B0 A6 66 90 0F 3E 66 20 [20:57:40]GetLastDocTimeStamp 1722198616 [20:57:40]current date 1722200262 [20:57:40]FM_GetShiftState [20:57:40]SAM_PROTO_GetShiftState [20:57:40]wFMCommunicate request_size=4 [20:57:40]MH_SAM_APDU [20:57:40]CAPDU: 80 13 01 00 [20:57:40]Write to MH i2c: E2 08 00 46 1E 80 13 01 00 00 00 00 00 E1 [20:57:40]Write i2c OK [20:57:40]MH_I2C_Read... [20:57:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:40]Read from MH i2c: E2 [20:57:40]MH_I2C_Read... [20:57:40]Read from MH i2c: E2 0E 00 [20:57:40]MH_I2C_Read... [20:57:40]Read from MH i2c: E2 0E 00 46 1E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 B8 [20:57:40]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [20:57:40]wFMCommunicate OK [20:57:40]SAM_PROTO_GetShiftState done [20:57:40]FM_GetShiftState done [20:57:40]opened in 1722125364 [20:57:40]opened+sec_in_day 1722211764 [20:57:40]quantity*price = 700049 [20:57:40]sum+1 = 700050 [20:57:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 7000.00 НСП 1% : 61.95 НДС 12% : 743.41 Наличными: 0.00 Безнал.: 7000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 260 28.07.2024 20:57 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118591 ФПД: 90059379066263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T205742&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118591&fm=90059379066263&tin=02508201610067®Number=0000000000092660&sum=700000 [20:57:41]StoreToDocumentArchive [20:57:41]shift 433 fd 118591 [20:57:41]save to /storage/0433/doc_00118591 [20:57:41]save last doc name /storage/0433/doc_00118591 to /storage/kkm_last_doc_name [20:57:41]save OK [20:57:41]Clear old archive folders... [20:57:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:57:41]tlvbuf is 01E4D810 [20:57:41]SAM_PROTO_ClearQueue [20:57:41]wFMCommunicate request_size=4 [20:57:41]MH_SAM_APDU [20:57:41]CAPDU: 80 09 00 00 [20:57:41]Write to MH i2c: E2 08 00 53 1E 80 09 00 00 00 00 00 00 E3 [20:57:41]Write i2c OK [20:57:41]MH_I2C_Read... [20:57:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:57:41]Read from MH i2c: E2 [20:57:41]MH_I2C_Read... [20:57:41]Read from MH i2c: E2 03 00 [20:57:41]MH_I2C_Read... [20:57:41]Read from MH i2c: E2 03 00 53 1E 00 90 00 E5 [20:57:41]RAPDU: 90 00 [20:57:41]wFMCommunicate OK [20:57:41]SAM_PROTO_ClearQueue done [20:57:41]KKMCreateOFDPacket [20:57:41]OFDProtocolAddRootSTLVToBuf [20:57:41]FM_MakeSignedData [20:57:41]FM_MakeSignedData [20:57:41]SAM_PROTO_SignData [20:57:41]wFMCommunicate request_size=4 [20:57:41]MH_SAM_APDU [20:57:41]CAPDU: 80 0D 01 02 [20:57:41]Write to MH i2c: E2 08 00 54 1E 80 0D 01 02 00 00 00 00 EB [20:57:41]Write i2c OK [20:57:41]MH_I2C_Read... [20:57:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:57:41]Read from MH i2c: E2 [20:57:41]MH_I2C_Read... [20:57:41]Read from MH i2c: E2 03 00 [20:57:41]MH_I2C_Read... [20:57:41]Read from MH i2c: E2 03 00 54 1E 00 90 00 E6 [20:57:41]RAPDU: 90 00 [20:57:41]wFMCommunicate OK [20:57:41]wFMCommunicate request_size=255 [20:57:41]MH_SAM_APDU [20:57:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 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 65 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 C6 B0 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F CF 01 00 35 04 06 00 51 E8 95 4C [20:57:41]Write to MH i2c: E2 02 01 55 1E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 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 65 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 C6 B0 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F CF 01 00 35 04 06 00 51 E8 95 4C 00 00 27 [20:57:41]Write i2c OK [20:57:41]MH_I2C_Read... [20:57:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:41]Read from MH i2c: E2 [20:57:41]MH_I2C_Read... [20:57:41]Read from MH i2c: E2 03 00 [20:57:41]MH_I2C_Read... [20:57:41]Read from MH i2c: E2 03 00 55 1E 00 90 00 E7 [20:57:41]RAPDU: 90 00 [20:57:41]wFMCommunicate OK [20:57:41]wFMCommunicate request_size=7 [20:57:41]MH_SAM_APDU [20:57:41]CAPDU: 80 0D 02 02 02 45 97 [20:57:41]Write to MH i2c: E2 0A 00 56 1E 80 0D 02 02 02 00 45 97 00 00 CE [20:57:41]Write i2c OK [20:57:41]MH_I2C_Read... [20:57:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:41]Read from MH i2c: E2 [20:57:41]MH_I2C_Read... [20:57:41]Read from MH i2c: E2 03 00 [20:57:41]MH_I2C_Read... [20:57:41]Read from MH i2c: E2 03 00 56 1E 00 90 00 E8 [20:57:41]RAPDU: 90 00 [20:57:41]wFMCommunicate OK [20:57:41]wFMCommunicate request_size=4 [20:57:41]MH_SAM_APDU [20:57:41]CAPDU: 80 0D 03 02 [20:57:41]Write to MH i2c: E2 08 00 57 1E 80 0D 03 02 00 00 00 00 F0 [20:57:41]Write i2c OK [20:57:41]MH_I2C_Read... [20:57:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:57:41]Read from MH i2c: E2 [20:57:41]MH_I2C_Read... [20:57:41]Read from MH i2c: E2 0B 00 [20:57:41]MH_I2C_Read... [20:57:41]Read from MH i2c: E2 0B 00 57 1E 00 48 55 2A 2B 6B C4 C0 E4 90 00 B6 [20:57:41]RAPDU: 48 55 2A 2B 6B C4 C0 E4 90 00 [20:57:41]wFMCommunicate OK [20:57:41]SAM_PROTO_SignData done [20:57:41]FM_MakeSignedData done [20:57:41]CreateOFDProtocolMessage [20:57:41]wFMCommunicate request_size=4 [20:57:41]MH_SAM_APDU [20:57:41]CAPDU: 80 11 00 00 [20:57:41]Write to MH i2c: E2 08 00 58 1E 80 11 00 00 00 00 00 00 F0 [20:57:41]Write i2c OK [20:57:41]MH_I2C_Read... [20:57:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:41]Read from MH i2c: E2 [20:57:41]MH_I2C_Read... [20:57:41]Read from MH i2c: E2 17 00 [20:57:41]MH_I2C_Read... [20:57:41]Read from MH i2c: E2 17 00 58 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4B [20:57:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:57:41]wFMCommunicate OK [20:57:41]CreateOFDProtocolMessage done [20:57:41]OFDSenderStorePacket 118591 [20:57:41]StoreOFDPacket docnum=118591 [20:57:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B0 F9 04 01 1D DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 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 65 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 C6 B0 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F CF 01 00 35 04 06 00 51 E8 95 4C 45 97 48 55 2A 2B 6B C4 C0 E4 [20:57:41]CheckFolder [20:57:41]dirname=/storage/ofd_packets [20:57:41]CheckFolder done [20:57:41]ProducePacketName [20:57:41]name=ofd_packets/00118591 [20:57:41]NVStorageSaveData ofd_packets/00118591 [20:57:41]File name is /storage/ofd_packets/00118591 [20:57:41]Write 298 bytes [20:57:41]NVStorageSaveData done [20:57:41]OFDSenderStorePacket done [20:57:41]KKMCreateOFDPacket done [20:57:41]NVStorageSaveData kkm_last_timestamp [20:57:41]File name is /storage/kkm_last_timestamp [20:57:41]Write 4 bytes [20:57:41]NVStorageSaveData done [20:57:41]ExternCall_PrintAddStr [20:57:41]wPrintStart [20:57:41]Write to MH i2c: 01 00 00 59 1E 77 [20:57:41]Write i2c OK [20:57:41]MH_I2C_Read... [20:57:41]Read from MH i2c: 01 [20:57:41]MH_I2C_Read... [20:57:41]Read from MH i2c: 01 07 00 [20:57:41]MH_I2C_Read... [20:57:41]Read from MH i2c: 01 07 00 59 1E 00 00 00 00 00 FF 0F 8C [20:57:41]RasterBufferAndPrint [20:57:41]line Счет N : (1)949479 [20:57:41]line ИНН: 02508201610067 [20:57:41]line Контрольно-Кассовый Чек [20:57:41]line ПРОДАЖА [20:57:41]line ТРК (МРК, ГНК) : 21 [20:57:41]line Товар: 2710194800 [20:57:41]line ДТ-К-5 [20:57:41]line 91.870 * 76.20 [20:57:41]line = 7000.49 [20:57:41]line НДС 12% НСП 1% [20:57:41]line > о реализуемом товаре [20:57:41]line ОКРУГЛЕНИЕ: -0.49 [20:57:41]line ИТОГО: 7000.00 [20:57:41]line НСП 1% : 61.95 [20:57:41]line НДС 12% : 743.41 [20:57:41]line Наличными: 0.00 [20:57:41]line Безнал.: 7000.00 [20:57:41]line Место: АЗС № 134 "Партнер Нефть" [20:57:41]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:57:41]line СНО: Общий режим [20:57:41]line Чек 260 28.07.2024 20:57 [20:57:41]line Смена: 433 ФФД: 1.0 [20:57:41]line ЗНМ: 0300000044 [20:57:41]line РНМ: 0000000000092660 [20:57:41]line Версия ККМ: 001 [20:57:41]line Платежная система: O! деньги [20:57:41]line ФМ: 0000000000874939 [20:57:41]line ФД: 118591 [20:57:41]line ФПД: 90059379066263 [20:57:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T205742&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118591&fm=90059379066263&tin=02508201610067®Number=0000000000092660&sum=700000 [20:57:42]OFD Sender: Processing packet 118591 [packets to send 86, broken 85] [20:57:42]ProducePacketName [20:57:42]name=ofd_packets/00118591 [20:57:42]OFD Sender: To server: pG, [20:57:42]CommunicateWithHost lk.salyk.kg:30040 [20:57:42]ConnectInit lk.salyk.kg [20:57:42]written 0, free lines is 4095 [20:57:42]Connected sock=10 [20:57: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 39 33 39 0C 01 00 00 B0 F9 04 01 1D DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 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 65 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 C6 B0 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F CF 01 00 35 04 06 00 51 E8 95 4C 45 97 48 55 2A 2B 6B C4 C0 E4 [20:57:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 00 34 47 00 F0 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 39 33 39 10 04 04 00 3F CF 01 00 F4 03 04 00 55 5E A6 66 B6 04 01 00 00 C5 DB 64 95 19 AF 1B 75 [20:57:42]CommunicateWithHost err = 0 [20:57:42]CheckOFDResponse [20:57:42]1017 (14) - 77093643461234 [20:57:42]1041 (16) - 0000000000874939 [20:57:42]1040 (4) - 118591 [20:57:42]1012 (4) - 28.07.2024 15:05 [20:57:42]1206 (1) - 0 [20:57:42]OFD Sender: Remove packet 118591 [20:57:42]ProducePacketName [20:57:42]name=ofd_packets/00118591 [20:57:42]NVStorageDeleteData [20:57:42]Write to MH i2c: 01 00 00 83 1E A1 [20:57:42]Write i2c OK [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: 01 [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: 01 07 00 [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: 01 07 00 83 1E 00 00 00 00 00 D4 0C 88 [20:57:42]RasterBufferAndPrint [20:57:42]line [20:57:42]line [20:57:42]line [20:57:42]line [20:57:42]line [20:57:42]written 0, free lines is 3290 [20:57:42]MH_Cut [20:57:42]Write to MH i2c: D1 01 00 8A 1E 01 7A [20:57:42]Write i2c OK [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: D1 [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: D1 01 00 [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: D1 01 00 8A 1E 00 79 [20:57:42]Write to MH i2c: 01 00 00 8B 1E A9 [20:57:42]Write i2c OK [20:57:42]MH_I2C_Read... [20:57:42]OFD Sender: No OFD packet to send [20:57:43]*** Cut start [20:57:43]*** Partial cut [20:57:43]*** CUTSNS_PIN = 1 [20:57:43]*** CUTSNS_PIN = 0 [20:57:43]*** Brake cut motor [20:57:43]Read from MH i2c: 01 [20:57:43]MH_I2C_Read... [20:57:43]*** Stop cut motor [20:57:43]*** Cut end [20:57:43]Read from MH i2c: 01 07 00 [20:57:43]MH_I2C_Read... [20:57:43]Read from MH i2c: 01 07 00 8B 1E 00 00 00 00 00 FF 0F BE [20:57:43]process_action close_receipt done [20:57:43]requested_data is exist [20:57:43]produce_requested_data [20:57:43]requested_item fm.sn is exist - process it [20:57:43]wFMCommunicate request_size=4 [20:57:43]MH_SAM_APDU [20:57:43]CAPDU: 80 11 00 00 [20:57:43]Write to MH i2c: E2 08 00 8C 1E 80 11 00 00 00 00 00 00 24 [20:57:43]Write i2c OK [20:57:43]MH_I2C_Read... [20:57:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:43]Read from MH i2c: E2 [20:57:43]MH_I2C_Read... [20:57:43]Read from MH i2c: E2 17 00 [20:57:43]MH_I2C_Read... [20:57:43]Read from MH i2c: E2 17 00 8C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7F [20:57:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:57:43]wFMCommunicate OK [20:57:43]requested_item fd.num is exist - process it [20:57:43]SAM_PROTO_GetFieldsCounters [20:57:43]wFMCommunicate request_size=4 [20:57:43]MH_SAM_APDU [20:57:43]CAPDU: 80 13 00 00 [20:57:43]Write to MH i2c: E2 08 00 8D 1E 80 13 00 00 00 00 00 00 27 [20:57:43]Write i2c OK [20:57:43]MH_I2C_Read... [20:57:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:57:44]Read from MH i2c: E2 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 62 00 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 62 00 8D 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3F CF 01 00 0E 04 04 00 B1 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 1E [20:57: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3F CF 01 00 0E 04 04 00 B1 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 [20:57:44]wFMCommunicate OK [20:57:44]SAM_PROTO_GetFieldsCounters done [20:57:44]requested_item shift.num is exist - process it [20:57:44]requested_item shift.opened is exist - process it [20:57:44]req_shift_opened [20:57:44]FM_GetShiftState [20:57:44]SAM_PROTO_GetShiftState [20:57:44]wFMCommunicate request_size=4 [20:57:44]MH_SAM_APDU [20:57:44]CAPDU: 80 13 01 00 [20:57:44]Write to MH i2c: E2 08 00 8E 1E 80 13 01 00 00 00 00 00 29 [20:57:44]Write i2c OK [20:57:44]MH_I2C_Read... [20:57:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:44]Read from MH i2c: E2 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 0E 00 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 0E 00 8E 1E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 00 [20:57:44]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [20:57:44]wFMCommunicate OK [20:57:44]SAM_PROTO_GetShiftState done [20:57:44]FM_GetShiftState done [20:57:44]req_shift_opened done [20:57:44]requested_item shift.open_date is exist - process it [20:57:44]req_shift_open_date [20:57:44]req_shift_open_date done [20:57:44]produce_requested_data done [20:57:44]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118591,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [20:57:44]process_action_free close_receipt [20:57:44]json_value_free [20:57:44]json_value_free done [20:57:44]process_json_proto returns [20:57:44]Send response to host [20:57:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118591,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [20:57:44]free response buf [20:57:44]execute_script done [20:57:44]execute_script returns [20:57:44]free content buf [20:57:44]Sock 9.Close socket [20:57:44]Sock 9.Thread stoped [20:57:47]OFD Sender: No OFD packet to send [20:57:52]OFD Sender: No OFD packet to send [20:57:57]OFD Sender: No OFD packet to send [20:58:02]OFD Sender: No OFD packet to send [20:58:07]OFD Sender: No OFD packet to send [20:58:12]OFD Sender: No OFD packet to send [20:58:17]OFD Sender: No OFD packet to send [20:58:22]OFD Sender: No OFD packet to send [20:58:27]OFD Sender: No OFD packet to send [20:58:32]OFD Sender: No OFD packet to send [20:58:37]OFD Sender: No OFD packet to send [20:58:42]OFD Sender: No OFD packet to send [20:58:47]OFD Sender: No OFD packet to send [20:58:52]OFD Sender: No OFD packet to send [20:58:57]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:13]accept exits with 7 [21:00:13]New connection [21:00:13]New thread 3067239780 created [21:00:13]Thread 3067383140 joined [21:00:13]Waiting for new connection... [21:00:13] Sock 7.Parse request [21:00:13]Sock 7.Check first char [21:00:13]Sock 7.First char is OK [21:00:13]request: POST /json_proto HTTP/1.0 [21:00:13]Method: POST [21:00:13]URL: /json_proto [21:00:13]Method is POST - this is cgi request [21:00:13]url: /json_proto [21:00:13]query_string will be loaded in cgi processing [21:00:13]execute_cgi json_proto POST (null) [21:00:13]execute_cgi path=json_proto method=POST [21:00:13]POST find Content-Length [21:00:13]Host: 172.17.45.7:8080 [21:00:13]Content-Length: 822 [21:00:13]Content-Type: application/json [21:00:13] [21:00:13]POST finish read [21:00:13]Found Content-Length = 822 [21:00:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:13]execute_script... [21:00: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)949480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:13]POST & json_proto [21:00:13]process_json_proto [21:00:13]json parsed OK: [21:00:13]protocol is kg_v1.0 [21:00:13]action value=close_receipt [21:00:13]process_action close_receipt [21:00:13]cmd_close_receipt [21:00:13]MH_GetDate [21:00:13]Write to MH i2c: F0 00 00 8F 1E 9C [21:00:13]Write i2c OK [21:00:13]MH_I2C_Read... [21:00:13]Read from MH i2c: F0 [21:00:13]MH_I2C_Read... [21:00:13]Read from MH i2c: F0 09 00 [21:00:13]MH_I2C_Read... [21:00:13]Read from MH i2c: F0 09 00 8F 1E 00 60 B1 A6 66 90 0F 3E 66 05 [21:00:13]GetLastDocTimeStamp 1722200262 [21:00:13]current date 1722200416 [21:00:13]FM_GetShiftState [21:00:13]SAM_PROTO_GetShiftState [21:00:13]wFMCommunicate request_size=4 [21:00:13]MH_SAM_APDU [21:00:13]CAPDU: 80 13 01 00 [21:00:13]Write to MH i2c: E2 08 00 90 1E 80 13 01 00 00 00 00 00 2B [21:00:13]Write i2c OK [21:00:13]MH_I2C_Read... [21:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:13]Read from MH i2c: E2 [21:00:13]MH_I2C_Read... [21:00:13]Read from MH i2c: E2 0E 00 [21:00:13]MH_I2C_Read... [21:00:13]Read from MH i2c: E2 0E 00 90 1E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 02 [21:00:13]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:00:13]wFMCommunicate OK [21:00:13]SAM_PROTO_GetShiftState done [21:00:13]FM_GetShiftState done [21:00:13]opened in 1722125364 [21:00:13]opened+sec_in_day 1722211764 [21:00:13]quantity*price = 100005 [21:00:13]sum+1 = 100006 [21:00:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 261 28.07.2024 21:00 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118592 ФПД: 99455287250622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T210016&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118592&fm=99455287250622&tin=02508201610067®Number=0000000000092660&sum=100000 [21:00:14]StoreToDocumentArchive [21:00:14]shift 433 fd 118592 [21:00:14]save to /storage/0433/doc_00118592 [21:00:14]save last doc name /storage/0433/doc_00118592 to /storage/kkm_last_doc_name [21:00:14]save OK [21:00:14]Clear old archive folders... [21:00:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:00:14]tlvbuf is B6F2A380 [21:00:14]SAM_PROTO_ClearQueue [21:00:14]wFMCommunicate request_size=4 [21:00:14]MH_SAM_APDU [21:00:14]CAPDU: 80 09 00 00 [21:00:14]Write to MH i2c: E2 08 00 9D 1E 80 09 00 00 00 00 00 00 2D [21:00:14]Write i2c OK [21:00:14]MH_I2C_Read... [21:00:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:00:15]Read from MH i2c: E2 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 03 00 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 03 00 9D 1E 00 90 00 2F [21:00:15]RAPDU: 90 00 [21:00:15]wFMCommunicate OK [21:00:15]SAM_PROTO_ClearQueue done [21:00:15]KKMCreateOFDPacket [21:00:15]OFDProtocolAddRootSTLVToBuf [21:00:15]FM_MakeSignedData [21:00:15]FM_MakeSignedData [21:00:15]SAM_PROTO_SignData [21:00:15]wFMCommunicate request_size=4 [21:00:15]MH_SAM_APDU [21:00:15]CAPDU: 80 0D 01 02 [21:00:15]Write to MH i2c: E2 08 00 9E 1E 80 0D 01 02 00 00 00 00 35 [21:00:15]Write i2c OK [21:00:15]MH_I2C_Read... [21:00:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:00:15]Read from MH i2c: E2 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 03 00 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 03 00 9E 1E 00 90 00 30 [21:00:15]RAPDU: 90 00 [21:00:15]wFMCommunicate OK [21:00:15]wFMCommunicate request_size=255 [21:00:15]MH_SAM_APDU [21:00: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 60 B1 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 40 CF 01 00 35 04 06 00 5A [21:00:15]Write to MH i2c: E2 02 01 9F 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 60 B1 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 40 CF 01 00 35 04 06 00 5A 00 00 87 [21:00:15]Write i2c OK [21:00:15]MH_I2C_Read... [21:00:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:15]Read from MH i2c: E2 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 03 00 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 03 00 9F 1E 00 90 00 31 [21:00:15]RAPDU: 90 00 [21:00:15]wFMCommunicate OK [21:00:15]wFMCommunicate request_size=10 [21:00:15]MH_SAM_APDU [21:00:15]CAPDU: 80 0D 02 02 05 74 3D 11 4E BE [21:00:15]Write to MH i2c: E2 0D 00 A0 1E 80 0D 02 02 05 00 74 3D 11 4E BE 00 00 10 [21:00:15]Write i2c OK [21:00:15]MH_I2C_Read... [21:00:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:15]Read from MH i2c: E2 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 03 00 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 03 00 A0 1E 00 90 00 32 [21:00:15]RAPDU: 90 00 [21:00:15]wFMCommunicate OK [21:00:15]wFMCommunicate request_size=4 [21:00:15]MH_SAM_APDU [21:00:15]CAPDU: 80 0D 03 02 [21:00:15]Write to MH i2c: E2 08 00 A1 1E 80 0D 03 02 00 00 00 00 3A [21:00:15]Write i2c OK [21:00:15]MH_I2C_Read... [21:00:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:00:15]Read from MH i2c: E2 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 0B 00 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 0B 00 A1 1E 00 48 09 3D C5 25 01 BE 14 90 00 86 [21:00:15]RAPDU: 48 09 3D C5 25 01 BE 14 90 00 [21:00:15]wFMCommunicate OK [21:00:15]SAM_PROTO_SignData done [21:00:15]FM_MakeSignedData done [21:00:15]CreateOFDProtocolMessage [21:00:15]wFMCommunicate request_size=4 [21:00:15]MH_SAM_APDU [21:00:15]CAPDU: 80 11 00 00 [21:00:15]Write to MH i2c: E2 08 00 A2 1E 80 11 00 00 00 00 00 00 3A [21:00:15]Write i2c OK [21:00:15]MH_I2C_Read... [21:00:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:15]Read from MH i2c: E2 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 17 00 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 17 00 A2 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 95 [21:00:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:00:15]wFMCommunicate OK [21:00:15]CreateOFDProtocolMessage done [21:00:15]OFDSenderStorePacket 118592 [21:00:15]StoreOFDPacket docnum=118592 [21:00:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D7 83 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 60 B1 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 40 CF 01 00 35 04 06 00 5A 74 3D 11 4E BE 48 09 3D C5 25 01 BE 14 [21:00:15]CheckFolder [21:00:15]dirname=/storage/ofd_packets [21:00:15]CheckFolder done [21:00:15]ProducePacketName [21:00:15]name=ofd_packets/00118592 [21:00:15]NVStorageSaveData ofd_packets/00118592 [21:00:15]File name is /storage/ofd_packets/00118592 [21:00:15]Write 301 bytes [21:00:15]NVStorageSaveData done [21:00:15]OFDSenderStorePacket done [21:00:15]KKMCreateOFDPacket done [21:00:15]NVStorageSaveData kkm_last_timestamp [21:00:15]File name is /storage/kkm_last_timestamp [21:00:15]Write 4 bytes [21:00:15]NVStorageSaveData done [21:00:15]ExternCall_PrintAddStr [21:00:15]wPrintStart [21:00:15]Write to MH i2c: 01 00 00 A3 1E C1 [21:00:15]Write i2c OK [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: 01 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: 01 07 00 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: 01 07 00 A3 1E 00 00 00 00 00 FF 0F D6 [21:00:15]RasterBufferAndPrint [21:00:15]line Счет N : (1)949480 [21:00:15]line ИНН: 02508201610067 [21:00:15]line Контрольно-Кассовый Чек [21:00:15]line ПРОДАЖА [21:00:15]line ТРК (МРК, ГНК) : 41 [21:00:15]line Товар: 2710124130 [21:00:15]line Аи-92-К-4 [21:00:15]line 14.750 * 67.80 [21:00:15]line = 1000.05 [21:00:15]line НДС 12% НСП 1% [21:00:15]line > о реализуемом товаре [21:00:15]line ОКРУГЛЕНИЕ: -0.05 [21:00:15]line ИТОГО: 1000.00 [21:00:15]line НСП 1% : 8.85 [21:00:15]line НДС 12% : 106.20 [21:00:15]line Наличными: 0.00 [21:00:15]line Безнал.: 1000.00 [21:00:15]line Место: АЗС № 134 "Партнер Нефть" [21:00:15]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:00:15]line СНО: Общий режим [21:00:15]line Чек 261 28.07.2024 21:00 [21:00:15]line Смена: 433 ФФД: 1.0 [21:00:15]line ЗНМ: 0300000044 [21:00:15]line РНМ: 0000000000092660 [21:00:15]line Версия ККМ: 001 [21:00:15]line Платежная система: O! деньги [21:00:15]line ФМ: 0000000000874939 [21:00:15]line ФД: 118592 [21:00:15]line ФПД: 99455287250622 [21:00:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T210016&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118592&fm=99455287250622&tin=02508201610067®Number=0000000000092660&sum=100000 [21:00:15]written 0, free lines is 4095 [21:00:15]OFD Sender: Processing packet 118592 [packets to send 86, broken 85] [21:00:15]ProducePacketName [21:00:15]name=ofd_packets/00118592 [21:00:15]OFD Sender: To server: pG, [21:00:15]CommunicateWithHost lk.salyk.kg:30040 [21:00:15]ConnectInit lk.salyk.kg [21:00:15]Connected sock=10 [21:00:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D7 83 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 60 B1 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 40 CF 01 00 35 04 06 00 5A 74 3D 11 4E BE 48 09 3D C5 25 01 BE 14 [21:00:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 ED 73 47 00 9E 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 39 33 39 10 04 04 00 40 CF 01 00 F4 03 04 00 EF 5E A6 66 B6 04 01 00 00 FF 27 6A 1B AA 67 93 B9 [21:00:16]CommunicateWithHost err = 0 [21:00:16]CheckOFDResponse [21:00:16]1017 (14) - 77093643461234 [21:00:16]1041 (16) - 0000000000874939 [21:00:16]1040 (4) - 118592 [21:00:16]1012 (4) - 28.07.2024 15:08 [21:00:16]1206 (1) - 0 [21:00:16]OFD Sender: Remove packet 118592 [21:00:16]ProducePacketName [21:00:16]name=ofd_packets/00118592 [21:00:16]NVStorageDeleteData [21:00:16]Write to MH i2c: 01 00 00 CD 1E EB [21:00:16]Write i2c OK [21:00:16]MH_I2C_Read... [21:00:16]Read from MH i2c: 01 [21:00:16]MH_I2C_Read... [21:00:16]Read from MH i2c: 01 07 00 [21:00:16]MH_I2C_Read... [21:00:16]Read from MH i2c: 01 07 00 CD 1E 00 00 00 00 00 E5 0C E3 [21:00:16]RasterBufferAndPrint [21:00:16]line [21:00:16]line [21:00:16]line [21:00:16]line [21:00:16]line [21:00:16]written 0, free lines is 3307 [21:00:16]MH_Cut [21:00:16]Write to MH i2c: D1 01 00 D4 1E 01 C4 [21:00:16]Write i2c OK [21:00:16]MH_I2C_Read... [21:00:16]Read from MH i2c: D1 [21:00:16]MH_I2C_Read... [21:00:16]Read from MH i2c: D1 01 00 [21:00:16]MH_I2C_Read... [21:00:16]Read from MH i2c: D1 01 00 D4 1E 00 C3 [21:00:16]Write to MH i2c: 01 00 00 D5 1E F3 [21:00:16]Write i2c OK [21:00:16]MH_I2C_Read... [21:00:16]OFD Sender: No OFD packet to send [21:00:17]*** Cut start [21:00:17]*** Partial cut [21:00:17]*** CUTSNS_PIN = 1 [21:00:17]*** CUTSNS_PIN = 0 [21:00:17]*** Brake cut motor [21:00:17]Read from MH i2c: 01 [21:00:17]MH_I2C_Read... [21:00:17]*** Stop cut motor [21:00:17]*** Cut end [21:00:17]Read from MH i2c: 01 07 00 [21:00:17]MH_I2C_Read... [21:00:17]Read from MH i2c: 01 07 00 D5 1E 00 00 00 00 00 FF 0F 08 [21:00:17]process_action close_receipt done [21:00:17]requested_data is exist [21:00:17]produce_requested_data [21:00:17]requested_item fm.sn is exist - process it [21:00:17]wFMCommunicate request_size=4 [21:00:17]MH_SAM_APDU [21:00:17]CAPDU: 80 11 00 00 [21:00:17]Write to MH i2c: E2 08 00 D6 1E 80 11 00 00 00 00 00 00 6E [21:00:17]Write i2c OK [21:00:17]MH_I2C_Read... [21:00:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:17]Read from MH i2c: E2 [21:00:17]MH_I2C_Read... [21:00:17]Read from MH i2c: E2 17 00 [21:00:17]MH_I2C_Read... [21:00:17]Read from MH i2c: E2 17 00 D6 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C9 [21:00:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:00:17]wFMCommunicate OK [21:00:17]requested_item fd.num is exist - process it [21:00:17]SAM_PROTO_GetFieldsCounters [21:00:17]wFMCommunicate request_size=4 [21:00:17]MH_SAM_APDU [21:00:17]CAPDU: 80 13 00 00 [21:00:17]Write to MH i2c: E2 08 00 D7 1E 80 13 00 00 00 00 00 00 71 [21:00:17]Write i2c OK [21:00:17]MH_I2C_Read... [21:00:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:00:17]Read from MH i2c: E2 [21:00:17]MH_I2C_Read... [21:00:17]Read from MH i2c: E2 62 00 [21:00:17]MH_I2C_Read... [21:00:17]Read from MH i2c: E2 62 00 D7 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 40 CF 01 00 0E 04 04 00 B1 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 6C [21: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 40 CF 01 00 0E 04 04 00 B1 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 [21:00:17]wFMCommunicate OK [21:00:17]SAM_PROTO_GetFieldsCounters done [21:00:17]requested_item shift.num is exist - process it [21:00:17]requested_item shift.opened is exist - process it [21:00:17]req_shift_opened [21:00:17]FM_GetShiftState [21:00:17]SAM_PROTO_GetShiftState [21:00:17]wFMCommunicate request_size=4 [21:00:17]MH_SAM_APDU [21:00:17]CAPDU: 80 13 01 00 [21:00:17]Write to MH i2c: E2 08 00 D8 1E 80 13 01 00 00 00 00 00 73 [21:00:17]Write i2c OK [21:00:17]MH_I2C_Read... [21:00:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:17]Read from MH i2c: E2 [21:00:17]MH_I2C_Read... [21:00:17]Read from MH i2c: E2 0E 00 [21:00:17]MH_I2C_Read... [21:00:17]Read from MH i2c: E2 0E 00 D8 1E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 4A [21:00:17]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:00:17]wFMCommunicate OK [21:00:17]SAM_PROTO_GetShiftState done [21:00:17]FM_GetShiftState done [21:00:17]req_shift_opened done [21:00:17]requested_item shift.open_date is exist - process it [21:00:17]req_shift_open_date [21:00:17]req_shift_open_date done [21:00:17]produce_requested_data done [21:00:17]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118592,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [21:00:17]process_action_free close_receipt [21:00:17]json_value_free [21:00:17]json_value_free done [21:00:17]process_json_proto returns [21:00:17]Send response to host [21:00:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118592,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [21:00:17]free response buf [21:00:17]execute_script done [21:00:17]execute_script returns [21:00:17]free content buf [21:00:17]Sock 7.Close socket [21:00:17]Sock 7.Thread stoped [21:00:21]OFD Sender: No OFD packet to send [21:00:26]OFD Sender: No OFD packet to send [21:00:31]OFD Sender: No OFD packet to send [21:00:36]OFD Sender: No OFD packet to send [21:00:41]OFD Sender: No OFD packet to send [21:00:46]OFD Sender: No OFD packet to send [21:00:51]OFD Sender: No OFD packet to send [21:00:56]OFD Sender: No OFD packet to send [21:01:01]OFD Sender: No OFD packet to send [21:01:06]OFD Sender: No OFD packet to send [21:01:11]OFD Sender: No OFD packet to send [21:01:16]OFD Sender: No OFD packet to send [21:01:21]OFD Sender: No OFD packet to send [21:01:26]OFD Sender: No OFD packet to send [21:01:31]OFD Sender: No OFD packet to send [21:01:36]OFD Sender: No OFD packet to send [21:01:41]OFD Sender: No OFD packet to send [21:01:46]OFD Sender: No OFD packet to send [21:01:51]OFD Sender: No OFD packet to send [21:01:56]OFD Sender: No OFD packet to send [21:02:01]OFD Sender: No OFD packet to send [21:02:06]OFD Sender: No OFD packet to send [21:02:11]OFD Sender: No OFD packet to send [21:02:16]OFD Sender: No OFD packet to send [21:02:21]OFD Sender: No OFD packet to send [21:02:26]OFD Sender: No OFD packet to send [21:02:31]OFD Sender: No OFD packet to send [21:02:36]OFD Sender: No OFD packet to send [21:02:41]OFD Sender: No OFD packet to send [21:02:46]OFD Sender: No OFD packet to send [21:02:51]OFD Sender: No OFD packet to send [21:02:56]OFD Sender: No OFD packet to send [21:03:01]OFD Sender: No OFD packet to send [21:03:06]OFD Sender: No OFD packet to send [21:03:11]OFD Sender: No OFD packet to send [21:03:16]OFD Sender: No OFD packet to send [21:03:21]OFD Sender: No OFD packet to send [21:03:26]OFD Sender: No OFD packet to send [21:03:31]OFD Sender: No OFD packet to send [21:03:36]OFD Sender: No OFD packet to send [21:03:41]OFD Sender: No OFD packet to send [21:03:46]OFD Sender: No OFD packet to send [21:03:51]OFD Sender: No OFD packet to send [21:03:56]OFD Sender: No OFD packet to send [21:04:01]OFD Sender: No OFD packet to send [21:04:06]OFD Sender: No OFD packet to send [21:04:11]OFD Sender: No OFD packet to send [21:04:16]OFD Sender: No OFD packet to send [21:04:21]OFD Sender: No OFD packet to send [21:04:26]OFD Sender: No OFD packet to send [21:04:31]OFD Sender: No OFD packet to send [21:04:36]OFD Sender: No OFD packet to send [21:04:41]OFD Sender: No OFD packet to send [21:04:46]OFD Sender: No OFD packet to send [21:04:51]OFD Sender: No OFD packet to send [21:04:56]OFD Sender: No OFD packet to send [21:05:01]OFD Sender: No OFD packet to send [21:05:06]OFD Sender: No OFD packet to send [21:05:11]OFD Sender: No OFD packet to send [21:05:16]OFD Sender: No OFD packet to send [21:05:21]OFD Sender: No OFD packet to send [21:05:26]OFD Sender: No OFD packet to send [21:05:31]OFD Sender: No OFD packet to send [21:05:36]OFD Sender: No OFD packet to send [21:05:41]OFD Sender: No OFD packet to send [21:05:46]OFD Sender: No OFD packet to send [21:05:51]OFD Sender: No OFD packet to send [21:05:57]OFD Sender: No OFD packet to send [21:06:02]OFD Sender: No OFD packet to send [21:06:07]OFD Sender: No OFD packet to send [21:06:12]OFD Sender: No OFD packet to send [21:06:17]OFD Sender: No OFD packet to send [21:06:22]OFD Sender: No OFD packet to send [21:06:27]OFD Sender: No OFD packet to send [21:06:32]OFD Sender: No OFD packet to send [21:06:37]OFD Sender: No OFD packet to send [21:06:42]OFD Sender: No OFD packet to send [21:06:47]OFD Sender: No OFD packet to send [21:06:52]OFD Sender: No OFD packet to send [21:06:57]OFD Sender: No OFD packet to send [21:07:02]OFD Sender: No OFD packet to send [21:07:07]OFD Sender: No OFD packet to send [21:07:12]OFD Sender: No OFD packet to send [21:07:17]OFD Sender: No OFD packet to send [21:07:22]OFD Sender: No OFD packet to send [21:07:27]OFD Sender: No OFD packet to send [21:07:27]accept exits with 9 [21:07:27]New connection [21:07:27]New thread 3067383140 created [21:07:27]Thread 3067239780 joined [21:07:27]Waiting for new connection... [21:07:27] Sock 9.Parse request [21:07:27]Sock 9.Check first char [21:07:27]Sock 9.First char is OK [21:07:27]request: POST /json_proto HTTP/1.0 [21:07:27]Method: POST [21:07:27]URL: /json_proto [21:07:27]Method is POST - this is cgi request [21:07:27]url: /json_proto [21:07:27]query_string will be loaded in cgi processing [21:07:27]execute_cgi json_proto POST (null) [21:07:27]execute_cgi path=json_proto method=POST [21:07:27]POST find Content-Length [21:07:27]Host: 172.17.45.7:8080 [21:07:27]Content-Length: 819 [21:07:27]Content-Type: application/json [21:07:27] [21:07:27]POST finish read [21:07:27]Found Content-Length = 819 [21:07:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:27]execute_script... [21:07:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:27]POST & json_proto [21:07:27]process_json_proto [21:07:27]json parsed OK: [21:07:27]protocol is kg_v1.0 [21:07:27]action value=close_receipt [21:07:27]process_action close_receipt [21:07:27]cmd_close_receipt [21:07:27]MH_GetDate [21:07:27]Write to MH i2c: F0 00 00 D9 1E E6 [21:07:27]Write i2c OK [21:07:27]MH_I2C_Read... [21:07:27]Read from MH i2c: F0 [21:07:27]MH_I2C_Read... [21:07:27]Read from MH i2c: F0 09 00 [21:07:27]MH_I2C_Read... [21:07:27]Read from MH i2c: F0 09 00 D9 1E 00 11 B3 A6 66 90 0F 3E 66 02 [21:07:27]GetLastDocTimeStamp 1722200416 [21:07:27]current date 1722200849 [21:07:27]FM_GetShiftState [21:07:27]SAM_PROTO_GetShiftState [21:07:27]wFMCommunicate request_size=4 [21:07:27]MH_SAM_APDU [21:07:27]CAPDU: 80 13 01 00 [21:07:27]Write to MH i2c: E2 08 00 DA 1E 80 13 01 00 00 00 00 00 75 [21:07:27]Write i2c OK [21:07:27]MH_I2C_Read... [21:07:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:27]Read from MH i2c: E2 [21:07:27]MH_I2C_Read... [21:07:27]Read from MH i2c: E2 0E 00 [21:07:27]MH_I2C_Read... [21:07:27]Read from MH i2c: E2 0E 00 DA 1E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 4C [21:07:27]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:07:27]wFMCommunicate OK [21:07:27]SAM_PROTO_GetShiftState done [21:07:27]FM_GetShiftState done [21:07:27]opened in 1722125364 [21:07:27]opened+sec_in_day 1722211764 [21:07:27]quantity*price = 100050 [21:07:27]sum+1 = 100052 [21:07:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 262 28.07.2024 21:07 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118593 ФПД: 165277975697001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T210729&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118593&fm=165277975697001&tin=02508201610067®Number=0000000000092660&sum=100000 [21:07:28]StoreToDocumentArchive [21:07:28]shift 433 fd 118593 [21:07:28]save to /storage/0433/doc_00118593 [21:07:28]save last doc name /storage/0433/doc_00118593 to /storage/kkm_last_doc_name [21:07:28]save OK [21:07:28]Clear old archive folders... [21:07:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:07:28]tlvbuf is 01E4D560 [21:07:28]SAM_PROTO_ClearQueue [21:07:28]wFMCommunicate request_size=4 [21:07:28]MH_SAM_APDU [21:07:28]CAPDU: 80 09 00 00 [21:07:28]Write to MH i2c: E2 08 00 E7 1E 80 09 00 00 00 00 00 00 77 [21:07:28]Write i2c OK [21:07:28]MH_I2C_Read... [21:07:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:07:28]Read from MH i2c: E2 [21:07:28]MH_I2C_Read... [21:07:28]Read from MH i2c: E2 03 00 [21:07:28]MH_I2C_Read... [21:07:28]Read from MH i2c: E2 03 00 E7 1E 00 90 00 79 [21:07:28]RAPDU: 90 00 [21:07:28]wFMCommunicate OK [21:07:28]SAM_PROTO_ClearQueue done [21:07:28]KKMCreateOFDPacket [21:07:28]OFDProtocolAddRootSTLVToBuf [21:07:28]FM_MakeSignedData [21:07:28]FM_MakeSignedData [21:07:28]SAM_PROTO_SignData [21:07:28]wFMCommunicate request_size=4 [21:07:28]MH_SAM_APDU [21:07:28]CAPDU: 80 0D 01 02 [21:07:28]Write to MH i2c: E2 08 00 E8 1E 80 0D 01 02 00 00 00 00 7F [21:07:28]Write i2c OK [21:07:28]MH_I2C_Read... [21:07:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:07:28]Read from MH i2c: E2 [21:07:28]MH_I2C_Read... [21:07:28]Read from MH i2c: E2 03 00 [21:07:28]MH_I2C_Read... [21:07:28]Read from MH i2c: E2 03 00 E8 1E 00 90 00 7A [21:07:28]RAPDU: 90 00 [21:07:28]wFMCommunicate OK [21:07:28]wFMCommunicate request_size=255 [21:07:28]MH_SAM_APDU [21:07:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 11 B3 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 CF 01 00 35 04 06 00 96 51 C7 07 [21:07:28]Write to MH i2c: E2 02 01 E9 1E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 11 B3 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 CF 01 00 35 04 06 00 96 51 C7 07 00 00 5E [21:07:28]Write i2c OK [21:07:28]MH_I2C_Read... [21:07:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:28]Read from MH i2c: E2 [21:07:28]MH_I2C_Read... [21:07:28]Read from MH i2c: E2 03 00 [21:07:28]MH_I2C_Read... [21:07:28]Read from MH i2c: E2 03 00 E9 1E 00 90 00 7B [21:07:28]RAPDU: 90 00 [21:07:28]wFMCommunicate OK [21:07:28]wFMCommunicate request_size=7 [21:07:28]MH_SAM_APDU [21:07:28]CAPDU: 80 0D 02 02 02 D6 69 [21:07:28]Write to MH i2c: E2 0A 00 EA 1E 80 0D 02 02 02 00 D6 69 00 00 C5 [21:07:28]Write i2c OK [21:07:28]MH_I2C_Read... [21:07:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:28]Read from MH i2c: E2 [21:07:28]MH_I2C_Read... [21:07:28]Read from MH i2c: E2 03 00 [21:07:28]MH_I2C_Read... [21:07:28]Read from MH i2c: E2 03 00 EA 1E 00 90 00 7C [21:07:28]RAPDU: 90 00 [21:07:28]wFMCommunicate OK [21:07:28]wFMCommunicate request_size=4 [21:07:28]MH_SAM_APDU [21:07:28]CAPDU: 80 0D 03 02 [21:07:28]Write to MH i2c: E2 08 00 EB 1E 80 0D 03 02 00 00 00 00 84 [21:07:28]Write i2c OK [21:07:28]MH_I2C_Read... [21:07:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:07:28]Read from MH i2c: E2 [21:07:28]MH_I2C_Read... [21:07:28]Read from MH i2c: E2 0B 00 [21:07:28]MH_I2C_Read... [21:07:28]Read from MH i2c: E2 0B 00 EB 1E 00 74 4F 02 53 7F FE 7C 08 90 00 9E [21:07:28]RAPDU: 74 4F 02 53 7F FE 7C 08 90 00 [21:07:28]wFMCommunicate OK [21:07:28]SAM_PROTO_SignData done [21:07:28]FM_MakeSignedData done [21:07:28]CreateOFDProtocolMessage [21:07:28]wFMCommunicate request_size=4 [21:07:28]MH_SAM_APDU [21:07:28]CAPDU: 80 11 00 00 [21:07:28]Write to MH i2c: E2 08 00 EC 1E 80 11 00 00 00 00 00 00 84 [21:07:28]Write i2c OK [21:07:28]MH_I2C_Read... [21:07:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:28]Read from MH i2c: E2 [21:07:28]MH_I2C_Read... [21:07:28]Read from MH i2c: E2 17 00 [21:07:28]MH_I2C_Read... [21:07:28]Read from MH i2c: E2 17 00 EC 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DF [21:07:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:07:28]wFMCommunicate OK [21:07:28]CreateOFDProtocolMessage done [21:07:28]OFDSenderStorePacket 118593 [21:07:28]StoreOFDPacket docnum=118593 [21:07:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 5A 5E 04 01 EC AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 11 B3 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 CF 01 00 35 04 06 00 96 51 C7 07 D6 69 74 4F 02 53 7F FE 7C 08 [21:07:28]CheckFolder [21:07:28]dirname=/storage/ofd_packets [21:07:28]CheckFolder done [21:07:28]ProducePacketName [21:07:28]name=ofd_packets/00118593 [21:07:28]NVStorageSaveData ofd_packets/00118593 [21:07:28]File name is /storage/ofd_packets/00118593 [21:07:28]Write 298 bytes [21:07:28]NVStorageSaveData done [21:07:28]OFDSenderStorePacket done [21:07:28]KKMCreateOFDPacket done [21:07:28]NVStorageSaveData kkm_last_timestamp [21:07:28]File name is /storage/kkm_last_timestamp [21:07:28]Write 4 bytes [21:07:28]NVStorageSaveData done [21:07:28]ExternCall_PrintAddStr [21:07:28]wPrintStart [21:07:28]Write to MH i2c: 01 00 00 ED 1E 0B [21:07:28]Write i2c OK [21:07:28]MH_I2C_Read... [21:07:28]Read from MH i2c: 01 [21:07:28]MH_I2C_Read... [21:07:28]Read from MH i2c: 01 07 00 [21:07:28]MH_I2C_Read... [21:07:28]Read from MH i2c: 01 07 00 ED 1E 00 00 00 00 00 FF 0F 20 [21:07:28]RasterBufferAndPrint [21:07:28]line Счет N : (1)949481 [21:07:28]line ИНН: 02508201610067 [21:07:28]line Контрольно-Кассовый Чек [21:07:28]line ПРОДАЖА [21:07:28]line ТРК (МРК, ГНК) : 21 [21:07:28]line Товар: 2710194800 [21:07:28]line ДТ-К-5 [21:07:28]line 13.130 * 76.20 [21:07:28]line = 1000.51 [21:07:28]line НДС 12% НСП 1% [21:07:28]line > о реализуемом товаре [21:07:28]line ОКРУГЛЕНИЕ: -0.51 [21:07:28]line ИТОГО: 1000.00 [21:07:28]line НСП 1% : 8.85 [21:07:28]line НДС 12% : 106.25 [21:07:28]line Наличными: 0.00 [21:07:28]line Безнал.: 1000.00 [21:07:28]line Место: АЗС № 134 "Партнер Нефть" [21:07:28]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:07:28]line СНО: Общий режим [21:07:28]line Чек 262 28.07.2024 21:07 [21:07:28]line Смена: 433 ФФД: 1.0 [21:07:28]line ЗНМ: 0300000044 [21:07:28]line РНМ: 0000000000092660 [21:07:28]line Версия ККМ: 001 [21:07:28]line Платежная система: O! деньги [21:07:28]line ФМ: 0000000000874939 [21:07:28]line ФД: 118593 [21:07:28]line ФПД: 165277975697001 [21:07:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T210729&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118593&fm=165277975697001&tin=02508201610067®Number=0000000000092660&sum=100000 [21:07:29]OFD Sender: Processing packet 118593 [packets to send 86, broken 85] [21:07:29]ProducePacketName [21:07:29]name=ofd_packets/00118593 [21:07:29]OFD Sender: To server: pG, [21:07:29]CommunicateWithHost lk.salyk.kg:30040 [21:07:29]ConnectInit lk.salyk.kg [21:07:29]written 0, free lines is 4095 [21:07:29]Connected sock=10 [21:07:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 5A 5E 04 01 EC AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 11 B3 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 CF 01 00 35 04 06 00 96 51 C7 07 D6 69 74 4F 02 53 7F FE 7C 08 [21:07:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 31 D1 47 00 29 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 39 33 39 10 04 04 00 41 CF 01 00 F4 03 04 00 A0 60 A6 66 B6 04 01 00 00 6B 77 1D 79 D5 94 9E 8B [21:07:29]CommunicateWithHost err = 0 [21:07:29]CheckOFDResponse [21:07:29]1017 (14) - 77093643461234 [21:07:29]1041 (16) - 0000000000874939 [21:07:29]1040 (4) - 118593 [21:07:29]1012 (4) - 28.07.2024 15:15 [21:07:29]1206 (1) - 0 [21:07:29]OFD Sender: Remove packet 118593 [21:07:29]ProducePacketName [21:07:29]name=ofd_packets/00118593 [21:07:29]NVStorageDeleteData [21:07:29]Write to MH i2c: 01 00 00 17 1F 36 [21:07:29]Write i2c OK [21:07:29]MH_I2C_Read... [21:07:29]Read from MH i2c: 01 [21:07:29]MH_I2C_Read... [21:07:29]Read from MH i2c: 01 07 00 [21:07:29]MH_I2C_Read... [21:07:29]Read from MH i2c: 01 07 00 17 1F 00 00 00 00 00 D1 0C 1A [21:07:29]RasterBufferAndPrint [21:07:29]line [21:07:29]line [21:07:29]line [21:07:29]line [21:07:29]line [21:07:29]written 0, free lines is 3285 [21:07:29]MH_Cut [21:07:29]Write to MH i2c: D1 01 00 1E 1F 01 0F [21:07:29]Write i2c OK [21:07:29]MH_I2C_Read... [21:07:29]Read from MH i2c: D1 [21:07:29]MH_I2C_Read... [21:07:29]Read from MH i2c: D1 01 00 [21:07:29]MH_I2C_Read... [21:07:29]Read from MH i2c: D1 01 00 1E 1F 00 0E [21:07:29]Write to MH i2c: 01 00 00 1F 1F 3E [21:07:29]Write i2c OK [21:07:29]MH_I2C_Read... [21:07:30]OFD Sender: No OFD packet to send [21:07:30]*** Cut start [21:07:30]*** Partial cut [21:07:30]*** CUTSNS_PIN = 1 [21:07:30]*** CUTSNS_PIN = 0 [21:07:30]*** Brake cut motor [21:07:30]Read from MH i2c: 01 [21:07:30]MH_I2C_Read... [21:07:31]*** Stop cut motor [21:07:31]*** Cut end [21:07:31]Read from MH i2c: 01 07 00 [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: 01 07 00 1F 1F 00 00 00 00 00 FF 0F 53 [21:07:31]process_action close_receipt done [21:07:31]requested_data is exist [21:07:31]produce_requested_data [21:07:31]requested_item fm.sn is exist - process it [21:07:31]wFMCommunicate request_size=4 [21:07:31]MH_SAM_APDU [21:07:31]CAPDU: 80 11 00 00 [21:07:31]Write to MH i2c: E2 08 00 20 1F 80 11 00 00 00 00 00 00 B9 [21:07:31]Write i2c OK [21:07:31]MH_I2C_Read... [21:07:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:31]Read from MH i2c: E2 [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: E2 17 00 [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: E2 17 00 20 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 14 [21:07:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:07:31]wFMCommunicate OK [21:07:31]requested_item fd.num is exist - process it [21:07:31]SAM_PROTO_GetFieldsCounters [21:07:31]wFMCommunicate request_size=4 [21:07:31]MH_SAM_APDU [21:07:31]CAPDU: 80 13 00 00 [21:07:31]Write to MH i2c: E2 08 00 21 1F 80 13 00 00 00 00 00 00 BC [21:07:31]Write i2c OK [21:07:31]MH_I2C_Read... [21:07:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:07:31]Read from MH i2c: E2 [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: E2 62 00 [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: E2 62 00 21 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 41 CF 01 00 0E 04 04 00 B1 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 BB [21:07:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 41 CF 01 00 0E 04 04 00 B1 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 [21:07:31]wFMCommunicate OK [21:07:31]SAM_PROTO_GetFieldsCounters done [21:07:31]requested_item shift.num is exist - process it [21:07:31]requested_item shift.opened is exist - process it [21:07:31]req_shift_opened [21:07:31]FM_GetShiftState [21:07:31]SAM_PROTO_GetShiftState [21:07:31]wFMCommunicate request_size=4 [21:07:31]MH_SAM_APDU [21:07:31]CAPDU: 80 13 01 00 [21:07:31]Write to MH i2c: E2 08 00 22 1F 80 13 01 00 00 00 00 00 BE [21:07:31]Write i2c OK [21:07:31]MH_I2C_Read... [21:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:31]Read from MH i2c: E2 [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: E2 0E 00 [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: E2 0E 00 22 1F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 95 [21:07:31]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:07:31]wFMCommunicate OK [21:07:31]SAM_PROTO_GetShiftState done [21:07:31]FM_GetShiftState done [21:07:31]req_shift_opened done [21:07:31]requested_item shift.open_date is exist - process it [21:07:31]req_shift_open_date [21:07:31]req_shift_open_date done [21:07:31]produce_requested_data done [21:07:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118593,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [21:07:31]process_action_free close_receipt [21:07:31]json_value_free [21:07:31]json_value_free done [21:07:31]process_json_proto returns [21:07:31]Send response to host [21:07:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118593,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [21:07:31]free response buf [21:07:31]execute_script done [21:07:31]execute_script returns [21:07:31]free content buf [21:07:31]Sock 9.Close socket [21:07:31]Sock 9.Thread stoped [21:07:35]OFD Sender: No OFD packet to send [21:07:40]OFD Sender: No OFD packet to send [21:07:45]OFD Sender: No OFD packet to send [21:07:50]OFD Sender: No OFD packet to send [21:07:55]OFD Sender: No OFD packet to send [21:08:00]OFD Sender: No OFD packet to send [21:08:05]OFD Sender: No OFD packet to send [21:08:10]OFD Sender: No OFD packet to send [21:08:15]OFD Sender: No OFD packet to send [21:08:20]OFD Sender: No OFD packet to send [21:08:25]OFD Sender: No OFD packet to send [21:08:30]OFD Sender: No OFD packet to send [21:08:35]OFD Sender: No OFD packet to send [21:08:40]OFD Sender: No OFD packet to send [21:08:45]OFD Sender: No OFD packet to send [21:08:50]OFD Sender: No OFD packet to send [21:08:55]OFD Sender: No OFD packet to send [21:09:00]OFD Sender: No OFD packet to send [21:09:05]OFD Sender: No OFD packet to send [21:09:10]OFD Sender: No OFD packet to send [21:09:15]OFD Sender: No OFD packet to send [21:09:20]OFD Sender: No OFD packet to send [21:09:25]OFD Sender: No OFD packet to send [21:09:30]OFD Sender: No OFD packet to send [21:09:35]OFD Sender: No OFD packet to send [21:09:40]OFD Sender: No OFD packet to send [21:09:45]OFD Sender: No OFD packet to send [21:09:50]OFD Sender: No OFD packet to send [21:09:55]OFD Sender: No OFD packet to send [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:10]OFD Sender: No OFD packet to send [21:10:15]OFD Sender: No OFD packet to send [21:10:20]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:05]OFD Sender: No OFD packet to send [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:06]accept exits with 7 [21:14:06]New connection [21:14:06]New thread 3067239780 created [21:14:06]Thread 3067383140 joined [21:14:06]Waiting for new connection... [21:14:06] Sock 7.Parse request [21:14:06]Sock 7.Check first char [21:14:06]Sock 7.First char is OK [21:14:06]request: POST /json_proto HTTP/1.0 [21:14:06]Method: POST [21:14:06]URL: /json_proto [21:14:06]Method is POST - this is cgi request [21:14:06]url: /json_proto [21:14:06]query_string will be loaded in cgi processing [21:14:06]execute_cgi json_proto POST (null) [21:14:06]execute_cgi path=json_proto method=POST [21:14:06]POST find Content-Length [21:14:06]Host: 172.17.45.7:8080 [21:14:06]Content-Length: 819 [21:14:06]Content-Type: application/json [21:14:06] [21:14:06]POST finish read [21:14:06]Found Content-Length = 819 [21:14:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:06]execute_script... [21:14: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)949482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:06]POST & json_proto [21:14:06]process_json_proto [21:14:06]json parsed OK: [21:14:06]protocol is kg_v1.0 [21:14:06]action value=close_receipt [21:14:06]process_action close_receipt [21:14:06]cmd_close_receipt [21:14:06]MH_GetDate [21:14:06]Write to MH i2c: F0 00 00 23 1F 31 [21:14:06]Write i2c OK [21:14:06]MH_I2C_Read... [21:14:06]Read from MH i2c: F0 [21:14:06]MH_I2C_Read... [21:14:06]Read from MH i2c: F0 09 00 [21:14:06]MH_I2C_Read... [21:14:06]Read from MH i2c: F0 09 00 23 1F 00 A0 B4 A6 66 90 0F 3E 66 DD [21:14:06]GetLastDocTimeStamp 1722200849 [21:14:06]current date 1722201248 [21:14:06]FM_GetShiftState [21:14:06]SAM_PROTO_GetShiftState [21:14:06]wFMCommunicate request_size=4 [21:14:06]MH_SAM_APDU [21:14:06]CAPDU: 80 13 01 00 [21:14:06]Write to MH i2c: E2 08 00 24 1F 80 13 01 00 00 00 00 00 C0 [21:14:06]Write i2c OK [21:14:06]MH_I2C_Read... [21:14:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:06]Read from MH i2c: E2 [21:14:06]MH_I2C_Read... [21:14:06]Read from MH i2c: E2 0E 00 [21:14:06]MH_I2C_Read... [21:14:06]Read from MH i2c: E2 0E 00 24 1F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 97 [21:14:06]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:14:06]wFMCommunicate OK [21:14:06]SAM_PROTO_GetShiftState done [21:14:06]FM_GetShiftState done [21:14:06]opened in 1722125364 [21:14:06]opened+sec_in_day 1722211764 [21:14:06]quantity*price = 100050 [21:14:06]sum+1 = 100052 [21:14:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 263 28.07.2024 21:14 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118594 ФПД: 85283978443498 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T211408&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118594&fm=85283978443498&tin=02508201610067®Number=0000000000092660&sum=100000 [21:14:07]StoreToDocumentArchive [21:14:07]shift 433 fd 118594 [21:14:07]save to /storage/0433/doc_00118594 [21:14:07]save last doc name /storage/0433/doc_00118594 to /storage/kkm_last_doc_name [21:14:07]save OK [21:14:07]Clear old archive folders... [21:14:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:14:07]tlvbuf is B6F2A6D0 [21:14:07]SAM_PROTO_ClearQueue [21:14:07]wFMCommunicate request_size=4 [21:14:07]MH_SAM_APDU [21:14:07]CAPDU: 80 09 00 00 [21:14:07]Write to MH i2c: E2 08 00 31 1F 80 09 00 00 00 00 00 00 C2 [21:14:07]Write i2c OK [21:14:07]MH_I2C_Read... [21:14:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:14:07]Read from MH i2c: E2 [21:14:07]MH_I2C_Read... [21:14:07]Read from MH i2c: E2 03 00 [21:14:07]MH_I2C_Read... [21:14:07]Read from MH i2c: E2 03 00 31 1F 00 90 00 C4 [21:14:07]RAPDU: 90 00 [21:14:07]wFMCommunicate OK [21:14:07]SAM_PROTO_ClearQueue done [21:14:07]KKMCreateOFDPacket [21:14:07]OFDProtocolAddRootSTLVToBuf [21:14:07]FM_MakeSignedData [21:14:07]FM_MakeSignedData [21:14:07]SAM_PROTO_SignData [21:14:07]wFMCommunicate request_size=4 [21:14:07]MH_SAM_APDU [21:14:07]CAPDU: 80 0D 01 02 [21:14:07]Write to MH i2c: E2 08 00 32 1F 80 0D 01 02 00 00 00 00 CA [21:14:07]Write i2c OK [21:14:07]MH_I2C_Read... [21:14:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:14:07]Read from MH i2c: E2 [21:14:07]MH_I2C_Read... [21:14:07]Read from MH i2c: E2 03 00 [21:14:07]MH_I2C_Read... [21:14:07]Read from MH i2c: E2 03 00 32 1F 00 90 00 C5 [21:14:07]RAPDU: 90 00 [21:14:07]wFMCommunicate OK [21:14:07]wFMCommunicate request_size=255 [21:14:07]MH_SAM_APDU [21:14:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 A0 B4 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 42 CF 01 00 35 04 06 00 4D 90 B9 3D [21:14:07]Write to MH i2c: E2 02 01 33 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 A0 B4 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 42 CF 01 00 35 04 06 00 4D 90 B9 3D 00 00 59 [21:14:07]Write i2c OK [21:14:07]MH_I2C_Read... [21:14:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:08]Read from MH i2c: E2 [21:14:08]MH_I2C_Read... [21:14:08]Read from MH i2c: E2 03 00 [21:14:08]MH_I2C_Read... [21:14:08]Read from MH i2c: E2 03 00 33 1F 00 90 00 C6 [21:14:08]RAPDU: 90 00 [21:14:08]wFMCommunicate OK [21:14:08]wFMCommunicate request_size=7 [21:14:08]MH_SAM_APDU [21:14:08]CAPDU: 80 0D 02 02 02 7A EA [21:14:08]Write to MH i2c: E2 0A 00 34 1F 80 0D 02 02 02 00 7A EA 00 00 35 [21:14:08]Write i2c OK [21:14:08]MH_I2C_Read... [21:14:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:08]Read from MH i2c: E2 [21:14:08]MH_I2C_Read... [21:14:08]Read from MH i2c: E2 03 00 [21:14:08]MH_I2C_Read... [21:14:08]Read from MH i2c: E2 03 00 34 1F 00 90 00 C7 [21:14:08]RAPDU: 90 00 [21:14:08]wFMCommunicate OK [21:14:08]wFMCommunicate request_size=4 [21:14:08]MH_SAM_APDU [21:14:08]CAPDU: 80 0D 03 02 [21:14:08]Write to MH i2c: E2 08 00 35 1F 80 0D 03 02 00 00 00 00 CF [21:14:08]Write i2c OK [21:14:08]MH_I2C_Read... [21:14:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:14:08]Read from MH i2c: E2 [21:14:08]MH_I2C_Read... [21:14:08]Read from MH i2c: E2 0B 00 [21:14:08]MH_I2C_Read... [21:14:08]Read from MH i2c: E2 0B 00 35 1F 00 EE B9 78 A3 49 69 08 C3 90 00 0F [21:14:08]RAPDU: EE B9 78 A3 49 69 08 C3 90 00 [21:14:08]wFMCommunicate OK [21:14:08]SAM_PROTO_SignData done [21:14:08]FM_MakeSignedData done [21:14:08]CreateOFDProtocolMessage [21:14:08]wFMCommunicate request_size=4 [21:14:08]MH_SAM_APDU [21:14:08]CAPDU: 80 11 00 00 [21:14:08]Write to MH i2c: E2 08 00 36 1F 80 11 00 00 00 00 00 00 CF [21:14:08]Write i2c OK [21:14:08]MH_I2C_Read... [21:14:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:08]Read from MH i2c: E2 [21:14:08]MH_I2C_Read... [21:14:08]Read from MH i2c: E2 17 00 [21:14:08]MH_I2C_Read... [21:14:08]Read from MH i2c: E2 17 00 36 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2A [21:14:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:14:08]wFMCommunicate OK [21:14:08]CreateOFDProtocolMessage done [21:14:08]OFDSenderStorePacket 118594 [21:14:08]StoreOFDPacket docnum=118594 [21:14:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E4 A1 04 01 E4 E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 A0 B4 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 42 CF 01 00 35 04 06 00 4D 90 B9 3D 7A EA EE B9 78 A3 49 69 08 C3 [21:14:08]CheckFolder [21:14:08]dirname=/storage/ofd_packets [21:14:08]CheckFolder done [21:14:08]ProducePacketName [21:14:08]name=ofd_packets/00118594 [21:14:08]NVStorageSaveData ofd_packets/00118594 [21:14:08]File name is /storage/ofd_packets/00118594 [21:14:08]Write 298 bytes [21:14:08]NVStorageSaveData done [21:14:08]OFDSenderStorePacket done [21:14:08]KKMCreateOFDPacket done [21:14:08]NVStorageSaveData kkm_last_timestamp [21:14:08]File name is /storage/kkm_last_timestamp [21:14:08]Write 4 bytes [21:14:08]NVStorageSaveData done [21:14:08]ExternCall_PrintAddStr [21:14:08]wPrintStart [21:14:08]Write to MH i2c: 01 00 00 37 1F 56 [21:14:08]Write i2c OK [21:14:08]MH_I2C_Read... [21:14:08]Read from MH i2c: 01 [21:14:08]MH_I2C_Read... [21:14:08]Read from MH i2c: 01 07 00 [21:14:08]MH_I2C_Read... [21:14:08]Read from MH i2c: 01 07 00 37 1F 00 00 00 00 00 FF 0F 6B [21:14:08]RasterBufferAndPrint [21:14:08]line Счет N : (1)949482 [21:14:08]line ИНН: 02508201610067 [21:14:08]line Контрольно-Кассовый Чек [21:14:08]line ПРОДАЖА [21:14:08]line ТРК (МРК, ГНК) : 21 [21:14:08]line Товар: 2710194800 [21:14:08]line ДТ-К-5 [21:14:08]line 13.130 * 76.20 [21:14:08]line = 1000.51 [21:14:08]line НДС 12% НСП 1% [21:14:08]line > о реализуемом товаре [21:14:08]line ОКРУГЛЕНИЕ: -0.51 [21:14:08]line ИТОГО: 1000.00 [21:14:08]line НСП 1% : 8.85 [21:14:08]line НДС 12% : 106.25 [21:14:08]line Наличными: 0.00 [21:14:08]line Безнал.: 1000.00 [21:14:08]line Место: АЗС № 134 "Партнер Нефть" [21:14:08]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:14:08]line СНО: Общий режим [21:14:08]line Чек 263 28.07.2024 21:14 [21:14:08]line Смена: 433 ФФД: 1.0 [21:14:08]line ЗНМ: 0300000044 [21:14:08]line РНМ: 0000000000092660 [21:14:08]line Версия ККМ: 001 [21:14:08]line Платежная система: O! деньги [21:14:08]line ФМ: 0000000000874939 [21:14:08]line ФД: 118594 [21:14:08]line ФПД: 85283978443498 [21:14:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T211408&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118594&fm=85283978443498&tin=02508201610067®Number=0000000000092660&sum=100000 [21:14:08]OFD Sender: Processing packet 118594 [packets to send 86, broken 85] [21:14:08]ProducePacketName [21:14:08]name=ofd_packets/00118594 [21:14:08]OFD Sender: To server: pG, [21:14:08]CommunicateWithHost lk.salyk.kg:30040 [21:14:08]ConnectInit lk.salyk.kg [21:14:08]written 0, free lines is 4095 [21:14:08]Connected sock=10 [21:14:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E4 A1 04 01 E4 E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 A0 B4 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 42 CF 01 00 35 04 06 00 4D 90 B9 3D 7A EA EE B9 78 A3 49 69 08 C3 [21:14:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F0 0E 47 00 2F 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 42 CF 01 00 F4 03 04 00 30 62 A6 66 B6 04 01 00 00 D2 ED 29 A1 9F 6A B1 78 [21:14:08]CommunicateWithHost err = 0 [21:14:08]CheckOFDResponse [21:14:08]1017 (14) - 77093643461234 [21:14:08]1041 (16) - 0000000000874939 [21:14:08]1040 (4) - 118594 [21:14:08]1012 (4) - 28.07.2024 15:22 [21:14:08]1206 (1) - 0 [21:14:08]OFD Sender: Remove packet 118594 [21:14:08]ProducePacketName [21:14:08]name=ofd_packets/00118594 [21:14:08]NVStorageDeleteData [21:14:09]Write to MH i2c: 01 00 00 61 1F 80 [21:14:09]Write i2c OK [21:14:09]MH_I2C_Read... [21:14:09]Read from MH i2c: 01 [21:14:09]MH_I2C_Read... [21:14:09]Read from MH i2c: 01 07 00 [21:14:09]MH_I2C_Read... [21:14:09]Read from MH i2c: 01 07 00 61 1F 00 00 00 00 00 D8 0C 6B [21:14:09]RasterBufferAndPrint [21:14:09]line [21:14:09]line [21:14:09]line [21:14:09]line [21:14:09]line [21:14:09]written 0, free lines is 3295 [21:14:09]MH_Cut [21:14:09]Write to MH i2c: D1 01 00 68 1F 01 59 [21:14:09]Write i2c OK [21:14:09]MH_I2C_Read... [21:14:09]Read from MH i2c: D1 [21:14:09]MH_I2C_Read... [21:14:09]Read from MH i2c: D1 01 00 [21:14:09]MH_I2C_Read... [21:14:09]Read from MH i2c: D1 01 00 68 1F 00 58 [21:14:09]Write to MH i2c: 01 00 00 69 1F 88 [21:14:09]Write i2c OK [21:14:09]MH_I2C_Read... [21:14:09]OFD Sender: No OFD packet to send [21:14:09]*** Cut start [21:14:09]*** Partial cut [21:14:09]*** CUTSNS_PIN = 1 [21:14:09]*** CUTSNS_PIN = 0 [21:14:10]*** Brake cut motor [21:14:10]Read from MH i2c: 01 [21:14:10]MH_I2C_Read... [21:14:10]*** Stop cut motor [21:14:10]*** Cut end [21:14:10]Read from MH i2c: 01 07 00 [21:14:10]MH_I2C_Read... [21:14:10]Read from MH i2c: 01 07 00 69 1F 00 00 00 00 00 FF 0F 9D [21:14:10]process_action close_receipt done [21:14:10]requested_data is exist [21:14:10]produce_requested_data [21:14:10]requested_item fm.sn is exist - process it [21:14:10]wFMCommunicate request_size=4 [21:14:10]MH_SAM_APDU [21:14:10]CAPDU: 80 11 00 00 [21:14:10]Write to MH i2c: E2 08 00 6A 1F 80 11 00 00 00 00 00 00 03 [21:14:10]Write i2c OK [21:14:10]MH_I2C_Read... [21:14:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:10]Read from MH i2c: E2 [21:14:10]MH_I2C_Read... [21:14:10]Read from MH i2c: E2 17 00 [21:14:10]MH_I2C_Read... [21:14:10]Read from MH i2c: E2 17 00 6A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5E [21:14:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:14:10]wFMCommunicate OK [21:14:10]requested_item fd.num is exist - process it [21:14:10]SAM_PROTO_GetFieldsCounters [21:14:10]wFMCommunicate request_size=4 [21:14:10]MH_SAM_APDU [21:14:10]CAPDU: 80 13 00 00 [21:14:10]Write to MH i2c: E2 08 00 6B 1F 80 13 00 00 00 00 00 00 06 [21:14:10]Write i2c OK [21:14:10]MH_I2C_Read... [21:14:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:14:10]Read from MH i2c: E2 [21:14:10]MH_I2C_Read... [21:14:10]Read from MH i2c: E2 62 00 [21:14:10]MH_I2C_Read... [21:14:10]Read from MH i2c: E2 62 00 6B 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 42 CF 01 00 0E 04 04 00 B1 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 09 [21:14:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 42 CF 01 00 0E 04 04 00 B1 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 [21:14:10]wFMCommunicate OK [21:14:10]SAM_PROTO_GetFieldsCounters done [21:14:10]requested_item shift.num is exist - process it [21:14:10]requested_item shift.opened is exist - process it [21:14:10]req_shift_opened [21:14:10]FM_GetShiftState [21:14:10]SAM_PROTO_GetShiftState [21:14:10]wFMCommunicate request_size=4 [21:14:10]MH_SAM_APDU [21:14:10]CAPDU: 80 13 01 00 [21:14:10]Write to MH i2c: E2 08 00 6C 1F 80 13 01 00 00 00 00 00 08 [21:14:10]Write i2c OK [21:14:10]MH_I2C_Read... [21:14:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:10]Read from MH i2c: E2 [21:14:10]MH_I2C_Read... [21:14:10]Read from MH i2c: E2 0E 00 [21:14:10]MH_I2C_Read... [21:14:10]Read from MH i2c: E2 0E 00 6C 1F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 DF [21:14:10]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:14:10]wFMCommunicate OK [21:14:10]SAM_PROTO_GetShiftState done [21:14:10]FM_GetShiftState done [21:14:10]req_shift_opened done [21:14:10]requested_item shift.open_date is exist - process it [21:14:10]req_shift_open_date [21:14:10]req_shift_open_date done [21:14:10]produce_requested_data done [21:14:10]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118594,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [21:14:10]process_action_free close_receipt [21:14:10]json_value_free [21:14:10]json_value_free done [21:14:10]process_json_proto returns [21:14:10]Send response to host [21:14:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118594,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [21:14:10]free response buf [21:14:10]execute_script done [21:14:10]execute_script returns [21:14:10]free content buf [21:14:10]Sock 7.Close socket [21:14:10]Sock 7.Thread stoped [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:04]OFD Sender: No OFD packet to send [21:15:07]accept exits with 9 [21:15:07]New connection [21:15:07]New thread 3067383140 created [21:15:07]Thread 3067239780 joined [21:15:07]Waiting for new connection... [21:15:07] Sock 9.Parse request [21:15:07]Sock 9.Check first char [21:15:07]Sock 9.First char is OK [21:15:07]request: POST /json_proto HTTP/1.0 [21:15:07]Method: POST [21:15:07]URL: /json_proto [21:15:07]Method is POST - this is cgi request [21:15:07]url: /json_proto [21:15:07]query_string will be loaded in cgi processing [21:15:07]execute_cgi json_proto POST (null) [21:15:07]execute_cgi path=json_proto method=POST [21:15:07]POST find Content-Length [21:15:07]Host: 172.17.45.7:8080 [21:15:07]Content-Length: 677 [21:15:07]Content-Type: application/json [21:15:07] [21:15:07]POST finish read [21:15:07]Found Content-Length = 677 [21:15:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:15:07]execute_script... [21:15: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)949483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:15:07]POST & json_proto [21:15:07]process_json_proto [21:15:07]json parsed OK: [21:15:07]protocol is kg_v1.0 [21:15:07]action value=close_receipt [21:15:07]process_action close_receipt [21:15:07]cmd_close_receipt [21:15:07]MH_GetDate [21:15:07]Write to MH i2c: F0 00 00 6D 1F 7B [21:15:07]Write i2c OK [21:15:07]MH_I2C_Read... [21:15:07]Read from MH i2c: F0 [21:15:07]MH_I2C_Read... [21:15:07]Read from MH i2c: F0 09 00 [21:15:07]MH_I2C_Read... [21:15:07]Read from MH i2c: F0 09 00 6D 1F 00 DD B4 A6 66 90 0F 3E 66 64 [21:15:07]GetLastDocTimeStamp 1722201248 [21:15:07]current date 1722201309 [21:15:07]FM_GetShiftState [21:15:07]SAM_PROTO_GetShiftState [21:15:07]wFMCommunicate request_size=4 [21:15:07]MH_SAM_APDU [21:15:07]CAPDU: 80 13 01 00 [21:15:07]Write to MH i2c: E2 08 00 6E 1F 80 13 01 00 00 00 00 00 0A [21:15:07]Write i2c OK [21:15:07]MH_I2C_Read... [21:15:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:07]Read from MH i2c: E2 [21:15:07]MH_I2C_Read... [21:15:07]Read from MH i2c: E2 0E 00 [21:15:07]MH_I2C_Read... [21:15:07]Read from MH i2c: E2 0E 00 6E 1F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 E1 [21:15:07]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:15:07]wFMCommunicate OK [21:15:07]SAM_PROTO_GetShiftState done [21:15:07]FM_GetShiftState done [21:15:07]opened in 1722125364 [21:15:07]opened+sec_in_day 1722211764 [21:15:07]quantity*price = 20001 [21:15:07]sum+1 = 20002 [21:15:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 264 28.07.2024 21:15 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118595 ФПД: 234380938673467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T211509&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118595&fm=234380938673467&tin=02508201610067®Number=0000000000092660&sum=20000 [21:15:08]StoreToDocumentArchive [21:15:08]shift 433 fd 118595 [21:15:08]save to /storage/0433/doc_00118595 [21:15:08]save last doc name /storage/0433/doc_00118595 to /storage/kkm_last_doc_name [21:15:08]save OK [21:15:08]Clear old archive folders... [21:15:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:15:08]tlvbuf is 01E983A0 [21:15:08]SAM_PROTO_ClearQueue [21:15:08]wFMCommunicate request_size=4 [21:15:08]MH_SAM_APDU [21:15:08]CAPDU: 80 09 00 00 [21:15:08]Write to MH i2c: E2 08 00 7B 1F 80 09 00 00 00 00 00 00 0C [21:15:08]Write i2c OK [21:15:08]MH_I2C_Read... [21:15:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:15:08]Read from MH i2c: E2 [21:15:08]MH_I2C_Read... [21:15:08]Read from MH i2c: E2 03 00 [21:15:08]MH_I2C_Read... [21:15:08]Read from MH i2c: E2 03 00 7B 1F 00 90 00 0E [21:15:08]RAPDU: 90 00 [21:15:08]wFMCommunicate OK [21:15:08]SAM_PROTO_ClearQueue done [21:15:08]KKMCreateOFDPacket [21:15:08]OFDProtocolAddRootSTLVToBuf [21:15:08]FM_MakeSignedData [21:15:08]FM_MakeSignedData [21:15:08]SAM_PROTO_SignData [21:15:08]wFMCommunicate request_size=4 [21:15:08]MH_SAM_APDU [21:15:08]CAPDU: 80 0D 01 02 [21:15:08]Write to MH i2c: E2 08 00 7C 1F 80 0D 01 02 00 00 00 00 14 [21:15:08]Write i2c OK [21:15:08]MH_I2C_Read... [21:15:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:15:08]Read from MH i2c: E2 [21:15:08]MH_I2C_Read... [21:15:08]Read from MH i2c: E2 03 00 [21:15:08]MH_I2C_Read... [21:15:08]Read from MH i2c: E2 03 00 7C 1F 00 90 00 0F [21:15:08]RAPDU: 90 00 [21:15:08]wFMCommunicate OK [21:15:08]wFMCommunicate request_size=255 [21:15:08]MH_SAM_APDU [21:15: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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 DD B4 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 43 CF 01 00 35 04 06 00 D5 [21:15:08]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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 DD B4 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 43 CF 01 00 35 04 06 00 D5 00 00 DA [21:15:08]Write i2c OK [21:15:08]MH_I2C_Read... [21:15:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:08]Read from MH i2c: E2 [21:15:08]MH_I2C_Read... [21:15:08]Read from MH i2c: E2 03 00 [21:15:08]MH_I2C_Read... [21:15:08]Read from MH i2c: E2 03 00 7D 1F 00 90 00 10 [21:15:08]RAPDU: 90 00 [21:15:08]wFMCommunicate OK [21:15:08]wFMCommunicate request_size=10 [21:15:08]MH_SAM_APDU [21:15:08]CAPDU: 80 0D 02 02 05 2B 10 97 7D 3B [21:15:08]Write to MH i2c: E2 0D 00 7E 1F 80 0D 02 02 05 00 2B 10 97 7D 3B 00 00 AB [21:15:08]Write i2c OK [21:15:08]MH_I2C_Read... [21:15:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:08]Read from MH i2c: E2 [21:15:08]MH_I2C_Read... [21:15:08]Read from MH i2c: E2 03 00 [21:15:08]MH_I2C_Read... [21:15:08]Read from MH i2c: E2 03 00 7E 1F 00 90 00 11 [21:15:08]RAPDU: 90 00 [21:15:08]wFMCommunicate OK [21:15:08]wFMCommunicate request_size=4 [21:15:08]MH_SAM_APDU [21:15:08]CAPDU: 80 0D 03 02 [21:15:08]Write to MH i2c: E2 08 00 7F 1F 80 0D 03 02 00 00 00 00 19 [21:15:08]Write i2c OK [21:15:08]MH_I2C_Read... [21:15:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:15:08]Read from MH i2c: E2 [21:15:08]MH_I2C_Read... [21:15:08]Read from MH i2c: E2 0B 00 [21:15:08]MH_I2C_Read... [21:15:08]Read from MH i2c: E2 0B 00 7F 1F 00 BA 97 17 67 D0 56 27 7E 90 00 B4 [21:15:08]RAPDU: BA 97 17 67 D0 56 27 7E 90 00 [21:15:08]wFMCommunicate OK [21:15:08]SAM_PROTO_SignData done [21:15:08]FM_MakeSignedData done [21:15:08]CreateOFDProtocolMessage [21:15:08]wFMCommunicate request_size=4 [21:15:08]MH_SAM_APDU [21:15:08]CAPDU: 80 11 00 00 [21:15:08]Write to MH i2c: E2 08 00 80 1F 80 11 00 00 00 00 00 00 19 [21:15:08]Write i2c OK [21:15:08]MH_I2C_Read... [21:15:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:08]Read from MH i2c: E2 [21:15:08]MH_I2C_Read... [21:15:08]Read from MH i2c: E2 17 00 [21:15:08]MH_I2C_Read... [21:15:08]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 39 33 39 90 00 74 [21:15:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:15:08]wFMCommunicate OK [21:15:08]CreateOFDProtocolMessage done [21:15:08]OFDSenderStorePacket 118595 [21:15:08]StoreOFDPacket docnum=118595 [21:15:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 40 12 07 01 A9 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 DD B4 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 43 CF 01 00 35 04 06 00 D5 2B 10 97 7D 3B BA 97 17 67 D0 56 27 7E [21:15:08]CheckFolder [21:15:08]dirname=/storage/ofd_packets [21:15:08]CheckFolder done [21:15:08]ProducePacketName [21:15:08]name=ofd_packets/00118595 [21:15:08]NVStorageSaveData ofd_packets/00118595 [21:15:08]File name is /storage/ofd_packets/00118595 [21:15:08]Write 301 bytes [21:15:08]NVStorageSaveData done [21:15:08]OFDSenderStorePacket done [21:15:08]KKMCreateOFDPacket done [21:15:08]NVStorageSaveData kkm_last_timestamp [21:15:08]File name is /storage/kkm_last_timestamp [21:15:08]Write 4 bytes [21:15:08]NVStorageSaveData done [21:15:08]ExternCall_PrintAddStr [21:15:08]wPrintStart [21:15:08]Write to MH i2c: 01 00 00 81 1F A0 [21:15:08]Write i2c OK [21:15:08]MH_I2C_Read... [21:15:08]Read from MH i2c: 01 [21:15:08]MH_I2C_Read... [21:15:08]Read from MH i2c: 01 07 00 [21:15:08]MH_I2C_Read... [21:15:08]Read from MH i2c: 01 07 00 81 1F 00 00 00 00 00 FF 0F B5 [21:15:08]RasterBufferAndPrint [21:15:08]line Счет N : (1)949483 [21:15:08]line ИНН: 02508201610067 [21:15:08]line Контрольно-Кассовый Чек [21:15:08]line ПРОДАЖА [21:15:08]line ТРК (МРК, ГНК) : 51 [21:15:08]line Товар: 2710124130 [21:15:08]line Аи-92-К-4 [21:15:08]line 2.950 * 67.80 [21:15:08]line = 200.01 [21:15:08]line НДС 12% НСП 1% [21:15:08]line > о реализуемом товаре [21:15:08]line ОКРУГЛЕНИЕ: -0.01 [21:15:08]line ИТОГО: 200.00 [21:15:08]line Внесено: 200.00 [21:15:08]line СДАЧА: 0.00 [21:15:08]line НСП 1% : 1.77 [21:15:08]line НДС 12% : 21.24 [21:15:08]line Наличными: 200.00 [21:15:08]line Безнал.: 0.00 [21:15:08]line Место: АЗС № 134 "Партнер Нефть" [21:15:08]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:15:08]line СНО: Общий режим [21:15:08]line Чек 264 28.07.2024 21:15 [21:15:08]line Смена: 433 ФФД: 1.0 [21:15:08]line ЗНМ: 0300000044 [21:15:08]line РНМ: 0000000000092660 [21:15:08]line Версия ККМ: 001 [21:15:08]line ФМ: 0000000000874939 [21:15:08]line ФД: 118595 [21:15:08]line ФПД: 234380938673467 [21:15:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T211509&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118595&fm=234380938673467&tin=02508201610067®Number=0000000000092660&sum=20000 [21:15:08]written 0, free lines is 4095 [21:15:08]OFD Sender: Processing packet 118595 [packets to send 86, broken 85] [21:15:08]ProducePacketName [21:15:08]name=ofd_packets/00118595 [21:15:08]OFD Sender: To server: pG, [21:15:08]CommunicateWithHost lk.salyk.kg:30040 [21:15:08]ConnectInit lk.salyk.kg [21:15:08]Connected sock=10 [21:15:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 40 12 07 01 A9 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 DD B4 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 43 CF 01 00 35 04 06 00 D5 2B 10 97 7D 3B BA 97 17 67 D0 56 27 7E [21:15:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A6 91 47 00 29 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 39 33 39 10 04 04 00 43 CF 01 00 F4 03 04 00 6C 62 A6 66 B6 04 01 00 00 20 BF 9D FE F8 BA A6 60 [21:15:09]CommunicateWithHost err = 0 [21:15:09]CheckOFDResponse [21:15:09]1017 (14) - 77093643461234 [21:15:09]1041 (16) - 0000000000874939 [21:15:09]1040 (4) - 118595 [21:15:09]1012 (4) - 28.07.2024 15:23 [21:15:09]1206 (1) - 0 [21:15:09]OFD Sender: Remove packet 118595 [21:15:09]ProducePacketName [21:15:09]name=ofd_packets/00118595 [21:15:09]NVStorageDeleteData [21:15:09]Write to MH i2c: 01 00 00 AB 1F CA [21:15:09]Write i2c OK [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: 01 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: 01 07 00 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: 01 07 00 AB 1F 00 00 00 00 00 D5 0C B2 [21:15:09]RasterBufferAndPrint [21:15:09]line [21:15:09]line [21:15:09]line [21:15:09]line [21:15:09]line [21:15:09]written 0, free lines is 3293 [21:15:09]MH_Cut [21:15:09]Write to MH i2c: D1 01 00 B2 1F 01 A3 [21:15:09]Write i2c OK [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: D1 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: D1 01 00 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: D1 01 00 B2 1F 00 A2 [21:15:09]Write to MH i2c: 01 00 00 B3 1F D2 [21:15:09]Write i2c OK [21:15:09]MH_I2C_Read... [21:15:09]OFD Sender: No OFD packet to send [21:15:09]*** Cut start [21:15:09]*** Partial cut [21:15:09]*** CUTSNS_PIN = 1 [21:15:09]*** CUTSNS_PIN = 0 [21:15:10]*** Brake cut motor [21:15:10]Read from MH i2c: 01 [21:15:10]MH_I2C_Read... [21:15:10]*** Stop cut motor [21:15:10]*** Cut end [21:15:10]Read from MH i2c: 01 07 00 [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: 01 07 00 B3 1F 00 00 00 00 00 FF 0F E7 [21:15:10]process_action close_receipt done [21:15:10]requested_data is exist [21:15:10]produce_requested_data [21:15:10]requested_item fm.sn is exist - process it [21:15:10]wFMCommunicate request_size=4 [21:15:10]MH_SAM_APDU [21:15:10]CAPDU: 80 11 00 00 [21:15:10]Write to MH i2c: E2 08 00 B4 1F 80 11 00 00 00 00 00 00 4D [21:15:10]Write i2c OK [21:15:10]MH_I2C_Read... [21:15:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:10]Read from MH i2c: E2 [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: E2 17 00 [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: E2 17 00 B4 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A8 [21:15:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:15:10]wFMCommunicate OK [21:15:10]requested_item fd.num is exist - process it [21:15:10]SAM_PROTO_GetFieldsCounters [21:15:10]wFMCommunicate request_size=4 [21:15:10]MH_SAM_APDU [21:15:10]CAPDU: 80 13 00 00 [21:15:10]Write to MH i2c: E2 08 00 B5 1F 80 13 00 00 00 00 00 00 50 [21:15:10]Write i2c OK [21:15:10]MH_I2C_Read... [21:15:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:15:10]Read from MH i2c: E2 [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: E2 62 00 [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: E2 62 00 B5 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 43 CF 01 00 0E 04 04 00 B1 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 57 [21:15:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 43 CF 01 00 0E 04 04 00 B1 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 [21:15:10]wFMCommunicate OK [21:15:10]SAM_PROTO_GetFieldsCounters done [21:15:10]requested_item shift.num is exist - process it [21:15:10]requested_item shift.opened is exist - process it [21:15:10]req_shift_opened [21:15:10]FM_GetShiftState [21:15:10]SAM_PROTO_GetShiftState [21:15:10]wFMCommunicate request_size=4 [21:15:10]MH_SAM_APDU [21:15:10]CAPDU: 80 13 01 00 [21:15:10]Write to MH i2c: E2 08 00 B6 1F 80 13 01 00 00 00 00 00 52 [21:15:10]Write i2c OK [21:15:10]MH_I2C_Read... [21:15:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:10]Read from MH i2c: E2 [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: E2 0E 00 [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: E2 0E 00 B6 1F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 29 [21:15:10]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:15:10]wFMCommunicate OK [21:15:10]SAM_PROTO_GetShiftState done [21:15:10]FM_GetShiftState done [21:15:10]req_shift_opened done [21:15:10]requested_item shift.open_date is exist - process it [21:15:10]req_shift_open_date [21:15:10]req_shift_open_date done [21:15:10]produce_requested_data done [21:15:10]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118595,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [21:15:10]process_action_free close_receipt [21:15:10]json_value_free [21:15:10]json_value_free done [21:15:10]process_json_proto returns [21:15:10]Send response to host [21:15:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118595,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [21:15:10]free response buf [21:15:10]execute_script done [21:15:10]execute_script returns [21:15:10]free content buf [21:15:10]Sock 9.Close socket [21:15:10]Sock 9.Thread stoped [21:15:14]OFD Sender: No OFD packet to send [21:15:19]OFD Sender: No OFD packet to send [21:15:24]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:34]OFD Sender: No OFD packet to send [21:15:39]OFD Sender: No OFD packet to send [21:15:44]OFD Sender: No OFD packet to send [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:15:59]accept exits with 7 [21:15:59]New connection [21:15:59]New thread 3067239780 created [21:15:59]Thread 3067383140 joined [21:15:59]Waiting for new connection... [21:15:59] Sock 7.Parse request [21:15:59]Sock 7.Check first char [21:15:59]Sock 7.First char is OK [21:15:59]request: POST /json_proto HTTP/1.0 [21:15:59]Method: POST [21:15:59]URL: /json_proto [21:15:59]Method is POST - this is cgi request [21:15:59]url: /json_proto [21:15:59]query_string will be loaded in cgi processing [21:15:59]execute_cgi json_proto POST (null) [21:15:59]execute_cgi path=json_proto method=POST [21:15:59]POST find Content-Length [21:15:59]Host: 172.17.45.7:8080 [21:15:59]Content-Length: 682 [21:15:59]Content-Type: application/json [21:15:59] [21:15:59]POST finish read [21:15:59]Found Content-Length = 682 [21:15:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:59]execute_script... [21:15: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)949485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:59]POST & json_proto [21:15:59]process_json_proto [21:15:59]json parsed OK: [21:15:59]protocol is kg_v1.0 [21:15:59]action value=close_receipt [21:15:59]process_action close_receipt [21:15:59]cmd_close_receipt [21:15:59]MH_GetDate [21:15:59]Write to MH i2c: F0 00 00 B7 1F C5 [21:15:59]Write i2c OK [21:15:59]MH_I2C_Read... [21:15:59]Read from MH i2c: F0 [21:15:59]MH_I2C_Read... [21:15:59]Read from MH i2c: F0 09 00 [21:15:59]MH_I2C_Read... [21:15:59]Read from MH i2c: F0 09 00 B7 1F 00 12 B5 A6 66 90 0F 3E 66 E4 [21:15:59]GetLastDocTimeStamp 1722201309 [21:15:59]current date 1722201362 [21:15:59]FM_GetShiftState [21:15:59]SAM_PROTO_GetShiftState [21:15:59]wFMCommunicate request_size=4 [21:15:59]MH_SAM_APDU [21:15:59]CAPDU: 80 13 01 00 [21:15:59]Write to MH i2c: E2 08 00 B8 1F 80 13 01 00 00 00 00 00 54 [21:15:59]Write i2c OK [21:15:59]MH_I2C_Read... [21:15:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:59]Read from MH i2c: E2 [21:15:59]MH_I2C_Read... [21:15:59]Read from MH i2c: E2 0E 00 [21:15:59]MH_I2C_Read... [21:15:59]Read from MH i2c: E2 0E 00 B8 1F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 2B [21:15:59]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:15:59]wFMCommunicate OK [21:15:59]SAM_PROTO_GetShiftState done [21:15:59]FM_GetShiftState done [21:15:59]opened in 1722125364 [21:15:59]opened+sec_in_day 1722211764 [21:15:59]quantity*price = 100005 [21:15:59]sum+1 = 100006 [21:15:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 265 28.07.2024 21:16 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118596 ФПД: 269087268973188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T211602&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118596&fm=269087268973188&tin=02508201610067®Number=0000000000092660&sum=100000 [21:16:01]StoreToDocumentArchive [21:16:01]shift 433 fd 118596 [21:16:01]save to /storage/0433/doc_00118596 [21:16:01]save last doc name /storage/0433/doc_00118596 to /storage/kkm_last_doc_name [21:16:01]save OK [21:16:01]Clear old archive folders... [21:16:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:16:01]tlvbuf is B6F11AA0 [21:16:01]SAM_PROTO_ClearQueue [21:16:01]wFMCommunicate request_size=4 [21:16:01]MH_SAM_APDU [21:16:01]CAPDU: 80 09 00 00 [21:16:01]Write to MH i2c: E2 08 00 C5 1F 80 09 00 00 00 00 00 00 56 [21:16:01]Write i2c OK [21:16:01]MH_I2C_Read... [21:16:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:01]Read from MH i2c: E2 [21:16:01]MH_I2C_Read... [21:16:01]Read from MH i2c: E2 03 00 [21:16:01]MH_I2C_Read... [21:16:01]Read from MH i2c: E2 03 00 C5 1F 00 90 00 58 [21:16:01]RAPDU: 90 00 [21:16:01]wFMCommunicate OK [21:16:01]SAM_PROTO_ClearQueue done [21:16:01]KKMCreateOFDPacket [21:16:01]OFDProtocolAddRootSTLVToBuf [21:16:01]FM_MakeSignedData [21:16:01]FM_MakeSignedData [21:16:01]SAM_PROTO_SignData [21:16:01]wFMCommunicate request_size=4 [21:16:01]MH_SAM_APDU [21:16:01]CAPDU: 80 0D 01 02 [21:16:01]Write to MH i2c: E2 08 00 C6 1F 80 0D 01 02 00 00 00 00 5E [21:16:01]Write i2c OK [21:16:01]MH_I2C_Read... [21:16:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:01]Read from MH i2c: E2 [21:16:01]MH_I2C_Read... [21:16:01]Read from MH i2c: E2 03 00 [21:16:01]MH_I2C_Read... [21:16:01]Read from MH i2c: E2 03 00 C6 1F 00 90 00 59 [21:16:01]RAPDU: 90 00 [21:16:01]wFMCommunicate OK [21:16:01]wFMCommunicate request_size=255 [21:16:01]MH_SAM_APDU [21:16: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 12 B5 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 44 CF 01 00 35 04 06 00 F4 [21:16:01]Write to MH i2c: E2 02 01 C7 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 12 B5 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 44 CF 01 00 35 04 06 00 F4 00 00 08 [21:16:01]Write i2c OK [21:16:01]MH_I2C_Read... [21:16:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:01]Read from MH i2c: E2 [21:16:01]MH_I2C_Read... [21:16:01]Read from MH i2c: E2 03 00 [21:16:01]MH_I2C_Read... [21:16:01]Read from MH i2c: E2 03 00 C7 1F 00 90 00 5A [21:16:01]RAPDU: 90 00 [21:16:01]wFMCommunicate OK [21:16:01]wFMCommunicate request_size=10 [21:16:01]MH_SAM_APDU [21:16:01]CAPDU: 80 0D 02 02 05 BB C3 14 AA 84 [21:16:01]Write to MH i2c: E2 0D 00 C8 1F 80 0D 02 02 05 00 BB C3 14 AA 84 00 00 2B [21:16:01]Write i2c OK [21:16:01]MH_I2C_Read... [21:16:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:01]Read from MH i2c: E2 [21:16:01]MH_I2C_Read... [21:16:01]Read from MH i2c: E2 03 00 [21:16:01]MH_I2C_Read... [21:16:01]Read from MH i2c: E2 03 00 C8 1F 00 90 00 5B [21:16:01]RAPDU: 90 00 [21:16:01]wFMCommunicate OK [21:16:01]wFMCommunicate request_size=4 [21:16:01]MH_SAM_APDU [21:16:01]CAPDU: 80 0D 03 02 [21:16:01]Write to MH i2c: E2 08 00 C9 1F 80 0D 03 02 00 00 00 00 63 [21:16:01]Write i2c OK [21:16:01]MH_I2C_Read... [21:16:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:01]Read from MH i2c: E2 [21:16:01]MH_I2C_Read... [21:16:01]Read from MH i2c: E2 0B 00 [21:16:01]MH_I2C_Read... [21:16:01]Read from MH i2c: E2 0B 00 C9 1F 00 2D D4 90 2B A0 37 B5 F6 90 00 A2 [21:16:01]RAPDU: 2D D4 90 2B A0 37 B5 F6 90 00 [21:16:01]wFMCommunicate OK [21:16:01]SAM_PROTO_SignData done [21:16:01]FM_MakeSignedData done [21:16:01]CreateOFDProtocolMessage [21:16:01]wFMCommunicate request_size=4 [21:16:01]MH_SAM_APDU [21:16:01]CAPDU: 80 11 00 00 [21:16:01]Write to MH i2c: E2 08 00 CA 1F 80 11 00 00 00 00 00 00 63 [21:16:01]Write i2c OK [21:16:01]MH_I2C_Read... [21:16:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:01]Read from MH i2c: E2 [21:16:01]MH_I2C_Read... [21:16:01]Read from MH i2c: E2 17 00 [21:16:01]MH_I2C_Read... [21:16:01]Read from MH i2c: E2 17 00 CA 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BE [21:16:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:16:01]wFMCommunicate OK [21:16:01]CreateOFDProtocolMessage done [21:16:01]OFDSenderStorePacket 118596 [21:16:01]StoreOFDPacket docnum=118596 [21:16:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 31 DB 07 01 4B 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 12 B5 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 44 CF 01 00 35 04 06 00 F4 BB C3 14 AA 84 2D D4 90 2B A0 37 B5 F6 [21:16:01]CheckFolder [21:16:01]dirname=/storage/ofd_packets [21:16:01]CheckFolder done [21:16:01]ProducePacketName [21:16:01]name=ofd_packets/00118596 [21:16:01]NVStorageSaveData ofd_packets/00118596 [21:16:01]File name is /storage/ofd_packets/00118596 [21:16:01]Write 301 bytes [21:16:01]NVStorageSaveData done [21:16:01]OFDSenderStorePacket done [21:16:01]KKMCreateOFDPacket done [21:16:01]NVStorageSaveData kkm_last_timestamp [21:16:01]File name is /storage/kkm_last_timestamp [21:16:01]Write 4 bytes [21:16:01]NVStorageSaveData done [21:16:01]ExternCall_PrintAddStr [21:16:01]wPrintStart [21:16:01]Write to MH i2c: 01 00 00 CB 1F EA [21:16:01]Write i2c OK [21:16:01]MH_I2C_Read... [21:16:01]Read from MH i2c: 01 [21:16:01]MH_I2C_Read... [21:16:01]Read from MH i2c: 01 07 00 [21:16:01]MH_I2C_Read... [21:16:01]Read from MH i2c: 01 07 00 CB 1F 00 00 00 00 00 FF 0F FF [21:16:01]RasterBufferAndPrint [21:16:01]line Счет N : (1)949485 [21:16:01]line ИНН: 02508201610067 [21:16:01]line Контрольно-Кассовый Чек [21:16:01]line ПРОДАЖА [21:16:01]line ТРК (МРК, ГНК) : 31 [21:16:01]line Товар: 2710124130 [21:16:01]line Аи-92-К-4 [21:16:01]line 14.750 * 67.80 [21:16:01]line = 1000.05 [21:16:01]line НДС 12% НСП 1% [21:16:01]line > о реализуемом товаре [21:16:01]line ОКРУГЛЕНИЕ: -0.05 [21:16:01]line ИТОГО: 1000.00 [21:16:01]line Внесено: 1000.00 [21:16:01]line СДАЧА: 0.00 [21:16:01]line НСП 1% : 8.85 [21:16:01]line НДС 12% : 106.20 [21:16:01]line Наличными: 1000.00 [21:16:01]line Безнал.: 0.00 [21:16:01]line Место: АЗС № 134 "Партнер Нефть" [21:16:01]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:16:01]line СНО: Общий режим [21:16:01]line Чек 265 28.07.2024 21:16 [21:16:01]line Смена: 433 ФФД: 1.0 [21:16:01]line ЗНМ: 0300000044 [21:16:01]line РНМ: 0000000000092660 [21:16:01]line Версия ККМ: 001 [21:16:01]line ФМ: 0000000000874939 [21:16:01]line ФД: 118596 [21:16:01]line ФПД: 269087268973188 [21:16:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T211602&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118596&fm=269087268973188&tin=02508201610067®Number=0000000000092660&sum=100000 [21:16:01]written 0, free lines is 4095 [21:16:01]OFD Sender: Processing packet 118596 [packets to send 86, broken 85] [21:16:01]ProducePacketName [21:16:01]name=ofd_packets/00118596 [21:16:01]OFD Sender: To server: pG, [21:16:01]CommunicateWithHost lk.salyk.kg:30040 [21:16:01]ConnectInit lk.salyk.kg [21:16:02]Connected sock=10 [21:16:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 31 DB 07 01 4B 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 12 B5 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 44 CF 01 00 35 04 06 00 F4 BB C3 14 AA 84 2D D4 90 2B A0 37 B5 F6 [21:16:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 7A D2 47 00 16 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 39 33 39 10 04 04 00 44 CF 01 00 F4 03 04 00 A1 62 A6 66 B6 04 01 00 00 CD D2 4D 53 15 23 27 4C [21:16:02]CommunicateWithHost err = 0 [21:16:02]CheckOFDResponse [21:16:02]1017 (14) - 77093643461234 [21:16:02]1041 (16) - 0000000000874939 [21:16:02]1040 (4) - 118596 [21:16:02]1012 (4) - 28.07.2024 15:24 [21:16:02]1206 (1) - 0 [21:16:02]OFD Sender: Remove packet 118596 [21:16:02]ProducePacketName [21:16:02]name=ofd_packets/00118596 [21:16:02]NVStorageDeleteData [21:16:02]Write to MH i2c: 01 00 00 F5 1F 14 [21:16:02]Write i2c OK [21:16:02]MH_I2C_Read... [21:16:02]Read from MH i2c: 01 [21:16:02]MH_I2C_Read... [21:16:02]Read from MH i2c: 01 07 00 [21:16:02]MH_I2C_Read... [21:16:02]Read from MH i2c: 01 07 00 F5 1F 00 00 00 00 00 D4 0C FB [21:16:02]RasterBufferAndPrint [21:16:02]line [21:16:02]line [21:16:02]line [21:16:02]line [21:16:02]line [21:16:02]written 0, free lines is 3291 [21:16:02]MH_Cut [21:16:02]Write to MH i2c: D1 01 00 FC 1F 01 ED [21:16:02]Write i2c OK [21:16:02]MH_I2C_Read... [21:16:02]Read from MH i2c: D1 [21:16:02]MH_I2C_Read... [21:16:02]Read from MH i2c: D1 01 00 [21:16:02]MH_I2C_Read... [21:16:02]Read from MH i2c: D1 01 00 FC 1F 00 EC [21:16:02]Write to MH i2c: 01 00 00 FD 1F 1C [21:16:02]Write i2c OK [21:16:02]MH_I2C_Read... [21:16:02]OFD Sender: No OFD packet to send [21:16:03]*** Cut start [21:16:03]*** Partial cut [21:16:03]*** CUTSNS_PIN = 1 [21:16:03]*** CUTSNS_PIN = 0 [21:16:03]*** Brake cut motor [21:16:03]Read from MH i2c: 01 [21:16:03]MH_I2C_Read... [21:16:03]*** Stop cut motor [21:16:03]*** Cut end [21:16:03]Read from MH i2c: 01 07 00 [21:16:03]MH_I2C_Read... [21:16:03]Read from MH i2c: 01 07 00 FD 1F 00 00 00 00 00 FF 0F 31 [21:16:03]process_action close_receipt done [21:16:03]requested_data is exist [21:16:03]produce_requested_data [21:16:03]requested_item fm.sn is exist - process it [21:16:03]wFMCommunicate request_size=4 [21:16:03]MH_SAM_APDU [21:16:03]CAPDU: 80 11 00 00 [21:16:03]Write to MH i2c: E2 08 00 FE 1F 80 11 00 00 00 00 00 00 97 [21:16:03]Write i2c OK [21:16:03]MH_I2C_Read... [21:16:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:03]Read from MH i2c: E2 [21:16:03]MH_I2C_Read... [21:16:03]Read from MH i2c: E2 17 00 [21:16:03]MH_I2C_Read... [21:16:03]Read from MH i2c: E2 17 00 FE 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F2 [21:16:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:16:03]wFMCommunicate OK [21:16:03]requested_item fd.num is exist - process it [21:16:03]SAM_PROTO_GetFieldsCounters [21:16:03]wFMCommunicate request_size=4 [21:16:03]MH_SAM_APDU [21:16:03]CAPDU: 80 13 00 00 [21:16:03]Write to MH i2c: E2 08 00 FF 1F 80 13 00 00 00 00 00 00 9A [21:16:03]Write i2c OK [21:16:03]MH_I2C_Read... [21:16:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:03]Read from MH i2c: E2 [21:16:03]MH_I2C_Read... [21:16:03]Read from MH i2c: E2 62 00 [21:16:03]MH_I2C_Read... [21:16:03]Read from MH i2c: E2 62 00 FF 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 44 CF 01 00 0E 04 04 00 B1 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 A5 [21:16:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 44 CF 01 00 0E 04 04 00 B1 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 [21:16:03]wFMCommunicate OK [21:16:03]SAM_PROTO_GetFieldsCounters done [21:16:03]requested_item shift.num is exist - process it [21:16:03]requested_item shift.opened is exist - process it [21:16:03]req_shift_opened [21:16:03]FM_GetShiftState [21:16:03]SAM_PROTO_GetShiftState [21:16:03]wFMCommunicate request_size=4 [21:16:03]MH_SAM_APDU [21:16:03]CAPDU: 80 13 01 00 [21:16:03]Write to MH i2c: E2 08 00 00 20 80 13 01 00 00 00 00 00 9D [21:16:03]Write i2c OK [21:16:03]MH_I2C_Read... [21:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:04]Read from MH i2c: E2 [21:16:04]MH_I2C_Read... [21:16:04]Read from MH i2c: E2 0E 00 [21:16:04]MH_I2C_Read... [21:16:04]Read from MH i2c: E2 0E 00 00 20 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 74 [21:16:04]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:16:04]wFMCommunicate OK [21:16:04]SAM_PROTO_GetShiftState done [21:16:04]FM_GetShiftState done [21:16:04]req_shift_opened done [21:16:04]requested_item shift.open_date is exist - process it [21:16:04]req_shift_open_date [21:16:04]req_shift_open_date done [21:16:04]produce_requested_data done [21:16:04]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118596,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [21:16:04]process_action_free close_receipt [21:16:04]json_value_free [21:16:04]json_value_free done [21:16:04]process_json_proto returns [21:16:04]Send response to host [21:16:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118596,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [21:16:04]free response buf [21:16:04]execute_script done [21:16:04]execute_script returns [21:16:04]free content buf [21:16:04]Sock 7.Close socket [21:16:04]Sock 7.Thread stoped [21:16:07]OFD Sender: No OFD packet to send [21:16:12]OFD Sender: No OFD packet to send [21:16:17]OFD Sender: No OFD packet to send [21:16:22]OFD Sender: No OFD packet to send [21:16:27]OFD Sender: No OFD packet to send [21:16:32]OFD Sender: No OFD packet to send [21:16:37]OFD Sender: No OFD packet to send [21:16:42]OFD Sender: No OFD packet to send [21:16:47]OFD Sender: No OFD packet to send [21:16:52]OFD Sender: No OFD packet to send [21:16:53]accept exits with 9 [21:16:53]New connection [21:16:53]New thread 3067383140 created [21:16:53]Thread 3067239780 joined [21:16:53]Waiting for new connection... [21:16:53] Sock 9.Parse request [21:16:53]Sock 9.Check first char [21:16:53]Sock 9.First char is OK [21:16:53]request: POST /json_proto HTTP/1.0 [21:16:53]Method: POST [21:16:53]URL: /json_proto [21:16:53]Method is POST - this is cgi request [21:16:53]url: /json_proto [21:16:53]query_string will be loaded in cgi processing [21:16:53]execute_cgi json_proto POST (null) [21:16:53]execute_cgi path=json_proto method=POST [21:16:53]POST find Content-Length [21:16:53]Host: 172.17.45.7:8080 [21:16:53]Content-Length: 682 [21:16:53]Content-Type: application/json [21:16:53] [21:16:53]POST finish read [21:16:53]Found Content-Length = 682 [21:16:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "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" ] } } [21:16:53]execute_script... [21:16:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "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" ] } } [21:16:53]POST & json_proto [21:16:53]process_json_proto [21:16:53]json parsed OK: [21:16:53]protocol is kg_v1.0 [21:16:53]action value=close_receipt [21:16:53]process_action close_receipt [21:16:53]cmd_close_receipt [21:16:53]MH_GetDate [21:16:53]Write to MH i2c: F0 00 00 01 20 10 [21:16:53]Write i2c OK [21:16:53]MH_I2C_Read... [21:16:53]Read from MH i2c: F0 [21:16:53]MH_I2C_Read... [21:16:53]Read from MH i2c: F0 09 00 [21:16:53]MH_I2C_Read... [21:16:53]Read from MH i2c: F0 09 00 01 20 00 48 B5 A6 66 90 0F 3E 66 65 [21:16:53]GetLastDocTimeStamp 1722201362 [21:16:53]current date 1722201416 [21:16:53]FM_GetShiftState [21:16:53]SAM_PROTO_GetShiftState [21:16:53]wFMCommunicate request_size=4 [21:16:53]MH_SAM_APDU [21:16:53]CAPDU: 80 13 01 00 [21:16:53]Write to MH i2c: E2 08 00 02 20 80 13 01 00 00 00 00 00 9F [21:16:53]Write i2c OK [21:16:53]MH_I2C_Read... [21:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:53]Read from MH i2c: E2 [21:16:53]MH_I2C_Read... [21:16:53]Read from MH i2c: E2 0E 00 [21:16:53]MH_I2C_Read... [21:16:53]Read from MH i2c: E2 0E 00 02 20 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 76 [21:16:53]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:16:53]wFMCommunicate OK [21:16:53]SAM_PROTO_GetShiftState done [21:16:53]FM_GetShiftState done [21:16:53]opened in 1722125364 [21:16:53]opened+sec_in_day 1722211764 [21:16:53]quantity*price = 120006 [21:16:53]sum+1 = 120007 [21:16:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 266 28.07.2024 21:16 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118597 ФПД: 275969562277823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T211656&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118597&fm=275969562277823&tin=02508201610067®Number=0000000000092660&sum=120000 [21:16:55]StoreToDocumentArchive [21:16:55]shift 433 fd 118597 [21:16:55]save to /storage/0433/doc_00118597 [21:16:55]save last doc name /storage/0433/doc_00118597 to /storage/kkm_last_doc_name [21:16:55]save OK [21:16:55]Clear old archive folders... [21:16:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:16:55]tlvbuf is 01EBD880 [21:16:55]SAM_PROTO_ClearQueue [21:16:55]wFMCommunicate request_size=4 [21:16:55]MH_SAM_APDU [21:16:55]CAPDU: 80 09 00 00 [21:16:55]Write to MH i2c: E2 08 00 0F 20 80 09 00 00 00 00 00 00 A1 [21:16:55]Write i2c OK [21:16:55]MH_I2C_Read... [21:16:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:55]Read from MH i2c: E2 [21:16:55]MH_I2C_Read... [21:16:55]Read from MH i2c: E2 03 00 [21:16:55]MH_I2C_Read... [21:16:55]Read from MH i2c: E2 03 00 0F 20 00 90 00 A3 [21:16:55]RAPDU: 90 00 [21:16:55]wFMCommunicate OK [21:16:55]SAM_PROTO_ClearQueue done [21:16:55]KKMCreateOFDPacket [21:16:55]OFDProtocolAddRootSTLVToBuf [21:16:55]FM_MakeSignedData [21:16:55]FM_MakeSignedData [21:16:55]SAM_PROTO_SignData [21:16:55]wFMCommunicate request_size=4 [21:16:55]MH_SAM_APDU [21:16:55]CAPDU: 80 0D 01 02 [21:16:55]Write to MH i2c: E2 08 00 10 20 80 0D 01 02 00 00 00 00 A9 [21:16:55]Write i2c OK [21:16:55]MH_I2C_Read... [21:16:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:55]Read from MH i2c: E2 [21:16:55]MH_I2C_Read... [21:16:55]Read from MH i2c: E2 03 00 [21:16:55]MH_I2C_Read... [21:16:55]Read from MH i2c: E2 03 00 10 20 00 90 00 A4 [21:16:55]RAPDU: 90 00 [21:16:55]wFMCommunicate OK [21:16:55]wFMCommunicate request_size=255 [21:16:55]MH_SAM_APDU [21:16:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 0A 01 00 00 F4 03 04 00 48 B5 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 45 CF 01 00 35 04 06 00 FA [21:16:55]Write to MH i2c: E2 02 01 11 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 34 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 0A 01 00 00 F4 03 04 00 48 B5 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 45 CF 01 00 35 04 06 00 FA 00 00 74 [21:16:55]Write i2c OK [21:16:55]MH_I2C_Read... [21:16:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:55]Read from MH i2c: E2 [21:16:55]MH_I2C_Read... [21:16:55]Read from MH i2c: E2 03 00 [21:16:55]MH_I2C_Read... [21:16:55]Read from MH i2c: E2 03 00 11 20 00 90 00 A5 [21:16:55]RAPDU: 90 00 [21:16:55]wFMCommunicate OK [21:16:55]wFMCommunicate request_size=10 [21:16:55]MH_SAM_APDU [21:16:55]CAPDU: 80 0D 02 02 05 FE 2B BA 77 BF [21:16:55]Write to MH i2c: E2 0D 00 12 20 80 0D 02 02 05 00 FE 2B BA 77 BF 00 00 CF [21:16:55]Write i2c OK [21:16:55]MH_I2C_Read... [21:16:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:55]Read from MH i2c: E2 [21:16:55]MH_I2C_Read... [21:16:55]Read from MH i2c: E2 03 00 [21:16:55]MH_I2C_Read... [21:16:55]Read from MH i2c: E2 03 00 12 20 00 90 00 A6 [21:16:55]RAPDU: 90 00 [21:16:55]wFMCommunicate OK [21:16:55]wFMCommunicate request_size=4 [21:16:55]MH_SAM_APDU [21:16:55]CAPDU: 80 0D 03 02 [21:16:55]Write to MH i2c: E2 08 00 13 20 80 0D 03 02 00 00 00 00 AE [21:16:55]Write i2c OK [21:16:55]MH_I2C_Read... [21:16:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:55]Read from MH i2c: E2 [21:16:55]MH_I2C_Read... [21:16:55]Read from MH i2c: E2 0B 00 [21:16:55]MH_I2C_Read... [21:16:55]Read from MH i2c: E2 0B 00 13 20 00 4B F6 AC 43 58 98 AB E7 90 00 61 [21:16:55]RAPDU: 4B F6 AC 43 58 98 AB E7 90 00 [21:16:55]wFMCommunicate OK [21:16:55]SAM_PROTO_SignData done [21:16:55]FM_MakeSignedData done [21:16:55]CreateOFDProtocolMessage [21:16:55]wFMCommunicate request_size=4 [21:16:55]MH_SAM_APDU [21:16:55]CAPDU: 80 11 00 00 [21:16:55]Write to MH i2c: E2 08 00 14 20 80 11 00 00 00 00 00 00 AE [21:16:55]Write i2c OK [21:16:55]MH_I2C_Read... [21:16:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:55]Read from MH i2c: E2 [21:16:55]MH_I2C_Read... [21:16:55]Read from MH i2c: E2 17 00 [21:16:55]MH_I2C_Read... [21:16:55]Read from MH i2c: E2 17 00 14 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 09 [21:16:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:16:55]wFMCommunicate OK [21:16:55]CreateOFDProtocolMessage done [21:16:55]OFDSenderStorePacket 118597 [21:16:55]StoreOFDPacket docnum=118597 [21:16:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E9 A6 07 01 2E FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 0A 01 00 00 F4 03 04 00 48 B5 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 45 CF 01 00 35 04 06 00 FA FE 2B BA 77 BF 4B F6 AC 43 58 98 AB E7 [21:16:55]CheckFolder [21:16:55]dirname=/storage/ofd_packets [21:16:55]CheckFolder done [21:16:55]ProducePacketName [21:16:55]name=ofd_packets/00118597 [21:16:55]NVStorageSaveData ofd_packets/00118597 [21:16:55]File name is /storage/ofd_packets/00118597 [21:16:55]Write 301 bytes [21:16:55]NVStorageSaveData done [21:16:55]OFDSenderStorePacket done [21:16:55]KKMCreateOFDPacket done [21:16:55]NVStorageSaveData kkm_last_timestamp [21:16:55]File name is /storage/kkm_last_timestamp [21:16:55]Write 4 bytes [21:16:55]NVStorageSaveData done [21:16:55]ExternCall_PrintAddStr [21:16:55]wPrintStart [21:16:55]Write to MH i2c: 01 00 00 15 20 35 [21:16:55]Write i2c OK [21:16:55]MH_I2C_Read... [21:16:55]Read from MH i2c: 01 [21:16:55]MH_I2C_Read... [21:16:55]Read from MH i2c: 01 07 00 [21:16:55]MH_I2C_Read... [21:16:55]Read from MH i2c: 01 07 00 15 20 00 00 00 00 00 FF 0F 4A [21:16:55]RasterBufferAndPrint [21:16:55]line Счет N : (1)949486 [21:16:55]line ИНН: 02508201610067 [21:16:55]line Контрольно-Кассовый Чек [21:16:55]line ПРОДАЖА [21:16:55]line ТРК (МРК, ГНК) : 41 [21:16:55]line Товар: 2710124130 [21:16:55]line Аи-92-К-4 [21:16:55]line 17.700 * 67.80 [21:16:55]line = 1200.06 [21:16:55]line НДС 12% НСП 1% [21:16:55]line > о реализуемом товаре [21:16:55]line ОКРУГЛЕНИЕ: -0.06 [21:16:55]line ИТОГО: 1200.00 [21:16:55]line Внесено: 1200.00 [21:16:55]line СДАЧА: 0.00 [21:16:55]line НСП 1% : 10.62 [21:16:55]line НДС 12% : 127.44 [21:16:55]line Наличными: 1200.00 [21:16:55]line Безнал.: 0.00 [21:16:55]line Место: АЗС № 134 "Партнер Нефть" [21:16:55]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:16:55]line СНО: Общий режим [21:16:55]line Чек 266 28.07.2024 21:16 [21:16:55]line Смена: 433 ФФД: 1.0 [21:16:55]line ЗНМ: 0300000044 [21:16:55]line РНМ: 0000000000092660 [21:16:55]line Версия ККМ: 001 [21:16:55]line ФМ: 0000000000874939 [21:16:55]line ФД: 118597 [21:16:55]line ФПД: 275969562277823 [21:16:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T211656&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118597&fm=275969562277823&tin=02508201610067®Number=0000000000092660&sum=120000 [21:16:55]OFD Sender: Processing packet 118597 [packets to send 86, broken 85] [21:16:55]ProducePacketName [21:16:55]name=ofd_packets/00118597 [21:16:55]OFD Sender: To server: pG, [21:16:55]CommunicateWithHost lk.salyk.kg:30040 [21:16:55]ConnectInit lk.salyk.kg [21:16:55]written 0, free lines is 4095 [21:16:56]Connected sock=10 [21:16:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E9 A6 07 01 2E FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 0A 01 00 00 F4 03 04 00 48 B5 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 45 CF 01 00 35 04 06 00 FA FE 2B BA 77 BF 4B F6 AC 43 58 98 AB E7 [21:16:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 76 93 47 00 44 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 39 33 39 10 04 04 00 45 CF 01 00 F4 03 04 00 D7 62 A6 66 B6 04 01 00 00 EC A5 4B CA 6F 4A 49 C1 [21:16:56]CommunicateWithHost err = 0 [21:16:56]CheckOFDResponse [21:16:56]1017 (14) - 77093643461234 [21:16:56]1041 (16) - 0000000000874939 [21:16:56]1040 (4) - 118597 [21:16:56]1012 (4) - 28.07.2024 15:25 [21:16:56]1206 (1) - 0 [21:16:56]OFD Sender: Remove packet 118597 [21:16:56]ProducePacketName [21:16:56]name=ofd_packets/00118597 [21:16:56]NVStorageDeleteData [21:16:56]Write to MH i2c: 01 00 00 3F 20 5F [21:16:56]Write i2c OK [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: 01 [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: 01 07 00 [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: 01 07 00 3F 20 00 00 00 00 00 DD 0C 4F [21:16:56]RasterBufferAndPrint [21:16:56]line [21:16:56]line [21:16:56]line [21:16:56]line [21:16:56]line [21:16:56]written 0, free lines is 3298 [21:16:56]MH_Cut [21:16:56]Write to MH i2c: D1 01 00 46 20 01 38 [21:16:56]Write i2c OK [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: D1 [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: D1 01 00 [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: D1 01 00 46 20 00 37 [21:16:56]Write to MH i2c: 01 00 00 47 20 67 [21:16:56]Write i2c OK [21:16:56]MH_I2C_Read... [21:16:56]OFD Sender: No OFD packet to send [21:16:57]*** Cut start [21:16:57]*** Partial cut [21:16:57]*** CUTSNS_PIN = 1 [21:16:57]*** CUTSNS_PIN = 0 [21:16:57]*** Brake cut motor [21:16:57]Read from MH i2c: 01 [21:16:57]MH_I2C_Read... [21:16:57]*** Stop cut motor [21:16:57]*** Cut end [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 47 20 00 00 00 00 00 FF 0F 7C [21:16:57]process_action close_receipt done [21:16:57]requested_data is exist [21:16:57]produce_requested_data [21:16:57]requested_item fm.sn is exist - process it [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 48 20 80 11 00 00 00 00 00 00 E2 [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 48 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3D [21:16:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:16:57]wFMCommunicate OK [21:16:57]requested_item fd.num is exist - process it [21:16:57]SAM_PROTO_GetFieldsCounters [21:16:57]wFMCommunicate request_size=4 [21:16:57]MH_SAM_APDU [21:16:57]CAPDU: 80 13 00 00 [21:16:57]Write to MH i2c: E2 08 00 49 20 80 13 00 00 00 00 00 00 E5 [21:16:57]Write i2c OK [21:16:57]MH_I2C_Read... [21:16:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:57]Read from MH i2c: E2 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 62 00 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 62 00 49 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 45 CF 01 00 0E 04 04 00 B1 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 F4 [21:16:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 45 CF 01 00 0E 04 04 00 B1 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 [21:16:57]wFMCommunicate OK [21:16:57]SAM_PROTO_GetFieldsCounters done [21:16:57]requested_item shift.num is exist - process it [21:16:57]requested_item shift.opened is exist - process it [21:16:57]req_shift_opened [21:16:57]FM_GetShiftState [21:16:57]SAM_PROTO_GetShiftState [21:16:57]wFMCommunicate request_size=4 [21:16:57]MH_SAM_APDU [21:16:57]CAPDU: 80 13 01 00 [21:16:57]Write to MH i2c: E2 08 00 4A 20 80 13 01 00 00 00 00 00 E7 [21:16:57]Write i2c OK [21:16:57]MH_I2C_Read... [21:16:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:57]Read from MH i2c: E2 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 0E 00 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 0E 00 4A 20 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 BE [21:16:57]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:16:57]wFMCommunicate OK [21:16:57]SAM_PROTO_GetShiftState done [21:16:57]FM_GetShiftState done [21:16:57]req_shift_opened done [21:16:57]requested_item shift.open_date is exist - process it [21:16:57]req_shift_open_date [21:16:57]req_shift_open_date done [21:16:57]produce_requested_data done [21:16:57]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118597,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [21:16:58]process_action_free close_receipt [21:16:58]json_value_free [21:16:58]json_value_free done [21:16:58]process_json_proto returns [21:16:58]Send response to host [21:16:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118597,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [21:16:58]free response buf [21:16:58]execute_script done [21:16:58]execute_script returns [21:16:58]free content buf [21:16:58]Sock 9.Close socket [21:16:58]Sock 9.Thread stoped [21:17:01]OFD Sender: No OFD packet to send [21:17:06]OFD Sender: No OFD packet to send [21:17:11]OFD Sender: No OFD packet to send [21:17:16]OFD Sender: No OFD packet to send [21:17:21]accept exits with 7 [21:17:21]New connection [21:17:21]New thread 3067239780 created [21:17:21]Thread 3067383140 joined [21:17:21]Waiting for new connection... [21:17:21] Sock 7.Parse request [21:17:21]Sock 7.Check first char [21:17:21]Sock 7.First char is OK [21:17:21]request: POST /json_proto HTTP/1.0 [21:17:21]Method: POST [21:17:21]URL: /json_proto [21:17:21]Method is POST - this is cgi request [21:17:21]url: /json_proto [21:17:21]query_string will be loaded in cgi processing [21:17:21]execute_cgi json_proto POST (null) [21:17:21]execute_cgi path=json_proto method=POST [21:17:21]POST find Content-Length [21:17:21]Host: 172.17.45.7:8080 [21:17:21]Content-Length: 819 [21:17:21]Content-Type: application/json [21:17:21] [21:17:21]POST finish read [21:17:21]Found Content-Length = 819 [21:17:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 40.540, "sum" : 3089.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3089.00, "payments": [ { "type": 1, "sum" : 3089.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:21]execute_script... [21:17:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 40.540, "sum" : 3089.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3089.00, "payments": [ { "type": 1, "sum" : 3089.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:21]POST & json_proto [21:17:21]process_json_proto [21:17:21]json parsed OK: [21:17:21]protocol is kg_v1.0 [21:17:21]action value=close_receipt [21:17:21]process_action close_receipt [21:17:21]cmd_close_receipt [21:17:21]MH_GetDate [21:17:21]Write to MH i2c: F0 00 00 4B 20 5A [21:17:21]Write i2c OK [21:17:21]MH_I2C_Read... [21:17:21]Read from MH i2c: F0 [21:17:21]MH_I2C_Read... [21:17:21]Read from MH i2c: F0 09 00 [21:17:21]MH_I2C_Read... [21:17:21]Read from MH i2c: F0 09 00 4B 20 00 63 B5 A6 66 90 0F 3E 66 CA [21:17:21]GetLastDocTimeStamp 1722201416 [21:17:21]current date 1722201443 [21:17:21]FM_GetShiftState [21:17:21]SAM_PROTO_GetShiftState [21:17:21]wFMCommunicate request_size=4 [21:17:21]MH_SAM_APDU [21:17:21]CAPDU: 80 13 01 00 [21:17:21]Write to MH i2c: E2 08 00 4C 20 80 13 01 00 00 00 00 00 E9 [21:17:21]Write i2c OK [21:17:21]MH_I2C_Read... [21:17:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:21]Read from MH i2c: E2 [21:17:21]MH_I2C_Read... [21:17:21]Read from MH i2c: E2 0E 00 [21:17:21]MH_I2C_Read... [21:17:21]Read from MH i2c: E2 0E 00 4C 20 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 C0 [21:17:21]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:17:21]wFMCommunicate OK [21:17:21]SAM_PROTO_GetShiftState done [21:17:21]FM_GetShiftState done [21:17:21]opened in 1722125364 [21:17:21]opened+sec_in_day 1722211764 [21:17:21]quantity*price = 308914 [21:17:21]sum+1 = 308916 [21:17:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 3089.00 НСП 1% : 27.34 НДС 12% : 328.05 Наличными: 0.00 Безнал.: 3089.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 267 28.07.2024 21:17 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118598 ФПД: 237718683487995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T211723&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118598&fm=237718683487995&tin=02508201610067®Number=0000000000092660&sum=308900 [21:17:22]StoreToDocumentArchive [21:17:22]shift 433 fd 118598 [21:17:22]save to /storage/0433/doc_00118598 [21:17:22]save last doc name /storage/0433/doc_00118598 to /storage/kkm_last_doc_name [21:17:22]save OK [21:17:22]Clear old archive folders... [21:17:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:17:22]tlvbuf is 01ED6440 [21:17:22]SAM_PROTO_ClearQueue [21:17:22]wFMCommunicate request_size=4 [21:17:22]MH_SAM_APDU [21:17:22]CAPDU: 80 09 00 00 [21:17:22]Write to MH i2c: E2 08 00 59 20 80 09 00 00 00 00 00 00 EB [21:17:22]Write i2c OK [21:17:22]MH_I2C_Read... [21:17:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:17:22]Read from MH i2c: E2 [21:17:22]MH_I2C_Read... [21:17:22]Read from MH i2c: E2 03 00 [21:17:22]MH_I2C_Read... [21:17:22]Read from MH i2c: E2 03 00 59 20 00 90 00 ED [21:17:22]RAPDU: 90 00 [21:17:22]wFMCommunicate OK [21:17:22]SAM_PROTO_ClearQueue done [21:17:22]KKMCreateOFDPacket [21:17:22]OFDProtocolAddRootSTLVToBuf [21:17:22]FM_MakeSignedData [21:17:22]FM_MakeSignedData [21:17:22]SAM_PROTO_SignData [21:17:22]wFMCommunicate request_size=4 [21:17:22]MH_SAM_APDU [21:17:22]CAPDU: 80 0D 01 02 [21:17:22]Write to MH i2c: E2 08 00 5A 20 80 0D 01 02 00 00 00 00 F3 [21:17:22]Write i2c OK [21:17:22]MH_I2C_Read... [21:17:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:17:22]Read from MH i2c: E2 [21:17:22]MH_I2C_Read... [21:17:22]Read from MH i2c: E2 03 00 [21:17:22]MH_I2C_Read... [21:17:22]Read from MH i2c: E2 03 00 5A 20 00 90 00 EE [21:17:22]RAPDU: 90 00 [21:17:22]wFMCommunicate OK [21:17:22]wFMCommunicate request_size=255 [21:17:22]MH_SAM_APDU [21:17:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5C 9E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B3 B6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 B6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 80 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 B6 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 63 B5 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 CF 01 00 35 04 06 00 D8 34 31 AF [21:17:22]Write to MH i2c: E2 02 01 5B 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5C 9E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B3 B6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 B6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 80 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 B6 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 63 B5 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 CF 01 00 35 04 06 00 D8 34 31 AF 00 00 A0 [21:17:22]Write i2c OK [21:17:22]MH_I2C_Read... [21:17:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:23]Read from MH i2c: E2 [21:17:23]MH_I2C_Read... [21:17:23]Read from MH i2c: E2 03 00 [21:17:23]MH_I2C_Read... [21:17:23]Read from MH i2c: E2 03 00 5B 20 00 90 00 EF [21:17:23]RAPDU: 90 00 [21:17:23]wFMCommunicate OK [21:17:23]wFMCommunicate request_size=7 [21:17:23]MH_SAM_APDU [21:17:23]CAPDU: 80 0D 02 02 02 8E FB [21:17:23]Write to MH i2c: E2 0A 00 5C 20 80 0D 02 02 02 00 8E FB 00 00 83 [21:17:23]Write i2c OK [21:17:23]MH_I2C_Read... [21:17:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:23]Read from MH i2c: E2 [21:17:23]MH_I2C_Read... [21:17:23]Read from MH i2c: E2 03 00 [21:17:23]MH_I2C_Read... [21:17:23]Read from MH i2c: E2 03 00 5C 20 00 90 00 F0 [21:17:23]RAPDU: 90 00 [21:17:23]wFMCommunicate OK [21:17:23]wFMCommunicate request_size=4 [21:17:23]MH_SAM_APDU [21:17:23]CAPDU: 80 0D 03 02 [21:17:23]Write to MH i2c: E2 08 00 5D 20 80 0D 03 02 00 00 00 00 F8 [21:17:23]Write i2c OK [21:17:23]MH_I2C_Read... [21:17:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:17:23]Read from MH i2c: E2 [21:17:23]MH_I2C_Read... [21:17:23]Read from MH i2c: E2 0B 00 [21:17:23]MH_I2C_Read... [21:17:23]Read from MH i2c: E2 0B 00 5D 20 00 A0 05 DE 67 04 D3 B8 45 90 00 B7 [21:17:23]RAPDU: A0 05 DE 67 04 D3 B8 45 90 00 [21:17:23]wFMCommunicate OK [21:17:23]SAM_PROTO_SignData done [21:17:23]FM_MakeSignedData done [21:17:23]CreateOFDProtocolMessage [21:17:23]wFMCommunicate request_size=4 [21:17:23]MH_SAM_APDU [21:17:23]CAPDU: 80 11 00 00 [21:17:23]Write to MH i2c: E2 08 00 5E 20 80 11 00 00 00 00 00 00 F8 [21:17:23]Write i2c OK [21:17:23]MH_I2C_Read... [21:17:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:23]Read from MH i2c: E2 [21:17:23]MH_I2C_Read... [21:17:23]Read from MH i2c: E2 17 00 [21:17:23]MH_I2C_Read... [21:17:23]Read from MH i2c: E2 17 00 5E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 53 [21:17:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:17:23]wFMCommunicate OK [21:17:23]CreateOFDProtocolMessage done [21:17:23]OFDSenderStorePacket 118598 [21:17:23]StoreOFDPacket docnum=118598 [21:17:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F3 70 04 01 2A 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5C 9E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B3 B6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 B6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 80 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 B6 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 63 B5 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 CF 01 00 35 04 06 00 D8 34 31 AF 8E FB A0 05 DE 67 04 D3 B8 45 [21:17:23]CheckFolder [21:17:23]dirname=/storage/ofd_packets [21:17:23]CheckFolder done [21:17:23]ProducePacketName [21:17:23]name=ofd_packets/00118598 [21:17:23]NVStorageSaveData ofd_packets/00118598 [21:17:23]File name is /storage/ofd_packets/00118598 [21:17:23]Write 298 bytes [21:17:23]NVStorageSaveData done [21:17:23]OFDSenderStorePacket done [21:17:23]KKMCreateOFDPacket done [21:17:23]NVStorageSaveData kkm_last_timestamp [21:17:23]File name is /storage/kkm_last_timestamp [21:17:23]Write 4 bytes [21:17:23]NVStorageSaveData done [21:17:23]ExternCall_PrintAddStr [21:17:23]wPrintStart [21:17:23]Write to MH i2c: 01 00 00 5F 20 7F [21:17:23]Write i2c OK [21:17:23]MH_I2C_Read... [21:17:23]Read from MH i2c: 01 [21:17:23]MH_I2C_Read... [21:17:23]Read from MH i2c: 01 07 00 [21:17:23]MH_I2C_Read... [21:17:23]Read from MH i2c: 01 07 00 5F 20 00 00 00 00 00 FF 0F 94 [21:17:23]RasterBufferAndPrint [21:17:23]line Счет N : (1)949484 [21:17:23]line ИНН: 02508201610067 [21:17:23]line Контрольно-Кассовый Чек [21:17:23]line ПРОДАЖА [21:17:23]line ТРК (МРК, ГНК) : 11 [21:17:23]line Товар: 2710194800 [21:17:23]line ДТ-К-5 [21:17:23]line 40.540 * 76.20 [21:17:23]line = 3089.15 [21:17:23]line НДС 12% НСП 1% [21:17:23]line > о реализуемом товаре [21:17:23]line ОКРУГЛЕНИЕ: -0.15 [21:17:23]line ИТОГО: 3089.00 [21:17:23]line НСП 1% : 27.34 [21:17:23]line НДС 12% : 328.05 [21:17:23]line Наличными: 0.00 [21:17:23]line Безнал.: 3089.00 [21:17:23]line Место: АЗС № 134 "Партнер Нефть" [21:17:23]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:17:23]line СНО: Общий режим [21:17:23]line Чек 267 28.07.2024 21:17 [21:17:23]line Смена: 433 ФФД: 1.0 [21:17:23]line ЗНМ: 0300000044 [21:17:23]line РНМ: 0000000000092660 [21:17:23]line Версия ККМ: 001 [21:17:23]line Платежная система: O! деньги [21:17:23]line ФМ: 0000000000874939 [21:17:23]line ФД: 118598 [21:17:23]line ФПД: 237718683487995 [21:17:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T211723&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118598&fm=237718683487995&tin=02508201610067®Number=0000000000092660&sum=308900 [21:17:23]OFD Sender: Processing packet 118598 [packets to send 86, broken 85] [21:17:23]ProducePacketName [21:17:23]name=ofd_packets/00118598 [21:17:23]OFD Sender: To server: pG, [21:17:23]CommunicateWithHost lk.salyk.kg:30040 [21:17:23]ConnectInit lk.salyk.kg [21:17:23]written 0, free lines is 4095 [21:17:23]Connected sock=10 [21:17:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F3 70 04 01 2A 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5C 9E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B3 B6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 B6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 80 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 B6 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 63 B5 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 CF 01 00 35 04 06 00 D8 34 31 AF 8E FB A0 05 DE 67 04 D3 B8 45 [21:17:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 60 7A 47 00 42 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 39 33 39 10 04 04 00 46 CF 01 00 F4 03 04 00 F3 62 A6 66 B6 04 01 00 00 08 B1 72 E5 AD A4 D7 0F [21:17:23]CommunicateWithHost err = 0 [21:17:23]CheckOFDResponse [21:17:23]1017 (14) - 77093643461234 [21:17:23]1041 (16) - 0000000000874939 [21:17:23]1040 (4) - 118598 [21:17:23]1012 (4) - 28.07.2024 15:25 [21:17:23]1206 (1) - 0 [21:17:23]OFD Sender: Remove packet 118598 [21:17:23]ProducePacketName [21:17:23]name=ofd_packets/00118598 [21:17:23]NVStorageDeleteData [21:17:24]Write to MH i2c: 01 00 00 89 20 A9 [21:17:24]Write i2c OK [21:17:24]MH_I2C_Read... [21:17:24]Read from MH i2c: 01 [21:17:24]MH_I2C_Read... [21:17:24]Read from MH i2c: 01 07 00 [21:17:24]MH_I2C_Read... [21:17:24]Read from MH i2c: 01 07 00 89 20 00 00 00 00 00 E5 0C A1 [21:17:24]RasterBufferAndPrint [21:17:24]line [21:17:24]line [21:17:24]line [21:17:24]line [21:17:24]line [21:17:24]written 0, free lines is 3307 [21:17:24]MH_Cut [21:17:24]Write to MH i2c: D1 01 00 90 20 01 82 [21:17:24]Write i2c OK [21:17:24]MH_I2C_Read... [21:17:24]Read from MH i2c: D1 [21:17:24]MH_I2C_Read... [21:17:24]Read from MH i2c: D1 01 00 [21:17:24]MH_I2C_Read... [21:17:24]Read from MH i2c: D1 01 00 90 20 00 81 [21:17:24]Write to MH i2c: 01 00 00 91 20 B1 [21:17:24]Write i2c OK [21:17:24]MH_I2C_Read... [21:17:24]OFD Sender: No OFD packet to send [21:17:24]*** Cut start [21:17:24]*** Partial cut [21:17:24]*** CUTSNS_PIN = 1 [21:17:24]*** CUTSNS_PIN = 0 [21:17:25]*** Brake cut motor [21:17:25]Read from MH i2c: 01 [21:17:25]MH_I2C_Read... [21:17:25]*** Stop cut motor [21:17:25]*** Cut end [21:17:25]Read from MH i2c: 01 07 00 [21:17:25]MH_I2C_Read... [21:17:25]Read from MH i2c: 01 07 00 91 20 00 00 00 00 00 FF 0F C6 [21:17:25]process_action close_receipt done [21:17:25]requested_data is exist [21:17:25]produce_requested_data [21:17:25]requested_item fm.sn is exist - process it [21:17:25]wFMCommunicate request_size=4 [21:17:25]MH_SAM_APDU [21:17:25]CAPDU: 80 11 00 00 [21:17:25]Write to MH i2c: E2 08 00 92 20 80 11 00 00 00 00 00 00 2C [21:17:25]Write i2c OK [21:17:25]MH_I2C_Read... [21:17:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:25]Read from MH i2c: E2 [21:17:25]MH_I2C_Read... [21:17:25]Read from MH i2c: E2 17 00 [21:17:25]MH_I2C_Read... [21:17:25]Read from MH i2c: E2 17 00 92 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 87 [21:17:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:17:25]wFMCommunicate OK [21:17:25]requested_item fd.num is exist - process it [21:17:25]SAM_PROTO_GetFieldsCounters [21:17:25]wFMCommunicate request_size=4 [21:17:25]MH_SAM_APDU [21:17:25]CAPDU: 80 13 00 00 [21:17:25]Write to MH i2c: E2 08 00 93 20 80 13 00 00 00 00 00 00 2F [21:17:25]Write i2c OK [21:17:25]MH_I2C_Read... [21:17:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:17:25]Read from MH i2c: E2 [21:17:25]MH_I2C_Read... [21:17:25]Read from MH i2c: E2 62 00 [21:17:25]MH_I2C_Read... [21:17:25]Read from MH i2c: E2 62 00 93 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 46 CF 01 00 0E 04 04 00 B1 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 42 [21:17:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 46 CF 01 00 0E 04 04 00 B1 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 [21:17:25]wFMCommunicate OK [21:17:25]SAM_PROTO_GetFieldsCounters done [21:17:25]requested_item shift.num is exist - process it [21:17:25]requested_item shift.opened is exist - process it [21:17:25]req_shift_opened [21:17:25]FM_GetShiftState [21:17:25]SAM_PROTO_GetShiftState [21:17:25]wFMCommunicate request_size=4 [21:17:25]MH_SAM_APDU [21:17:25]CAPDU: 80 13 01 00 [21:17:25]Write to MH i2c: E2 08 00 94 20 80 13 01 00 00 00 00 00 31 [21:17:25]Write i2c OK [21:17:25]MH_I2C_Read... [21:17:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:25]Read from MH i2c: E2 [21:17:25]MH_I2C_Read... [21:17:25]Read from MH i2c: E2 0E 00 [21:17:25]MH_I2C_Read... [21:17:25]Read from MH i2c: E2 0E 00 94 20 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 08 [21:17:25]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:17:25]wFMCommunicate OK [21:17:25]SAM_PROTO_GetShiftState done [21:17:25]FM_GetShiftState done [21:17:25]req_shift_opened done [21:17:25]requested_item shift.open_date is exist - process it [21:17:25]req_shift_open_date [21:17:25]req_shift_open_date done [21:17:25]produce_requested_data done [21:17:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118598,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [21:17:25]process_action_free close_receipt [21:17:25]json_value_free [21:17:25]json_value_free done [21:17:25]process_json_proto returns [21:17:25]Send response to host [21:17:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118598,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [21:17:25]free response buf [21:17:25]execute_script done [21:17:25]execute_script returns [21:17:25]free content buf [21:17:25]Sock 7.Close socket [21:17:25]Sock 7.Thread stoped [21:17:29]OFD Sender: No OFD packet to send [21:17:34]OFD Sender: No OFD packet to send [21:17:39]OFD Sender: No OFD packet to send [21:17:44]OFD Sender: No OFD packet to send [21:17:49]OFD Sender: No OFD packet to send [21:17: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:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:49]OFD Sender: No OFD packet to send [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:14]OFD Sender: No OFD packet to send [21:21:19]OFD Sender: No OFD packet to send [21:21:24]OFD Sender: No OFD packet to send [21:21:29]OFD Sender: No OFD packet to send [21:21:34]OFD Sender: No OFD packet to send [21:21:39]OFD Sender: No OFD packet to send [21:21:44]OFD Sender: No OFD packet to send [21:21:49]OFD Sender: No OFD packet to send [21:21:54]OFD Sender: No OFD packet to send [21:21:59]OFD Sender: No OFD packet to send [21:22:04]OFD Sender: No OFD packet to send [21:22:09]OFD Sender: No OFD packet to send [21:22:14]OFD Sender: No OFD packet to send [21:22:19]OFD Sender: No OFD packet to send [21:22:24]OFD Sender: No OFD packet to send [21:22:29]OFD Sender: No OFD packet to send [21:22:34]OFD Sender: No OFD packet to send [21:22:39]OFD Sender: No OFD packet to send [21:22:44]OFD Sender: No OFD packet to send [21:22:45]accept exits with 9 [21:22:45]New connection [21:22:45]New thread 3067383140 created [21:22:45]Thread 3067239780 joined [21:22:45]Waiting for new connection... [21:22:45] Sock 9.Parse request [21:22:45]Sock 9.Check first char [21:22:45]Sock 9.First char is OK [21:22:45]request: POST /json_proto HTTP/1.0 [21:22:45]Method: POST [21:22:45]URL: /json_proto [21:22:45]Method is POST - this is cgi request [21:22:45]url: /json_proto [21:22:45]query_string will be loaded in cgi processing [21:22:45]execute_cgi json_proto POST (null) [21:22:45]execute_cgi path=json_proto method=POST [21:22:45]POST find Content-Length [21:22:45]Host: 172.17.45.7:8080 [21:22:45]Content-Length: 674 [21:22:45]Content-Type: application/json [21:22:45] [21:22:45]POST finish read [21:22:45]Found Content-Length = 674 [21:22:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:45]execute_script... [21:22: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)949487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:45]POST & json_proto [21:22:45]process_json_proto [21:22:45]json parsed OK: [21:22:45]protocol is kg_v1.0 [21:22:45]action value=close_receipt [21:22:45]process_action close_receipt [21:22:45]cmd_close_receipt [21:22:45]MH_GetDate [21:22:45]Write to MH i2c: F0 00 00 95 20 A4 [21:22:45]Write i2c OK [21:22:45]MH_I2C_Read... [21:22:45]Read from MH i2c: F0 [21:22:45]MH_I2C_Read... [21:22:45]Read from MH i2c: F0 09 00 [21:22:45]MH_I2C_Read... [21:22:45]Read from MH i2c: F0 09 00 95 20 00 A7 B6 A6 66 90 0F 3E 66 59 [21:22:45]GetLastDocTimeStamp 1722201443 [21:22:45]current date 1722201767 [21:22:45]FM_GetShiftState [21:22:45]SAM_PROTO_GetShiftState [21:22:45]wFMCommunicate request_size=4 [21:22:45]MH_SAM_APDU [21:22:45]CAPDU: 80 13 01 00 [21:22:45]Write to MH i2c: E2 08 00 96 20 80 13 01 00 00 00 00 00 33 [21:22:45]Write i2c OK [21:22:45]MH_I2C_Read... [21:22:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:45]Read from MH i2c: E2 [21:22:45]MH_I2C_Read... [21:22:45]Read from MH i2c: E2 0E 00 [21:22:45]MH_I2C_Read... [21:22:45]Read from MH i2c: E2 0E 00 96 20 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 0A [21:22:45]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:22:45]wFMCommunicate OK [21:22:45]SAM_PROTO_GetShiftState done [21:22:45]FM_GetShiftState done [21:22:45]opened in 1722125364 [21:22:45]opened+sec_in_day 1722211764 [21:22:45]quantity*price = 70027 [21:22:45]sum+1 = 70029 [21:22:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 268 28.07.2024 21:22 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118599 ФПД: 231583065024109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T212247&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118599&fm=231583065024109&tin=02508201610067®Number=0000000000092660&sum=70000 [21:22:46]StoreToDocumentArchive [21:22:46]shift 433 fd 118599 [21:22:46]save to /storage/0433/doc_00118599 [21:22:46]save last doc name /storage/0433/doc_00118599 to /storage/kkm_last_doc_name [21:22:46]save OK [21:22:46]Clear old archive folders... [21:22:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:22:46]tlvbuf is 01E54180 [21:22:46]SAM_PROTO_ClearQueue [21:22:46]wFMCommunicate request_size=4 [21:22:46]MH_SAM_APDU [21:22:46]CAPDU: 80 09 00 00 [21:22:46]Write to MH i2c: E2 08 00 A3 20 80 09 00 00 00 00 00 00 35 [21:22:46]Write i2c OK [21:22:46]MH_I2C_Read... [21:22:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:22:46]Read from MH i2c: E2 [21:22:46]MH_I2C_Read... [21:22:46]Read from MH i2c: E2 03 00 [21:22:46]MH_I2C_Read... [21:22:46]Read from MH i2c: E2 03 00 A3 20 00 90 00 37 [21:22:46]RAPDU: 90 00 [21:22:46]wFMCommunicate OK [21:22:46]SAM_PROTO_ClearQueue done [21:22:46]KKMCreateOFDPacket [21:22:46]OFDProtocolAddRootSTLVToBuf [21:22:46]FM_MakeSignedData [21:22:46]FM_MakeSignedData [21:22:46]SAM_PROTO_SignData [21:22:46]wFMCommunicate request_size=4 [21:22:46]MH_SAM_APDU [21:22:46]CAPDU: 80 0D 01 02 [21:22:46]Write to MH i2c: E2 08 00 A4 20 80 0D 01 02 00 00 00 00 3D [21:22:46]Write i2c OK [21:22:46]MH_I2C_Read... [21:22:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:22:46]Read from MH i2c: E2 [21:22:46]MH_I2C_Read... [21:22:46]Read from MH i2c: E2 03 00 [21:22:46]MH_I2C_Read... [21:22:46]Read from MH i2c: E2 03 00 A4 20 00 90 00 38 [21:22:46]RAPDU: 90 00 [21:22:46]wFMCommunicate OK [21:22:46]wFMCommunicate request_size=255 [21:22:46]MH_SAM_APDU [21:22:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 A7 B6 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 47 CF 01 00 35 04 06 00 D2 9F A2 53 [21:22:46]Write to MH i2c: E2 02 01 A5 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 A7 B6 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 47 CF 01 00 35 04 06 00 D2 9F A2 53 00 00 6E [21:22:46]Write i2c OK [21:22:46]MH_I2C_Read... [21:22:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:46]Read from MH i2c: E2 [21:22:46]MH_I2C_Read... [21:22:46]Read from MH i2c: E2 03 00 [21:22:46]MH_I2C_Read... [21:22:46]Read from MH i2c: E2 03 00 A5 20 00 90 00 39 [21:22:46]RAPDU: 90 00 [21:22:46]wFMCommunicate OK [21:22:46]wFMCommunicate request_size=7 [21:22:46]MH_SAM_APDU [21:22:46]CAPDU: 80 0D 02 02 02 A6 6D [21:22:46]Write to MH i2c: E2 0A 00 A6 20 80 0D 02 02 02 00 A6 6D 00 00 57 [21:22:46]Write i2c OK [21:22:46]MH_I2C_Read... [21:22:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:46]Read from MH i2c: E2 [21:22:46]MH_I2C_Read... [21:22:46]Read from MH i2c: E2 03 00 [21:22:46]MH_I2C_Read... [21:22:46]Read from MH i2c: E2 03 00 A6 20 00 90 00 3A [21:22:46]RAPDU: 90 00 [21:22:46]wFMCommunicate OK [21:22:46]wFMCommunicate request_size=4 [21:22:46]MH_SAM_APDU [21:22:46]CAPDU: 80 0D 03 02 [21:22:46]Write to MH i2c: E2 08 00 A7 20 80 0D 03 02 00 00 00 00 42 [21:22:46]Write i2c OK [21:22:46]MH_I2C_Read... [21:22:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:22:46]Read from MH i2c: E2 [21:22:46]MH_I2C_Read... [21:22:46]Read from MH i2c: E2 0B 00 [21:22:46]MH_I2C_Read... [21:22:46]Read from MH i2c: E2 0B 00 A7 20 00 88 60 10 F0 CF 59 EC DE 90 00 1D [21:22:46]RAPDU: 88 60 10 F0 CF 59 EC DE 90 00 [21:22:46]wFMCommunicate OK [21:22:46]SAM_PROTO_SignData done [21:22:46]FM_MakeSignedData done [21:22:46]CreateOFDProtocolMessage [21:22:46]wFMCommunicate request_size=4 [21:22:46]MH_SAM_APDU [21:22:46]CAPDU: 80 11 00 00 [21:22:46]Write to MH i2c: E2 08 00 A8 20 80 11 00 00 00 00 00 00 42 [21:22:46]Write i2c OK [21:22:46]MH_I2C_Read... [21:22:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:46]Read from MH i2c: E2 [21:22:46]MH_I2C_Read... [21:22:46]Read from MH i2c: E2 17 00 [21:22:46]MH_I2C_Read... [21:22:46]Read from MH i2c: E2 17 00 A8 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9D [21:22:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:22:46]wFMCommunicate OK [21:22:46]CreateOFDProtocolMessage done [21:22:46]OFDSenderStorePacket 118599 [21:22:46]StoreOFDPacket docnum=118599 [21:22:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 CF 7C 04 01 2E AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 A7 B6 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 47 CF 01 00 35 04 06 00 D2 9F A2 53 A6 6D 88 60 10 F0 CF 59 EC DE [21:22:46]CheckFolder [21:22:46]dirname=/storage/ofd_packets [21:22:46]CheckFolder done [21:22:46]ProducePacketName [21:22:46]name=ofd_packets/00118599 [21:22:46]NVStorageSaveData ofd_packets/00118599 [21:22:46]File name is /storage/ofd_packets/00118599 [21:22:46]Write 298 bytes [21:22:46]NVStorageSaveData done [21:22:46]OFDSenderStorePacket done [21:22:46]KKMCreateOFDPacket done [21:22:46]NVStorageSaveData kkm_last_timestamp [21:22:46]File name is /storage/kkm_last_timestamp [21:22:46]Write 4 bytes [21:22:46]NVStorageSaveData done [21:22:46]ExternCall_PrintAddStr [21:22:46]wPrintStart [21:22:46]Write to MH i2c: 01 00 00 A9 20 C9 [21:22:46]Write i2c OK [21:22:46]MH_I2C_Read... [21:22:46]Read from MH i2c: 01 [21:22:46]MH_I2C_Read... [21:22:46]Read from MH i2c: 01 07 00 [21:22:46]MH_I2C_Read... [21:22:46]Read from MH i2c: 01 07 00 A9 20 00 00 00 00 00 FF 0F DE [21:22:46]RasterBufferAndPrint [21:22:46]line Счет N : (1)949487 [21:22:46]line ИНН: 02508201610067 [21:22:46]line Контрольно-Кассовый Чек [21:22:46]line ПРОДАЖА [21:22:46]line ТРК (МРК, ГНК) : 34 [21:22:46]line Товар: 2710194800 [21:22:46]line ДТ-К-5 [21:22:46]line 9.190 * 76.20 [21:22:46]line = 700.28 [21:22:46]line НДС 12% НСП 1% [21:22:46]line > о реализуемом товаре [21:22:46]line ОКРУГЛЕНИЕ: -0.28 [21:22:46]line ИТОГО: 700.00 [21:22:46]line Внесено: 700.00 [21:22:46]line СДАЧА: 0.00 [21:22:46]line НСП 1% : 6.20 [21:22:46]line НДС 12% : 74.37 [21:22:46]line Наличными: 700.00 [21:22:46]line Безнал.: 0.00 [21:22:46]line Место: АЗС № 134 "Партнер Нефть" [21:22:46]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:22:46]line СНО: Общий режим [21:22:46]line Чек 268 28.07.2024 21:22 [21:22:46]line Смена: 433 ФФД: 1.0 [21:22:46]line ЗНМ: 0300000044 [21:22:46]line РНМ: 0000000000092660 [21:22:46]line Версия ККМ: 001 [21:22:46]line ФМ: 0000000000874939 [21:22:46]line ФД: 118599 [21:22:46]line ФПД: 231583065024109 [21:22:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T212247&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118599&fm=231583065024109&tin=02508201610067®Number=0000000000092660&sum=70000 [21:22:46]written 0, free lines is 4095 [21:22:46]OFD Sender: Processing packet 118599 [packets to send 86, broken 85] [21:22:46]ProducePacketName [21:22:46]name=ofd_packets/00118599 [21:22:46]OFD Sender: To server: pG, [21:22:46]CommunicateWithHost lk.salyk.kg:30040 [21:22:46]ConnectInit lk.salyk.kg [21:22:47]Connected sock=10 [21:22: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 39 33 39 0C 01 00 00 CF 7C 04 01 2E AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 A7 B6 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 47 CF 01 00 35 04 06 00 D2 9F A2 53 A6 6D 88 60 10 F0 CF 59 EC DE [21:22:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 27 CD 47 00 CC 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 47 CF 01 00 F4 03 04 00 36 64 A6 66 B6 04 01 00 00 86 DE 28 94 6D 2F 23 22 [21:22:47]CommunicateWithHost err = 0 [21:22:47]CheckOFDResponse [21:22:47]1017 (14) - 77093643461234 [21:22:47]1041 (16) - 0000000000874939 [21:22:47]1040 (4) - 118599 [21:22:47]1012 (4) - 28.07.2024 15:31 [21:22:47]1206 (1) - 0 [21:22:47]OFD Sender: Remove packet 118599 [21:22:47]ProducePacketName [21:22:47]name=ofd_packets/00118599 [21:22:47]NVStorageDeleteData [21:22:47]Write to MH i2c: 01 00 00 D3 20 F3 [21:22:47]Write i2c OK [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: 01 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: 01 07 00 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: 01 07 00 D3 20 00 00 00 00 00 DC 0C E2 [21:22:47]RasterBufferAndPrint [21:22:47]line [21:22:47]line [21:22:47]line [21:22:47]line [21:22:47]line [21:22:47]written 0, free lines is 3298 [21:22:47]MH_Cut [21:22:47]Write to MH i2c: D1 01 00 DA 20 01 CC [21:22:47]Write i2c OK [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: D1 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: D1 01 00 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: D1 01 00 DA 20 00 CB [21:22:47]Write to MH i2c: 01 00 00 DB 20 FB [21:22:47]Write i2c OK [21:22:47]MH_I2C_Read... [21:22:47]OFD Sender: No OFD packet to send [21:22:48]*** Cut start [21:22:48]*** Partial cut [21:22:48]*** CUTSNS_PIN = 1 [21:22:48]*** CUTSNS_PIN = 0 [21:22:48]*** Brake cut motor [21:22:48]Read from MH i2c: 01 [21:22:48]MH_I2C_Read... [21:22:48]*** Stop cut motor [21:22:48]*** Cut end [21:22:48]Read from MH i2c: 01 07 00 [21:22:48]MH_I2C_Read... [21:22:48]Read from MH i2c: 01 07 00 DB 20 00 00 00 00 00 FF 0F 10 [21:22:48]process_action close_receipt done [21:22:48]requested_data is exist [21:22:48]produce_requested_data [21:22:48]requested_item fm.sn is exist - process it [21:22:48]wFMCommunicate request_size=4 [21:22:48]MH_SAM_APDU [21:22:48]CAPDU: 80 11 00 00 [21:22:48]Write to MH i2c: E2 08 00 DC 20 80 11 00 00 00 00 00 00 76 [21:22:48]Write i2c OK [21:22:48]MH_I2C_Read... [21:22:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:48]Read from MH i2c: E2 [21:22:48]MH_I2C_Read... [21:22:48]Read from MH i2c: E2 17 00 [21:22:48]MH_I2C_Read... [21:22:48]Read from MH i2c: E2 17 00 DC 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D1 [21:22:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:22:48]wFMCommunicate OK [21:22:48]requested_item fd.num is exist - process it [21:22:48]SAM_PROTO_GetFieldsCounters [21:22:48]wFMCommunicate request_size=4 [21:22:48]MH_SAM_APDU [21:22:48]CAPDU: 80 13 00 00 [21:22:48]Write to MH i2c: E2 08 00 DD 20 80 13 00 00 00 00 00 00 79 [21:22:48]Write i2c OK [21:22:48]MH_I2C_Read... [21:22:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:22:48]Read from MH i2c: E2 [21:22:48]MH_I2C_Read... [21:22:48]Read from MH i2c: E2 62 00 [21:22:48]MH_I2C_Read... [21:22:48]Read from MH i2c: E2 62 00 DD 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 47 CF 01 00 0E 04 04 00 B1 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 90 [21:22:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 47 CF 01 00 0E 04 04 00 B1 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 [21:22:48]wFMCommunicate OK [21:22:48]SAM_PROTO_GetFieldsCounters done [21:22:48]requested_item shift.num is exist - process it [21:22:48]requested_item shift.opened is exist - process it [21:22:48]req_shift_opened [21:22:48]FM_GetShiftState [21:22:48]SAM_PROTO_GetShiftState [21:22:48]wFMCommunicate request_size=4 [21:22:48]MH_SAM_APDU [21:22:48]CAPDU: 80 13 01 00 [21:22:48]Write to MH i2c: E2 08 00 DE 20 80 13 01 00 00 00 00 00 7B [21:22:48]Write i2c OK [21:22:48]MH_I2C_Read... [21:22:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:48]Read from MH i2c: E2 [21:22:48]MH_I2C_Read... [21:22:48]Read from MH i2c: E2 0E 00 [21:22:48]MH_I2C_Read... [21:22:48]Read from MH i2c: E2 0E 00 DE 20 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 52 [21:22:48]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:22:48]wFMCommunicate OK [21:22:48]SAM_PROTO_GetShiftState done [21:22:48]FM_GetShiftState done [21:22:48]req_shift_opened done [21:22:48]requested_item shift.open_date is exist - process it [21:22:48]req_shift_open_date [21:22:48]req_shift_open_date done [21:22:48]produce_requested_data done [21:22:48]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118599,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [21:22:48]process_action_free close_receipt [21:22:48]json_value_free [21:22:48]json_value_free done [21:22:48]process_json_proto returns [21:22:48]Send response to host [21:22:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118599,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [21:22:48]free response buf [21:22:48]execute_script done [21:22:48]execute_script returns [21:22:48]free content buf [21:22:48]Sock 9.Close socket [21:22:48]Sock 9.Thread stoped [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]accept exits with 7 [21:24:42]New connection [21:24:42]New thread 3067239780 created [21:24:42]Thread 3067383140 joined [21:24:42]Waiting for new connection... [21:24:42] Sock 7.Parse request [21:24:42]Sock 7.Check first char [21:24:42]Sock 7.First char is OK [21:24:42]request: POST /json_proto HTTP/1.0 [21:24:42]Method: POST [21:24:42]URL: /json_proto [21:24:42]Method is POST - this is cgi request [21:24:42]url: /json_proto [21:24:42]query_string will be loaded in cgi processing [21:24:42]execute_cgi json_proto POST (null) [21:24:42]execute_cgi path=json_proto method=POST [21:24:42]POST find Content-Length [21:24:42]Host: 172.17.45.7:8080 [21:24:42]Content-Length: 677 [21:24:42]Content-Type: application/json [21:24:42] [21:24:42]POST finish read [21:24:42]Found Content-Length = 677 [21:24:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [21:24:42]execute_script... [21:24: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)949488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [21:24:42]POST & json_proto [21:24:42]process_json_proto [21:24:42]json parsed OK: [21:24:42]protocol is kg_v1.0 [21:24:42]action value=close_receipt [21:24:42]process_action close_receipt [21:24:42]cmd_close_receipt [21:24:42]MH_GetDate [21:24:42]Write to MH i2c: F0 00 00 DF 20 EE [21:24:42]Write i2c OK [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: F0 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: F0 09 00 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: F0 09 00 DF 20 00 1C B7 A6 66 90 0F 3E 66 19 [21:24:42]GetLastDocTimeStamp 1722201767 [21:24:42]current date 1722201884 [21:24:42]FM_GetShiftState [21:24:42]SAM_PROTO_GetShiftState [21:24:42]wFMCommunicate request_size=4 [21:24:42]MH_SAM_APDU [21:24:42]CAPDU: 80 13 01 00 [21:24:42]Write to MH i2c: E2 08 00 E0 20 80 13 01 00 00 00 00 00 7D [21:24:42]Write i2c OK [21:24:42]MH_I2C_Read... [21:24:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:42]Read from MH i2c: E2 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 0E 00 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 0E 00 E0 20 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 54 [21:24:42]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:24:42]wFMCommunicate OK [21:24:42]SAM_PROTO_GetShiftState done [21:24:42]FM_GetShiftState done [21:24:42]opened in 1722125364 [21:24:42]opened+sec_in_day 1722211764 [21:24:42]quantity*price = 30035 [21:24:42]sum+1 = 30036 [21:24:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 269 28.07.2024 21:24 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118600 ФПД: 247160127155665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T212444&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118600&fm=247160127155665&tin=02508201610067®Number=0000000000092660&sum=30000 [21:24:43]StoreToDocumentArchive [21:24:43]shift 433 fd 118600 [21:24:43]save to /storage/0433/doc_00118600 [21:24:43]save last doc name /storage/0433/doc_00118600 to /storage/kkm_last_doc_name [21:24:43]save OK [21:24:43]Clear old archive folders... [21:24:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:24:43]tlvbuf is 01E8A300 [21:24:43]SAM_PROTO_ClearQueue [21:24:43]wFMCommunicate request_size=4 [21:24:43]MH_SAM_APDU [21:24:43]CAPDU: 80 09 00 00 [21:24:43]Write to MH i2c: E2 08 00 ED 20 80 09 00 00 00 00 00 00 7F [21:24:43]Write i2c OK [21:24:43]MH_I2C_Read... [21:24:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:24:43]Read from MH i2c: E2 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 03 00 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 03 00 ED 20 00 90 00 81 [21:24:43]RAPDU: 90 00 [21:24:43]wFMCommunicate OK [21:24:43]SAM_PROTO_ClearQueue done [21:24:43]KKMCreateOFDPacket [21:24:43]OFDProtocolAddRootSTLVToBuf [21:24:43]FM_MakeSignedData [21:24:43]FM_MakeSignedData [21:24:43]SAM_PROTO_SignData [21:24:43]wFMCommunicate request_size=4 [21:24:43]MH_SAM_APDU [21:24:43]CAPDU: 80 0D 01 02 [21:24:43]Write to MH i2c: E2 08 00 EE 20 80 0D 01 02 00 00 00 00 87 [21:24:43]Write i2c OK [21:24:43]MH_I2C_Read... [21:24:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:24:43]Read from MH i2c: E2 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 03 00 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 03 00 EE 20 00 90 00 82 [21:24:43]RAPDU: 90 00 [21:24:43]wFMCommunicate OK [21:24:43]wFMCommunicate request_size=255 [21:24:43]MH_SAM_APDU [21:24: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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 1C B7 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 CF 01 00 35 04 06 00 E0 [21:24:43]Write to MH i2c: E2 02 01 EF 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 1C B7 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 CF 01 00 35 04 06 00 E0 00 00 C1 [21:24:43]Write i2c OK [21:24:43]MH_I2C_Read... [21:24:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:43]Read from MH i2c: E2 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 03 00 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 03 00 EF 20 00 90 00 83 [21:24:43]RAPDU: 90 00 [21:24:43]wFMCommunicate OK [21:24:43]wFMCommunicate request_size=10 [21:24:43]MH_SAM_APDU [21:24:43]CAPDU: 80 0D 02 02 05 CA 73 94 ED D1 [21:24:43]Write to MH i2c: E2 0D 00 F0 20 80 0D 02 02 05 00 CA 73 94 ED D1 00 00 23 [21:24:43]Write i2c OK [21:24:43]MH_I2C_Read... [21:24:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:43]Read from MH i2c: E2 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 03 00 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 03 00 F0 20 00 90 00 84 [21:24:43]RAPDU: 90 00 [21:24:43]wFMCommunicate OK [21:24:43]wFMCommunicate request_size=4 [21:24:43]MH_SAM_APDU [21:24:43]CAPDU: 80 0D 03 02 [21:24:43]Write to MH i2c: E2 08 00 F1 20 80 0D 03 02 00 00 00 00 8C [21:24:43]Write i2c OK [21:24:43]MH_I2C_Read... [21:24:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:24:43]Read from MH i2c: E2 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 0B 00 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 0B 00 F1 20 00 00 D3 E0 25 82 31 67 C9 90 00 48 [21:24:43]RAPDU: 00 D3 E0 25 82 31 67 C9 90 00 [21:24:43]wFMCommunicate OK [21:24:43]SAM_PROTO_SignData done [21:24:43]FM_MakeSignedData done [21:24:43]CreateOFDProtocolMessage [21:24:43]wFMCommunicate request_size=4 [21:24:43]MH_SAM_APDU [21:24:43]CAPDU: 80 11 00 00 [21:24:43]Write to MH i2c: E2 08 00 F2 20 80 11 00 00 00 00 00 00 8C [21:24:43]Write i2c OK [21:24:43]MH_I2C_Read... [21:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:43]Read from MH i2c: E2 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 17 00 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 17 00 F2 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E7 [21:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:24:43]wFMCommunicate OK [21:24:43]CreateOFDProtocolMessage done [21:24:43]OFDSenderStorePacket 118600 [21:24:43]StoreOFDPacket docnum=118600 [21:24:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 89 99 07 01 3F 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 1C B7 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 CF 01 00 35 04 06 00 E0 CA 73 94 ED D1 00 D3 E0 25 82 31 67 C9 [21:24:43]CheckFolder [21:24:43]dirname=/storage/ofd_packets [21:24:43]CheckFolder done [21:24:43]ProducePacketName [21:24:43]name=ofd_packets/00118600 [21:24:43]NVStorageSaveData ofd_packets/00118600 [21:24:43]File name is /storage/ofd_packets/00118600 [21:24:43]Write 301 bytes [21:24:43]NVStorageSaveData done [21:24:43]OFDSenderStorePacket done [21:24:43]KKMCreateOFDPacket done [21:24:43]NVStorageSaveData kkm_last_timestamp [21:24:43]File name is /storage/kkm_last_timestamp [21:24:43]Write 4 bytes [21:24:43]NVStorageSaveData done [21:24:43]ExternCall_PrintAddStr [21:24:43]wPrintStart [21:24:43]Write to MH i2c: 01 00 00 F3 20 13 [21:24:43]Write i2c OK [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: 01 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: 01 07 00 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: 01 07 00 F3 20 00 00 00 00 00 FF 0F 28 [21:24:43]RasterBufferAndPrint [21:24:43]line Счет N : (1)949488 [21:24:43]line ИНН: 02508201610067 [21:24:43]line Контрольно-Кассовый Чек [21:24:43]line ПРОДАЖА [21:24:43]line ТРК (МРК, ГНК) : 51 [21:24:43]line Товар: 2710124130 [21:24:43]line Аи-92-К-4 [21:24:43]line 4.430 * 67.80 [21:24:43]line = 300.35 [21:24:43]line НДС 12% НСП 1% [21:24:43]line > о реализуемом товаре [21:24:43]line ОКРУГЛЕНИЕ: -0.35 [21:24:43]line ИТОГО: 300.00 [21:24:43]line Внесено: 300.00 [21:24:43]line СДАЧА: 0.00 [21:24:43]line НСП 1% : 2.66 [21:24:43]line НДС 12% : 31.90 [21:24:43]line Наличными: 300.00 [21:24:43]line Безнал.: 0.00 [21:24:43]line Место: АЗС № 134 "Партнер Нефть" [21:24:43]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:24:43]line СНО: Общий режим [21:24:43]line Чек 269 28.07.2024 21:24 [21:24:43]line Смена: 433 ФФД: 1.0 [21:24:43]line ЗНМ: 0300000044 [21:24:43]line РНМ: 0000000000092660 [21:24:43]line Версия ККМ: 001 [21:24:43]line ФМ: 0000000000874939 [21:24:43]line ФД: 118600 [21:24:43]line ФПД: 247160127155665 [21:24:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T212444&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118600&fm=247160127155665&tin=02508201610067®Number=0000000000092660&sum=30000 [21:24:44]OFD Sender: Processing packet 118600 [packets to send 86, broken 85] [21:24:44]ProducePacketName [21:24:44]name=ofd_packets/00118600 [21:24:44]OFD Sender: To server: pG, [21:24:44]CommunicateWithHost lk.salyk.kg:30040 [21:24:44]ConnectInit lk.salyk.kg [21:24:44]written 0, free lines is 4095 [21:24:44]Connected sock=10 [21:24:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 89 99 07 01 3F 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 1C B7 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 CF 01 00 35 04 06 00 E0 CA 73 94 ED D1 00 D3 E0 25 82 31 67 C9 [21:24:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A7 B7 47 00 C9 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 39 33 39 10 04 04 00 48 CF 01 00 F4 03 04 00 AB 64 A6 66 B6 04 01 00 00 70 08 B0 BA 1B 07 DB 2F [21:24:44]CommunicateWithHost err = 0 [21:24:44]CheckOFDResponse [21:24:44]1017 (14) - 77093643461234 [21:24:44]1041 (16) - 0000000000874939 [21:24:44]1040 (4) - 118600 [21:24:44]1012 (4) - 28.07.2024 15:32 [21:24:44]1206 (1) - 0 [21:24:44]OFD Sender: Remove packet 118600 [21:24:44]ProducePacketName [21:24:44]name=ofd_packets/00118600 [21:24:44]NVStorageDeleteData [21:24:44]Write to MH i2c: 01 00 00 1D 21 3E [21:24:44]Write i2c OK [21:24:44]MH_I2C_Read... [21:24:44]Read from MH i2c: 01 [21:24:44]MH_I2C_Read... [21:24:44]Read from MH i2c: 01 07 00 [21:24:44]MH_I2C_Read... [21:24:44]Read from MH i2c: 01 07 00 1D 21 00 00 00 00 00 D5 0C 26 [21:24:44]RasterBufferAndPrint [21:24:44]line [21:24:44]line [21:24:44]line [21:24:44]line [21:24:44]line [21:24:44]written 0, free lines is 3289 [21:24:44]MH_Cut [21:24:44]Write to MH i2c: D1 01 00 24 21 01 17 [21:24:44]Write i2c OK [21:24:44]MH_I2C_Read... [21:24:44]Read from MH i2c: D1 [21:24:44]MH_I2C_Read... [21:24:44]Read from MH i2c: D1 01 00 [21:24:44]MH_I2C_Read... [21:24:44]Read from MH i2c: D1 01 00 24 21 00 16 [21:24:44]Write to MH i2c: 01 00 00 25 21 46 [21:24:44]Write i2c OK [21:24:44]MH_I2C_Read... [21:24:44]OFD Sender: No OFD packet to send [21:24:45]*** Cut start [21:24:45]*** Partial cut [21:24:45]*** CUTSNS_PIN = 1 [21:24:45]*** CUTSNS_PIN = 0 [21:24:45]*** Brake cut motor [21:24:45]Read from MH i2c: 01 [21:24:45]MH_I2C_Read... [21:24:45]*** Stop cut motor [21:24:45]*** Cut end [21:24:45]Read from MH i2c: 01 07 00 [21:24:45]MH_I2C_Read... [21:24:45]Read from MH i2c: 01 07 00 25 21 00 00 00 00 00 FF 0F 5B [21:24:45]process_action close_receipt done [21:24:45]requested_data is exist [21:24:45]produce_requested_data [21:24:45]requested_item fm.sn is exist - process it [21:24:45]wFMCommunicate request_size=4 [21:24:45]MH_SAM_APDU [21:24:45]CAPDU: 80 11 00 00 [21:24:45]Write to MH i2c: E2 08 00 26 21 80 11 00 00 00 00 00 00 C1 [21:24:45]Write i2c OK [21:24:45]MH_I2C_Read... [21:24:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:45]Read from MH i2c: E2 [21:24:45]MH_I2C_Read... [21:24:45]Read from MH i2c: E2 17 00 [21:24:45]MH_I2C_Read... [21:24:45]Read from MH i2c: E2 17 00 26 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1C [21:24:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:24:45]wFMCommunicate OK [21:24:45]requested_item fd.num is exist - process it [21:24:45]SAM_PROTO_GetFieldsCounters [21:24:45]wFMCommunicate request_size=4 [21:24:45]MH_SAM_APDU [21:24:45]CAPDU: 80 13 00 00 [21:24:45]Write to MH i2c: E2 08 00 27 21 80 13 00 00 00 00 00 00 C4 [21:24:46]Write i2c OK [21:24:46]MH_I2C_Read... [21:24:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:24:46]Read from MH i2c: E2 [21:24:46]MH_I2C_Read... [21:24:46]Read from MH i2c: E2 62 00 [21:24:46]MH_I2C_Read... [21:24:46]Read from MH i2c: E2 62 00 27 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 48 CF 01 00 0E 04 04 00 B1 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 DF [21:24:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 48 CF 01 00 0E 04 04 00 B1 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 [21:24:46]wFMCommunicate OK [21:24:46]SAM_PROTO_GetFieldsCounters done [21:24:46]requested_item shift.num is exist - process it [21:24:46]requested_item shift.opened is exist - process it [21:24:46]req_shift_opened [21:24:46]FM_GetShiftState [21:24:46]SAM_PROTO_GetShiftState [21:24:46]wFMCommunicate request_size=4 [21:24:46]MH_SAM_APDU [21:24:46]CAPDU: 80 13 01 00 [21:24:46]Write to MH i2c: E2 08 00 28 21 80 13 01 00 00 00 00 00 C6 [21:24:46]Write i2c OK [21:24:46]MH_I2C_Read... [21:24:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:46]Read from MH i2c: E2 [21:24:46]MH_I2C_Read... [21:24:46]Read from MH i2c: E2 0E 00 [21:24:46]MH_I2C_Read... [21:24:46]Read from MH i2c: E2 0E 00 28 21 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 9D [21:24:46]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:24:46]wFMCommunicate OK [21:24:46]SAM_PROTO_GetShiftState done [21:24:46]FM_GetShiftState done [21:24:46]req_shift_opened done [21:24:46]requested_item shift.open_date is exist - process it [21:24:46]req_shift_open_date [21:24:46]req_shift_open_date done [21:24:46]produce_requested_data done [21:24:46]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118600,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [21:24:46]process_action_free close_receipt [21:24:46]json_value_free [21:24:46]json_value_free done [21:24:46]process_json_proto returns [21:24:46]Send response to host [21:24:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118600,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [21:24:46]free response buf [21:24:46]execute_script done [21:24:46]execute_script returns [21:24:46]free content buf [21:24:46]Sock 7.Close socket [21:24:46]Sock 7.Thread stoped [21:24:49]OFD Sender: No OFD packet to send [21:24:54]OFD Sender: No OFD packet to send [21:24:59]OFD Sender: No OFD packet to send [21:25:04]OFD Sender: No OFD packet to send [21:25:09]OFD Sender: No OFD packet to send [21:25:14]OFD Sender: No OFD packet to send [21:25:19]OFD Sender: No OFD packet to send [21:25:24]OFD Sender: No OFD packet to send [21:25:29]OFD Sender: No OFD packet to send [21:25:34]OFD Sender: No OFD packet to send [21:25:39]OFD Sender: No OFD packet to send [21:25:44]OFD Sender: No OFD packet to send [21:25:49]OFD Sender: No OFD packet to send [21:25:55]OFD Sender: No OFD packet to send [21:26:00]OFD Sender: No OFD packet to send [21:26:05]OFD Sender: No OFD packet to send [21:26:10]OFD Sender: No OFD packet to send [21:26:15]OFD Sender: No OFD packet to send [21:26:20]OFD Sender: No OFD packet to send [21:26:25]OFD Sender: No OFD packet to send [21:26:30]OFD Sender: No OFD packet to send [21:26:35]OFD Sender: No OFD packet to send [21:26:40]OFD Sender: No OFD packet to send [21:26:45]OFD Sender: No OFD packet to send [21:26:50]OFD Sender: No OFD packet to send [21:26:55]OFD Sender: No OFD packet to send [21:27:00]OFD Sender: No OFD packet to send [21:27:05]OFD Sender: No OFD packet to send [21:27:10]OFD Sender: No OFD packet to send [21:27:15]OFD Sender: No OFD packet to send [21:27:20]OFD Sender: No OFD packet to send [21:27:25]OFD Sender: No OFD packet to send [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:05]OFD Sender: No OFD packet to send [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:40]OFD Sender: No OFD packet to send [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:24]accept exits with 9 [21:41:24]New connection [21:41:24]New thread 3067383140 created [21:41:24]Thread 3067239780 joined [21:41:24]Waiting for new connection... [21:41:24] Sock 9.Parse request [21:41:24]Sock 9.Check first char [21:41:24]Sock 9.First char is OK [21:41:24]request: POST /json_proto HTTP/1.0 [21:41:24]Method: POST [21:41:24]URL: /json_proto [21:41:24]Method is POST - this is cgi request [21:41:24]url: /json_proto [21:41:24]query_string will be loaded in cgi processing [21:41:24]execute_cgi json_proto POST (null) [21:41:24]execute_cgi path=json_proto method=POST [21:41:24]POST find Content-Length [21:41:24]Host: 172.17.45.7:8080 [21:41:24]Content-Length: 822 [21:41:24]Content-Type: application/json [21:41:24] [21:41:24]POST finish read [21:41:24]Found Content-Length = 822 [21:41:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:24]execute_script... [21:41: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)949489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:24]POST & json_proto [21:41:24]process_json_proto [21:41:24]json parsed OK: [21:41:24]protocol is kg_v1.0 [21:41:24]action value=close_receipt [21:41:24]process_action close_receipt [21:41:24]cmd_close_receipt [21:41:24]MH_GetDate [21:41:24]Write to MH i2c: F0 00 00 29 21 39 [21:41:24]Write i2c OK [21:41:24]MH_I2C_Read... [21:41:24]Read from MH i2c: F0 [21:41:24]MH_I2C_Read... [21:41:24]Read from MH i2c: F0 09 00 [21:41:24]MH_I2C_Read... [21:41:24]Read from MH i2c: F0 09 00 29 21 00 07 BB A6 66 90 0F 3E 66 53 [21:41:24]GetLastDocTimeStamp 1722201884 [21:41:24]current date 1722202887 [21:41:24]FM_GetShiftState [21:41:24]SAM_PROTO_GetShiftState [21:41:24]wFMCommunicate request_size=4 [21:41:24]MH_SAM_APDU [21:41:24]CAPDU: 80 13 01 00 [21:41:24]Write to MH i2c: E2 08 00 2A 21 80 13 01 00 00 00 00 00 C8 [21:41:24]Write i2c OK [21:41:24]MH_I2C_Read... [21:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:24]Read from MH i2c: E2 [21:41:24]MH_I2C_Read... [21:41:24]Read from MH i2c: E2 0E 00 [21:41:24]MH_I2C_Read... [21:41:24]Read from MH i2c: E2 0E 00 2A 21 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 9F [21:41:24]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:41:24]wFMCommunicate OK [21:41:24]SAM_PROTO_GetShiftState done [21:41:24]FM_GetShiftState done [21:41:24]opened in 1722125364 [21:41:24]opened+sec_in_day 1722211764 [21:41:24]quantity*price = 300064 [21:41:24]sum+1 = 300066 [21:41:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 0.00 Безнал.: 3000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 270 28.07.2024 21:41 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118601 ФПД: 56292370531935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T214127&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118601&fm=56292370531935&tin=02508201610067®Number=0000000000092660&sum=300000 [21:41:25]StoreToDocumentArchive [21:41:25]shift 433 fd 118601 [21:41:25]save to /storage/0433/doc_00118601 [21:41:25]save last doc name /storage/0433/doc_00118601 to /storage/kkm_last_doc_name [21:41:25]save OK [21:41:25]Clear old archive folders... [21:41:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:41:25]tlvbuf is B6F11090 [21:41:25]SAM_PROTO_ClearQueue [21:41:25]wFMCommunicate request_size=4 [21:41:25]MH_SAM_APDU [21:41:25]CAPDU: 80 09 00 00 [21:41:25]Write to MH i2c: E2 08 00 37 21 80 09 00 00 00 00 00 00 CA [21:41:25]Write i2c OK [21:41:25]MH_I2C_Read... [21:41:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:41:25]OFD Sender: No OFD packet to send [21:41:25]Read from MH i2c: E2 [21:41:25]MH_I2C_Read... [21:41:25]Read from MH i2c: E2 03 00 [21:41:25]MH_I2C_Read... [21:41:25]Read from MH i2c: E2 03 00 37 21 00 90 00 CC [21:41:25]RAPDU: 90 00 [21:41:25]wFMCommunicate OK [21:41:25]SAM_PROTO_ClearQueue done [21:41:25]KKMCreateOFDPacket [21:41:25]OFDProtocolAddRootSTLVToBuf [21:41:25]FM_MakeSignedData [21:41:25]FM_MakeSignedData [21:41:25]SAM_PROTO_SignData [21:41:25]wFMCommunicate request_size=4 [21:41:25]MH_SAM_APDU [21:41:25]CAPDU: 80 0D 01 02 [21:41:25]Write to MH i2c: E2 08 00 38 21 80 0D 01 02 00 00 00 00 D2 [21:41:25]Write i2c OK [21:41:25]MH_I2C_Read... [21:41:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:41:26]Read from MH i2c: E2 [21:41:26]MH_I2C_Read... [21:41:26]Read from MH i2c: E2 03 00 [21:41:26]MH_I2C_Read... [21:41:26]Read from MH i2c: E2 03 00 38 21 00 90 00 CD [21:41:26]RAPDU: 90 00 [21:41:26]wFMCommunicate OK [21:41:26]wFMCommunicate request_size=255 [21:41:26]MH_SAM_APDU [21:41:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 07 BB A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 49 CF 01 00 35 04 06 00 33 [21:41:26]Write to MH i2c: E2 02 01 39 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 07 BB A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 49 CF 01 00 35 04 06 00 33 00 00 71 [21:41:26]Write i2c OK [21:41:26]MH_I2C_Read... [21:41:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:26]Read from MH i2c: E2 [21:41:26]MH_I2C_Read... [21:41:26]Read from MH i2c: E2 03 00 [21:41:26]MH_I2C_Read... [21:41:26]Read from MH i2c: E2 03 00 39 21 00 90 00 CE [21:41:26]RAPDU: 90 00 [21:41:26]wFMCommunicate OK [21:41:26]wFMCommunicate request_size=10 [21:41:26]MH_SAM_APDU [21:41:26]CAPDU: 80 0D 02 02 05 32 96 BF C6 5F [21:41:26]Write to MH i2c: E2 0D 00 3A 21 80 0D 02 02 05 00 32 96 BF C6 5F 00 00 8B [21:41:26]Write i2c OK [21:41:26]MH_I2C_Read... [21:41:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:26]Read from MH i2c: E2 [21:41:26]MH_I2C_Read... [21:41:26]Read from MH i2c: E2 03 00 [21:41:26]MH_I2C_Read... [21:41:26]Read from MH i2c: E2 03 00 3A 21 00 90 00 CF [21:41:26]RAPDU: 90 00 [21:41:26]wFMCommunicate OK [21:41:26]wFMCommunicate request_size=4 [21:41:26]MH_SAM_APDU [21:41:26]CAPDU: 80 0D 03 02 [21:41:26]Write to MH i2c: E2 08 00 3B 21 80 0D 03 02 00 00 00 00 D7 [21:41:26]Write i2c OK [21:41:26]MH_I2C_Read... [21:41:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:41:26]Read from MH i2c: E2 [21:41:26]MH_I2C_Read... [21:41:26]Read from MH i2c: E2 0B 00 [21:41:26]MH_I2C_Read... [21:41:26]Read from MH i2c: E2 0B 00 3B 21 00 1B B9 89 57 D3 71 0C 87 90 00 63 [21:41:26]RAPDU: 1B B9 89 57 D3 71 0C 87 90 00 [21:41:26]wFMCommunicate OK [21:41:26]SAM_PROTO_SignData done [21:41:26]FM_MakeSignedData done [21:41:26]CreateOFDProtocolMessage [21:41:26]wFMCommunicate request_size=4 [21:41:26]MH_SAM_APDU [21:41:26]CAPDU: 80 11 00 00 [21:41:26]Write to MH i2c: E2 08 00 3C 21 80 11 00 00 00 00 00 00 D7 [21:41:26]Write i2c OK [21:41:26]MH_I2C_Read... [21:41:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:26]Read from MH i2c: E2 [21:41:26]MH_I2C_Read... [21:41:26]Read from MH i2c: E2 17 00 [21:41:26]MH_I2C_Read... [21:41:26]Read from MH i2c: E2 17 00 3C 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 32 [21:41:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:41:26]wFMCommunicate OK [21:41:26]CreateOFDProtocolMessage done [21:41:26]OFDSenderStorePacket 118601 [21:41:26]StoreOFDPacket docnum=118601 [21:41:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 13 CA 07 01 20 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 07 BB A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 49 CF 01 00 35 04 06 00 33 32 96 BF C6 5F 1B B9 89 57 D3 71 0C 87 [21:41:26]CheckFolder [21:41:26]dirname=/storage/ofd_packets [21:41:26]CheckFolder done [21:41:26]ProducePacketName [21:41:26]name=ofd_packets/00118601 [21:41:26]NVStorageSaveData ofd_packets/00118601 [21:41:26]File name is /storage/ofd_packets/00118601 [21:41:26]Write 301 bytes [21:41:26]NVStorageSaveData done [21:41:26]OFDSenderStorePacket done [21:41:26]KKMCreateOFDPacket done [21:41:26]NVStorageSaveData kkm_last_timestamp [21:41:26]File name is /storage/kkm_last_timestamp [21:41:26]Write 4 bytes [21:41:26]NVStorageSaveData done [21:41:26]ExternCall_PrintAddStr [21:41:26]wPrintStart [21:41:26]Write to MH i2c: 01 00 00 3D 21 5E [21:41:26]Write i2c OK [21:41:26]MH_I2C_Read... [21:41:26]Read from MH i2c: 01 [21:41:26]MH_I2C_Read... [21:41:26]Read from MH i2c: 01 07 00 [21:41:26]MH_I2C_Read... [21:41:26]Read from MH i2c: 01 07 00 3D 21 00 00 00 00 00 FF 0F 73 [21:41:26]RasterBufferAndPrint [21:41:26]line Счет N : (1)949489 [21:41:26]line ИНН: 02508201610067 [21:41:26]line Контрольно-Кассовый Чек [21:41:26]line ПРОДАЖА [21:41:26]line ТРК (МРК, ГНК) : 33 [21:41:26]line Товар: 2710124500 [21:41:26]line Аи-95-К-3 [21:41:26]line 40.440 * 74.20 [21:41:26]line = 3000.65 [21:41:26]line НДС 12% НСП 1% [21:41:26]line > о реализуемом товаре [21:41:26]line ОКРУГЛЕНИЕ: -0.65 [21:41:26]line ИТОГО: 3000.00 [21:41:26]line НСП 1% : 26.55 [21:41:26]line НДС 12% : 318.65 [21:41:26]line Наличными: 0.00 [21:41:26]line Безнал.: 3000.00 [21:41:26]line Место: АЗС № 134 "Партнер Нефть" [21:41:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:41:26]line СНО: Общий режим [21:41:26]line Чек 270 28.07.2024 21:41 [21:41:26]line Смена: 433 ФФД: 1.0 [21:41:26]line ЗНМ: 0300000044 [21:41:26]line РНМ: 0000000000092660 [21:41:26]line Версия ККМ: 001 [21:41:26]line Платежная система: O! деньги [21:41:26]line ФМ: 0000000000874939 [21:41:26]line ФД: 118601 [21:41:26]line ФПД: 56292370531935 [21:41:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T214127&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118601&fm=56292370531935&tin=02508201610067®Number=0000000000092660&sum=300000 [21:41:26]OFD Sender: Processing packet 118601 [packets to send 86, broken 85] [21:41:26]ProducePacketName [21:41:26]name=ofd_packets/00118601 [21:41:26]OFD Sender: To server: pG, [21:41:26]CommunicateWithHost lk.salyk.kg:30040 [21:41:26]ConnectInit lk.salyk.kg [21:41:26]written 0, free lines is 4095 [21:41:26]Connected sock=11 [21:41: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 39 33 39 0F 01 00 00 13 CA 07 01 20 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 07 BB A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 49 CF 01 00 35 04 06 00 33 32 96 BF C6 5F 1B B9 89 57 D3 71 0C 87 [21:41:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D6 0F 47 00 DB 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 39 33 39 10 04 04 00 49 CF 01 00 F4 03 04 00 96 68 A6 66 B6 04 01 00 00 17 17 B9 24 8F 78 32 C6 [21:41:27]CommunicateWithHost err = 0 [21:41:27]CheckOFDResponse [21:41:27]1017 (14) - 77093643461234 [21:41:27]1041 (16) - 0000000000874939 [21:41:27]1040 (4) - 118601 [21:41:27]1012 (4) - 28.07.2024 15:49 [21:41:27]1206 (1) - 0 [21:41:27]OFD Sender: Remove packet 118601 [21:41:27]ProducePacketName [21:41:27]name=ofd_packets/00118601 [21:41:27]NVStorageDeleteData [21:41:27]Write to MH i2c: 01 00 00 67 21 88 [21:41:27]Write i2c OK [21:41:27]MH_I2C_Read... [21:41:27]Read from MH i2c: 01 [21:41:27]MH_I2C_Read... [21:41:27]Read from MH i2c: 01 07 00 [21:41:27]MH_I2C_Read... [21:41:27]Read from MH i2c: 01 07 00 67 21 00 00 00 00 00 D7 0C 72 [21:41:27]RasterBufferAndPrint [21:41:27]line [21:41:27]line [21:41:27]line [21:41:27]line [21:41:27]line [21:41:27]written 0, free lines is 3292 [21:41:27]MH_Cut [21:41:27]Write to MH i2c: D1 01 00 6E 21 01 61 [21:41:27]Write i2c OK [21:41:27]MH_I2C_Read... [21:41:27]Read from MH i2c: D1 [21:41:27]MH_I2C_Read... [21:41:27]Read from MH i2c: D1 01 00 [21:41:27]MH_I2C_Read... [21:41:27]Read from MH i2c: D1 01 00 6E 21 00 60 [21:41:27]Write to MH i2c: 01 00 00 6F 21 90 [21:41:27]Write i2c OK [21:41:27]MH_I2C_Read... [21:41:27]OFD Sender: No OFD packet to send [21:41:28]*** Cut start [21:41:28]*** Partial cut [21:41:28]*** CUTSNS_PIN = 1 [21:41:28]*** CUTSNS_PIN = 0 [21:41:28]*** Brake cut motor [21:41:28]Read from MH i2c: 01 [21:41:28]MH_I2C_Read... [21:41:28]*** Stop cut motor [21:41:28]*** Cut end [21:41:28]Read from MH i2c: 01 07 00 [21:41:28]MH_I2C_Read... [21:41:28]Read from MH i2c: 01 07 00 6F 21 00 00 00 00 00 FF 0F A5 [21:41:28]process_action close_receipt done [21:41:28]requested_data is exist [21:41:28]produce_requested_data [21:41:28]requested_item fm.sn is exist - process it [21:41:28]wFMCommunicate request_size=4 [21:41:28]MH_SAM_APDU [21:41:28]CAPDU: 80 11 00 00 [21:41:28]Write to MH i2c: E2 08 00 70 21 80 11 00 00 00 00 00 00 0B [21:41:28]Write i2c OK [21:41:28]MH_I2C_Read... [21:41:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:28]Read from MH i2c: E2 [21:41:28]MH_I2C_Read... [21:41:28]Read from MH i2c: E2 17 00 [21:41:28]MH_I2C_Read... [21:41:28]Read from MH i2c: E2 17 00 70 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 66 [21:41:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:41:28]wFMCommunicate OK [21:41:28]requested_item fd.num is exist - process it [21:41:28]SAM_PROTO_GetFieldsCounters [21:41:28]wFMCommunicate request_size=4 [21:41:28]MH_SAM_APDU [21:41:28]CAPDU: 80 13 00 00 [21:41:28]Write to MH i2c: E2 08 00 71 21 80 13 00 00 00 00 00 00 0E [21:41:28]Write i2c OK [21:41:28]MH_I2C_Read... [21:41:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:41:28]Read from MH i2c: E2 [21:41:28]MH_I2C_Read... [21:41:28]Read from MH i2c: E2 62 00 [21:41:28]MH_I2C_Read... [21:41:28]Read from MH i2c: E2 62 00 71 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 49 CF 01 00 0E 04 04 00 B1 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 2D [21:41:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 49 CF 01 00 0E 04 04 00 B1 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 [21:41:28]wFMCommunicate OK [21:41:28]SAM_PROTO_GetFieldsCounters done [21:41:28]requested_item shift.num is exist - process it [21:41:28]requested_item shift.opened is exist - process it [21:41:28]req_shift_opened [21:41:28]FM_GetShiftState [21:41:28]SAM_PROTO_GetShiftState [21:41:28]wFMCommunicate request_size=4 [21:41:28]MH_SAM_APDU [21:41:28]CAPDU: 80 13 01 00 [21:41:28]Write to MH i2c: E2 08 00 72 21 80 13 01 00 00 00 00 00 10 [21:41:28]Write i2c OK [21:41:28]MH_I2C_Read... [21:41:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:28]Read from MH i2c: E2 [21:41:28]MH_I2C_Read... [21:41:28]Read from MH i2c: E2 0E 00 [21:41:28]MH_I2C_Read... [21:41:28]Read from MH i2c: E2 0E 00 72 21 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 E7 [21:41:28]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:41:28]wFMCommunicate OK [21:41:28]SAM_PROTO_GetShiftState done [21:41:28]FM_GetShiftState done [21:41:28]req_shift_opened done [21:41:28]requested_item shift.open_date is exist - process it [21:41:28]req_shift_open_date [21:41:28]req_shift_open_date done [21:41:28]produce_requested_data done [21:41:28]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118601,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [21:41:28]process_action_free close_receipt [21:41:28]json_value_free [21:41:28]json_value_free done [21:41:28]process_json_proto returns [21:41:28]Send response to host [21:41:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118601,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [21:41:28]free response buf [21:41:28]execute_script done [21:41:28]execute_script returns [21:41:28]free content buf [21:41:28]Sock 9.Close socket [21:41:28]Sock 9.Thread stoped [21:41:32]OFD Sender: No OFD packet to send [21:41:37]OFD Sender: No OFD packet to send [21:41:42]OFD Sender: No OFD packet to send [21:41:47]OFD Sender: No OFD packet to send [21:41:52]OFD Sender: No OFD packet to send [21:41:57]OFD Sender: No OFD packet to send [21:42:02]OFD Sender: No OFD packet to send [21:42:07]OFD Sender: No OFD packet to send [21:42:12]OFD Sender: No OFD packet to send [21:42:17]accept exits with 7 [21:42:17]New connection [21:42:17]New thread 3067239780 created [21:42:17]Thread 3067383140 joined [21:42:17]Waiting for new connection... [21:42:17] Sock 7.Parse request [21:42:17]Sock 7.Check first char [21:42:17]Sock 7.First char is OK [21:42:17]request: POST /json_proto HTTP/1.0 [21:42:17]Method: POST [21:42:17]URL: /json_proto [21:42:17]Method is POST - this is cgi request [21:42:17]url: /json_proto [21:42:17]query_string will be loaded in cgi processing [21:42:17]execute_cgi json_proto POST (null) [21:42:17]execute_cgi path=json_proto method=POST [21:42:17]POST find Content-Length [21:42:17]Host: 172.17.45.7:8080 [21:42:17]Content-Length: 818 [21:42:17]Content-Type: application/json [21:42:17] [21:42:17]POST finish read [21:42:17]Found Content-Length = 818 [21:42:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.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", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:17]execute_script... [21: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)949490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.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", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:17]POST & json_proto [21:42:17]process_json_proto [21:42:17]json parsed OK: [21:42:17]protocol is kg_v1.0 [21:42:17]action value=close_receipt [21:42:17]process_action close_receipt [21:42:17]cmd_close_receipt [21:42:17]MH_GetDate [21:42:17]Write to MH i2c: F0 00 00 73 21 83 [21:42:17]Write i2c OK [21:42:17]MH_I2C_Read... [21:42:17]Read from MH i2c: F0 [21:42:17]MH_I2C_Read... [21:42:17]Read from MH i2c: F0 09 00 [21:42:17]MH_I2C_Read... [21:42:17]Read from MH i2c: F0 09 00 73 21 00 3B BB A6 66 90 0F 3E 66 D1 [21:42:17]GetLastDocTimeStamp 1722202887 [21:42:17]current date 1722202939 [21:42:17]FM_GetShiftState [21:42:17]SAM_PROTO_GetShiftState [21:42:17]wFMCommunicate request_size=4 [21:42:17]MH_SAM_APDU [21:42:17]CAPDU: 80 13 01 00 [21:42:17]Write to MH i2c: E2 08 00 74 21 80 13 01 00 00 00 00 00 12 [21:42:17]Write i2c OK [21:42:17]MH_I2C_Read... [21:42:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:17]Read from MH i2c: E2 [21:42:17]MH_I2C_Read... [21:42:17]Read from MH i2c: E2 0E 00 [21:42:17]MH_I2C_Read... [21:42:17]Read from MH i2c: E2 0E 00 74 21 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 E9 [21:42:17]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:42:17]wFMCommunicate OK [21:42:17]SAM_PROTO_GetShiftState done [21:42:17]FM_GetShiftState done [21:42:17]opened in 1722125364 [21:42:17]opened+sec_in_day 1722211764 [21:42:17]quantity*price = 50010 [21:42:17]sum+1 = 50012 [21:42:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 271 28.07.2024 21:42 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118602 ФПД: 184842506628555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T214219&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118602&fm=184842506628555&tin=02508201610067®Number=0000000000092660&sum=50000 [21:42:18]StoreToDocumentArchive [21:42:18]shift 433 fd 118602 [21:42:18]save to /storage/0433/doc_00118602 [21:42:18]save last doc name /storage/0433/doc_00118602 to /storage/kkm_last_doc_name [21:42:18]save OK [21:42:18]Clear old archive folders... [21:42:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:42:18]tlvbuf is 01EEE680 [21:42:18]SAM_PROTO_ClearQueue [21:42:18]wFMCommunicate request_size=4 [21:42:18]MH_SAM_APDU [21:42:18]CAPDU: 80 09 00 00 [21:42:18]Write to MH i2c: E2 08 00 81 21 80 09 00 00 00 00 00 00 14 [21:42:18]Write i2c OK [21:42:18]MH_I2C_Read... [21:42:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:42:18]Read from MH i2c: E2 [21:42:18]MH_I2C_Read... [21:42:18]Read from MH i2c: E2 03 00 [21:42:18]MH_I2C_Read... [21:42:18]Read from MH i2c: E2 03 00 81 21 00 90 00 16 [21:42:18]RAPDU: 90 00 [21:42:18]wFMCommunicate OK [21:42:18]SAM_PROTO_ClearQueue done [21:42:18]KKMCreateOFDPacket [21:42:18]OFDProtocolAddRootSTLVToBuf [21:42:18]FM_MakeSignedData [21:42:18]FM_MakeSignedData [21:42:18]SAM_PROTO_SignData [21:42:18]wFMCommunicate request_size=4 [21:42:18]MH_SAM_APDU [21:42:18]CAPDU: 80 0D 01 02 [21:42:18]Write to MH i2c: E2 08 00 82 21 80 0D 01 02 00 00 00 00 1C [21:42:18]Write i2c OK [21:42:18]MH_I2C_Read... [21:42:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:42:18]Read from MH i2c: E2 [21:42:18]MH_I2C_Read... [21:42:18]Read from MH i2c: E2 03 00 [21:42:18]MH_I2C_Read... [21:42:18]Read from MH i2c: E2 03 00 82 21 00 90 00 17 [21:42:18]RAPDU: 90 00 [21:42:18]wFMCommunicate OK [21:42:18]wFMCommunicate request_size=255 [21:42:18]MH_SAM_APDU [21:42:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 3B BB A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A CF 01 00 35 04 06 00 A8 [21:42:18]Write to MH i2c: E2 02 01 83 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 3B BB A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A CF 01 00 35 04 06 00 A8 00 00 0D [21:42:18]Write i2c OK [21:42:18]MH_I2C_Read... [21:42:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:18]Read from MH i2c: E2 [21:42:18]MH_I2C_Read... [21:42:18]Read from MH i2c: E2 03 00 [21:42:18]MH_I2C_Read... [21:42:18]Read from MH i2c: E2 03 00 83 21 00 90 00 18 [21:42:18]RAPDU: 90 00 [21:42:18]wFMCommunicate OK [21:42:18]wFMCommunicate request_size=10 [21:42:18]MH_SAM_APDU [21:42:18]CAPDU: 80 0D 02 02 05 1C FF F2 6D CB [21:42:18]Write to MH i2c: E2 0D 00 84 21 80 0D 02 02 05 00 1C FF F2 6D CB 00 00 6E [21:42:18]Write i2c OK [21:42:18]MH_I2C_Read... [21:42:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:18]Read from MH i2c: E2 [21:42:18]MH_I2C_Read... [21:42:18]Read from MH i2c: E2 03 00 [21:42:18]MH_I2C_Read... [21:42:18]Read from MH i2c: E2 03 00 84 21 00 90 00 19 [21:42:18]RAPDU: 90 00 [21:42:18]wFMCommunicate OK [21:42:18]wFMCommunicate request_size=4 [21:42:18]MH_SAM_APDU [21:42:18]CAPDU: 80 0D 03 02 [21:42:18]Write to MH i2c: E2 08 00 85 21 80 0D 03 02 00 00 00 00 21 [21:42:18]Write i2c OK [21:42:18]MH_I2C_Read... [21:42:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:42:18]Read from MH i2c: E2 [21:42:18]MH_I2C_Read... [21:42:18]Read from MH i2c: E2 0B 00 [21:42:18]MH_I2C_Read... [21:42:18]Read from MH i2c: E2 0B 00 85 21 00 17 EF 84 71 D4 7A 07 15 90 00 87 [21:42:18]RAPDU: 17 EF 84 71 D4 7A 07 15 90 00 [21:42:18]wFMCommunicate OK [21:42:18]SAM_PROTO_SignData done [21:42:18]FM_MakeSignedData done [21:42:18]CreateOFDProtocolMessage [21:42:18]wFMCommunicate request_size=4 [21:42:18]MH_SAM_APDU [21:42:18]CAPDU: 80 11 00 00 [21:42:18]Write to MH i2c: E2 08 00 86 21 80 11 00 00 00 00 00 00 21 [21:42:18]Write i2c OK [21:42:18]MH_I2C_Read... [21:42:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:18]Read from MH i2c: E2 [21:42:18]MH_I2C_Read... [21:42:18]Read from MH i2c: E2 17 00 [21:42:18]MH_I2C_Read... [21:42:18]Read from MH i2c: E2 17 00 86 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7C [21:42:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:42:18]wFMCommunicate OK [21:42:18]CreateOFDProtocolMessage done [21:42:18]OFDSenderStorePacket 118602 [21:42:18]StoreOFDPacket docnum=118602 [21:42:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5A F8 07 01 EC 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 3B BB A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A CF 01 00 35 04 06 00 A8 1C FF F2 6D CB 17 EF 84 71 D4 7A 07 15 [21:42:18]CheckFolder [21:42:18]dirname=/storage/ofd_packets [21:42:18]CheckFolder done [21:42:18]ProducePacketName [21:42:18]name=ofd_packets/00118602 [21:42:18]NVStorageSaveData ofd_packets/00118602 [21:42:18]File name is /storage/ofd_packets/00118602 [21:42:18]Write 301 bytes [21:42:18]NVStorageSaveData done [21:42:18]OFDSenderStorePacket done [21:42:18]KKMCreateOFDPacket done [21:42:18]NVStorageSaveData kkm_last_timestamp [21:42:18]File name is /storage/kkm_last_timestamp [21:42:18]Write 4 bytes [21:42:18]NVStorageSaveData done [21:42:18]ExternCall_PrintAddStr [21:42:18]wPrintStart [21:42:18]Write to MH i2c: 01 00 00 87 21 A8 [21:42:18]Write i2c OK [21:42:18]MH_I2C_Read... [21:42:18]Read from MH i2c: 01 [21:42:18]MH_I2C_Read... [21:42:18]Read from MH i2c: 01 07 00 [21:42:18]MH_I2C_Read... [21:42:18]Read from MH i2c: 01 07 00 87 21 00 00 00 00 00 FF 0F BD [21:42:18]RasterBufferAndPrint [21:42:18]line Счет N : (1)949490 [21:42:18]line ИНН: 02508201610067 [21:42:18]line Контрольно-Кассовый Чек [21:42:18]line ПРОДАЖА [21:42:18]line ТРК (МРК, ГНК) : 43 [21:42:18]line Товар: 2710124500 [21:42:18]line Аи-95-К-3 [21:42:18]line 6.740 * 74.20 [21:42:18]line = 500.11 [21:42:18]line НДС 12% НСП 1% [21:42:18]line > о реализуемом товаре [21:42:18]line ОКРУГЛЕНИЕ: -0.11 [21:42:18]line ИТОГО: 500.00 [21:42:18]line НСП 1% : 4.43 [21:42:18]line НДС 12% : 53.11 [21:42:18]line Наличными: 0.00 [21:42:18]line Безнал.: 500.00 [21:42:18]line Место: АЗС № 134 "Партнер Нефть" [21:42:18]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:42:18]line СНО: Общий режим [21:42:18]line Чек 271 28.07.2024 21:42 [21:42:18]line Смена: 433 ФФД: 1.0 [21:42:18]line ЗНМ: 0300000044 [21:42:18]line РНМ: 0000000000092660 [21:42:18]line Версия ККМ: 001 [21:42:18]line Платежная система: O! деньги [21:42:18]line ФМ: 0000000000874939 [21:42:18]line ФД: 118602 [21:42:18]line ФПД: 184842506628555 [21:42:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T214219&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118602&fm=184842506628555&tin=02508201610067®Number=0000000000092660&sum=50000 [21:42:19]written 0, free lines is 4095 [21:42:19]OFD Sender: Processing packet 118602 [packets to send 86, broken 85] [21:42:19]ProducePacketName [21:42:19]name=ofd_packets/00118602 [21:42:19]OFD Sender: To server: pG, [21:42:19]CommunicateWithHost lk.salyk.kg:30040 [21:42:19]ConnectInit lk.salyk.kg [21:42:19]Connected sock=10 [21: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 39 33 39 0F 01 00 00 5A F8 07 01 EC 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 3B BB A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A CF 01 00 35 04 06 00 A8 1C FF F2 6D CB 17 EF 84 71 D4 7A 07 15 [21:42:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1B 4C 47 00 36 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A CF 01 00 F4 03 04 00 CA 68 A6 66 B6 04 01 00 00 E1 91 B0 62 08 B5 1D D5 [21:42:19]CommunicateWithHost err = 0 [21:42:19]CheckOFDResponse [21:42:19]1017 (14) - 77093643461234 [21:42:19]1041 (16) - 0000000000874939 [21:42:19]1040 (4) - 118602 [21:42:19]1012 (4) - 28.07.2024 15:50 [21:42:19]1206 (1) - 0 [21:42:19]OFD Sender: Remove packet 118602 [21:42:19]ProducePacketName [21:42:19]name=ofd_packets/00118602 [21:42:19]NVStorageDeleteData [21:42:19]Write to MH i2c: 01 00 00 B1 21 D2 [21:42:19]Write i2c OK [21:42:19]MH_I2C_Read... [21:42:19]Read from MH i2c: 01 [21:42:19]MH_I2C_Read... [21:42:19]Read from MH i2c: 01 07 00 [21:42:19]MH_I2C_Read... [21:42:19]Read from MH i2c: 01 07 00 B1 21 00 00 00 00 00 D8 0C BD [21:42:19]RasterBufferAndPrint [21:42:19]line [21:42:19]line [21:42:19]line [21:42:19]line [21:42:19]line [21:42:19]written 0, free lines is 3296 [21:42:19]MH_Cut [21:42:19]Write to MH i2c: D1 01 00 B8 21 01 AB [21:42:19]Write i2c OK [21:42:19]MH_I2C_Read... [21:42:19]Read from MH i2c: D1 [21:42:19]MH_I2C_Read... [21:42:19]Read from MH i2c: D1 01 00 [21:42:19]MH_I2C_Read... [21:42:19]Read from MH i2c: D1 01 00 B8 21 00 AA [21:42:19]Write to MH i2c: 01 00 00 B9 21 DA [21:42:19]Write i2c OK [21:42:19]MH_I2C_Read... [21:42:19]OFD Sender: No OFD packet to send [21:42:20]*** Cut start [21:42:20]*** Partial cut [21:42:20]*** CUTSNS_PIN = 1 [21:42:20]*** CUTSNS_PIN = 0 [21:42:20]*** Brake cut motor [21:42:20]Read from MH i2c: 01 [21:42:20]MH_I2C_Read... [21:42:20]*** Stop cut motor [21:42:20]*** Cut end [21:42:20]Read from MH i2c: 01 07 00 [21:42:20]MH_I2C_Read... [21:42:20]Read from MH i2c: 01 07 00 B9 21 00 00 00 00 00 FF 0F EF [21:42:20]process_action close_receipt done [21:42:20]requested_data is exist [21:42:20]produce_requested_data [21:42:20]requested_item fm.sn is exist - process it [21:42:20]wFMCommunicate request_size=4 [21:42:20]MH_SAM_APDU [21:42:20]CAPDU: 80 11 00 00 [21:42:20]Write to MH i2c: E2 08 00 BA 21 80 11 00 00 00 00 00 00 55 [21:42:20]Write i2c OK [21:42:20]MH_I2C_Read... [21:42:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:20]Read from MH i2c: E2 [21:42:20]MH_I2C_Read... [21:42:20]Read from MH i2c: E2 17 00 [21:42:20]MH_I2C_Read... [21:42:20]Read from MH i2c: E2 17 00 BA 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B0 [21:42:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:42:20]wFMCommunicate OK [21:42:20]requested_item fd.num is exist - process it [21:42:20]SAM_PROTO_GetFieldsCounters [21:42:20]wFMCommunicate request_size=4 [21:42:20]MH_SAM_APDU [21:42:20]CAPDU: 80 13 00 00 [21:42:20]Write to MH i2c: E2 08 00 BB 21 80 13 00 00 00 00 00 00 58 [21:42:20]Write i2c OK [21:42:20]MH_I2C_Read... [21:42:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:42:21]Read from MH i2c: E2 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: E2 62 00 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: E2 62 00 BB 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4A CF 01 00 0E 04 04 00 B1 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 7B [21: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4A CF 01 00 0E 04 04 00 B1 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 [21:42:21]wFMCommunicate OK [21:42:21]SAM_PROTO_GetFieldsCounters done [21:42:21]requested_item shift.num is exist - process it [21:42:21]requested_item shift.opened is exist - process it [21:42:21]req_shift_opened [21:42:21]FM_GetShiftState [21:42:21]SAM_PROTO_GetShiftState [21:42:21]wFMCommunicate request_size=4 [21:42:21]MH_SAM_APDU [21:42:21]CAPDU: 80 13 01 00 [21:42:21]Write to MH i2c: E2 08 00 BC 21 80 13 01 00 00 00 00 00 5A [21:42:21]Write i2c OK [21:42:21]MH_I2C_Read... [21:42:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:21]Read from MH i2c: E2 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: E2 0E 00 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: E2 0E 00 BC 21 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 31 [21:42:21]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:42:21]wFMCommunicate OK [21:42:21]SAM_PROTO_GetShiftState done [21:42:21]FM_GetShiftState done [21:42:21]req_shift_opened done [21:42:21]requested_item shift.open_date is exist - process it [21:42:21]req_shift_open_date [21:42:21]req_shift_open_date done [21:42:21]produce_requested_data done [21:42:21]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118602,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [21:42:21]process_action_free close_receipt [21:42:21]json_value_free [21:42:21]json_value_free done [21:42:21]process_json_proto returns [21:42:21]Send response to host [21:42:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118602,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [21:42:21]free response buf [21:42:21]execute_script done [21:42:21]execute_script returns [21:42:21]free content buf [21:42:21]Sock 7.Close socket [21:42:21]Sock 7.Thread stoped [21:42:24]OFD Sender: No OFD packet to send [21:42:29]OFD Sender: No OFD packet to send [21:42:34]OFD Sender: No OFD packet to send [21:42:39]OFD Sender: No OFD packet to send [21:42:44]OFD Sender: No OFD packet to send [21:42:49]OFD Sender: No OFD packet to send [21:42:54]OFD Sender: No OFD packet to send [21:42:59]OFD Sender: No OFD packet to send [21:43:04]OFD Sender: No OFD packet to send [21:43:09]OFD Sender: No OFD packet to send [21:43:14]OFD Sender: No OFD packet to send [21:43:19]OFD Sender: No OFD packet to send [21:43:24]OFD Sender: No OFD packet to send [21:43:29]OFD Sender: No OFD packet to send [21:43:34]OFD Sender: No OFD packet to send [21:43:35]accept exits with 9 [21:43:35]New connection [21:43:35]New thread 3067383140 created [21:43:35]Thread 3067239780 joined [21:43:35]Waiting for new connection... [21:43:35] Sock 9.Parse request [21:43:35]Sock 9.Check first char [21:43:35]Sock 9.First char is OK [21:43:35]request: POST /json_proto HTTP/1.0 [21:43:35]Method: POST [21:43:35]URL: /json_proto [21:43:35]Method is POST - this is cgi request [21:43:35]url: /json_proto [21:43:35]query_string will be loaded in cgi processing [21:43:35]execute_cgi json_proto POST (null) [21:43:35]execute_cgi path=json_proto method=POST [21:43:35]POST find Content-Length [21:43:35]Host: 172.17.45.7:8080 [21:43:35]Content-Length: 677 [21:43:35]Content-Type: application/json [21:43:35] [21:43:35]POST finish read [21:43:35]Found Content-Length = 677 [21:43:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:43:35]execute_script... [21: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)949491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:43:35]POST & json_proto [21:43:35]process_json_proto [21:43:35]json parsed OK: [21:43:35]protocol is kg_v1.0 [21:43:35]action value=close_receipt [21:43:35]process_action close_receipt [21:43:35]cmd_close_receipt [21:43:35]MH_GetDate [21:43:35]Write to MH i2c: F0 00 00 BD 21 CD [21:43:35]Write i2c OK [21:43:35]MH_I2C_Read... [21:43:35]Read from MH i2c: F0 [21:43:35]MH_I2C_Read... [21:43:35]Read from MH i2c: F0 09 00 [21:43:35]MH_I2C_Read... [21:43:35]Read from MH i2c: F0 09 00 BD 21 00 89 BB A6 66 90 0F 3E 66 69 [21:43:35]GetLastDocTimeStamp 1722202939 [21:43:35]current date 1722203017 [21:43:35]FM_GetShiftState [21:43:35]SAM_PROTO_GetShiftState [21:43:35]wFMCommunicate request_size=4 [21:43:35]MH_SAM_APDU [21:43:35]CAPDU: 80 13 01 00 [21:43:35]Write to MH i2c: E2 08 00 BE 21 80 13 01 00 00 00 00 00 5C [21:43:35]Write i2c OK [21:43:35]MH_I2C_Read... [21:43:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:35]Read from MH i2c: E2 [21:43:35]MH_I2C_Read... [21:43:35]Read from MH i2c: E2 0E 00 [21:43:35]MH_I2C_Read... [21:43:35]Read from MH i2c: E2 0E 00 BE 21 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 33 [21:43:35]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:43:35]wFMCommunicate OK [21:43:35]SAM_PROTO_GetShiftState done [21:43:35]FM_GetShiftState done [21:43:35]opened in 1722125364 [21:43:35]opened+sec_in_day 1722211764 [21:43:35]quantity*price = 60003 [21:43:35]sum+1 = 60004 [21:43:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 272 28.07.2024 21:43 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118603 ФПД: 58186063013400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T214338&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118603&fm=58186063013400&tin=02508201610067®Number=0000000000092660&sum=60000 [21:43:36]StoreToDocumentArchive [21:43:36]shift 433 fd 118603 [21:43:36]save to /storage/0433/doc_00118603 [21:43:36]save last doc name /storage/0433/doc_00118603 to /storage/kkm_last_doc_name [21:43:36]save OK [21:43:36]Clear old archive folders... [21:43:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:43:36]tlvbuf is B6FC19C0 [21:43:36]SAM_PROTO_ClearQueue [21:43:36]wFMCommunicate request_size=4 [21:43:36]MH_SAM_APDU [21:43:36]CAPDU: 80 09 00 00 [21:43:36]Write to MH i2c: E2 08 00 CB 21 80 09 00 00 00 00 00 00 5E [21:43:36]Write i2c OK [21:43:36]MH_I2C_Read... [21:43:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:43:36]Read from MH i2c: E2 [21:43:36]MH_I2C_Read... [21:43:36]Read from MH i2c: E2 03 00 [21:43:36]MH_I2C_Read... [21:43:36]Read from MH i2c: E2 03 00 CB 21 00 90 00 60 [21:43:36]RAPDU: 90 00 [21:43:36]wFMCommunicate OK [21:43:36]SAM_PROTO_ClearQueue done [21:43:36]KKMCreateOFDPacket [21:43:36]OFDProtocolAddRootSTLVToBuf [21:43:36]FM_MakeSignedData [21:43:36]FM_MakeSignedData [21:43:36]SAM_PROTO_SignData [21:43:36]wFMCommunicate request_size=4 [21:43:36]MH_SAM_APDU [21:43:36]CAPDU: 80 0D 01 02 [21:43:36]Write to MH i2c: E2 08 00 CC 21 80 0D 01 02 00 00 00 00 66 [21:43:36]Write i2c OK [21:43:36]MH_I2C_Read... [21:43:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:43:36]Read from MH i2c: E2 [21:43:36]MH_I2C_Read... [21:43:36]Read from MH i2c: E2 03 00 [21:43:36]MH_I2C_Read... [21:43:36]Read from MH i2c: E2 03 00 CC 21 00 90 00 61 [21:43:36]RAPDU: 90 00 [21:43:36]wFMCommunicate OK [21:43:36]wFMCommunicate request_size=255 [21:43:36]MH_SAM_APDU [21: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 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 10 01 00 00 F4 03 04 00 8A BB A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4B CF 01 00 35 04 06 00 34 [21:43:36]Write to MH i2c: E2 02 01 CD 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 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 10 01 00 00 F4 03 04 00 8A BB A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4B CF 01 00 35 04 06 00 34 00 00 14 [21:43:36]Write i2c OK [21:43:36]MH_I2C_Read... [21:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:37]Read from MH i2c: E2 [21:43:37]MH_I2C_Read... [21:43:37]Read from MH i2c: E2 03 00 [21:43:37]MH_I2C_Read... [21:43:37]Read from MH i2c: E2 03 00 CD 21 00 90 00 62 [21:43:37]RAPDU: 90 00 [21:43:37]wFMCommunicate OK [21:43:37]wFMCommunicate request_size=10 [21:43:37]MH_SAM_APDU [21:43:37]CAPDU: 80 0D 02 02 05 EB 7F 9D E6 18 [21:43:37]Write to MH i2c: E2 0D 00 CE 21 80 0D 02 02 05 00 EB 7F 9D E6 18 00 00 78 [21:43:37]Write i2c OK [21:43:37]MH_I2C_Read... [21:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:37]Read from MH i2c: E2 [21:43:37]MH_I2C_Read... [21:43:37]Read from MH i2c: E2 03 00 [21:43:37]MH_I2C_Read... [21:43:37]Read from MH i2c: E2 03 00 CE 21 00 90 00 63 [21:43:37]RAPDU: 90 00 [21:43:37]wFMCommunicate OK [21:43:37]wFMCommunicate request_size=4 [21:43:37]MH_SAM_APDU [21:43:37]CAPDU: 80 0D 03 02 [21:43:37]Write to MH i2c: E2 08 00 CF 21 80 0D 03 02 00 00 00 00 6B [21:43:37]Write i2c OK [21:43:37]MH_I2C_Read... [21:43:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:43:37]Read from MH i2c: E2 [21:43:37]MH_I2C_Read... [21:43:37]Read from MH i2c: E2 0B 00 [21:43:37]MH_I2C_Read... [21:43:37]Read from MH i2c: E2 0B 00 CF 21 00 4A 73 B2 97 9F A6 C8 8D 90 00 0C [21:43:37]RAPDU: 4A 73 B2 97 9F A6 C8 8D 90 00 [21:43:37]wFMCommunicate OK [21:43:37]SAM_PROTO_SignData done [21:43:37]FM_MakeSignedData done [21:43:37]CreateOFDProtocolMessage [21:43:37]wFMCommunicate request_size=4 [21:43:37]MH_SAM_APDU [21:43:37]CAPDU: 80 11 00 00 [21:43:37]Write to MH i2c: E2 08 00 D0 21 80 11 00 00 00 00 00 00 6B [21:43:37]Write i2c OK [21:43:37]MH_I2C_Read... [21:43:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:37]Read from MH i2c: E2 [21:43:37]MH_I2C_Read... [21:43:37]Read from MH i2c: E2 17 00 [21:43:37]MH_I2C_Read... [21:43:37]Read from MH i2c: E2 17 00 D0 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C6 [21:43:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:43:37]wFMCommunicate OK [21:43:37]CreateOFDProtocolMessage done [21:43:37]OFDSenderStorePacket 118603 [21:43:37]StoreOFDPacket docnum=118603 [21:43:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4F DB 07 01 68 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 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 10 01 00 00 F4 03 04 00 8A BB A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4B CF 01 00 35 04 06 00 34 EB 7F 9D E6 18 4A 73 B2 97 9F A6 C8 8D [21:43:37]CheckFolder [21:43:37]dirname=/storage/ofd_packets [21:43:37]CheckFolder done [21:43:37]ProducePacketName [21:43:37]name=ofd_packets/00118603 [21:43:37]NVStorageSaveData ofd_packets/00118603 [21:43:37]File name is /storage/ofd_packets/00118603 [21:43:37]Write 301 bytes [21:43:37]NVStorageSaveData done [21:43:37]OFDSenderStorePacket done [21:43:37]KKMCreateOFDPacket done [21:43:37]NVStorageSaveData kkm_last_timestamp [21:43:37]File name is /storage/kkm_last_timestamp [21:43:37]Write 4 bytes [21:43:37]NVStorageSaveData done [21:43:37]ExternCall_PrintAddStr [21:43:37]wPrintStart [21:43:37]Write to MH i2c: 01 00 00 D1 21 F2 [21:43:37]Write i2c OK [21:43:37]MH_I2C_Read... [21:43:37]Read from MH i2c: 01 [21:43:37]MH_I2C_Read... [21:43:37]Read from MH i2c: 01 07 00 [21:43:37]MH_I2C_Read... [21:43:37]Read from MH i2c: 01 07 00 D1 21 00 00 00 00 00 FF 0F 07 [21:43:37]RasterBufferAndPrint [21:43:37]line Счет N : (1)949491 [21:43:37]line ИНН: 02508201610067 [21:43:37]line Контрольно-Кассовый Чек [21:43:37]line ПРОДАЖА [21:43:37]line ТРК (МРК, ГНК) : 31 [21:43:37]line Товар: 2710124130 [21:43:37]line Аи-92-К-4 [21:43:37]line 8.850 * 67.80 [21:43:37]line = 600.03 [21:43:37]line НДС 12% НСП 1% [21:43:37]line > о реализуемом товаре [21:43:37]line ОКРУГЛЕНИЕ: -0.03 [21:43:37]line ИТОГО: 600.00 [21:43:37]line Внесено: 600.00 [21:43:37]line СДАЧА: 0.00 [21:43:37]line НСП 1% : 5.31 [21:43:37]line НДС 12% : 63.72 [21:43:37]line Наличными: 600.00 [21:43:37]line Безнал.: 0.00 [21:43:37]line Место: АЗС № 134 "Партнер Нефть" [21:43:37]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:43:37]line СНО: Общий режим [21:43:37]line Чек 272 28.07.2024 21:43 [21:43:37]line Смена: 433 ФФД: 1.0 [21:43:37]line ЗНМ: 0300000044 [21:43:37]line РНМ: 0000000000092660 [21:43:37]line Версия ККМ: 001 [21:43:37]line ФМ: 0000000000874939 [21:43:37]line ФД: 118603 [21:43:37]line ФПД: 58186063013400 [21:43:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T214338&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118603&fm=58186063013400&tin=02508201610067®Number=0000000000092660&sum=60000 [21:43:37]OFD Sender: Processing packet 118603 [packets to send 86, broken 85] [21:43:37]ProducePacketName [21:43:37]name=ofd_packets/00118603 [21:43:37]OFD Sender: To server: pG, [21:43:37]CommunicateWithHost lk.salyk.kg:30040 [21:43:37]ConnectInit lk.salyk.kg [21:43:37]written 0, free lines is 4095 [21:43:37]Connected sock=10 [21: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 39 33 39 0F 01 00 00 4F DB 07 01 68 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 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 10 01 00 00 F4 03 04 00 8A BB A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4B CF 01 00 35 04 06 00 34 EB 7F 9D E6 18 4A 73 B2 97 9F A6 C8 8D [21: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 39 33 39 4F 00 00 00 7A A6 47 00 E3 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 39 33 39 10 04 04 00 4B CF 01 00 F4 03 04 00 19 69 A6 66 B6 04 01 00 00 F7 75 40 DB 05 54 30 C3 [21:43:37]CommunicateWithHost err = 0 [21:43:37]CheckOFDResponse [21:43:37]1017 (14) - 77093643461234 [21:43:37]1041 (16) - 0000000000874939 [21:43:37]1040 (4) - 118603 [21:43:37]1012 (4) - 28.07.2024 15:51 [21:43:37]1206 (1) - 0 [21:43:37]OFD Sender: Remove packet 118603 [21:43:37]ProducePacketName [21:43:37]name=ofd_packets/00118603 [21:43:37]NVStorageDeleteData [21:43:38]Write to MH i2c: 01 00 00 FB 21 1C [21:43:38]Write i2c OK [21:43:38]MH_I2C_Read... [21:43:38]Read from MH i2c: 01 [21:43:38]MH_I2C_Read... [21:43:38]Read from MH i2c: 01 07 00 [21:43:38]MH_I2C_Read... [21:43:38]Read from MH i2c: 01 07 00 FB 21 00 00 00 00 00 D7 0C 06 [21:43:38]RasterBufferAndPrint [21:43:38]line [21:43:38]line [21:43:38]line [21:43:38]line [21:43:38]line [21:43:38]written 0, free lines is 3294 [21:43:38]MH_Cut [21:43:38]Write to MH i2c: D1 01 00 02 22 01 F6 [21:43:38]Write i2c OK [21:43:38]MH_I2C_Read... [21:43:38]Read from MH i2c: D1 [21:43:38]MH_I2C_Read... [21:43:38]Read from MH i2c: D1 01 00 [21:43:38]MH_I2C_Read... [21:43:38]Read from MH i2c: D1 01 00 02 22 00 F5 [21:43:38]Write to MH i2c: 01 00 00 03 22 25 [21:43:38]Write i2c OK [21:43:38]MH_I2C_Read... [21:43:38]OFD Sender: No OFD packet to send [21:43:38]*** Cut start [21:43:38]*** Partial cut [21:43:38]*** CUTSNS_PIN = 1 [21:43:38]*** CUTSNS_PIN = 0 [21:43:39]*** Brake cut motor [21:43:39]Read from MH i2c: 01 [21:43:39]MH_I2C_Read... [21:43:39]*** Stop cut motor [21:43:39]*** Cut end [21:43:39]Read from MH i2c: 01 07 00 [21:43:39]MH_I2C_Read... [21:43:39]Read from MH i2c: 01 07 00 03 22 00 00 00 00 00 FF 0F 3A [21:43:39]process_action close_receipt done [21:43:39]requested_data is exist [21:43:39]produce_requested_data [21:43:39]requested_item fm.sn is exist - process it [21:43:39]wFMCommunicate request_size=4 [21:43:39]MH_SAM_APDU [21:43:39]CAPDU: 80 11 00 00 [21:43:39]Write to MH i2c: E2 08 00 04 22 80 11 00 00 00 00 00 00 A0 [21:43:39]Write i2c OK [21:43:39]MH_I2C_Read... [21:43:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:39]Read from MH i2c: E2 [21:43:39]MH_I2C_Read... [21:43:39]Read from MH i2c: E2 17 00 [21:43:39]MH_I2C_Read... [21:43:39]Read from MH i2c: E2 17 00 04 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FB [21:43:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:43:39]wFMCommunicate OK [21:43:39]requested_item fd.num is exist - process it [21:43:39]SAM_PROTO_GetFieldsCounters [21:43:39]wFMCommunicate request_size=4 [21:43:39]MH_SAM_APDU [21:43:39]CAPDU: 80 13 00 00 [21:43:39]Write to MH i2c: E2 08 00 05 22 80 13 00 00 00 00 00 00 A3 [21:43:39]Write i2c OK [21:43:39]MH_I2C_Read... [21:43:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:43:39]Read from MH i2c: E2 [21:43:39]MH_I2C_Read... [21:43:39]Read from MH i2c: E2 62 00 [21:43:39]MH_I2C_Read... [21:43:39]Read from MH i2c: E2 62 00 05 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4B CF 01 00 0E 04 04 00 B1 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 CA [21:43:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4B CF 01 00 0E 04 04 00 B1 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 [21:43:39]wFMCommunicate OK [21:43:39]SAM_PROTO_GetFieldsCounters done [21:43:39]requested_item shift.num is exist - process it [21:43:39]requested_item shift.opened is exist - process it [21:43:39]req_shift_opened [21:43:39]FM_GetShiftState [21:43:39]SAM_PROTO_GetShiftState [21:43:39]wFMCommunicate request_size=4 [21:43:39]MH_SAM_APDU [21:43:39]CAPDU: 80 13 01 00 [21:43:39]Write to MH i2c: E2 08 00 06 22 80 13 01 00 00 00 00 00 A5 [21:43:39]Write i2c OK [21:43:39]MH_I2C_Read... [21:43:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:39]Read from MH i2c: E2 [21:43:39]MH_I2C_Read... [21:43:39]Read from MH i2c: E2 0E 00 [21:43:39]MH_I2C_Read... [21:43:39]Read from MH i2c: E2 0E 00 06 22 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 7C [21:43:39]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:43:39]wFMCommunicate OK [21:43:39]SAM_PROTO_GetShiftState done [21:43:39]FM_GetShiftState done [21:43:39]req_shift_opened done [21:43:39]requested_item shift.open_date is exist - process it [21:43:39]req_shift_open_date [21:43:39]req_shift_open_date done [21:43:39]produce_requested_data done [21:43:39]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118603,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [21:43:39]process_action_free close_receipt [21:43:39]json_value_free [21:43:39]json_value_free done [21:43:39]process_json_proto returns [21:43:39]Send response to host [21:43:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118603,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [21:43:39]free response buf [21:43:39]execute_script done [21:43:39]execute_script returns [21:43:39]free content buf [21:43:39]Sock 9.Close socket [21:43:39]Sock 9.Thread stoped [21:43:43]OFD Sender: No OFD packet to send [21:43:48]OFD Sender: No OFD packet to send [21:43:53]OFD Sender: No OFD packet to send [21:43:58]OFD Sender: No OFD packet to send [21:44:03]OFD Sender: No OFD packet to send [21:44:08]OFD Sender: No OFD packet to send [21:44:13]OFD Sender: No OFD packet to send [21:44:18]OFD Sender: No OFD packet to send [21:44:23]OFD Sender: No OFD packet to send [21:44:28]OFD Sender: No OFD packet to send [21:44:33]OFD Sender: No OFD packet to send [21:44:38]OFD Sender: No OFD packet to send [21:44:43]OFD Sender: No OFD packet to send [21:44:48]OFD Sender: No OFD packet to send [21:44:53]OFD Sender: No OFD packet to send [21:44:58]OFD Sender: No OFD packet to send [21:45:03]OFD Sender: No OFD packet to send [21:45:08]OFD Sender: No OFD packet to send [21:45:13]OFD Sender: No OFD packet to send [21:45:18]OFD Sender: No OFD packet to send [21:45:23]OFD Sender: No OFD packet to send [21:45:28]OFD Sender: No OFD packet to send [21:45:33]OFD Sender: No OFD packet to send [21:45:38]OFD Sender: No OFD packet to send [21:45:43]OFD Sender: No OFD packet to send [21:45:48]OFD Sender: No OFD packet to send [21:45:53]OFD Sender: No OFD packet to send [21:45:58]OFD Sender: No OFD packet to send [21:46:03]OFD Sender: No OFD packet to send [21:46:08]OFD Sender: No OFD packet to send [21:46:13]OFD Sender: No OFD packet to send [21:46:18]OFD Sender: No OFD packet to send [21:46:22]accept exits with 7 [21:46:22]New connection [21:46:22]New thread 3067239780 created [21:46:22]Thread 3067383140 joined [21:46:22]Waiting for new connection... [21:46:22] Sock 7.Parse request [21:46:22]Sock 7.Check first char [21:46:22]Sock 7.First char is OK [21:46:22]request: POST /json_proto HTTP/1.0 [21:46:22]Method: POST [21:46:22]URL: /json_proto [21:46:22]Method is POST - this is cgi request [21:46:22]url: /json_proto [21:46:22]query_string will be loaded in cgi processing [21:46:22]execute_cgi json_proto POST (null) [21:46:22]execute_cgi path=json_proto method=POST [21:46:22]POST find Content-Length [21:46:22]Host: 172.17.45.7:8080 [21:46:22]Content-Length: 822 [21:46:22]Content-Type: application/json [21:46:22] [21:46:22]POST finish read [21:46:22]Found Content-Length = 822 [21:46:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:46:22]execute_script... [21:46: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)949492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:46:22]POST & json_proto [21:46:22]process_json_proto [21:46:22]json parsed OK: [21:46:22]protocol is kg_v1.0 [21:46:22]action value=close_receipt [21:46:22]process_action close_receipt [21:46:22]cmd_close_receipt [21:46:22]MH_GetDate [21:46:22]Write to MH i2c: F0 00 00 07 22 18 [21:46:22]Write i2c OK [21:46:22]MH_I2C_Read... [21:46:22]Read from MH i2c: F0 [21:46:22]MH_I2C_Read... [21:46:22]Read from MH i2c: F0 09 00 [21:46:22]MH_I2C_Read... [21:46:22]Read from MH i2c: F0 09 00 07 22 00 30 BC A6 66 90 0F 3E 66 5C [21:46:22]GetLastDocTimeStamp 1722203018 [21:46:22]current date 1722203184 [21:46:22]FM_GetShiftState [21:46:22]SAM_PROTO_GetShiftState [21:46:22]wFMCommunicate request_size=4 [21:46:22]MH_SAM_APDU [21:46:22]CAPDU: 80 13 01 00 [21:46:22]Write to MH i2c: E2 08 00 08 22 80 13 01 00 00 00 00 00 A7 [21:46:22]Write i2c OK [21:46:22]MH_I2C_Read... [21:46:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:22]Read from MH i2c: E2 [21:46:22]MH_I2C_Read... [21:46:22]Read from MH i2c: E2 0E 00 [21:46:22]MH_I2C_Read... [21:46:22]Read from MH i2c: E2 0E 00 08 22 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 7E [21:46:22]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:46:22]wFMCommunicate OK [21:46:22]SAM_PROTO_GetShiftState done [21:46:22]FM_GetShiftState done [21:46:22]opened in 1722125364 [21:46:22]opened+sec_in_day 1722211764 [21:46:22]quantity*price = 100005 [21:46:22]sum+1 = 100006 [21:46:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 273 28.07.2024 21:46 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118604 ФПД: 136459803392051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T214624&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118604&fm=136459803392051&tin=02508201610067®Number=0000000000092660&sum=100000 [21:46:23]StoreToDocumentArchive [21:46:23]shift 433 fd 118604 [21:46:23]save to /storage/0433/doc_00118604 [21:46:23]save last doc name /storage/0433/doc_00118604 to /storage/kkm_last_doc_name [21:46:23]save OK [21:46:23]Clear old archive folders... [21:46:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:46:23]tlvbuf is 01EEF540 [21:46:23]SAM_PROTO_ClearQueue [21:46:23]wFMCommunicate request_size=4 [21:46:23]MH_SAM_APDU [21:46:23]CAPDU: 80 09 00 00 [21:46:23]Write to MH i2c: E2 08 00 15 22 80 09 00 00 00 00 00 00 A9 [21:46:23]Write i2c OK [21:46:23]MH_I2C_Read... [21:46:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:46:23]Read from MH i2c: E2 [21:46:23]MH_I2C_Read... [21:46:23]Read from MH i2c: E2 03 00 [21:46:23]MH_I2C_Read... [21:46:23]Read from MH i2c: E2 03 00 15 22 00 90 00 AB [21:46:23]RAPDU: 90 00 [21:46:23]wFMCommunicate OK [21:46:23]SAM_PROTO_ClearQueue done [21:46:23]KKMCreateOFDPacket [21:46:23]OFDProtocolAddRootSTLVToBuf [21:46:23]FM_MakeSignedData [21:46:23]FM_MakeSignedData [21:46:23]SAM_PROTO_SignData [21:46:23]wFMCommunicate request_size=4 [21:46:23]MH_SAM_APDU [21:46:23]CAPDU: 80 0D 01 02 [21:46:23]Write to MH i2c: E2 08 00 16 22 80 0D 01 02 00 00 00 00 B1 [21:46:23]Write i2c OK [21:46:23]MH_I2C_Read... [21:46:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:46:23]Read from MH i2c: E2 [21:46:23]MH_I2C_Read... [21:46:23]Read from MH i2c: E2 03 00 [21:46:23]MH_I2C_Read... [21:46:23]Read from MH i2c: E2 03 00 16 22 00 90 00 AC [21:46:23]RAPDU: 90 00 [21:46:23]wFMCommunicate OK [21:46:23]wFMCommunicate request_size=255 [21:46:23]MH_SAM_APDU [21:46:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 30 BC A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4C CF 01 00 35 04 06 00 7C [21:46:23]Write to MH i2c: E2 02 01 17 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 30 BC A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4C CF 01 00 35 04 06 00 7C 00 00 18 [21:46:23]Write i2c OK [21:46:23]MH_I2C_Read... [21:46:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:24]Read from MH i2c: E2 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: E2 03 00 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: E2 03 00 17 22 00 90 00 AD [21:46:24]RAPDU: 90 00 [21:46:24]wFMCommunicate OK [21:46:24]wFMCommunicate request_size=10 [21:46:24]MH_SAM_APDU [21:46:24]CAPDU: 80 0D 02 02 05 1C 06 1B 78 33 [21:46:24]Write to MH i2c: E2 0D 00 18 22 80 0D 02 02 05 00 1C 06 1B 78 33 00 00 A6 [21:46:24]Write i2c OK [21:46:24]MH_I2C_Read... [21:46:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:24]Read from MH i2c: E2 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: E2 03 00 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: E2 03 00 18 22 00 90 00 AE [21:46:24]RAPDU: 90 00 [21:46:24]wFMCommunicate OK [21:46:24]wFMCommunicate request_size=4 [21:46:24]MH_SAM_APDU [21:46:24]CAPDU: 80 0D 03 02 [21:46:24]Write to MH i2c: E2 08 00 19 22 80 0D 03 02 00 00 00 00 B6 [21:46:24]Write i2c OK [21:46:24]MH_I2C_Read... [21:46:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:46:24]Read from MH i2c: E2 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: E2 0B 00 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: E2 0B 00 19 22 00 C7 14 DE D8 70 DB E4 49 90 00 C0 [21:46:24]RAPDU: C7 14 DE D8 70 DB E4 49 90 00 [21:46:24]wFMCommunicate OK [21:46:24]SAM_PROTO_SignData done [21:46:24]FM_MakeSignedData done [21:46:24]CreateOFDProtocolMessage [21:46:24]wFMCommunicate request_size=4 [21:46:24]MH_SAM_APDU [21:46:24]CAPDU: 80 11 00 00 [21:46:24]Write to MH i2c: E2 08 00 1A 22 80 11 00 00 00 00 00 00 B6 [21:46:24]Write i2c OK [21:46:24]MH_I2C_Read... [21:46:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:24]Read from MH i2c: E2 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: E2 17 00 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: E2 17 00 1A 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 11 [21:46:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:46:24]wFMCommunicate OK [21:46:24]CreateOFDProtocolMessage done [21:46:24]OFDSenderStorePacket 118604 [21:46:24]StoreOFDPacket docnum=118604 [21:46:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C0 C8 07 01 25 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 30 BC A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4C CF 01 00 35 04 06 00 7C 1C 06 1B 78 33 C7 14 DE D8 70 DB E4 49 [21:46:24]CheckFolder [21:46:24]dirname=/storage/ofd_packets [21:46:24]CheckFolder done [21:46:24]ProducePacketName [21:46:24]name=ofd_packets/00118604 [21:46:24]NVStorageSaveData ofd_packets/00118604 [21:46:24]File name is /storage/ofd_packets/00118604 [21:46:24]Write 301 bytes [21:46:24]NVStorageSaveData done [21:46:24]OFDSenderStorePacket done [21:46:24]KKMCreateOFDPacket done [21:46:24]NVStorageSaveData kkm_last_timestamp [21:46:24]File name is /storage/kkm_last_timestamp [21:46:24]Write 4 bytes [21:46:24]NVStorageSaveData done [21:46:24]ExternCall_PrintAddStr [21:46:24]wPrintStart [21:46:24]Write to MH i2c: 01 00 00 1B 22 3D [21:46:24]Write i2c OK [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: 01 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: 01 07 00 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: 01 07 00 1B 22 00 00 00 00 00 FF 0F 52 [21:46:24]RasterBufferAndPrint [21:46:24]line Счет N : (1)949492 [21:46:24]line ИНН: 02508201610067 [21:46:24]line Контрольно-Кассовый Чек [21:46:24]line ПРОДАЖА [21:46:24]line ТРК (МРК, ГНК) : 41 [21:46:24]line Товар: 2710124130 [21:46:24]line Аи-92-К-4 [21:46:24]line 14.750 * 67.80 [21:46:24]line = 1000.05 [21:46:24]line НДС 12% НСП 1% [21:46:24]line > о реализуемом товаре [21:46:24]line ОКРУГЛЕНИЕ: -0.05 [21:46:24]line ИТОГО: 1000.00 [21:46:24]line НСП 1% : 8.85 [21:46:24]line НДС 12% : 106.20 [21:46:24]line Наличными: 0.00 [21:46:24]line Безнал.: 1000.00 [21:46:24]line Место: АЗС № 134 "Партнер Нефть" [21:46:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:46:24]line СНО: Общий режим [21:46:24]line Чек 273 28.07.2024 21:46 [21:46:24]line Смена: 433 ФФД: 1.0 [21:46:24]line ЗНМ: 0300000044 [21:46:24]line РНМ: 0000000000092660 [21:46:24]line Версия ККМ: 001 [21:46:24]line Платежная система: O! деньги [21:46:24]line ФМ: 0000000000874939 [21:46:24]line ФД: 118604 [21:46:24]line ФПД: 136459803392051 [21:46:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T214624&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118604&fm=136459803392051&tin=02508201610067®Number=0000000000092660&sum=100000 [21:46:24]written 0, free lines is 4095 [21:46:24]OFD Sender: Processing packet 118604 [packets to send 86, broken 85] [21:46:24]ProducePacketName [21:46:24]name=ofd_packets/00118604 [21:46:24]OFD Sender: To server: pG, [21:46:24]CommunicateWithHost lk.salyk.kg:30040 [21:46:24]ConnectInit lk.salyk.kg [21:46:24]Connected sock=9 [21:46:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C0 C8 07 01 25 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 30 BC A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4C CF 01 00 35 04 06 00 7C 1C 06 1B 78 33 C7 14 DE D8 70 DB E4 49 [21:46:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D8 BA 47 00 B8 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4C CF 01 00 F4 03 04 00 C0 69 A6 66 B6 04 01 00 00 45 32 D6 5D FD 7F 8B C7 [21:46:24]CommunicateWithHost err = 0 [21:46:24]CheckOFDResponse [21:46:24]1017 (14) - 77093643461234 [21:46:24]1041 (16) - 0000000000874939 [21:46:24]1040 (4) - 118604 [21:46:24]1012 (4) - 28.07.2024 15:54 [21:46:24]1206 (1) - 0 [21:46:24]OFD Sender: Remove packet 118604 [21:46:24]ProducePacketName [21:46:24]name=ofd_packets/00118604 [21:46:24]NVStorageDeleteData [21:46:24]Write to MH i2c: 01 00 00 45 22 67 [21:46:24]Write i2c OK [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: 01 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: 01 07 00 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: 01 07 00 45 22 00 00 00 00 00 D9 0C 53 [21:46:24]RasterBufferAndPrint [21:46:24]line [21:46:24]line [21:46:24]line [21:46:24]line [21:46:24]line [21:46:24]written 0, free lines is 3296 [21:46:25]MH_Cut [21:46:25]Write to MH i2c: D1 01 00 4C 22 01 40 [21:46:25]Write i2c OK [21:46:25]MH_I2C_Read... [21:46:25]Read from MH i2c: D1 [21:46:25]MH_I2C_Read... [21:46:25]Read from MH i2c: D1 01 00 [21:46:25]MH_I2C_Read... [21:46:25]Read from MH i2c: D1 01 00 4C 22 00 3F [21:46:25]Write to MH i2c: 01 00 00 4D 22 6F [21:46:25]Write i2c OK [21:46:25]MH_I2C_Read... [21:46:25]OFD Sender: No OFD packet to send [21:46:25]*** Cut start [21:46:25]*** Partial cut [21:46:25]*** CUTSNS_PIN = 1 [21:46:25]*** CUTSNS_PIN = 0 [21:46:26]*** Brake cut motor [21:46:26]Read from MH i2c: 01 [21:46:26]MH_I2C_Read... [21:46:26]*** Stop cut motor [21:46:26]*** Cut end [21:46:26]Read from MH i2c: 01 07 00 [21:46:26]MH_I2C_Read... [21:46:26]Read from MH i2c: 01 07 00 4D 22 00 00 00 00 00 FF 0F 84 [21:46:26]process_action close_receipt done [21:46:26]requested_data is exist [21:46:26]produce_requested_data [21:46:26]requested_item fm.sn is exist - process it [21:46:26]wFMCommunicate request_size=4 [21:46:26]MH_SAM_APDU [21:46:26]CAPDU: 80 11 00 00 [21:46:26]Write to MH i2c: E2 08 00 4E 22 80 11 00 00 00 00 00 00 EA [21:46:26]Write i2c OK [21:46:26]MH_I2C_Read... [21:46:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:26]Read from MH i2c: E2 [21:46:26]MH_I2C_Read... [21:46:26]Read from MH i2c: E2 17 00 [21:46:26]MH_I2C_Read... [21:46:26]Read from MH i2c: E2 17 00 4E 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 45 [21:46:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:46:26]wFMCommunicate OK [21:46:26]requested_item fd.num is exist - process it [21:46:26]SAM_PROTO_GetFieldsCounters [21:46:26]wFMCommunicate request_size=4 [21:46:26]MH_SAM_APDU [21:46:26]CAPDU: 80 13 00 00 [21:46:26]Write to MH i2c: E2 08 00 4F 22 80 13 00 00 00 00 00 00 ED [21:46:26]Write i2c OK [21:46:26]MH_I2C_Read... [21:46:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:46:26]Read from MH i2c: E2 [21:46:26]MH_I2C_Read... [21:46:26]Read from MH i2c: E2 62 00 [21:46:26]MH_I2C_Read... [21:46:26]Read from MH i2c: E2 62 00 4F 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4C CF 01 00 0E 04 04 00 B1 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 [21:46:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4C CF 01 00 0E 04 04 00 B1 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 [21:46:26]wFMCommunicate OK [21:46:26]SAM_PROTO_GetFieldsCounters done [21:46:26]requested_item shift.num is exist - process it [21:46:26]requested_item shift.opened is exist - process it [21:46:26]req_shift_opened [21:46:26]FM_GetShiftState [21:46:26]SAM_PROTO_GetShiftState [21:46:26]wFMCommunicate request_size=4 [21:46:26]MH_SAM_APDU [21:46:26]CAPDU: 80 13 01 00 [21:46:26]Write to MH i2c: E2 08 00 50 22 80 13 01 00 00 00 00 00 EF [21:46:26]Write i2c OK [21:46:26]MH_I2C_Read... [21:46:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:26]Read from MH i2c: E2 [21:46:26]MH_I2C_Read... [21:46:26]Read from MH i2c: E2 0E 00 [21:46:26]MH_I2C_Read... [21:46:26]Read from MH i2c: E2 0E 00 50 22 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 C6 [21:46:26]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:46:26]wFMCommunicate OK [21:46:26]SAM_PROTO_GetShiftState done [21:46:26]FM_GetShiftState done [21:46:26]req_shift_opened done [21:46:26]requested_item shift.open_date is exist - process it [21:46:26]req_shift_open_date [21:46:26]req_shift_open_date done [21:46:26]produce_requested_data done [21:46:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118604,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [21:46:26]process_action_free close_receipt [21:46:26]json_value_free [21:46:26]json_value_free done [21:46:26]process_json_proto returns [21:46:26]Send response to host [21:46:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118604,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [21:46:26]free response buf [21:46:26]execute_script done [21:46:26]execute_script returns [21:46:26]free content buf [21:46:26]Sock 7.Close socket [21:46:26]Sock 7.Thread stoped [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [21:46:55]OFD Sender: No OFD packet to send [21:47:00]OFD Sender: No OFD packet to send [21:47:05]OFD Sender: No OFD packet to send [21:47:10]OFD Sender: No OFD packet to send [21:47:15]OFD Sender: No OFD packet to send [21:47:20]OFD Sender: No OFD packet to send [21:47:25]OFD Sender: No OFD packet to send [21:47:30]OFD Sender: No OFD packet to send [21:47:35]OFD Sender: No OFD packet to send [21:47:40]OFD Sender: No OFD packet to send [21:47:45]OFD Sender: No OFD packet to send [21:47:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]OFD Sender: No OFD packet to send [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:35]OFD Sender: No OFD packet to send [21:48:40]OFD Sender: No OFD packet to send [21:48:45]OFD Sender: No OFD packet to send [21:48:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:10]OFD Sender: No OFD packet to send [21:49:15]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:25]OFD Sender: No OFD packet to send [21:49:30]OFD Sender: No OFD packet to send [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:49:50]OFD Sender: No OFD packet to send [21:49:55]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:04]accept exits with 10 [21:50:04]New connection [21:50:04]New thread 3067383140 created [21:50:04]Thread 3067239780 joined [21:50:04]Waiting for new connection... [21:50:04] Sock 10.Parse request [21:50:04]Sock 10.Check first char [21:50:04]Sock 10.First char is OK [21:50:04]request: POST /json_proto HTTP/1.0 [21:50:04]Method: POST [21:50:04]URL: /json_proto [21:50:04]Method is POST - this is cgi request [21:50:04]url: /json_proto [21:50:04]query_string will be loaded in cgi processing [21:50:04]execute_cgi json_proto POST (null) [21:50:04]execute_cgi path=json_proto method=POST [21:50:04]POST find Content-Length [21:50:04]Host: 172.17.45.7:8080 [21:50:04]Content-Length: 819 [21:50:04]Content-Type: application/json [21:50:04] [21:50:04]POST finish read [21:50:04]Found Content-Length = 819 [21:50:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.560, "sum" : 4005.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 4005.00, "payments": [ { "type": 1, "sum" : 4005.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:04]execute_script... [21:50:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.560, "sum" : 4005.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 4005.00, "payments": [ { "type": 1, "sum" : 4005.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:04]POST & json_proto [21:50:04]process_json_proto [21:50:04]json parsed OK: [21:50:04]protocol is kg_v1.0 [21:50:04]action value=close_receipt [21:50:04]process_action close_receipt [21:50:04]cmd_close_receipt [21:50:04]MH_GetDate [21:50:04]Write to MH i2c: F0 00 00 51 22 62 [21:50:04]Write i2c OK [21:50:04]MH_I2C_Read... [21:50:04]Read from MH i2c: F0 [21:50:04]MH_I2C_Read... [21:50:04]Read from MH i2c: F0 09 00 [21:50:04]MH_I2C_Read... [21:50:04]Read from MH i2c: F0 09 00 51 22 00 0E BD A6 66 90 0F 3E 66 85 [21:50:04]GetLastDocTimeStamp 1722203184 [21:50:04]current date 1722203406 [21:50:04]FM_GetShiftState [21:50:04]SAM_PROTO_GetShiftState [21:50:04]wFMCommunicate request_size=4 [21:50:04]MH_SAM_APDU [21:50:04]CAPDU: 80 13 01 00 [21:50:04]Write to MH i2c: E2 08 00 52 22 80 13 01 00 00 00 00 00 F1 [21:50:04]Write i2c OK [21:50:04]MH_I2C_Read... [21:50:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:04]Read from MH i2c: E2 [21:50:04]MH_I2C_Read... [21:50:04]Read from MH i2c: E2 0E 00 [21:50:04]MH_I2C_Read... [21:50:04]Read from MH i2c: E2 0E 00 52 22 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 C8 [21:50:04]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:50:04]wFMCommunicate OK [21:50:04]SAM_PROTO_GetShiftState done [21:50:04]FM_GetShiftState done [21:50:04]opened in 1722125364 [21:50:04]opened+sec_in_day 1722211764 [21:50:04]quantity*price = 400507 [21:50:04]sum+1 = 400508 [21:50:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 4005.00 НСП 1% : 35.44 НДС 12% : 425.32 Наличными: 0.00 Безнал.: 4005.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 274 28.07.2024 21:50 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118605 ФПД: 191613505534599 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T215006&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118605&fm=191613505534599&tin=02508201610067®Number=0000000000092660&sum=400500 [21:50:05]StoreToDocumentArchive [21:50:05]shift 433 fd 118605 [21:50:05]save to /storage/0433/doc_00118605 [21:50:05]save last doc name /storage/0433/doc_00118605 to /storage/kkm_last_doc_name [21:50:05]save OK [21:50:05]Clear old archive folders... [21:50:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:50:05]tlvbuf is 01EEEEA0 [21:50:05]SAM_PROTO_ClearQueue [21:50:05]wFMCommunicate request_size=4 [21:50:05]MH_SAM_APDU [21:50:05]CAPDU: 80 09 00 00 [21:50:05]Write to MH i2c: E2 08 00 5F 22 80 09 00 00 00 00 00 00 F3 [21:50:05]Write i2c OK [21:50:05]MH_I2C_Read... [21:50:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:50:05]Read from MH i2c: E2 [21:50:05]MH_I2C_Read... [21:50:05]Read from MH i2c: E2 03 00 [21:50:05]MH_I2C_Read... [21:50:05]Read from MH i2c: E2 03 00 5F 22 00 90 00 F5 [21:50:05]RAPDU: 90 00 [21:50:05]wFMCommunicate OK [21:50:05]SAM_PROTO_ClearQueue done [21:50:05]KKMCreateOFDPacket [21:50:05]OFDProtocolAddRootSTLVToBuf [21:50:05]FM_MakeSignedData [21:50:05]FM_MakeSignedData [21:50:05]SAM_PROTO_SignData [21:50:05]wFMCommunicate request_size=4 [21:50:05]MH_SAM_APDU [21:50:05]CAPDU: 80 0D 01 02 [21:50:05]Write to MH i2c: E2 08 00 60 22 80 0D 01 02 00 00 00 00 FB [21:50:05]Write i2c OK [21:50:05]MH_I2C_Read... [21:50:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:50:05]Read from MH i2c: E2 [21:50:05]MH_I2C_Read... [21:50:05]Read from MH i2c: E2 03 00 [21:50:05]MH_I2C_Read... [21:50:05]Read from MH i2c: E2 03 00 60 22 00 90 00 F6 [21:50:05]RAPDU: 90 00 [21:50:05]wFMCommunicate OK [21:50:05]wFMCommunicate request_size=255 [21:50:05]MH_SAM_APDU [21:50:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7B 1C 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 1C 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 A6 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 1C 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 0E BD A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4D CF 01 00 35 04 06 00 AE 45 7E EE [21:50:05]Write to MH i2c: E2 02 01 61 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7B 1C 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 1C 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 A6 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 1C 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 0E BD A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4D CF 01 00 35 04 06 00 AE 45 7E EE 00 00 F1 [21:50:05]Write i2c OK [21:50:05]MH_I2C_Read... [21:50:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:06]Read from MH i2c: E2 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: E2 03 00 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: E2 03 00 61 22 00 90 00 F7 [21:50:06]RAPDU: 90 00 [21:50:06]wFMCommunicate OK [21:50:06]wFMCommunicate request_size=7 [21:50:06]MH_SAM_APDU [21:50:06]CAPDU: 80 0D 02 02 02 7A 87 [21:50:06]Write to MH i2c: E2 0A 00 62 22 80 0D 02 02 02 00 7A 87 00 00 03 [21:50:06]Write i2c OK [21:50:06]MH_I2C_Read... [21:50:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:06]Read from MH i2c: E2 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: E2 03 00 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: E2 03 00 62 22 00 90 00 F8 [21:50:06]RAPDU: 90 00 [21:50:06]wFMCommunicate OK [21:50:06]wFMCommunicate request_size=4 [21:50:06]MH_SAM_APDU [21:50:06]CAPDU: 80 0D 03 02 [21:50:06]Write to MH i2c: E2 08 00 63 22 80 0D 03 02 00 00 00 00 00 [21:50:06]Write i2c OK [21:50:06]MH_I2C_Read... [21:50:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:50:06]Read from MH i2c: E2 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: E2 0B 00 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: E2 0B 00 63 22 00 FA 4C 69 63 0B 9C 4A 7E 90 00 82 [21:50:06]RAPDU: FA 4C 69 63 0B 9C 4A 7E 90 00 [21:50:06]wFMCommunicate OK [21:50:06]SAM_PROTO_SignData done [21:50:06]FM_MakeSignedData done [21:50:06]CreateOFDProtocolMessage [21:50:06]wFMCommunicate request_size=4 [21:50:06]MH_SAM_APDU [21:50:06]CAPDU: 80 11 00 00 [21:50:06]Write to MH i2c: E2 08 00 64 22 80 11 00 00 00 00 00 00 00 [21:50:06]Write i2c OK [21:50:06]MH_I2C_Read... [21:50:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:06]Read from MH i2c: E2 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: E2 17 00 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: E2 17 00 64 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5B [21:50:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:50:06]wFMCommunicate OK [21:50:06]CreateOFDProtocolMessage done [21:50:06]OFDSenderStorePacket 118605 [21:50:06]StoreOFDPacket docnum=118605 [21:50:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 31 AC 04 01 9D 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7B 1C 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 1C 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 A6 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 1C 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 0E BD A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4D CF 01 00 35 04 06 00 AE 45 7E EE 7A 87 FA 4C 69 63 0B 9C 4A 7E [21:50:06]CheckFolder [21:50:06]dirname=/storage/ofd_packets [21:50:06]CheckFolder done [21:50:06]ProducePacketName [21:50:06]name=ofd_packets/00118605 [21:50:06]NVStorageSaveData ofd_packets/00118605 [21:50:06]File name is /storage/ofd_packets/00118605 [21:50:06]Write 298 bytes [21:50:06]NVStorageSaveData done [21:50:06]OFDSenderStorePacket done [21:50:06]KKMCreateOFDPacket done [21:50:06]NVStorageSaveData kkm_last_timestamp [21:50:06]File name is /storage/kkm_last_timestamp [21:50:06]Write 4 bytes [21:50:06]NVStorageSaveData done [21:50:06]ExternCall_PrintAddStr [21:50:06]wPrintStart [21:50:06]Write to MH i2c: 01 00 00 65 22 87 [21:50:06]Write i2c OK [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: 01 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: 01 07 00 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: 01 07 00 65 22 00 00 00 00 00 FF 0F 9C [21:50:06]RasterBufferAndPrint [21:50:06]line Счет N : (1)949493 [21:50:06]line ИНН: 02508201610067 [21:50:06]line Контрольно-Кассовый Чек [21:50:06]line ПРОДАЖА [21:50:06]line ТРК (МРК, ГНК) : 44 [21:50:06]line Товар: 2710194800 [21:50:06]line ДТ-К-5 [21:50:06]line 52.560 * 76.20 [21:50:06]line = 4005.07 [21:50:06]line НДС 12% НСП 1% [21:50:06]line > о реализуемом товаре [21:50:06]line ОКРУГЛЕНИЕ: -0.07 [21:50:06]line ИТОГО: 4005.00 [21:50:06]line НСП 1% : 35.44 [21:50:06]line НДС 12% : 425.32 [21:50:06]line Наличными: 0.00 [21:50:06]line Безнал.: 4005.00 [21:50:06]line Место: АЗС № 134 "Партнер Нефть" [21:50:06]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:50:06]line СНО: Общий режим [21:50:06]line Чек 274 28.07.2024 21:50 [21:50:06]line Смена: 433 ФФД: 1.0 [21:50:06]line ЗНМ: 0300000044 [21:50:06]line РНМ: 0000000000092660 [21:50:06]line Версия ККМ: 001 [21:50:06]line Платежная система: O! деньги [21:50:06]line ФМ: 0000000000874939 [21:50:06]line ФД: 118605 [21:50:06]line ФПД: 191613505534599 [21:50:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T215006&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118605&fm=191613505534599&tin=02508201610067®Number=0000000000092660&sum=400500 [21:50:06]OFD Sender: Processing packet 118605 [packets to send 86, broken 85] [21:50:06]ProducePacketName [21:50:06]name=ofd_packets/00118605 [21:50:06]OFD Sender: To server: pG, [21:50:06]CommunicateWithHost lk.salyk.kg:30040 [21:50:06]ConnectInit lk.salyk.kg [21:50:06]written 0, free lines is 4095 [21:50:06]Connected sock=9 [21:50:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 31 AC 04 01 9D 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7B 1C 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 1C 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 A6 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 1C 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 0E BD A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4D CF 01 00 35 04 06 00 AE 45 7E EE 7A 87 FA 4C 69 63 0B 9C 4A 7E [21:50:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 60 B0 47 00 47 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 39 33 39 10 04 04 00 4D CF 01 00 F4 03 04 00 9E 6A A6 66 B6 04 01 00 00 D5 45 69 58 6B B1 19 C9 [21:50:06]CommunicateWithHost err = 0 [21:50:06]CheckOFDResponse [21:50:06]1017 (14) - 77093643461234 [21:50:06]1041 (16) - 0000000000874939 [21:50:06]1040 (4) - 118605 [21:50:06]1012 (4) - 28.07.2024 15:58 [21:50:06]1206 (1) - 0 [21:50:06]OFD Sender: Remove packet 118605 [21:50:06]ProducePacketName [21:50:06]name=ofd_packets/00118605 [21:50:06]NVStorageDeleteData [21:50:06]Write to MH i2c: 01 00 00 8F 22 B1 [21:50:06]Write i2c OK [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: 01 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: 01 07 00 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: 01 07 00 8F 22 00 00 00 00 00 D4 0C 98 [21:50:06]RasterBufferAndPrint [21:50:06]line [21:50:06]line [21:50:06]line [21:50:06]line [21:50:06]line [21:50:06]written 0, free lines is 3290 [21:50:06]MH_Cut [21:50:06]Write to MH i2c: D1 01 00 96 22 01 8A [21:50:06]Write i2c OK [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: D1 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: D1 01 00 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: D1 01 00 96 22 00 89 [21:50:06]Write to MH i2c: 01 00 00 97 22 B9 [21:50:06]Write i2c OK [21:50:06]MH_I2C_Read... [21:50:07]OFD Sender: No OFD packet to send [21:50:07]*** Cut start [21:50:07]*** Partial cut [21:50:07]*** CUTSNS_PIN = 1 [21:50:07]*** CUTSNS_PIN = 0 [21:50:07]*** Brake cut motor [21:50:08]Read from MH i2c: 01 [21:50:08]MH_I2C_Read... [21:50:08]*** Stop cut motor [21:50:08]*** Cut end [21:50:08]Read from MH i2c: 01 07 00 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: 01 07 00 97 22 00 00 00 00 00 FF 0F CE [21:50:08]process_action close_receipt done [21:50:08]requested_data is exist [21:50:08]produce_requested_data [21:50:08]requested_item fm.sn is exist - process it [21:50:08]wFMCommunicate request_size=4 [21:50:08]MH_SAM_APDU [21:50:08]CAPDU: 80 11 00 00 [21:50:08]Write to MH i2c: E2 08 00 98 22 80 11 00 00 00 00 00 00 34 [21:50:08]Write i2c OK [21:50:08]MH_I2C_Read... [21:50:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:08]Read from MH i2c: E2 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 17 00 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 17 00 98 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8F [21:50:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:50:08]wFMCommunicate OK [21:50:08]requested_item fd.num is exist - process it [21:50:08]SAM_PROTO_GetFieldsCounters [21:50:08]wFMCommunicate request_size=4 [21:50:08]MH_SAM_APDU [21:50:08]CAPDU: 80 13 00 00 [21:50:08]Write to MH i2c: E2 08 00 99 22 80 13 00 00 00 00 00 00 37 [21:50:08]Write i2c OK [21:50:08]MH_I2C_Read... [21:50:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:50:08]Read from MH i2c: E2 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 62 00 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 62 00 99 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4D CF 01 00 0E 04 04 00 B1 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 66 [21:50:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4D CF 01 00 0E 04 04 00 B1 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 [21:50:08]wFMCommunicate OK [21:50:08]SAM_PROTO_GetFieldsCounters done [21:50:08]requested_item shift.num is exist - process it [21:50:08]requested_item shift.opened is exist - process it [21:50:08]req_shift_opened [21:50:08]FM_GetShiftState [21:50:08]SAM_PROTO_GetShiftState [21:50:08]wFMCommunicate request_size=4 [21:50:08]MH_SAM_APDU [21:50:08]CAPDU: 80 13 01 00 [21:50:08]Write to MH i2c: E2 08 00 9A 22 80 13 01 00 00 00 00 00 39 [21:50:08]Write i2c OK [21:50:08]MH_I2C_Read... [21:50:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:08]Read from MH i2c: E2 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 0E 00 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 0E 00 9A 22 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 10 [21:50:08]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:50:08]wFMCommunicate OK [21:50:08]SAM_PROTO_GetShiftState done [21:50:08]FM_GetShiftState done [21:50:08]req_shift_opened done [21:50:08]requested_item shift.open_date is exist - process it [21:50:08]req_shift_open_date [21:50:08]req_shift_open_date done [21:50:08]produce_requested_data done [21:50:08]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118605,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [21:50:08]process_action_free close_receipt [21:50:08]json_value_free [21:50:08]json_value_free done [21:50:08]process_json_proto returns [21:50:08]Send response to host [21:50:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118605,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [21:50:08]free response buf [21:50:08]execute_script done [21:50:08]execute_script returns [21:50:08]free content buf [21:50:08]Sock 10.Close socket [21:50:08]Sock 10.Thread stoped [21:50:12]OFD Sender: No OFD packet to send [21:50:17]OFD Sender: No OFD packet to send [21:50:22]OFD Sender: No OFD packet to send [21:50:27]OFD Sender: No OFD packet to send [21:50:32]OFD Sender: No OFD packet to send [21:50:37]OFD Sender: No OFD packet to send [21:50:42]OFD Sender: No OFD packet to send [21:50:47]OFD Sender: No OFD packet to send [21:50:52]OFD Sender: No OFD packet to send [21:50:57]OFD Sender: No OFD packet to send [21:51:02]OFD Sender: No OFD packet to send [21:51:07]OFD Sender: No OFD packet to send [21:51:12]OFD Sender: No OFD packet to send [21:51:17]OFD Sender: No OFD packet to send [21:51:22]OFD Sender: No OFD packet to send [21:51:27]OFD Sender: No OFD packet to send [21:51:32]OFD Sender: No OFD packet to send [21:51:37]OFD Sender: No OFD packet to send [21:51:42]OFD Sender: No OFD packet to send [21:51:47]OFD Sender: No OFD packet to send [21:51:52]OFD Sender: No OFD packet to send [21:51:57]OFD Sender: No OFD packet to send [21:52:02]OFD Sender: No OFD packet to send [21:52:07]OFD Sender: No OFD packet to send [21:52:12]OFD Sender: No OFD packet to send [21:52:17]OFD Sender: No OFD packet to send [21:52:22]OFD Sender: No OFD packet to send [21:52:27]OFD Sender: No OFD packet to send [21:52:32]OFD Sender: No OFD packet to send [21:52:37]OFD Sender: No OFD packet to send [21:52:42]OFD Sender: No OFD packet to send [21:52:47]OFD Sender: No OFD packet to send [21:52:52]OFD Sender: No OFD packet to send [21:52:57]OFD Sender: No OFD packet to send [21:53:02]OFD Sender: No OFD packet to send [21:53:07]OFD Sender: No OFD packet to send [21:53:12]OFD Sender: No OFD packet to send [21:53:17]OFD Sender: No OFD packet to send [21:53:22]OFD Sender: No OFD packet to send [21:53:27]OFD Sender: No OFD packet to send [21:53:32]OFD Sender: No OFD packet to send [21:53:37]OFD Sender: No OFD packet to send [21:53:42]OFD Sender: No OFD packet to send [21:53:47]OFD Sender: No OFD packet to send [21:53:52]OFD Sender: No OFD packet to send [21:53:57]OFD Sender: No OFD packet to send [21:54:02]OFD Sender: No OFD packet to send [21:54:07]OFD Sender: No OFD packet to send [21:54:12]OFD Sender: No OFD packet to send [21:54:17]OFD Sender: No OFD packet to send [21:54:22]OFD Sender: No OFD packet to send [21:54:27]OFD Sender: No OFD packet to send [21:54:32]OFD Sender: No OFD packet to send [21:54:33]accept exits with 7 [21:54:33]New connection [21:54:33]New thread 3067239780 created [21:54:33]Thread 3067383140 joined [21:54:33]Waiting for new connection... [21:54:33] Sock 7.Parse request [21:54:33]Sock 7.Check first char [21:54:33]Sock 7.First char is OK [21:54:33]request: POST /json_proto HTTP/1.0 [21:54:33]Method: POST [21:54:33]URL: /json_proto [21:54:33]Method is POST - this is cgi request [21:54:33]url: /json_proto [21:54:33]query_string will be loaded in cgi processing [21:54:33]execute_cgi json_proto POST (null) [21:54:33]execute_cgi path=json_proto method=POST [21:54:33]POST find Content-Length [21:54:33]Host: 172.17.45.7:8080 [21:54:33]Content-Length: 674 [21:54:33]Content-Type: application/json [21:54:33] [21:54:33]POST finish read [21:54:33]Found Content-Length = 674 [21:54:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:33]execute_script... [21: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)949494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:33]POST & json_proto [21:54:33]process_json_proto [21:54:33]json parsed OK: [21:54:33]protocol is kg_v1.0 [21:54:33]action value=close_receipt [21:54:33]process_action close_receipt [21:54:33]cmd_close_receipt [21:54:33]MH_GetDate [21:54:33]Write to MH i2c: F0 00 00 9B 22 AC [21:54:33]Write i2c OK [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: F0 [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: F0 09 00 [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: F0 09 00 9B 22 00 1B BE A6 66 90 0F 3E 66 DD [21:54:33]GetLastDocTimeStamp 1722203406 [21:54:33]current date 1722203675 [21:54:33]FM_GetShiftState [21:54:33]SAM_PROTO_GetShiftState [21:54:33]wFMCommunicate request_size=4 [21:54:33]MH_SAM_APDU [21:54:33]CAPDU: 80 13 01 00 [21:54:33]Write to MH i2c: E2 08 00 9C 22 80 13 01 00 00 00 00 00 3B [21:54:33]Write i2c OK [21:54:33]MH_I2C_Read... [21:54:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:33]Read from MH i2c: E2 [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: E2 0E 00 [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: E2 0E 00 9C 22 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 12 [21:54:33]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:54:33]wFMCommunicate OK [21:54:33]SAM_PROTO_GetShiftState done [21:54:33]FM_GetShiftState done [21:54:33]opened in 1722125364 [21:54:33]opened+sec_in_day 1722211764 [21:54:33]quantity*price = 50063 [21:54:33]sum+1 = 50064 [21:54:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 275 28.07.2024 21:54 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118606 ФПД: 26271578960071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T215435&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118606&fm=26271578960071&tin=02508201610067®Number=0000000000092660&sum=50000 [21:54:34]StoreToDocumentArchive [21:54:34]shift 433 fd 118606 [21:54:34]save to /storage/0433/doc_00118606 [21:54:34]save last doc name /storage/0433/doc_00118606 to /storage/kkm_last_doc_name [21:54:34]save OK [21:54:34]Clear old archive folders... [21:54:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:54:34]tlvbuf is B6F2A3D0 [21:54:34]SAM_PROTO_ClearQueue [21:54:34]wFMCommunicate request_size=4 [21:54:34]MH_SAM_APDU [21:54:34]CAPDU: 80 09 00 00 [21:54:34]Write to MH i2c: E2 08 00 A9 22 80 09 00 00 00 00 00 00 3D [21:54:34]Write i2c OK [21:54:34]MH_I2C_Read... [21:54:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:54:34]Read from MH i2c: E2 [21:54:34]MH_I2C_Read... [21:54:34]Read from MH i2c: E2 03 00 [21:54:34]MH_I2C_Read... [21:54:34]Read from MH i2c: E2 03 00 A9 22 00 90 00 3F [21:54:34]RAPDU: 90 00 [21:54:34]wFMCommunicate OK [21:54:34]SAM_PROTO_ClearQueue done [21:54:34]KKMCreateOFDPacket [21:54:34]OFDProtocolAddRootSTLVToBuf [21:54:34]FM_MakeSignedData [21:54:34]FM_MakeSignedData [21:54:34]SAM_PROTO_SignData [21:54:34]wFMCommunicate request_size=4 [21:54:34]MH_SAM_APDU [21:54:34]CAPDU: 80 0D 01 02 [21:54:34]Write to MH i2c: E2 08 00 AA 22 80 0D 01 02 00 00 00 00 45 [21:54:34]Write i2c OK [21:54:34]MH_I2C_Read... [21:54:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:54:34]Read from MH i2c: E2 [21:54:34]MH_I2C_Read... [21:54:34]Read from MH i2c: E2 03 00 [21:54:34]MH_I2C_Read... [21:54:34]Read from MH i2c: E2 03 00 AA 22 00 90 00 40 [21:54:34]RAPDU: 90 00 [21:54:34]wFMCommunicate OK [21:54:34]wFMCommunicate request_size=255 [21:54:34]MH_SAM_APDU [21:54:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 1B BE A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4E CF 01 00 35 04 06 00 17 E4 D4 21 [21:54:34]Write to MH i2c: E2 02 01 AB 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 1B BE A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4E CF 01 00 35 04 06 00 17 E4 D4 21 00 00 16 [21:54:34]Write i2c OK [21:54:34]MH_I2C_Read... [21:54:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:34]Read from MH i2c: E2 [21:54:34]MH_I2C_Read... [21:54:34]Read from MH i2c: E2 03 00 [21:54:34]MH_I2C_Read... [21:54:34]Read from MH i2c: E2 03 00 AB 22 00 90 00 41 [21:54:34]RAPDU: 90 00 [21:54:34]wFMCommunicate OK [21:54:34]wFMCommunicate request_size=7 [21:54:34]MH_SAM_APDU [21:54:34]CAPDU: 80 0D 02 02 02 B0 C7 [21:54:34]Write to MH i2c: E2 0A 00 AC 22 80 0D 02 02 02 00 B0 C7 00 00 C3 [21:54:34]Write i2c OK [21:54:34]MH_I2C_Read... [21:54:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:35]Read from MH i2c: E2 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 03 00 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 03 00 AC 22 00 90 00 42 [21:54:35]RAPDU: 90 00 [21:54:35]wFMCommunicate OK [21:54:35]wFMCommunicate request_size=4 [21:54:35]MH_SAM_APDU [21:54:35]CAPDU: 80 0D 03 02 [21:54:35]Write to MH i2c: E2 08 00 AD 22 80 0D 03 02 00 00 00 00 4A [21:54:35]Write i2c OK [21:54:35]MH_I2C_Read... [21:54:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:54:35]Read from MH i2c: E2 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 0B 00 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 0B 00 AD 22 00 D9 68 28 DD 77 AD 60 1D 90 00 32 [21:54:35]RAPDU: D9 68 28 DD 77 AD 60 1D 90 00 [21:54:35]wFMCommunicate OK [21:54:35]SAM_PROTO_SignData done [21:54:35]FM_MakeSignedData done [21:54:35]CreateOFDProtocolMessage [21:54:35]wFMCommunicate request_size=4 [21:54:35]MH_SAM_APDU [21:54:35]CAPDU: 80 11 00 00 [21:54:35]Write to MH i2c: E2 08 00 AE 22 80 11 00 00 00 00 00 00 4A [21:54:35]Write i2c OK [21:54:35]MH_I2C_Read... [21:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:35]Read from MH i2c: E2 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 17 00 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 17 00 AE 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A5 [21:54:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:54:35]wFMCommunicate OK [21:54:35]CreateOFDProtocolMessage done [21:54:35]OFDSenderStorePacket 118606 [21:54:35]StoreOFDPacket docnum=118606 [21:54:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 5A 8C 04 01 BC C0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 1B BE A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4E CF 01 00 35 04 06 00 17 E4 D4 21 B0 C7 D9 68 28 DD 77 AD 60 1D [21:54:35]CheckFolder [21:54:35]dirname=/storage/ofd_packets [21:54:35]CheckFolder done [21:54:35]ProducePacketName [21:54:35]name=ofd_packets/00118606 [21:54:35]NVStorageSaveData ofd_packets/00118606 [21:54:35]File name is /storage/ofd_packets/00118606 [21:54:35]Write 298 bytes [21:54:35]NVStorageSaveData done [21:54:35]OFDSenderStorePacket done [21:54:35]KKMCreateOFDPacket done [21:54:35]NVStorageSaveData kkm_last_timestamp [21:54:35]File name is /storage/kkm_last_timestamp [21:54:35]Write 4 bytes [21:54:35]NVStorageSaveData done [21:54:35]ExternCall_PrintAddStr [21:54:35]wPrintStart [21:54:35]Write to MH i2c: 01 00 00 AF 22 D1 [21:54:35]Write i2c OK [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: 01 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: 01 07 00 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: 01 07 00 AF 22 00 00 00 00 00 FF 0F E6 [21:54:35]RasterBufferAndPrint [21:54:35]line Счет N : (1)949494 [21:54:35]line ИНН: 02508201610067 [21:54:35]line Контрольно-Кассовый Чек [21:54:35]line ПРОДАЖА [21:54:35]line ТРК (МРК, ГНК) : 21 [21:54:35]line Товар: 2710194800 [21:54:35]line ДТ-К-5 [21:54:35]line 6.570 * 76.20 [21:54:35]line = 500.63 [21:54:35]line НДС 12% НСП 1% [21:54:35]line > о реализуемом товаре [21:54:35]line ОКРУГЛЕНИЕ: -0.63 [21:54:35]line ИТОГО: 500.00 [21:54:35]line Внесено: 500.00 [21:54:35]line СДАЧА: 0.00 [21:54:35]line НСП 1% : 4.43 [21:54:35]line НДС 12% : 53.16 [21:54:35]line Наличными: 500.00 [21:54:35]line Безнал.: 0.00 [21:54:35]line Место: АЗС № 134 "Партнер Нефть" [21:54:35]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:54:35]line СНО: Общий режим [21:54:35]line Чек 275 28.07.2024 21:54 [21:54:35]line Смена: 433 ФФД: 1.0 [21:54:35]line ЗНМ: 0300000044 [21:54:35]line РНМ: 0000000000092660 [21:54:35]line Версия ККМ: 001 [21:54:35]line ФМ: 0000000000874939 [21:54:35]line ФД: 118606 [21:54:35]line ФПД: 26271578960071 [21:54:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T215435&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118606&fm=26271578960071&tin=02508201610067®Number=0000000000092660&sum=50000 [21:54:35]OFD Sender: Processing packet 118606 [packets to send 86, broken 85] [21:54:35]ProducePacketName [21:54:35]name=ofd_packets/00118606 [21:54:35]OFD Sender: To server: pG, [21:54:35]CommunicateWithHost lk.salyk.kg:30040 [21:54:35]ConnectInit lk.salyk.kg [21:54:35]written 0, free lines is 4095 [21:54:35]Connected sock=10 [21: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 39 33 39 0C 01 00 00 5A 8C 04 01 BC C0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 1B BE A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4E CF 01 00 35 04 06 00 17 E4 D4 21 B0 C7 D9 68 28 DD 77 AD 60 1D [21: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 39 33 39 4F 00 00 00 EA A5 47 00 EA 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 39 33 39 10 04 04 00 4E CF 01 00 F4 03 04 00 AB 6B A6 66 B6 04 01 00 00 6B 9A 10 49 E9 E3 04 F9 [21:54:35]CommunicateWithHost err = 0 [21:54:35]CheckOFDResponse [21:54:35]1017 (14) - 77093643461234 [21:54:35]1041 (16) - 0000000000874939 [21:54:35]1040 (4) - 118606 [21:54:35]1012 (4) - 28.07.2024 16:02 [21:54:35]1206 (1) - 0 [21:54:35]OFD Sender: Remove packet 118606 [21:54:35]ProducePacketName [21:54:35]name=ofd_packets/00118606 [21:54:35]NVStorageDeleteData [21:54:35]Write to MH i2c: 01 00 00 D9 22 FB [21:54:35]Write i2c OK [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: 01 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: 01 07 00 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: 01 07 00 D9 22 00 00 00 00 00 CC 0C DA [21:54:35]RasterBufferAndPrint [21:54:35]line [21:54:35]line [21:54:35]line [21:54:35]line [21:54:35]line [21:54:35]written 0, free lines is 3283 [21:54:35]MH_Cut [21:54:35]Write to MH i2c: D1 01 00 E0 22 01 D4 [21:54:35]Write i2c OK [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: D1 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: D1 01 00 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: D1 01 00 E0 22 00 D3 [21:54:35]Write to MH i2c: 01 00 00 E1 22 03 [21:54:35]Write i2c OK [21:54:35]MH_I2C_Read... [21:54:36]OFD Sender: No OFD packet to send [21:54:36]*** Cut start [21:54:36]*** Partial cut [21:54:36]*** CUTSNS_PIN = 1 [21:54:36]*** CUTSNS_PIN = 0 [21:54:36]*** Brake cut motor [21:54:37]Read from MH i2c: 01 [21:54:37]MH_I2C_Read... [21:54:37]*** Stop cut motor [21:54:37]*** Cut end [21:54:37]Read from MH i2c: 01 07 00 [21:54:37]MH_I2C_Read... [21:54:37]Read from MH i2c: 01 07 00 E1 22 00 00 00 00 00 FF 0F 18 [21:54:37]process_action close_receipt done [21:54:37]requested_data is exist [21:54:37]produce_requested_data [21:54:37]requested_item fm.sn is exist - process it [21:54:37]wFMCommunicate request_size=4 [21:54:37]MH_SAM_APDU [21:54:37]CAPDU: 80 11 00 00 [21:54:37]Write to MH i2c: E2 08 00 E2 22 80 11 00 00 00 00 00 00 7E [21:54:37]Write i2c OK [21:54:37]MH_I2C_Read... [21:54:37]Read from MH i2c: E2 [21:54:37]MH_I2C_Read... [21:54:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:37]Read from MH i2c: E2 17 00 [21:54:37]MH_I2C_Read... [21:54:37]Read from MH i2c: E2 17 00 E2 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D9 [21:54:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:54:37]wFMCommunicate OK [21:54:37]requested_item fd.num is exist - process it [21:54:37]SAM_PROTO_GetFieldsCounters [21:54:37]wFMCommunicate request_size=4 [21:54:37]MH_SAM_APDU [21:54:37]CAPDU: 80 13 00 00 [21:54:37]Write to MH i2c: E2 08 00 E3 22 80 13 00 00 00 00 00 00 81 [21:54:37]Write i2c OK [21:54:37]MH_I2C_Read... [21:54:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:54:37]Read from MH i2c: E2 [21:54:37]MH_I2C_Read... [21:54:37]Read from MH i2c: E2 62 00 [21:54:37]MH_I2C_Read... [21:54:37]Read from MH i2c: E2 62 00 E3 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4E CF 01 00 0E 04 04 00 B1 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 B4 [21:54:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4E CF 01 00 0E 04 04 00 B1 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 [21:54:37]wFMCommunicate OK [21:54:37]SAM_PROTO_GetFieldsCounters done [21:54:37]requested_item shift.num is exist - process it [21:54:37]requested_item shift.opened is exist - process it [21:54:37]req_shift_opened [21:54:37]FM_GetShiftState [21:54:37]SAM_PROTO_GetShiftState [21:54:37]wFMCommunicate request_size=4 [21:54:37]MH_SAM_APDU [21:54:37]CAPDU: 80 13 01 00 [21:54:37]Write to MH i2c: E2 08 00 E4 22 80 13 01 00 00 00 00 00 83 [21:54:37]Write i2c OK [21:54:37]MH_I2C_Read... [21:54:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:37]Read from MH i2c: E2 [21:54:37]MH_I2C_Read... [21:54:37]Read from MH i2c: E2 0E 00 [21:54:37]MH_I2C_Read... [21:54:37]Read from MH i2c: E2 0E 00 E4 22 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 5A [21:54:37]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:54:37]wFMCommunicate OK [21:54:37]SAM_PROTO_GetShiftState done [21:54:37]FM_GetShiftState done [21:54:37]req_shift_opened done [21:54:37]requested_item shift.open_date is exist - process it [21:54:37]req_shift_open_date [21:54:37]req_shift_open_date done [21:54:37]produce_requested_data done [21:54:37]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118606,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [21:54:37]process_action_free close_receipt [21:54:37]json_value_free [21:54:37]json_value_free done [21:54:37]process_json_proto returns [21:54:37]Send response to host [21:54:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118606,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [21:54:37]free response buf [21:54:37]execute_script done [21:54:37]execute_script returns [21:54:37]free content buf [21:54:37]Sock 7.Close socket [21:54:37]Sock 7.Thread stoped [21:54:41]OFD Sender: No OFD packet to send [21:54:46]OFD Sender: No OFD packet to send [21:54:51]OFD Sender: No OFD packet to send [21:54:56]OFD Sender: No OFD packet to send [21:55:01]OFD Sender: No OFD packet to send [21:55:06]OFD Sender: No OFD packet to send [21:55:11]OFD Sender: No OFD packet to send [21:55:16]OFD Sender: No OFD packet to send [21:55:21]OFD Sender: No OFD packet to send [21:55:26]OFD Sender: No OFD packet to send [21:55:31]OFD Sender: No OFD packet to send [21:55:36]OFD Sender: No OFD packet to send [21:55:41]OFD Sender: No OFD packet to send [21:55:46]OFD Sender: No OFD packet to send [21:55:51]OFD Sender: No OFD packet to send [21:55:56]OFD Sender: No OFD packet to send [21:56:01]OFD Sender: No OFD packet to send [21:56:06]OFD Sender: No OFD packet to send [21:56:11]OFD Sender: No OFD packet to send [21:56:16]OFD Sender: No OFD packet to send [21:56:21]OFD Sender: No OFD packet to send [21:56:26]OFD Sender: No OFD packet to send [21:56:31]OFD Sender: No OFD packet to send [21:56:36]OFD Sender: No OFD packet to send [21:56:41]OFD Sender: No OFD packet to send [21:56:46]OFD Sender: No OFD packet to send [21:56:51]OFD Sender: No OFD packet to send [21:56:56]OFD Sender: No OFD packet to send [21:57:01]OFD Sender: No OFD packet to send [21:57:06]OFD Sender: No OFD packet to send [21:57:11]OFD Sender: No OFD packet to send [21:57:16]OFD Sender: No OFD packet to send [21:57:21]OFD Sender: No OFD packet to send [21:57:26]OFD Sender: No OFD packet to send [21:57:31]OFD Sender: No OFD packet to send [21:57:31]accept exits with 9 [21:57:31]New connection [21:57:31]New thread 3067383140 created [21:57:31]Thread 3067239780 joined [21:57:31]Waiting for new connection... [21:57:31] Sock 9.Parse request [21:57:31]Sock 9.Check first char [21:57:31]Sock 9.First char is OK [21:57:31]request: POST /json_proto HTTP/1.0 [21:57:31]Method: POST [21:57:31]URL: /json_proto [21:57:31]Method is POST - this is cgi request [21:57:31]url: /json_proto [21:57:31]query_string will be loaded in cgi processing [21:57:31]execute_cgi json_proto POST (null) [21:57:31]execute_cgi path=json_proto method=POST [21:57:31]POST find Content-Length [21:57:31]Host: 172.17.45.7:8080 [21:57:31]Content-Length: 677 [21:57:31]Content-Type: application/json [21:57:31] [21:57:31]POST finish read [21:57:31]Found Content-Length = 677 [21:57:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.010, "sum" : 475.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 475.00, "total" : 475.00, "payments": [ { "type": 0, "sum" : 475.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:31]execute_script... [21:57: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)949495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.010, "sum" : 475.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 475.00, "total" : 475.00, "payments": [ { "type": 0, "sum" : 475.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:31]POST & json_proto [21:57:31]process_json_proto [21:57:31]json parsed OK: [21:57:31]protocol is kg_v1.0 [21:57:31]action value=close_receipt [21:57:31]process_action close_receipt [21:57:31]cmd_close_receipt [21:57:31]MH_GetDate [21:57:31]Write to MH i2c: F0 00 00 E5 22 F6 [21:57:31]Write i2c OK [21:57:31]MH_I2C_Read... [21:57:31]Read from MH i2c: F0 [21:57:31]MH_I2C_Read... [21:57:31]Read from MH i2c: F0 09 00 [21:57:31]MH_I2C_Read... [21:57:31]Read from MH i2c: F0 09 00 E5 22 00 CE BE A6 66 90 0F 3E 66 DA [21:57:31]GetLastDocTimeStamp 1722203675 [21:57:31]current date 1722203854 [21:57:31]FM_GetShiftState [21:57:31]SAM_PROTO_GetShiftState [21:57:31]wFMCommunicate request_size=4 [21:57:31]MH_SAM_APDU [21:57:31]CAPDU: 80 13 01 00 [21:57:31]Write to MH i2c: E2 08 00 E6 22 80 13 01 00 00 00 00 00 85 [21:57:31]Write i2c OK [21:57:31]MH_I2C_Read... [21:57:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:31]Read from MH i2c: E2 [21:57:31]MH_I2C_Read... [21:57:31]Read from MH i2c: E2 0E 00 [21:57:31]MH_I2C_Read... [21:57:31]Read from MH i2c: E2 0E 00 E6 22 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 5C [21:57:31]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:57:31]wFMCommunicate OK [21:57:31]SAM_PROTO_GetShiftState done [21:57:31]FM_GetShiftState done [21:57:31]opened in 1722125364 [21:57:31]opened+sec_in_day 1722211764 [21:57:31]quantity*price = 47527 [21:57:31]sum+1 = 47529 [21:57:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 475.00 Внесено: 475.00 СДАЧА: 0.00 НСП 1% : 4.21 НДС 12% : 50.47 Наличными: 475.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 276 28.07.2024 21:57 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118607 ФПД: 220798178869789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T215734&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118607&fm=220798178869789&tin=02508201610067®Number=0000000000092660&sum=47500 [21:57:32]StoreToDocumentArchive [21:57:32]shift 433 fd 118607 [21:57:32]save to /storage/0433/doc_00118607 [21:57:32]save last doc name /storage/0433/doc_00118607 to /storage/kkm_last_doc_name [21:57:32]save OK [21:57:32]Clear old archive folders... [21:57:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:57:32]tlvbuf is 01E4D6C0 [21:57:32]SAM_PROTO_ClearQueue [21:57:32]wFMCommunicate request_size=4 [21:57:32]MH_SAM_APDU [21:57:32]CAPDU: 80 09 00 00 [21:57:32]Write to MH i2c: E2 08 00 F3 22 80 09 00 00 00 00 00 00 87 [21:57:32]Write i2c OK [21:57:32]MH_I2C_Read... [21:57:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:57:32]Read from MH i2c: E2 [21:57:32]MH_I2C_Read... [21:57:32]Read from MH i2c: E2 03 00 [21:57:32]MH_I2C_Read... [21:57:32]Read from MH i2c: E2 03 00 F3 22 00 90 00 89 [21:57:32]RAPDU: 90 00 [21:57:32]wFMCommunicate OK [21:57:32]SAM_PROTO_ClearQueue done [21:57:32]KKMCreateOFDPacket [21:57:32]OFDProtocolAddRootSTLVToBuf [21:57:32]FM_MakeSignedData [21:57:32]FM_MakeSignedData [21:57:32]SAM_PROTO_SignData [21:57:32]wFMCommunicate request_size=4 [21:57:32]MH_SAM_APDU [21:57:32]CAPDU: 80 0D 01 02 [21:57:32]Write to MH i2c: E2 08 00 F4 22 80 0D 01 02 00 00 00 00 8F [21:57:32]Write i2c OK [21:57:32]MH_I2C_Read... [21:57:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:57:32]Read from MH i2c: E2 [21:57:32]MH_I2C_Read... [21:57:32]Read from MH i2c: E2 03 00 [21:57:32]MH_I2C_Read... [21:57:32]Read from MH i2c: E2 03 00 F4 22 00 90 00 8A [21:57:32]RAPDU: 90 00 [21:57:32]wFMCommunicate OK [21:57:32]wFMCommunicate request_size=255 [21:57:32]MH_SAM_APDU [21:57: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 34 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A8 B9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 13 00 00 00 00 07 04 06 00 8C B9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 CE BE A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4F CF 01 00 35 04 06 00 C8 [21:57:32]Write to MH i2c: E2 02 01 F5 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 34 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A8 B9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 13 00 00 00 00 07 04 06 00 8C B9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 CE BE A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4F CF 01 00 35 04 06 00 C8 00 00 52 [21:57:32]Write i2c OK [21:57:32]MH_I2C_Read... [21:57:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:33]Read from MH i2c: E2 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 03 00 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 03 00 F5 22 00 90 00 8B [21:57:33]RAPDU: 90 00 [21:57:33]wFMCommunicate OK [21:57:33]wFMCommunicate request_size=10 [21:57:33]MH_SAM_APDU [21:57:33]CAPDU: 80 0D 02 02 05 D0 95 04 C2 1D [21:57:33]Write to MH i2c: E2 0D 00 F6 22 80 0D 02 02 05 00 D0 95 04 C2 1D 00 00 E4 [21:57:33]Write i2c OK [21:57:33]MH_I2C_Read... [21:57:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:33]Read from MH i2c: E2 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 03 00 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 03 00 F6 22 00 90 00 8C [21:57:33]RAPDU: 90 00 [21:57:33]wFMCommunicate OK [21:57:33]wFMCommunicate request_size=4 [21:57:33]MH_SAM_APDU [21:57:33]CAPDU: 80 0D 03 02 [21:57:33]Write to MH i2c: E2 08 00 F7 22 80 0D 03 02 00 00 00 00 94 [21:57:33]Write i2c OK [21:57:33]MH_I2C_Read... [21:57:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:57:33]Read from MH i2c: E2 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 0B 00 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 0B 00 F7 22 00 68 03 B7 CB 4A A9 A7 B6 90 00 D2 [21:57:33]RAPDU: 68 03 B7 CB 4A A9 A7 B6 90 00 [21:57:33]wFMCommunicate OK [21:57:33]SAM_PROTO_SignData done [21:57:33]FM_MakeSignedData done [21:57:33]CreateOFDProtocolMessage [21:57:33]wFMCommunicate request_size=4 [21:57:33]MH_SAM_APDU [21:57:33]CAPDU: 80 11 00 00 [21:57:33]Write to MH i2c: E2 08 00 F8 22 80 11 00 00 00 00 00 00 94 [21:57:33]Write i2c OK [21:57:33]MH_I2C_Read... [21:57:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:33]Read from MH i2c: E2 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 17 00 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 17 00 F8 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EF [21:57:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:57:33]wFMCommunicate OK [21:57:33]CreateOFDProtocolMessage done [21:57:33]OFDSenderStorePacket 118607 [21:57:33]StoreOFDPacket docnum=118607 [21:57:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 79 47 07 01 8D B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A8 B9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 13 00 00 00 00 07 04 06 00 8C B9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 CE BE A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4F CF 01 00 35 04 06 00 C8 D0 95 04 C2 1D 68 03 B7 CB 4A A9 A7 B6 [21:57:33]CheckFolder [21:57:33]dirname=/storage/ofd_packets [21:57:33]CheckFolder done [21:57:33]ProducePacketName [21:57:33]name=ofd_packets/00118607 [21:57:33]NVStorageSaveData ofd_packets/00118607 [21:57:33]File name is /storage/ofd_packets/00118607 [21:57:33]Write 301 bytes [21:57:33]NVStorageSaveData done [21:57:33]OFDSenderStorePacket done [21:57:33]KKMCreateOFDPacket done [21:57:33]NVStorageSaveData kkm_last_timestamp [21:57:33]File name is /storage/kkm_last_timestamp [21:57:33]Write 4 bytes [21:57:33]NVStorageSaveData done [21:57:33]ExternCall_PrintAddStr [21:57:33]wPrintStart [21:57:33]Write to MH i2c: 01 00 00 F9 22 1B [21:57:33]Write i2c OK [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: 01 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: 01 07 00 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: 01 07 00 F9 22 00 00 00 00 00 FF 0F 30 [21:57:33]RasterBufferAndPrint [21:57:33]line Счет N : (1)949495 [21:57:33]line ИНН: 02508201610067 [21:57:33]line Контрольно-Кассовый Чек [21:57:33]line ПРОДАЖА [21:57:33]line ТРК (МРК, ГНК) : 31 [21:57:33]line Товар: 2710124130 [21:57:33]line Аи-92-К-4 [21:57:33]line 7.010 * 67.80 [21:57:33]line = 475.28 [21:57:33]line НДС 12% НСП 1% [21:57:33]line > о реализуемом товаре [21:57:33]line ОКРУГЛЕНИЕ: -0.28 [21:57:33]line ИТОГО: 475.00 [21:57:33]line Внесено: 475.00 [21:57:33]line СДАЧА: 0.00 [21:57:33]line НСП 1% : 4.21 [21:57:33]line НДС 12% : 50.47 [21:57:33]line Наличными: 475.00 [21:57:33]line Безнал.: 0.00 [21:57:33]line Место: АЗС № 134 "Партнер Нефть" [21:57:33]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:57:33]line СНО: Общий режим [21:57:33]line Чек 276 28.07.2024 21:57 [21:57:33]line Смена: 433 ФФД: 1.0 [21:57:33]line ЗНМ: 0300000044 [21:57:33]line РНМ: 0000000000092660 [21:57:33]line Версия ККМ: 001 [21:57:33]line ФМ: 0000000000874939 [21:57:33]line ФД: 118607 [21:57:33]line ФПД: 220798178869789 [21:57:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T215734&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118607&fm=220798178869789&tin=02508201610067®Number=0000000000092660&sum=47500 [21:57:33]OFD Sender: Processing packet 118607 [packets to send 86, broken 85] [21:57:33]ProducePacketName [21:57:33]name=ofd_packets/00118607 [21:57:33]OFD Sender: To server: pG, [21:57:33]CommunicateWithHost lk.salyk.kg:30040 [21:57:33]ConnectInit lk.salyk.kg [21:57:33]written 0, free lines is 4095 [21:57:33]Connected sock=10 [21:57:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 79 47 07 01 8D B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A8 B9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 13 00 00 00 00 07 04 06 00 8C B9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 CE BE A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4F CF 01 00 35 04 06 00 C8 D0 95 04 C2 1D 68 03 B7 CB 4A A9 A7 B6 [21: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 39 33 39 4F 00 00 00 C2 FC 47 00 A8 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 39 33 39 10 04 04 00 4F CF 01 00 F4 03 04 00 5D 6C A6 66 B6 04 01 00 00 F8 EE 2E 69 48 C9 93 F6 [21:57:34]CommunicateWithHost err = 0 [21:57:34]CheckOFDResponse [21:57:34]1017 (14) - 77093643461234 [21:57:34]1041 (16) - 0000000000874939 [21:57:34]1040 (4) - 118607 [21:57:34]1012 (4) - 28.07.2024 16:05 [21:57:34]1206 (1) - 0 [21:57:34]OFD Sender: Remove packet 118607 [21:57:34]ProducePacketName [21:57:34]name=ofd_packets/00118607 [21:57:34]NVStorageDeleteData [21:57:34]Write to MH i2c: 01 00 00 23 23 46 [21:57:34]Write i2c OK [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: 01 [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: 01 07 00 [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: 01 07 00 23 23 00 00 00 00 00 D8 0C 31 [21:57:34]RasterBufferAndPrint [21:57:34]line [21:57:34]line [21:57:34]line [21:57:34]line [21:57:34]line [21:57:34]written 0, free lines is 3295 [21:57:34]MH_Cut [21:57:34]Write to MH i2c: D1 01 00 2A 23 01 1F [21:57:34]Write i2c OK [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: D1 [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: D1 01 00 [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: D1 01 00 2A 23 00 1E [21:57:34]Write to MH i2c: 01 00 00 2B 23 4E [21:57:34]Write i2c OK [21:57:34]MH_I2C_Read... [21:57:34]OFD Sender: No OFD packet to send [21:57:34]*** Cut start [21:57:34]*** Partial cut [21:57:34]*** CUTSNS_PIN = 1 [21:57:34]*** CUTSNS_PIN = 0 [21:57:35]*** Brake cut motor [21:57:35]Read from MH i2c: 01 [21:57:35]MH_I2C_Read... [21:57:35]*** Stop cut motor [21:57:35]*** Cut end [21:57:35]Read from MH i2c: 01 07 00 [21:57:35]MH_I2C_Read... [21:57:35]Read from MH i2c: 01 07 00 2B 23 00 00 00 00 00 FF 0F 63 [21:57:35]process_action close_receipt done [21:57:35]requested_data is exist [21:57:35]produce_requested_data [21:57:35]requested_item fm.sn is exist - process it [21:57:35]wFMCommunicate request_size=4 [21:57:35]MH_SAM_APDU [21:57:35]CAPDU: 80 11 00 00 [21:57:35]Write to MH i2c: E2 08 00 2C 23 80 11 00 00 00 00 00 00 C9 [21:57:35]Write i2c OK [21:57:35]MH_I2C_Read... [21:57:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:35]Read from MH i2c: E2 [21:57:35]MH_I2C_Read... [21:57:35]Read from MH i2c: E2 17 00 [21:57:35]MH_I2C_Read... [21:57:35]Read from MH i2c: E2 17 00 2C 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 24 [21:57:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:57:35]wFMCommunicate OK [21:57:35]requested_item fd.num is exist - process it [21:57:35]SAM_PROTO_GetFieldsCounters [21:57:35]wFMCommunicate request_size=4 [21:57:35]MH_SAM_APDU [21:57:35]CAPDU: 80 13 00 00 [21:57:35]Write to MH i2c: E2 08 00 2D 23 80 13 00 00 00 00 00 00 CC [21:57:35]Write i2c OK [21:57:35]MH_I2C_Read... [21:57:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:57:35]Read from MH i2c: E2 [21:57:35]MH_I2C_Read... [21:57:35]Read from MH i2c: E2 62 00 [21:57:35]MH_I2C_Read... [21:57:35]Read from MH i2c: E2 62 00 2D 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4F CF 01 00 0E 04 04 00 B1 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 03 [21:57:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4F CF 01 00 0E 04 04 00 B1 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 [21:57:35]wFMCommunicate OK [21:57:35]SAM_PROTO_GetFieldsCounters done [21:57:35]requested_item shift.num is exist - process it [21:57:35]requested_item shift.opened is exist - process it [21:57:35]req_shift_opened [21:57:35]FM_GetShiftState [21:57:35]SAM_PROTO_GetShiftState [21:57:35]wFMCommunicate request_size=4 [21:57:35]MH_SAM_APDU [21:57:35]CAPDU: 80 13 01 00 [21:57:35]Write to MH i2c: E2 08 00 2E 23 80 13 01 00 00 00 00 00 CE [21:57:35]Write i2c OK [21:57:35]MH_I2C_Read... [21:57:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:35]Read from MH i2c: E2 [21:57:35]MH_I2C_Read... [21:57:35]Read from MH i2c: E2 0E 00 [21:57:35]MH_I2C_Read... [21:57:35]Read from MH i2c: E2 0E 00 2E 23 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A5 [21:57:35]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [21:57:35]wFMCommunicate OK [21:57:35]SAM_PROTO_GetShiftState done [21:57:35]FM_GetShiftState done [21:57:35]req_shift_opened done [21:57:35]requested_item shift.open_date is exist - process it [21:57:35]req_shift_open_date [21:57:35]req_shift_open_date done [21:57:35]produce_requested_data done [21:57:35]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118607,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [21:57:35]process_action_free close_receipt [21:57:35]json_value_free [21:57:35]json_value_free done [21:57:35]process_json_proto returns [21:57:35]Send response to host [21:57:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118607,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [21:57:35]free response buf [21:57:35]execute_script done [21:57:35]execute_script returns [21:57:35]free content buf [21:57:35]Sock 9.Close socket [21:57:35]Sock 9.Thread stoped [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]OFD Sender: No OFD packet to send [22:00:04]OFD Sender: No OFD packet to send [22:00:09]OFD Sender: No OFD packet to send [22:00:14]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00:37]accept exits with 7 [22:00:37]New connection [22:00:37]New thread 3067239780 created [22:00:37]Thread 3067383140 joined [22:00:37]Waiting for new connection... [22:00:37] Sock 7.Parse request [22:00:37]Sock 7.Check first char [22:00:37]Sock 7.First char is OK [22:00:37]request: POST /json_proto HTTP/1.0 [22:00:37]Method: POST [22:00:37]URL: /json_proto [22:00:37]Method is POST - this is cgi request [22:00:37]url: /json_proto [22:00:37]query_string will be loaded in cgi processing [22:00:37]execute_cgi json_proto POST (null) [22:00:37]execute_cgi path=json_proto method=POST [22:00:37]POST find Content-Length [22:00:37]Host: 172.17.45.7:8080 [22:00:37]Content-Length: 677 [22:00:37]Content-Type: application/json [22:00:37] [22:00:37]POST finish read [22:00:37]Found Content-Length = 677 [22:00:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:00:37]execute_script... [22:00: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)949496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:00:37]POST & json_proto [22:00:37]process_json_proto [22:00:37]json parsed OK: [22:00:37]protocol is kg_v1.0 [22:00:37]action value=close_receipt [22:00:37]process_action close_receipt [22:00:37]cmd_close_receipt [22:00:37]MH_GetDate [22:00:37]Write to MH i2c: F0 00 00 2F 23 41 [22:00:37]Write i2c OK [22:00:37]MH_I2C_Read... [22:00:37]Read from MH i2c: F0 [22:00:37]MH_I2C_Read... [22:00:37]Read from MH i2c: F0 09 00 [22:00:37]MH_I2C_Read... [22:00:37]Read from MH i2c: F0 09 00 2F 23 00 87 BF A6 66 90 0F 3E 66 DF [22:00:37]GetLastDocTimeStamp 1722203854 [22:00:37]current date 1722204039 [22:00:37]FM_GetShiftState [22:00:37]SAM_PROTO_GetShiftState [22:00:37]wFMCommunicate request_size=4 [22:00:37]MH_SAM_APDU [22:00:37]CAPDU: 80 13 01 00 [22:00:37]Write to MH i2c: E2 08 00 30 23 80 13 01 00 00 00 00 00 D0 [22:00:37]Write i2c OK [22:00:37]MH_I2C_Read... [22:00:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:37]Read from MH i2c: E2 [22:00:37]MH_I2C_Read... [22:00:37]Read from MH i2c: E2 0E 00 [22:00:37]MH_I2C_Read... [22:00:37]Read from MH i2c: E2 0E 00 30 23 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A7 [22:00:37]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [22:00:37]wFMCommunicate OK [22:00:37]SAM_PROTO_GetShiftState done [22:00:37]FM_GetShiftState done [22:00:37]opened in 1722125364 [22:00:37]opened+sec_in_day 1722211764 [22:00:37]quantity*price = 50036 [22:00:37]sum+1 = 50037 [22:00:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 277 28.07.2024 22:00 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118608 ФПД: 277666920769684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T220040&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118608&fm=277666920769684&tin=02508201610067®Number=0000000000092660&sum=50000 [22:00:38]StoreToDocumentArchive [22:00:38]shift 433 fd 118608 [22:00:38]save to /storage/0433/doc_00118608 [22:00:38]save last doc name /storage/0433/doc_00118608 to /storage/kkm_last_doc_name [22:00:38]save OK [22:00:38]Clear old archive folders... [22:00:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:00:38]tlvbuf is 01EBE0F0 [22:00:38]SAM_PROTO_ClearQueue [22:00:38]wFMCommunicate request_size=4 [22:00:38]MH_SAM_APDU [22:00:38]CAPDU: 80 09 00 00 [22:00:38]Write to MH i2c: E2 08 00 3D 23 80 09 00 00 00 00 00 00 D2 [22:00:38]Write i2c OK [22:00:38]MH_I2C_Read... [22:00:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:00:38]Read from MH i2c: E2 [22:00:38]MH_I2C_Read... [22:00:38]Read from MH i2c: E2 03 00 [22:00:38]MH_I2C_Read... [22:00:38]Read from MH i2c: E2 03 00 3D 23 00 90 00 D4 [22:00:38]RAPDU: 90 00 [22:00:38]wFMCommunicate OK [22:00:38]SAM_PROTO_ClearQueue done [22:00:38]KKMCreateOFDPacket [22:00:38]OFDProtocolAddRootSTLVToBuf [22:00:38]FM_MakeSignedData [22:00:38]FM_MakeSignedData [22:00:38]SAM_PROTO_SignData [22:00:38]wFMCommunicate request_size=4 [22:00:38]MH_SAM_APDU [22:00:38]CAPDU: 80 0D 01 02 [22:00:38]Write to MH i2c: E2 08 00 3E 23 80 0D 01 02 00 00 00 00 DA [22:00:38]Write i2c OK [22:00:38]MH_I2C_Read... [22:00:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:00:38]Read from MH i2c: E2 [22:00:38]MH_I2C_Read... [22:00:38]Read from MH i2c: E2 03 00 [22:00:38]MH_I2C_Read... [22:00:38]Read from MH i2c: E2 03 00 3E 23 00 90 00 D5 [22:00:38]RAPDU: 90 00 [22:00:38]wFMCommunicate OK [22:00:38]wFMCommunicate request_size=255 [22:00:38]MH_SAM_APDU [22:00: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 88 BF A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 50 CF 01 00 35 04 06 00 FC [22:00:38]Write to MH i2c: E2 02 01 3F 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 88 BF A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 50 CF 01 00 35 04 06 00 FC 00 00 95 [22:00:38]Write i2c OK [22:00:38]MH_I2C_Read... [22:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:39]Read from MH i2c: E2 [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: E2 03 00 [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: E2 03 00 3F 23 00 90 00 D6 [22:00:39]RAPDU: 90 00 [22:00:39]wFMCommunicate OK [22:00:39]wFMCommunicate request_size=10 [22:00:39]MH_SAM_APDU [22:00:39]CAPDU: 80 0D 02 02 05 89 5E 2D A8 94 [22:00:39]Write to MH i2c: E2 0D 00 40 23 80 0D 02 02 05 00 89 5E 2D A8 94 00 00 37 [22:00:39]Write i2c OK [22:00:39]MH_I2C_Read... [22:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:39]Read from MH i2c: E2 [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: E2 03 00 [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: E2 03 00 40 23 00 90 00 D7 [22:00:39]RAPDU: 90 00 [22:00:39]wFMCommunicate OK [22:00:39]wFMCommunicate request_size=4 [22:00:39]MH_SAM_APDU [22:00:39]CAPDU: 80 0D 03 02 [22:00:39]Write to MH i2c: E2 08 00 41 23 80 0D 03 02 00 00 00 00 DF [22:00:39]Write i2c OK [22:00:39]MH_I2C_Read... [22:00:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:00:39]Read from MH i2c: E2 [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: E2 0B 00 [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: E2 0B 00 41 23 00 C9 6C A1 79 96 3D BC AD 90 00 6B [22:00:39]RAPDU: C9 6C A1 79 96 3D BC AD 90 00 [22:00:39]wFMCommunicate OK [22:00:39]SAM_PROTO_SignData done [22:00:39]FM_MakeSignedData done [22:00:39]CreateOFDProtocolMessage [22:00:39]wFMCommunicate request_size=4 [22:00:39]MH_SAM_APDU [22:00:39]CAPDU: 80 11 00 00 [22:00:39]Write to MH i2c: E2 08 00 42 23 80 11 00 00 00 00 00 00 DF [22:00:39]Write i2c OK [22:00:39]MH_I2C_Read... [22:00:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:39]Read from MH i2c: E2 [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: E2 17 00 [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: E2 17 00 42 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3A [22:00:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:00:39]wFMCommunicate OK [22:00:39]CreateOFDProtocolMessage done [22:00:39]OFDSenderStorePacket 118608 [22:00:39]StoreOFDPacket docnum=118608 [22:00:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D6 A3 07 01 48 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 88 BF A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 50 CF 01 00 35 04 06 00 FC 89 5E 2D A8 94 C9 6C A1 79 96 3D BC AD [22:00:39]CheckFolder [22:00:39]dirname=/storage/ofd_packets [22:00:39]CheckFolder done [22:00:39]ProducePacketName [22:00:39]name=ofd_packets/00118608 [22:00:39]NVStorageSaveData ofd_packets/00118608 [22:00:39]File name is /storage/ofd_packets/00118608 [22:00:39]Write 301 bytes [22:00:39]NVStorageSaveData done [22:00:39]OFDSenderStorePacket done [22:00:39]KKMCreateOFDPacket done [22:00:39]NVStorageSaveData kkm_last_timestamp [22:00:39]File name is /storage/kkm_last_timestamp [22:00:39]Write 4 bytes [22:00:39]NVStorageSaveData done [22:00:39]ExternCall_PrintAddStr [22:00:39]wPrintStart [22:00:39]Write to MH i2c: 01 00 00 43 23 66 [22:00:39]Write i2c OK [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: 01 [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: 01 07 00 [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: 01 07 00 43 23 00 00 00 00 00 FF 0F 7B [22:00:39]RasterBufferAndPrint [22:00:39]line Счет N : (1)949496 [22:00:39]line ИНН: 02508201610067 [22:00:39]line Контрольно-Кассовый Чек [22:00:39]line ПРОДАЖА [22:00:39]line ТРК (МРК, ГНК) : 41 [22:00:39]line Товар: 2710124130 [22:00:39]line Аи-92-К-4 [22:00:39]line 7.380 * 67.80 [22:00:39]line = 500.36 [22:00:39]line НДС 12% НСП 1% [22:00:39]line > о реализуемом товаре [22:00:39]line ОКРУГЛЕНИЕ: -0.36 [22:00:39]line ИТОГО: 500.00 [22:00:39]line Внесено: 500.00 [22:00:39]line СДАЧА: 0.00 [22:00:39]line НСП 1% : 4.43 [22:00:39]line НДС 12% : 53.14 [22:00:39]line Наличными: 500.00 [22:00:39]line Безнал.: 0.00 [22:00:39]line Место: АЗС № 134 "Партнер Нефть" [22:00:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:00:39]line СНО: Общий режим [22:00:39]line Чек 277 28.07.2024 22:00 [22:00:39]line Смена: 433 ФФД: 1.0 [22:00:39]line ЗНМ: 0300000044 [22:00:39]line РНМ: 0000000000092660 [22:00:39]line Версия ККМ: 001 [22:00:39]line ФМ: 0000000000874939 [22:00:39]line ФД: 118608 [22:00:39]line ФПД: 277666920769684 [22:00:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T220040&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118608&fm=277666920769684&tin=02508201610067®Number=0000000000092660&sum=50000 [22:00:39]written 0, free lines is 4095 [22:00:39]OFD Sender: Processing packet 118608 [packets to send 86, broken 85] [22:00:39]ProducePacketName [22:00:39]name=ofd_packets/00118608 [22:00:39]OFD Sender: To server: pG, [22:00:39]CommunicateWithHost lk.salyk.kg:30040 [22:00:39]ConnectInit lk.salyk.kg [22:00:39]Connected sock=10 [22:00: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 39 33 39 0F 01 00 00 D6 A3 07 01 48 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 88 BF A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 50 CF 01 00 35 04 06 00 FC 89 5E 2D A8 94 C9 6C A1 79 96 3D BC AD [22:00:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EF BB 47 00 FB 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 39 33 39 10 04 04 00 50 CF 01 00 F4 03 04 00 17 6D A6 66 B6 04 01 00 00 98 37 55 56 AD 0B 00 06 [22:00:39]CommunicateWithHost err = 0 [22:00:39]CheckOFDResponse [22:00:39]1017 (14) - 77093643461234 [22:00:39]1041 (16) - 0000000000874939 [22:00:39]1040 (4) - 118608 [22:00:39]1012 (4) - 28.07.2024 16:08 [22:00:39]1206 (1) - 0 [22:00:39]OFD Sender: Remove packet 118608 [22:00:39]ProducePacketName [22:00:39]name=ofd_packets/00118608 [22:00:39]NVStorageDeleteData [22:00:40]Write to MH i2c: 01 00 00 6D 23 90 [22:00:40]Write i2c OK [22:00:40]MH_I2C_Read... [22:00:40]Read from MH i2c: 01 [22:00:40]MH_I2C_Read... [22:00:40]Read from MH i2c: 01 07 00 [22:00:40]MH_I2C_Read... [22:00:40]Read from MH i2c: 01 07 00 6D 23 00 00 00 00 00 D3 0C 76 [22:00:40]RasterBufferAndPrint [22:00:40]line [22:00:40]line [22:00:40]line [22:00:40]line [22:00:40]line [22:00:40]written 0, free lines is 3289 [22:00:40]MH_Cut [22:00:40]Write to MH i2c: D1 01 00 74 23 01 69 [22:00:40]Write i2c OK [22:00:40]MH_I2C_Read... [22:00:40]Read from MH i2c: D1 [22:00:40]MH_I2C_Read... [22:00:40]Read from MH i2c: D1 01 00 [22:00:40]MH_I2C_Read... [22:00:40]Read from MH i2c: D1 01 00 74 23 00 68 [22:00:40]Write to MH i2c: 01 00 00 75 23 98 [22:00:40]Write i2c OK [22:00:40]MH_I2C_Read... [22:00:40]OFD Sender: No OFD packet to send [22:00:40]*** Cut start [22:00:40]*** Partial cut [22:00:40]*** CUTSNS_PIN = 1 [22:00:40]*** CUTSNS_PIN = 0 [22:00:41]*** Brake cut motor [22:00:41]Read from MH i2c: 01 [22:00:41]MH_I2C_Read... [22:00:41]*** Stop cut motor [22:00:41]*** Cut end [22:00:41]Read from MH i2c: 01 07 00 [22:00:41]MH_I2C_Read... [22:00:41]Read from MH i2c: 01 07 00 75 23 00 00 00 00 00 FF 0F AD [22:00:41]process_action close_receipt done [22:00:41]requested_data is exist [22:00:41]produce_requested_data [22:00:41]requested_item fm.sn is exist - process it [22:00:41]wFMCommunicate request_size=4 [22:00:41]MH_SAM_APDU [22:00:41]CAPDU: 80 11 00 00 [22:00:41]Write to MH i2c: E2 08 00 76 23 80 11 00 00 00 00 00 00 13 [22:00:41]Write i2c OK [22:00:41]MH_I2C_Read... [22:00:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:41]Read from MH i2c: E2 [22:00:41]MH_I2C_Read... [22:00:41]Read from MH i2c: E2 17 00 [22:00:41]MH_I2C_Read... [22:00:41]Read from MH i2c: E2 17 00 76 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6E [22:00:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:00:41]wFMCommunicate OK [22:00:41]requested_item fd.num is exist - process it [22:00:41]SAM_PROTO_GetFieldsCounters [22:00:41]wFMCommunicate request_size=4 [22:00:41]MH_SAM_APDU [22:00:41]CAPDU: 80 13 00 00 [22:00:41]Write to MH i2c: E2 08 00 77 23 80 13 00 00 00 00 00 00 16 [22:00:41]Write i2c OK [22:00:41]MH_I2C_Read... [22:00:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:00:41]Read from MH i2c: E2 [22:00:41]MH_I2C_Read... [22:00:41]Read from MH i2c: E2 62 00 [22:00:41]MH_I2C_Read... [22:00:41]Read from MH i2c: E2 62 00 77 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 50 CF 01 00 0E 04 04 00 B1 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 51 [22:00:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 50 CF 01 00 0E 04 04 00 B1 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 [22:00:41]wFMCommunicate OK [22:00:41]SAM_PROTO_GetFieldsCounters done [22:00:41]requested_item shift.num is exist - process it [22:00:41]requested_item shift.opened is exist - process it [22:00:41]req_shift_opened [22:00:41]FM_GetShiftState [22:00:41]SAM_PROTO_GetShiftState [22:00:41]wFMCommunicate request_size=4 [22:00:41]MH_SAM_APDU [22:00:41]CAPDU: 80 13 01 00 [22:00:41]Write to MH i2c: E2 08 00 78 23 80 13 01 00 00 00 00 00 18 [22:00:41]Write i2c OK [22:00:41]MH_I2C_Read... [22:00:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:41]Read from MH i2c: E2 [22:00:41]MH_I2C_Read... [22:00:41]Read from MH i2c: E2 0E 00 [22:00:41]MH_I2C_Read... [22:00:41]Read from MH i2c: E2 0E 00 78 23 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 EF [22:00:41]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [22:00:41]wFMCommunicate OK [22:00:41]SAM_PROTO_GetShiftState done [22:00:41]FM_GetShiftState done [22:00:41]req_shift_opened done [22:00:41]requested_item shift.open_date is exist - process it [22:00:41]req_shift_open_date [22:00:41]req_shift_open_date done [22:00:41]produce_requested_data done [22:00:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118608,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [22:00:41]process_action_free close_receipt [22:00:41]json_value_free [22:00:41]json_value_free done [22:00:41]process_json_proto returns [22:00:41]Send response to host [22:00:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118608,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [22:00:41]free response buf [22:00:41]execute_script done [22:00:41]execute_script returns [22:00:41]free content buf [22:00:41]Sock 7.Close socket [22:00:41]Sock 7.Thread stoped [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:25]OFD Sender: No OFD packet to send [22:01:30]OFD Sender: No OFD packet to send [22:01:35]OFD Sender: No OFD packet to send [22:01:40]OFD Sender: No OFD packet to send [22:01:45]OFD Sender: No OFD packet to send [22:01:50]OFD Sender: No OFD packet to send [22:01:55]OFD Sender: No OFD packet to send [22:02:00]OFD Sender: No OFD packet to send [22:02:05]OFD Sender: No OFD packet to send [22:02:10]OFD Sender: No OFD packet to send [22:02:15]OFD Sender: No OFD packet to send [22:02:20]OFD Sender: No OFD packet to send [22:02:25]OFD Sender: No OFD packet to send [22:02:30]OFD Sender: No OFD packet to send [22:02:35]OFD Sender: No OFD packet to send [22:02:40]OFD Sender: No OFD packet to send [22:02:45]OFD Sender: No OFD packet to send [22:02:50]OFD Sender: No OFD packet to send [22:02:55]OFD Sender: No OFD packet to send [22:03:00]OFD Sender: No OFD packet to send [22:03:05]OFD Sender: No OFD packet to send [22:03:10]OFD Sender: No OFD packet to send [22:03:15]OFD Sender: No OFD packet to send [22:03:20]OFD Sender: No OFD packet to send [22:03:25]OFD Sender: No OFD packet to send [22:03:30]OFD Sender: No OFD packet to send [22:03:35]OFD Sender: No OFD packet to send [22:03:40]OFD Sender: No OFD packet to send [22:03:45]OFD Sender: No OFD packet to send [22:03:50]OFD Sender: No OFD packet to send [22:03:55]OFD Sender: No OFD packet to send [22:04:00]OFD Sender: No OFD packet to send [22:04:05]OFD Sender: No OFD packet to send [22:04:10]OFD Sender: No OFD packet to send [22:04:15]OFD Sender: No OFD packet to send [22:04:20]OFD Sender: No OFD packet to send [22:04:25]OFD Sender: No OFD packet to send [22:04:30]OFD Sender: No OFD packet to send [22:04:35]OFD Sender: No OFD packet to send [22:04:40]OFD Sender: No OFD packet to send [22:04:45]OFD Sender: No OFD packet to send [22:04:50]OFD Sender: No OFD packet to send [22:04:55]OFD Sender: No OFD packet to send [22:05:00]OFD Sender: No OFD packet to send [22:05:05]OFD Sender: No OFD packet to send [22:05:10]OFD Sender: No OFD packet to send [22:05:15]OFD Sender: No OFD packet to send [22:05:20]OFD Sender: No OFD packet to send [22:05:25]OFD Sender: No OFD packet to send [22:05:30]OFD Sender: No OFD packet to send [22:05:35]OFD Sender: No OFD packet to send [22:05:40]OFD Sender: No OFD packet to send [22:05:45]OFD Sender: No OFD packet to send [22:05:50]OFD Sender: No OFD packet to send [22:05:55]OFD Sender: No OFD packet to send [22:06:00]OFD Sender: No OFD packet to send [22:06:05]OFD Sender: No OFD packet to send [22:06:10]OFD Sender: No OFD packet to send [22:06:15]OFD Sender: No OFD packet to send [22:06:20]OFD Sender: No OFD packet to send [22:06:25]OFD Sender: No OFD packet to send [22:06:30]OFD Sender: No OFD packet to send [22:06:35]OFD Sender: No OFD packet to send [22:06:40]OFD Sender: No OFD packet to send [22:06:45]OFD Sender: No OFD packet to send [22:06:50]OFD Sender: No OFD packet to send [22:06:55]OFD Sender: No OFD packet to send [22:06:59]accept exits with 9 [22:06:59]New connection [22:06:59]New thread 3067383140 created [22:06:59]Thread 3067239780 joined [22:06:59]Waiting for new connection... [22:06:59] Sock 9.Parse request [22:06:59]Sock 9.Check first char [22:06:59]Sock 9.First char is OK [22:06:59]request: POST /json_proto HTTP/1.0 [22:06:59]Method: POST [22:06:59]URL: /json_proto [22:06:59]Method is POST - this is cgi request [22:06:59]url: /json_proto [22:06:59]query_string will be loaded in cgi processing [22:06:59]execute_cgi json_proto POST (null) [22:06:59]execute_cgi path=json_proto method=POST [22:06:59]POST find Content-Length [22:06:59]Host: 172.17.45.7:8080 [22:06:59]Content-Length: 819 [22:06:59]Content-Type: application/json [22:06:59] [22:06:59]POST finish read [22:06:59]Found Content-Length = 819 [22:06:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:59]execute_script... [22:06: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)949497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:59]POST & json_proto [22:06:59]process_json_proto [22:06:59]json parsed OK: [22:06:59]protocol is kg_v1.0 [22:06:59]action value=close_receipt [22:06:59]process_action close_receipt [22:06:59]cmd_close_receipt [22:06:59]MH_GetDate [22:06:59]Write to MH i2c: F0 00 00 79 23 8B [22:06:59]Write i2c OK [22:06:59]MH_I2C_Read... [22:06:59]Read from MH i2c: F0 [22:06:59]MH_I2C_Read... [22:06:59]Read from MH i2c: F0 09 00 [22:06:59]MH_I2C_Read... [22:06:59]Read from MH i2c: F0 09 00 79 23 00 05 C1 A6 66 90 0F 3E 66 A9 [22:06:59]GetLastDocTimeStamp 1722204040 [22:06:59]current date 1722204421 [22:06:59]FM_GetShiftState [22:06:59]SAM_PROTO_GetShiftState [22:06:59]wFMCommunicate request_size=4 [22:06:59]MH_SAM_APDU [22:06:59]CAPDU: 80 13 01 00 [22:06:59]Write to MH i2c: E2 08 00 7A 23 80 13 01 00 00 00 00 00 1A [22:06:59]Write i2c OK [22:06:59]MH_I2C_Read... [22:06:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:59]Read from MH i2c: E2 [22:06:59]MH_I2C_Read... [22:06:59]Read from MH i2c: E2 0E 00 [22:06:59]MH_I2C_Read... [22:06:59]Read from MH i2c: E2 0E 00 7A 23 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 F1 [22:06:59]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [22:06:59]wFMCommunicate OK [22:06:59]SAM_PROTO_GetShiftState done [22:06:59]FM_GetShiftState done [22:06:59]opened in 1722125364 [22:06:59]opened+sec_in_day 1722211764 [22:06:59]quantity*price = 300075 [22:06:59]sum+1 = 300077 [22:06:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 278 28.07.2024 22:07 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118609 ФПД: 28032846024700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T220702&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118609&fm=28032846024700&tin=02508201610067®Number=0000000000092660&sum=300000 [22:07:00]StoreToDocumentArchive [22:07:00]shift 433 fd 118609 [22:07:00]save to /storage/0433/doc_00118609 [22:07:00]save last doc name /storage/0433/doc_00118609 to /storage/kkm_last_doc_name [22:07:00]save OK [22:07:00]Clear old archive folders... [22:07:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:07:00]tlvbuf is 01E58BF0 [22:07:00]SAM_PROTO_ClearQueue [22:07:00]wFMCommunicate request_size=4 [22:07:00]MH_SAM_APDU [22:07:00]CAPDU: 80 09 00 00 [22:07:00]Write to MH i2c: E2 08 00 87 23 80 09 00 00 00 00 00 00 1C [22:07:00]Write i2c OK [22:07:00]MH_I2C_Read... [22:07:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:07:00]Read from MH i2c: E2 [22:07:00]MH_I2C_Read... [22:07:00]Read from MH i2c: E2 03 00 [22:07:00]MH_I2C_Read... [22:07:00]Read from MH i2c: E2 03 00 87 23 00 90 00 1E [22:07:00]RAPDU: 90 00 [22:07:00]wFMCommunicate OK [22:07:00]SAM_PROTO_ClearQueue done [22:07:00]KKMCreateOFDPacket [22:07:00]OFDProtocolAddRootSTLVToBuf [22:07:00]FM_MakeSignedData [22:07:00]FM_MakeSignedData [22:07:00]SAM_PROTO_SignData [22:07:00]wFMCommunicate request_size=4 [22:07:00]MH_SAM_APDU [22:07:00]CAPDU: 80 0D 01 02 [22:07:00]Write to MH i2c: E2 08 00 88 23 80 0D 01 02 00 00 00 00 24 [22:07:00]Write i2c OK [22:07:00]MH_I2C_Read... [22:07:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:07:00]Read from MH i2c: E2 [22:07:00]MH_I2C_Read... [22:07:00]Read from MH i2c: E2 03 00 [22:07:00]MH_I2C_Read... [22:07:00]Read from MH i2c: E2 03 00 88 23 00 90 00 1F [22:07:00]RAPDU: 90 00 [22:07:00]wFMCommunicate OK [22:07:00]wFMCommunicate request_size=255 [22:07:00]MH_SAM_APDU [22:07:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 06 C1 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 51 CF 01 00 35 04 06 00 19 7E E7 D4 [22:07:00]Write to MH i2c: E2 02 01 89 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 06 C1 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 51 CF 01 00 35 04 06 00 19 7E E7 D4 00 00 FA [22:07:00]Write i2c OK [22:07:00]MH_I2C_Read... [22:07:00]OFD Sender: No OFD packet to send [22:07:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:01]Read from MH i2c: E2 [22:07:01]MH_I2C_Read... [22:07:01]Read from MH i2c: E2 03 00 [22:07:01]MH_I2C_Read... [22:07:01]Read from MH i2c: E2 03 00 89 23 00 90 00 20 [22:07:01]RAPDU: 90 00 [22:07:01]wFMCommunicate OK [22:07:01]wFMCommunicate request_size=7 [22:07:01]MH_SAM_APDU [22:07:01]CAPDU: 80 0D 02 02 02 4F FC [22:07:01]Write to MH i2c: E2 0A 00 8A 23 80 0D 02 02 02 00 4F FC 00 00 76 [22:07:01]Write i2c OK [22:07:01]MH_I2C_Read... [22:07:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:01]Read from MH i2c: E2 [22:07:01]MH_I2C_Read... [22:07:01]Read from MH i2c: E2 03 00 [22:07:01]MH_I2C_Read... [22:07:01]Read from MH i2c: E2 03 00 8A 23 00 90 00 21 [22:07:01]RAPDU: 90 00 [22:07:01]wFMCommunicate OK [22:07:01]wFMCommunicate request_size=4 [22:07:01]MH_SAM_APDU [22:07:01]CAPDU: 80 0D 03 02 [22:07:01]Write to MH i2c: E2 08 00 8B 23 80 0D 03 02 00 00 00 00 29 [22:07:01]Write i2c OK [22:07:01]MH_I2C_Read... [22:07:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:07:01]Read from MH i2c: E2 [22:07:01]MH_I2C_Read... [22:07:01]Read from MH i2c: E2 0B 00 [22:07:01]MH_I2C_Read... [22:07:01]Read from MH i2c: E2 0B 00 8B 23 00 A2 8D 75 A9 AA 44 28 D4 90 00 61 [22:07:01]RAPDU: A2 8D 75 A9 AA 44 28 D4 90 00 [22:07:01]wFMCommunicate OK [22:07:01]SAM_PROTO_SignData done [22:07:01]FM_MakeSignedData done [22:07:01]CreateOFDProtocolMessage [22:07:01]wFMCommunicate request_size=4 [22:07:01]MH_SAM_APDU [22:07:01]CAPDU: 80 11 00 00 [22:07:01]Write to MH i2c: E2 08 00 8C 23 80 11 00 00 00 00 00 00 29 [22:07:01]Write i2c OK [22:07:01]MH_I2C_Read... [22:07:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:01]Read from MH i2c: E2 [22:07:01]MH_I2C_Read... [22:07:01]Read from MH i2c: E2 17 00 [22:07:01]MH_I2C_Read... [22:07:01]Read from MH i2c: E2 17 00 8C 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 84 [22:07:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:07:01]wFMCommunicate OK [22:07:01]CreateOFDProtocolMessage done [22:07:01]OFDSenderStorePacket 118609 [22:07:01]StoreOFDPacket docnum=118609 [22:07:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 DF D7 04 01 1E A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 06 C1 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 51 CF 01 00 35 04 06 00 19 7E E7 D4 4F FC A2 8D 75 A9 AA 44 28 D4 [22:07:01]CheckFolder [22:07:01]dirname=/storage/ofd_packets [22:07:01]CheckFolder done [22:07:01]ProducePacketName [22:07:01]name=ofd_packets/00118609 [22:07:01]NVStorageSaveData ofd_packets/00118609 [22:07:01]File name is /storage/ofd_packets/00118609 [22:07:01]Write 298 bytes [22:07:01]NVStorageSaveData done [22:07:01]OFDSenderStorePacket done [22:07:01]KKMCreateOFDPacket done [22:07:01]NVStorageSaveData kkm_last_timestamp [22:07:01]File name is /storage/kkm_last_timestamp [22:07:01]Write 4 bytes [22:07:01]NVStorageSaveData done [22:07:01]ExternCall_PrintAddStr [22:07:01]wPrintStart [22:07:01]Write to MH i2c: 01 00 00 8D 23 B0 [22:07:01]Write i2c OK [22:07:01]MH_I2C_Read... [22:07:01]Read from MH i2c: 01 [22:07:01]MH_I2C_Read... [22:07:01]Read from MH i2c: 01 07 00 [22:07:01]MH_I2C_Read... [22:07:01]Read from MH i2c: 01 07 00 8D 23 00 00 00 00 00 FF 0F C5 [22:07:01]RasterBufferAndPrint [22:07:01]line Счет N : (1)949497 [22:07:01]line ИНН: 02508201610067 [22:07:01]line Контрольно-Кассовый Чек [22:07:01]line ПРОДАЖА [22:07:01]line ТРК (МРК, ГНК) : 21 [22:07:01]line Товар: 2710194800 [22:07:01]line ДТ-К-5 [22:07:01]line 39.380 * 76.20 [22:07:01]line = 3000.76 [22:07:01]line НДС 12% НСП 1% [22:07:01]line > о реализуемом товаре [22:07:01]line ОКРУГЛЕНИЕ: -0.76 [22:07:01]line ИТОГО: 3000.00 [22:07:01]line НСП 1% : 26.55 [22:07:01]line НДС 12% : 318.66 [22:07:01]line Наличными: 0.00 [22:07:01]line Безнал.: 3000.00 [22:07:01]line Место: АЗС № 134 "Партнер Нефть" [22:07:01]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:07:01]line СНО: Общий режим [22:07:01]line Чек 278 28.07.2024 22:07 [22:07:01]line Смена: 433 ФФД: 1.0 [22:07:01]line ЗНМ: 0300000044 [22:07:01]line РНМ: 0000000000092660 [22:07:01]line Версия ККМ: 001 [22:07:01]line Платежная система: O! деньги [22:07:01]line ФМ: 0000000000874939 [22:07:01]line ФД: 118609 [22:07:01]line ФПД: 28032846024700 [22:07:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T220702&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118609&fm=28032846024700&tin=02508201610067®Number=0000000000092660&sum=300000 [22:07:01]OFD Sender: Processing packet 118609 [packets to send 86, broken 85] [22:07:01]ProducePacketName [22:07:01]name=ofd_packets/00118609 [22:07:01]OFD Sender: To server: pG, [22:07:01]CommunicateWithHost lk.salyk.kg:30040 [22:07:01]ConnectInit lk.salyk.kg [22:07:01]written 0, free lines is 4095 [22:07:01]Connected sock=10 [22:07:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 DF D7 04 01 1E A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 06 C1 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 51 CF 01 00 35 04 06 00 19 7E E7 D4 4F FC A2 8D 75 A9 AA 44 28 D4 [22:07:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 32 24 47 00 4D 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 51 CF 01 00 F4 03 04 00 95 6E A6 66 B6 04 01 00 00 48 45 FF 69 74 BA 77 28 [22:07:01]CommunicateWithHost err = 0 [22:07:01]CheckOFDResponse [22:07:01]1017 (14) - 77093643461234 [22:07:01]1041 (16) - 0000000000874939 [22:07:01]1040 (4) - 118609 [22:07:01]1012 (4) - 28.07.2024 16:15 [22:07:01]1206 (1) - 0 [22:07:01]OFD Sender: Remove packet 118609 [22:07:01]ProducePacketName [22:07:01]name=ofd_packets/00118609 [22:07:01]NVStorageDeleteData [22:07:01]Write to MH i2c: 01 00 00 B7 23 DA [22:07:01]Write i2c OK [22:07:01]MH_I2C_Read... [22:07:01]Read from MH i2c: 01 [22:07:01]MH_I2C_Read... [22:07:01]Read from MH i2c: 01 07 00 [22:07:01]MH_I2C_Read... [22:07:01]Read from MH i2c: 01 07 00 B7 23 00 00 00 00 00 D7 0C C4 [22:07:01]RasterBufferAndPrint [22:07:01]line [22:07:01]line [22:07:01]line [22:07:01]line [22:07:01]line [22:07:01]written 0, free lines is 3294 [22:07:01]MH_Cut [22:07:01]Write to MH i2c: D1 01 00 BE 23 01 B3 [22:07:01]Write i2c OK [22:07:01]MH_I2C_Read... [22:07:01]Read from MH i2c: D1 [22:07:01]MH_I2C_Read... [22:07:01]Read from MH i2c: D1 01 00 [22:07:01]MH_I2C_Read... [22:07:01]Read from MH i2c: D1 01 00 BE 23 00 B2 [22:07:01]Write to MH i2c: 01 00 00 BF 23 E2 [22:07:01]Write i2c OK [22:07:01]MH_I2C_Read... [22:07:02]OFD Sender: No OFD packet to send [22:07:02]*** Cut start [22:07:02]*** Partial cut [22:07:02]*** CUTSNS_PIN = 1 [22:07:02]*** CUTSNS_PIN = 0 [22:07:02]*** Brake cut motor [22:07:03]Read from MH i2c: 01 [22:07:03]MH_I2C_Read... [22:07:03]*** Stop cut motor [22:07:03]*** Cut end [22:07:03]Read from MH i2c: 01 07 00 [22:07:03]MH_I2C_Read... [22:07:03]Read from MH i2c: 01 07 00 BF 23 00 00 00 00 00 FF 0F F7 [22:07:03]process_action close_receipt done [22:07:03]requested_data is exist [22:07:03]produce_requested_data [22:07:03]requested_item fm.sn is exist - process it [22:07:03]wFMCommunicate request_size=4 [22:07:03]MH_SAM_APDU [22:07:03]CAPDU: 80 11 00 00 [22:07:03]Write to MH i2c: E2 08 00 C0 23 80 11 00 00 00 00 00 00 5D [22:07:03]Write i2c OK [22:07:03]MH_I2C_Read... [22:07:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:03]Read from MH i2c: E2 [22:07:03]MH_I2C_Read... [22:07:03]Read from MH i2c: E2 17 00 [22:07:03]MH_I2C_Read... [22:07:03]Read from MH i2c: E2 17 00 C0 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B8 [22:07:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:07:03]wFMCommunicate OK [22:07:03]requested_item fd.num is exist - process it [22:07:03]SAM_PROTO_GetFieldsCounters [22:07:03]wFMCommunicate request_size=4 [22:07:03]MH_SAM_APDU [22:07:03]CAPDU: 80 13 00 00 [22:07:03]Write to MH i2c: E2 08 00 C1 23 80 13 00 00 00 00 00 00 60 [22:07:03]Write i2c OK [22:07:03]MH_I2C_Read... [22:07:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:03]Read from MH i2c: E2 [22:07:03]MH_I2C_Read... [22:07:03]Read from MH i2c: E2 62 00 [22:07:03]MH_I2C_Read... [22:07:03]Read from MH i2c: E2 62 00 C1 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 51 CF 01 00 0E 04 04 00 B1 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 9F [22: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 51 CF 01 00 0E 04 04 00 B1 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 [22:07:03]wFMCommunicate OK [22:07:03]SAM_PROTO_GetFieldsCounters done [22:07:03]requested_item shift.num is exist - process it [22:07:03]requested_item shift.opened is exist - process it [22:07:03]req_shift_opened [22:07:03]FM_GetShiftState [22:07:03]SAM_PROTO_GetShiftState [22:07:03]wFMCommunicate request_size=4 [22:07:03]MH_SAM_APDU [22:07:03]CAPDU: 80 13 01 00 [22:07:03]Write to MH i2c: E2 08 00 C2 23 80 13 01 00 00 00 00 00 62 [22:07:03]Write i2c OK [22:07:03]MH_I2C_Read... [22:07:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:03]Read from MH i2c: E2 [22:07:03]MH_I2C_Read... [22:07:03]Read from MH i2c: E2 0E 00 [22:07:03]MH_I2C_Read... [22:07:03]Read from MH i2c: E2 0E 00 C2 23 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 39 [22:07:03]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [22:07:03]wFMCommunicate OK [22:07:03]SAM_PROTO_GetShiftState done [22:07:03]FM_GetShiftState done [22:07:03]req_shift_opened done [22:07:03]requested_item shift.open_date is exist - process it [22:07:03]req_shift_open_date [22:07:03]req_shift_open_date done [22:07:03]produce_requested_data done [22:07:03]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118609,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [22:07:03]process_action_free close_receipt [22:07:03]json_value_free [22:07:03]json_value_free done [22:07:03]process_json_proto returns [22:07:03]Send response to host [22:07:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118609,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [22:07:03]free response buf [22:07:03]execute_script done [22:07:03]execute_script returns [22:07:03]free content buf [22:07:03]Sock 9.Close socket [22:07:03]Sock 9.Thread stoped [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:42]OFD Sender: No OFD packet to send [22:09:47]OFD Sender: No OFD packet to send [22:09:52]OFD Sender: No OFD packet to send [22:09:57]OFD Sender: No OFD packet to send [22:10:02]OFD Sender: No OFD packet to send [22:10:07]OFD Sender: No OFD packet to send [22:10:12]OFD Sender: No OFD packet to send [22:10:17]OFD Sender: No OFD packet to send [22:10:22]OFD Sender: No OFD packet to send [22:10:27]OFD Sender: No OFD packet to send [22:10:32]OFD Sender: No OFD packet to send [22:10:37]OFD Sender: No OFD packet to send [22:10:42]OFD Sender: No OFD packet to send [22:10:47]OFD Sender: No OFD packet to send [22:10:52]OFD Sender: No OFD packet to send [22:10:57]OFD Sender: No OFD packet to send [22:11:02]OFD Sender: No OFD packet to send [22:11:07]OFD Sender: No OFD packet to send [22:11:12]OFD Sender: No OFD packet to send [22:11:17]OFD Sender: No OFD packet to send [22:11:22]OFD Sender: No OFD packet to send [22:11:27]OFD Sender: No OFD packet to send [22:11:32]OFD Sender: No OFD packet to send [22:11:37]OFD Sender: No OFD packet to send [22:11:42]OFD Sender: No OFD packet to send [22:11:47]OFD Sender: No OFD packet to send [22:11:52]OFD Sender: No OFD packet to send [22:11:57]OFD Sender: No OFD packet to send [22:12:02]OFD Sender: No OFD packet to send [22:12:07]OFD Sender: No OFD packet to send [22:12:12]OFD Sender: No OFD packet to send [22:12:17]OFD Sender: No OFD packet to send [22:12:22]OFD Sender: No OFD packet to send [22:12:27]OFD Sender: No OFD packet to send [22:12:32]OFD Sender: No OFD packet to send [22:12:37]OFD Sender: No OFD packet to send [22:12:42]OFD Sender: No OFD packet to send [22:12:47]OFD Sender: No OFD packet to send [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:22]OFD Sender: No OFD packet to send [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:42]OFD Sender: No OFD packet to send [22:13:47]OFD Sender: No OFD packet to send [22:13:52]OFD Sender: No OFD packet to send [22:13:57]OFD Sender: No OFD packet to send [22:14:02]OFD Sender: No OFD packet to send [22:14:07]OFD Sender: No OFD packet to send [22:14:12]OFD Sender: No OFD packet to send [22:14:17]OFD Sender: No OFD packet to send [22:14:22]OFD Sender: No OFD packet to send [22:14:27]OFD Sender: No OFD packet to send [22:14:32]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:52]OFD Sender: No OFD packet to send [22:14:57]OFD Sender: No OFD packet to send [22:15:02]OFD Sender: No OFD packet to send [22:15:07]OFD Sender: No OFD packet to send [22:15:12]OFD Sender: No OFD packet to send [22:15:17]OFD Sender: No OFD packet to send [22:15:21]accept exits with 7 [22:15:21]New connection [22:15:21]New thread 3067239780 created [22:15:21]Thread 3067383140 joined [22:15:21]Waiting for new connection... [22:15:21] Sock 7.Parse request [22:15:21]Sock 7.Check first char [22:15:21]Sock 7.First char is OK [22:15:21]request: POST /json_proto HTTP/1.0 [22:15:21]Method: POST [22:15:21]URL: /json_proto [22:15:21]Method is POST - this is cgi request [22:15:21]url: /json_proto [22:15:21]query_string will be loaded in cgi processing [22:15:21]execute_cgi json_proto POST (null) [22:15:21]execute_cgi path=json_proto method=POST [22:15:21]POST find Content-Length [22:15:21]Host: 172.17.45.7:8080 [22:15:21]Content-Length: 674 [22:15:21]Content-Type: application/json [22:15:21] [22:15:21]POST finish read [22:15:21]Found Content-Length = 674 [22:15:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:21]execute_script... [22: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)949498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:21]POST & json_proto [22:15:21]process_json_proto [22:15:21]json parsed OK: [22:15:21]protocol is kg_v1.0 [22:15:21]action value=close_receipt [22:15:21]process_action close_receipt [22:15:21]cmd_close_receipt [22:15:21]MH_GetDate [22:15:21]Write to MH i2c: F0 00 00 C3 23 D5 [22:15:21]Write i2c OK [22:15:21]MH_I2C_Read... [22:15:21]Read from MH i2c: F0 [22:15:21]MH_I2C_Read... [22:15:21]Read from MH i2c: F0 09 00 [22:15:21]MH_I2C_Read... [22:15:21]Read from MH i2c: F0 09 00 C3 23 00 FC C2 A6 66 90 0F 3E 66 EB [22:15:21]GetLastDocTimeStamp 1722204422 [22:15:21]current date 1722204924 [22:15:21]FM_GetShiftState [22:15:21]SAM_PROTO_GetShiftState [22:15:21]wFMCommunicate request_size=4 [22:15:21]MH_SAM_APDU [22:15:21]CAPDU: 80 13 01 00 [22:15:21]Write to MH i2c: E2 08 00 C4 23 80 13 01 00 00 00 00 00 64 [22:15:21]Write i2c OK [22:15:21]MH_I2C_Read... [22:15:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:21]Read from MH i2c: E2 [22:15:21]MH_I2C_Read... [22:15:21]Read from MH i2c: E2 0E 00 [22:15:21]MH_I2C_Read... [22:15:21]Read from MH i2c: E2 0E 00 C4 23 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 3B [22:15:21]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [22:15:21]wFMCommunicate OK [22:15:21]SAM_PROTO_GetShiftState done [22:15:21]FM_GetShiftState done [22:15:21]opened in 1722125364 [22:15:21]opened+sec_in_day 1722211764 [22:15:21]quantity*price = 70027 [22:15:21]sum+1 = 70029 [22:15:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 279 28.07.2024 22:15 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118610 ФПД: 171451832286672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T221524&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118610&fm=171451832286672&tin=02508201610067®Number=0000000000092660&sum=70000 [22:15:23]StoreToDocumentArchive [22:15:23]shift 433 fd 118610 [22:15:23]save to /storage/0433/doc_00118610 [22:15:23]save last doc name /storage/0433/doc_00118610 to /storage/kkm_last_doc_name [22:15:23]save OK [22:15:23]Clear old archive folders... [22:15:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:15:23]tlvbuf is 01E690A0 [22:15:23]SAM_PROTO_ClearQueue [22:15:23]wFMCommunicate request_size=4 [22:15:23]MH_SAM_APDU [22:15:23]CAPDU: 80 09 00 00 [22:15:23]Write to MH i2c: E2 08 00 D1 23 80 09 00 00 00 00 00 00 66 [22:15:23]Write i2c OK [22:15:23]MH_I2C_Read... [22:15:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:15:23]Read from MH i2c: E2 [22:15:23]MH_I2C_Read... [22:15:23]Read from MH i2c: E2 03 00 [22:15:23]MH_I2C_Read... [22:15:23]Read from MH i2c: E2 03 00 D1 23 00 90 00 68 [22:15:23]RAPDU: 90 00 [22:15:23]wFMCommunicate OK [22:15:23]SAM_PROTO_ClearQueue done [22:15:23]KKMCreateOFDPacket [22:15:23]OFDProtocolAddRootSTLVToBuf [22:15:23]FM_MakeSignedData [22:15:23]FM_MakeSignedData [22:15:23]SAM_PROTO_SignData [22:15:23]wFMCommunicate request_size=4 [22:15:23]MH_SAM_APDU [22:15:23]CAPDU: 80 0D 01 02 [22:15:23]Write to MH i2c: E2 08 00 D2 23 80 0D 01 02 00 00 00 00 6E [22:15:23]Write i2c OK [22:15:23]MH_I2C_Read... [22:15:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:15:23]Read from MH i2c: E2 [22:15:23]MH_I2C_Read... [22:15:23]Read from MH i2c: E2 03 00 [22:15:23]MH_I2C_Read... [22:15:23]Read from MH i2c: E2 03 00 D2 23 00 90 00 69 [22:15:23]RAPDU: 90 00 [22:15:23]wFMCommunicate OK [22:15:23]wFMCommunicate request_size=255 [22:15:23]MH_SAM_APDU [22:15:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 FC C2 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 52 CF 01 00 35 04 06 00 9B EF 3D 8F [22:15:23]Write to MH i2c: E2 02 01 D3 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 FC C2 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 52 CF 01 00 35 04 06 00 9B EF 3D 8F 00 00 06 [22:15:23]Write i2c OK [22:15:23]MH_I2C_Read... [22:15:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:23]Read from MH i2c: E2 [22:15:23]MH_I2C_Read... [22:15:23]Read from MH i2c: E2 03 00 [22:15:23]MH_I2C_Read... [22:15:23]Read from MH i2c: E2 03 00 D3 23 00 90 00 6A [22:15:23]RAPDU: 90 00 [22:15:23]wFMCommunicate OK [22:15:23]wFMCommunicate request_size=7 [22:15:23]MH_SAM_APDU [22:15:23]CAPDU: 80 0D 02 02 02 3D D0 [22:15:23]Write to MH i2c: E2 0A 00 D4 23 80 0D 02 02 02 00 3D D0 00 00 82 [22:15:23]Write i2c OK [22:15:23]MH_I2C_Read... [22:15:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:23]Read from MH i2c: E2 [22:15:23]MH_I2C_Read... [22:15:23]Read from MH i2c: E2 03 00 [22:15:23]MH_I2C_Read... [22:15:23]Read from MH i2c: E2 03 00 D4 23 00 90 00 6B [22:15:23]RAPDU: 90 00 [22:15:23]wFMCommunicate OK [22:15:23]wFMCommunicate request_size=4 [22:15:23]MH_SAM_APDU [22:15:23]CAPDU: 80 0D 03 02 [22:15:23]Write to MH i2c: E2 08 00 D5 23 80 0D 03 02 00 00 00 00 73 [22:15:23]Write i2c OK [22:15:23]MH_I2C_Read... [22:15:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:15:23]Read from MH i2c: E2 [22:15:23]MH_I2C_Read... [22:15:23]Read from MH i2c: E2 0B 00 [22:15:23]MH_I2C_Read... [22:15:23]Read from MH i2c: E2 0B 00 D5 23 00 95 47 44 25 DB 7F D9 32 90 00 1E [22:15:23]RAPDU: 95 47 44 25 DB 7F D9 32 90 00 [22:15:23]wFMCommunicate OK [22:15:23]SAM_PROTO_SignData done [22:15:23]FM_MakeSignedData done [22:15:23]CreateOFDProtocolMessage [22:15:23]wFMCommunicate request_size=4 [22:15:23]MH_SAM_APDU [22:15:23]CAPDU: 80 11 00 00 [22:15:23]Write to MH i2c: E2 08 00 D6 23 80 11 00 00 00 00 00 00 73 [22:15:23]Write i2c OK [22:15:23]MH_I2C_Read... [22:15:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:23]Read from MH i2c: E2 [22:15:23]MH_I2C_Read... [22:15:23]Read from MH i2c: E2 17 00 [22:15:23]MH_I2C_Read... [22:15:23]Read from MH i2c: E2 17 00 D6 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CE [22:15:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:15:23]wFMCommunicate OK [22:15:23]CreateOFDProtocolMessage done [22:15:23]OFDSenderStorePacket 118610 [22:15:23]StoreOFDPacket docnum=118610 [22:15:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 25 21 04 01 8A F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 FC C2 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 52 CF 01 00 35 04 06 00 9B EF 3D 8F 3D D0 95 47 44 25 DB 7F D9 32 [22:15:23]CheckFolder [22:15:23]dirname=/storage/ofd_packets [22:15:23]CheckFolder done [22:15:23]ProducePacketName [22:15:23]name=ofd_packets/00118610 [22:15:23]NVStorageSaveData ofd_packets/00118610 [22:15:23]File name is /storage/ofd_packets/00118610 [22:15:23]Write 298 bytes [22:15:23]NVStorageSaveData done [22:15:23]OFDSenderStorePacket done [22:15:23]KKMCreateOFDPacket done [22:15:23]NVStorageSaveData kkm_last_timestamp [22:15:23]File name is /storage/kkm_last_timestamp [22:15:23]Write 4 bytes [22:15:23]NVStorageSaveData done [22:15:23]ExternCall_PrintAddStr [22:15:23]wPrintStart [22:15:23]Write to MH i2c: 01 00 00 D7 23 FA [22:15:23]Write i2c OK [22:15:23]MH_I2C_Read... [22:15:23]Read from MH i2c: 01 [22:15:23]MH_I2C_Read... [22:15:23]Read from MH i2c: 01 07 00 [22:15:23]MH_I2C_Read... [22:15:23]Read from MH i2c: 01 07 00 D7 23 00 00 00 00 00 FF 0F 0F [22:15:23]RasterBufferAndPrint [22:15:23]line Счет N : (1)949498 [22:15:23]line ИНН: 02508201610067 [22:15:23]line Контрольно-Кассовый Чек [22:15:23]line ПРОДАЖА [22:15:23]line ТРК (МРК, ГНК) : 44 [22:15:23]line Товар: 2710194800 [22:15:23]line ДТ-К-5 [22:15:23]line 9.190 * 76.20 [22:15:23]line = 700.28 [22:15:23]line НДС 12% НСП 1% [22:15:23]line > о реализуемом товаре [22:15:23]line ОКРУГЛЕНИЕ: -0.28 [22:15:23]line ИТОГО: 700.00 [22:15:23]line Внесено: 700.00 [22:15:23]line СДАЧА: 0.00 [22:15:23]line НСП 1% : 6.20 [22:15:23]line НДС 12% : 74.37 [22:15:23]line Наличными: 700.00 [22:15:23]line Безнал.: 0.00 [22:15:23]line Место: АЗС № 134 "Партнер Нефть" [22:15:23]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:15:23]line СНО: Общий режим [22:15:23]line Чек 279 28.07.2024 22:15 [22:15:23]line Смена: 433 ФФД: 1.0 [22:15:23]line ЗНМ: 0300000044 [22:15:23]line РНМ: 0000000000092660 [22:15:23]line Версия ККМ: 001 [22:15:23]line ФМ: 0000000000874939 [22:15:23]line ФД: 118610 [22:15:23]line ФПД: 171451832286672 [22:15:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T221524&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118610&fm=171451832286672&tin=02508201610067®Number=0000000000092660&sum=70000 [22:15:23]OFD Sender: Processing packet 118610 [packets to send 86, broken 85] [22:15:23]ProducePacketName [22:15:23]name=ofd_packets/00118610 [22:15:23]OFD Sender: To server: pG, [22:15:23]CommunicateWithHost lk.salyk.kg:30040 [22:15:23]ConnectInit lk.salyk.kg [22:15:23]written 0, free lines is 4095 [22:15:24]Connected sock=10 [22: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 39 33 39 0C 01 00 00 25 21 04 01 8A F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 FC C2 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 52 CF 01 00 35 04 06 00 9B EF 3D 8F 3D D0 95 47 44 25 DB 7F D9 32 [22: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 39 33 39 4F 00 00 00 DB 89 47 00 A7 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 39 33 39 10 04 04 00 52 CF 01 00 F4 03 04 00 8B 70 A6 66 B6 04 01 00 00 4A 1F 81 BB B2 CD F2 59 [22:15:24]CommunicateWithHost err = 0 [22:15:24]CheckOFDResponse [22:15:24]1017 (14) - 77093643461234 [22:15:24]1041 (16) - 0000000000874939 [22:15:24]1040 (4) - 118610 [22:15:24]1012 (4) - 28.07.2024 16:23 [22:15:24]1206 (1) - 0 [22:15:24]OFD Sender: Remove packet 118610 [22:15:24]ProducePacketName [22:15:24]name=ofd_packets/00118610 [22:15:24]NVStorageDeleteData [22:15:24]Write to MH i2c: 01 00 00 01 24 25 [22:15:24]Write i2c OK [22:15:24]MH_I2C_Read... [22:15:24]Read from MH i2c: 01 [22:15:24]MH_I2C_Read... [22:15:24]Read from MH i2c: 01 07 00 [22:15:24]MH_I2C_Read... [22:15:24]Read from MH i2c: 01 07 00 01 24 00 00 00 00 00 D2 0C 0A [22:15:24]RasterBufferAndPrint [22:15:24]line [22:15:24]line [22:15:24]line [22:15:24]line [22:15:24]line [22:15:24]written 0, free lines is 3288 [22:15:24]MH_Cut [22:15:24]Write to MH i2c: D1 01 00 08 24 01 FE [22:15:24]Write i2c OK [22:15:24]MH_I2C_Read... [22:15:24]Read from MH i2c: D1 [22:15:24]MH_I2C_Read... [22:15:24]Read from MH i2c: D1 01 00 [22:15:24]MH_I2C_Read... [22:15:24]Read from MH i2c: D1 01 00 08 24 00 FD [22:15:24]Write to MH i2c: 01 00 00 09 24 2D [22:15:24]Write i2c OK [22:15:24]MH_I2C_Read... [22:15:24]OFD Sender: No OFD packet to send [22:15:25]*** Cut start [22:15:25]*** Partial cut [22:15:25]*** CUTSNS_PIN = 1 [22:15:25]*** CUTSNS_PIN = 0 [22:15:25]*** Brake cut motor [22:15:25]Read from MH i2c: 01 [22:15:25]MH_I2C_Read... [22:15:25]*** Stop cut motor [22:15:25]*** Cut end [22:15:25]Read from MH i2c: 01 07 00 [22:15:25]MH_I2C_Read... [22:15:25]Read from MH i2c: 01 07 00 09 24 00 00 00 00 00 FF 0F 42 [22:15:25]process_action close_receipt done [22:15:25]requested_data is exist [22:15:25]produce_requested_data [22:15:25]requested_item fm.sn is exist - process it [22:15:25]wFMCommunicate request_size=4 [22:15:25]MH_SAM_APDU [22:15:25]CAPDU: 80 11 00 00 [22:15:25]Write to MH i2c: E2 08 00 0A 24 80 11 00 00 00 00 00 00 A8 [22:15:25]Write i2c OK [22:15:25]MH_I2C_Read... [22:15:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:25]Read from MH i2c: E2 [22:15:25]MH_I2C_Read... [22:15:25]Read from MH i2c: E2 17 00 [22:15:25]MH_I2C_Read... [22:15:25]Read from MH i2c: E2 17 00 0A 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 03 [22:15:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:15:25]wFMCommunicate OK [22:15:25]requested_item fd.num is exist - process it [22:15:25]SAM_PROTO_GetFieldsCounters [22:15:25]wFMCommunicate request_size=4 [22:15:25]MH_SAM_APDU [22:15:25]CAPDU: 80 13 00 00 [22:15:25]Write to MH i2c: E2 08 00 0B 24 80 13 00 00 00 00 00 00 AB [22:15:25]Write i2c OK [22:15:25]MH_I2C_Read... [22:15:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:15:25]Read from MH i2c: E2 [22:15:25]MH_I2C_Read... [22:15:25]Read from MH i2c: E2 62 00 [22:15:25]MH_I2C_Read... [22:15:25]Read from MH i2c: E2 62 00 0B 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 52 CF 01 00 0E 04 04 00 B1 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 EE [22:15:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 52 CF 01 00 0E 04 04 00 B1 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 [22:15:25]wFMCommunicate OK [22:15:25]SAM_PROTO_GetFieldsCounters done [22:15:25]requested_item shift.num is exist - process it [22:15:25]requested_item shift.opened is exist - process it [22:15:25]req_shift_opened [22:15:25]FM_GetShiftState [22:15:25]SAM_PROTO_GetShiftState [22:15:25]wFMCommunicate request_size=4 [22:15:25]MH_SAM_APDU [22:15:25]CAPDU: 80 13 01 00 [22:15:25]Write to MH i2c: E2 08 00 0C 24 80 13 01 00 00 00 00 00 AD [22:15:25]Write i2c OK [22:15:25]MH_I2C_Read... [22:15:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:26]Read from MH i2c: E2 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: E2 0E 00 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: E2 0E 00 0C 24 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 84 [22:15:26]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [22:15:26]wFMCommunicate OK [22:15:26]SAM_PROTO_GetShiftState done [22:15:26]FM_GetShiftState done [22:15:26]req_shift_opened done [22:15:26]requested_item shift.open_date is exist - process it [22:15:26]req_shift_open_date [22:15:26]req_shift_open_date done [22:15:26]produce_requested_data done [22:15:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118610,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [22:15:26]process_action_free close_receipt [22:15:26]json_value_free [22:15:26]json_value_free done [22:15:26]process_json_proto returns [22:15:26]Send response to host [22:15:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118610,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [22:15:26]free response buf [22:15:26]execute_script done [22:15:26]execute_script returns [22:15:26]free content buf [22:15:26]Sock 7.Close socket [22:15:26]Sock 7.Thread stoped [22:15:29]OFD Sender: No OFD packet to send [22:15:34]OFD Sender: No OFD packet to send [22:15:39]OFD Sender: No OFD packet to send [22:15:44]OFD Sender: No OFD packet to send [22:15:49]OFD Sender: No OFD packet to send [22:15:54]OFD Sender: No OFD packet to send [22:15:59]OFD Sender: No OFD packet to send [22:16:04]OFD Sender: No OFD packet to send [22:16:09]OFD Sender: No OFD packet to send [22:16:14]OFD Sender: No OFD packet to send [22:16:19]OFD Sender: No OFD packet to send [22:16:24]OFD Sender: No OFD packet to send [22:16:29]OFD Sender: No OFD packet to send [22:16:34]OFD Sender: No OFD packet to send [22:16:39]OFD Sender: No OFD packet to send [22:16:44]OFD Sender: No OFD packet to send [22:16:49]OFD Sender: No OFD packet to send [22:16:54]OFD Sender: No OFD packet to send [22:16:59]OFD Sender: No OFD packet to send [22:17:04]OFD Sender: No OFD packet to send [22:17:09]OFD Sender: No OFD packet to send [22:17:14]OFD Sender: No OFD packet to send [22:17:19]OFD Sender: No OFD packet to send [22:17:24]OFD Sender: No OFD packet to send [22:17:29]OFD Sender: No OFD packet to send [22:17:34]OFD Sender: No OFD packet to send [22:17:39]OFD Sender: No OFD packet to send [22:17:44]OFD Sender: No OFD packet to send [22:17:49]OFD Sender: No OFD packet to send [22:17:54]OFD Sender: No OFD packet to send [22:17:59]OFD Sender: No OFD packet to send [22:18:04]OFD Sender: No OFD packet to send [22:18:09]OFD Sender: No OFD packet to send [22:18:14]OFD Sender: No OFD packet to send [22:18:19]OFD Sender: No OFD packet to send [22:18:25]OFD Sender: No OFD packet to send [22:18:30]OFD Sender: No OFD packet to send [22:18:35]OFD Sender: No OFD packet to send [22:18:40]OFD Sender: No OFD packet to send [22:18:45]OFD Sender: No OFD packet to send [22:18:50]OFD Sender: No OFD packet to send [22:18:55]OFD Sender: No OFD packet to send [22:19:00]OFD Sender: No OFD packet to send [22:19:05]OFD Sender: No OFD packet to send [22:19:10]OFD Sender: No OFD packet to send [22:19:15]OFD Sender: No OFD packet to send [22:19:20]OFD Sender: No OFD packet to send [22:19:25]OFD Sender: No OFD packet to send [22:19:30]OFD Sender: No OFD packet to send [22:19:35]OFD Sender: No OFD packet to send [22:19:40]OFD Sender: No OFD packet to send [22:19:45]OFD Sender: No OFD packet to send [22:19:50]OFD Sender: No OFD packet to send [22:19:55]OFD Sender: No OFD packet to send [22:20:00]OFD Sender: No OFD packet to send [22:20:05]OFD Sender: No OFD packet to send [22:20:10]OFD Sender: No OFD packet to send [22:20:15]OFD Sender: No OFD packet to send [22:20:20]OFD Sender: No OFD packet to send [22:20:25]OFD Sender: No OFD packet to send [22:20:30]OFD Sender: No OFD packet to send [22:20:35]OFD Sender: No OFD packet to send [22:20:40]OFD Sender: No OFD packet to send [22:20:45]OFD Sender: No OFD packet to send [22:20:50]OFD Sender: No OFD packet to send [22:20:55]OFD Sender: No OFD packet to send [22:21:00]OFD Sender: No OFD packet to send [22:21:05]OFD Sender: No OFD packet to send [22:21:10]OFD Sender: No OFD packet to send [22:21:15]OFD Sender: No OFD packet to send [22:21:20]OFD Sender: No OFD packet to send [22:21:25]OFD Sender: No OFD packet to send [22:21:30]OFD Sender: No OFD packet to send [22:21:35]OFD Sender: No OFD packet to send [22:21:40]OFD Sender: No OFD packet to send [22:21:45]OFD Sender: No OFD packet to send [22:21:50]OFD Sender: No OFD packet to send [22:21:55]OFD Sender: No OFD packet to send [22:22:00]OFD Sender: No OFD packet to send [22:22:05]OFD Sender: No OFD packet to send [22:22:10]OFD Sender: No OFD packet to send [22:22:15]OFD Sender: No OFD packet to send [22:22:20]OFD Sender: No OFD packet to send [22:22:25]OFD Sender: No OFD packet to send [22:22:30]OFD Sender: No OFD packet to send [22:22:35]OFD Sender: No OFD packet to send [22:22:40]OFD Sender: No OFD packet to send [22:22:45]OFD Sender: No OFD packet to send [22:22:50]OFD Sender: No OFD packet to send [22:22:55]OFD Sender: No OFD packet to send [22:23:00]OFD Sender: No OFD packet to send [22:23:05]OFD Sender: No OFD packet to send [22:23:10]OFD Sender: No OFD packet to send [22:23:15]OFD Sender: No OFD packet to send [22:23:20]OFD Sender: No OFD packet to send [22:23:25]OFD Sender: No OFD packet to send [22:23:30]OFD Sender: No OFD packet to send [22:23:35]OFD Sender: No OFD packet to send [22:23:40]OFD Sender: No OFD packet to send [22:23:45]OFD Sender: No OFD packet to send [22:23:50]OFD Sender: No OFD packet to send [22:23:55]OFD Sender: No OFD packet to send [22:24:00]OFD Sender: No OFD packet to send [22:24:05]OFD Sender: No OFD packet to send [22:24:10]OFD Sender: No OFD packet to send [22:24:15]OFD Sender: No OFD packet to send [22:24:20]OFD Sender: No OFD packet to send [22:24:25]OFD Sender: No OFD packet to send [22:24:30]OFD Sender: No OFD packet to send [22:24:35]OFD Sender: No OFD packet to send [22:24:40]OFD Sender: No OFD packet to send [22:24:45]OFD Sender: No OFD packet to send [22:24:50]OFD Sender: No OFD packet to send [22:24:55]OFD Sender: No OFD packet to send [22:25:00]OFD Sender: No OFD packet to send [22:25:05]OFD Sender: No OFD packet to send [22:25:10]OFD Sender: No OFD packet to send [22:25:15]OFD Sender: No OFD packet to send [22:25:20]OFD Sender: No OFD packet to send [22:25:25]OFD Sender: No OFD packet to send [22:25:30]OFD Sender: No OFD packet to send [22:25:35]OFD Sender: No OFD packet to send [22:25:40]OFD Sender: No OFD packet to send [22:25:45]OFD Sender: No OFD packet to send [22:25:50]OFD Sender: No OFD packet to send [22:25:55]OFD Sender: No OFD packet to send [22:26:00]OFD Sender: No OFD packet to send [22:26:05]OFD Sender: No OFD packet to send [22:26:10]OFD Sender: No OFD packet to send [22:26:15]OFD Sender: No OFD packet to send [22:26:20]OFD Sender: No OFD packet to send [22:26:25]OFD Sender: No OFD packet to send [22:26:30]OFD Sender: No OFD packet to send [22:26:35]OFD Sender: No OFD packet to send [22:26:40]OFD Sender: No OFD packet to send [22:26:45]OFD Sender: No OFD packet to send [22:26:50]OFD Sender: No OFD packet to send [22:26:55]OFD Sender: No OFD packet to send [22:26:57]accept exits with 9 [22:26:57]New connection [22:26:57]New thread 3067383140 created [22:26:57]Thread 3067239780 joined [22:26:57]Waiting for new connection... [22:26:57] Sock 9.Parse request [22:26:57]Sock 9.Check first char [22:26:57]Sock 9.First char is OK [22:26:57]request: POST /json_proto HTTP/1.0 [22:26:57]Method: POST [22:26:57]URL: /json_proto [22:26:57]Method is POST - this is cgi request [22:26:57]url: /json_proto [22:26:57]query_string will be loaded in cgi processing [22:26:57]execute_cgi json_proto POST (null) [22:26:57]execute_cgi path=json_proto method=POST [22:26:57]POST find Content-Length [22:26:57]Host: 172.17.45.7:8080 [22:26:57]Content-Length: 682 [22:26:57]Content-Type: application/json [22:26:57] [22:26:57]POST finish read [22:26:57]Found Content-Length = 682 [22:26:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:57]execute_script... [22:26: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)949499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:57]POST & json_proto [22:26:57]process_json_proto [22:26:57]json parsed OK: [22:26:57]protocol is kg_v1.0 [22:26:57]action value=close_receipt [22:26:57]process_action close_receipt [22:26:57]cmd_close_receipt [22:26:57]MH_GetDate [22:26:57]Write to MH i2c: F0 00 00 0D 24 20 [22:26:57]Write i2c OK [22:26:57]MH_I2C_Read... [22:26:57]Read from MH i2c: F0 [22:26:57]MH_I2C_Read... [22:26:57]Read from MH i2c: F0 09 00 [22:26:57]MH_I2C_Read... [22:26:57]Read from MH i2c: F0 09 00 0D 24 00 B4 C5 A6 66 90 0F 3E 66 F1 [22:26:57]GetLastDocTimeStamp 1722204924 [22:26:57]current date 1722205620 [22:26:57]FM_GetShiftState [22:26:57]SAM_PROTO_GetShiftState [22:26:57]wFMCommunicate request_size=4 [22:26:57]MH_SAM_APDU [22:26:57]CAPDU: 80 13 01 00 [22:26:57]Write to MH i2c: E2 08 00 0E 24 80 13 01 00 00 00 00 00 AF [22:26:57]Write i2c OK [22:26:57]MH_I2C_Read... [22:26:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:57]Read from MH i2c: E2 [22:26:57]MH_I2C_Read... [22:26:57]Read from MH i2c: E2 0E 00 [22:26:57]MH_I2C_Read... [22:26:57]Read from MH i2c: E2 0E 00 0E 24 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 86 [22:26:57]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [22:26:57]wFMCommunicate OK [22:26:57]SAM_PROTO_GetShiftState done [22:26:57]FM_GetShiftState done [22:26:57]opened in 1722125364 [22:26:57]opened+sec_in_day 1722211764 [22:26:57]quantity*price = 100005 [22:26:57]sum+1 = 100006 [22:26:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 280 28.07.2024 22:27 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118611 ФПД: 51262320358720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T222700&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118611&fm=51262320358720&tin=02508201610067®Number=0000000000092660&sum=100000 [22:26:58]StoreToDocumentArchive [22:26:58]shift 433 fd 118611 [22:26:58]save to /storage/0433/doc_00118611 [22:26:58]save last doc name /storage/0433/doc_00118611 to /storage/kkm_last_doc_name [22:26:58]save OK [22:26:58]Clear old archive folders... [22:26:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:26:58]tlvbuf is 01E4D6B0 [22:26:58]SAM_PROTO_ClearQueue [22:26:58]wFMCommunicate request_size=4 [22:26:58]MH_SAM_APDU [22:26:58]CAPDU: 80 09 00 00 [22:26:58]Write to MH i2c: E2 08 00 1B 24 80 09 00 00 00 00 00 00 B1 [22:26:58]Write i2c OK [22:26:58]MH_I2C_Read... [22:26:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:26:58]Read from MH i2c: E2 [22:26:58]MH_I2C_Read... [22:26:58]Read from MH i2c: E2 03 00 [22:26:58]MH_I2C_Read... [22:26:58]Read from MH i2c: E2 03 00 1B 24 00 90 00 B3 [22:26:58]RAPDU: 90 00 [22:26:58]wFMCommunicate OK [22:26:58]SAM_PROTO_ClearQueue done [22:26:58]KKMCreateOFDPacket [22:26:58]OFDProtocolAddRootSTLVToBuf [22:26:58]FM_MakeSignedData [22:26:58]FM_MakeSignedData [22:26:58]SAM_PROTO_SignData [22:26:58]wFMCommunicate request_size=4 [22:26:58]MH_SAM_APDU [22:26:58]CAPDU: 80 0D 01 02 [22:26:58]Write to MH i2c: E2 08 00 1C 24 80 0D 01 02 00 00 00 00 B9 [22:26:58]Write i2c OK [22:26:58]MH_I2C_Read... [22:26:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:26:58]Read from MH i2c: E2 [22:26:58]MH_I2C_Read... [22:26:58]Read from MH i2c: E2 03 00 [22:26:58]MH_I2C_Read... [22:26:58]Read from MH i2c: E2 03 00 1C 24 00 90 00 B4 [22:26:58]RAPDU: 90 00 [22:26:58]wFMCommunicate OK [22:26:58]wFMCommunicate request_size=255 [22:26:58]MH_SAM_APDU [22:26: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 B4 C5 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 53 CF 01 00 35 04 06 00 2E [22:26:58]Write to MH i2c: E2 02 01 1D 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 B4 C5 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 53 CF 01 00 35 04 06 00 2E 00 00 6D [22:26:58]Write i2c OK [22:26:58]MH_I2C_Read... [22:26:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:59]Read from MH i2c: E2 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: E2 03 00 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: E2 03 00 1D 24 00 90 00 B5 [22:26:59]RAPDU: 90 00 [22:26:59]wFMCommunicate OK [22:26:59]wFMCommunicate request_size=10 [22:26:59]MH_SAM_APDU [22:26:59]CAPDU: 80 0D 02 02 05 9F 70 65 35 40 [22:26:59]Write to MH i2c: E2 0D 00 1E 24 80 0D 02 02 05 00 9F 70 65 35 40 00 00 AF [22:26:59]Write i2c OK [22:26:59]MH_I2C_Read... [22:26:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:59]Read from MH i2c: E2 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: E2 03 00 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: E2 03 00 1E 24 00 90 00 B6 [22:26:59]RAPDU: 90 00 [22:26:59]wFMCommunicate OK [22:26:59]wFMCommunicate request_size=4 [22:26:59]MH_SAM_APDU [22:26:59]CAPDU: 80 0D 03 02 [22:26:59]Write to MH i2c: E2 08 00 1F 24 80 0D 03 02 00 00 00 00 BE [22:26:59]Write i2c OK [22:26:59]MH_I2C_Read... [22:26:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:26:59]Read from MH i2c: E2 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: E2 0B 00 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: E2 0B 00 1F 24 00 DB D0 F3 9D C0 DD 89 F9 90 00 19 [22:26:59]RAPDU: DB D0 F3 9D C0 DD 89 F9 90 00 [22:26:59]wFMCommunicate OK [22:26:59]SAM_PROTO_SignData done [22:26:59]FM_MakeSignedData done [22:26:59]CreateOFDProtocolMessage [22:26:59]wFMCommunicate request_size=4 [22:26:59]MH_SAM_APDU [22:26:59]CAPDU: 80 11 00 00 [22:26:59]Write to MH i2c: E2 08 00 20 24 80 11 00 00 00 00 00 00 BE [22:26:59]Write i2c OK [22:26:59]MH_I2C_Read... [22:26:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:59]Read from MH i2c: E2 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: E2 17 00 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: E2 17 00 20 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 19 [22:26:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:26:59]wFMCommunicate OK [22:26:59]CreateOFDProtocolMessage done [22:26:59]OFDSenderStorePacket 118611 [22:26:59]StoreOFDPacket docnum=118611 [22:26:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DD 58 07 01 5B 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 B4 C5 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 53 CF 01 00 35 04 06 00 2E 9F 70 65 35 40 DB D0 F3 9D C0 DD 89 F9 [22:26:59]CheckFolder [22:26:59]dirname=/storage/ofd_packets [22:26:59]CheckFolder done [22:26:59]ProducePacketName [22:26:59]name=ofd_packets/00118611 [22:26:59]NVStorageSaveData ofd_packets/00118611 [22:26:59]File name is /storage/ofd_packets/00118611 [22:26:59]Write 301 bytes [22:26:59]NVStorageSaveData done [22:26:59]OFDSenderStorePacket done [22:26:59]KKMCreateOFDPacket done [22:26:59]NVStorageSaveData kkm_last_timestamp [22:26:59]File name is /storage/kkm_last_timestamp [22:26:59]Write 4 bytes [22:26:59]NVStorageSaveData done [22:26:59]ExternCall_PrintAddStr [22:26:59]wPrintStart [22:26:59]Write to MH i2c: 01 00 00 21 24 45 [22:26:59]Write i2c OK [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: 01 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: 01 07 00 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: 01 07 00 21 24 00 00 00 00 00 FF 0F 5A [22:26:59]RasterBufferAndPrint [22:26:59]line Счет N : (1)949499 [22:26:59]line ИНН: 02508201610067 [22:26:59]line Контрольно-Кассовый Чек [22:26:59]line ПРОДАЖА [22:26:59]line ТРК (МРК, ГНК) : 31 [22:26:59]line Товар: 2710124130 [22:26:59]line Аи-92-К-4 [22:26:59]line 14.750 * 67.80 [22:26:59]line = 1000.05 [22:26:59]line НДС 12% НСП 1% [22:26:59]line > о реализуемом товаре [22:26:59]line ОКРУГЛЕНИЕ: -0.05 [22:26:59]line ИТОГО: 1000.00 [22:26:59]line Внесено: 1000.00 [22:26:59]line СДАЧА: 0.00 [22:26:59]line НСП 1% : 8.85 [22:26:59]line НДС 12% : 106.20 [22:26:59]line Наличными: 1000.00 [22:26:59]line Безнал.: 0.00 [22:26:59]line Место: АЗС № 134 "Партнер Нефть" [22:26:59]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:26:59]line СНО: Общий режим [22:26:59]line Чек 280 28.07.2024 22:27 [22:26:59]line Смена: 433 ФФД: 1.0 [22:26:59]line ЗНМ: 0300000044 [22:26:59]line РНМ: 0000000000092660 [22:26:59]line Версия ККМ: 001 [22:26:59]line ФМ: 0000000000874939 [22:26:59]line ФД: 118611 [22:26:59]line ФПД: 51262320358720 [22:26:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T222700&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118611&fm=51262320358720&tin=02508201610067®Number=0000000000092660&sum=100000 [22:26:59]OFD Sender: Processing packet 118611 [packets to send 86, broken 85] [22:26:59]ProducePacketName [22:26:59]name=ofd_packets/00118611 [22:26:59]OFD Sender: To server: pG, [22:26:59]CommunicateWithHost lk.salyk.kg:30040 [22:26:59]ConnectInit lk.salyk.kg [22:26:59]written 0, free lines is 4095 [22:26:59]Connected sock=11 [22:26:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DD 58 07 01 5B 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 B4 C5 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 53 CF 01 00 35 04 06 00 2E 9F 70 65 35 40 DB D0 F3 9D C0 DD 89 F9 [22:27:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 97 77 47 00 04 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 39 33 39 10 04 04 00 53 CF 01 00 F4 03 04 00 43 73 A6 66 B6 04 01 00 00 4E 28 DC AA D8 2F 05 1D [22:27:00]CommunicateWithHost err = 0 [22:27:00]CheckOFDResponse [22:27:00]1017 (14) - 77093643461234 [22:27:00]1041 (16) - 0000000000874939 [22:27:00]1040 (4) - 118611 [22:27:00]1012 (4) - 28.07.2024 16:35 [22:27:00]1206 (1) - 0 [22:27:00]OFD Sender: Remove packet 118611 [22:27:00]ProducePacketName [22:27:00]name=ofd_packets/00118611 [22:27:00]NVStorageDeleteData [22:27:00]Write to MH i2c: 01 00 00 4B 24 6F [22:27:00]Write i2c OK [22:27:00]MH_I2C_Read... [22:27:00]Read from MH i2c: 01 [22:27:00]MH_I2C_Read... [22:27:00]Read from MH i2c: 01 07 00 [22:27:00]MH_I2C_Read... [22:27:00]Read from MH i2c: 01 07 00 4B 24 00 00 00 00 00 D8 0C 5A [22:27:00]RasterBufferAndPrint [22:27:00]line [22:27:00]line [22:27:00]line [22:27:00]line [22:27:00]line [22:27:00]written 0, free lines is 3296 [22:27:00]MH_Cut [22:27:00]Write to MH i2c: D1 01 00 52 24 01 48 [22:27:00]Write i2c OK [22:27:00]MH_I2C_Read... [22:27:00]Read from MH i2c: D1 [22:27:00]MH_I2C_Read... [22:27:00]Read from MH i2c: D1 01 00 [22:27:00]MH_I2C_Read... [22:27:00]Read from MH i2c: D1 01 00 52 24 00 47 [22:27:00]Write to MH i2c: 01 00 00 53 24 77 [22:27:00]Write i2c OK [22:27:00]MH_I2C_Read... [22:27:00]OFD Sender: No OFD packet to send [22:27:00]*** Cut start [22:27:00]*** Partial cut [22:27:00]*** CUTSNS_PIN = 1 [22:27:00]*** CUTSNS_PIN = 0 [22:27:01]*** Brake cut motor [22:27:01]Read from MH i2c: 01 [22:27:01]MH_I2C_Read... [22:27:01]*** Stop cut motor [22:27:01]*** Cut end [22:27:01]Read from MH i2c: 01 07 00 [22:27:01]MH_I2C_Read... [22:27:01]Read from MH i2c: 01 07 00 53 24 00 00 00 00 00 FF 0F 8C [22:27:01]process_action close_receipt done [22:27:01]requested_data is exist [22:27:01]produce_requested_data [22:27:01]requested_item fm.sn is exist - process it [22:27:01]wFMCommunicate request_size=4 [22:27:01]MH_SAM_APDU [22:27:01]CAPDU: 80 11 00 00 [22:27:01]Write to MH i2c: E2 08 00 54 24 80 11 00 00 00 00 00 00 F2 [22:27:01]Write i2c OK [22:27:01]MH_I2C_Read... [22:27:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:01]Read from MH i2c: E2 [22:27:01]MH_I2C_Read... [22:27:01]Read from MH i2c: E2 17 00 [22:27:01]MH_I2C_Read... [22:27:01]Read from MH i2c: E2 17 00 54 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4D [22:27:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:27:01]wFMCommunicate OK [22:27:01]requested_item fd.num is exist - process it [22:27:01]SAM_PROTO_GetFieldsCounters [22:27:01]wFMCommunicate request_size=4 [22:27:01]MH_SAM_APDU [22:27:01]CAPDU: 80 13 00 00 [22:27:01]Write to MH i2c: E2 08 00 55 24 80 13 00 00 00 00 00 00 F5 [22:27:01]Write i2c OK [22:27:01]MH_I2C_Read... [22:27:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:01]Read from MH i2c: E2 [22:27:01]MH_I2C_Read... [22:27:01]Read from MH i2c: E2 62 00 [22:27:01]MH_I2C_Read... [22:27:01]Read from MH i2c: E2 62 00 55 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 53 CF 01 00 0E 04 04 00 B1 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 3C [22:27:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 53 CF 01 00 0E 04 04 00 B1 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 [22:27:01]wFMCommunicate OK [22:27:01]SAM_PROTO_GetFieldsCounters done [22:27:01]requested_item shift.num is exist - process it [22:27:01]requested_item shift.opened is exist - process it [22:27:01]req_shift_opened [22:27:01]FM_GetShiftState [22:27:01]SAM_PROTO_GetShiftState [22:27:01]wFMCommunicate request_size=4 [22:27:01]MH_SAM_APDU [22:27:01]CAPDU: 80 13 01 00 [22:27:01]Write to MH i2c: E2 08 00 56 24 80 13 01 00 00 00 00 00 F7 [22:27:01]Write i2c OK [22:27:01]MH_I2C_Read... [22:27:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:01]Read from MH i2c: E2 [22:27:01]MH_I2C_Read... [22:27:01]Read from MH i2c: E2 0E 00 [22:27:01]MH_I2C_Read... [22:27:01]Read from MH i2c: E2 0E 00 56 24 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 CE [22:27:01]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [22:27:01]wFMCommunicate OK [22:27:01]SAM_PROTO_GetShiftState done [22:27:01]FM_GetShiftState done [22:27:01]req_shift_opened done [22:27:01]requested_item shift.open_date is exist - process it [22:27:01]req_shift_open_date [22:27:01]req_shift_open_date done [22:27:01]produce_requested_data done [22:27:01]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118611,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [22:27:01]process_action_free close_receipt [22:27:01]json_value_free [22:27:01]json_value_free done [22:27:01]process_json_proto returns [22:27:01]Send response to host [22:27:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118611,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [22:27:01]free response buf [22:27:01]execute_script done [22:27:01]execute_script returns [22:27:01]free content buf [22:27:01]Sock 9.Close socket [22:27:01]Sock 9.Thread stoped [22:27:05]OFD Sender: No OFD packet to send [22:27:10]OFD Sender: No OFD packet to send [22:27:15]OFD Sender: No OFD packet to send [22:27:20]OFD Sender: No OFD packet to send [22:27:25]OFD Sender: No OFD packet to send [22:27:30]OFD Sender: No OFD packet to send [22:27:35]OFD Sender: No OFD packet to send [22:27:40]OFD Sender: No OFD packet to send [22:27:45]OFD Sender: No OFD packet to send [22:27:50]OFD Sender: No OFD packet to send [22:27:55]OFD Sender: No OFD packet to send [22:28:00]OFD Sender: No OFD packet to send [22:28:05]OFD Sender: No OFD packet to send [22:28:10]OFD Sender: No OFD packet to send [22:28:15]OFD Sender: No OFD packet to send [22:28:20]OFD Sender: No OFD packet to send [22:28:25]OFD Sender: No OFD packet to send [22:28:30]OFD Sender: No OFD packet to send [22:28:35]OFD Sender: No OFD packet to send [22:28:40]OFD Sender: No OFD packet to send [22:28:45]OFD Sender: No OFD packet to send [22:28:50]OFD Sender: No OFD packet to send [22:28:55]OFD Sender: No OFD packet to send [22:29:00]OFD Sender: No OFD packet to send [22:29:05]OFD Sender: No OFD packet to send [22:29:10]OFD Sender: No OFD packet to send [22:29:15]OFD Sender: No OFD packet to send [22:29:20]OFD Sender: No OFD packet to send [22:29:25]OFD Sender: No OFD packet to send [22:29:30]OFD Sender: No OFD packet to send [22:29:35]OFD Sender: No OFD packet to send [22:29:40]OFD Sender: No OFD packet to send [22:29:45]OFD Sender: No OFD packet to send [22:29:50]OFD Sender: No OFD packet to send [22:29:55]OFD Sender: No OFD packet to send [22:30:00]OFD Sender: No OFD packet to send [22:30:05]OFD Sender: No OFD packet to send [22:30:10]OFD Sender: No OFD packet to send [22:30:15]OFD Sender: No OFD packet to send [22:30:20]OFD Sender: No OFD packet to send [22:30:25]OFD Sender: No OFD packet to send [22:30:30]OFD Sender: No OFD packet to send [22:30:35]OFD Sender: No OFD packet to send [22:30:40]OFD Sender: No OFD packet to send [22:30:45]OFD Sender: No OFD packet to send [22:30:50]OFD Sender: No OFD packet to send [22:30:55]OFD Sender: No OFD packet to send [22:31:00]OFD Sender: No OFD packet to send [22:31:05]OFD Sender: No OFD packet to send [22:31:10]OFD Sender: No OFD packet to send [22:31:15]OFD Sender: No OFD packet to send [22:31:20]OFD Sender: No OFD packet to send [22:31:25]OFD Sender: No OFD packet to send [22:31:30]OFD Sender: No OFD packet to send [22:31:35]OFD Sender: No OFD packet to send [22:31:40]OFD Sender: No OFD packet to send [22:31:45]OFD Sender: No OFD packet to send [22:31:50]OFD Sender: No OFD packet to send [22:31:55]OFD Sender: No OFD packet to send [22:32:00]OFD Sender: No OFD packet to send [22:32:05]OFD Sender: No OFD packet to send [22:32:10]OFD Sender: No OFD packet to send [22:32:15]OFD Sender: No OFD packet to send [22:32:20]OFD Sender: No OFD packet to send [22:32:25]OFD Sender: No OFD packet to send [22:32:30]OFD Sender: No OFD packet to send [22:32:35]OFD Sender: No OFD packet to send [22:32:40]OFD Sender: No OFD packet to send [22:32:45]OFD Sender: No OFD packet to send [22:32:50]OFD Sender: No OFD packet to send [22:32:55]OFD Sender: No OFD packet to send [22:33:00]OFD Sender: No OFD packet to send [22:33:05]OFD Sender: No OFD packet to send [22:33:10]OFD Sender: No OFD packet to send [22:33:15]OFD Sender: No OFD packet to send [22:33:20]OFD Sender: No OFD packet to send [22:33:25]OFD Sender: No OFD packet to send [22:33:30]OFD Sender: No OFD packet to send [22:33:35]OFD Sender: No OFD packet to send [22:33:40]OFD Sender: No OFD packet to send [22:33:45]OFD Sender: No OFD packet to send [22:33:50]OFD Sender: No OFD packet to send [22:33:55]OFD Sender: No OFD packet to send [22:34:00]OFD Sender: No OFD packet to send [22:34:05]OFD Sender: No OFD packet to send [22:34:10]OFD Sender: No OFD packet to send [22:34:15]OFD Sender: No OFD packet to send [22:34:20]OFD Sender: No OFD packet to send [22:34:25]OFD Sender: No OFD packet to send [22:34:30]OFD Sender: No OFD packet to send [22:34:35]OFD Sender: No OFD packet to send [22:34:40]OFD Sender: No OFD packet to send [22:34:45]OFD Sender: No OFD packet to send [22:34:50]OFD Sender: No OFD packet to send [22:34:56]OFD Sender: No OFD packet to send [22:35:01]OFD Sender: No OFD packet to send [22:35:06]OFD Sender: No OFD packet to send [22:35:11]OFD Sender: No OFD packet to send [22:35:16]OFD Sender: No OFD packet to send [22:35:21]OFD Sender: No OFD packet to send [22:35:26]OFD Sender: No OFD packet to send [22:35:31]OFD Sender: No OFD packet to send [22:35:36]OFD Sender: No OFD packet to send [22:35:41]OFD Sender: No OFD packet to send [22:35:46]OFD Sender: No OFD packet to send [22:35:51]OFD Sender: No OFD packet to send [22:35:56]OFD Sender: No OFD packet to send [22:36:01]OFD Sender: No OFD packet to send [22:36:06]OFD Sender: No OFD packet to send [22:36:11]OFD Sender: No OFD packet to send [22:36:16]OFD Sender: No OFD packet to send [22:36:21]OFD Sender: No OFD packet to send [22:36:26]OFD Sender: No OFD packet to send [22:36:31]OFD Sender: No OFD packet to send [22:36:36]OFD Sender: No OFD packet to send [22:36:41]OFD Sender: No OFD packet to send [22:36:46]OFD Sender: No OFD packet to send [22:36:51]OFD Sender: No OFD packet to send [22:36:56]OFD Sender: No OFD packet to send [22:37:01]OFD Sender: No OFD packet to send [22:37:06]OFD Sender: No OFD packet to send [22:37:11]OFD Sender: No OFD packet to send [22:37:16]OFD Sender: No OFD packet to send [22:37:21]OFD Sender: No OFD packet to send [22:37:26]OFD Sender: No OFD packet to send [22:37:31]OFD Sender: No OFD packet to send [22:37:36]OFD Sender: No OFD packet to send [22:37:41]OFD Sender: No OFD packet to send [22:37:46]OFD Sender: No OFD packet to send [22:37:51]OFD Sender: No OFD packet to send [22:37:56]OFD Sender: No OFD packet to send [22:38:01]OFD Sender: No OFD packet to send [22:38:06]OFD Sender: No OFD packet to send [22:38:11]OFD Sender: No OFD packet to send [22:38:16]OFD Sender: No OFD packet to send [22:38:21]OFD Sender: No OFD packet to send [22:38:26]OFD Sender: No OFD packet to send [22:38:31]OFD Sender: No OFD packet to send [22:38:36]OFD Sender: No OFD packet to send [22:38:41]OFD Sender: No OFD packet to send [22:38:46]OFD Sender: No OFD packet to send [22:38:51]OFD Sender: No OFD packet to send [22:38:56]OFD Sender: No OFD packet to send [22:39:01]OFD Sender: No OFD packet to send [22:39:06]OFD Sender: No OFD packet to send [22:39:11]OFD Sender: No OFD packet to send [22:39:16]OFD Sender: No OFD packet to send [22:39:21]OFD Sender: No OFD packet to send [22:39:26]OFD Sender: No OFD packet to send [22:39:31]OFD Sender: No OFD packet to send [22:39:36]OFD Sender: No OFD packet to send [22:39:41]OFD Sender: No OFD packet to send [22:39:46]OFD Sender: No OFD packet to send [22:39:51]OFD Sender: No OFD packet to send [22:39:56]OFD Sender: No OFD packet to send [22:40:01]OFD Sender: No OFD packet to send [22:40:06]OFD Sender: No OFD packet to send [22:40:11]OFD Sender: No OFD packet to send [22:40:16]OFD Sender: No OFD packet to send [22:40:21]OFD Sender: No OFD packet to send [22:40:26]OFD Sender: No OFD packet to send [22:40:31]OFD Sender: No OFD packet to send [22:40:36]OFD Sender: No OFD packet to send [22:40:41]OFD Sender: No OFD packet to send [22:40:46]OFD Sender: No OFD packet to send [22:40:51]OFD Sender: No OFD packet to send [22:40:56]OFD Sender: No OFD packet to send [22:41:01]OFD Sender: No OFD packet to send [22:41:06]OFD Sender: No OFD packet to send [22:41:11]OFD Sender: No OFD packet to send [22:41:16]OFD Sender: No OFD packet to send [22:41:21]OFD Sender: No OFD packet to send [22:41:26]OFD Sender: No OFD packet to send [22:41:31]OFD Sender: No OFD packet to send [22:41:36]OFD Sender: No OFD packet to send [22:41:41]OFD Sender: No OFD packet to send [22:41:46]OFD Sender: No OFD packet to send [22:41:51]OFD Sender: No OFD packet to send [22:41:56]OFD Sender: No OFD packet to send [22:42:01]OFD Sender: No OFD packet to send [22:42:06]OFD Sender: No OFD packet to send [22:42:11]OFD Sender: No OFD packet to send [22:42:16]OFD Sender: No OFD packet to send [22:42:21]OFD Sender: No OFD packet to send [22:42:26]OFD Sender: No OFD packet to send [22:42:31]OFD Sender: No OFD packet to send [22:42:36]OFD Sender: No OFD packet to send [22:42:40]accept exits with 7 [22:42:40]New connection [22:42:40]New thread 3067239780 created [22:42:40]Thread 3067383140 joined [22:42:40]Waiting for new connection... [22:42:40] Sock 7.Parse request [22:42:40]Sock 7.Check first char [22:42:40]Sock 7.First char is OK [22:42:40]request: POST /json_proto HTTP/1.0 [22:42:40]Method: POST [22:42:40]URL: /json_proto [22:42:40]Method is POST - this is cgi request [22:42:40]url: /json_proto [22:42:40]query_string will be loaded in cgi processing [22:42:40]execute_cgi json_proto POST (null) [22:42:40]execute_cgi path=json_proto method=POST [22:42:40]POST find Content-Length [22:42:40]Host: 172.17.45.7:8080 [22:42:40]Content-Length: 679 [22:42:40]Content-Type: application/json [22:42:40] [22:42:40]POST finish read [22:42:40]Found Content-Length = 679 [22:42:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "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" ] } } [22:42:40]execute_script... [22:42: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)949500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "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" ] } } [22:42:40]POST & json_proto [22:42:40]process_json_proto [22:42:40]json parsed OK: [22:42:40]protocol is kg_v1.0 [22:42:40]action value=close_receipt [22:42:40]process_action close_receipt [22:42:40]cmd_close_receipt [22:42:40]MH_GetDate [22:42:40]Write to MH i2c: F0 00 00 57 24 6A [22:42:40]Write i2c OK [22:42:40]MH_I2C_Read... [22:42:40]Read from MH i2c: F0 [22:42:40]MH_I2C_Read... [22:42:40]Read from MH i2c: F0 09 00 [22:42:40]MH_I2C_Read... [22:42:40]Read from MH i2c: F0 09 00 57 24 00 62 C9 A6 66 90 0F 3E 66 ED [22:42:40]GetLastDocTimeStamp 1722205620 [22:42:40]current date 1722206562 [22:42:40]FM_GetShiftState [22:42:40]SAM_PROTO_GetShiftState [22:42:40]wFMCommunicate request_size=4 [22:42:40]MH_SAM_APDU [22:42:40]CAPDU: 80 13 01 00 [22:42:40]Write to MH i2c: E2 08 00 58 24 80 13 01 00 00 00 00 00 F9 [22:42:40]Write i2c OK [22:42:40]MH_I2C_Read... [22:42:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:40]Read from MH i2c: E2 [22:42:40]MH_I2C_Read... [22:42:40]Read from MH i2c: E2 0E 00 [22:42:40]MH_I2C_Read... [22:42:40]Read from MH i2c: E2 0E 00 58 24 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 D0 [22:42:40]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [22:42:40]wFMCommunicate OK [22:42:40]SAM_PROTO_GetShiftState done [22:42:40]FM_GetShiftState done [22:42:40]opened in 1722125364 [22:42:40]opened+sec_in_day 1722211764 [22:42:40]quantity*price = 350062 [22:42:40]sum+1 = 350064 [22:42:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 281 28.07.2024 22:42 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118612 ФПД: 150758073573975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T224242&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118612&fm=150758073573975&tin=02508201610067®Number=0000000000092660&sum=350000 [22:42:41]StoreToDocumentArchive [22:42:41]shift 433 fd 118612 [22:42:41]save to /storage/0433/doc_00118612 [22:42:41]save last doc name /storage/0433/doc_00118612 to /storage/kkm_last_doc_name [22:42:41]save OK [22:42:41]Clear old archive folders... [22:42:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:42:41]tlvbuf is B6F2A8C0 [22:42:41]SAM_PROTO_ClearQueue [22:42:41]wFMCommunicate request_size=4 [22:42:41]MH_SAM_APDU [22:42:41]CAPDU: 80 09 00 00 [22:42:41]Write to MH i2c: E2 08 00 65 24 80 09 00 00 00 00 00 00 FB [22:42:41]Write i2c OK [22:42:41]MH_I2C_Read... [22:42:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:42:41]Read from MH i2c: E2 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: E2 03 00 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: E2 03 00 65 24 00 90 00 FD [22:42:41]RAPDU: 90 00 [22:42:41]wFMCommunicate OK [22:42:41]SAM_PROTO_ClearQueue done [22:42:41]KKMCreateOFDPacket [22:42:41]OFDProtocolAddRootSTLVToBuf [22:42:41]FM_MakeSignedData [22:42:41]FM_MakeSignedData [22:42:41]SAM_PROTO_SignData [22:42:41]wFMCommunicate request_size=4 [22:42:41]MH_SAM_APDU [22:42:41]CAPDU: 80 0D 01 02 [22:42:41]Write to MH i2c: E2 08 00 66 24 80 0D 01 02 00 00 00 00 03 [22:42:41]Write i2c OK [22:42:41]MH_I2C_Read... [22:42:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:42:41]Read from MH i2c: E2 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: E2 03 00 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: E2 03 00 66 24 00 90 00 FE [22:42:41]RAPDU: 90 00 [22:42:41]wFMCommunicate OK [22:42:41]wFMCommunicate request_size=255 [22:42:41]MH_SAM_APDU [22:42:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 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 19 01 00 00 F4 03 04 00 62 C9 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 54 CF 01 00 35 04 06 00 89 1D 19 6C [22:42:41]Write to MH i2c: E2 02 01 67 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 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 19 01 00 00 F4 03 04 00 62 C9 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 54 CF 01 00 35 04 06 00 89 1D 19 6C 00 00 96 [22:42:41]Write i2c OK [22:42:41]MH_I2C_Read... [22:42:41]OFD Sender: No OFD packet to send [22:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:41]Read from MH i2c: E2 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: E2 03 00 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: E2 03 00 67 24 00 90 00 FF [22:42:41]RAPDU: 90 00 [22:42:41]wFMCommunicate OK [22:42:41]wFMCommunicate request_size=7 [22:42:41]MH_SAM_APDU [22:42:41]CAPDU: 80 0D 02 02 02 22 57 [22:42:41]Write to MH i2c: E2 0A 00 68 24 80 0D 02 02 02 00 22 57 00 00 83 [22:42:41]Write i2c OK [22:42:41]MH_I2C_Read... [22:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:41]Read from MH i2c: E2 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: E2 03 00 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: E2 03 00 68 24 00 90 00 00 [22:42:41]RAPDU: 90 00 [22:42:41]wFMCommunicate OK [22:42:41]wFMCommunicate request_size=4 [22:42:41]MH_SAM_APDU [22:42:41]CAPDU: 80 0D 03 02 [22:42:41]Write to MH i2c: E2 08 00 69 24 80 0D 03 02 00 00 00 00 08 [22:42:41]Write i2c OK [22:42:41]MH_I2C_Read... [22:42:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:42:41]Read from MH i2c: E2 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: E2 0B 00 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: E2 0B 00 69 24 00 2F E5 02 96 3F FE 17 E6 90 00 EF [22:42:41]RAPDU: 2F E5 02 96 3F FE 17 E6 90 00 [22:42:41]wFMCommunicate OK [22:42:41]SAM_PROTO_SignData done [22:42:41]FM_MakeSignedData done [22:42:41]CreateOFDProtocolMessage [22:42:41]wFMCommunicate request_size=4 [22:42:41]MH_SAM_APDU [22:42:41]CAPDU: 80 11 00 00 [22:42:41]Write to MH i2c: E2 08 00 6A 24 80 11 00 00 00 00 00 00 08 [22:42:41]Write i2c OK [22:42:41]MH_I2C_Read... [22:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:41]Read from MH i2c: E2 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: E2 17 00 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: E2 17 00 6A 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 63 [22:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:42:41]wFMCommunicate OK [22:42:41]CreateOFDProtocolMessage done [22:42:41]OFDSenderStorePacket 118612 [22:42:41]StoreOFDPacket docnum=118612 [22:42:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E4 1C 04 01 A5 23 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 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 19 01 00 00 F4 03 04 00 62 C9 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 54 CF 01 00 35 04 06 00 89 1D 19 6C 22 57 2F E5 02 96 3F FE 17 E6 [22:42:41]CheckFolder [22:42:41]dirname=/storage/ofd_packets [22:42:41]CheckFolder done [22:42:41]ProducePacketName [22:42:41]name=ofd_packets/00118612 [22:42:41]NVStorageSaveData ofd_packets/00118612 [22:42:41]File name is /storage/ofd_packets/00118612 [22:42:41]Write 298 bytes [22:42:41]NVStorageSaveData done [22:42:41]OFDSenderStorePacket done [22:42:41]KKMCreateOFDPacket done [22:42:41]NVStorageSaveData kkm_last_timestamp [22:42:41]File name is /storage/kkm_last_timestamp [22:42:41]Write 4 bytes [22:42:41]NVStorageSaveData done [22:42:41]ExternCall_PrintAddStr [22:42:41]wPrintStart [22:42:41]Write to MH i2c: 01 00 00 6B 24 8F [22:42:41]Write i2c OK [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: 01 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: 01 07 00 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: 01 07 00 6B 24 00 00 00 00 00 FF 0F A4 [22:42:41]RasterBufferAndPrint [22:42:41]line Счет N : (1)949500 [22:42:41]line ИНН: 02508201610067 [22:42:41]line Контрольно-Кассовый Чек [22:42:41]line ПРОДАЖА [22:42:41]line ТРК (МРК, ГНК) : 11 [22:42:41]line Товар: 2710194800 [22:42:41]line ДТ-К-5 [22:42:41]line 45.940 * 76.20 [22:42:41]line = 3500.63 [22:42:41]line НДС 12% НСП 1% [22:42:41]line > о реализуемом товаре [22:42:41]line ОКРУГЛЕНИЕ: -0.63 [22:42:41]line ИТОГО: 3500.00 [22:42:41]line Внесено: 3500.00 [22:42:41]line СДАЧА: 0.00 [22:42:41]line НСП 1% : 30.98 [22:42:41]line НДС 12% : 371.75 [22:42:41]line Наличными: 3500.00 [22:42:41]line Безнал.: 0.00 [22:42:41]line Место: АЗС № 134 "Партнер Нефть" [22:42:41]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:42:41]line СНО: Общий режим [22:42:41]line Чек 281 28.07.2024 22:42 [22:42:41]line Смена: 433 ФФД: 1.0 [22:42:41]line ЗНМ: 0300000044 [22:42:41]line РНМ: 0000000000092660 [22:42:41]line Версия ККМ: 001 [22:42:41]line ФМ: 0000000000874939 [22:42:41]line ФД: 118612 [22:42:41]line ФПД: 150758073573975 [22:42:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T224242&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118612&fm=150758073573975&tin=02508201610067®Number=0000000000092660&sum=350000 [22:42:42]OFD Sender: Processing packet 118612 [packets to send 86, broken 85] [22:42:42]ProducePacketName [22:42:42]name=ofd_packets/00118612 [22:42:42]OFD Sender: To server: pG, [22:42:42]CommunicateWithHost lk.salyk.kg:30040 [22:42:42]ConnectInit lk.salyk.kg [22:42:42]written 0, free lines is 4095 [22:42:42]Connected sock=10 [22:42: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 39 33 39 0C 01 00 00 E4 1C 04 01 A5 23 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 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 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 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 19 01 00 00 F4 03 04 00 62 C9 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 54 CF 01 00 35 04 06 00 89 1D 19 6C 22 57 2F E5 02 96 3F FE 17 E6 [22:42:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BD 64 47 00 87 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 54 CF 01 00 F4 03 04 00 F2 76 A6 66 B6 04 01 00 00 3E 30 33 90 7C 81 36 55 [22:42:42]CommunicateWithHost err = 0 [22:42:42]CheckOFDResponse [22:42:42]1017 (14) - 77093643461234 [22:42:42]1041 (16) - 0000000000874939 [22:42:42]1040 (4) - 118612 [22:42:42]1012 (4) - 28.07.2024 16:50 [22:42:42]1206 (1) - 0 [22:42:42]OFD Sender: Remove packet 118612 [22:42:42]ProducePacketName [22:42:42]name=ofd_packets/00118612 [22:42:42]NVStorageDeleteData [22:42:42]Write to MH i2c: 01 00 00 95 24 B9 [22:42:42]Write i2c OK [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: 01 [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: 01 07 00 [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: 01 07 00 95 24 00 00 00 00 00 CB 0C 97 [22:42:42]RasterBufferAndPrint [22:42:42]line [22:42:42]line [22:42:42]line [22:42:42]line [22:42:42]line [22:42:42]written 0, free lines is 3282 [22:42:42]MH_Cut [22:42:42]Write to MH i2c: D1 01 00 9C 24 01 92 [22:42:42]Write i2c OK [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: D1 [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: D1 01 00 [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: D1 01 00 9C 24 00 91 [22:42:42]Write to MH i2c: 01 00 00 9D 24 C1 [22:42:42]Write i2c OK [22:42:42]MH_I2C_Read... [22:42:42]OFD Sender: No OFD packet to send [22:42:43]*** Cut start [22:42:43]*** Partial cut [22:42:43]*** CUTSNS_PIN = 1 [22:42:43]*** CUTSNS_PIN = 0 [22:42:43]*** Brake cut motor [22:42:43]Read from MH i2c: 01 [22:42:43]MH_I2C_Read... [22:42:43]*** Stop cut motor [22:42:43]*** Cut end [22:42:43]Read from MH i2c: 01 07 00 [22:42:43]MH_I2C_Read... [22:42:43]Read from MH i2c: 01 07 00 9D 24 00 00 00 00 00 FF 0F D6 [22:42:43]process_action close_receipt done [22:42:43]requested_data is exist [22:42:43]produce_requested_data [22:42:43]requested_item fm.sn is exist - process it [22:42:43]wFMCommunicate request_size=4 [22:42:43]MH_SAM_APDU [22:42:43]CAPDU: 80 11 00 00 [22:42:43]Write to MH i2c: E2 08 00 9E 24 80 11 00 00 00 00 00 00 3C [22:42:43]Write i2c OK [22:42:43]MH_I2C_Read... [22:42:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:44]Read from MH i2c: E2 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: E2 17 00 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: E2 17 00 9E 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 97 [22:42:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:42:44]wFMCommunicate OK [22:42:44]requested_item fd.num is exist - process it [22:42:44]SAM_PROTO_GetFieldsCounters [22:42:44]wFMCommunicate request_size=4 [22:42:44]MH_SAM_APDU [22:42:44]CAPDU: 80 13 00 00 [22:42:44]Write to MH i2c: E2 08 00 9F 24 80 13 00 00 00 00 00 00 3F [22:42:44]Write i2c OK [22:42:44]MH_I2C_Read... [22:42:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:42:44]Read from MH i2c: E2 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: E2 62 00 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: E2 62 00 9F 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 54 CF 01 00 0E 04 04 00 B1 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 8A [22:42: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 54 CF 01 00 0E 04 04 00 B1 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 [22:42:44]wFMCommunicate OK [22:42:44]SAM_PROTO_GetFieldsCounters done [22:42:44]requested_item shift.num is exist - process it [22:42:44]requested_item shift.opened is exist - process it [22:42:44]req_shift_opened [22:42:44]FM_GetShiftState [22:42:44]SAM_PROTO_GetShiftState [22:42:44]wFMCommunicate request_size=4 [22:42:44]MH_SAM_APDU [22:42:44]CAPDU: 80 13 01 00 [22:42:44]Write to MH i2c: E2 08 00 A0 24 80 13 01 00 00 00 00 00 41 [22:42:44]Write i2c OK [22:42:44]MH_I2C_Read... [22:42:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:44]Read from MH i2c: E2 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: E2 0E 00 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: E2 0E 00 A0 24 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 18 [22:42:44]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [22:42:44]wFMCommunicate OK [22:42:44]SAM_PROTO_GetShiftState done [22:42:44]FM_GetShiftState done [22:42:44]req_shift_opened done [22:42:44]requested_item shift.open_date is exist - process it [22:42:44]req_shift_open_date [22:42:44]req_shift_open_date done [22:42:44]produce_requested_data done [22:42:44]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118612,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [22:42:44]process_action_free close_receipt [22:42:44]json_value_free [22:42:44]json_value_free done [22:42:44]process_json_proto returns [22:42:44]Send response to host [22:42:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118612,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [22:42:44]free response buf [22:42:44]execute_script done [22:42:44]execute_script returns [22:42:44]free content buf [22:42:44]Sock 7.Close socket [22:42:44]Sock 7.Thread stoped [22:42:48]OFD Sender: No OFD packet to send [22:42:53]OFD Sender: No OFD packet to send [22:42:58]OFD Sender: No OFD packet to send [22:43:03]OFD Sender: No OFD packet to send [22:43:08]OFD Sender: No OFD packet to send [22:43:11]accept exits with 9 [22:43:11]New connection [22:43:11]New thread 3067383140 created [22:43:11]Thread 3067239780 joined [22:43:11]Waiting for new connection... [22:43:11] Sock 9.Parse request [22:43:11]Sock 9.Check first char [22:43:11]Sock 9.First char is OK [22:43:11]request: POST /json_proto HTTP/1.0 [22:43:11]Method: POST [22:43:11]URL: /json_proto [22:43:11]Method is POST - this is cgi request [22:43:11]url: /json_proto [22:43:11]query_string will be loaded in cgi processing [22:43:11]execute_cgi json_proto POST (null) [22:43:11]execute_cgi path=json_proto method=POST [22:43:11]POST find Content-Length [22:43:11]Host: 172.17.45.7:8080 [22:43:11]Content-Length: 682 [22:43:11]Content-Type: application/json [22:43:11] [22:43:11]POST finish read [22:43:11]Found Content-Length = 682 [22:43:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 16.230, "sum" : 1100.39, "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" ] } } [22:43:11]execute_script... [22: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)949501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 16.230, "sum" : 1100.39, "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" ] } } [22:43:11]POST & json_proto [22:43:11]process_json_proto [22:43:11]json parsed OK: [22:43:11]protocol is kg_v1.0 [22:43:11]action value=close_receipt [22:43:11]process_action close_receipt [22:43:11]cmd_close_receipt [22:43:11]MH_GetDate [22:43:11]Write to MH i2c: F0 00 00 A1 24 B4 [22:43:11]Write i2c OK [22:43:11]MH_I2C_Read... [22:43:11]Read from MH i2c: F0 [22:43:11]MH_I2C_Read... [22:43:11]Read from MH i2c: F0 09 00 [22:43:11]MH_I2C_Read... [22:43:11]Read from MH i2c: F0 09 00 A1 24 00 81 C9 A6 66 90 0F 3E 66 56 [22:43:11]GetLastDocTimeStamp 1722206562 [22:43:11]current date 1722206593 [22:43:11]FM_GetShiftState [22:43:11]SAM_PROTO_GetShiftState [22:43:11]wFMCommunicate request_size=4 [22:43:11]MH_SAM_APDU [22:43:11]CAPDU: 80 13 01 00 [22:43:11]Write to MH i2c: E2 08 00 A2 24 80 13 01 00 00 00 00 00 43 [22:43:11]Write i2c OK [22:43:11]MH_I2C_Read... [22:43:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:11]Read from MH i2c: E2 [22:43:11]MH_I2C_Read... [22:43:11]Read from MH i2c: E2 0E 00 [22:43:11]MH_I2C_Read... [22:43:11]Read from MH i2c: E2 0E 00 A2 24 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 1A [22:43:11]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [22:43:11]wFMCommunicate OK [22:43:11]SAM_PROTO_GetShiftState done [22:43:11]FM_GetShiftState done [22:43:11]opened in 1722125364 [22:43:11]opened+sec_in_day 1722211764 [22:43:11]quantity*price = 110039 [22:43:11]sum+1 = 110040 [22:43:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.86 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 282 28.07.2024 22:43 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118613 ФПД: 35167509050816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T224313&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118613&fm=35167509050816&tin=02508201610067®Number=0000000000092660&sum=110000 [22:43:12]StoreToDocumentArchive [22:43:12]shift 433 fd 118613 [22:43:12]save to /storage/0433/doc_00118613 [22:43:12]save last doc name /storage/0433/doc_00118613 to /storage/kkm_last_doc_name [22:43:12]save OK [22:43:12]Clear old archive folders... [22:43:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:43:12]tlvbuf is 01E89ED0 [22:43:12]SAM_PROTO_ClearQueue [22:43:12]wFMCommunicate request_size=4 [22:43:12]MH_SAM_APDU [22:43:12]CAPDU: 80 09 00 00 [22:43:12]Write to MH i2c: E2 08 00 AF 24 80 09 00 00 00 00 00 00 45 [22:43:12]Write i2c OK [22:43:12]MH_I2C_Read... [22:43:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:43:12]Read from MH i2c: E2 [22:43:12]MH_I2C_Read... [22:43:12]Read from MH i2c: E2 03 00 [22:43:12]MH_I2C_Read... [22:43:12]Read from MH i2c: E2 03 00 AF 24 00 90 00 47 [22:43:12]RAPDU: 90 00 [22:43:12]wFMCommunicate OK [22:43:12]SAM_PROTO_ClearQueue done [22:43:12]KKMCreateOFDPacket [22:43:12]OFDProtocolAddRootSTLVToBuf [22:43:12]FM_MakeSignedData [22:43:12]FM_MakeSignedData [22:43:12]SAM_PROTO_SignData [22:43:12]wFMCommunicate request_size=4 [22:43:12]MH_SAM_APDU [22:43:12]CAPDU: 80 0D 01 02 [22:43:12]Write to MH i2c: E2 08 00 B0 24 80 0D 01 02 00 00 00 00 4D [22:43:12]Write i2c OK [22:43:12]MH_I2C_Read... [22:43:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:43:12]Read from MH i2c: E2 [22:43:12]MH_I2C_Read... [22:43:12]Read from MH i2c: E2 03 00 [22:43:12]MH_I2C_Read... [22:43:12]Read from MH i2c: E2 03 00 B0 24 00 90 00 48 [22:43:12]RAPDU: 90 00 [22:43:12]wFMCommunicate OK [22:43:12]wFMCommunicate request_size=255 [22:43:12]MH_SAM_APDU [22: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 34 FF 03 08 00 03 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 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 A6 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 1A 01 00 00 F4 03 04 00 81 C9 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 CF 01 00 35 04 06 00 1F [22:43:12]Write to MH i2c: E2 02 01 B1 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 34 FF 03 08 00 03 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 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 A6 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 1A 01 00 00 F4 03 04 00 81 C9 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 CF 01 00 35 04 06 00 1F 00 00 E3 [22:43:12]Write i2c OK [22:43:12]MH_I2C_Read... [22:43:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:12]Read from MH i2c: E2 [22:43:12]MH_I2C_Read... [22:43:12]Read from MH i2c: E2 03 00 [22:43:12]MH_I2C_Read... [22:43:12]Read from MH i2c: E2 03 00 B1 24 00 90 00 49 [22:43:12]RAPDU: 90 00 [22:43:12]wFMCommunicate OK [22:43:12]wFMCommunicate request_size=10 [22:43:12]MH_SAM_APDU [22:43:12]CAPDU: 80 0D 02 02 05 FC 12 E2 75 C0 [22:43:12]Write to MH i2c: E2 0D 00 B2 24 80 0D 02 02 05 00 FC 12 E2 75 C0 00 00 7F [22:43:12]Write i2c OK [22:43:12]MH_I2C_Read... [22:43:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:12]Read from MH i2c: E2 [22:43:12]MH_I2C_Read... [22:43:12]Read from MH i2c: E2 03 00 [22:43:12]MH_I2C_Read... [22:43:12]Read from MH i2c: E2 03 00 B2 24 00 90 00 4A [22:43:12]RAPDU: 90 00 [22:43:12]wFMCommunicate OK [22:43:12]wFMCommunicate request_size=4 [22:43:12]MH_SAM_APDU [22:43:12]CAPDU: 80 0D 03 02 [22:43:12]Write to MH i2c: E2 08 00 B3 24 80 0D 03 02 00 00 00 00 52 [22:43:12]Write i2c OK [22:43:12]MH_I2C_Read... [22:43:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:43:12]Read from MH i2c: E2 [22:43:12]MH_I2C_Read... [22:43:12]Read from MH i2c: E2 0B 00 [22:43:12]MH_I2C_Read... [22:43:12]Read from MH i2c: E2 0B 00 B3 24 00 18 33 E6 74 EB F9 D7 8C 90 00 3F [22:43:12]RAPDU: 18 33 E6 74 EB F9 D7 8C 90 00 [22:43:12]wFMCommunicate OK [22:43:12]SAM_PROTO_SignData done [22:43:12]FM_MakeSignedData done [22:43:12]CreateOFDProtocolMessage [22:43:12]wFMCommunicate request_size=4 [22:43:12]MH_SAM_APDU [22:43:12]CAPDU: 80 11 00 00 [22:43:12]Write to MH i2c: E2 08 00 B4 24 80 11 00 00 00 00 00 00 52 [22:43:12]Write i2c OK [22:43:12]MH_I2C_Read... [22:43:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:12]Read from MH i2c: E2 [22:43:12]MH_I2C_Read... [22:43:12]Read from MH i2c: E2 17 00 [22:43:12]MH_I2C_Read... [22:43:12]Read from MH i2c: E2 17 00 B4 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AD [22:43:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:43:12]wFMCommunicate OK [22:43:12]CreateOFDProtocolMessage done [22:43:12]OFDSenderStorePacket 118613 [22:43:12]StoreOFDPacket docnum=118613 [22:43:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 57 E7 07 01 BC 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 34 FF 03 08 00 03 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 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 A6 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 1A 01 00 00 F4 03 04 00 81 C9 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 CF 01 00 35 04 06 00 1F FC 12 E2 75 C0 18 33 E6 74 EB F9 D7 8C [22:43:12]CheckFolder [22:43:12]dirname=/storage/ofd_packets [22:43:12]CheckFolder done [22:43:12]ProducePacketName [22:43:12]name=ofd_packets/00118613 [22:43:12]NVStorageSaveData ofd_packets/00118613 [22:43:12]File name is /storage/ofd_packets/00118613 [22:43:12]Write 301 bytes [22:43:12]NVStorageSaveData done [22:43:12]OFDSenderStorePacket done [22:43:12]KKMCreateOFDPacket done [22:43:12]NVStorageSaveData kkm_last_timestamp [22:43:12]File name is /storage/kkm_last_timestamp [22:43:12]Write 4 bytes [22:43:12]NVStorageSaveData done [22:43:12]ExternCall_PrintAddStr [22:43:12]wPrintStart [22:43:12]Write to MH i2c: 01 00 00 B5 24 D9 [22:43:12]Write i2c OK [22:43:12]MH_I2C_Read... [22:43:12]Read from MH i2c: 01 [22:43:12]MH_I2C_Read... [22:43:12]Read from MH i2c: 01 07 00 [22:43:12]MH_I2C_Read... [22:43:12]Read from MH i2c: 01 07 00 B5 24 00 00 00 00 00 FF 0F EE [22:43:12]RasterBufferAndPrint [22:43:12]line Счет N : (1)949501 [22:43:12]line ИНН: 02508201610067 [22:43:12]line Контрольно-Кассовый Чек [22:43:12]line ПРОДАЖА [22:43:12]line ТРК (МРК, ГНК) : 31 [22:43:12]line Товар: 2710124130 [22:43:12]line Аи-92-К-4 [22:43:12]line 16.230 * 67.80 [22:43:12]line = 1100.39 [22:43:12]line НДС 12% НСП 1% [22:43:12]line > о реализуемом товаре [22:43:12]line ОКРУГЛЕНИЕ: -0.39 [22:43:12]line ИТОГО: 1100.00 [22:43:12]line Внесено: 1100.00 [22:43:12]line СДАЧА: 0.00 [22:43:12]line НСП 1% : 9.74 [22:43:12]line НДС 12% : 116.86 [22:43:12]line Наличными: 1100.00 [22:43:12]line Безнал.: 0.00 [22:43:12]line Место: АЗС № 134 "Партнер Нефть" [22:43:12]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:43:12]line СНО: Общий режим [22:43:12]line Чек 282 28.07.2024 22:43 [22:43:12]line Смена: 433 ФФД: 1.0 [22:43:12]line ЗНМ: 0300000044 [22:43:12]line РНМ: 0000000000092660 [22:43:12]line Версия ККМ: 001 [22:43:12]line ФМ: 0000000000874939 [22:43:12]line ФД: 118613 [22:43:12]line ФПД: 35167509050816 [22:43:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T224313&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118613&fm=35167509050816&tin=02508201610067®Number=0000000000092660&sum=110000 [22:43:13]OFD Sender: Processing packet 118613 [packets to send 86, broken 85] [22:43:13]ProducePacketName [22:43:13]name=ofd_packets/00118613 [22:43:13]OFD Sender: To server: pG, [22:43:13]CommunicateWithHost lk.salyk.kg:30040 [22:43:13]ConnectInit lk.salyk.kg [22:43:13]written 0, free lines is 4095 [22:43:13]Connected sock=10 [22: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 39 33 39 0F 01 00 00 57 E7 07 01 BC 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 34 FF 03 08 00 03 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 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 A6 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 1A 01 00 00 F4 03 04 00 81 C9 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 CF 01 00 35 04 06 00 1F FC 12 E2 75 C0 18 33 E6 74 EB F9 D7 8C [22: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 39 33 39 4F 00 00 00 FF 57 47 00 CC 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 39 33 39 10 04 04 00 55 CF 01 00 F4 03 04 00 11 77 A6 66 B6 04 01 00 00 C9 BA 4E 69 24 13 4F 9D [22:43:13]CommunicateWithHost err = 0 [22:43:13]CheckOFDResponse [22:43:13]1017 (14) - 77093643461234 [22:43:13]1041 (16) - 0000000000874939 [22:43:13]1040 (4) - 118613 [22:43:13]1012 (4) - 28.07.2024 16:51 [22:43:13]1206 (1) - 0 [22:43:13]OFD Sender: Remove packet 118613 [22:43:13]ProducePacketName [22:43:13]name=ofd_packets/00118613 [22:43:13]NVStorageDeleteData [22:43:13]Write to MH i2c: 01 00 00 DF 24 03 [22:43:13]Write i2c OK [22:43:13]MH_I2C_Read... [22:43:13]Read from MH i2c: 01 [22:43:13]MH_I2C_Read... [22:43:13]Read from MH i2c: 01 07 00 [22:43:13]MH_I2C_Read... [22:43:13]Read from MH i2c: 01 07 00 DF 24 00 00 00 00 00 D3 0C E9 [22:43:13]RasterBufferAndPrint [22:43:13]line [22:43:13]line [22:43:13]line [22:43:13]line [22:43:13]line [22:43:13]written 0, free lines is 3290 [22:43:13]MH_Cut [22:43:13]Write to MH i2c: D1 01 00 E6 24 01 DC [22:43:13]Write i2c OK [22:43:13]MH_I2C_Read... [22:43:13]Read from MH i2c: D1 [22:43:13]MH_I2C_Read... [22:43:13]Read from MH i2c: D1 01 00 [22:43:13]MH_I2C_Read... [22:43:13]Read from MH i2c: D1 01 00 E6 24 00 DB [22:43:13]Write to MH i2c: 01 00 00 E7 24 0B [22:43:13]Write i2c OK [22:43:13]MH_I2C_Read... [22:43:14]OFD Sender: No OFD packet to send [22:43:14]*** Cut start [22:43:14]*** Partial cut [22:43:14]*** CUTSNS_PIN = 1 [22:43:14]*** CUTSNS_PIN = 0 [22:43:14]*** Brake cut motor [22:43:15]Read from MH i2c: 01 [22:43:15]MH_I2C_Read... [22:43:15]*** Stop cut motor [22:43:15]*** Cut end [22:43:15]Read from MH i2c: 01 07 00 [22:43:15]MH_I2C_Read... [22:43:15]Read from MH i2c: 01 07 00 E7 24 00 00 00 00 00 FF 0F 20 [22:43:15]process_action close_receipt done [22:43:15]requested_data is exist [22:43:15]produce_requested_data [22:43:15]requested_item fm.sn is exist - process it [22:43:15]wFMCommunicate request_size=4 [22:43:15]MH_SAM_APDU [22:43:15]CAPDU: 80 11 00 00 [22:43:15]Write to MH i2c: E2 08 00 E8 24 80 11 00 00 00 00 00 00 86 [22:43:15]Write i2c OK [22:43:15]MH_I2C_Read... [22:43:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:15]Read from MH i2c: E2 [22:43:15]MH_I2C_Read... [22:43:15]Read from MH i2c: E2 17 00 [22:43:15]MH_I2C_Read... [22:43:15]Read from MH i2c: E2 17 00 E8 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E1 [22:43:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:43:15]wFMCommunicate OK [22:43:15]requested_item fd.num is exist - process it [22:43:15]SAM_PROTO_GetFieldsCounters [22:43:15]wFMCommunicate request_size=4 [22:43:15]MH_SAM_APDU [22:43:15]CAPDU: 80 13 00 00 [22:43:15]Write to MH i2c: E2 08 00 E9 24 80 13 00 00 00 00 00 00 89 [22:43:15]Write i2c OK [22:43:15]MH_I2C_Read... [22:43:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:43:15]Read from MH i2c: E2 [22:43:15]MH_I2C_Read... [22:43:15]Read from MH i2c: E2 62 00 [22:43:15]MH_I2C_Read... [22:43:15]Read from MH i2c: E2 62 00 E9 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 55 CF 01 00 0E 04 04 00 B1 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 D8 [22: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 55 CF 01 00 0E 04 04 00 B1 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 [22:43:15]wFMCommunicate OK [22:43:15]SAM_PROTO_GetFieldsCounters done [22:43:15]requested_item shift.num is exist - process it [22:43:15]requested_item shift.opened is exist - process it [22:43:15]req_shift_opened [22:43:15]FM_GetShiftState [22:43:15]SAM_PROTO_GetShiftState [22:43:15]wFMCommunicate request_size=4 [22:43:15]MH_SAM_APDU [22:43:15]CAPDU: 80 13 01 00 [22:43:15]Write to MH i2c: E2 08 00 EA 24 80 13 01 00 00 00 00 00 8B [22:43:15]Write i2c OK [22:43:15]MH_I2C_Read... [22:43:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:15]Read from MH i2c: E2 [22:43:15]MH_I2C_Read... [22:43:15]Read from MH i2c: E2 0E 00 [22:43:15]MH_I2C_Read... [22:43:15]Read from MH i2c: E2 0E 00 EA 24 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 62 [22:43:15]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [22:43:15]wFMCommunicate OK [22:43:15]SAM_PROTO_GetShiftState done [22:43:15]FM_GetShiftState done [22:43:15]req_shift_opened done [22:43:15]requested_item shift.open_date is exist - process it [22:43:15]req_shift_open_date [22:43:15]req_shift_open_date done [22:43:15]produce_requested_data done [22:43:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118613,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [22:43:15]process_action_free close_receipt [22:43:15]json_value_free [22:43:15]json_value_free done [22:43:15]process_json_proto returns [22:43:15]Send response to host [22:43:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118613,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [22:43:15]free response buf [22:43:15]execute_script done [22:43:15]execute_script returns [22:43:15]free content buf [22:43:15]Sock 9.Close socket [22:43:15]Sock 9.Thread stoped [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:15]accept exits with 7 [22:44:15]New connection [22:44:15]New thread 3067239780 created [22:44:15]Thread 3067383140 joined [22:44:15]Waiting for new connection... [22:44:15] Sock 7.Parse request [22:44:15]Sock 7.Check first char [22:44:15]Sock 7.First char is OK [22:44:15]request: POST /json_proto HTTP/1.0 [22:44:15]Method: POST [22:44:15]URL: /json_proto [22:44:15]Method is POST - this is cgi request [22:44:15]url: /json_proto [22:44:15]query_string will be loaded in cgi processing [22:44:15]execute_cgi json_proto POST (null) [22:44:15]execute_cgi path=json_proto method=POST [22:44:15]POST find Content-Length [22:44:15]Host: 172.17.45.7:8080 [22:44:15]Content-Length: 739 [22:44:15]Content-Type: application/json [22:44:15] [22:44:15]POST finish read [22:44:15]Found Content-Length = 739 [22:44:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118613, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 16.230, "sum" : 1100.39, "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" ] } } [22:44:15]execute_script... [22:44:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118613, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 16.230, "sum" : 1100.39, "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" ] } } [22:44:15]POST & json_proto [22:44:15]process_json_proto [22:44:15]json parsed OK: [22:44:15]protocol is kg_v1.0 [22:44:15]action value=close_receipt [22:44:15]process_action close_receipt [22:44:15]cmd_close_receipt [22:44:15]MH_GetDate [22:44:15]Write to MH i2c: F0 00 00 EB 24 FE [22:44:15]Write i2c OK [22:44:15]MH_I2C_Read... [22:44:15]Read from MH i2c: F0 [22:44:15]MH_I2C_Read... [22:44:15]Read from MH i2c: F0 09 00 [22:44:15]MH_I2C_Read... [22:44:15]Read from MH i2c: F0 09 00 EB 24 00 C2 C9 A6 66 90 0F 3E 66 E1 [22:44:15]GetLastDocTimeStamp 1722206593 [22:44:15]current date 1722206658 [22:44:15]FM_GetShiftState [22:44:15]SAM_PROTO_GetShiftState [22:44:15]wFMCommunicate request_size=4 [22:44:15]MH_SAM_APDU [22:44:15]CAPDU: 80 13 01 00 [22:44:15]Write to MH i2c: E2 08 00 EC 24 80 13 01 00 00 00 00 00 8D [22:44:15]Write i2c OK [22:44:15]MH_I2C_Read... [22:44:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:15]Read from MH i2c: E2 [22:44:15]MH_I2C_Read... [22:44:15]Read from MH i2c: E2 0E 00 [22:44:15]MH_I2C_Read... [22:44:15]Read from MH i2c: E2 0E 00 EC 24 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 64 [22:44:15]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [22:44:15]wFMCommunicate OK [22:44:15]SAM_PROTO_GetShiftState done [22:44:15]FM_GetShiftState done [22:44:15]opened in 1722125364 [22:44:15]opened+sec_in_day 1722211764 [22:44:15]quantity*price = 110039 [22:44:15]sum+1 = 110040 [22:44:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 1100.00 НСП 1% : 9.74 НДС 12% : 116.86 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 283 28.07.2024 22:44 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 118613 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 118614 ФПД: 129085712399967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T224418&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118614&fm=129085712399967&tin=02508201610067®Number=0000000000092660&sum=110000 [22:44:17]StoreToDocumentArchive [22:44:17]shift 433 fd 118614 [22:44:17]save to /storage/0433/doc_00118614 [22:44:17]save last doc name /storage/0433/doc_00118614 to /storage/kkm_last_doc_name [22:44:17]save OK [22:44:17]Clear old archive folders... [22:44:17]ProcessDocumentItem done err = 0, tmpTLVsize=279 [22:44:17]tlvbuf is B6F2A470 [22:44:17]SAM_PROTO_ClearQueue [22:44:17]wFMCommunicate request_size=4 [22:44:17]MH_SAM_APDU [22:44:17]CAPDU: 80 09 00 00 [22:44:17]Write to MH i2c: E2 08 00 FB 24 80 09 00 00 00 00 00 00 91 [22:44:17]Write i2c OK [22:44:17]MH_I2C_Read... [22:44:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:44:17]Read from MH i2c: E2 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: E2 03 00 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: E2 03 00 FB 24 00 90 00 93 [22:44:17]RAPDU: 90 00 [22:44:17]wFMCommunicate OK [22:44:17]SAM_PROTO_ClearQueue done [22:44:17]KKMCreateOFDPacket [22:44:17]OFDProtocolAddRootSTLVToBuf [22:44:17]FM_MakeSignedData [22:44:17]FM_MakeSignedData [22:44:17]SAM_PROTO_SignData [22:44:17]wFMCommunicate request_size=4 [22:44:17]MH_SAM_APDU [22:44:17]CAPDU: 80 0D 01 02 [22:44:17]Write to MH i2c: E2 08 00 FC 24 80 0D 01 02 00 00 00 00 99 [22:44:17]Write i2c OK [22:44:17]MH_I2C_Read... [22:44:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:44:17]Read from MH i2c: E2 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: E2 03 00 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: E2 03 00 FC 24 00 90 00 94 [22:44:17]RAPDU: 90 00 [22:44:17]wFMCommunicate OK [22:44:17]wFMCommunicate request_size=255 [22:44:17]MH_SAM_APDU [22:44:17]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 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 A6 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 1B 01 00 00 F4 03 04 00 C2 C9 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 55 CF 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 [22:44:17]Write to MH i2c: E2 02 01 FD 24 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 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 A6 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 1B 01 00 00 F4 03 04 00 C2 C9 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 55 CF 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 00 00 B4 [22:44:17]Write i2c OK [22:44:17]MH_I2C_Read... [22:44:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:17]Read from MH i2c: E2 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: E2 03 00 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: E2 03 00 FD 24 00 90 00 95 [22:44:17]RAPDU: 90 00 [22:44:17]wFMCommunicate OK [22:44:17]wFMCommunicate request_size=38 [22:44:17]MH_SAM_APDU [22:44:17]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 CF 01 00 35 04 06 00 75 67 1C 08 7E 5F [22:44:17]Write to MH i2c: E2 29 00 FE 24 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 CF 01 00 35 04 06 00 75 67 1C 08 7E 5F 00 00 30 [22:44:17]Write i2c OK [22:44:17]MH_I2C_Read... [22:44:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:17]Read from MH i2c: E2 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: E2 03 00 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: E2 03 00 FE 24 00 90 00 96 [22:44:17]RAPDU: 90 00 [22:44:17]wFMCommunicate OK [22:44:17]wFMCommunicate request_size=4 [22:44:17]MH_SAM_APDU [22:44:17]CAPDU: 80 0D 03 02 [22:44:17]Write to MH i2c: E2 08 00 FF 24 80 0D 03 02 00 00 00 00 9E [22:44:17]Write i2c OK [22:44:17]MH_I2C_Read... [22:44:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:44:17]Read from MH i2c: E2 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: E2 0B 00 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: E2 0B 00 FF 24 00 16 54 A8 8F 23 7A 56 39 90 00 6C [22:44:17]RAPDU: 16 54 A8 8F 23 7A 56 39 90 00 [22:44:17]wFMCommunicate OK [22:44:17]SAM_PROTO_SignData done [22:44:17]FM_MakeSignedData done [22:44:17]CreateOFDProtocolMessage [22:44:17]wFMCommunicate request_size=4 [22:44:17]MH_SAM_APDU [22:44:17]CAPDU: 80 11 00 00 [22:44:17]Write to MH i2c: E2 08 00 00 25 80 11 00 00 00 00 00 00 9F [22:44:17]Write i2c OK [22:44:17]MH_I2C_Read... [22:44:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:17]Read from MH i2c: E2 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: E2 17 00 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: E2 17 00 00 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FA [22:44:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:44:17]wFMCommunicate OK [22:44:17]CreateOFDProtocolMessage done [22:44:17]OFDSenderStorePacket 118614 [22:44:17]StoreOFDPacket docnum=118614 [22:44:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 41 BC 23 01 1E 7B 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 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 A6 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 1B 01 00 00 F4 03 04 00 C2 C9 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 55 CF 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 CF 01 00 35 04 06 00 75 67 1C 08 7E 5F 16 54 A8 8F 23 7A 56 39 [22:44:17]CheckFolder [22:44:17]dirname=/storage/ofd_packets [22:44:17]CheckFolder done [22:44:17]ProducePacketName [22:44:17]name=ofd_packets/00118614 [22:44:17]NVStorageSaveData ofd_packets/00118614 [22:44:17]File name is /storage/ofd_packets/00118614 [22:44:17]Write 329 bytes [22:44:17]NVStorageSaveData done [22:44:17]OFDSenderStorePacket done [22:44:17]KKMCreateOFDPacket done [22:44:17]NVStorageSaveData kkm_last_timestamp [22:44:17]File name is /storage/kkm_last_timestamp [22:44:17]Write 4 bytes [22:44:17]NVStorageSaveData done [22:44:17]ExternCall_PrintAddStr [22:44:17]wPrintStart [22:44:17]Write to MH i2c: 01 00 00 01 25 26 [22:44:17]Write i2c OK [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: 01 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: 01 07 00 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: 01 07 00 01 25 00 00 00 00 00 FF 0F 3B [22:44:17]RasterBufferAndPrint [22:44:17]line Счет N : (1)949501 [22:44:17]line ИНН: 02508201610067 [22:44:17]line Контрольно-Кассовый Чек [22:44:17]line ВОЗВРАТ ПРОДАЖИ [22:44:17]line ТРК (МРК, ГНК) : 31 [22:44:17]line Товар: 2710124130 [22:44:17]line Аи-92-К-4 [22:44:17]line 16.230 * 67.80 [22:44:17]line = 1100.39 [22:44:17]line НДС 12% НСП 1% [22:44:17]line > о реализуемом товаре [22:44:17]line ОКРУГЛЕНИЕ: -0.39 [22:44:17]line ИТОГО: 1100.00 [22:44:17]line НСП 1% : 9.74 [22:44:17]line НДС 12% : 116.86 [22:44:17]line Наличными: 1100.00 [22:44:17]line Безнал.: 0.00 [22:44:17]line Место: АЗС № 134 "Партнер Нефть" [22:44:17]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:44:17]line СНО: Общий режим [22:44:17]line Чек 283 28.07.2024 22:44 [22:44:17]line Смена: 433 ФФД: 1.0 [22:44:17]line ЗНМ: 0300000044 [22:44:17]line РНМ: 0000000000092660 [22:44:17]line Версия ККМ: 001 [22:44:17]line ФД осн.: 118613 [22:44:17]line ФМ осн.: 0000000000874939 [22:44:17]line ФМ: 0000000000874939 [22:44:17]line ФД: 118614 [22:44:17]line ФПД: 129085712399967 [22:44:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T224418&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118614&fm=129085712399967&tin=02508201610067®Number=0000000000092660&sum=110000 [22:44:17]OFD Sender: Processing packet 118614 [packets to send 86, broken 85] [22:44:17]ProducePacketName [22:44:17]name=ofd_packets/00118614 [22:44:17]OFD Sender: To server: pG, [22:44:17]CommunicateWithHost lk.salyk.kg:30040 [22:44:17]ConnectInit lk.salyk.kg [22:44:17]written 0, free lines is 4095 [22:44:18]Connected sock=10 [22:44:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 41 BC 23 01 1E 7B 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 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 A6 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 1B 01 00 00 F4 03 04 00 C2 C9 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 55 CF 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 CF 01 00 35 04 06 00 75 67 1C 08 7E 5F 16 54 A8 8F 23 7A 56 39 [22:44:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 69 3E 47 00 A6 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 CF 01 00 F4 03 04 00 51 77 A6 66 B6 04 01 00 00 E1 1F 6A 5B 17 A0 AA 05 [22:44:18]CommunicateWithHost err = 0 [22:44:18]CheckOFDResponse [22:44:18]1017 (14) - 77093643461234 [22:44:18]1041 (16) - 0000000000874939 [22:44:18]1040 (4) - 118614 [22:44:18]1012 (4) - 28.07.2024 16:52 [22:44:18]1206 (1) - 0 [22:44:18]OFD Sender: Remove packet 118614 [22:44:18]ProducePacketName [22:44:18]name=ofd_packets/00118614 [22:44:18]NVStorageDeleteData [22:44:18]Write to MH i2c: 01 00 00 2B 25 50 [22:44:18]Write i2c OK [22:44:18]MH_I2C_Read... [22:44:18]Read from MH i2c: 01 [22:44:18]MH_I2C_Read... [22:44:18]Read from MH i2c: 01 07 00 [22:44:18]MH_I2C_Read... [22:44:18]Read from MH i2c: 01 07 00 2B 25 00 00 00 00 00 E7 0C 4A [22:44:18]RasterBufferAndPrint [22:44:18]line [22:44:18]line [22:44:18]line [22:44:18]line [22:44:18]line [22:44:18]written 0, free lines is 3310 [22:44:18]MH_Cut [22:44:18]Write to MH i2c: D1 01 00 32 25 01 29 [22:44:18]Write i2c OK [22:44:18]MH_I2C_Read... [22:44:18]Read from MH i2c: D1 [22:44:18]MH_I2C_Read... [22:44:18]Read from MH i2c: D1 01 00 [22:44:18]MH_I2C_Read... [22:44:18]Read from MH i2c: D1 01 00 32 25 00 28 [22:44:18]Write to MH i2c: 01 00 00 33 25 58 [22:44:18]Write i2c OK [22:44:18]MH_I2C_Read... [22:44:18]OFD Sender: No OFD packet to send [22:44:19]*** Cut start [22:44:19]*** Partial cut [22:44:19]*** CUTSNS_PIN = 1 [22:44:19]*** CUTSNS_PIN = 0 [22:44:19]*** Brake cut motor [22:44:19]Read from MH i2c: 01 [22:44:19]MH_I2C_Read... [22:44:19]*** Stop cut motor [22:44:19]*** Cut end [22:44:19]Read from MH i2c: 01 07 00 [22:44:19]MH_I2C_Read... [22:44:19]Read from MH i2c: 01 07 00 33 25 00 00 00 00 00 FF 0F 6D [22:44:19]process_action close_receipt done [22:44:19]requested_data is exist [22:44:19]produce_requested_data [22:44:19]requested_item fm.sn is exist - process it [22:44:19]wFMCommunicate request_size=4 [22:44:19]MH_SAM_APDU [22:44:19]CAPDU: 80 11 00 00 [22:44:19]Write to MH i2c: E2 08 00 34 25 80 11 00 00 00 00 00 00 D3 [22:44:19]Write i2c OK [22:44:19]MH_I2C_Read... [22:44:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:19]Read from MH i2c: E2 [22:44:19]MH_I2C_Read... [22:44:19]Read from MH i2c: E2 17 00 [22:44:19]MH_I2C_Read... [22:44:19]Read from MH i2c: E2 17 00 34 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2E [22:44:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:44:19]wFMCommunicate OK [22:44:19]requested_item fd.num is exist - process it [22:44:19]SAM_PROTO_GetFieldsCounters [22:44:19]wFMCommunicate request_size=4 [22:44:19]MH_SAM_APDU [22:44:19]CAPDU: 80 13 00 00 [22:44:19]Write to MH i2c: E2 08 00 35 25 80 13 00 00 00 00 00 00 D6 [22:44:19]Write i2c OK [22:44:19]MH_I2C_Read... [22:44:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:44:19]Read from MH i2c: E2 [22:44:19]MH_I2C_Read... [22:44:19]Read from MH i2c: E2 62 00 [22:44:19]MH_I2C_Read... [22:44:19]Read from MH i2c: E2 62 00 35 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 56 CF 01 00 0E 04 04 00 B1 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 29 [22:44:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 56 CF 01 00 0E 04 04 00 B1 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 [22:44:19]wFMCommunicate OK [22:44:19]SAM_PROTO_GetFieldsCounters done [22:44:19]requested_item shift.num is exist - process it [22:44:19]requested_item shift.opened is exist - process it [22:44:19]req_shift_opened [22:44:19]FM_GetShiftState [22:44:19]SAM_PROTO_GetShiftState [22:44:19]wFMCommunicate request_size=4 [22:44:19]MH_SAM_APDU [22:44:19]CAPDU: 80 13 01 00 [22:44:19]Write to MH i2c: E2 08 00 36 25 80 13 01 00 00 00 00 00 D8 [22:44:19]Write i2c OK [22:44:19]MH_I2C_Read... [22:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:19]Read from MH i2c: E2 [22:44:19]MH_I2C_Read... [22:44:19]Read from MH i2c: E2 0E 00 [22:44:19]MH_I2C_Read... [22:44:20]Read from MH i2c: E2 0E 00 36 25 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 AF [22:44:20]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [22:44:20]wFMCommunicate OK [22:44:20]SAM_PROTO_GetShiftState done [22:44:20]FM_GetShiftState done [22:44:20]req_shift_opened done [22:44:20]requested_item shift.open_date is exist - process it [22:44:20]req_shift_open_date [22:44:20]req_shift_open_date done [22:44:20]produce_requested_data done [22:44:20]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118614,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [22:44:20]process_action_free close_receipt [22:44:20]json_value_free [22:44:20]json_value_free done [22:44:20]process_json_proto returns [22:44:20]Send response to host [22:44:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118614,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [22:44:20]free response buf [22:44:20]execute_script done [22:44:20]execute_script returns [22:44:20]free content buf [22:44:20]Sock 7.Close socket [22:44:20]Sock 7.Thread stoped [22:44:20]accept exits with 9 [22:44:20]New connection [22:44:20]New thread 3067383140 created [22:44:20]Thread 3067239780 joined [22:44:20]Waiting for new connection... [22:44:20] Sock 9.Parse request [22:44:20]Sock 9.Check first char [22:44:20]Sock 9.First char is OK [22:44:20]request: POST /json_proto HTTP/1.0 [22:44:20]Method: POST [22:44:20]URL: /json_proto [22:44:20]Method is POST - this is cgi request [22:44:20]url: /json_proto [22:44:20]query_string will be loaded in cgi processing [22:44:20]execute_cgi json_proto POST (null) [22:44:20]execute_cgi path=json_proto method=POST [22:44:20]POST find Content-Length [22:44:20]Host: 172.17.45.7:8080 [22:44:20]Content-Length: 682 [22:44:20]Content-Type: application/json [22:44:20] [22:44:20]POST finish read [22:44:20]Found Content-Length = 682 [22:44:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 16.370, "sum" : 1109.89, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1109.00, "total" : 1109.00, "payments": [ { "type": 0, "sum" : 1109.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:20]execute_script... [22:44: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)949501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 16.370, "sum" : 1109.89, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1109.00, "total" : 1109.00, "payments": [ { "type": 0, "sum" : 1109.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:20]POST & json_proto [22:44:20]process_json_proto [22:44:20]json parsed OK: [22:44:20]protocol is kg_v1.0 [22:44:20]action value=close_receipt [22:44:20]process_action close_receipt [22:44:20]cmd_close_receipt [22:44:20]MH_GetDate [22:44:20]Write to MH i2c: F0 00 00 37 25 4B [22:44:20]Write i2c OK [22:44:20]MH_I2C_Read... [22:44:20]Read from MH i2c: F0 [22:44:20]MH_I2C_Read... [22:44:20]Read from MH i2c: F0 09 00 [22:44:20]MH_I2C_Read... [22:44:20]Read from MH i2c: F0 09 00 37 25 00 C6 C9 A6 66 90 0F 3E 66 32 [22:44:20]GetLastDocTimeStamp 1722206658 [22:44:20]current date 1722206662 [22:44:20]FM_GetShiftState [22:44:20]SAM_PROTO_GetShiftState [22:44:20]wFMCommunicate request_size=4 [22:44:20]MH_SAM_APDU [22:44:20]CAPDU: 80 13 01 00 [22:44:20]Write to MH i2c: E2 08 00 38 25 80 13 01 00 00 00 00 00 DA [22:44:20]Write i2c OK [22:44:20]MH_I2C_Read... [22:44:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:20]Read from MH i2c: E2 [22:44:20]MH_I2C_Read... [22:44:20]Read from MH i2c: E2 0E 00 [22:44:20]MH_I2C_Read... [22:44:20]Read from MH i2c: E2 0E 00 38 25 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 B1 [22:44:20]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [22:44:20]wFMCommunicate OK [22:44:20]SAM_PROTO_GetShiftState done [22:44:20]FM_GetShiftState done [22:44:20]opened in 1722125364 [22:44:20]opened+sec_in_day 1722211764 [22:44:20]quantity*price = 110988 [22:44:20]sum+1 = 110990 [22:44:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.89 ИТОГО: 1109.00 Внесено: 1109.00 СДАЧА: 0.00 НСП 1% : 9.82 НДС 12% : 117.86 Наличными: 1109.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 284 28.07.2024 22:44 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118615 ФПД: 149710047255838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T224423&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118615&fm=149710047255838&tin=02508201610067®Number=0000000000092660&sum=110900 [22:44:21]StoreToDocumentArchive [22:44:21]shift 433 fd 118615 [22:44:21]save to /storage/0433/doc_00118615 [22:44:21]save last doc name /storage/0433/doc_00118615 to /storage/kkm_last_doc_name [22:44:21]save OK [22:44:21]Clear old archive folders... [22:44:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:44:21]tlvbuf is 01F00740 [22:44:21]SAM_PROTO_ClearQueue [22:44:21]wFMCommunicate request_size=4 [22:44:21]MH_SAM_APDU [22:44:21]CAPDU: 80 09 00 00 [22:44:21]Write to MH i2c: E2 08 00 45 25 80 09 00 00 00 00 00 00 DC [22:44:21]Write i2c OK [22:44:21]MH_I2C_Read... [22:44:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:44:21]Read from MH i2c: E2 [22:44:21]MH_I2C_Read... [22:44:21]Read from MH i2c: E2 03 00 [22:44:21]MH_I2C_Read... [22:44:21]Read from MH i2c: E2 03 00 45 25 00 90 00 DE [22:44:21]RAPDU: 90 00 [22:44:21]wFMCommunicate OK [22:44:21]SAM_PROTO_ClearQueue done [22:44:21]KKMCreateOFDPacket [22:44:21]OFDProtocolAddRootSTLVToBuf [22:44:21]FM_MakeSignedData [22:44:21]FM_MakeSignedData [22:44:21]SAM_PROTO_SignData [22:44:21]wFMCommunicate request_size=4 [22:44:21]MH_SAM_APDU [22:44:21]CAPDU: 80 0D 01 02 [22:44:21]Write to MH i2c: E2 08 00 46 25 80 0D 01 02 00 00 00 00 E4 [22:44:21]Write i2c OK [22:44:21]MH_I2C_Read... [22:44:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:44:21]Read from MH i2c: E2 [22:44:21]MH_I2C_Read... [22:44:21]Read from MH i2c: E2 03 00 [22:44:21]MH_I2C_Read... [22:44:21]Read from MH i2c: E2 03 00 46 25 00 90 00 DF [22:44:21]RAPDU: 90 00 [22:44:21]wFMCommunicate OK [22:44:21]wFMCommunicate request_size=255 [22:44:21]MH_SAM_APDU [22:44: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 34 FF 03 08 00 03 F2 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8D B1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 B1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 2E 00 00 00 00 07 04 06 00 34 B1 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 01 00 00 F4 03 04 00 C7 C9 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 57 CF 01 00 35 04 06 00 88 [22:44:21]Write to MH i2c: E2 02 01 47 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 34 FF 03 08 00 03 F2 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8D B1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 B1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 2E 00 00 00 00 07 04 06 00 34 B1 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 01 00 00 F4 03 04 00 C7 C9 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 57 CF 01 00 35 04 06 00 88 00 00 F0 [22:44:21]Write i2c OK [22:44:21]MH_I2C_Read... [22:44:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:22]Read from MH i2c: E2 [22:44:22]MH_I2C_Read... [22:44:22]Read from MH i2c: E2 03 00 [22:44:22]MH_I2C_Read... [22:44:22]Read from MH i2c: E2 03 00 47 25 00 90 00 E0 [22:44:22]RAPDU: 90 00 [22:44:22]wFMCommunicate OK [22:44:22]wFMCommunicate request_size=10 [22:44:22]MH_SAM_APDU [22:44:22]CAPDU: 80 0D 02 02 05 29 16 2F 9D 1E [22:44:22]Write to MH i2c: E2 0D 00 48 25 80 0D 02 02 05 00 29 16 2F 9D 1E 00 00 1A [22:44:22]Write i2c OK [22:44:22]MH_I2C_Read... [22:44:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:22]Read from MH i2c: E2 [22:44:22]MH_I2C_Read... [22:44:22]Read from MH i2c: E2 03 00 [22:44:22]MH_I2C_Read... [22:44:22]Read from MH i2c: E2 03 00 48 25 00 90 00 E1 [22:44:22]RAPDU: 90 00 [22:44:22]wFMCommunicate OK [22:44:22]wFMCommunicate request_size=4 [22:44:22]MH_SAM_APDU [22:44:22]CAPDU: 80 0D 03 02 [22:44:22]Write to MH i2c: E2 08 00 49 25 80 0D 03 02 00 00 00 00 E9 [22:44:22]Write i2c OK [22:44:22]MH_I2C_Read... [22:44:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:44:22]Read from MH i2c: E2 [22:44:22]MH_I2C_Read... [22:44:22]Read from MH i2c: E2 0B 00 [22:44:22]MH_I2C_Read... [22:44:22]Read from MH i2c: E2 0B 00 49 25 00 E5 C0 E8 35 16 1A 7E 0A 90 00 64 [22:44:22]RAPDU: E5 C0 E8 35 16 1A 7E 0A 90 00 [22:44:22]wFMCommunicate OK [22:44:22]SAM_PROTO_SignData done [22:44:22]FM_MakeSignedData done [22:44:22]CreateOFDProtocolMessage [22:44:22]wFMCommunicate request_size=4 [22:44:22]MH_SAM_APDU [22:44:22]CAPDU: 80 11 00 00 [22:44:22]Write to MH i2c: E2 08 00 4A 25 80 11 00 00 00 00 00 00 E9 [22:44:22]Write i2c OK [22:44:22]MH_I2C_Read... [22:44:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:22]Read from MH i2c: E2 [22:44:22]MH_I2C_Read... [22:44:22]Read from MH i2c: E2 17 00 [22:44:22]MH_I2C_Read... [22:44:22]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 39 33 39 90 00 44 [22:44:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:44:22]wFMCommunicate OK [22:44:22]CreateOFDProtocolMessage done [22:44:22]OFDSenderStorePacket 118615 [22:44:22]StoreOFDPacket docnum=118615 [22:44:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 BD BC 07 01 C9 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 34 FF 03 08 00 03 F2 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8D B1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 B1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 2E 00 00 00 00 07 04 06 00 34 B1 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 01 00 00 F4 03 04 00 C7 C9 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 57 CF 01 00 35 04 06 00 88 29 16 2F 9D 1E E5 C0 E8 35 16 1A 7E 0A [22:44:22]CheckFolder [22:44:22]dirname=/storage/ofd_packets [22:44:22]CheckFolder done [22:44:22]ProducePacketName [22:44:22]name=ofd_packets/00118615 [22:44:22]NVStorageSaveData ofd_packets/00118615 [22:44:22]File name is /storage/ofd_packets/00118615 [22:44:22]Write 301 bytes [22:44:22]NVStorageSaveData done [22:44:22]OFDSenderStorePacket done [22:44:22]KKMCreateOFDPacket done [22:44:22]NVStorageSaveData kkm_last_timestamp [22:44:22]File name is /storage/kkm_last_timestamp [22:44:22]Write 4 bytes [22:44:22]NVStorageSaveData done [22:44:22]ExternCall_PrintAddStr [22:44:22]wPrintStart [22:44:22]Write to MH i2c: 01 00 00 4B 25 70 [22:44:22]Write i2c OK [22:44:22]MH_I2C_Read... [22:44:22]Read from MH i2c: 01 [22:44:22]MH_I2C_Read... [22:44:22]Read from MH i2c: 01 07 00 [22:44:22]MH_I2C_Read... [22:44:22]Read from MH i2c: 01 07 00 4B 25 00 00 00 00 00 FF 0F 85 [22:44:22]RasterBufferAndPrint [22:44:22]line Счет N : (1)949501 [22:44:22]line ИНН: 02508201610067 [22:44:22]line Контрольно-Кассовый Чек [22:44:22]line ПРОДАЖА [22:44:22]line ТРК (МРК, ГНК) : 31 [22:44:22]line Товар: 2710124130 [22:44:22]line Аи-92-К-4 [22:44:22]line 16.370 * 67.80 [22:44:22]line = 1109.89 [22:44:22]line НДС 12% НСП 1% [22:44:22]line > о реализуемом товаре [22:44:22]line ОКРУГЛЕНИЕ: -0.89 [22:44:22]line ИТОГО: 1109.00 [22:44:22]line Внесено: 1109.00 [22:44:22]line СДАЧА: 0.00 [22:44:22]line НСП 1% : 9.82 [22:44:22]line НДС 12% : 117.86 [22:44:22]line Наличными: 1109.00 [22:44:22]line Безнал.: 0.00 [22:44:22]line Место: АЗС № 134 "Партнер Нефть" [22:44:22]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:44:22]line СНО: Общий режим [22:44:22]line Чек 284 28.07.2024 22:44 [22:44:22]line Смена: 433 ФФД: 1.0 [22:44:22]line ЗНМ: 0300000044 [22:44:22]line РНМ: 0000000000092660 [22:44:22]line Версия ККМ: 001 [22:44:22]line ФМ: 0000000000874939 [22:44:22]line ФД: 118615 [22:44:22]line ФПД: 149710047255838 [22:44:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T224423&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118615&fm=149710047255838&tin=02508201610067®Number=0000000000092660&sum=110900 [22:44:22]OFD Sender: Processing packet 118615 [packets to send 86, broken 85] [22:44:22]ProducePacketName [22:44:22]name=ofd_packets/00118615 [22:44:22]OFD Sender: To server: pG, [22:44:22]CommunicateWithHost lk.salyk.kg:30040 [22:44:22]ConnectInit lk.salyk.kg [22:44:22]written 0, free lines is 4095 [22:44:22]Connected sock=10 [22:44: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 39 33 39 0F 01 00 00 BD BC 07 01 C9 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 34 FF 03 08 00 03 F2 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8D B1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 B1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 2E 00 00 00 00 07 04 06 00 34 B1 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 01 00 00 F4 03 04 00 C7 C9 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 57 CF 01 00 35 04 06 00 88 29 16 2F 9D 1E E5 C0 E8 35 16 1A 7E 0A [22:44:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 97 CA 47 00 65 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 57 CF 01 00 F4 03 04 00 56 77 A6 66 B6 04 01 00 00 8B 54 B2 33 36 6A D7 14 [22:44:23]CommunicateWithHost err = 0 [22:44:23]CheckOFDResponse [22:44:23]1017 (14) - 77093643461234 [22:44:23]1041 (16) - 0000000000874939 [22:44:23]1040 (4) - 118615 [22:44:23]1012 (4) - 28.07.2024 16:52 [22:44:23]1206 (1) - 0 [22:44:23]OFD Sender: Remove packet 118615 [22:44:23]ProducePacketName [22:44:23]name=ofd_packets/00118615 [22:44:23]NVStorageDeleteData [22:44:23]Write to MH i2c: 01 00 00 75 25 9A [22:44:23]Write i2c OK [22:44:23]MH_I2C_Read... [22:44:23]Read from MH i2c: 01 [22:44:23]MH_I2C_Read... [22:44:23]Read from MH i2c: 01 07 00 [22:44:23]MH_I2C_Read... [22:44:23]Read from MH i2c: 01 07 00 75 25 00 00 00 00 00 E7 0C 94 [22:44:23]RasterBufferAndPrint [22:44:23]line [22:44:23]line [22:44:23]line [22:44:23]line [22:44:23]line [22:44:23]written 0, free lines is 3317 [22:44:23]MH_Cut [22:44:23]Write to MH i2c: D1 01 00 7C 25 01 73 [22:44:23]Write i2c OK [22:44:23]MH_I2C_Read... [22:44:23]Read from MH i2c: D1 [22:44:23]MH_I2C_Read... [22:44:23]Read from MH i2c: D1 01 00 [22:44:23]MH_I2C_Read... [22:44:23]Read from MH i2c: D1 01 00 7C 25 00 72 [22:44:23]Write to MH i2c: 01 00 00 7D 25 A2 [22:44:23]Write i2c OK [22:44:23]MH_I2C_Read... [22:44:23]OFD Sender: No OFD packet to send [22:44:23]*** Cut start [22:44:23]*** Partial cut [22:44:23]*** CUTSNS_PIN = 1 [22:44:24]*** CUTSNS_PIN = 0 [22:44:24]*** Brake cut motor [22:44:24]Read from MH i2c: 01 [22:44:24]MH_I2C_Read... [22:44:24]*** Stop cut motor [22:44:24]*** Cut end [22:44:24]Read from MH i2c: 01 07 00 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: 01 07 00 7D 25 00 00 00 00 00 FF 0F B7 [22:44:24]process_action close_receipt done [22:44:24]requested_data is exist [22:44:24]produce_requested_data [22:44:24]requested_item fm.sn is exist - process it [22:44:24]wFMCommunicate request_size=4 [22:44:24]MH_SAM_APDU [22:44:24]CAPDU: 80 11 00 00 [22:44:24]Write to MH i2c: E2 08 00 7E 25 80 11 00 00 00 00 00 00 1D [22:44:24]Write i2c OK [22:44:24]MH_I2C_Read... [22:44:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:24]Read from MH i2c: E2 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 17 00 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 17 00 7E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 78 [22:44:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:44:24]wFMCommunicate OK [22:44:24]requested_item fd.num is exist - process it [22:44:24]SAM_PROTO_GetFieldsCounters [22:44:24]wFMCommunicate request_size=4 [22:44:24]MH_SAM_APDU [22:44:24]CAPDU: 80 13 00 00 [22:44:24]Write to MH i2c: E2 08 00 7F 25 80 13 00 00 00 00 00 00 20 [22:44:24]Write i2c OK [22:44:24]MH_I2C_Read... [22:44:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:44:24]Read from MH i2c: E2 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 62 00 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 62 00 7F 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 57 CF 01 00 0E 04 04 00 B1 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 77 [22:44:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 57 CF 01 00 0E 04 04 00 B1 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 [22:44:24]wFMCommunicate OK [22:44:24]SAM_PROTO_GetFieldsCounters done [22:44:24]requested_item shift.num is exist - process it [22:44:24]requested_item shift.opened is exist - process it [22:44:24]req_shift_opened [22:44:24]FM_GetShiftState [22:44:24]SAM_PROTO_GetShiftState [22:44:24]wFMCommunicate request_size=4 [22:44:24]MH_SAM_APDU [22:44:24]CAPDU: 80 13 01 00 [22:44:24]Write to MH i2c: E2 08 00 80 25 80 13 01 00 00 00 00 00 22 [22:44:24]Write i2c OK [22:44:24]MH_I2C_Read... [22:44:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:24]Read from MH i2c: E2 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 0E 00 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 0E 00 80 25 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 F9 [22:44:24]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [22:44:24]wFMCommunicate OK [22:44:24]SAM_PROTO_GetShiftState done [22:44:24]FM_GetShiftState done [22:44:24]req_shift_opened done [22:44:24]requested_item shift.open_date is exist - process it [22:44:24]req_shift_open_date [22:44:24]req_shift_open_date done [22:44:24]produce_requested_data done [22:44:24]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118615,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [22:44:24]process_action_free close_receipt [22:44:24]json_value_free [22:44:24]json_value_free done [22:44:24]process_json_proto returns [22:44:24]Send response to host [22:44:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118615,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [22:44:24]free response buf [22:44:24]execute_script done [22:44:24]execute_script returns [22:44:24]free content buf [22:44:24]Sock 9.Close socket [22:44:24]Sock 9.Thread stoped [22:44:28]OFD Sender: No OFD packet to send [22:44:33]OFD Sender: No OFD packet to send [22:44:38]OFD Sender: No OFD packet to send [22:44:43]OFD Sender: No OFD packet to send [22:44:48]OFD Sender: No OFD packet to send [22:44:53]OFD Sender: No OFD packet to send [22:44:58]OFD Sender: No OFD packet to send [22:45:03]OFD Sender: No OFD packet to send [22:45:08]OFD Sender: No OFD packet to send [22:45:13]OFD Sender: No OFD packet to send [22:45:18]OFD Sender: No OFD packet to send [22:45:23]OFD Sender: No OFD packet to send [22:45:28]OFD Sender: No OFD packet to send [22:45:33]OFD Sender: No OFD packet to send [22:45:38]OFD Sender: No OFD packet to send [22:45:43]OFD Sender: No OFD packet to send [22:45:48]OFD Sender: No OFD packet to send [22:45:53]OFD Sender: No OFD packet to send [22:45:58]OFD Sender: No OFD packet to send [22:46:03]OFD Sender: No OFD packet to send [22:46:08]OFD Sender: No OFD packet to send [22:46:13]OFD Sender: No OFD packet to send [22:46:18]OFD Sender: No OFD packet to send [22:46:23]OFD Sender: No OFD packet to send [22:46:28]OFD Sender: No OFD packet to send [22:46:33]OFD Sender: No OFD packet to send [22:46:38]OFD Sender: No OFD packet to send [22:46:43]OFD Sender: No OFD packet to send [22:46:48]OFD Sender: No OFD packet to send [22:46:53]OFD Sender: No OFD packet to send [22:46:58]OFD Sender: No OFD packet to send [22:47:03]OFD Sender: No OFD packet to send [22:47:08]OFD Sender: No OFD packet to send [22:47:13]OFD Sender: No OFD packet to send [22:47:18]OFD Sender: No OFD packet to send [22:47:23]OFD Sender: No OFD packet to send [22:47:24]accept exits with 7 [22:47:24]New connection [22:47:24]New thread 3067239780 created [22:47:24]Thread 3067383140 joined [22:47:24]Waiting for new connection... [22:47:24] Sock 7.Parse request [22:47:24]Sock 7.Check first char [22:47:24]Sock 7.First char is OK [22:47:24]request: POST /json_proto HTTP/1.0 [22:47:24]Method: POST [22:47:24]URL: /json_proto [22:47:24]Method is POST - this is cgi request [22:47:24]url: /json_proto [22:47:24]query_string will be loaded in cgi processing [22:47:24]execute_cgi json_proto POST (null) [22:47:24]execute_cgi path=json_proto method=POST [22:47:24]POST find Content-Length [22:47:24]Host: 172.17.45.7:8080 [22:47:24]Content-Length: 835 [22:47:24]Content-Type: application/json [22:47:24] [22:47:24]POST finish read [22:47:24]Found Content-Length = 835 [22:47:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.20, "quantity" : 11.910, "sum" : 800.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 800.00, "payments": [ { "type": 1, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:47:24]execute_script... [22:47: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)949502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.20, "quantity" : 11.910, "sum" : 800.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 800.00, "payments": [ { "type": 1, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:47:24]POST & json_proto [22:47:24]process_json_proto [22:47:24]json parsed OK: [22:47:24]protocol is kg_v1.0 [22:47:24]action value=close_receipt [22:47:24]process_action close_receipt [22:47:24]cmd_close_receipt [22:47:24]MH_GetDate [22:47:24]Write to MH i2c: F0 00 00 81 25 95 [22:47:24]Write i2c OK [22:47:24]MH_I2C_Read... [22:47:24]Read from MH i2c: F0 [22:47:24]MH_I2C_Read... [22:47:24]Read from MH i2c: F0 09 00 [22:47:24]MH_I2C_Read... [22:47:24]Read from MH i2c: F0 09 00 81 25 00 7E CA A6 66 90 0F 3E 66 35 [22:47:24]GetLastDocTimeStamp 1722206663 [22:47:24]current date 1722206846 [22:47:24]FM_GetShiftState [22:47:24]SAM_PROTO_GetShiftState [22:47:24]wFMCommunicate request_size=4 [22:47:24]MH_SAM_APDU [22:47:24]CAPDU: 80 13 01 00 [22:47:24]Write to MH i2c: E2 08 00 82 25 80 13 01 00 00 00 00 00 24 [22:47:24]Write i2c OK [22:47:24]MH_I2C_Read... [22:47:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:24]Read from MH i2c: E2 [22:47:24]MH_I2C_Read... [22:47:24]Read from MH i2c: E2 0E 00 [22:47:24]MH_I2C_Read... [22:47:24]Read from MH i2c: E2 0E 00 82 25 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 FB [22:47:24]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [22:47:24]wFMCommunicate OK [22:47:24]SAM_PROTO_GetShiftState done [22:47:24]FM_GetShiftState done [22:47:24]opened in 1722125364 [22:47:24]opened+sec_in_day 1722211764 [22:47:24]quantity*price = 80035 [22:47:24]sum+1 = 80036 [22:47:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 800.00 НСП 1% : 7.08 НДС 12% : 84.99 Наличными: 0.00 Безнал.: 800.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 285 28.07.2024 22:47 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 118616 ФПД: 145613938173828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T224726&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118616&fm=145613938173828&tin=02508201610067®Number=0000000000092660&sum=80000 [22:47:25]StoreToDocumentArchive [22:47:25]shift 433 fd 118616 [22:47:25]save to /storage/0433/doc_00118616 [22:47:25]save last doc name /storage/0433/doc_00118616 to /storage/kkm_last_doc_name [22:47:25]save OK [22:47:25]Clear old archive folders... [22:47:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:47:25]tlvbuf is 01E594A0 [22:47:25]SAM_PROTO_ClearQueue [22:47:25]wFMCommunicate request_size=4 [22:47:25]MH_SAM_APDU [22:47:25]CAPDU: 80 09 00 00 [22:47:25]Write to MH i2c: E2 08 00 8F 25 80 09 00 00 00 00 00 00 26 [22:47:25]Write i2c OK [22:47:25]MH_I2C_Read... [22:47:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:47:25]Read from MH i2c: E2 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: E2 03 00 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: E2 03 00 8F 25 00 90 00 28 [22:47:25]RAPDU: 90 00 [22:47:25]wFMCommunicate OK [22:47:25]SAM_PROTO_ClearQueue done [22:47:25]KKMCreateOFDPacket [22:47:25]OFDProtocolAddRootSTLVToBuf [22:47:25]FM_MakeSignedData [22:47:25]FM_MakeSignedData [22:47:25]SAM_PROTO_SignData [22:47:25]wFMCommunicate request_size=4 [22:47:25]MH_SAM_APDU [22:47:25]CAPDU: 80 0D 01 02 [22:47:25]Write to MH i2c: E2 08 00 90 25 80 0D 01 02 00 00 00 00 2E [22:47:25]Write i2c OK [22:47:25]MH_I2C_Read... [22:47:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:47:25]Read from MH i2c: E2 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: E2 03 00 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: E2 03 00 90 25 00 90 00 29 [22:47:25]RAPDU: 90 00 [22:47:25]wFMCommunicate OK [22:47:25]wFMCommunicate request_size=255 [22:47:25]MH_SAM_APDU [22:47: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 34 FF 03 08 00 03 86 2E 00 00 00 00 00 37 04 06 00 40 1A 00 00 00 00 13 04 06 00 A3 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 33 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 7E CA A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 58 CF 01 00 35 04 06 00 84 [22:47:25]Write to MH i2c: E2 02 01 91 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 34 FF 03 08 00 03 86 2E 00 00 00 00 00 37 04 06 00 40 1A 00 00 00 00 13 04 06 00 A3 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 33 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 7E CA A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 58 CF 01 00 35 04 06 00 84 00 00 83 [22:47:25]Write i2c OK [22:47:25]MH_I2C_Read... [22:47:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:25]Read from MH i2c: E2 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: E2 03 00 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: E2 03 00 91 25 00 90 00 2A [22:47:25]RAPDU: 90 00 [22:47:25]wFMCommunicate OK [22:47:25]wFMCommunicate request_size=10 [22:47:25]MH_SAM_APDU [22:47:25]CAPDU: 80 0D 02 02 05 6F 63 0F 27 84 [22:47:25]Write to MH i2c: E2 0D 00 92 25 80 0D 02 02 05 00 6F 63 0F 27 84 00 00 C7 [22:47:25]Write i2c OK [22:47:25]MH_I2C_Read... [22:47:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:25]Read from MH i2c: E2 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: E2 03 00 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: E2 03 00 92 25 00 90 00 2B [22:47:25]RAPDU: 90 00 [22:47:25]wFMCommunicate OK [22:47:25]wFMCommunicate request_size=4 [22:47:25]MH_SAM_APDU [22:47:25]CAPDU: 80 0D 03 02 [22:47:25]Write to MH i2c: E2 08 00 93 25 80 0D 03 02 00 00 00 00 33 [22:47:25]Write i2c OK [22:47:25]MH_I2C_Read... [22:47:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:47:25]Read from MH i2c: E2 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: E2 0B 00 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: E2 0B 00 93 25 00 96 DD 60 FD A5 3D 88 14 90 00 82 [22:47:25]RAPDU: 96 DD 60 FD A5 3D 88 14 90 00 [22:47:25]wFMCommunicate OK [22:47:25]SAM_PROTO_SignData done [22:47:25]FM_MakeSignedData done [22:47:25]CreateOFDProtocolMessage [22:47:25]wFMCommunicate request_size=4 [22:47:25]MH_SAM_APDU [22:47:25]CAPDU: 80 11 00 00 [22:47:25]Write to MH i2c: E2 08 00 94 25 80 11 00 00 00 00 00 00 33 [22:47:25]Write i2c OK [22:47:25]MH_I2C_Read... [22:47:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:25]Read from MH i2c: E2 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: E2 17 00 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: E2 17 00 94 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8E [22:47:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:47:26]wFMCommunicate OK [22:47:26]CreateOFDProtocolMessage done [22:47:26]OFDSenderStorePacket 118616 [22:47:26]StoreOFDPacket docnum=118616 [22:47:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AF 5E 07 01 BA 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 34 FF 03 08 00 03 86 2E 00 00 00 00 00 37 04 06 00 40 1A 00 00 00 00 13 04 06 00 A3 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 33 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 7E CA A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 58 CF 01 00 35 04 06 00 84 6F 63 0F 27 84 96 DD 60 FD A5 3D 88 14 [22:47:26]CheckFolder [22:47:26]dirname=/storage/ofd_packets [22:47:26]CheckFolder done [22:47:26]ProducePacketName [22:47:26]name=ofd_packets/00118616 [22:47:26]NVStorageSaveData ofd_packets/00118616 [22:47:26]File name is /storage/ofd_packets/00118616 [22:47:26]Write 301 bytes [22:47:26]NVStorageSaveData done [22:47:26]OFDSenderStorePacket done [22:47:26]KKMCreateOFDPacket done [22:47:26]NVStorageSaveData kkm_last_timestamp [22:47:26]File name is /storage/kkm_last_timestamp [22:47:26]Write 4 bytes [22:47:26]NVStorageSaveData done [22:47:26]ExternCall_PrintAddStr [22:47:26]wPrintStart [22:47:26]Write to MH i2c: 01 00 00 95 25 BA [22:47:26]Write i2c OK [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: 01 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: 01 07 00 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: 01 07 00 95 25 00 00 00 00 00 FF 0F CF [22:47:26]RasterBufferAndPrint [22:47:26]line Счет N : (1)949502 [22:47:26]line ИНН: 02508201610067 [22:47:26]line Контрольно-Кассовый Чек [22:47:26]line ПРОДАЖА [22:47:26]line ТРК (МРК, ГНК) : 41 [22:47:26]line Товар: 2710124130 [22:47:26]line Аи-92-К-4 [22:47:26]line 11.910 * 67.20 [22:47:26]line = 800.35 [22:47:26]line НДС 12% НСП 1% [22:47:26]line > о реализуемом товаре [22:47:26]line ОКРУГЛЕНИЕ: -0.35 [22:47:26]line ИТОГО: 800.00 [22:47:26]line НСП 1% : 7.08 [22:47:26]line НДС 12% : 84.99 [22:47:26]line Наличными: 0.00 [22:47:26]line Безнал.: 800.00 [22:47:26]line Место: АЗС № 134 "Партнер Нефть" [22:47:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:47:26]line СНО: Общий режим [22:47:26]line Чек 285 28.07.2024 22:47 [22:47:26]line Смена: 433 ФФД: 1.0 [22:47:26]line ЗНМ: 0300000044 [22:47:26]line РНМ: 0000000000092660 [22:47:26]line Версия ККМ: 001 [22:47:26]line Платежная система: Бакай Банк [22:47:26]line ФМ: 0000000000874939 [22:47:26]line ФД: 118616 [22:47:26]line ФПД: 145613938173828 [22:47:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T224726&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118616&fm=145613938173828&tin=02508201610067®Number=0000000000092660&sum=80000 [22:47:26]written 0, free lines is 4095 [22:47:26]OFD Sender: Processing packet 118616 [packets to send 86, broken 85] [22:47:26]ProducePacketName [22:47:26]name=ofd_packets/00118616 [22:47:26]OFD Sender: To server: pG, [22:47:26]CommunicateWithHost lk.salyk.kg:30040 [22:47:26]ConnectInit lk.salyk.kg [22:47:26]Connected sock=10 [22:47: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 39 33 39 0F 01 00 00 AF 5E 07 01 BA 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 34 FF 03 08 00 03 86 2E 00 00 00 00 00 37 04 06 00 40 1A 00 00 00 00 13 04 06 00 A3 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 33 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 7E CA A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 58 CF 01 00 35 04 06 00 84 6F 63 0F 27 84 96 DD 60 FD A5 3D 88 14 [22:47:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 23 AA 47 00 45 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 39 33 39 10 04 04 00 58 CF 01 00 F4 03 04 00 0E 78 A6 66 B6 04 01 00 00 05 43 12 BB 8F D9 C4 CA [22:47:26]CommunicateWithHost err = 0 [22:47:26]CheckOFDResponse [22:47:26]1017 (14) - 77093643461234 [22:47:26]1041 (16) - 0000000000874939 [22:47:26]1040 (4) - 118616 [22:47:26]1012 (4) - 28.07.2024 16:55 [22:47:26]1206 (1) - 0 [22:47:26]OFD Sender: Remove packet 118616 [22:47:26]ProducePacketName [22:47:26]name=ofd_packets/00118616 [22:47:26]NVStorageDeleteData [22:47:26]Write to MH i2c: 01 00 00 BF 25 E4 [22:47:26]Write i2c OK [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: 01 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: 01 07 00 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: 01 07 00 BF 25 00 00 00 00 00 F0 0C E7 [22:47:26]RasterBufferAndPrint [22:47:26]line [22:47:26]line [22:47:26]line [22:47:26]line [22:47:26]line [22:47:26]written 0, free lines is 3318 [22:47:26]MH_Cut [22:47:26]Write to MH i2c: D1 01 00 C6 25 01 BD [22:47:26]Write i2c OK [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: D1 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: D1 01 00 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: D1 01 00 C6 25 00 BC [22:47:26]Write to MH i2c: 01 00 00 C7 25 EC [22:47:26]Write i2c OK [22:47:26]MH_I2C_Read... [22:47:27]OFD Sender: No OFD packet to send [22:47:27]*** Cut start [22:47:27]*** Partial cut [22:47:27]*** CUTSNS_PIN = 1 [22:47:27]*** CUTSNS_PIN = 0 [22:47:27]*** Brake cut motor [22:47:28]Read from MH i2c: 01 [22:47:28]MH_I2C_Read... [22:47:28]*** Stop cut motor [22:47:28]*** Cut end [22:47:28]Read from MH i2c: 01 07 00 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: 01 07 00 C7 25 00 00 00 00 00 FF 0F 01 [22:47:28]process_action close_receipt done [22:47:28]requested_data is exist [22:47:28]produce_requested_data [22:47:28]requested_item fm.sn is exist - process it [22:47:28]wFMCommunicate request_size=4 [22:47:28]MH_SAM_APDU [22:47:28]CAPDU: 80 11 00 00 [22:47:28]Write to MH i2c: E2 08 00 C8 25 80 11 00 00 00 00 00 00 67 [22:47:28]Write i2c OK [22:47:28]MH_I2C_Read... [22:47:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:28]Read from MH i2c: E2 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: E2 17 00 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: E2 17 00 C8 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C2 [22:47:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:47:28]wFMCommunicate OK [22:47:28]requested_item fd.num is exist - process it [22:47:28]SAM_PROTO_GetFieldsCounters [22:47:28]wFMCommunicate request_size=4 [22:47:28]MH_SAM_APDU [22:47:28]CAPDU: 80 13 00 00 [22:47:28]Write to MH i2c: E2 08 00 C9 25 80 13 00 00 00 00 00 00 6A [22:47:28]Write i2c OK [22:47:28]MH_I2C_Read... [22:47:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:47:28]Read from MH i2c: E2 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: E2 62 00 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: E2 62 00 C9 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 58 CF 01 00 0E 04 04 00 B1 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 C5 [22:47:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 58 CF 01 00 0E 04 04 00 B1 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 [22:47:28]wFMCommunicate OK [22:47:28]SAM_PROTO_GetFieldsCounters done [22:47:28]requested_item shift.num is exist - process it [22:47:28]requested_item shift.opened is exist - process it [22:47:28]req_shift_opened [22:47:28]FM_GetShiftState [22:47:28]SAM_PROTO_GetShiftState [22:47:28]wFMCommunicate request_size=4 [22:47:28]MH_SAM_APDU [22:47:28]CAPDU: 80 13 01 00 [22:47:28]Write to MH i2c: E2 08 00 CA 25 80 13 01 00 00 00 00 00 6C [22:47:28]Write i2c OK [22:47:28]MH_I2C_Read... [22:47:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:28]Read from MH i2c: E2 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: E2 0E 00 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: E2 0E 00 CA 25 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 43 [22:47:28]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [22:47:28]wFMCommunicate OK [22:47:28]SAM_PROTO_GetShiftState done [22:47:28]FM_GetShiftState done [22:47:28]req_shift_opened done [22:47:28]requested_item shift.open_date is exist - process it [22:47:28]req_shift_open_date [22:47:28]req_shift_open_date done [22:47:28]produce_requested_data done [22:47:28]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118616,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [22:47:28]process_action_free close_receipt [22:47:28]json_value_free [22:47:28]json_value_free done [22:47:28]process_json_proto returns [22:47:28]Send response to host [22:47:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118616,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [22:47:28]free response buf [22:47:28]execute_script done [22:47:28]execute_script returns [22:47:28]free content buf [22:47:28]Sock 7.Close socket [22:47:28]Sock 7.Thread stoped [22:47:32]OFD Sender: No OFD packet to send [22:47:37]OFD Sender: No OFD packet to send [22:47:42]OFD Sender: No OFD packet to send [22:47:47]OFD Sender: No OFD packet to send [22:47:52]OFD Sender: No OFD packet to send [22:47:57]OFD Sender: No OFD packet to send [22:48:02]OFD Sender: No OFD packet to send [22:48:07]OFD Sender: No OFD packet to send [22:48:12]OFD Sender: No OFD packet to send [22:48:17]OFD Sender: No OFD packet to send [22:48:22]OFD Sender: No OFD packet to send [22:48:27]OFD Sender: No OFD packet to send [22:48:31]accept exits with 9 [22:48:31]New connection [22:48:31]New thread 3067383140 created [22:48:31]Thread 3067239780 joined [22:48:31]Waiting for new connection... [22:48:31] Sock 9.Parse request [22:48:31]Sock 9.Check first char [22:48:31]Sock 9.First char is OK [22:48:31]request: POST /json_proto HTTP/1.0 [22:48:31]Method: POST [22:48:31]URL: /json_proto [22:48:31]Method is POST - this is cgi request [22:48:31]url: /json_proto [22:48:31]query_string will be loaded in cgi processing [22:48:31]execute_cgi json_proto POST (null) [22:48:31]execute_cgi path=json_proto method=POST [22:48:31]POST find Content-Length [22:48:31]Host: 172.17.45.7:8080 [22:48:31]Content-Length: 674 [22:48:31]Content-Type: application/json [22:48:31] [22:48:31]POST finish read [22:48:31]Found Content-Length = 674 [22:48:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:31]execute_script... [22:48: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)949503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:31]POST & json_proto [22:48:31]process_json_proto [22:48:31]json parsed OK: [22:48:31]protocol is kg_v1.0 [22:48:31]action value=close_receipt [22:48:31]process_action close_receipt [22:48:31]cmd_close_receipt [22:48:31]MH_GetDate [22:48:31]Write to MH i2c: F0 00 00 CB 25 DF [22:48:31]Write i2c OK [22:48:31]MH_I2C_Read... [22:48:31]Read from MH i2c: F0 [22:48:31]MH_I2C_Read... [22:48:31]Read from MH i2c: F0 09 00 [22:48:31]MH_I2C_Read... [22:48:31]Read from MH i2c: F0 09 00 CB 25 00 C2 CA A6 66 90 0F 3E 66 C3 [22:48:31]GetLastDocTimeStamp 1722206846 [22:48:31]current date 1722206914 [22:48:31]FM_GetShiftState [22:48:31]SAM_PROTO_GetShiftState [22:48:31]wFMCommunicate request_size=4 [22:48:31]MH_SAM_APDU [22:48:31]CAPDU: 80 13 01 00 [22:48:31]Write to MH i2c: E2 08 00 CC 25 80 13 01 00 00 00 00 00 6E [22:48:31]Write i2c OK [22:48:31]MH_I2C_Read... [22:48:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:31]Read from MH i2c: E2 [22:48:31]MH_I2C_Read... [22:48:31]Read from MH i2c: E2 0E 00 [22:48:31]MH_I2C_Read... [22:48:31]Read from MH i2c: E2 0E 00 CC 25 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 45 [22:48:31]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [22:48:31]wFMCommunicate OK [22:48:31]SAM_PROTO_GetShiftState done [22:48:31]FM_GetShiftState done [22:48:31]opened in 1722125364 [22:48:31]opened+sec_in_day 1722211764 [22:48:31]quantity*price = 50063 [22:48:31]sum+1 = 50064 [22:48:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 286 28.07.2024 22:48 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118617 ФПД: 192091395619270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T224834&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118617&fm=192091395619270&tin=02508201610067®Number=0000000000092660&sum=50000 [22:48:32]StoreToDocumentArchive [22:48:32]shift 433 fd 118617 [22:48:32]save to /storage/0433/doc_00118617 [22:48:32]save last doc name /storage/0433/doc_00118617 to /storage/kkm_last_doc_name [22:48:32]save OK [22:48:32]Clear old archive folders... [22:48:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:48:32]tlvbuf is 01E69690 [22:48:32]SAM_PROTO_ClearQueue [22:48:32]wFMCommunicate request_size=4 [22:48:32]MH_SAM_APDU [22:48:32]CAPDU: 80 09 00 00 [22:48:32]Write to MH i2c: E2 08 00 D9 25 80 09 00 00 00 00 00 00 70 [22:48:32]Write i2c OK [22:48:32]MH_I2C_Read... [22:48:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:48:32]Read from MH i2c: E2 [22:48:32]MH_I2C_Read... [22:48:32]Read from MH i2c: E2 03 00 [22:48:32]MH_I2C_Read... [22:48:32]Read from MH i2c: E2 03 00 D9 25 00 90 00 72 [22:48:32]RAPDU: 90 00 [22:48:32]wFMCommunicate OK [22:48:32]SAM_PROTO_ClearQueue done [22:48:32]KKMCreateOFDPacket [22:48:32]OFDProtocolAddRootSTLVToBuf [22:48:32]FM_MakeSignedData [22:48:32]FM_MakeSignedData [22:48:32]SAM_PROTO_SignData [22:48:32]wFMCommunicate request_size=4 [22:48:32]MH_SAM_APDU [22:48:32]CAPDU: 80 0D 01 02 [22:48:32]Write to MH i2c: E2 08 00 DA 25 80 0D 01 02 00 00 00 00 78 [22:48:32]Write i2c OK [22:48:32]MH_I2C_Read... [22:48:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:48:32]Read from MH i2c: E2 [22:48:32]MH_I2C_Read... [22:48:32]Read from MH i2c: E2 03 00 [22:48:32]MH_I2C_Read... [22:48:32]Read from MH i2c: E2 03 00 DA 25 00 90 00 73 [22:48:32]RAPDU: 90 00 [22:48:32]wFMCommunicate OK [22:48:32]wFMCommunicate request_size=255 [22:48:32]MH_SAM_APDU [22:48:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 C2 CA A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 CF 01 00 35 04 06 00 AE B4 C3 66 [22:48:32]Write to MH i2c: E2 02 01 DB 25 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 C2 CA A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 CF 01 00 35 04 06 00 AE B4 C3 66 00 00 AD [22:48:32]Write i2c OK [22:48:32]MH_I2C_Read... [22:48:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:33]Read from MH i2c: E2 [22:48:33]MH_I2C_Read... [22:48:33]Read from MH i2c: E2 03 00 [22:48:33]MH_I2C_Read... [22:48:33]Read from MH i2c: E2 03 00 DB 25 00 90 00 74 [22:48:33]RAPDU: 90 00 [22:48:33]wFMCommunicate OK [22:48:33]wFMCommunicate request_size=7 [22:48:33]MH_SAM_APDU [22:48:33]CAPDU: 80 0D 02 02 02 79 C6 [22:48:33]Write to MH i2c: E2 0A 00 DC 25 80 0D 02 02 02 00 79 C6 00 00 BE [22:48:33]Write i2c OK [22:48:33]MH_I2C_Read... [22:48:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:33]Read from MH i2c: E2 [22:48:33]MH_I2C_Read... [22:48:33]Read from MH i2c: E2 03 00 [22:48:33]MH_I2C_Read... [22:48:33]Read from MH i2c: E2 03 00 DC 25 00 90 00 75 [22:48:33]RAPDU: 90 00 [22:48:33]wFMCommunicate OK [22:48:33]wFMCommunicate request_size=4 [22:48:33]MH_SAM_APDU [22:48:33]CAPDU: 80 0D 03 02 [22:48:33]Write to MH i2c: E2 08 00 DD 25 80 0D 03 02 00 00 00 00 7D [22:48:33]Write i2c OK [22:48:33]MH_I2C_Read... [22:48:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:48:33]Read from MH i2c: E2 [22:48:33]MH_I2C_Read... [22:48:33]Read from MH i2c: E2 0B 00 [22:48:33]MH_I2C_Read... [22:48:33]Read from MH i2c: E2 0B 00 DD 25 00 5E 2C B1 F8 2C FD 4E 63 90 00 8B [22:48:33]RAPDU: 5E 2C B1 F8 2C FD 4E 63 90 00 [22:48:33]wFMCommunicate OK [22:48:33]SAM_PROTO_SignData done [22:48:33]FM_MakeSignedData done [22:48:33]CreateOFDProtocolMessage [22:48:33]wFMCommunicate request_size=4 [22:48:33]MH_SAM_APDU [22:48:33]CAPDU: 80 11 00 00 [22:48:33]Write to MH i2c: E2 08 00 DE 25 80 11 00 00 00 00 00 00 7D [22:48:33]Write i2c OK [22:48:33]MH_I2C_Read... [22:48:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:33]Read from MH i2c: E2 [22:48:33]MH_I2C_Read... [22:48:33]Read from MH i2c: E2 17 00 [22:48:33]MH_I2C_Read... [22:48:33]Read from MH i2c: E2 17 00 DE 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D8 [22:48:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:48:33]wFMCommunicate OK [22:48:33]CreateOFDProtocolMessage done [22:48:33]OFDSenderStorePacket 118617 [22:48:33]StoreOFDPacket docnum=118617 [22:48:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E6 12 04 01 7C BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 C2 CA A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 CF 01 00 35 04 06 00 AE B4 C3 66 79 C6 5E 2C B1 F8 2C FD 4E 63 [22:48:33]CheckFolder [22:48:33]dirname=/storage/ofd_packets [22:48:33]CheckFolder done [22:48:33]ProducePacketName [22:48:33]name=ofd_packets/00118617 [22:48:33]NVStorageSaveData ofd_packets/00118617 [22:48:33]File name is /storage/ofd_packets/00118617 [22:48:33]Write 298 bytes [22:48:33]NVStorageSaveData done [22:48:33]OFDSenderStorePacket done [22:48:33]KKMCreateOFDPacket done [22:48:33]NVStorageSaveData kkm_last_timestamp [22:48:33]File name is /storage/kkm_last_timestamp [22:48:33]Write 4 bytes [22:48:33]NVStorageSaveData done [22:48:33]ExternCall_PrintAddStr [22:48:33]wPrintStart [22:48:33]Write to MH i2c: 01 00 00 DF 25 04 [22:48:33]Write i2c OK [22:48:33]MH_I2C_Read... [22:48:33]Read from MH i2c: 01 [22:48:33]MH_I2C_Read... [22:48:33]Read from MH i2c: 01 07 00 [22:48:33]MH_I2C_Read... [22:48:33]Read from MH i2c: 01 07 00 DF 25 00 00 00 00 00 FF 0F 19 [22:48:33]RasterBufferAndPrint [22:48:33]line Счет N : (1)949503 [22:48:33]line ИНН: 02508201610067 [22:48:33]line Контрольно-Кассовый Чек [22:48:33]line ПРОДАЖА [22:48:33]line ТРК (МРК, ГНК) : 21 [22:48:33]line Товар: 2710194800 [22:48:33]line ДТ-К-5 [22:48:33]line 6.570 * 76.20 [22:48:33]line = 500.63 [22:48:33]line НДС 12% НСП 1% [22:48:33]line > о реализуемом товаре [22:48:33]line ОКРУГЛЕНИЕ: -0.63 [22:48:33]line ИТОГО: 500.00 [22:48:33]line Внесено: 500.00 [22:48:33]line СДАЧА: 0.00 [22:48:33]line НСП 1% : 4.43 [22:48:33]line НДС 12% : 53.16 [22:48:33]line Наличными: 500.00 [22:48:33]line Безнал.: 0.00 [22:48:33]line Место: АЗС № 134 "Партнер Нефть" [22:48:33]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:48:33]line СНО: Общий режим [22:48:33]line Чек 286 28.07.2024 22:48 [22:48:33]line Смена: 433 ФФД: 1.0 [22:48:33]line ЗНМ: 0300000044 [22:48:33]line РНМ: 0000000000092660 [22:48:33]line Версия ККМ: 001 [22:48:33]line ФМ: 0000000000874939 [22:48:33]line ФД: 118617 [22:48:33]line ФПД: 192091395619270 [22:48:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T224834&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118617&fm=192091395619270&tin=02508201610067®Number=0000000000092660&sum=50000 [22:48:33]OFD Sender: Processing packet 118617 [packets to send 86, broken 85] [22:48:33]ProducePacketName [22:48:33]name=ofd_packets/00118617 [22:48:33]OFD Sender: To server: pG, [22:48:33]CommunicateWithHost lk.salyk.kg:30040 [22:48:33]ConnectInit lk.salyk.kg [22:48:33]written 0, free lines is 4095 [22:48:33]Connected sock=10 [22:48:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E6 12 04 01 7C BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 C2 CA A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 CF 01 00 35 04 06 00 AE B4 C3 66 79 C6 5E 2C B1 F8 2C FD 4E 63 [22:48:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 82 13 47 00 88 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 39 33 39 10 04 04 00 59 CF 01 00 F4 03 04 00 51 78 A6 66 B6 04 01 00 00 D7 BE 2A 4F 2D 6B A0 62 [22:48:33]CommunicateWithHost err = 0 [22:48:33]CheckOFDResponse [22:48:33]1017 (14) - 77093643461234 [22:48:33]1041 (16) - 0000000000874939 [22:48:33]1040 (4) - 118617 [22:48:33]1012 (4) - 28.07.2024 16:56 [22:48:33]1206 (1) - 0 [22:48:33]OFD Sender: Remove packet 118617 [22:48:33]ProducePacketName [22:48:33]name=ofd_packets/00118617 [22:48:33]NVStorageDeleteData [22:48:33]Write to MH i2c: 01 00 00 09 26 2F [22:48:33]Write i2c OK [22:48:33]MH_I2C_Read... [22:48:33]Read from MH i2c: 01 [22:48:33]MH_I2C_Read... [22:48:33]Read from MH i2c: 01 07 00 [22:48:33]MH_I2C_Read... [22:48:33]Read from MH i2c: 01 07 00 09 26 00 00 00 00 00 D2 0C 14 [22:48:33]RasterBufferAndPrint [22:48:33]line [22:48:33]line [22:48:33]line [22:48:33]line [22:48:33]line [22:48:33]written 0, free lines is 3288 [22:48:33]MH_Cut [22:48:33]Write to MH i2c: D1 01 00 10 26 01 08 [22:48:33]Write i2c OK [22:48:33]MH_I2C_Read... [22:48:33]Read from MH i2c: D1 [22:48:33]MH_I2C_Read... [22:48:33]Read from MH i2c: D1 01 00 [22:48:33]MH_I2C_Read... [22:48:33]Read from MH i2c: D1 01 00 10 26 00 07 [22:48:33]Write to MH i2c: 01 00 00 11 26 37 [22:48:33]Write i2c OK [22:48:33]MH_I2C_Read... [22:48:34]OFD Sender: No OFD packet to send [22:48:34]*** Cut start [22:48:34]*** Partial cut [22:48:34]*** CUTSNS_PIN = 1 [22:48:34]*** CUTSNS_PIN = 0 [22:48:34]*** Brake cut motor [22:48:35]Read from MH i2c: 01 [22:48:35]MH_I2C_Read... [22:48:35]*** Stop cut motor [22:48:35]*** Cut end [22:48:35]Read from MH i2c: 01 07 00 [22:48:35]MH_I2C_Read... [22:48:35]Read from MH i2c: 01 07 00 11 26 00 00 00 00 00 FF 0F 4C [22:48:35]process_action close_receipt done [22:48:35]requested_data is exist [22:48:35]produce_requested_data [22:48:35]requested_item fm.sn is exist - process it [22:48:35]wFMCommunicate request_size=4 [22:48:35]MH_SAM_APDU [22:48:35]CAPDU: 80 11 00 00 [22:48:35]Write to MH i2c: E2 08 00 12 26 80 11 00 00 00 00 00 00 B2 [22:48:35]Write i2c OK [22:48:35]MH_I2C_Read... [22:48:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:35]Read from MH i2c: E2 [22:48:35]MH_I2C_Read... [22:48:35]Read from MH i2c: E2 17 00 [22:48:35]MH_I2C_Read... [22:48:35]Read from MH i2c: E2 17 00 12 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0D [22:48:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:48:35]wFMCommunicate OK [22:48:35]requested_item fd.num is exist - process it [22:48:35]SAM_PROTO_GetFieldsCounters [22:48:35]wFMCommunicate request_size=4 [22:48:35]MH_SAM_APDU [22:48:35]CAPDU: 80 13 00 00 [22:48:35]Write to MH i2c: E2 08 00 13 26 80 13 00 00 00 00 00 00 B5 [22:48:35]Write i2c OK [22:48:35]MH_I2C_Read... [22:48:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:48:35]Read from MH i2c: E2 [22:48:35]MH_I2C_Read... [22:48:35]Read from MH i2c: E2 62 00 [22:48:35]MH_I2C_Read... [22:48:35]Read from MH i2c: E2 62 00 13 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 59 CF 01 00 0E 04 04 00 B1 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 14 [22:48:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 59 CF 01 00 0E 04 04 00 B1 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 [22:48:35]wFMCommunicate OK [22:48:35]SAM_PROTO_GetFieldsCounters done [22:48:35]requested_item shift.num is exist - process it [22:48:35]requested_item shift.opened is exist - process it [22:48:35]req_shift_opened [22:48:35]FM_GetShiftState [22:48:35]SAM_PROTO_GetShiftState [22:48:35]wFMCommunicate request_size=4 [22:48:35]MH_SAM_APDU [22:48:35]CAPDU: 80 13 01 00 [22:48:35]Write to MH i2c: E2 08 00 14 26 80 13 01 00 00 00 00 00 B7 [22:48:35]Write i2c OK [22:48:35]MH_I2C_Read... [22:48:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:35]Read from MH i2c: E2 [22:48:35]MH_I2C_Read... [22:48:35]Read from MH i2c: E2 0E 00 [22:48:35]MH_I2C_Read... [22:48:35]Read from MH i2c: E2 0E 00 14 26 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 8E [22:48:35]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [22:48:35]wFMCommunicate OK [22:48:35]SAM_PROTO_GetShiftState done [22:48:35]FM_GetShiftState done [22:48:35]req_shift_opened done [22:48:35]requested_item shift.open_date is exist - process it [22:48:35]req_shift_open_date [22:48:35]req_shift_open_date done [22:48:35]produce_requested_data done [22:48:35]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118617,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [22:48:35]process_action_free close_receipt [22:48:35]json_value_free [22:48:35]json_value_free done [22:48:35]process_json_proto returns [22:48:35]Send response to host [22:48:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118617,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [22:48:35]free response buf [22:48:35]execute_script done [22:48:35]execute_script returns [22:48:35]free content buf [22:48:35]Sock 9.Close socket [22:48:35]Sock 9.Thread stoped [22:48:39]OFD Sender: No OFD packet to send [22:48:44]OFD Sender: No OFD packet to send [22:48:49]OFD Sender: No OFD packet to send [22:48:54]OFD Sender: No OFD packet to send [22:48:59]OFD Sender: No OFD packet to send [22:49:04]OFD Sender: No OFD packet to send [22:49:09]OFD Sender: No OFD packet to send [22:49:14]OFD Sender: No OFD packet to send [22:49:19]OFD Sender: No OFD packet to send [22:49:24]OFD Sender: No OFD packet to send [22:49:29]OFD Sender: No OFD packet to send [22:49:34]OFD Sender: No OFD packet to send [22:49:39]OFD Sender: No OFD packet to send [22:49:44]OFD Sender: No OFD packet to send [22:49:49]OFD Sender: No OFD packet to send [22:49:54]OFD Sender: No OFD packet to send [22:49:59]OFD Sender: No OFD packet to send [22:50:04]OFD Sender: No OFD packet to send [22:50:09]OFD Sender: No OFD packet to send [22:50:14]OFD Sender: No OFD packet to send [22:50:19]OFD Sender: No OFD packet to send [22:50:24]OFD Sender: No OFD packet to send [22:50:29]OFD Sender: No OFD packet to send [22:50:34]OFD Sender: No OFD packet to send [22:50:39]OFD Sender: No OFD packet to send [22:50:44]OFD Sender: No OFD packet to send [22:50:49]OFD Sender: No OFD packet to send [22:50:54]OFD Sender: No OFD packet to send [22:50:59]OFD Sender: No OFD packet to send [22:51:04]OFD Sender: No OFD packet to send [22:51:09]OFD Sender: No OFD packet to send [22:51:14]OFD Sender: No OFD packet to send [22:51:19]OFD Sender: No OFD packet to send [22:51:24]OFD Sender: No OFD packet to send [22:51:29]OFD Sender: No OFD packet to send [22:51:34]OFD Sender: No OFD packet to send [22:51:39]OFD Sender: No OFD packet to send [22:51:44]OFD Sender: No OFD packet to send [22:51:49]OFD Sender: No OFD packet to send [22:51:54]OFD Sender: No OFD packet to send [22:51:59]OFD Sender: No OFD packet to send [22:52:04]OFD Sender: No OFD packet to send [22:52:09]OFD Sender: No OFD packet to send [22:52:14]OFD Sender: No OFD packet to send [22:52:19]OFD Sender: No OFD packet to send [22:52:24]OFD Sender: No OFD packet to send [22:52:29]OFD Sender: No OFD packet to send [22:52:34]OFD Sender: No OFD packet to send [22:52:39]OFD Sender: No OFD packet to send [22:52:44]OFD Sender: No OFD packet to send [22:52:49]OFD Sender: No OFD packet to send [22:52:54]OFD Sender: No OFD packet to send [22:52:59]OFD Sender: No OFD packet to send [22:53:04]OFD Sender: No OFD packet to send [22:53:09]OFD Sender: No OFD packet to send [22:53:14]OFD Sender: No OFD packet to send [22:53:19]OFD Sender: No OFD packet to send [22:53:24]OFD Sender: No OFD packet to send [22:53:29]OFD Sender: No OFD packet to send [22:53:34]OFD Sender: No OFD packet to send [22:53:39]OFD Sender: No OFD packet to send [22:53:44]OFD Sender: No OFD packet to send [22:53:49]OFD Sender: No OFD packet to send [22:53:54]OFD Sender: No OFD packet to send [22:53:59]OFD Sender: No OFD packet to send [22:54:04]OFD Sender: No OFD packet to send [22:54:09]OFD Sender: No OFD packet to send [22:54:14]OFD Sender: No OFD packet to send [22:54:19]OFD Sender: No OFD packet to send [22:54:24]OFD Sender: No OFD packet to send [22:54:29]OFD Sender: No OFD packet to send [22:54:34]OFD Sender: No OFD packet to send [22:54:39]OFD Sender: No OFD packet to send [22:54:44]OFD Sender: No OFD packet to send [22:54:49]OFD Sender: No OFD packet to send [22:54:54]OFD Sender: No OFD packet to send [22:54:59]OFD Sender: No OFD packet to send [22:55:04]OFD Sender: No OFD packet to send [22:55:09]OFD Sender: No OFD packet to send [22:55:14]OFD Sender: No OFD packet to send [22:55:19]OFD Sender: No OFD packet to send [22:55:24]OFD Sender: No OFD packet to send [22:55:29]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:14]OFD Sender: No OFD packet to send [22:56:19]OFD Sender: No OFD packet to send [22:56:24]OFD Sender: No OFD packet to send [22:56:29]OFD Sender: No OFD packet to send [22:56:34]OFD Sender: No OFD packet to send [22:56:39]OFD Sender: No OFD packet to send [22:56:44]OFD Sender: No OFD packet to send [22:56:49]OFD Sender: No OFD packet to send [22:56:54]OFD Sender: No OFD packet to send [22:56:59]OFD Sender: No OFD packet to send [22:57:04]OFD Sender: No OFD packet to send [22:57:09]OFD Sender: No OFD packet to send [22:57:14]OFD Sender: No OFD packet to send [22:57:19]OFD Sender: No OFD packet to send [22:57:24]OFD Sender: No OFD packet to send [22:57:29]OFD Sender: No OFD packet to send [22:57:34]OFD Sender: No OFD packet to send [22:57:39]OFD Sender: No OFD packet to send [22:57:44]OFD Sender: No OFD packet to send [22:57:49]OFD Sender: No OFD packet to send [22:57:54]OFD Sender: No OFD packet to send [22:57:59]OFD Sender: No OFD packet to send [22:58:04]OFD Sender: No OFD packet to send [22:58:09]OFD Sender: No OFD packet to send [22:58:14]OFD Sender: No OFD packet to send [22:58:19]OFD Sender: No OFD packet to send [22:58:24]OFD Sender: No OFD packet to send [22:58:29]OFD Sender: No OFD packet to send [22:58:34]OFD Sender: No OFD packet to send [22:58:39]OFD Sender: No OFD packet to send [22:58:44]OFD Sender: No OFD packet to send [22:58:49]OFD Sender: No OFD packet to send [22:58:54]OFD Sender: No OFD packet to send [22:58:59]OFD Sender: No OFD packet to send [22:59:04]OFD Sender: No OFD packet to send [22:59:09]OFD Sender: No OFD packet to send [22:59:14]OFD Sender: No OFD packet to send [22:59:19]OFD Sender: No OFD packet to send [22:59:24]OFD Sender: No OFD packet to send [22:59:29]OFD Sender: No OFD packet to send [22:59:34]OFD Sender: No OFD packet to send [22:59:39]OFD Sender: No OFD packet to send [22:59:44]OFD Sender: No OFD packet to send [22:59:49]OFD Sender: No OFD packet to send [22:59:54]OFD Sender: No OFD packet to send [22:59:59]OFD Sender: No OFD packet to send [23:00:04]OFD Sender: No OFD packet to send [23:00:09]OFD Sender: No OFD packet to send [23:00:14]OFD Sender: No OFD packet to send [23:00:19]OFD Sender: No OFD packet to send [23:00:24]OFD Sender: No OFD packet to send [23:00:29]OFD Sender: No OFD packet to send [23:00:34]OFD Sender: No OFD packet to send [23:00:39]OFD Sender: No OFD packet to send [23:00:44]OFD Sender: No OFD packet to send [23:00:49]OFD Sender: No OFD packet to send [23:00:54]OFD Sender: No OFD packet to send [23:01:00]OFD Sender: No OFD packet to send [23:01:05]OFD Sender: No OFD packet to send [23:01:10]OFD Sender: No OFD packet to send [23:01:15]OFD Sender: No OFD packet to send [23:01:20]OFD Sender: No OFD packet to send [23:01:25]OFD Sender: No OFD packet to send [23:01:30]OFD Sender: No OFD packet to send [23:01:35]OFD Sender: No OFD packet to send [23:01:40]OFD Sender: No OFD packet to send [23:01:45]OFD Sender: No OFD packet to send [23:01:50]OFD Sender: No OFD packet to send [23:01:55]OFD Sender: No OFD packet to send [23:02:00]OFD Sender: No OFD packet to send [23:02:05]OFD Sender: No OFD packet to send [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:05]OFD Sender: No OFD packet to send [23:03:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:30]OFD Sender: No OFD packet to send [23:03:35]OFD Sender: No OFD packet to send [23:03:40]OFD Sender: No OFD packet to send [23:03:45]OFD Sender: No OFD packet to send [23:03:50]OFD Sender: No OFD packet to send [23:03:55]OFD Sender: No OFD packet to send [23:04:00]OFD Sender: No OFD packet to send [23:04:05]OFD Sender: No OFD packet to send [23:04:10]OFD Sender: No OFD packet to send [23:04:15]OFD Sender: No OFD packet to send [23:04:20]OFD Sender: No OFD packet to send [23:04:25]OFD Sender: No OFD packet to send [23:04:30]OFD Sender: No OFD packet to send [23:04:35]OFD Sender: No OFD packet to send [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:25]OFD Sender: No OFD packet to send [23:05:30]OFD Sender: No OFD packet to send [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:40]OFD Sender: No OFD packet to send [23:06:45]OFD Sender: No OFD packet to send [23:06:50]OFD Sender: No OFD packet to send [23:06:55]OFD Sender: No OFD packet to send [23:07:00]OFD Sender: No OFD packet to send [23:07:05]OFD Sender: No OFD packet to send [23:07:10]OFD Sender: No OFD packet to send [23:07:15]OFD Sender: No OFD packet to send [23:07:20]OFD Sender: No OFD packet to send [23:07:25]OFD Sender: No OFD packet to send [23:07:30]OFD Sender: No OFD packet to send [23:07:35]OFD Sender: No OFD packet to send [23:07:40]OFD Sender: No OFD packet to send [23:07:45]OFD Sender: No OFD packet to send [23:07:50]OFD Sender: No OFD packet to send [23:07:55]OFD Sender: No OFD packet to send [23:08:00]OFD Sender: No OFD packet to send [23:08:05]OFD Sender: No OFD packet to send [23:08:10]OFD Sender: No OFD packet to send [23:08:15]OFD Sender: No OFD packet to send [23:08:20]OFD Sender: No OFD packet to send [23:08:25]OFD Sender: No OFD packet to send [23:08:30]OFD Sender: No OFD packet to send [23:08:35]OFD Sender: No OFD packet to send [23:08:40]OFD Sender: No OFD packet to send [23:08:45]OFD Sender: No OFD packet to send [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [23:09:00]OFD Sender: No OFD packet to send [23:09:05]OFD Sender: No OFD packet to send [23:09:10]OFD Sender: No OFD packet to send [23:09:15]OFD Sender: No OFD packet to send [23:09:20]OFD Sender: No OFD packet to send [23:09:25]OFD Sender: No OFD packet to send [23:09:30]OFD Sender: No OFD packet to send [23:09:35]OFD Sender: No OFD packet to send [23:09:40]OFD Sender: No OFD packet to send [23:09:44]accept exits with 7 [23:09:44]New connection [23:09:44]New thread 3067239780 created [23:09:44]Thread 3067383140 joined [23:09:44]Waiting for new connection... [23:09:44] Sock 7.Parse request [23:09:44]Sock 7.Check first char [23:09:44]Sock 7.First char is OK [23:09:44]request: POST /json_proto HTTP/1.0 [23:09:44]Method: POST [23:09:44]URL: /json_proto [23:09:44]Method is POST - this is cgi request [23:09:44]url: /json_proto [23:09:44]query_string will be loaded in cgi processing [23:09:44]execute_cgi json_proto POST (null) [23:09:44]execute_cgi path=json_proto method=POST [23:09:44]POST find Content-Length [23:09:44]Host: 172.17.45.7:8080 [23:09:44]Content-Length: 819 [23:09:44]Content-Type: application/json [23:09:44] [23:09:44]POST finish read [23:09:44]Found Content-Length = 819 [23:09:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.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", "total" : 700.00, "payments": [ { "type": 1, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:09:44]execute_script... [23:09: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)949504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.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", "total" : 700.00, "payments": [ { "type": 1, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:09:44]POST & json_proto [23:09:44]process_json_proto [23:09:44]json parsed OK: [23:09:44]protocol is kg_v1.0 [23:09:44]action value=close_receipt [23:09:44]process_action close_receipt [23:09:44]cmd_close_receipt [23:09:44]MH_GetDate [23:09:44]Write to MH i2c: F0 00 00 15 26 2A [23:09:44]Write i2c OK [23:09:44]MH_I2C_Read... [23:09:44]Read from MH i2c: F0 [23:09:44]MH_I2C_Read... [23:09:44]Read from MH i2c: F0 09 00 [23:09:44]MH_I2C_Read... [23:09:44]Read from MH i2c: F0 09 00 15 26 00 BB CF A6 66 90 0F 3E 66 0C [23:09:44]GetLastDocTimeStamp 1722206914 [23:09:44]current date 1722208187 [23:09:44]FM_GetShiftState [23:09:44]SAM_PROTO_GetShiftState [23:09:44]wFMCommunicate request_size=4 [23:09:44]MH_SAM_APDU [23:09:44]CAPDU: 80 13 01 00 [23:09:44]Write to MH i2c: E2 08 00 16 26 80 13 01 00 00 00 00 00 B9 [23:09:44]Write i2c OK [23:09:44]MH_I2C_Read... [23:09:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:09:44]Read from MH i2c: E2 [23:09:44]MH_I2C_Read... [23:09:44]Read from MH i2c: E2 0E 00 [23:09:44]MH_I2C_Read... [23:09:44]Read from MH i2c: E2 0E 00 16 26 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 90 [23:09:44]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [23:09:44]wFMCommunicate OK [23:09:44]SAM_PROTO_GetShiftState done [23:09:44]FM_GetShiftState done [23:09:44]opened in 1722125364 [23:09:44]opened+sec_in_day 1722211764 [23:09:44]quantity*price = 70037 [23:09:44]sum+1 = 70038 [23:09:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 287 28.07.2024 23:09 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118618 ФПД: 3688034864892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T230947&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118618&fm=3688034864892&tin=02508201610067®Number=0000000000092660&sum=70000 [23:09:46]StoreToDocumentArchive [23:09:46]shift 433 fd 118618 [23:09:46]save to /storage/0433/doc_00118618 [23:09:46]save last doc name /storage/0433/doc_00118618 to /storage/kkm_last_doc_name [23:09:46]save OK [23:09:46]Clear old archive folders... [23:09:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:09:46]tlvbuf is B6FC1DC0 [23:09:46]SAM_PROTO_ClearQueue [23:09:46]wFMCommunicate request_size=4 [23:09:46]MH_SAM_APDU [23:09:46]CAPDU: 80 09 00 00 [23:09:46]Write to MH i2c: E2 08 00 23 26 80 09 00 00 00 00 00 00 BB [23:09:46]Write i2c OK [23:09:46]MH_I2C_Read... [23:09:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:09:46]Read from MH i2c: E2 [23:09:46]MH_I2C_Read... [23:09:46]Read from MH i2c: E2 03 00 [23:09:46]MH_I2C_Read... [23:09:46]Read from MH i2c: E2 03 00 23 26 00 90 00 BD [23:09:46]RAPDU: 90 00 [23:09:46]wFMCommunicate OK [23:09:46]SAM_PROTO_ClearQueue done [23:09:46]KKMCreateOFDPacket [23:09:46]OFDProtocolAddRootSTLVToBuf [23:09:46]FM_MakeSignedData [23:09:46]FM_MakeSignedData [23:09:46]SAM_PROTO_SignData [23:09:46]wFMCommunicate request_size=4 [23:09:46]MH_SAM_APDU [23:09:46]CAPDU: 80 0D 01 02 [23:09:46]Write to MH i2c: E2 08 00 24 26 80 0D 01 02 00 00 00 00 C3 [23:09:46]Write i2c OK [23:09:46]MH_I2C_Read... [23:09:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:09:46]Read from MH i2c: E2 [23:09:46]MH_I2C_Read... [23:09:46]Read from MH i2c: E2 03 00 [23:09:46]MH_I2C_Read... [23:09:46]Read from MH i2c: E2 03 00 24 26 00 90 00 BE [23:09:46]RAPDU: 90 00 [23:09:46]wFMCommunicate OK [23:09:46]wFMCommunicate request_size=255 [23:09:46]MH_SAM_APDU [23:09: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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 BB CF A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5A CF 01 00 35 04 06 00 03 [23:09:46]Write to MH i2c: E2 02 01 25 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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 BB CF A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5A CF 01 00 35 04 06 00 03 00 00 C3 [23:09:46]Write i2c OK [23:09:46]MH_I2C_Read... [23:09:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:09:46]Read from MH i2c: E2 [23:09:46]MH_I2C_Read... [23:09:46]Read from MH i2c: E2 03 00 [23:09:46]MH_I2C_Read... [23:09:46]Read from MH i2c: E2 03 00 25 26 00 90 00 BF [23:09:46]RAPDU: 90 00 [23:09:46]wFMCommunicate OK [23:09:46]wFMCommunicate request_size=10 [23:09:46]MH_SAM_APDU [23:09:46]CAPDU: 80 0D 02 02 05 5A B0 02 0E FC [23:09:46]Write to MH i2c: E2 0D 00 26 26 80 0D 02 02 05 00 5A B0 02 0E FC 00 00 E6 [23:09:46]Write i2c OK [23:09:46]MH_I2C_Read... [23:09:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:09:46]Read from MH i2c: E2 [23:09:46]MH_I2C_Read... [23:09:46]Read from MH i2c: E2 03 00 [23:09:46]MH_I2C_Read... [23:09:46]Read from MH i2c: E2 03 00 26 26 00 90 00 C0 [23:09:46]RAPDU: 90 00 [23:09:46]wFMCommunicate OK [23:09:46]wFMCommunicate request_size=4 [23:09:46]MH_SAM_APDU [23:09:46]CAPDU: 80 0D 03 02 [23:09:46]Write to MH i2c: E2 08 00 27 26 80 0D 03 02 00 00 00 00 C8 [23:09:46]Write i2c OK [23:09:46]MH_I2C_Read... [23:09:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:09:46]Read from MH i2c: E2 [23:09:46]MH_I2C_Read... [23:09:46]Read from MH i2c: E2 0B 00 [23:09:46]MH_I2C_Read... [23:09:46]Read from MH i2c: E2 0B 00 27 26 00 C6 67 DD 3D DC 3C D2 20 90 00 1A [23:09:46]RAPDU: C6 67 DD 3D DC 3C D2 20 90 00 [23:09:46]wFMCommunicate OK [23:09:46]SAM_PROTO_SignData done [23:09:46]FM_MakeSignedData done [23:09:46]CreateOFDProtocolMessage [23:09:46]wFMCommunicate request_size=4 [23:09:46]MH_SAM_APDU [23:09:46]CAPDU: 80 11 00 00 [23:09:46]Write to MH i2c: E2 08 00 28 26 80 11 00 00 00 00 00 00 C8 [23:09:46]Write i2c OK [23:09:46]MH_I2C_Read... [23:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:09:46]Read from MH i2c: E2 [23:09:46]MH_I2C_Read... [23:09:46]Read from MH i2c: E2 17 00 [23:09:46]MH_I2C_Read... [23:09:46]Read from MH i2c: E2 17 00 28 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 23 [23:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:09:46]wFMCommunicate OK [23:09:46]CreateOFDProtocolMessage done [23:09:46]OFDSenderStorePacket 118618 [23:09:46]StoreOFDPacket docnum=118618 [23:09:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 89 5F 07 01 B1 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 BB CF A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5A CF 01 00 35 04 06 00 03 5A B0 02 0E FC C6 67 DD 3D DC 3C D2 20 [23:09:46]CheckFolder [23:09:46]dirname=/storage/ofd_packets [23:09:46]CheckFolder done [23:09:46]ProducePacketName [23:09:46]name=ofd_packets/00118618 [23:09:46]NVStorageSaveData ofd_packets/00118618 [23:09:46]File name is /storage/ofd_packets/00118618 [23:09:46]Write 301 bytes [23:09:46]NVStorageSaveData done [23:09:46]OFDSenderStorePacket done [23:09:46]KKMCreateOFDPacket done [23:09:46]NVStorageSaveData kkm_last_timestamp [23:09:46]File name is /storage/kkm_last_timestamp [23:09:46]Write 4 bytes [23:09:46]NVStorageSaveData done [23:09:46]ExternCall_PrintAddStr [23:09:46]wPrintStart [23:09:46]Write to MH i2c: 01 00 00 29 26 4F [23:09:46]Write i2c OK [23:09:46]MH_I2C_Read... [23:09:46]Read from MH i2c: 01 [23:09:46]MH_I2C_Read... [23:09:46]Read from MH i2c: 01 07 00 [23:09:46]MH_I2C_Read... [23:09:46]Read from MH i2c: 01 07 00 29 26 00 00 00 00 00 FF 0F 64 [23:09:46]RasterBufferAndPrint [23:09:46]line Счет N : (1)949504 [23:09:46]line ИНН: 02508201610067 [23:09:46]line Контрольно-Кассовый Чек [23:09:46]line ПРОДАЖА [23:09:46]line ТРК (МРК, ГНК) : 41 [23:09:46]line Товар: 2710124130 [23:09:46]line Аи-92-К-4 [23:09:46]line 10.330 * 67.80 [23:09:46]line = 700.37 [23:09:46]line НДС 12% НСП 1% [23:09:46]line > о реализуемом товаре [23:09:46]line ОКРУГЛЕНИЕ: -0.37 [23:09:46]line ИТОГО: 700.00 [23:09:46]line НСП 1% : 6.20 [23:09:46]line НДС 12% : 74.38 [23:09:46]line Наличными: 0.00 [23:09:46]line Безнал.: 700.00 [23:09:46]line Место: АЗС № 134 "Партнер Нефть" [23:09:46]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:09:46]line СНО: Общий режим [23:09:46]line Чек 287 28.07.2024 23:09 [23:09:46]line Смена: 433 ФФД: 1.0 [23:09:46]line ЗНМ: 0300000044 [23:09:46]line РНМ: 0000000000092660 [23:09:46]line Версия ККМ: 001 [23:09:46]line Платежная система: O! деньги [23:09:46]line ФМ: 0000000000874939 [23:09:46]line ФД: 118618 [23:09:46]line ФПД: 3688034864892 [23:09:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T230947&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118618&fm=3688034864892&tin=02508201610067®Number=0000000000092660&sum=70000 [23:09:46]written 0, free lines is 4095 [23:09:46]OFD Sender: Processing packet 118618 [packets to send 86, broken 85] [23:09:46]ProducePacketName [23:09:46]name=ofd_packets/00118618 [23:09:46]OFD Sender: To server: pG, [23:09:46]CommunicateWithHost lk.salyk.kg:30040 [23:09:46]ConnectInit lk.salyk.kg [23:09:46]Connected sock=10 [23:09: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 39 33 39 0F 01 00 00 89 5F 07 01 B1 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 BB CF A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5A CF 01 00 35 04 06 00 03 5A B0 02 0E FC C6 67 DD 3D DC 3C D2 20 [23:09:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F7 69 47 00 21 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 39 33 39 10 04 04 00 5A CF 01 00 F4 03 04 00 4A 7D A6 66 B6 04 01 00 00 D0 D6 95 30 23 39 C3 EC [23:09:47]CommunicateWithHost err = 0 [23:09:47]CheckOFDResponse [23:09:47]1017 (14) - 77093643461234 [23:09:47]1041 (16) - 0000000000874939 [23:09:47]1040 (4) - 118618 [23:09:47]1012 (4) - 28.07.2024 17:18 [23:09:47]1206 (1) - 0 [23:09:47]OFD Sender: Remove packet 118618 [23:09:47]ProducePacketName [23:09:47]name=ofd_packets/00118618 [23:09:47]NVStorageDeleteData [23:09:47]Write to MH i2c: 01 00 00 53 26 79 [23:09:47]Write i2c OK [23:09:47]MH_I2C_Read... [23:09:47]Read from MH i2c: 01 [23:09:47]MH_I2C_Read... [23:09:47]Read from MH i2c: 01 07 00 [23:09:47]MH_I2C_Read... [23:09:47]Read from MH i2c: 01 07 00 53 26 00 00 00 00 00 EE 0C 7A [23:09:47]RasterBufferAndPrint [23:09:47]line [23:09:47]line [23:09:47]line [23:09:47]line [23:09:47]line [23:09:47]written 0, free lines is 3317 [23:09:47]MH_Cut [23:09:47]Write to MH i2c: D1 01 00 5A 26 01 52 [23:09:47]Write i2c OK [23:09:47]MH_I2C_Read... [23:09:47]Read from MH i2c: D1 [23:09:47]MH_I2C_Read... [23:09:47]Read from MH i2c: D1 01 00 [23:09:47]MH_I2C_Read... [23:09:47]Read from MH i2c: D1 01 00 5A 26 00 51 [23:09:47]Write to MH i2c: 01 00 00 5B 26 81 [23:09:47]Write i2c OK [23:09:47]MH_I2C_Read... [23:09:47]OFD Sender: No OFD packet to send [23:09:48]*** Cut start [23:09:48]*** Partial cut [23:09:48]*** CUTSNS_PIN = 1 [23:09:48]*** CUTSNS_PIN = 0 [23:09:48]*** Brake cut motor [23:09:48]Read from MH i2c: 01 [23:09:48]MH_I2C_Read... [23:09:48]*** Stop cut motor [23:09:48]*** Cut end [23:09:48]Read from MH i2c: 01 07 00 [23:09:48]MH_I2C_Read... [23:09:48]Read from MH i2c: 01 07 00 5B 26 00 00 00 00 00 FF 0F 96 [23:09:48]process_action close_receipt done [23:09:48]requested_data is exist [23:09:48]produce_requested_data [23:09:48]requested_item fm.sn is exist - process it [23:09:48]wFMCommunicate request_size=4 [23:09:48]MH_SAM_APDU [23:09:48]CAPDU: 80 11 00 00 [23:09:48]Write to MH i2c: E2 08 00 5C 26 80 11 00 00 00 00 00 00 FC [23:09:48]Write i2c OK [23:09:48]MH_I2C_Read... [23:09:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:09:48]Read from MH i2c: E2 [23:09:48]MH_I2C_Read... [23:09:48]Read from MH i2c: E2 17 00 [23:09:48]MH_I2C_Read... [23:09:48]Read from MH i2c: E2 17 00 5C 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 57 [23:09:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:09:48]wFMCommunicate OK [23:09:48]requested_item fd.num is exist - process it [23:09:48]SAM_PROTO_GetFieldsCounters [23:09:48]wFMCommunicate request_size=4 [23:09:48]MH_SAM_APDU [23:09:48]CAPDU: 80 13 00 00 [23:09:48]Write to MH i2c: E2 08 00 5D 26 80 13 00 00 00 00 00 00 FF [23:09:48]Write i2c OK [23:09:48]MH_I2C_Read... [23:09:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:09:48]Read from MH i2c: E2 [23:09:48]MH_I2C_Read... [23:09:48]Read from MH i2c: E2 62 00 [23:09:48]MH_I2C_Read... [23:09:48]Read from MH i2c: E2 62 00 5D 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5A CF 01 00 0E 04 04 00 B1 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 62 [23:09:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5A CF 01 00 0E 04 04 00 B1 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 [23:09:48]wFMCommunicate OK [23:09:48]SAM_PROTO_GetFieldsCounters done [23:09:48]requested_item shift.num is exist - process it [23:09:48]requested_item shift.opened is exist - process it [23:09:48]req_shift_opened [23:09:48]FM_GetShiftState [23:09:48]SAM_PROTO_GetShiftState [23:09:48]wFMCommunicate request_size=4 [23:09:48]MH_SAM_APDU [23:09:48]CAPDU: 80 13 01 00 [23:09:48]Write to MH i2c: E2 08 00 5E 26 80 13 01 00 00 00 00 00 01 [23:09:48]Write i2c OK [23:09:48]MH_I2C_Read... [23:09:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:09:48]Read from MH i2c: E2 [23:09:48]MH_I2C_Read... [23:09:48]Read from MH i2c: E2 0E 00 [23:09:48]MH_I2C_Read... [23:09:48]Read from MH i2c: E2 0E 00 5E 26 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 D8 [23:09:48]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [23:09:48]wFMCommunicate OK [23:09:48]SAM_PROTO_GetShiftState done [23:09:48]FM_GetShiftState done [23:09:48]req_shift_opened done [23:09:48]requested_item shift.open_date is exist - process it [23:09:48]req_shift_open_date [23:09:48]req_shift_open_date done [23:09:48]produce_requested_data done [23:09:48]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118618,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [23:09:48]process_action_free close_receipt [23:09:48]json_value_free [23:09:48]json_value_free done [23:09:48]process_json_proto returns [23:09:48]Send response to host [23:09:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118618,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [23:09:48]free response buf [23:09:48]execute_script done [23:09:48]execute_script returns [23:09:48]free content buf [23:09:48]Sock 7.Close socket [23:09:48]Sock 7.Thread stoped [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:03]OFD Sender: No OFD packet to send [23:14:08]OFD Sender: No OFD packet to send [23:14:13]OFD Sender: No OFD packet to send [23:14:18]OFD Sender: No OFD packet to send [23:14:23]OFD Sender: No OFD packet to send [23:14:28]OFD Sender: No OFD packet to send [23:14:33]OFD Sender: No OFD packet to send [23:14:38]OFD Sender: No OFD packet to send [23:14:43]OFD Sender: No OFD packet to send [23:14:48]OFD Sender: No OFD packet to send [23:14:53]OFD Sender: No OFD packet to send [23:14:58]OFD Sender: No OFD packet to send [23:15:03]OFD Sender: No OFD packet to send [23:15:08]OFD Sender: No OFD packet to send [23:15:13]OFD Sender: No OFD packet to send [23:15:18]OFD Sender: No OFD packet to send [23:15:23]OFD Sender: No OFD packet to send [23:15:28]OFD Sender: No OFD packet to send [23:15:33]OFD Sender: No OFD packet to send [23:15:38]OFD Sender: No OFD packet to send [23:15:43]OFD Sender: No OFD packet to send [23:15:48]OFD Sender: No OFD packet to send [23:15:53]OFD Sender: No OFD packet to send [23:15:56]accept exits with 9 [23:15:56]New connection [23:15:56]New thread 3067383140 created [23:15:56]Thread 3067239780 joined [23:15:56]Waiting for new connection... [23:15:56] Sock 9.Parse request [23:15:56]Sock 9.Check first char [23:15:56]Sock 9.First char is OK [23:15:56]request: POST /json_proto HTTP/1.0 [23:15:56]Method: POST [23:15:56]URL: /json_proto [23:15:56]Method is POST - this is cgi request [23:15:56]url: /json_proto [23:15:56]query_string will be loaded in cgi processing [23:15:56]execute_cgi json_proto POST (null) [23:15:56]execute_cgi path=json_proto method=POST [23:15:56]POST find Content-Length [23:15:56]Host: 172.17.45.7:8080 [23:15:56]Content-Length: 819 [23:15:56]Content-Type: application/json [23:15:56] [23:15:56]POST finish read [23:15:56]Found Content-Length = 819 [23:15:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:15:56]execute_script... [23:15: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)949505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:15:56]POST & json_proto [23:15:56]process_json_proto [23:15:56]json parsed OK: [23:15:56]protocol is kg_v1.0 [23:15:56]action value=close_receipt [23:15:56]process_action close_receipt [23:15:56]cmd_close_receipt [23:15:56]MH_GetDate [23:15:56]Write to MH i2c: F0 00 00 5F 26 74 [23:15:56]Write i2c OK [23:15:56]MH_I2C_Read... [23:15:56]Read from MH i2c: F0 [23:15:56]MH_I2C_Read... [23:15:56]Read from MH i2c: F0 09 00 [23:15:56]MH_I2C_Read... [23:15:56]Read from MH i2c: F0 09 00 5F 26 00 2F D1 A6 66 90 0F 3E 66 CC [23:15:56]GetLastDocTimeStamp 1722208187 [23:15:56]current date 1722208559 [23:15:56]FM_GetShiftState [23:15:56]SAM_PROTO_GetShiftState [23:15:56]wFMCommunicate request_size=4 [23:15:56]MH_SAM_APDU [23:15:56]CAPDU: 80 13 01 00 [23:15:56]Write to MH i2c: E2 08 00 60 26 80 13 01 00 00 00 00 00 03 [23:15:56]Write i2c OK [23:15:56]MH_I2C_Read... [23:15:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:15:56]Read from MH i2c: E2 [23:15:56]MH_I2C_Read... [23:15:56]Read from MH i2c: E2 0E 00 [23:15:56]MH_I2C_Read... [23:15:56]Read from MH i2c: E2 0E 00 60 26 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 DA [23:15:56]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [23:15:56]wFMCommunicate OK [23:15:56]SAM_PROTO_GetShiftState done [23:15:56]FM_GetShiftState done [23:15:56]opened in 1722125364 [23:15:56]opened+sec_in_day 1722211764 [23:15:56]quantity*price = 100050 [23:15:56]sum+1 = 100052 [23:15:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 288 28.07.2024 23:15 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118619 ФПД: 63309653815167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T231559&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118619&fm=63309653815167&tin=02508201610067®Number=0000000000092660&sum=100000 [23:15:57]StoreToDocumentArchive [23:15:57]shift 433 fd 118619 [23:15:57]save to /storage/0433/doc_00118619 [23:15:57]save last doc name /storage/0433/doc_00118619 to /storage/kkm_last_doc_name [23:15:57]save OK [23:15:57]Clear old archive folders... [23:15:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:15:57]tlvbuf is B6F2A0E0 [23:15:57]SAM_PROTO_ClearQueue [23:15:57]wFMCommunicate request_size=4 [23:15:57]MH_SAM_APDU [23:15:57]CAPDU: 80 09 00 00 [23:15:57]Write to MH i2c: E2 08 00 6D 26 80 09 00 00 00 00 00 00 05 [23:15:57]Write i2c OK [23:15:57]MH_I2C_Read... [23:15:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:15:57]Read from MH i2c: E2 [23:15:57]MH_I2C_Read... [23:15:57]Read from MH i2c: E2 03 00 [23:15:57]MH_I2C_Read... [23:15:57]Read from MH i2c: E2 03 00 6D 26 00 90 00 07 [23:15:57]RAPDU: 90 00 [23:15:57]wFMCommunicate OK [23:15:57]SAM_PROTO_ClearQueue done [23:15:57]KKMCreateOFDPacket [23:15:57]OFDProtocolAddRootSTLVToBuf [23:15:57]FM_MakeSignedData [23:15:57]FM_MakeSignedData [23:15:57]SAM_PROTO_SignData [23:15:57]wFMCommunicate request_size=4 [23:15:57]MH_SAM_APDU [23:15:57]CAPDU: 80 0D 01 02 [23:15:57]Write to MH i2c: E2 08 00 6E 26 80 0D 01 02 00 00 00 00 0D [23:15:57]Write i2c OK [23:15:57]MH_I2C_Read... [23:15:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:15:57]Read from MH i2c: E2 [23:15:57]MH_I2C_Read... [23:15:57]Read from MH i2c: E2 03 00 [23:15:57]MH_I2C_Read... [23:15:57]Read from MH i2c: E2 03 00 6E 26 00 90 00 08 [23:15:57]RAPDU: 90 00 [23:15:57]wFMCommunicate OK [23:15:57]wFMCommunicate request_size=255 [23:15:57]MH_SAM_APDU [23:15:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 2F D1 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5B CF 01 00 35 04 06 00 39 94 6D 6D [23:15:57]Write to MH i2c: E2 02 01 6F 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 2F D1 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5B CF 01 00 35 04 06 00 39 94 6D 6D 00 00 4E [23:15:57]Write i2c OK [23:15:57]MH_I2C_Read... [23:15:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:15:57]Read from MH i2c: E2 [23:15:57]MH_I2C_Read... [23:15:57]Read from MH i2c: E2 03 00 [23:15:57]MH_I2C_Read... [23:15:57]Read from MH i2c: E2 03 00 6F 26 00 90 00 09 [23:15:57]RAPDU: 90 00 [23:15:57]wFMCommunicate OK [23:15:57]wFMCommunicate request_size=7 [23:15:57]MH_SAM_APDU [23:15:57]CAPDU: 80 0D 02 02 02 2F 7F [23:15:57]Write to MH i2c: E2 0A 00 70 26 80 0D 02 02 02 00 2F 7F 00 00 C2 [23:15:57]Write i2c OK [23:15:57]MH_I2C_Read... [23:15:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:15:57]Read from MH i2c: E2 [23:15:57]MH_I2C_Read... [23:15:57]Read from MH i2c: E2 03 00 [23:15:57]MH_I2C_Read... [23:15:57]Read from MH i2c: E2 03 00 70 26 00 90 00 0A [23:15:57]RAPDU: 90 00 [23:15:57]wFMCommunicate OK [23:15:57]wFMCommunicate request_size=4 [23:15:57]MH_SAM_APDU [23:15:57]CAPDU: 80 0D 03 02 [23:15:57]Write to MH i2c: E2 08 00 71 26 80 0D 03 02 00 00 00 00 12 [23:15:57]Write i2c OK [23:15:57]MH_I2C_Read... [23:15:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:15:58]Read from MH i2c: E2 [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: E2 0B 00 [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: E2 0B 00 71 26 00 16 7E 11 11 A1 AB 07 3A 90 00 56 [23:15:58]RAPDU: 16 7E 11 11 A1 AB 07 3A 90 00 [23:15:58]wFMCommunicate OK [23:15:58]SAM_PROTO_SignData done [23:15:58]FM_MakeSignedData done [23:15:58]CreateOFDProtocolMessage [23:15:58]wFMCommunicate request_size=4 [23:15:58]MH_SAM_APDU [23:15:58]CAPDU: 80 11 00 00 [23:15:58]Write to MH i2c: E2 08 00 72 26 80 11 00 00 00 00 00 00 12 [23:15:58]Write i2c OK [23:15:58]MH_I2C_Read... [23:15:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:15:58]Read from MH i2c: E2 [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: E2 17 00 [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: E2 17 00 72 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6D [23:15:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:15:58]wFMCommunicate OK [23:15:58]CreateOFDProtocolMessage done [23:15:58]OFDSenderStorePacket 118619 [23:15:58]StoreOFDPacket docnum=118619 [23:15:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 17 E3 04 01 61 A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 2F D1 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5B CF 01 00 35 04 06 00 39 94 6D 6D 2F 7F 16 7E 11 11 A1 AB 07 3A [23:15:58]CheckFolder [23:15:58]dirname=/storage/ofd_packets [23:15:58]CheckFolder done [23:15:58]ProducePacketName [23:15:58]name=ofd_packets/00118619 [23:15:58]NVStorageSaveData ofd_packets/00118619 [23:15:58]File name is /storage/ofd_packets/00118619 [23:15:58]Write 298 bytes [23:15:58]NVStorageSaveData done [23:15:58]OFDSenderStorePacket done [23:15:58]KKMCreateOFDPacket done [23:15:58]NVStorageSaveData kkm_last_timestamp [23:15:58]File name is /storage/kkm_last_timestamp [23:15:58]Write 4 bytes [23:15:58]NVStorageSaveData done [23:15:58]ExternCall_PrintAddStr [23:15:58]wPrintStart [23:15:58]Write to MH i2c: 01 00 00 73 26 99 [23:15:58]Write i2c OK [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: 01 [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: 01 07 00 [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: 01 07 00 73 26 00 00 00 00 00 FF 0F AE [23:15:58]RasterBufferAndPrint [23:15:58]line Счет N : (1)949505 [23:15:58]line ИНН: 02508201610067 [23:15:58]line Контрольно-Кассовый Чек [23:15:58]line ПРОДАЖА [23:15:58]line ТРК (МРК, ГНК) : 21 [23:15:58]line Товар: 2710194800 [23:15:58]line ДТ-К-5 [23:15:58]line 13.130 * 76.20 [23:15:58]line = 1000.51 [23:15:58]line НДС 12% НСП 1% [23:15:58]line > о реализуемом товаре [23:15:58]line ОКРУГЛЕНИЕ: -0.51 [23:15:58]line ИТОГО: 1000.00 [23:15:58]line НСП 1% : 8.85 [23:15:58]line НДС 12% : 106.25 [23:15:58]line Наличными: 0.00 [23:15:58]line Безнал.: 1000.00 [23:15:58]line Место: АЗС № 134 "Партнер Нефть" [23:15:58]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:15:58]line СНО: Общий режим [23:15:58]line Чек 288 28.07.2024 23:15 [23:15:58]line Смена: 433 ФФД: 1.0 [23:15:58]line ЗНМ: 0300000044 [23:15:58]line РНМ: 0000000000092660 [23:15:58]line Версия ККМ: 001 [23:15:58]line Платежная система: O! деньги [23:15:58]line ФМ: 0000000000874939 [23:15:58]line ФД: 118619 [23:15:58]line ФПД: 63309653815167 [23:15:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T231559&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118619&fm=63309653815167&tin=02508201610067®Number=0000000000092660&sum=100000 [23:15:58]OFD Sender: Processing packet 118619 [packets to send 86, broken 85] [23:15:58]ProducePacketName [23:15:58]name=ofd_packets/00118619 [23:15:58]OFD Sender: To server: pG, [23:15:58]CommunicateWithHost lk.salyk.kg:30040 [23:15:58]ConnectInit lk.salyk.kg [23:15:58]written 0, free lines is 4095 [23:15:58]Connected sock=10 [23:15:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 17 E3 04 01 61 A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 2F D1 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5B CF 01 00 35 04 06 00 39 94 6D 6D 2F 7F 16 7E 11 11 A1 AB 07 3A [23:15:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 27 9D 47 00 5B 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 39 33 39 10 04 04 00 5B CF 01 00 F4 03 04 00 BE 7E A6 66 B6 04 01 00 00 EC BF FE B3 EF C1 09 7E [23:15:58]CommunicateWithHost err = 0 [23:15:58]CheckOFDResponse [23:15:58]1017 (14) - 77093643461234 [23:15:58]1041 (16) - 0000000000874939 [23:15:58]1040 (4) - 118619 [23:15:58]1012 (4) - 28.07.2024 17:24 [23:15:58]1206 (1) - 0 [23:15:58]OFD Sender: Remove packet 118619 [23:15:58]ProducePacketName [23:15:58]name=ofd_packets/00118619 [23:15:58]NVStorageDeleteData [23:15:58]Write to MH i2c: 01 00 00 9D 26 C3 [23:15:58]Write i2c OK [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: 01 [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: 01 07 00 [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: 01 07 00 9D 26 00 00 00 00 00 D7 0C AD [23:15:58]RasterBufferAndPrint [23:15:58]line [23:15:58]line [23:15:58]line [23:15:58]line [23:15:58]line [23:15:58]written 0, free lines is 3294 [23:15:58]MH_Cut [23:15:58]Write to MH i2c: D1 01 00 A4 26 01 9C [23:15:58]Write i2c OK [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: D1 [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: D1 01 00 [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: D1 01 00 A4 26 00 9B [23:15:58]Write to MH i2c: 01 00 00 A5 26 CB [23:15:58]Write i2c OK [23:15:58]MH_I2C_Read... [23:15:59]OFD Sender: No OFD packet to send [23:15:59]*** Cut start [23:15:59]*** Partial cut [23:15:59]*** CUTSNS_PIN = 1 [23:15:59]*** CUTSNS_PIN = 0 [23:15:59]*** Brake cut motor [23:16:00]Read from MH i2c: 01 [23:16:00]MH_I2C_Read... [23:16:00]*** Stop cut motor [23:16:00]*** Cut end [23:16:00]Read from MH i2c: 01 07 00 [23:16:00]MH_I2C_Read... [23:16:00]Read from MH i2c: 01 07 00 A5 26 00 00 00 00 00 FF 0F E0 [23:16:00]process_action close_receipt done [23:16:00]requested_data is exist [23:16:00]produce_requested_data [23:16:00]requested_item fm.sn is exist - process it [23:16:00]wFMCommunicate request_size=4 [23:16:00]MH_SAM_APDU [23:16:00]CAPDU: 80 11 00 00 [23:16:00]Write to MH i2c: E2 08 00 A6 26 80 11 00 00 00 00 00 00 46 [23:16:00]Write i2c OK [23:16:00]MH_I2C_Read... [23:16:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:16:00]Read from MH i2c: E2 [23:16:00]MH_I2C_Read... [23:16:00]Read from MH i2c: E2 17 00 [23:16:00]MH_I2C_Read... [23:16:00]Read from MH i2c: E2 17 00 A6 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A1 [23:16:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:16:00]wFMCommunicate OK [23:16:00]requested_item fd.num is exist - process it [23:16:00]SAM_PROTO_GetFieldsCounters [23:16:00]wFMCommunicate request_size=4 [23:16:00]MH_SAM_APDU [23:16:00]CAPDU: 80 13 00 00 [23:16:00]Write to MH i2c: E2 08 00 A7 26 80 13 00 00 00 00 00 00 49 [23:16:00]Write i2c OK [23:16:00]MH_I2C_Read... [23:16:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:16:00]Read from MH i2c: E2 [23:16:00]MH_I2C_Read... [23:16:00]Read from MH i2c: E2 62 00 [23:16:00]MH_I2C_Read... [23:16:00]Read from MH i2c: E2 62 00 A7 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5B CF 01 00 0E 04 04 00 B1 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 B0 [23:16:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5B CF 01 00 0E 04 04 00 B1 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 [23:16:00]wFMCommunicate OK [23:16:00]SAM_PROTO_GetFieldsCounters done [23:16:00]requested_item shift.num is exist - process it [23:16:00]requested_item shift.opened is exist - process it [23:16:00]req_shift_opened [23:16:00]FM_GetShiftState [23:16:00]SAM_PROTO_GetShiftState [23:16:00]wFMCommunicate request_size=4 [23:16:00]MH_SAM_APDU [23:16:00]CAPDU: 80 13 01 00 [23:16:00]Write to MH i2c: E2 08 00 A8 26 80 13 01 00 00 00 00 00 4B [23:16:00]Write i2c OK [23:16:00]MH_I2C_Read... [23:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:00]Read from MH i2c: E2 [23:16:00]MH_I2C_Read... [23:16:00]Read from MH i2c: E2 0E 00 [23:16:00]MH_I2C_Read... [23:16:00]Read from MH i2c: E2 0E 00 A8 26 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 22 [23:16:00]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [23:16:00]wFMCommunicate OK [23:16:00]SAM_PROTO_GetShiftState done [23:16:00]FM_GetShiftState done [23:16:00]req_shift_opened done [23:16:00]requested_item shift.open_date is exist - process it [23:16:00]req_shift_open_date [23:16:00]req_shift_open_date done [23:16:00]produce_requested_data done [23:16:00]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118619,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [23:16:00]process_action_free close_receipt [23:16:00]json_value_free [23:16:00]json_value_free done [23:16:00]process_json_proto returns [23:16:00]Send response to host [23:16:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118619,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [23:16:00]free response buf [23:16:00]execute_script done [23:16:00]execute_script returns [23:16:00]free content buf [23:16:00]Sock 9.Close socket [23:16:00]Sock 9.Thread stoped [23:16:04]OFD Sender: No OFD packet to send [23:16:09]OFD Sender: No OFD packet to send [23:16:14]OFD Sender: No OFD packet to send [23:16:19]OFD Sender: No OFD packet to send [23:16:24]OFD Sender: No OFD packet to send [23:16:29]OFD Sender: No OFD packet to send [23:16:34]OFD Sender: No OFD packet to send [23:16:39]OFD Sender: No OFD packet to send [23:16:44]OFD Sender: No OFD packet to send [23:16:49]OFD Sender: No OFD packet to send [23:16:54]OFD Sender: No OFD packet to send [23:16:59]OFD Sender: No OFD packet to send [23:17:04]OFD Sender: No OFD packet to send [23:17:09]OFD Sender: No OFD packet to send [23:17:14]OFD Sender: No OFD packet to send [23:17:19]OFD Sender: No OFD packet to send [23:17:24]OFD Sender: No OFD packet to send [23:17:29]OFD Sender: No OFD packet to send [23:17:34]OFD Sender: No OFD packet to send [23:17:39]OFD Sender: No OFD packet to send [23:17:44]OFD Sender: No OFD packet to send [23:17:49]OFD Sender: No OFD packet to send [23:17:54]OFD Sender: No OFD packet to send [23:17:59]OFD Sender: No OFD packet to send [23:18:04]OFD Sender: No OFD packet to send [23:18:09]OFD Sender: No OFD packet to send [23:18:14]OFD Sender: No OFD packet to send [23:18:19]OFD Sender: No OFD packet to send [23:18:24]OFD Sender: No OFD packet to send [23:18:29]OFD Sender: No OFD packet to send [23:18:32]accept exits with 7 [23:18:32]New connection [23:18:32]New thread 3067239780 created [23:18:32]Thread 3067383140 joined [23:18:32]Waiting for new connection... [23:18:32] Sock 7.Parse request [23:18:32]Sock 7.Check first char [23:18:32]Sock 7.First char is OK [23:18:32]request: POST /json_proto HTTP/1.0 [23:18:32]Method: POST [23:18:32]URL: /json_proto [23:18:32]Method is POST - this is cgi request [23:18:32]url: /json_proto [23:18:32]query_string will be loaded in cgi processing [23:18:32]execute_cgi json_proto POST (null) [23:18:32]execute_cgi path=json_proto method=POST [23:18:32]POST find Content-Length [23:18:32]Host: 172.17.45.7:8080 [23:18:32]Content-Length: 682 [23:18:32]Content-Type: application/json [23:18:32] [23:18:32]POST finish read [23:18:32]Found Content-Length = 682 [23:18:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 27.230, "sum" : 2020.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2020.00, "total" : 2020.00, "payments": [ { "type": 0, "sum" : 2020.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:32]execute_script... [23:18:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 27.230, "sum" : 2020.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2020.00, "total" : 2020.00, "payments": [ { "type": 0, "sum" : 2020.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:32]POST & json_proto [23:18:32]process_json_proto [23:18:32]json parsed OK: [23:18:32]protocol is kg_v1.0 [23:18:32]action value=close_receipt [23:18:32]process_action close_receipt [23:18:32]cmd_close_receipt [23:18:32]MH_GetDate [23:18:32]Write to MH i2c: F0 00 00 A9 26 BE [23:18:32]Write i2c OK [23:18:32]MH_I2C_Read... [23:18:32]Read from MH i2c: F0 [23:18:32]MH_I2C_Read... [23:18:32]Read from MH i2c: F0 09 00 [23:18:32]MH_I2C_Read... [23:18:32]Read from MH i2c: F0 09 00 A9 26 00 CA D1 A6 66 90 0F 3E 66 B1 [23:18:32]GetLastDocTimeStamp 1722208559 [23:18:32]current date 1722208714 [23:18:32]FM_GetShiftState [23:18:32]SAM_PROTO_GetShiftState [23:18:32]wFMCommunicate request_size=4 [23:18:32]MH_SAM_APDU [23:18:32]CAPDU: 80 13 01 00 [23:18:32]Write to MH i2c: E2 08 00 AA 26 80 13 01 00 00 00 00 00 4D [23:18:32]Write i2c OK [23:18:32]MH_I2C_Read... [23:18:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:32]Read from MH i2c: E2 [23:18:32]MH_I2C_Read... [23:18:32]Read from MH i2c: E2 0E 00 [23:18:32]MH_I2C_Read... [23:18:32]Read from MH i2c: E2 0E 00 AA 26 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 24 [23:18:32]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [23:18:32]wFMCommunicate OK [23:18:32]SAM_PROTO_GetShiftState done [23:18:32]FM_GetShiftState done [23:18:32]opened in 1722125364 [23:18:32]opened+sec_in_day 1722211764 [23:18:32]quantity*price = 202046 [23:18:32]sum+1 = 202048 [23:18:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2020.00 Внесено: 2020.00 СДАЧА: 0.00 НСП 1% : 17.88 НДС 12% : 214.56 Наличными: 2020.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 289 28.07.2024 23:18 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118620 ФПД: 36034425990767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T231834&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118620&fm=36034425990767&tin=02508201610067®Number=0000000000092660&sum=202000 [23:18:33]StoreToDocumentArchive [23:18:33]shift 433 fd 118620 [23:18:33]save to /storage/0433/doc_00118620 [23:18:33]save last doc name /storage/0433/doc_00118620 to /storage/kkm_last_doc_name [23:18:33]save OK [23:18:33]Clear old archive folders... [23:18:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:18:33]tlvbuf is B6FC17C0 [23:18:33]SAM_PROTO_ClearQueue [23:18:33]wFMCommunicate request_size=4 [23:18:33]MH_SAM_APDU [23:18:33]CAPDU: 80 09 00 00 [23:18:33]Write to MH i2c: E2 08 00 B7 26 80 09 00 00 00 00 00 00 4F [23:18:33]Write i2c OK [23:18:33]MH_I2C_Read... [23:18:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:18:33]Read from MH i2c: E2 [23:18:33]MH_I2C_Read... [23:18:33]Read from MH i2c: E2 03 00 [23:18:33]MH_I2C_Read... [23:18:33]Read from MH i2c: E2 03 00 B7 26 00 90 00 51 [23:18:33]RAPDU: 90 00 [23:18:33]wFMCommunicate OK [23:18:33]SAM_PROTO_ClearQueue done [23:18:33]KKMCreateOFDPacket [23:18:33]OFDProtocolAddRootSTLVToBuf [23:18:33]FM_MakeSignedData [23:18:33]FM_MakeSignedData [23:18:33]SAM_PROTO_SignData [23:18:33]wFMCommunicate request_size=4 [23:18:33]MH_SAM_APDU [23:18:33]CAPDU: 80 0D 01 02 [23:18:33]Write to MH i2c: E2 08 00 B8 26 80 0D 01 02 00 00 00 00 57 [23:18:33]Write i2c OK [23:18:33]MH_I2C_Read... [23:18:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:18:33]Read from MH i2c: E2 [23:18:33]MH_I2C_Read... [23:18:33]Read from MH i2c: E2 03 00 [23:18:33]MH_I2C_Read... [23:18:33]Read from MH i2c: E2 03 00 B8 26 00 90 00 52 [23:18:33]RAPDU: 90 00 [23:18:33]wFMCommunicate OK [23:18:33]wFMCommunicate request_size=255 [23:18:33]MH_SAM_APDU [23:18:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 5E 6A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3F 15 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 15 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 53 00 00 00 00 07 04 06 00 10 15 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 CA D1 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5C CF 01 00 35 04 06 00 20 [23:18:33]Write to MH i2c: E2 02 01 B9 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 5E 6A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3F 15 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 15 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 53 00 00 00 00 07 04 06 00 10 15 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 CA D1 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5C CF 01 00 35 04 06 00 20 00 00 DC [23:18:33]Write i2c OK [23:18:33]MH_I2C_Read... [23:18:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:33]Read from MH i2c: E2 [23:18:33]MH_I2C_Read... [23:18:33]Read from MH i2c: E2 03 00 [23:18:33]MH_I2C_Read... [23:18:33]Read from MH i2c: E2 03 00 B9 26 00 90 00 53 [23:18:33]RAPDU: 90 00 [23:18:33]wFMCommunicate OK [23:18:33]wFMCommunicate request_size=10 [23:18:33]MH_SAM_APDU [23:18:33]CAPDU: 80 0D 02 02 05 C5 EB 29 2E 6F [23:18:33]Write to MH i2c: E2 0D 00 BA 26 80 0D 02 02 05 00 C5 EB 29 2E 6F 00 00 DA [23:18:33]Write i2c OK [23:18:33]MH_I2C_Read... [23:18:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:33]Read from MH i2c: E2 [23:18:33]MH_I2C_Read... [23:18:33]Read from MH i2c: E2 03 00 [23:18:33]MH_I2C_Read... [23:18:33]Read from MH i2c: E2 03 00 BA 26 00 90 00 54 [23:18:33]RAPDU: 90 00 [23:18:33]wFMCommunicate OK [23:18:33]wFMCommunicate request_size=4 [23:18:33]MH_SAM_APDU [23:18:33]CAPDU: 80 0D 03 02 [23:18:33]Write to MH i2c: E2 08 00 BB 26 80 0D 03 02 00 00 00 00 5C [23:18:33]Write i2c OK [23:18:33]MH_I2C_Read... [23:18:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:18:33]Read from MH i2c: E2 [23:18:33]MH_I2C_Read... [23:18:33]Read from MH i2c: E2 0B 00 [23:18:33]MH_I2C_Read... [23:18:33]Read from MH i2c: E2 0B 00 BB 26 00 F0 E7 96 FC 4E DD 03 5A 90 00 4E [23:18:33]RAPDU: F0 E7 96 FC 4E DD 03 5A 90 00 [23:18:33]wFMCommunicate OK [23:18:33]SAM_PROTO_SignData done [23:18:33]FM_MakeSignedData done [23:18:33]CreateOFDProtocolMessage [23:18:33]wFMCommunicate request_size=4 [23:18:33]MH_SAM_APDU [23:18:33]CAPDU: 80 11 00 00 [23:18:33]Write to MH i2c: E2 08 00 BC 26 80 11 00 00 00 00 00 00 5C [23:18:33]Write i2c OK [23:18:33]MH_I2C_Read... [23:18:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:33]Read from MH i2c: E2 [23:18:33]MH_I2C_Read... [23:18:33]Read from MH i2c: E2 17 00 [23:18:33]MH_I2C_Read... [23:18:33]Read from MH i2c: E2 17 00 BC 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B7 [23:18:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:18:33]wFMCommunicate OK [23:18:33]CreateOFDProtocolMessage done [23:18:33]OFDSenderStorePacket 118620 [23:18:33]StoreOFDPacket docnum=118620 [23:18:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E7 43 07 01 AA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 5E 6A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3F 15 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 15 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 53 00 00 00 00 07 04 06 00 10 15 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 CA D1 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5C CF 01 00 35 04 06 00 20 C5 EB 29 2E 6F F0 E7 96 FC 4E DD 03 5A [23:18:33]CheckFolder [23:18:33]dirname=/storage/ofd_packets [23:18:33]CheckFolder done [23:18:33]ProducePacketName [23:18:33]name=ofd_packets/00118620 [23:18:33]NVStorageSaveData ofd_packets/00118620 [23:18:33]File name is /storage/ofd_packets/00118620 [23:18:33]Write 301 bytes [23:18:33]NVStorageSaveData done [23:18:33]OFDSenderStorePacket done [23:18:33]KKMCreateOFDPacket done [23:18:33]NVStorageSaveData kkm_last_timestamp [23:18:33]File name is /storage/kkm_last_timestamp [23:18:33]Write 4 bytes [23:18:33]NVStorageSaveData done [23:18:33]ExternCall_PrintAddStr [23:18:33]wPrintStart [23:18:33]Write to MH i2c: 01 00 00 BD 26 E3 [23:18:33]Write i2c OK [23:18:33]MH_I2C_Read... [23:18:33]Read from MH i2c: 01 [23:18:33]MH_I2C_Read... [23:18:33]Read from MH i2c: 01 07 00 [23:18:33]MH_I2C_Read... [23:18:33]Read from MH i2c: 01 07 00 BD 26 00 00 00 00 00 FF 0F F8 [23:18:33]RasterBufferAndPrint [23:18:33]line Счет N : (1)949506 [23:18:33]line ИНН: 02508201610067 [23:18:33]line Контрольно-Кассовый Чек [23:18:33]line ПРОДАЖА [23:18:33]line ТРК (МРК, ГНК) : 43 [23:18:33]line Товар: 2710124500 [23:18:33]line Аи-95-К-3 [23:18:33]line 27.230 * 74.20 [23:18:33]line = 2020.47 [23:18:33]line НДС 12% НСП 1% [23:18:33]line > о реализуемом товаре [23:18:33]line ОКРУГЛЕНИЕ: -0.47 [23:18:33]line ИТОГО: 2020.00 [23:18:33]line Внесено: 2020.00 [23:18:33]line СДАЧА: 0.00 [23:18:33]line НСП 1% : 17.88 [23:18:33]line НДС 12% : 214.56 [23:18:33]line Наличными: 2020.00 [23:18:33]line Безнал.: 0.00 [23:18:33]line Место: АЗС № 134 "Партнер Нефть" [23:18:33]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:18:33]line СНО: Общий режим [23:18:33]line Чек 289 28.07.2024 23:18 [23:18:33]line Смена: 433 ФФД: 1.0 [23:18:33]line ЗНМ: 0300000044 [23:18:33]line РНМ: 0000000000092660 [23:18:33]line Версия ККМ: 001 [23:18:33]line ФМ: 0000000000874939 [23:18:33]line ФД: 118620 [23:18:33]line ФПД: 36034425990767 [23:18:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T231834&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118620&fm=36034425990767&tin=02508201610067®Number=0000000000092660&sum=202000 [23:18:34]OFD Sender: Processing packet 118620 [packets to send 86, broken 85] [23:18:34]ProducePacketName [23:18:34]name=ofd_packets/00118620 [23:18:34]OFD Sender: To server: pG, [23:18:34]CommunicateWithHost lk.salyk.kg:30040 [23:18:34]ConnectInit lk.salyk.kg [23:18:34]written 0, free lines is 4095 [23:18:34]Connected sock=10 [23:18:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E7 43 07 01 AA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 5E 6A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3F 15 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 15 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 53 00 00 00 00 07 04 06 00 10 15 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 CA D1 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5C CF 01 00 35 04 06 00 20 C5 EB 29 2E 6F F0 E7 96 FC 4E DD 03 5A [23:18:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 0B 36 47 00 AB 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 39 33 39 10 04 04 00 5C CF 01 00 F4 03 04 00 5A 7F A6 66 B6 04 01 00 00 5E 54 D3 62 24 86 08 97 [23:18:34]CommunicateWithHost err = 0 [23:18:34]CheckOFDResponse [23:18:34]1017 (14) - 77093643461234 [23:18:34]1041 (16) - 0000000000874939 [23:18:34]1040 (4) - 118620 [23:18:34]1012 (4) - 28.07.2024 17:26 [23:18:34]1206 (1) - 0 [23:18:34]OFD Sender: Remove packet 118620 [23:18:34]ProducePacketName [23:18:34]name=ofd_packets/00118620 [23:18:34]NVStorageDeleteData [23:18:34]Write to MH i2c: 01 00 00 E7 26 0D [23:18:34]Write i2c OK [23:18:34]MH_I2C_Read... [23:18:34]Read from MH i2c: 01 [23:18:34]MH_I2C_Read... [23:18:34]Read from MH i2c: 01 07 00 [23:18:34]MH_I2C_Read... [23:18:34]Read from MH i2c: 01 07 00 E7 26 00 00 00 00 00 E8 0C 08 [23:18:34]RasterBufferAndPrint [23:18:34]line [23:18:34]line [23:18:34]line [23:18:34]line [23:18:34]line [23:18:34]written 0, free lines is 3310 [23:18:34]MH_Cut [23:18:34]Write to MH i2c: D1 01 00 EE 26 01 E6 [23:18:34]Write i2c OK [23:18:34]MH_I2C_Read... [23:18:34]Read from MH i2c: D1 [23:18:34]MH_I2C_Read... [23:18:34]Read from MH i2c: D1 01 00 [23:18:34]MH_I2C_Read... [23:18:34]Read from MH i2c: D1 01 00 EE 26 00 E5 [23:18:34]Write to MH i2c: 01 00 00 EF 26 15 [23:18:34]Write i2c OK [23:18:34]MH_I2C_Read... [23:18:35]OFD Sender: No OFD packet to send [23:18:35]*** Cut start [23:18:35]*** Partial cut [23:18:35]*** CUTSNS_PIN = 1 [23:18:35]*** CUTSNS_PIN = 0 [23:18:35]*** Brake cut motor [23:18:35]Read from MH i2c: 01 [23:18:36]MH_I2C_Read... [23:18:36]*** Stop cut motor [23:18:36]*** Cut end [23:18:36]Read from MH i2c: 01 07 00 [23:18:36]MH_I2C_Read... [23:18:36]Read from MH i2c: 01 07 00 EF 26 00 00 00 00 00 FF 0F 2A [23:18:36]process_action close_receipt done [23:18:36]requested_data is exist [23:18:36]produce_requested_data [23:18:36]requested_item fm.sn is exist - process it [23:18:36]wFMCommunicate request_size=4 [23:18:36]MH_SAM_APDU [23:18:36]CAPDU: 80 11 00 00 [23:18:36]Write to MH i2c: E2 08 00 F0 26 80 11 00 00 00 00 00 00 90 [23:18:36]Write i2c OK [23:18:36]MH_I2C_Read... [23:18:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:36]Read from MH i2c: E2 [23:18:36]MH_I2C_Read... [23:18:36]Read from MH i2c: E2 17 00 [23:18:36]MH_I2C_Read... [23:18:36]Read from MH i2c: E2 17 00 F0 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EB [23:18:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:18:36]wFMCommunicate OK [23:18:36]requested_item fd.num is exist - process it [23:18:36]SAM_PROTO_GetFieldsCounters [23:18:36]wFMCommunicate request_size=4 [23:18:36]MH_SAM_APDU [23:18:36]CAPDU: 80 13 00 00 [23:18:36]Write to MH i2c: E2 08 00 F1 26 80 13 00 00 00 00 00 00 93 [23:18:36]Write i2c OK [23:18:36]MH_I2C_Read... [23:18:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:18:36]Read from MH i2c: E2 [23:18:36]MH_I2C_Read... [23:18:36]Read from MH i2c: E2 62 00 [23:18:36]MH_I2C_Read... [23:18:36]Read from MH i2c: E2 62 00 F1 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5C CF 01 00 0E 04 04 00 B1 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 FE [23:18:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5C CF 01 00 0E 04 04 00 B1 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 [23:18:36]wFMCommunicate OK [23:18:36]SAM_PROTO_GetFieldsCounters done [23:18:36]requested_item shift.num is exist - process it [23:18:36]requested_item shift.opened is exist - process it [23:18:36]req_shift_opened [23:18:36]FM_GetShiftState [23:18:36]SAM_PROTO_GetShiftState [23:18:36]wFMCommunicate request_size=4 [23:18:36]MH_SAM_APDU [23:18:36]CAPDU: 80 13 01 00 [23:18:36]Write to MH i2c: E2 08 00 F2 26 80 13 01 00 00 00 00 00 95 [23:18:36]Write i2c OK [23:18:36]MH_I2C_Read... [23:18:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:36]Read from MH i2c: E2 [23:18:36]MH_I2C_Read... [23:18:36]Read from MH i2c: E2 0E 00 [23:18:36]MH_I2C_Read... [23:18:36]Read from MH i2c: E2 0E 00 F2 26 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 6C [23:18:36]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [23:18:36]wFMCommunicate OK [23:18:36]SAM_PROTO_GetShiftState done [23:18:36]FM_GetShiftState done [23:18:36]req_shift_opened done [23:18:36]requested_item shift.open_date is exist - process it [23:18:36]req_shift_open_date [23:18:36]req_shift_open_date done [23:18:36]produce_requested_data done [23:18:36]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118620,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [23:18:36]process_action_free close_receipt [23:18:36]json_value_free [23:18:36]json_value_free done [23:18:36]process_json_proto returns [23:18:36]Send response to host [23:18:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118620,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [23:18:36]free response buf [23:18:36]execute_script done [23:18:36]execute_script returns [23:18:36]free content buf [23:18:36]Sock 7.Close socket [23:18:36]Sock 7.Thread stoped [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:10]OFD Sender: No OFD packet to send [23:26:15]OFD Sender: No OFD packet to send [23:26:20]OFD Sender: No OFD packet to send [23:26:25]OFD Sender: No OFD packet to send [23:26:30]OFD Sender: No OFD packet to send [23:26:35]OFD Sender: No OFD packet to send [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:05]OFD Sender: No OFD packet to send [23:27:10]OFD Sender: No OFD packet to send [23:27:15]OFD Sender: No OFD packet to send [23:27:20]OFD Sender: No OFD packet to send [23:27:25]OFD Sender: No OFD packet to send [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:40]OFD Sender: No OFD packet to send [23:27:45]OFD Sender: No OFD packet to send [23:27:50]OFD Sender: No OFD packet to send [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:25]OFD Sender: No OFD packet to send [23:28:30]OFD Sender: No OFD packet to send [23:28:35]OFD Sender: No OFD packet to send [23:28:40]OFD Sender: No OFD packet to send [23:28:45]OFD Sender: No OFD packet to send [23:28:50]OFD Sender: No OFD packet to send [23:28:55]OFD Sender: No OFD packet to send [23:29:00]OFD Sender: No OFD packet to send [23:29:05]OFD Sender: No OFD packet to send [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:45]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:14]accept exits with 9 [23:30:14]New connection [23:30:14]New thread 3067383140 created [23:30:14]Thread 3067239780 joined [23:30:14]Waiting for new connection... [23:30:14] Sock 9.Parse request [23:30:14]Sock 9.Check first char [23:30:14]Sock 9.First char is OK [23:30:14]request: POST /json_proto HTTP/1.0 [23:30:14]Method: POST [23:30:14]URL: /json_proto [23:30:14]Method is POST - this is cgi request [23:30:14]url: /json_proto [23:30:14]query_string will be loaded in cgi processing [23:30:14]execute_cgi json_proto POST (null) [23:30:14]execute_cgi path=json_proto method=POST [23:30:14]POST find Content-Length [23:30:14]Host: 172.17.45.7:8080 [23:30:14]Content-Length: 642 [23:30:14]Content-Type: application/json [23:30:14] [23:30:14]POST finish read [23:30:14]Found Content-Length = 642 [23:30:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 20.000, "sum" : 1356.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1356.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:14]execute_script... [23:30: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)949507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 20.000, "sum" : 1356.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1356.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:14]POST & json_proto [23:30:14]process_json_proto [23:30:14]json parsed OK: [23:30:14]protocol is kg_v1.0 [23:30:14]action value=close_receipt [23:30:14]process_action close_receipt [23:30:14]cmd_close_receipt [23:30:14]MH_GetDate [23:30:14]Write to MH i2c: F0 00 00 F3 26 08 [23:30:14]Write i2c OK [23:30:14]MH_I2C_Read... [23:30:14]Read from MH i2c: F0 [23:30:14]MH_I2C_Read... [23:30:14]Read from MH i2c: F0 09 00 [23:30:14]MH_I2C_Read... [23:30:14]Read from MH i2c: F0 09 00 F3 26 00 89 D4 A6 66 90 0F 3E 66 BD [23:30:14]GetLastDocTimeStamp 1722208714 [23:30:14]current date 1722209417 [23:30:14]FM_GetShiftState [23:30:14]SAM_PROTO_GetShiftState [23:30:14]wFMCommunicate request_size=4 [23:30:14]MH_SAM_APDU [23:30:14]CAPDU: 80 13 01 00 [23:30:14]Write to MH i2c: E2 08 00 F4 26 80 13 01 00 00 00 00 00 97 [23:30:14]Write i2c OK [23:30:14]MH_I2C_Read... [23:30:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:15]Read from MH i2c: E2 [23:30:15]MH_I2C_Read... [23:30:15]Read from MH i2c: E2 0E 00 [23:30:15]MH_I2C_Read... [23:30:15]Read from MH i2c: E2 0E 00 F4 26 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 6E [23:30:15]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [23:30:15]wFMCommunicate OK [23:30:15]SAM_PROTO_GetShiftState done [23:30:15]FM_GetShiftState done [23:30:15]opened in 1722125364 [23:30:15]opened+sec_in_day 1722211764 [23:30:15]quantity*price = 135600 [23:30:15]sum+1 = 135601 [23:30:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1356.00 НСП 1% : 12.00 НДС 12% : 144.00 Наличными: 1356.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 290 28.07.2024 23:30 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118621 ФПД: 223239191889078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T233017&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118621&fm=223239191889078&tin=02508201610067®Number=0000000000092660&sum=135600 [23:30:16]StoreToDocumentArchive [23:30:16]shift 433 fd 118621 [23:30:16]save to /storage/0433/doc_00118621 [23:30:16]save last doc name /storage/0433/doc_00118621 to /storage/kkm_last_doc_name [23:30:16]save OK [23:30:16]Clear old archive folders... [23:30:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:30:16]tlvbuf is B6E11160 [23:30:16]SAM_PROTO_ClearQueue [23:30:16]wFMCommunicate request_size=4 [23:30:16]MH_SAM_APDU [23:30:16]CAPDU: 80 09 00 00 [23:30:16]Write to MH i2c: E2 08 00 01 27 80 09 00 00 00 00 00 00 9A [23:30:16]Write i2c OK [23:30:16]MH_I2C_Read... [23:30:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:30:16]Read from MH i2c: E2 [23:30:16]MH_I2C_Read... [23:30:16]Read from MH i2c: E2 03 00 [23:30:16]MH_I2C_Read... [23:30:16]Read from MH i2c: E2 03 00 01 27 00 90 00 9C [23:30:16]RAPDU: 90 00 [23:30:16]wFMCommunicate OK [23:30:16]SAM_PROTO_ClearQueue done [23:30:16]KKMCreateOFDPacket [23:30:16]OFDProtocolAddRootSTLVToBuf [23:30:16]FM_MakeSignedData [23:30:16]FM_MakeSignedData [23:30:16]SAM_PROTO_SignData [23:30:16]wFMCommunicate request_size=4 [23:30:16]MH_SAM_APDU [23:30:16]CAPDU: 80 0D 01 02 [23:30:16]Write to MH i2c: E2 08 00 02 27 80 0D 01 02 00 00 00 00 A2 [23:30:16]Write i2c OK [23:30:16]MH_I2C_Read... [23:30:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:30:16]Read from MH i2c: E2 [23:30:16]MH_I2C_Read... [23:30:16]Read from MH i2c: E2 03 00 [23:30:16]MH_I2C_Read... [23:30:16]Read from MH i2c: E2 03 00 02 27 00 90 00 9D [23:30:16]RAPDU: 90 00 [23:30:16]wFMCommunicate OK [23:30:16]wFMCommunicate request_size=255 [23:30:16]MH_SAM_APDU [23:30: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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B0 11 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 11 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 38 00 00 00 00 07 04 06 00 B0 11 02 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 89 D4 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D CF 01 00 35 04 06 00 CB [23:30:16]Write to MH i2c: E2 02 01 03 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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B0 11 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 11 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 38 00 00 00 00 07 04 06 00 B0 11 02 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 89 D4 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D CF 01 00 35 04 06 00 CB 00 00 60 [23:30:16]Write i2c OK [23:30:16]MH_I2C_Read... [23:30:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:16]Read from MH i2c: E2 [23:30:16]MH_I2C_Read... [23:30:16]Read from MH i2c: E2 03 00 [23:30:16]MH_I2C_Read... [23:30:16]Read from MH i2c: E2 03 00 03 27 00 90 00 9E [23:30:16]RAPDU: 90 00 [23:30:16]wFMCommunicate OK [23:30:16]wFMCommunicate request_size=10 [23:30:16]MH_SAM_APDU [23:30:16]CAPDU: 80 0D 02 02 05 08 EC BB 84 B6 [23:30:16]Write to MH i2c: E2 0D 00 04 27 80 0D 02 02 05 00 08 EC BB 84 B6 00 00 98 [23:30:16]Write i2c OK [23:30:16]MH_I2C_Read... [23:30:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:16]Read from MH i2c: E2 [23:30:16]MH_I2C_Read... [23:30:16]Read from MH i2c: E2 03 00 [23:30:16]MH_I2C_Read... [23:30:16]Read from MH i2c: E2 03 00 04 27 00 90 00 9F [23:30:16]RAPDU: 90 00 [23:30:16]wFMCommunicate OK [23:30:16]wFMCommunicate request_size=4 [23:30:16]MH_SAM_APDU [23:30:16]CAPDU: 80 0D 03 02 [23:30:16]Write to MH i2c: E2 08 00 05 27 80 0D 03 02 00 00 00 00 A7 [23:30:16]Write i2c OK [23:30:16]MH_I2C_Read... [23:30:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:30:16]Read from MH i2c: E2 [23:30:16]MH_I2C_Read... [23:30:16]Read from MH i2c: E2 0B 00 [23:30:16]MH_I2C_Read... [23:30:16]Read from MH i2c: E2 0B 00 05 27 00 9A 67 B1 D6 C2 6B 3A 1B 90 00 B2 [23:30:16]RAPDU: 9A 67 B1 D6 C2 6B 3A 1B 90 00 [23:30:16]wFMCommunicate OK [23:30:16]SAM_PROTO_SignData done [23:30:16]FM_MakeSignedData done [23:30:16]CreateOFDProtocolMessage [23:30:16]wFMCommunicate request_size=4 [23:30:16]MH_SAM_APDU [23:30:16]CAPDU: 80 11 00 00 [23:30:16]Write to MH i2c: E2 08 00 06 27 80 11 00 00 00 00 00 00 A7 [23:30:16]Write i2c OK [23:30:16]MH_I2C_Read... [23:30:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:16]Read from MH i2c: E2 [23:30:16]MH_I2C_Read... [23:30:16]Read from MH i2c: E2 17 00 [23:30:16]MH_I2C_Read... [23:30:16]Read from MH i2c: E2 17 00 06 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 02 [23:30:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:30:16]wFMCommunicate OK [23:30:16]CreateOFDProtocolMessage done [23:30:16]OFDSenderStorePacket 118621 [23:30:16]StoreOFDPacket docnum=118621 [23:30:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 63 54 07 01 F9 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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B0 11 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 11 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 38 00 00 00 00 07 04 06 00 B0 11 02 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 89 D4 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D CF 01 00 35 04 06 00 CB 08 EC BB 84 B6 9A 67 B1 D6 C2 6B 3A 1B [23:30:16]CheckFolder [23:30:16]dirname=/storage/ofd_packets [23:30:16]CheckFolder done [23:30:16]ProducePacketName [23:30:16]name=ofd_packets/00118621 [23:30:16]NVStorageSaveData ofd_packets/00118621 [23:30:16]File name is /storage/ofd_packets/00118621 [23:30:16]Write 301 bytes [23:30:16]NVStorageSaveData done [23:30:16]OFDSenderStorePacket done [23:30:16]KKMCreateOFDPacket done [23:30:16]NVStorageSaveData kkm_last_timestamp [23:30:16]File name is /storage/kkm_last_timestamp [23:30:16]Write 4 bytes [23:30:16]NVStorageSaveData done [23:30:16]ExternCall_PrintAddStr [23:30:16]wPrintStart [23:30:16]Write to MH i2c: 01 00 00 07 27 2E [23:30:16]Write i2c OK [23:30:16]MH_I2C_Read... [23:30:16]Read from MH i2c: 01 [23:30:16]MH_I2C_Read... [23:30:16]Read from MH i2c: 01 07 00 [23:30:16]MH_I2C_Read... [23:30:16]Read from MH i2c: 01 07 00 07 27 00 00 00 00 00 FF 0F 43 [23:30:16]RasterBufferAndPrint [23:30:16]line Счет N : (1)949507 [23:30:16]line ИНН: 02508201610067 [23:30:16]line Контрольно-Кассовый Чек [23:30:16]line ПРОДАЖА [23:30:16]line ТРК (МРК, ГНК) : 41 [23:30:16]line Товар: 2710124130 [23:30:16]line Аи-92-К-4 [23:30:16]line 20.000 * 67.80 [23:30:16]line = 1356.00 [23:30:16]line НДС 12% НСП 1% [23:30:16]line > о реализуемом товаре [23:30:16]line ИТОГО: 1356.00 [23:30:16]line НСП 1% : 12.00 [23:30:16]line НДС 12% : 144.00 [23:30:16]line Наличными: 1356.00 [23:30:16]line Безнал.: 0.00 [23:30:16]line Место: АЗС № 134 "Партнер Нефть" [23:30:16]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:30:16]line СНО: Общий режим [23:30:16]line Чек 290 28.07.2024 23:30 [23:30:16]line Смена: 433 ФФД: 1.0 [23:30:16]line ЗНМ: 0300000044 [23:30:16]line РНМ: 0000000000092660 [23:30:16]line Версия ККМ: 001 [23:30:16]line ФМ: 0000000000874939 [23:30:16]line ФД: 118621 [23:30:16]line ФПД: 223239191889078 [23:30:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T233017&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118621&fm=223239191889078&tin=02508201610067®Number=0000000000092660&sum=135600 [23:30:17]written 0, free lines is 4095 [23:30:17]OFD Sender: Processing packet 118621 [packets to send 86, broken 85] [23:30:17]ProducePacketName [23:30:17]name=ofd_packets/00118621 [23:30:17]OFD Sender: To server: pG, [23:30:17]CommunicateWithHost lk.salyk.kg:30040 [23:30:17]ConnectInit lk.salyk.kg [23:30:17]Connected sock=10 [23:30:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 63 54 07 01 F9 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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B0 11 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 11 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 38 00 00 00 00 07 04 06 00 B0 11 02 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 89 D4 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D CF 01 00 35 04 06 00 CB 08 EC BB 84 B6 9A 67 B1 D6 C2 6B 3A 1B [23:30:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F9 E3 47 00 87 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D CF 01 00 F4 03 04 00 19 82 A6 66 B6 04 01 00 00 13 C6 65 8D 54 5D 32 9A [23:30:17]CommunicateWithHost err = 0 [23:30:17]CheckOFDResponse [23:30:17]1017 (14) - 77093643461234 [23:30:17]1041 (16) - 0000000000874939 [23:30:17]1040 (4) - 118621 [23:30:17]1012 (4) - 28.07.2024 17:38 [23:30:17]1206 (1) - 0 [23:30:17]OFD Sender: Remove packet 118621 [23:30:17]ProducePacketName [23:30:17]name=ofd_packets/00118621 [23:30:17]NVStorageDeleteData [23:30:17]Write to MH i2c: 01 00 00 2E 27 55 [23:30:17]Write i2c OK [23:30:17]MH_I2C_Read... [23:30:17]Read from MH i2c: 01 [23:30:17]MH_I2C_Read... [23:30:17]Read from MH i2c: 01 07 00 [23:30:17]MH_I2C_Read... [23:30:17]Read from MH i2c: 01 07 00 2E 27 00 00 00 00 00 30 0D 99 [23:30:17]RasterBufferAndPrint [23:30:17]line [23:30:17]line [23:30:17]line [23:30:17]line [23:30:17]line [23:30:17]written 0, free lines is 3383 [23:30:17]MH_Cut [23:30:17]Write to MH i2c: D1 01 00 35 27 01 2E [23:30:17]Write i2c OK [23:30:17]MH_I2C_Read... [23:30:17]Read from MH i2c: D1 [23:30:17]MH_I2C_Read... [23:30:17]Read from MH i2c: D1 01 00 [23:30:17]MH_I2C_Read... [23:30:17]Read from MH i2c: D1 01 00 35 27 00 2D [23:30:17]Write to MH i2c: 01 00 00 36 27 5D [23:30:17]Write i2c OK [23:30:17]MH_I2C_Read... [23:30:17]OFD Sender: No OFD packet to send [23:30:18]*** Cut start [23:30:18]*** Partial cut [23:30:18]*** CUTSNS_PIN = 1 [23:30:18]*** CUTSNS_PIN = 0 [23:30:18]*** Brake cut motor [23:30:18]Read from MH i2c: 01 [23:30:18]MH_I2C_Read... [23:30:18]*** Stop cut motor [23:30:18]*** Cut end [23:30:18]Read from MH i2c: 01 07 00 [23:30:18]MH_I2C_Read... [23:30:18]Read from MH i2c: 01 07 00 36 27 00 00 00 00 00 FF 0F 72 [23:30:18]process_action close_receipt done [23:30:18]requested_data is exist [23:30:18]produce_requested_data [23:30:18]requested_item fm.sn is exist - process it [23:30:18]wFMCommunicate request_size=4 [23:30:18]MH_SAM_APDU [23:30:18]CAPDU: 80 11 00 00 [23:30:18]Write to MH i2c: E2 08 00 37 27 80 11 00 00 00 00 00 00 D8 [23:30:18]Write i2c OK [23:30:18]MH_I2C_Read... [23:30:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:18]Read from MH i2c: E2 [23:30:18]MH_I2C_Read... [23:30:18]Read from MH i2c: E2 17 00 [23:30:18]MH_I2C_Read... [23:30:18]Read from MH i2c: E2 17 00 37 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 33 [23:30:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:30:18]wFMCommunicate OK [23:30:18]requested_item fd.num is exist - process it [23:30:18]SAM_PROTO_GetFieldsCounters [23:30:18]wFMCommunicate request_size=4 [23:30:18]MH_SAM_APDU [23:30:18]CAPDU: 80 13 00 00 [23:30:18]Write to MH i2c: E2 08 00 38 27 80 13 00 00 00 00 00 00 DB [23:30:18]Write i2c OK [23:30:18]MH_I2C_Read... [23:30:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:30:18]Read from MH i2c: E2 [23:30:18]MH_I2C_Read... [23:30:18]Read from MH i2c: E2 62 00 [23:30:18]MH_I2C_Read... [23:30:18]Read from MH i2c: E2 62 00 38 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5D CF 01 00 0E 04 04 00 B1 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 4A [23:30:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5D CF 01 00 0E 04 04 00 B1 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 [23:30:18]wFMCommunicate OK [23:30:18]SAM_PROTO_GetFieldsCounters done [23:30:18]requested_item shift.num is exist - process it [23:30:18]requested_item shift.opened is exist - process it [23:30:18]req_shift_opened [23:30:18]FM_GetShiftState [23:30:18]SAM_PROTO_GetShiftState [23:30:18]wFMCommunicate request_size=4 [23:30:18]MH_SAM_APDU [23:30:18]CAPDU: 80 13 01 00 [23:30:18]Write to MH i2c: E2 08 00 39 27 80 13 01 00 00 00 00 00 DD [23:30:18]Write i2c OK [23:30:18]MH_I2C_Read... [23:30:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:19]Read from MH i2c: E2 [23:30:19]MH_I2C_Read... [23:30:19]Read from MH i2c: E2 0E 00 [23:30:19]MH_I2C_Read... [23:30:19]Read from MH i2c: E2 0E 00 39 27 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 B4 [23:30:19]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [23:30:19]wFMCommunicate OK [23:30:19]SAM_PROTO_GetShiftState done [23:30:19]FM_GetShiftState done [23:30:19]req_shift_opened done [23:30:19]requested_item shift.open_date is exist - process it [23:30:19]req_shift_open_date [23:30:19]req_shift_open_date done [23:30:19]produce_requested_data done [23:30:19]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118621,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [23:30:19]process_action_free close_receipt [23:30:19]json_value_free [23:30:19]json_value_free done [23:30:19]process_json_proto returns [23:30:19]Send response to host [23:30:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118621,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [23:30:19]free response buf [23:30:19]execute_script done [23:30:19]execute_script returns [23:30:19]free content buf [23:30:19]Sock 9.Close socket [23:30:19]Sock 9.Thread stoped [23:30:22]OFD Sender: No OFD packet to send [23:30:27]OFD Sender: No OFD packet to send [23:30:32]OFD Sender: No OFD packet to send [23:30:37]OFD Sender: No OFD packet to send [23:30:42]OFD Sender: No OFD packet to send [23:30:47]OFD Sender: No OFD packet to send [23:30:52]OFD Sender: No OFD packet to send [23:30:57]OFD Sender: No OFD packet to send [23:31:02]OFD Sender: No OFD packet to send [23:31:07]OFD Sender: No OFD packet to send [23:31:12]OFD Sender: No OFD packet to send [23:31:17]OFD Sender: No OFD packet to send [23:31:22]OFD Sender: No OFD packet to send [23:31:27]OFD Sender: No OFD packet to send [23:31:32]OFD Sender: No OFD packet to send [23:31:37]OFD Sender: No OFD packet to send [23:31:42]OFD Sender: No OFD packet to send [23:31:47]OFD Sender: No OFD packet to send [23:31:52]OFD Sender: No OFD packet to send [23:31:57]OFD Sender: No OFD packet to send [23:32:02]OFD Sender: No OFD packet to send [23:32:07]OFD Sender: No OFD packet to send [23:32:09]accept exits with 7 [23:32:09]New connection [23:32:09]New thread 3067239780 created [23:32:09]Thread 3067383140 joined [23:32:09]Waiting for new connection... [23:32:09] Sock 7.Parse request [23:32:09]Sock 7.Check first char [23:32:09]Sock 7.First char is OK [23:32:09]request: POST /json_proto HTTP/1.0 [23:32:09]Method: POST [23:32:09]URL: /json_proto [23:32:09]Method is POST - this is cgi request [23:32:09]url: /json_proto [23:32:09]query_string will be loaded in cgi processing [23:32:09]execute_cgi json_proto POST (null) [23:32:09]execute_cgi path=json_proto method=POST [23:32:09]POST find Content-Length [23:32:09]Host: 172.17.45.7:8080 [23:32:09]Content-Length: 640 [23:32:09]Content-Type: application/json [23:32:09] [23:32:09]POST finish read [23:32:09]Found Content-Length = 640 [23:32:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.000, "sum" : 678.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 678.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:09]execute_script... [23:32: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)949508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.000, "sum" : 678.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 678.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:09]POST & json_proto [23:32:09]process_json_proto [23:32:09]json parsed OK: [23:32:09]protocol is kg_v1.0 [23:32:09]action value=close_receipt [23:32:09]process_action close_receipt [23:32:09]cmd_close_receipt [23:32:09]MH_GetDate [23:32:09]Write to MH i2c: F0 00 00 3A 27 50 [23:32:09]Write i2c OK [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: F0 [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: F0 09 00 [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: F0 09 00 3A 27 00 FB D4 A6 66 90 0F 3E 66 77 [23:32:09]GetLastDocTimeStamp 1722209417 [23:32:09]current date 1722209531 [23:32:09]FM_GetShiftState [23:32:09]SAM_PROTO_GetShiftState [23:32:09]wFMCommunicate request_size=4 [23:32:09]MH_SAM_APDU [23:32:09]CAPDU: 80 13 01 00 [23:32:09]Write to MH i2c: E2 08 00 3B 27 80 13 01 00 00 00 00 00 DF [23:32:09]Write i2c OK [23:32:09]MH_I2C_Read... [23:32:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:09]Read from MH i2c: E2 [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: E2 0E 00 [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: E2 0E 00 3B 27 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 B6 [23:32:09]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [23:32:09]wFMCommunicate OK [23:32:09]SAM_PROTO_GetShiftState done [23:32:09]FM_GetShiftState done [23:32:09]opened in 1722125364 [23:32:09]opened+sec_in_day 1722211764 [23:32:09]quantity*price = 67800 [23:32:09]sum+1 = 67801 [23:32:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 678.00 НСП 1% : 6.00 НДС 12% : 72.00 Наличными: 678.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 291 28.07.2024 23:32 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118622 ФПД: 215549255047766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T233211&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118622&fm=215549255047766&tin=02508201610067®Number=0000000000092660&sum=67800 [23:32:10]StoreToDocumentArchive [23:32:10]shift 433 fd 118622 [23:32:10]save to /storage/0433/doc_00118622 [23:32:10]save last doc name /storage/0433/doc_00118622 to /storage/kkm_last_doc_name [23:32:10]save OK [23:32:10]Clear old archive folders... [23:32:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:32:10]tlvbuf is 01EBFF10 [23:32:10]SAM_PROTO_ClearQueue [23:32:10]wFMCommunicate request_size=4 [23:32:10]MH_SAM_APDU [23:32:10]CAPDU: 80 09 00 00 [23:32:10]Write to MH i2c: E2 08 00 48 27 80 09 00 00 00 00 00 00 E1 [23:32:10]Write i2c OK [23:32:10]MH_I2C_Read... [23:32:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:32:10]Read from MH i2c: E2 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 03 00 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 03 00 48 27 00 90 00 E3 [23:32:10]RAPDU: 90 00 [23:32:10]wFMCommunicate OK [23:32:10]SAM_PROTO_ClearQueue done [23:32:10]KKMCreateOFDPacket [23:32:10]OFDProtocolAddRootSTLVToBuf [23:32:10]FM_MakeSignedData [23:32:10]FM_MakeSignedData [23:32:10]SAM_PROTO_SignData [23:32:10]wFMCommunicate request_size=4 [23:32:10]MH_SAM_APDU [23:32:10]CAPDU: 80 0D 01 02 [23:32:10]Write to MH i2c: E2 08 00 49 27 80 0D 01 02 00 00 00 00 E9 [23:32:10]Write i2c OK [23:32:10]MH_I2C_Read... [23:32:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:32:10]Read from MH i2c: E2 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 03 00 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 03 00 49 27 00 90 00 E4 [23:32:10]RAPDU: 90 00 [23:32:10]wFMCommunicate OK [23:32:10]wFMCommunicate request_size=255 [23:32:10]MH_SAM_APDU [23:32: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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D8 08 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 08 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1C 00 00 00 00 07 04 06 00 D8 08 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 FB D4 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5E CF 01 00 35 04 06 00 C4 [23:32:10]Write to MH i2c: E2 02 01 4A 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D8 08 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 08 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1C 00 00 00 00 07 04 06 00 D8 08 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 FB D4 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5E CF 01 00 35 04 06 00 C4 00 00 A1 [23:32:10]Write i2c OK [23:32:10]MH_I2C_Read... [23:32:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:10]Read from MH i2c: E2 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 03 00 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 03 00 4A 27 00 90 00 E5 [23:32:10]RAPDU: 90 00 [23:32:10]wFMCommunicate OK [23:32:10]wFMCommunicate request_size=10 [23:32:10]MH_SAM_APDU [23:32:10]CAPDU: 80 0D 02 02 05 0A 78 C7 5A 56 [23:32:10]Write to MH i2c: E2 0D 00 4B 27 80 0D 02 02 05 00 0A 78 C7 5A 56 00 00 EF [23:32:10]Write i2c OK [23:32:10]MH_I2C_Read... [23:32:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:10]Read from MH i2c: E2 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 03 00 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 03 00 4B 27 00 90 00 E6 [23:32:10]RAPDU: 90 00 [23:32:10]wFMCommunicate OK [23:32:10]wFMCommunicate request_size=4 [23:32:10]MH_SAM_APDU [23:32:10]CAPDU: 80 0D 03 02 [23:32:10]Write to MH i2c: E2 08 00 4C 27 80 0D 03 02 00 00 00 00 EE [23:32:10]Write i2c OK [23:32:10]MH_I2C_Read... [23:32:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:32:10]Read from MH i2c: E2 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 0B 00 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 0B 00 4C 27 00 6A 7B E8 42 F4 F7 B8 BB 90 00 5C [23:32:10]RAPDU: 6A 7B E8 42 F4 F7 B8 BB 90 00 [23:32:10]wFMCommunicate OK [23:32:10]SAM_PROTO_SignData done [23:32:10]FM_MakeSignedData done [23:32:10]CreateOFDProtocolMessage [23:32:10]wFMCommunicate request_size=4 [23:32:10]MH_SAM_APDU [23:32:10]CAPDU: 80 11 00 00 [23:32:10]Write to MH i2c: E2 08 00 4D 27 80 11 00 00 00 00 00 00 EE [23:32:10]Write i2c OK [23:32:10]MH_I2C_Read... [23:32:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:10]Read from MH i2c: E2 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 17 00 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 17 00 4D 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 49 [23:32:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:32:10]wFMCommunicate OK [23:32:10]CreateOFDProtocolMessage done [23:32:10]OFDSenderStorePacket 118622 [23:32:10]StoreOFDPacket docnum=118622 [23:32:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 89 35 07 01 96 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D8 08 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 08 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1C 00 00 00 00 07 04 06 00 D8 08 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 FB D4 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5E CF 01 00 35 04 06 00 C4 0A 78 C7 5A 56 6A 7B E8 42 F4 F7 B8 BB [23:32:10]CheckFolder [23:32:10]dirname=/storage/ofd_packets [23:32:10]CheckFolder done [23:32:10]ProducePacketName [23:32:10]name=ofd_packets/00118622 [23:32:10]NVStorageSaveData ofd_packets/00118622 [23:32:10]File name is /storage/ofd_packets/00118622 [23:32:10]Write 301 bytes [23:32:10]NVStorageSaveData done [23:32:10]OFDSenderStorePacket done [23:32:10]KKMCreateOFDPacket done [23:32:10]NVStorageSaveData kkm_last_timestamp [23:32:10]File name is /storage/kkm_last_timestamp [23:32:10]Write 4 bytes [23:32:10]NVStorageSaveData done [23:32:10]OFD Sender: Processing packet 118622 [packets to send 86, broken 85] [23:32:10]ProducePacketName [23:32:10]name=ofd_packets/00118622 [23:32:10]OFD Sender: To server: pG, [23:32:10]CommunicateWithHost lk.salyk.kg:30040 [23:32:10]ConnectInit lk.salyk.kg [23:32:10]ExternCall_PrintAddStr [23:32:10]wPrintStart [23:32:10]Write to MH i2c: 01 00 00 4E 27 75 [23:32:10]Write i2c OK [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: 01 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: 01 07 00 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: 01 07 00 4E 27 00 00 00 00 00 FF 0F 8A [23:32:10]RasterBufferAndPrint [23:32:10]line Счет N : (1)949508 [23:32:10]line ИНН: 02508201610067 [23:32:10]line Контрольно-Кассовый Чек [23:32:10]line ПРОДАЖА [23:32:10]line ТРК (МРК, ГНК) : 41 [23:32:10]line Товар: 2710124130 [23:32:10]line Аи-92-К-4 [23:32:10]line 10.000 * 67.80 [23:32:10]line = 678.00 [23:32:10]line НДС 12% НСП 1% [23:32:10]line > о реализуемом товаре [23:32:10]line ИТОГО: 678.00 [23:32:10]line НСП 1% : 6.00 [23:32:10]line НДС 12% : 72.00 [23:32:10]line Наличными: 678.00 [23:32:10]line Безнал.: 0.00 [23:32:10]line Место: АЗС № 134 "Партнер Нефть" [23:32:10]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:32:10]line СНО: Общий режим [23:32:10]line Чек 291 28.07.2024 23:32 [23:32:10]line Смена: 433 ФФД: 1.0 [23:32:10]line ЗНМ: 0300000044 [23:32:10]line РНМ: 0000000000092660 [23:32:10]line Версия ККМ: 001 [23:32:10]line ФМ: 0000000000874939 [23:32:10]line ФД: 118622 [23:32:10]line ФПД: 215549255047766 [23:32:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T233211&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118622&fm=215549255047766&tin=02508201610067®Number=0000000000092660&sum=67800 [23:32:11]Connected sock=11 [23:32:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 89 35 07 01 96 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D8 08 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 08 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1C 00 00 00 00 07 04 06 00 D8 08 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 FB D4 A6 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5E CF 01 00 35 04 06 00 C4 0A 78 C7 5A 56 6A 7B E8 42 F4 F7 B8 BB [23:32:11]written 0, free lines is 4095 [23:32:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 2F 12 47 00 CC 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 39 33 39 10 04 04 00 5E CF 01 00 F4 03 04 00 8A 82 A6 66 B6 04 01 00 00 47 76 CA 1E 1E B4 51 C7 [23:32:11]CommunicateWithHost err = 0 [23:32:11]CheckOFDResponse [23:32:11]1017 (14) - 77093643461234 [23:32:11]1041 (16) - 0000000000874939 [23:32:11]1040 (4) - 118622 [23:32:11]1012 (4) - 28.07.2024 17:40 [23:32:11]1206 (1) - 0 [23:32:11]OFD Sender: Remove packet 118622 [23:32:11]ProducePacketName [23:32:11]name=ofd_packets/00118622 [23:32:11]NVStorageDeleteData [23:32:11]Write to MH i2c: 01 00 00 75 27 9C [23:32:11]Write i2c OK [23:32:11]MH_I2C_Read... [23:32:11]Read from MH i2c: 01 [23:32:11]MH_I2C_Read... [23:32:11]Read from MH i2c: 01 07 00 [23:32:11]MH_I2C_Read... [23:32:11]Read from MH i2c: 01 07 00 75 27 00 00 00 00 00 08 0D B8 [23:32:11]RasterBufferAndPrint [23:32:11]line [23:32:11]line [23:32:11]line [23:32:11]line [23:32:11]line [23:32:11]written 0, free lines is 3342 [23:32:11]MH_Cut [23:32:11]Write to MH i2c: D1 01 00 7C 27 01 75 [23:32:11]Write i2c OK [23:32:11]MH_I2C_Read... [23:32:11]Read from MH i2c: D1 [23:32:11]MH_I2C_Read... [23:32:11]Read from MH i2c: D1 01 00 [23:32:11]MH_I2C_Read... [23:32:11]Read from MH i2c: D1 01 00 7C 27 00 74 [23:32:11]Write to MH i2c: 01 00 00 7D 27 A4 [23:32:11]Write i2c OK [23:32:11]MH_I2C_Read... [23:32:11]OFD Sender: No OFD packet to send [23:32:12]*** Cut start [23:32:12]*** Partial cut [23:32:12]*** CUTSNS_PIN = 1 [23:32:12]*** CUTSNS_PIN = 0 [23:32:12]*** Brake cut motor [23:32:12]Read from MH i2c: 01 [23:32:12]MH_I2C_Read... [23:32:12]*** Stop cut motor [23:32:12]*** Cut end [23:32:12]Read from MH i2c: 01 07 00 [23:32:12]MH_I2C_Read... [23:32:12]Read from MH i2c: 01 07 00 7D 27 00 00 00 00 00 FF 0F B9 [23:32:12]process_action close_receipt done [23:32:12]requested_data is exist [23:32:12]produce_requested_data [23:32:12]requested_item fm.sn is exist - process it [23:32:12]wFMCommunicate request_size=4 [23:32:12]MH_SAM_APDU [23:32:12]CAPDU: 80 11 00 00 [23:32:12]Write to MH i2c: E2 08 00 7E 27 80 11 00 00 00 00 00 00 1F [23:32:12]Write i2c OK [23:32:12]MH_I2C_Read... [23:32:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:12]Read from MH i2c: E2 [23:32:12]MH_I2C_Read... [23:32:12]Read from MH i2c: E2 17 00 [23:32:12]MH_I2C_Read... [23:32:12]Read from MH i2c: E2 17 00 7E 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7A [23:32:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:32:12]wFMCommunicate OK [23:32:12]requested_item fd.num is exist - process it [23:32:12]SAM_PROTO_GetFieldsCounters [23:32:12]wFMCommunicate request_size=4 [23:32:12]MH_SAM_APDU [23:32:12]CAPDU: 80 13 00 00 [23:32:12]Write to MH i2c: E2 08 00 7F 27 80 13 00 00 00 00 00 00 22 [23:32:12]Write i2c OK [23:32:12]MH_I2C_Read... [23:32:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:32:12]Read from MH i2c: E2 [23:32:12]MH_I2C_Read... [23:32:12]Read from MH i2c: E2 62 00 [23:32:12]MH_I2C_Read... [23:32:12]Read from MH i2c: E2 62 00 7F 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5E CF 01 00 0E 04 04 00 B1 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 95 [23:32: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5E CF 01 00 0E 04 04 00 B1 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 [23:32:13]wFMCommunicate OK [23:32:13]SAM_PROTO_GetFieldsCounters done [23:32:13]requested_item shift.num is exist - process it [23:32:13]requested_item shift.opened is exist - process it [23:32:13]req_shift_opened [23:32:13]FM_GetShiftState [23:32:13]SAM_PROTO_GetShiftState [23:32:13]wFMCommunicate request_size=4 [23:32:13]MH_SAM_APDU [23:32:13]CAPDU: 80 13 01 00 [23:32:13]Write to MH i2c: E2 08 00 80 27 80 13 01 00 00 00 00 00 24 [23:32:13]Write i2c OK [23:32:13]MH_I2C_Read... [23:32:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:13]Read from MH i2c: E2 [23:32:13]MH_I2C_Read... [23:32:13]Read from MH i2c: E2 0E 00 [23:32:13]MH_I2C_Read... [23:32:13]Read from MH i2c: E2 0E 00 80 27 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 FB [23:32:13]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [23:32:13]wFMCommunicate OK [23:32:13]SAM_PROTO_GetShiftState done [23:32:13]FM_GetShiftState done [23:32:13]req_shift_opened done [23:32:13]requested_item shift.open_date is exist - process it [23:32:13]req_shift_open_date [23:32:13]req_shift_open_date done [23:32:13]produce_requested_data done [23:32:13]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118622,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [23:32:13]process_action_free close_receipt [23:32:13]json_value_free [23:32:13]json_value_free done [23:32:13]process_json_proto returns [23:32:13]Send response to host [23:32:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118622,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [23:32:13]free response buf [23:32:13]execute_script done [23:32:13]execute_script returns [23:32:13]free content buf [23:32:13]Sock 7.Close socket [23:32:13]Sock 7.Thread stoped [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:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35:51]OFD Sender: No OFD packet to send [23:35:57]OFD Sender: No OFD packet to send [23:36:02]OFD Sender: No OFD packet to send [23:36:07]OFD Sender: No OFD packet to send [23:36:12]OFD Sender: No OFD packet to send [23:36:17]OFD Sender: No OFD packet to send [23:36:22]OFD Sender: No OFD packet to send [23:36:27]OFD Sender: No OFD packet to send [23:36:32]OFD Sender: No OFD packet to send [23:36:37]OFD Sender: No OFD packet to send [23:36:42]OFD Sender: No OFD packet to send [23:36:47]OFD Sender: No OFD packet to send [23:36:52]OFD Sender: No OFD packet to send [23:36:57]OFD Sender: No OFD packet to send [23:37:02]OFD Sender: No OFD packet to send [23:37:07]OFD Sender: No OFD packet to send [23:37:12]OFD Sender: No OFD packet to send [23:37:17]OFD Sender: No OFD packet to send [23:37:22]OFD Sender: No OFD packet to send [23:37:27]OFD Sender: No OFD packet to send [23:37:32]OFD Sender: No OFD packet to send [23:37:37]OFD Sender: No OFD packet to send [23:37:42]OFD Sender: No OFD packet to send [23:37:47]OFD Sender: No OFD packet to send [23:37:52]OFD Sender: No OFD packet to send [23:37:57]OFD Sender: No OFD packet to send [23:38:02]OFD Sender: No OFD packet to send [23:38:07]OFD Sender: No OFD packet to send [23:38:12]OFD Sender: No OFD packet to send [23:38:17]OFD Sender: No OFD packet to send [23:38:22]OFD Sender: No OFD packet to send [23:38:27]OFD Sender: No OFD packet to send [23:38:32]OFD Sender: No OFD packet to send [23:38:37]OFD Sender: No OFD packet to send [23:38:42]OFD Sender: No OFD packet to send [23:38:47]OFD Sender: No OFD packet to send [23:38:52]OFD Sender: No OFD packet to send [23:38:57]OFD Sender: No OFD packet to send [23:39:02]OFD Sender: No OFD packet to send [23:39:07]OFD Sender: No OFD packet to send [23:39:12]OFD Sender: No OFD packet to send [23:39:17]OFD Sender: No OFD packet to send [23:39:22]OFD Sender: No OFD packet to send [23:39:27]OFD Sender: No OFD packet to send [23:39:32]OFD Sender: No OFD packet to send [23:39:37]OFD Sender: No OFD packet to send [23:39:42]OFD Sender: No OFD packet to send [23:39:47]OFD Sender: No OFD packet to send [23:39:52]OFD Sender: No OFD packet to send [23:39:57]OFD Sender: No OFD packet to send [23:40:02]OFD Sender: No OFD packet to send [23:40:07]OFD Sender: No OFD packet to send [23:40:12]OFD Sender: No OFD packet to send [23:40:17]OFD Sender: No OFD packet to send [23:40:22]OFD Sender: No OFD packet to send [23:40:27]OFD Sender: No OFD packet to send [23:40:32]OFD Sender: No OFD packet to send [23:40:37]OFD Sender: No OFD packet to send [23:40:42]OFD Sender: No OFD packet to send [23:40:47]OFD Sender: No OFD packet to send [23:40:52]OFD Sender: No OFD packet to send [23:40:57]OFD Sender: No OFD packet to send [23:41:02]OFD Sender: No OFD packet to send [23:41:07]OFD Sender: No OFD packet to send [23:41:12]OFD Sender: No OFD packet to send [23:41:17]OFD Sender: No OFD packet to send [23:41:22]OFD Sender: No OFD packet to send [23:41:27]OFD Sender: No OFD packet to send [23:41:32]OFD Sender: No OFD packet to send [23:41:37]OFD Sender: No OFD packet to send [23:41:42]OFD Sender: No OFD packet to send [23:41:47]OFD Sender: No OFD packet to send [23:41:52]OFD Sender: No OFD packet to send [23:41:57]OFD Sender: No OFD packet to send [23:42:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:12]OFD Sender: No OFD packet to send [23:42:17]OFD Sender: No OFD packet to send [23:42:22]OFD Sender: No OFD packet to send [23:42:27]OFD Sender: No OFD packet to send [23:42:32]OFD Sender: No OFD packet to send [23:42:37]OFD Sender: No OFD packet to send [23:42:42]OFD Sender: No OFD packet to send [23:42:47]OFD Sender: No OFD packet to send [23:42:52]OFD Sender: No OFD packet to send [23:42:57]OFD Sender: No OFD packet to send [23:43:02]OFD Sender: No OFD packet to send [23:43:07]OFD Sender: No OFD packet to send [23:43:12]OFD Sender: No OFD packet to send [23:43:17]OFD Sender: No OFD packet to send [23:43:22]OFD Sender: No OFD packet to send [23:43:27]OFD Sender: No OFD packet to send [23:43:32]OFD Sender: No OFD packet to send [23:43:37]OFD Sender: No OFD packet to send [23:43:42]OFD Sender: No OFD packet to send [23:43:47]OFD Sender: No OFD packet to send [23:43:52]OFD Sender: No OFD packet to send [23:43:57]OFD Sender: No OFD packet to send [23:44:02]OFD Sender: No OFD packet to send [23:44:07]OFD Sender: No OFD packet to send [23:44:12]OFD Sender: No OFD packet to send [23:44:17]OFD Sender: No OFD packet to send [23:44:22]OFD Sender: No OFD packet to send [23:44:27]OFD Sender: No OFD packet to send [23:44:32]OFD Sender: No OFD packet to send [23:44:37]OFD Sender: No OFD packet to send [23:44:42]OFD Sender: No OFD packet to send [23:44:47]OFD Sender: No OFD packet to send [23:44:52]OFD Sender: No OFD packet to send [23:44:57]OFD Sender: No OFD packet to send [23:45:02]OFD Sender: No OFD packet to send [23:45:07]OFD Sender: No OFD packet to send [23:45:12]OFD Sender: No OFD packet to send [23:45:17]OFD Sender: No OFD packet to send [23:45:22]OFD Sender: No OFD packet to send [23:45:27]OFD Sender: No OFD packet to send [23:45:32]OFD Sender: No OFD packet to send [23:45:37]OFD Sender: No OFD packet to send [23:45:42]OFD Sender: No OFD packet to send [23:45:47]OFD Sender: No OFD packet to send [23:45:52]OFD Sender: No OFD packet to send [23:45:57]OFD Sender: No OFD packet to send [23:46:02]OFD Sender: No OFD packet to send [23:46:07]OFD Sender: No OFD packet to send [23:46:12]OFD Sender: No OFD packet to send [23:46:17]OFD Sender: No OFD packet to send [23:46:22]OFD Sender: No OFD packet to send [23:46:27]OFD Sender: No OFD packet to send [23:46:32]OFD Sender: No OFD packet to send [23:46:37]OFD Sender: No OFD packet to send [23:46:42]OFD Sender: No OFD packet to send [23:46:47]OFD Sender: No OFD packet to send [23:46:52]OFD Sender: No OFD packet to send [23:46:57]OFD Sender: No OFD packet to send [23:47:02]OFD Sender: No OFD packet to send [23:47:07]OFD Sender: No OFD packet to send [23:47:12]OFD Sender: No OFD packet to send [23:47:17]OFD Sender: No OFD packet to send [23:47:22]OFD Sender: No OFD packet to send [23:47:27]OFD Sender: No OFD packet to send [23:47:32]OFD Sender: No OFD packet to send [23:47:37]OFD Sender: No OFD packet to send [23:47:42]OFD Sender: No OFD packet to send [23:47:47]OFD Sender: No OFD packet to send [23:47:52]OFD Sender: No OFD packet to send [23:47:57]OFD Sender: No OFD packet to send [23:48:02]OFD Sender: No OFD packet to send [23:48:07]OFD Sender: No OFD packet to send [23:48:12]OFD Sender: No OFD packet to send [23:48:17]OFD Sender: No OFD packet to send [23:48:22]OFD Sender: No OFD packet to send [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:42]OFD Sender: No OFD packet to send [23:48:46]accept exits with 9 [23:48:46]New connection [23:48:46]New thread 3067383140 created [23:48:46]Thread 3067239780 joined [23:48:46]Waiting for new connection... [23:48:46] Sock 9.Parse request [23:48:46]Sock 9.Check first char [23:48:46]Sock 9.First char is OK [23:48:46]request: POST /json_proto HTTP/1.0 [23:48:46]Method: POST [23:48:46]URL: /json_proto [23:48:46]Method is POST - this is cgi request [23:48:46]url: /json_proto [23:48:46]query_string will be loaded in cgi processing [23:48:46]execute_cgi json_proto POST (null) [23:48:46]execute_cgi path=json_proto method=POST [23:48:46]POST find Content-Length [23:48:46]Host: 172.17.45.7:8080 [23:48:46]Content-Length: 215 [23:48:46]Content-Type: application/json [23:48:46] [23:48:46]POST finish read [23:48:46]Found Content-Length = 215 [23:48: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" ] } } [23:48:46]execute_script... [23:48: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" ] } } [23:48:46]POST & json_proto [23:48:46]process_json_proto [23:48:46]json parsed OK: [23:48:46]protocol is kg_v1.0 [23:48:46]action value=get_value [23:48:46]process_action get_value [23:48:46]cmd_get_value [23:48:46]process_action get_value done [23:48:46]requested_data is exist [23:48:46]produce_requested_data [23:48:46]requested_item kkm.sn is exist - process it [23:48:46]requested_item kkm.ver is exist - process it [23:48:46]requested_item fm.sn is exist - process it [23:48:46]wFMCommunicate request_size=4 [23:48:46]MH_SAM_APDU [23:48:46]CAPDU: 80 11 00 00 [23:48:46]Write to MH i2c: E2 08 00 81 27 80 11 00 00 00 00 00 00 22 [23:48:46]Write i2c OK [23:48:46]MH_I2C_Read... [23:48:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:46]Read from MH i2c: E2 [23:48:46]MH_I2C_Read... [23:48:46]Read from MH i2c: E2 17 00 [23:48:46]MH_I2C_Read... [23:48:46]Read from MH i2c: E2 17 00 81 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7D [23:48:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:48:46]wFMCommunicate OK [23:48:46]requested_item fd.num is exist - process it [23:48:46]SAM_PROTO_GetFieldsCounters [23:48:46]wFMCommunicate request_size=4 [23:48:46]MH_SAM_APDU [23:48:46]CAPDU: 80 13 00 00 [23:48:46]Write to MH i2c: E2 08 00 82 27 80 13 00 00 00 00 00 00 25 [23:48:46]Write i2c OK [23:48:46]MH_I2C_Read... [23:48:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:48:47]Read from MH i2c: E2 [23:48:47]MH_I2C_Read... [23:48:47]Read from MH i2c: E2 62 00 [23:48:47]MH_I2C_Read... [23:48:47]Read from MH i2c: E2 62 00 82 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5E CF 01 00 0E 04 04 00 B1 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 98 [23: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5E CF 01 00 0E 04 04 00 B1 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 [23:48:47]wFMCommunicate OK [23:48:47]SAM_PROTO_GetFieldsCounters done [23:48:47]requested_item shift.num is exist - process it [23:48:47]requested_item shift.opened is exist - process it [23:48:47]req_shift_opened [23:48:47]FM_GetShiftState [23:48:47]SAM_PROTO_GetShiftState [23:48:47]wFMCommunicate request_size=4 [23:48:47]MH_SAM_APDU [23:48:47]CAPDU: 80 13 01 00 [23:48:47]Write to MH i2c: E2 08 00 83 27 80 13 01 00 00 00 00 00 27 [23:48:47]Write i2c OK [23:48:47]MH_I2C_Read... [23:48:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:47]Read from MH i2c: E2 [23:48:47]MH_I2C_Read... [23:48:47]Read from MH i2c: E2 0E 00 [23:48:47]MH_I2C_Read... [23:48:47]Read from MH i2c: E2 0E 00 83 27 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 FE [23:48:47]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [23:48:47]wFMCommunicate OK [23:48:47]SAM_PROTO_GetShiftState done [23:48:47]FM_GetShiftState done [23:48:47]req_shift_opened done [23:48:47]requested_item shift.open_date is exist - process it [23:48:47]req_shift_open_date [23:48:47]req_shift_open_date done [23:48:47]produce_requested_data done [23:48:47]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118622,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [23:48:47]process_action_free get_value [23:48:47]json_value_free [23:48:47]json_value_free done [23:48:47]process_json_proto returns [23:48:47]Send response to host [23:48:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118622,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [23:48:47]free response buf [23:48:47]execute_script done [23:48:47]execute_script returns [23:48:47]free content buf [23:48:47]Sock 9.Close socket [23:48:47]Sock 9.Thread stoped [23:48:47]accept exits with 7 [23:48:47]New connection [23:48:47]New thread 3067239780 created [23:48:47]Thread 3067383140 joined [23:48:47]Waiting for new connection... [23:48:47] Sock 7.Parse request [23:48:47]Sock 7.Check first char [23:48:47]Sock 7.First char is OK [23:48:47]request: POST /json_proto HTTP/1.0 [23:48:47]Method: POST [23:48:47]URL: /json_proto [23:48:47]Method is POST - this is cgi request [23:48:47]url: /json_proto [23:48:47]query_string will be loaded in cgi processing [23:48:47]execute_cgi json_proto POST (null) [23:48:47]execute_cgi path=json_proto method=POST [23:48:47]POST find Content-Length [23:48:47]Host: 172.17.45.7:8080 [23:48:47]Content-Length: 331 [23:48:47]Content-Type: application/json [23:48:47] [23:48:47]POST finish read [23:48:47]Found Content-Length = 331 [23:48: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" ] } } [23:48:47]execute_script... [23:48: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" ] } } [23:48:47]POST & json_proto [23:48:47]process_json_proto [23:48:47]json parsed OK: [23:48:47]protocol is kg_v1.0 [23:48:47]action value=get_value [23:48:47]process_action get_value [23:48:47]cmd_get_value [23:48:47]process_action get_value done [23:48:47]requested_data is exist [23:48:47]produce_requested_data [23:48:47]requested_item fm.sale.total is exist - process it [23:48:47]SAM_PROTO_GetFMData [23:48:47]wFMCommunicate request_size=4 [23:48:47]MH_SAM_APDU [23:48:47]CAPDU: 80 13 03 00 [23:48:47]Write to MH i2c: E2 08 00 84 27 80 13 03 00 00 00 00 00 2A [23:48:47]Write i2c OK [23:48:47]MH_I2C_Read... [23:48:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:48:47]Read from MH i2c: E2 [23:48:47]MH_I2C_Read... [23:48:47]Read from MH i2c: E2 FD 00 [23:48:47]MH_I2C_Read... [23:48:47]Read from MH i2c: E2 FD 00 84 27 00 C5 04 85 04 C1 04 6E 04 04 00 FC CB 01 00 69 04 A3 00 6F 04 04 00 72 BE 01 00 B1 04 05 00 78 ED 5D 75 03 70 04 05 00 98 B7 97 A7 02 72 04 04 00 E0 35 C6 CD 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 0C AF 0B 5E 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 50 2D D6 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 9C 00 6F 04 04 00 8A 0D 00 00 B1 04 04 00 3C E3 13 3B 70 04 04 00 3C E3 13 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 11 44 46 06 EF 03 09 90 00 48 [23:48:47]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 FC CB 01 00 69 04 A3 00 6F 04 04 00 72 BE 01 00 B1 04 05 00 78 ED 5D 75 03 70 04 05 00 98 B7 97 A7 02 72 04 04 00 E0 35 C6 CD 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 0C AF 0B 5E 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 50 2D D6 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 9C 00 6F 04 04 00 8A 0D 00 00 B1 04 04 00 3C E3 13 3B 70 04 04 00 3C E3 13 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 11 44 46 06 EF 03 09 90 00 [23:48:47]wFMCommunicate OK [23:48:47]wFMCommunicate request_size=4 [23:48:47]MH_SAM_APDU [23:48:47]CAPDU: 80 17 00 00 [23:48:47]Write to MH i2c: E2 08 00 85 27 80 17 00 00 00 00 00 00 2C [23:48:47]Write i2c OK [23:48:47]MH_I2C_Read... [23:48:47]OFD Sender: No OFD packet to send [23:48:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:48]Read from MH i2c: E2 [23:48:48]MH_I2C_Read... [23:48:48]Read from MH i2c: E2 FD 00 [23:48:48]MH_I2C_Read... [23:48:48]Read from MH i2c: E2 FD 00 85 27 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F DA 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 60 [23:48:48]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F DA 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:48:48]wFMCommunicate OK [23:48:48]wFMCommunicate request_size=4 [23:48:48]MH_SAM_APDU [23:48:48]CAPDU: 80 17 00 00 [23:48:48]Write to MH i2c: E2 08 00 86 27 80 17 00 00 00 00 00 00 2D [23:48:48]Write i2c OK [23:48:48]MH_I2C_Read... [23:48:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:48]Read from MH i2c: E2 [23:48:48]MH_I2C_Read... [23:48:48]Read from MH i2c: E2 FD 00 [23:48:48]MH_I2C_Read... [23:48:48]Read from MH i2c: E2 FD 00 86 27 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 3F [23:48:48]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:48:48]wFMCommunicate OK [23:48:48]wFMCommunicate request_size=4 [23:48:48]MH_SAM_APDU [23:48:48]CAPDU: 80 17 00 00 [23:48:48]Write to MH i2c: E2 08 00 87 27 80 17 00 00 00 00 00 00 2E [23:48:48]Write i2c OK [23:48:48]MH_I2C_Read... [23:48:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:48]Read from MH i2c: E2 [23:48:48]MH_I2C_Read... [23:48:48]Read from MH i2c: E2 FD 00 [23:48:48]MH_I2C_Read... [23:48:48]Read from MH i2c: E2 FD 00 87 27 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 BA [23:48:48]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:48:48]wFMCommunicate OK [23:48:48]wFMCommunicate request_size=4 [23:48:48]MH_SAM_APDU [23:48:48]CAPDU: 80 17 00 00 [23:48:48]Write to MH i2c: E2 08 00 88 27 80 17 00 00 00 00 00 00 2F [23:48:48]Write i2c OK [23:48:48]MH_I2C_Read... [23:48:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:48:48]Read from MH i2c: E2 [23:48:48]MH_I2C_Read... [23:48:48]Read from MH i2c: E2 E2 00 [23:48:48]MH_I2C_Read... [23:48:48]Read from MH i2c: E2 E2 00 88 27 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0D [23:48:48]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:48:48]wFMCommunicate OK [23:48:48]SAM_PROTO_GetFMData done [23:48:48]requested_item fm.sale_refund.total is exist - process it [23:48:48]requested_item fm.buy.total is exist - process it [23:48:48]requested_item shift.sale.total is exist - process it [23:48:48]SAM_PROTO_GetShiftData [23:48:48]wFMCommunicate request_size=4 [23:48:48]MH_SAM_APDU [23:48:48]CAPDU: 80 13 02 00 [23:48:48]Write to MH i2c: E2 08 00 89 27 80 13 02 00 00 00 00 00 2E [23:48:48]Write i2c OK [23:48:48]MH_I2C_Read... [23:48:49]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:48:49]Read from MH i2c: E2 [23:48:49]MH_I2C_Read... [23:48:49]Read from MH i2c: E2 FD 00 [23:48:49]MH_I2C_Read... [23:48:49]Read from MH i2c: E2 FD 00 89 27 00 BC 04 AA 04 B8 04 6E 04 04 00 23 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 54 4C C6 02 70 04 03 00 E0 BC DA 72 04 04 00 74 8F EB 01 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 C2 71 4B 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 69 49 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 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 60 B4 09 70 04 03 00 60 B4 09 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 E5 07 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 B4 [23:48:49]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 23 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 54 4C C6 02 70 04 03 00 E0 BC DA 72 04 04 00 74 8F EB 01 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 C2 71 4B 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 69 49 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 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 60 B4 09 70 04 03 00 60 B4 09 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 E5 07 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [23:48:49]wFMCommunicate OK [23:48:49]wFMCommunicate request_size=4 [23:48:49]MH_SAM_APDU [23:48:49]CAPDU: 80 17 00 00 [23:48:49]Write to MH i2c: E2 08 00 8A 27 80 17 00 00 00 00 00 00 31 [23:48:49]Write i2c OK [23:48:49]MH_I2C_Read... [23:48:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:49]Read from MH i2c: E2 [23:48:49]MH_I2C_Read... [23:48:49]Read from MH i2c: E2 FD 00 [23:48:49]MH_I2C_Read... [23:48:49]Read from MH i2c: E2 FD 00 8A 27 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 ED [23:48:49]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:48:49]wFMCommunicate OK [23:48:49]wFMCommunicate request_size=4 [23:48:49]MH_SAM_APDU [23:48:49]CAPDU: 80 17 00 00 [23:48:49]Write to MH i2c: E2 08 00 8B 27 80 17 00 00 00 00 00 00 32 [23:48:49]Write i2c OK [23:48:49]MH_I2C_Read... [23:48:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:49]Read from MH i2c: E2 [23:48:49]MH_I2C_Read... [23:48:49]Read from MH i2c: E2 FD 00 [23:48:49]MH_I2C_Read... [23:48:49]Read from MH i2c: E2 FD 00 8B 27 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5B [23:48:49]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:48:49]wFMCommunicate OK [23:48:49]wFMCommunicate request_size=4 [23:48:49]MH_SAM_APDU [23:48:49]CAPDU: 80 17 00 00 [23:48:49]Write to MH i2c: E2 08 00 8C 27 80 17 00 00 00 00 00 00 33 [23:48:49]Write i2c OK [23:48:49]MH_I2C_Read... [23:48:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:50]Read from MH i2c: E2 [23:48:50]MH_I2C_Read... [23:48:50]Read from MH i2c: E2 FD 00 [23:48:50]MH_I2C_Read... [23:48:50]Read from MH i2c: E2 FD 00 8C 27 00 03 00 00 EF 03 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 90 00 B4 [23:48:50]RAPDU: 03 00 00 EF 03 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 90 00 [23:48:50]wFMCommunicate OK [23:48:50]wFMCommunicate request_size=4 [23:48:50]MH_SAM_APDU [23:48:50]CAPDU: 80 17 00 00 [23:48:50]Write to MH i2c: E2 08 00 8D 27 80 17 00 00 00 00 00 00 34 [23:48:50]Write i2c OK [23:48:50]MH_I2C_Read... [23:48:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [23:48:50]Read from MH i2c: E2 [23:48:50]MH_I2C_Read... [23:48:50]Read from MH i2c: E2 D9 00 [23:48:50]MH_I2C_Read... [23:48:50]Read from MH i2c: E2 D9 00 8D 27 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 13 [23:48:50]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:48:50]wFMCommunicate OK [23:48:50]SAM_PROTO_GetShiftData done [23:48:50]requested_item shift.sale.total_cash is exist - process it [23:48:50]requested_item shift.sale_refund.total is exist - process it [23:48:50]requested_item shift.sale_refund.total_cash is exist - process it [23:48:50]requested_item shift.buy.total is exist - process it [23:48:50]requested_item shift.buy.total_cash is exist - process it [23:48:50]produce_requested_data done [23:48:50]produce_requested_data return {"fm.sale.total":148539918.00,"fm.sale_refund.total":9911591.00,"fm.buy.total":0.00,"shift.sale.total":465501.00,"shift.sale.total_cash":143352.00,"shift.sale_refund.total":6360.00,"shift.sale_refund.total_cash":6360.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:48:50]process_action_free get_value [23:48:50]json_value_free [23:48:50]json_value_free done [23:48:50]process_json_proto returns [23:48:50]Send response to host [23:48:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148539918.00,"fm.sale_refund.total":9911591.00,"fm.buy.total":0.00,"shift.sale.total":465501.00,"shift.sale.total_cash":143352.00,"shift.sale_refund.total":6360.00,"shift.sale_refund.total_cash":6360.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:48:50]free response buf [23:48:50]execute_script done [23:48:50]execute_script returns [23:48:50]free content buf [23:48:50]Sock 7.Close socket [23:48:50]Sock 7.Thread stoped [23:48:52]OFD Sender: No OFD packet to send [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:23]accept exits with 9 [23:49:23]New connection [23:49:23]New thread 3067383140 created [23:49:23]Thread 3067239780 joined [23:49:23]Waiting for new connection... [23:49:23] Sock 9.Parse request [23:49:23]Sock 9.Check first char [23:49:23]Sock 9.First char is OK [23:49:23]request: POST /json_proto HTTP/1.0 [23:49:23]Method: POST [23:49:23]URL: /json_proto [23:49:23]Method is POST - this is cgi request [23:49:23]url: /json_proto [23:49:23]query_string will be loaded in cgi processing [23:49:23]execute_cgi json_proto POST (null) [23:49:23]execute_cgi path=json_proto method=POST [23:49:23]POST find Content-Length [23:49:23]Host: 172.17.45.7:8080 [23:49:23]Content-Length: 215 [23:49:23]Content-Type: application/json [23:49:23] [23:49:23]POST finish read [23:49:23]Found Content-Length = 215 [23:49:23]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:49:23]execute_script... [23:49:23]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:49:23]POST & json_proto [23:49:23]process_json_proto [23:49:23]json parsed OK: [23:49:23]protocol is kg_v1.0 [23:49:23]action value=get_value [23:49:23]process_action get_value [23:49:23]cmd_get_value [23:49:23]process_action get_value done [23:49:23]requested_data is exist [23:49:23]produce_requested_data [23:49:23]requested_item kkm.sn is exist - process it [23:49:23]requested_item kkm.ver is exist - process it [23:49:23]requested_item fm.sn is exist - process it [23:49:23]wFMCommunicate request_size=4 [23:49:23]MH_SAM_APDU [23:49:23]CAPDU: 80 11 00 00 [23:49:23]Write to MH i2c: E2 08 00 8E 27 80 11 00 00 00 00 00 00 2F [23:49:23]Write i2c OK [23:49:23]MH_I2C_Read... [23:49:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:23]Read from MH i2c: E2 [23:49:23]MH_I2C_Read... [23:49:23]Read from MH i2c: E2 17 00 [23:49:23]MH_I2C_Read... [23:49:23]Read from MH i2c: E2 17 00 8E 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8A [23:49:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:49:23]wFMCommunicate OK [23:49:23]requested_item fd.num is exist - process it [23:49:23]SAM_PROTO_GetFieldsCounters [23:49:23]wFMCommunicate request_size=4 [23:49:23]MH_SAM_APDU [23:49:23]CAPDU: 80 13 00 00 [23:49:23]Write to MH i2c: E2 08 00 8F 27 80 13 00 00 00 00 00 00 32 [23:49:23]Write i2c OK [23:49:23]MH_I2C_Read... [23:49:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:23]Read from MH i2c: E2 [23:49:23]MH_I2C_Read... [23:49:23]Read from MH i2c: E2 62 00 [23:49:23]MH_I2C_Read... [23:49:23]Read from MH i2c: E2 62 00 8F 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5E CF 01 00 0E 04 04 00 B1 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 A5 [23:49:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5E CF 01 00 0E 04 04 00 B1 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 [23:49:23]wFMCommunicate OK [23:49:23]SAM_PROTO_GetFieldsCounters done [23:49:23]requested_item shift.num is exist - process it [23:49:23]requested_item shift.opened is exist - process it [23:49:23]req_shift_opened [23:49:23]FM_GetShiftState [23:49:23]SAM_PROTO_GetShiftState [23:49:23]wFMCommunicate request_size=4 [23:49:23]MH_SAM_APDU [23:49:23]CAPDU: 80 13 01 00 [23:49:23]Write to MH i2c: E2 08 00 90 27 80 13 01 00 00 00 00 00 34 [23:49:23]Write i2c OK [23:49:23]MH_I2C_Read... [23:49:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:24]Read from MH i2c: E2 [23:49:24]MH_I2C_Read... [23:49:24]Read from MH i2c: E2 0E 00 [23:49:24]MH_I2C_Read... [23:49:24]Read from MH i2c: E2 0E 00 90 27 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 0B [23:49:24]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [23:49:24]wFMCommunicate OK [23:49:24]SAM_PROTO_GetShiftState done [23:49:24]FM_GetShiftState done [23:49:24]req_shift_opened done [23:49:24]requested_item shift.open_date is exist - process it [23:49:24]req_shift_open_date [23:49:24]req_shift_open_date done [23:49:24]produce_requested_data done [23:49:24]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118622,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [23:49:24]process_action_free get_value [23:49:24]json_value_free [23:49:24]json_value_free done [23:49:24]process_json_proto returns [23:49:24]Send response to host [23:49:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118622,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [23:49:24]free response buf [23:49:24]execute_script done [23:49:24]execute_script returns [23:49:24]free content buf [23:49:24]Sock 9.Close socket [23:49:24]Sock 9.Thread stoped [23:49:24]accept exits with 7 [23:49:24]New connection [23:49:24]New thread 3067239780 created [23:49:24]Thread 3067383140 joined [23:49:24]Waiting for new connection... [23:49:24] Sock 7.Parse request [23:49:24]Sock 7.Check first char [23:49:24]Sock 7.First char is OK [23:49:24]request: POST /json_proto HTTP/1.0 [23:49:24]Method: POST [23:49:24]URL: /json_proto [23:49:24]Method is POST - this is cgi request [23:49:24]url: /json_proto [23:49:24]query_string will be loaded in cgi processing [23:49:24]execute_cgi json_proto POST (null) [23:49:24]execute_cgi path=json_proto method=POST [23:49:24]POST find Content-Length [23:49:24]Host: 172.17.45.7:8080 [23:49:24]Content-Length: 331 [23:49:24]Content-Type: application/json [23:49:24] [23:49:24]POST finish read [23:49:24]Found Content-Length = 331 [23:49:24]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:49:24]execute_script... [23:49:24]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:49:24]POST & json_proto [23:49:24]process_json_proto [23:49:24]json parsed OK: [23:49:24]protocol is kg_v1.0 [23:49:24]action value=get_value [23:49:24]process_action get_value [23:49:24]cmd_get_value [23:49:24]process_action get_value done [23:49:24]requested_data is exist [23:49:24]produce_requested_data [23:49:24]requested_item fm.sale.total is exist - process it [23:49:24]SAM_PROTO_GetFMData [23:49:24]wFMCommunicate request_size=4 [23:49:24]MH_SAM_APDU [23:49:24]CAPDU: 80 13 03 00 [23:49:24]Write to MH i2c: E2 08 00 91 27 80 13 03 00 00 00 00 00 37 [23:49:24]Write i2c OK [23:49:24]MH_I2C_Read... [23:49:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:49:24]Read from MH i2c: E2 [23:49:24]MH_I2C_Read... [23:49:24]Read from MH i2c: E2 FD 00 [23:49:24]MH_I2C_Read... [23:49:24]Read from MH i2c: E2 FD 00 91 27 00 C5 04 85 04 C1 04 6E 04 04 00 FC CB 01 00 69 04 A3 00 6F 04 04 00 72 BE 01 00 B1 04 05 00 78 ED 5D 75 03 70 04 05 00 98 B7 97 A7 02 72 04 04 00 E0 35 C6 CD 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 0C AF 0B 5E 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 50 2D D6 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 9C 00 6F 04 04 00 8A 0D 00 00 B1 04 04 00 3C E3 13 3B 70 04 04 00 3C E3 13 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 11 44 46 06 EF 03 09 90 00 55 [23:49:24]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 FC CB 01 00 69 04 A3 00 6F 04 04 00 72 BE 01 00 B1 04 05 00 78 ED 5D 75 03 70 04 05 00 98 B7 97 A7 02 72 04 04 00 E0 35 C6 CD 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 0C AF 0B 5E 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 50 2D D6 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 9C 00 6F 04 04 00 8A 0D 00 00 B1 04 04 00 3C E3 13 3B 70 04 04 00 3C E3 13 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 11 44 46 06 EF 03 09 90 00 [23:49:24]wFMCommunicate OK [23:49:24]wFMCommunicate request_size=4 [23:49:24]MH_SAM_APDU [23:49:24]CAPDU: 80 17 00 00 [23:49:24]Write to MH i2c: E2 08 00 92 27 80 17 00 00 00 00 00 00 39 [23:49:24]Write i2c OK [23:49:24]MH_I2C_Read... [23:49:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:25]Read from MH i2c: E2 [23:49:25]MH_I2C_Read... [23:49:25]Read from MH i2c: E2 FD 00 [23:49:25]MH_I2C_Read... [23:49:25]Read from MH i2c: E2 FD 00 92 27 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F DA 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 6D [23:49:25]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F DA 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:49:25]wFMCommunicate OK [23:49:25]wFMCommunicate request_size=4 [23:49:25]MH_SAM_APDU [23:49:25]CAPDU: 80 17 00 00 [23:49:25]Write to MH i2c: E2 08 00 93 27 80 17 00 00 00 00 00 00 3A [23:49:25]Write i2c OK [23:49:25]MH_I2C_Read... [23:49:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:25]Read from MH i2c: E2 [23:49:25]MH_I2C_Read... [23:49:25]Read from MH i2c: E2 FD 00 [23:49:25]MH_I2C_Read... [23:49:25]Read from MH i2c: E2 FD 00 93 27 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 4C [23:49:25]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:49:25]wFMCommunicate OK [23:49:25]wFMCommunicate request_size=4 [23:49:25]MH_SAM_APDU [23:49:25]CAPDU: 80 17 00 00 [23:49:25]Write to MH i2c: E2 08 00 94 27 80 17 00 00 00 00 00 00 3B [23:49:25]Write i2c OK [23:49:25]MH_I2C_Read... [23:49:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:25]Read from MH i2c: E2 [23:49:25]MH_I2C_Read... [23:49:25]Read from MH i2c: E2 FD 00 [23:49:25]MH_I2C_Read... [23:49:25]Read from MH i2c: E2 FD 00 94 27 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 C7 [23:49:25]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:49:25]wFMCommunicate OK [23:49:25]wFMCommunicate request_size=4 [23:49:25]MH_SAM_APDU [23:49:25]CAPDU: 80 17 00 00 [23:49:25]Write to MH i2c: E2 08 00 95 27 80 17 00 00 00 00 00 00 3C [23:49:25]Write i2c OK [23:49:25]MH_I2C_Read... [23:49:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:49:25]Read from MH i2c: E2 [23:49:25]MH_I2C_Read... [23:49:25]Read from MH i2c: E2 E2 00 [23:49:25]MH_I2C_Read... [23:49:25]Read from MH i2c: E2 E2 00 95 27 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1A [23:49:25]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:49:25]wFMCommunicate OK [23:49:25]SAM_PROTO_GetFMData done [23:49:25]requested_item fm.sale_refund.total is exist - process it [23:49:25]requested_item fm.buy.total is exist - process it [23:49:25]requested_item shift.sale.total is exist - process it [23:49:25]SAM_PROTO_GetShiftData [23:49:25]wFMCommunicate request_size=4 [23:49:25]MH_SAM_APDU [23:49:25]CAPDU: 80 13 02 00 [23:49:25]Write to MH i2c: E2 08 00 96 27 80 13 02 00 00 00 00 00 3B [23:49:25]Write i2c OK [23:49:25]MH_I2C_Read... [23:49:26]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:49:26]Read from MH i2c: E2 [23:49:26]MH_I2C_Read... [23:49:26]Read from MH i2c: E2 FD 00 [23:49:26]MH_I2C_Read... [23:49:26]Read from MH i2c: E2 FD 00 96 27 00 BC 04 AA 04 B8 04 6E 04 04 00 23 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 54 4C C6 02 70 04 03 00 E0 BC DA 72 04 04 00 74 8F EB 01 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 C2 71 4B 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 69 49 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 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 60 B4 09 70 04 03 00 60 B4 09 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 E5 07 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 C1 [23:49:26]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 23 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 54 4C C6 02 70 04 03 00 E0 BC DA 72 04 04 00 74 8F EB 01 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 C2 71 4B 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 69 49 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 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 60 B4 09 70 04 03 00 60 B4 09 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 E5 07 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [23:49:26]wFMCommunicate OK [23:49:26]wFMCommunicate request_size=4 [23:49:26]MH_SAM_APDU [23:49:26]CAPDU: 80 17 00 00 [23:49:26]Write to MH i2c: E2 08 00 97 27 80 17 00 00 00 00 00 00 3E [23:49:26]Write i2c OK [23:49:26]MH_I2C_Read... [23:49:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:26]Read from MH i2c: E2 [23:49:26]MH_I2C_Read... [23:49:26]Read from MH i2c: E2 FD 00 [23:49:26]MH_I2C_Read... [23:49:26]Read from MH i2c: E2 FD 00 97 27 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FA [23:49:26]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:26]wFMCommunicate OK [23:49:26]wFMCommunicate request_size=4 [23:49:26]MH_SAM_APDU [23:49:26]CAPDU: 80 17 00 00 [23:49:26]Write to MH i2c: E2 08 00 98 27 80 17 00 00 00 00 00 00 3F [23:49:26]Write i2c OK [23:49:26]MH_I2C_Read... [23:49:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:26]Read from MH i2c: E2 [23:49:26]MH_I2C_Read... [23:49:26]Read from MH i2c: E2 FD 00 [23:49:26]MH_I2C_Read... [23:49:26]Read from MH i2c: E2 FD 00 98 27 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 68 [23:49:26]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:26]wFMCommunicate OK [23:49:26]wFMCommunicate request_size=4 [23:49:26]MH_SAM_APDU [23:49:26]CAPDU: 80 17 00 00 [23:49:26]Write to MH i2c: E2 08 00 99 27 80 17 00 00 00 00 00 00 40 [23:49:26]Write i2c OK [23:49:26]MH_I2C_Read... [23:49:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:27]Read from MH i2c: E2 [23:49:27]MH_I2C_Read... [23:49:27]Read from MH i2c: E2 FD 00 [23:49:27]MH_I2C_Read... [23:49:27]Read from MH i2c: E2 FD 00 99 27 00 03 00 00 EF 03 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 90 00 C1 [23:49:27]RAPDU: 03 00 00 EF 03 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 90 00 [23:49:27]wFMCommunicate OK [23:49:27]wFMCommunicate request_size=4 [23:49:27]MH_SAM_APDU [23:49:27]CAPDU: 80 17 00 00 [23:49:27]Write to MH i2c: E2 08 00 9A 27 80 17 00 00 00 00 00 00 41 [23:49:27]Write i2c OK [23:49:27]MH_I2C_Read... [23:49:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [23:49:27]Read from MH i2c: E2 [23:49:27]MH_I2C_Read... [23:49:27]Read from MH i2c: E2 D9 00 [23:49:27]MH_I2C_Read... [23:49:27]Read from MH i2c: E2 D9 00 9A 27 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 20 [23:49:27]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:49:27]wFMCommunicate OK [23:49:27]SAM_PROTO_GetShiftData done [23:49:27]requested_item shift.sale.total_cash is exist - process it [23:49:27]requested_item shift.sale_refund.total is exist - process it [23:49:27]requested_item shift.sale_refund.total_cash is exist - process it [23:49:27]requested_item shift.buy.total is exist - process it [23:49:27]requested_item shift.buy.total_cash is exist - process it [23:49:27]produce_requested_data done [23:49:27]produce_requested_data return {"fm.sale.total":148539918.00,"fm.sale_refund.total":9911591.00,"fm.buy.total":0.00,"shift.sale.total":465501.00,"shift.sale.total_cash":143352.00,"shift.sale_refund.total":6360.00,"shift.sale_refund.total_cash":6360.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:49:27]process_action_free get_value [23:49:27]json_value_free [23:49:27]json_value_free done [23:49:27]process_json_proto returns [23:49:27]Send response to host [23:49:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148539918.00,"fm.sale_refund.total":9911591.00,"fm.buy.total":0.00,"shift.sale.total":465501.00,"shift.sale.total_cash":143352.00,"shift.sale_refund.total":6360.00,"shift.sale_refund.total_cash":6360.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:49:27]free response buf [23:49:27]execute_script done [23:49:27]execute_script returns [23:49:27]free content buf [23:49:27]Sock 7.Close socket [23:49:27]Sock 7.Thread stoped [23:49:27]accept exits with 9 [23:49:27]New connection [23:49:27]New thread 3067383140 created [23:49:27]Thread 3067239780 joined [23:49:27]Waiting for new connection... [23:49:27] Sock 9.Parse request [23:49:27]Sock 9.Check first char [23:49:27]Sock 9.First char is OK [23:49:27]request: POST /json_proto HTTP/1.0 [23:49:27]Method: POST [23:49:27]URL: /json_proto [23:49:27]Method is POST - this is cgi request [23:49:27]url: /json_proto [23:49:27]query_string will be loaded in cgi processing [23:49:27]execute_cgi json_proto POST (null) [23:49:27]execute_cgi path=json_proto method=POST [23:49:27]POST find Content-Length [23:49:27]Host: 172.17.45.7:8080 [23:49:27]Content-Length: 331 [23:49:27]Content-Type: application/json [23:49:27] [23:49:27]POST finish read [23:49:27]Found Content-Length = 331 [23:49:27]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:49:27]execute_script... [23:49:27]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:49:27]POST & json_proto [23:49:27]process_json_proto [23:49:27]json parsed OK: [23:49:27]protocol is kg_v1.0 [23:49:27]action value=get_value [23:49:27]process_action get_value [23:49:27]cmd_get_value [23:49:27]process_action get_value done [23:49:27]requested_data is exist [23:49:27]produce_requested_data [23:49:27]requested_item fm.sale.total is exist - process it [23:49:27]SAM_PROTO_GetFMData [23:49:27]wFMCommunicate request_size=4 [23:49:27]MH_SAM_APDU [23:49:27]CAPDU: 80 13 03 00 [23:49:27]Write to MH i2c: E2 08 00 9B 27 80 13 03 00 00 00 00 00 41 [23:49:27]Write i2c OK [23:49:27]MH_I2C_Read... [23:49:27]OFD Sender: No OFD packet to send [23:49:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:49:28]Read from MH i2c: E2 [23:49:28]MH_I2C_Read... [23:49:28]Read from MH i2c: E2 FD 00 [23:49:28]MH_I2C_Read... [23:49:28]Read from MH i2c: E2 FD 00 9B 27 00 C5 04 85 04 C1 04 6E 04 04 00 FC CB 01 00 69 04 A3 00 6F 04 04 00 72 BE 01 00 B1 04 05 00 78 ED 5D 75 03 70 04 05 00 98 B7 97 A7 02 72 04 04 00 E0 35 C6 CD 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 0C AF 0B 5E 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 50 2D D6 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 9C 00 6F 04 04 00 8A 0D 00 00 B1 04 04 00 3C E3 13 3B 70 04 04 00 3C E3 13 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 11 44 46 06 EF 03 09 90 00 5F [23:49:28]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 FC CB 01 00 69 04 A3 00 6F 04 04 00 72 BE 01 00 B1 04 05 00 78 ED 5D 75 03 70 04 05 00 98 B7 97 A7 02 72 04 04 00 E0 35 C6 CD 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 0C AF 0B 5E 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 50 2D D6 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 9C 00 6F 04 04 00 8A 0D 00 00 B1 04 04 00 3C E3 13 3B 70 04 04 00 3C E3 13 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 11 44 46 06 EF 03 09 90 00 [23:49:28]wFMCommunicate OK [23:49:28]wFMCommunicate request_size=4 [23:49:28]MH_SAM_APDU [23:49:28]CAPDU: 80 17 00 00 [23:49:28]Write to MH i2c: E2 08 00 9C 27 80 17 00 00 00 00 00 00 43 [23:49:28]Write i2c OK [23:49:28]MH_I2C_Read... [23:49:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:28]Read from MH i2c: E2 [23:49:28]MH_I2C_Read... [23:49:28]Read from MH i2c: E2 FD 00 [23:49:28]MH_I2C_Read... [23:49:28]Read from MH i2c: E2 FD 00 9C 27 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F DA 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 77 [23:49:28]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F DA 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:49:28]wFMCommunicate OK [23:49:28]wFMCommunicate request_size=4 [23:49:28]MH_SAM_APDU [23:49:28]CAPDU: 80 17 00 00 [23:49:28]Write to MH i2c: E2 08 00 9D 27 80 17 00 00 00 00 00 00 44 [23:49:28]Write i2c OK [23:49:28]MH_I2C_Read... [23:49:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:28]Read from MH i2c: E2 [23:49:28]MH_I2C_Read... [23:49:28]Read from MH i2c: E2 FD 00 [23:49:28]MH_I2C_Read... [23:49:28]Read from MH i2c: E2 FD 00 9D 27 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 56 [23:49:28]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:49:29]wFMCommunicate OK [23:49:29]wFMCommunicate request_size=4 [23:49:29]MH_SAM_APDU [23:49:29]CAPDU: 80 17 00 00 [23:49:29]Write to MH i2c: E2 08 00 9E 27 80 17 00 00 00 00 00 00 45 [23:49:29]Write i2c OK [23:49:29]MH_I2C_Read... [23:49:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:29]Read from MH i2c: E2 [23:49:29]MH_I2C_Read... [23:49:29]Read from MH i2c: E2 FD 00 [23:49:29]MH_I2C_Read... [23:49:29]Read from MH i2c: E2 FD 00 9E 27 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 D1 [23:49:29]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:49:29]wFMCommunicate OK [23:49:29]wFMCommunicate request_size=4 [23:49:29]MH_SAM_APDU [23:49:29]CAPDU: 80 17 00 00 [23:49:29]Write to MH i2c: E2 08 00 9F 27 80 17 00 00 00 00 00 00 46 [23:49:29]Write i2c OK [23:49:29]MH_I2C_Read... [23:49:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:49:29]Read from MH i2c: E2 [23:49:29]MH_I2C_Read... [23:49:29]Read from MH i2c: E2 E2 00 [23:49:29]MH_I2C_Read... [23:49:29]Read from MH i2c: E2 E2 00 9F 27 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 24 [23:49:29]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:49:29]wFMCommunicate OK [23:49:29]SAM_PROTO_GetFMData done [23:49:29]requested_item fm.sale_refund.total is exist - process it [23:49:29]requested_item fm.buy.total is exist - process it [23:49:29]requested_item shift.sale.total is exist - process it [23:49:29]SAM_PROTO_GetShiftData [23:49:29]wFMCommunicate request_size=4 [23:49:29]MH_SAM_APDU [23:49:29]CAPDU: 80 13 02 00 [23:49:29]Write to MH i2c: E2 08 00 A0 27 80 13 02 00 00 00 00 00 45 [23:49:29]Write i2c OK [23:49:29]MH_I2C_Read... [23:49:30]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:49:30]Read from MH i2c: E2 [23:49:30]MH_I2C_Read... [23:49:30]Read from MH i2c: E2 FD 00 [23:49:30]MH_I2C_Read... [23:49:30]Read from MH i2c: E2 FD 00 A0 27 00 BC 04 AA 04 B8 04 6E 04 04 00 23 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 54 4C C6 02 70 04 03 00 E0 BC DA 72 04 04 00 74 8F EB 01 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 C2 71 4B 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 69 49 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 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 60 B4 09 70 04 03 00 60 B4 09 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 E5 07 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 CB [23:49:30]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 23 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 54 4C C6 02 70 04 03 00 E0 BC DA 72 04 04 00 74 8F EB 01 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 C2 71 4B 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 69 49 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 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 60 B4 09 70 04 03 00 60 B4 09 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 E5 07 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [23:49:30]wFMCommunicate OK [23:49:30]wFMCommunicate request_size=4 [23:49:30]MH_SAM_APDU [23:49:30]CAPDU: 80 17 00 00 [23:49:30]Write to MH i2c: E2 08 00 A1 27 80 17 00 00 00 00 00 00 48 [23:49:30]Write i2c OK [23:49:30]MH_I2C_Read... [23:49:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:30]Read from MH i2c: E2 [23:49:30]MH_I2C_Read... [23:49:30]Read from MH i2c: E2 FD 00 [23:49:30]MH_I2C_Read... [23:49:30]Read from MH i2c: E2 FD 00 A1 27 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 04 [23:49:30]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:30]wFMCommunicate OK [23:49:30]wFMCommunicate request_size=4 [23:49:30]MH_SAM_APDU [23:49:30]CAPDU: 80 17 00 00 [23:49:30]Write to MH i2c: E2 08 00 A2 27 80 17 00 00 00 00 00 00 49 [23:49:30]Write i2c OK [23:49:30]MH_I2C_Read... [23:49:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:31]Read from MH i2c: E2 [23:49:31]MH_I2C_Read... [23:49:31]Read from MH i2c: E2 FD 00 [23:49:31]MH_I2C_Read... [23:49:31]Read from MH i2c: E2 FD 00 A2 27 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 72 [23:49:31]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:31]wFMCommunicate OK [23:49:31]wFMCommunicate request_size=4 [23:49:31]MH_SAM_APDU [23:49:31]CAPDU: 80 17 00 00 [23:49:31]Write to MH i2c: E2 08 00 A3 27 80 17 00 00 00 00 00 00 4A [23:49:31]Write i2c OK [23:49:31]MH_I2C_Read... [23:49:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:31]Read from MH i2c: E2 [23:49:31]MH_I2C_Read... [23:49:31]Read from MH i2c: E2 FD 00 [23:49:31]MH_I2C_Read... [23:49:31]Read from MH i2c: E2 FD 00 A3 27 00 03 00 00 EF 03 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 90 00 CB [23:49:31]RAPDU: 03 00 00 EF 03 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 90 00 [23:49:31]wFMCommunicate OK [23:49:31]wFMCommunicate request_size=4 [23:49:31]MH_SAM_APDU [23:49:31]CAPDU: 80 17 00 00 [23:49:31]Write to MH i2c: E2 08 00 A4 27 80 17 00 00 00 00 00 00 4B [23:49:31]Write i2c OK [23:49:31]MH_I2C_Read... [23:49:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [23:49:31]Read from MH i2c: E2 [23:49:31]MH_I2C_Read... [23:49:31]Read from MH i2c: E2 D9 00 [23:49:31]MH_I2C_Read... [23:49:31]Read from MH i2c: E2 D9 00 A4 27 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:49:32]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:49:32]wFMCommunicate OK [23:49:32]SAM_PROTO_GetShiftData done [23:49:32]requested_item shift.sale.total_cash is exist - process it [23:49:32]requested_item shift.sale_refund.total is exist - process it [23:49:32]requested_item shift.sale_refund.total_cash is exist - process it [23:49:32]requested_item shift.buy.total is exist - process it [23:49:32]requested_item shift.buy.total_cash is exist - process it [23:49:32]produce_requested_data done [23:49:32]produce_requested_data return {"fm.sale.total":148539918.00,"fm.sale_refund.total":9911591.00,"fm.buy.total":0.00,"shift.sale.total":465501.00,"shift.sale.total_cash":143352.00,"shift.sale_refund.total":6360.00,"shift.sale_refund.total_cash":6360.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:49:32]process_action_free get_value [23:49:32]json_value_free [23:49:32]json_value_free done [23:49:32]process_json_proto returns [23:49:32]Send response to host [23:49:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148539918.00,"fm.sale_refund.total":9911591.00,"fm.buy.total":0.00,"shift.sale.total":465501.00,"shift.sale.total_cash":143352.00,"shift.sale_refund.total":6360.00,"shift.sale_refund.total_cash":6360.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:49:32]free response buf [23:49:32]execute_script done [23:49:32]execute_script returns [23:49:32]free content buf [23:49:32]Sock 9.Close socket [23:49:32]Sock 9.Thread stoped [23:49:32]accept exits with 7 [23:49:32]New connection [23:49:32]New thread 3067239780 created [23:49:32]Thread 3067383140 joined [23:49:32]Waiting for new connection... [23:49:32] Sock 7.Parse request [23:49:32]Sock 7.Check first char [23:49:32]Sock 7.First char is OK [23:49:32]request: POST /json_proto HTTP/1.0 [23:49:32]Method: POST [23:49:32]URL: /json_proto [23:49:32]Method is POST - this is cgi request [23:49:32]url: /json_proto [23:49:32]query_string will be loaded in cgi processing [23:49:32]execute_cgi json_proto POST (null) [23:49:32]execute_cgi path=json_proto method=POST [23:49:32]POST find Content-Length [23:49:32]Host: 172.17.45.7:8080 [23:49:32]Content-Length: 251 [23:49:32]Content-Type: application/json [23:49:32] [23:49:32]POST finish read [23:49:32]Found Content-Length = 251 [23:49:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:32]execute_script... [23:49:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:32]POST & json_proto [23:49:32]process_json_proto [23:49:32]json parsed OK: [23:49:32]protocol is kg_v1.0 [23:49:32]action value=x_report [23:49:32]process_action x_report [23:49:32]cmd_x_report [23:49:32]MH_GetDate [23:49:32]Write to MH i2c: F0 00 00 A5 27 BB [23:49:32]Write i2c OK [23:49:32]MH_I2C_Read... [23:49:32]Read from MH i2c: F0 [23:49:32]MH_I2C_Read... [23:49:32]Read from MH i2c: F0 09 00 [23:49:32]MH_I2C_Read... [23:49:32]Read from MH i2c: F0 09 00 A5 27 00 0E D9 A6 66 90 0F 3E 66 FA [23:49:32]GetLastDocTimeStamp 1722209531 [23:49:32]current date 1722210574 [23:49:32]FM_GetShiftState [23:49:32]SAM_PROTO_GetShiftState [23:49:32]wFMCommunicate request_size=4 [23:49:32]MH_SAM_APDU [23:49:32]CAPDU: 80 13 01 00 [23:49:32]Write to MH i2c: E2 08 00 A6 27 80 13 01 00 00 00 00 00 4A [23:49:32]Write i2c OK [23:49:32]MH_I2C_Read... [23:49:32]Read from MH i2c: E2 [23:49:32]MH_I2C_Read... [23:49:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:32]Read from MH i2c: E2 0E 00 [23:49:32]MH_I2C_Read... [23:49:32]Read from MH i2c: E2 0E 00 A6 27 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 21 [23:49:32]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [23:49:32]wFMCommunicate OK [23:49:32]SAM_PROTO_GetShiftState done [23:49:32]FM_GetShiftState done [23:49:32]KKMCreateXReportDocument [23:49:32]Load OK [23:49:32]Malloc new data [23:49:32]MH_GetDate [23:49:32]Write to MH i2c: F0 00 00 A7 27 BD [23:49:32]Write i2c OK [23:49:32]MH_I2C_Read... [23:49:32]Read from MH i2c: F0 [23:49:32]MH_I2C_Read... [23:49:32]Read from MH i2c: F0 09 00 [23:49:32]MH_I2C_Read... [23:49:32]Read from MH i2c: F0 09 00 A7 27 00 0F D9 A6 66 90 0F 3E 66 FD [23:49:32]Malloc new data [23:49:32]Malloc new data [23:49:32]wFMCommunicate request_size=4 [23:49:32]MH_SAM_APDU [23:49:32]CAPDU: 80 11 00 00 [23:49:32]Write to MH i2c: E2 08 00 A8 27 80 11 00 00 00 00 00 00 49 [23:49:32]Write i2c OK [23:49:32]MH_I2C_Read... [23:49:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:32]Read from MH i2c: E2 [23:49:32]MH_I2C_Read... [23:49:32]Read from MH i2c: E2 17 00 [23:49:32]MH_I2C_Read... [23:49:32]Read from MH i2c: E2 17 00 A8 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A4 [23:49:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:49:32]wFMCommunicate OK [23:49:32]SAM_PROTO_GetFieldsCounters [23:49:32]wFMCommunicate request_size=4 [23:49:32]MH_SAM_APDU [23:49:32]CAPDU: 80 13 00 00 [23:49:32]Write to MH i2c: E2 08 00 A9 27 80 13 00 00 00 00 00 00 4C [23:49:32]Write i2c OK [23:49:32]MH_I2C_Read... [23:49:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:32]Read from MH i2c: E2 [23:49:32]MH_I2C_Read... [23:49:32]Read from MH i2c: E2 62 00 [23:49:32]MH_I2C_Read... [23:49:32]Read from MH i2c: E2 62 00 A9 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5E CF 01 00 0E 04 04 00 B1 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 BF [23:49:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5E CF 01 00 0E 04 04 00 B1 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 [23:49:32]wFMCommunicate OK [23:49:32]SAM_PROTO_GetFieldsCounters done [23:49:32]Malloc new data [23:49:32]Malloc new data [23:49:32]Malloc new data [23:49:32]KKMCreateXReportDocument OK [23:49:32]KKMSetXReportData OK [23:49:32]KKMPrepareXReportFMData [23:49:32]SAM_PROTO_GetShiftData [23:49:32]wFMCommunicate request_size=4 [23:49:32]MH_SAM_APDU [23:49:32]CAPDU: 80 13 02 00 [23:49:32]Write to MH i2c: E2 08 00 AA 27 80 13 02 00 00 00 00 00 4F [23:49:32]Write i2c OK [23:49:32]MH_I2C_Read... [23:49:33]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:49:33]Read from MH i2c: E2 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: E2 FD 00 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: E2 FD 00 AA 27 00 BC 04 AA 04 B8 04 6E 04 04 00 23 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 54 4C C6 02 70 04 03 00 E0 BC DA 72 04 04 00 74 8F EB 01 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 C2 71 4B 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 69 49 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 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 60 B4 09 70 04 03 00 60 B4 09 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 E5 07 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 D5 [23:49:33]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 23 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 54 4C C6 02 70 04 03 00 E0 BC DA 72 04 04 00 74 8F EB 01 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 C2 71 4B 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 69 49 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 OFD Sender: No OFD packet to send [23:49:33]00 EF 03 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 08 00 00 00 B1 04 03 00 60 B4 09 70 04 03 00 60 B4 09 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 E5 07 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [23:49:33]wFMCommunicate OK [23:49:33]wFMCommunicate request_size=4 [23:49:33]MH_SAM_APDU [23:49:33]CAPDU: 80 17 00 00 [23:49:33]Write to MH i2c: E2 08 00 AB 27 80 17 00 00 00 00 00 00 52 [23:49:33]Write i2c OK [23:49:33]MH_I2C_Read... [23:49:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:33]Read from MH i2c: E2 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: E2 FD 00 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: E2 FD 00 AB 27 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0E [23:49:33]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:33]wFMCommunicate OK [23:49:33]wFMCommunicate request_size=4 [23:49:33]MH_SAM_APDU [23:49:33]CAPDU: 80 17 00 00 [23:49:33]Write to MH i2c: E2 08 00 AC 27 80 17 00 00 00 00 00 00 53 [23:49:33]Write i2c OK [23:49:33]MH_I2C_Read... [23:49:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:34]Read from MH i2c: E2 [23:49:34]MH_I2C_Read... [23:49:34]Read from MH i2c: E2 FD 00 [23:49:34]MH_I2C_Read... [23:49:34]Read from MH i2c: E2 FD 00 AC 27 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7C [23:49:34]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:34]wFMCommunicate OK [23:49:34]wFMCommunicate request_size=4 [23:49:34]MH_SAM_APDU [23:49:34]CAPDU: 80 17 00 00 [23:49:34]Write to MH i2c: E2 08 00 AD 27 80 17 00 00 00 00 00 00 54 [23:49:34]Write i2c OK [23:49:34]MH_I2C_Read... [23:49:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:34]Read from MH i2c: E2 [23:49:34]MH_I2C_Read... [23:49:34]Read from MH i2c: E2 FD 00 [23:49:34]MH_I2C_Read... [23:49:34]Read from MH i2c: E2 FD 00 AD 27 00 03 00 00 EF 03 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 90 00 D5 [23:49:34]RAPDU: 03 00 00 EF 03 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 90 00 [23:49:34]wFMCommunicate OK [23:49:34]wFMCommunicate request_size=4 [23:49:34]MH_SAM_APDU [23:49:34]CAPDU: 80 17 00 00 [23:49:34]Write to MH i2c: E2 08 00 AE 27 80 17 00 00 00 00 00 00 55 [23:49:34]Write i2c OK [23:49:34]MH_I2C_Read... [23:49:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [23:49:35]Read from MH i2c: E2 [23:49:35]MH_I2C_Read... [23:49:35]Read from MH i2c: E2 D9 00 [23:49:35]MH_I2C_Read... [23:49:35]Read from MH i2c: E2 D9 00 AE 27 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:49:35]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:49:35]wFMCommunicate OK [23:49:35]SAM_PROTO_GetShiftData done [23:49:35]1194 (1208) - счетчики итогов смены [23:49:35] 1134 (4) - 291 - количество чеков со всеми признаками расчетов [23:49:35] 1129 (158) - счетчики операций «приход» [23:49:35] 1135 (4) - 283 - количество чеков по признаку расчетов [23:49:35] 1201 (4) - 465501.00 - общая итоговая сумма в чеках [23:49:35] 1136 (3) - 143352.00 - итоговая сумма в чеках наличными [23:49:35] 1138 (4) - 322149.00 - итоговая сумма в чеках безналичными [23:49:35] 1024 (123) - суммы налогов [23:49:35] 1006 (9) - суммы НДС [23:49:35] 1010 (1) - 0% - код ставки НДС [23:49:35] 1011 (0) - 0.00 - сумма НДС по ставке [23:49:35] 1006 (12) - суммы НДС [23:49:35] 1010 (1) - 12% - код ставки НДС [23:49:35] 1011 (3) - 49443.22 - сумма НДС по ставке [23:49:35] 1007 (9) - суммы НСП [23:49:35] 1014 (1) - 0% - код ставки НСП [23:49:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:35] 1007 (12) - суммы НСП [23:49:35] 1014 (1) - 1% - код ставки НСП [23:49:35] 1015 (3) - 4120.09 - сумма НСП по ставке [23:49:35] 1007 (9) - суммы НСП [23:49:35] 1014 (1) - 2% - код ставки НСП [23:49:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:35] 1007 (9) - суммы НСП [23:49:35] 1014 (1) - 3% - код ставки НСП [23:49:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:35] 1007 (9) - суммы НСП [23:49:35] 1014 (1) - 5% - код ставки НСП [23:49:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:35] 1007 (9) - суммы НСП [23:49:35] 1014 (1) - 0,50% - код ставки НСП [23:49:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:35] 1007 (9) - суммы НСП [23:49:35] 1014 (1) - 1,50% - код ставки НСП [23:49:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:35] 1130 (152) - счетчики операций «возврат прихода» [23:49:35] 1135 (4) - 8 - количество чеков по признаку расчетов [23:49:35] 1201 (3) - 6360.00 - общая итоговая сумма в чеках [23:49:35] 1136 (3) - 6360.00 - итоговая сумма в чеках наличными [23:49:35] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:49:35] 1024 (122) - суммы налогов [23:49:35] 1006 (9) - суммы НДС [23:49:35] 1010 (1) - 0% - код ставки НДС [23:49:35] 1011 (0) - 0.00 - сумма НДС по ставке [23:49:35] 1006 (12) - суммы НДС [23:49:35] 1010 (1) - 12% - код ставки НДС [23:49:35] 1011 (3) - 675.57 - сумма НДС по ставке [23:49:35] 1007 (9) - суммы НСП [23:49:35] 1014 (1) - 0% - код ставки НСП [23:49:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:35] 1007 (11) - суммы НСП [23:49:35] 1014 (1) - 1% - код ставки НСП [23:49:35] 1015 (2) - 56.29 - сумма НСП по ставке [23:49:35] 1007 (9) - суммы НСП [23:49:35] 1014 (1) - 2% - код ставки НСП [23:49:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:35] 1007 (9) - суммы НСП [23:49:35] 1014 (1) - 3% - код ставки НСП [23:49:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:35] 1007 (9) - суммы НСП [23:49:35] 1014 (1) - 5% - код ставки НСП [23:49:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:35] 1007 (9) - суммы НСП [23:49:35] 1014 (1) - 0,50% - код ставки НСП [23:49:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:35] 1007 (9) - суммы НСП [23:49:35] 1014 (1) - 1,50% - код ставки НСП [23:49:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:35] 1131 (141) - счетчики операций «расход» [23:49:35] 1135 (4) - 0 - количество чеков по признаку расчетов [23:49:35] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:49:35] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:49:35] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:49:35] 1024 (117) - суммы налогов [23:49:35] 1006 (9) - суммы НДС [23:49:35] 1010 (1) - 0% - код ставки НДС [23:49:35] 1011 (0) - 0.00 - сумма НДС по ставке [23:49:35] 1006 (9) - суммы НДС [23:49:35] 1010 (1) - 12% - код ставки НДС [23:49:35] 1011 (0) - 0.00 - сумма НДС по ставке [23:49:35] 1007 (9) - суммы НСП [23:49:35] 1014 (1) - 0% - код ставки НСП [23:49:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:35] 1007 (9) - суммы НСП [23:49:35] 1014 (1) - 1% - код ставки НСП [23:49:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:35] 1007 (9) - суммы НСП [23:49:35] 1014 (1) - 2% - код ставки НСП [23:49:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:35] 1007 (9) - суммы НСП [23:49:35] 1014 (1) - 3% - код ставки НСП [23:49:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:35] 1007 (9) - суммы НСП [23:49:35] 1014 (1) - 5% - код ставки НСП [23:49:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:35] 1007 (9) - суммы НСП [23:49:35] 1014 (1) - 0,50% - код ставки НСП [23:49:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:35] 1007 (9) - суммы НСП [23:49:35] 1014 (1) - 1,50% - код ставки НСП [23:49:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:35] 1132 (141) - счетчики операций «возврат расхода» [23:49:35] 1135 (4) - 0 - количество чеков по признаку расчетов [23:49:35] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:49:35] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:49:35] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:49:35] 1024 (117) - суммы налогов [23:49:35] 1006 (9) - суммы НДС [23:49:35] 1010 (1) - 0% - код ставки НДС [23:49:35] 1011 (0) - 0.00 - сумма НДС по ставке [23:49:35] 1006 (9) - суммы НДС [23:49:35] 1010 (1) - 12% - код ставки НДС [23:49:35] 1011 (0) - 0.00 - сумма НДС по ставке [23:49:35] 1007 (9) - суммы НСП [23:49:35] 1014 (1) - 0% - код ставки НСП [23:49:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:35] 1007 (9) - суммы НСП [23:49:35] 1014 (1) - 1% - код ставки НСП [23:49:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:35] 1007 (9) - суммы НСП [23:49:35] 1014 (1) - 2% - код ставки НСП [23:49:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:35] 1007 (9) - суммы НСП [23:49:35] 1014 (1) - 3% - код ставки НСП [23:49:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:35] 1007 (9) - суммы НСП [23:49:35] 1014 (1) - 5% - код ставки НСП [23:49:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:35] 1007 (9) - суммы НСП [23:49:35] 1014 (1) - 0,50% - код ставки НСП [23:49:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:35] 1007 (9) - суммы НСП [23:49:35] 1014 (1) - 1,50% - код ставки НСП [23:49:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:35] 1133 (588) - - счетчики коррекции - не используются [23:49:35]SetTLVBufToDocument [23:49:35]Processing tag 1194 (04AA) [23:49:35]Load OK [23:49:35]SetTLVBufToDocument [23:49:35]Processing tag 1134 (046E) [23:49:35]Malloc new data [23:49:35]Processing tag 1129 (0469) [23:49:35]Load OK [23:49:35]SetTLVBufToDocument [23:49:35]Processing tag 1135 (046F) [23:49:35]Malloc new data [23:49:35]Processing tag 1201 (04B1) [23:49:35]Malloc new data [23:49:35]Processing tag 1136 (0470) [23:49:35]Malloc new data [23:49:35]Processing tag 1138 (0472) [23:49:35]Malloc new data [23:49:35]Processing tag 1024 (0400) [23:49:35]Load OK [23:49:35]SetTLVBufToDocument [23:49:35]Processing tag 1006 (03EE) [23:49:35]Load OK [23:49:35]SetTLVBufToDocument [23:49:35]Processing tag 1010 (03F2) [23:49:35]Malloc new data [23:49:35]Processing tag 1011 (03F3) [23:49:35]Malloc new data [23:49:35]SetTLVBufToDocument err=0 [23:49:35]Processing tag 1006 (03EE) [23:49:35]Load OK [23:49:35]SetTLVBufToDocument [23:49:35]Processing tag 1010 (03F2) [23:49:35]Malloc new data [23:49:35]Processing tag 1011 (03F3) [23:49:35]Malloc new data [23:49:35]SetTLVBufToDocument err=0 [23:49:35]Processing tag 1007 (03EF) [23:49:35]Load OK [23:49:35]SetTLVBufToDocument [23:49:35]Processing tag 1014 (03F6) [23:49:35]Malloc new data [23:49:35]Processing tag 1015 (03F7) [23:49:35]Malloc new data [23:49:35]SetTLVBufToDocument err=0 [23:49:35]Processing tag 1007 (03EF) [23:49:35]Load OK [23:49:35]SetTLVBufToDocument [23:49:35]Processing tag 1014 (03F6) [23:49:35]Malloc new data [23:49:35]Processing tag 1015 (03F7) [23:49:35]Malloc new data [23:49:35]SetTLVBufToDocument err=0 [23:49:35]Processing tag 1007 (03EF) [23:49:35]Load OK [23:49:35]SetTLVBufToDocument [23:49:35]Processing tag 1014 (03F6) [23:49:35]Malloc new data [23:49:35]Processing tag 1015 (03F7) [23:49:35]Malloc new data [23:49:35]SetTLVBufToDocument err=0 [23:49:35]Processing tag 1007 (03EF) [23:49:35]Load OK [23:49:35]SetTLVBufToDocument [23:49:35]Processing tag 1014 (03F6) [23:49:35]Malloc new data [23:49:35]Processing tag 1015 (03F7) [23:49:35]Malloc new data [23:49:35]SetTLVBufToDocument err=0 [23:49:35]Processing tag 1007 (03EF) [23:49:35]Load OK [23:49:35]SetTLVBufToDocument [23:49:35]Processing tag 1014 (03F6) [23:49:35]Malloc new data [23:49:35]Processing tag 1015 (03F7) [23:49:35]Malloc new data [23:49:35]SetTLVBufToDocument err=0 [23:49:35]Processing tag 1007 (03EF) [23:49:35]Load OK [23:49:35]SetTLVBufToDocument [23:49:35]Processing tag 1014 (03F6) [23:49:35]Malloc new data [23:49:35]Processing tag 1015 (03F7) [23:49:35]Malloc new data [23:49:35]SetTLVBufToDocument err=0 [23:49:35]Processing tag 1007 (03EF) [23:49:35]Load OK [23:49:35]SetTLVBufToDocument [23:49:35]Processing tag 1014 (03F6) [23:49:35]Malloc new data [23:49:35]Processing tag 1015 (03F7) [23:49:35]Malloc new data [23:49:35]SetTLVBufToDocument err=0 [23:49:35]SetTLVBufToDocument err=0 [23:49:35]SetTLVBufToDocument err=0 [23:49:35]Processing tag 1130 (046A) [23:49:35]Load OK [23:49:35]SetTLVBufToDocument [23:49:35]Processing tag 1135 (046F) [23:49:35]Malloc new data [23:49:35]Processing tag 1201 (04B1) [23:49:35]Malloc new data [23:49:35]Processing tag 1136 (0470) [23:49:35]Malloc new data [23:49:35]Processing tag 1138 (0472) [23:49:35]Malloc new data [23:49:35]Processing tag 1024 (0400) [23:49:35]Load OK [23:49:35]SetTLVBufToDocument [23:49:35]Processing tag 1006 (03EE) [23:49:35]Load OK [23:49:35]SetTLVBufToDocument [23:49:35]Processing tag 1010 (03F2) [23:49:35]Malloc new data [23:49:35]Processing tag 1011 (03F3) [23:49:35]Malloc new data [23:49:35]SetTLVBufToDocument err=0 [23:49:35]Processing tag 1006 (03EE) [23:49:35]Load OK [23:49:35]SetTLVBufToDocument [23:49:35]Processing tag 1010 (03F2) [23:49:35]Malloc new data [23:49:35]Processing tag 1011 (03F3) [23:49:35]Malloc new data [23:49:35]SetTLVBufToDocument err=0 [23:49:35]Processing tag 1007 (03EF) [23:49:35]Load OK [23:49:35]SetTLVBufToDocument [23:49:36]Processing tag 1014 (03F6) [23:49:36]Malloc new data [23:49:36]Processing tag 1015 (03F7) [23:49:36]Malloc new data [23:49:36]SetTLVBufToDocument err=0 [23:49:36]Processing tag 1007 (03EF) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1014 (03F6) [23:49:36]Malloc new data [23:49:36]Processing tag 1015 (03F7) [23:49:36]Malloc new data [23:49:36]SetTLVBufToDocument err=0 [23:49:36]Processing tag 1007 (03EF) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1014 (03F6) [23:49:36]Malloc new data [23:49:36]Processing tag 1015 (03F7) [23:49:36]Malloc new data [23:49:36]SetTLVBufToDocument err=0 [23:49:36]Processing tag 1007 (03EF) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1014 (03F6) [23:49:36]Malloc new data [23:49:36]Processing tag 1015 (03F7) [23:49:36]Malloc new data [23:49:36]SetTLVBufToDocument err=0 [23:49:36]Processing tag 1007 (03EF) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1014 (03F6) [23:49:36]Malloc new data [23:49:36]Processing tag 1015 (03F7) [23:49:36]Malloc new data [23:49:36]SetTLVBufToDocument err=0 [23:49:36]Processing tag 1007 (03EF) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1014 (03F6) [23:49:36]Malloc new data [23:49:36]Processing tag 1015 (03F7) [23:49:36]Malloc new data [23:49:36]SetTLVBufToDocument err=0 [23:49:36]Processing tag 1007 (03EF) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1014 (03F6) [23:49:36]Malloc new data [23:49:36]Processing tag 1015 (03F7) [23:49:36]Malloc new data [23:49:36]SetTLVBufToDocument err=0 [23:49:36]SetTLVBufToDocument err=0 [23:49:36]SetTLVBufToDocument err=0 [23:49:36]Processing tag 1131 (046B) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1135 (046F) [23:49:36]Malloc new data [23:49:36]Processing tag 1201 (04B1) [23:49:36]Malloc new data [23:49:36]Processing tag 1136 (0470) [23:49:36]Malloc new data [23:49:36]Processing tag 1138 (0472) [23:49:36]Malloc new data [23:49:36]Processing tag 1024 (0400) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1006 (03EE) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1010 (03F2) [23:49:36]Malloc new data [23:49:36]Processing tag 1011 (03F3) [23:49:36]Malloc new data [23:49:36]SetTLVBufToDocument err=0 [23:49:36]Processing tag 1006 (03EE) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1010 (03F2) [23:49:36]Malloc new data [23:49:36]Processing tag 1011 (03F3) [23:49:36]Malloc new data [23:49:36]SetTLVBufToDocument err=0 [23:49:36]Processing tag 1007 (03EF) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1014 (03F6) [23:49:36]Malloc new data [23:49:36]Processing tag 1015 (03F7) [23:49:36]Malloc new data [23:49:36]SetTLVBufToDocument err=0 [23:49:36]Processing tag 1007 (03EF) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1014 (03F6) [23:49:36]Malloc new data [23:49:36]Processing tag 1015 (03F7) [23:49:36]Malloc new data [23:49:36]SetTLVBufToDocument err=0 [23:49:36]Processing tag 1007 (03EF) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1014 (03F6) [23:49:36]Malloc new data [23:49:36]Processing tag 1015 (03F7) [23:49:36]Malloc new data [23:49:36]SetTLVBufToDocument err=0 [23:49:36]Processing tag 1007 (03EF) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1014 (03F6) [23:49:36]Malloc new data [23:49:36]Processing tag 1015 (03F7) [23:49:36]Malloc new data [23:49:36]SetTLVBufToDocument err=0 [23:49:36]Processing tag 1007 (03EF) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1014 (03F6) [23:49:36]Malloc new data [23:49:36]Processing tag 1015 (03F7) [23:49:36]Malloc new data [23:49:36]SetTLVBufToDocument err=0 [23:49:36]Processing tag 1007 (03EF) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1014 (03F6) [23:49:36]Malloc new data [23:49:36]Processing tag 1015 (03F7) [23:49:36]Malloc new data [23:49:36]SetTLVBufToDocument err=0 [23:49:36]Processing tag 1007 (03EF) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1014 (03F6) [23:49:36]Malloc new data [23:49:36]Processing tag 1015 (03F7) [23:49:36]Malloc new data [23:49:36]SetTLVBufToDocument err=0 [23:49:36]SetTLVBufToDocument err=0 [23:49:36]SetTLVBufToDocument err=0 [23:49:36]Processing tag 1132 (046C) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1135 (046F) [23:49:36]Malloc new data [23:49:36]Processing tag 1201 (04B1) [23:49:36]Malloc new data [23:49:36]Processing tag 1136 (0470) [23:49:36]Malloc new data [23:49:36]Processing tag 1138 (0472) [23:49:36]Malloc new data [23:49:36]Processing tag 1024 (0400) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1006 (03EE) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1010 (03F2) [23:49:36]Malloc new data [23:49:36]Processing tag 1011 (03F3) [23:49:36]Malloc new data [23:49:36]SetTLVBufToDocument err=0 [23:49:36]Processing tag 1006 (03EE) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1010 (03F2) [23:49:36]Malloc new data [23:49:36]Processing tag 1011 (03F3) [23:49:36]Malloc new data [23:49:36]SetTLVBufToDocument err=0 [23:49:36]Processing tag 1007 (03EF) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1014 (03F6) [23:49:36]Malloc new data [23:49:36]Processing tag 1015 (03F7) [23:49:36]Malloc new data [23:49:36]SetTLVBufToDocument err=0 [23:49:36]Processing tag 1007 (03EF) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1014 (03F6) [23:49:36]Malloc new data [23:49:36]Processing tag 1015 (03F7) [23:49:36]Malloc new data [23:49:36]SetTLVBufToDocument err=0 [23:49:36]Processing tag 1007 (03EF) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1014 (03F6) [23:49:36]Malloc new data [23:49:36]Processing tag 1015 (03F7) [23:49:36]Malloc new data [23:49:36]SetTLVBufToDocument err=0 [23:49:36]Processing tag 1007 (03EF) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1014 (03F6) [23:49:36]Malloc new data [23:49:36]Processing tag 1015 (03F7) [23:49:36]Malloc new data [23:49:36]SetTLVBufToDocument err=0 [23:49:36]Processing tag 1007 (03EF) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1014 (03F6) [23:49:36]Malloc new data [23:49:36]Processing tag 1015 (03F7) [23:49:36]Malloc new data [23:49:36]SetTLVBufToDocument err=0 [23:49:36]Processing tag 1007 (03EF) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1014 (03F6) [23:49:36]Malloc new data [23:49:36]Processing tag 1015 (03F7) [23:49:36]Malloc new data [23:49:36]SetTLVBufToDocument err=0 [23:49:36]Processing tag 1007 (03EF) [23:49:36]Load OK [23:49:36]SetTLVBufToDocument [23:49:36]Processing tag 1014 (03F6) [23:49:36]Malloc new data [23:49:36]Processing tag 1015 (03F7) [23:49:36]Malloc new data [23:49:36]SetTLVBufToDocument err=0 [23:49:36]SetTLVBufToDocument err=0 [23:49:36]SetTLVBufToDocument err=0 [23:49:36]Processing tag 1133 (046D) [23:49:36]Malloc new data [23:49:36]SetTLVBufToDocument err=0 [23:49:36]SetTLVBufToDocument err=0 [23:49:36]Malloc new data [23:49:36]SAM_PROTO_GetFMData [23:49:36]wFMCommunicate request_size=4 [23:49:36]MH_SAM_APDU [23:49:36]CAPDU: 80 13 03 00 [23:49:36]Write to MH i2c: E2 08 00 AF 27 80 13 03 00 00 00 00 00 55 [23:49:36]Write i2c OK [23:49:36]MH_I2C_Read... [23:49:36]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:49:36]Read from MH i2c: E2 [23:49:36]MH_I2C_Read... [23:49:36]Read from MH i2c: E2 FD 00 [23:49:36]MH_I2C_Read... [23:49:36]Read from MH i2c: E2 FD 00 AF 27 00 C5 04 85 04 C1 04 6E 04 04 00 FC CB 01 00 69 04 A3 00 6F 04 04 00 72 BE 01 00 B1 04 05 00 78 ED 5D 75 03 70 04 05 00 98 B7 97 A7 02 72 04 04 00 E0 35 C6 CD 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 0C AF 0B 5E 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 50 2D D6 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 9C 00 6F 04 04 00 8A 0D 00 00 B1 04 04 00 3C E3 13 3B 70 04 04 00 3C E3 13 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 11 44 46 06 EF 03 09 90 00 73 [23:49:37]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 FC CB 01 00 69 04 A3 00 6F 04 04 00 72 BE 01 00 B1 04 05 00 78 ED 5D 75 03 70 04 05 00 98 B7 97 A7 02 72 04 04 00 E0 35 C6 CD 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 0C AF 0B 5E 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 50 2D D6 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 9C 00 6F 04 04 00 8A 0D 00 00 B1 04 04 00 3C E3 13 3B 70 04 04 00 3C E3 13 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 11 44 46 06 EF 03 09 90 00 [23:49:37]wFMCommunicate OK [23:49:37]wFMCommunicate request_size=4 [23:49:37]MH_SAM_APDU [23:49:37]CAPDU: 80 17 00 00 [23:49:37]Write to MH i2c: E2 08 00 B0 27 80 17 00 00 00 00 00 00 57 [23:49:37]Write i2c OK [23:49:37]MH_I2C_Read... [23:49:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:37]Read from MH i2c: E2 [23:49:37]MH_I2C_Read... [23:49:37]Read from MH i2c: E2 FD 00 [23:49:37]MH_I2C_Read... [23:49:37]Read from MH i2c: E2 FD 00 B0 27 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F DA 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 8B [23:49:37]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F DA 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:49:37]wFMCommunicate OK [23:49:37]wFMCommunicate request_size=4 [23:49:37]MH_SAM_APDU [23:49:37]CAPDU: 80 17 00 00 [23:49:37]Write to MH i2c: E2 08 00 B1 27 80 17 00 00 00 00 00 00 58 [23:49:37]Write i2c OK [23:49:37]MH_I2C_Read... [23:49:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:37]Read from MH i2c: E2 [23:49:37]MH_I2C_Read... [23:49:37]Read from MH i2c: E2 FD 00 [23:49:37]MH_I2C_Read... [23:49:37]Read from MH i2c: E2 FD 00 B1 27 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 6A [23:49:38]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:49:38]wFMCommunicate OK [23:49:38]wFMCommunicate request_size=4 [23:49:38]MH_SAM_APDU [23:49:38]CAPDU: 80 17 00 00 [23:49:38]Write to MH i2c: E2 08 00 B2 27 80 17 00 00 00 00 00 00 59 [23:49:38]Write i2c OK [23:49:38]MH_I2C_Read... [23:49:38]OFD Sender: No OFD packet to send [23:49:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:38]Read from MH i2c: E2 [23:49:38]MH_I2C_Read... [23:49:38]Read from MH i2c: E2 FD 00 [23:49:38]MH_I2C_Read... [23:49:38]Read from MH i2c: E2 FD 00 B2 27 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 E5 [23:49:38]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:49:38]wFMCommunicate OK [23:49:38]wFMCommunicate request_size=4 [23:49:38]MH_SAM_APDU [23:49:38]CAPDU: 80 17 00 00 [23:49:38]Write to MH i2c: E2 08 00 B3 27 80 17 00 00 00 00 00 00 5A [23:49:38]Write i2c OK [23:49:38]MH_I2C_Read... [23:49:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:49:39]Read from MH i2c: E2 [23:49:39]MH_I2C_Read... [23:49:39]Read from MH i2c: E2 E2 00 [23:49:39]MH_I2C_Read... [23:49:39]Read from MH i2c: E2 E2 00 B3 27 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 38 [23:49:39]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:49:39]wFMCommunicate OK [23:49:39]SAM_PROTO_GetFMData done [23:49:39]FM_GetFMData:85 04 C1 04 6E 04 04 00 FC CB 01 00 69 04 A3 00 6F 04 04 00 72 BE 01 00 B1 04 05 00 78 ED 5D 75 03 70 04 05 00 98 B7 97 A7 02 72 04 04 00 E0 35 C6 CD 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 0C AF 0B 5E 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 50 2D D6 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 9C 00 6F 04 04 00 8A 0D 00 00 B1 04 04 00 3C E3 13 3B 70 04 04 00 3C E3 13 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 11 44 46 06 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 1F DA 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:49:40]oper:6F 04 04 00 72 BE 01 00 B1 04 05 00 78 ED 5D 75 03 70 04 05 00 98 B7 97 A7 02 72 04 04 00 E0 35 C6 CD 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 0C AF 0B 5E 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 50 2D D6 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:49:40]total:78 ED 5D 75 03 [23:49:40]Malloc new data [23:49:40]oper:6F 04 04 00 8A 0D 00 00 B1 04 04 00 3C E3 13 3B 70 04 04 00 3C E3 13 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 11 44 46 06 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 1F DA 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:49:40]total:3C E3 13 3B [23:49:40]Malloc new data [23:49:40]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:49:40]total: [23:49:40]Malloc new data [23:49:40]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:49:40]total: [23:49:40]Malloc new data [23:49:40]KKMPrepareXReportFMData err=0 [23:49:40]Х отчет ИНН: 02508201610067 Кассир: Хошимов З. 28.07.2024 23:49 Смена: 266 РНМ: 0000000000092660 ЗНМ: 0300000044 СНО: Общий режим Всего чеков: 291 ИТОГИ ПРИХОД Чеков: 283 Общий итог: 465501.00 Итого наличными: 143352.00 Итого безнал.: 322149.00 НДС 0% : 0.00 НДС 12% : 49443.22 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 4120.09 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 8 Общий итог: 6360.00 Итого наличными: 6360.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 675.57 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 56.29 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 136992.00 НС Приход: 148539918.00 НС Возвр.Прихода: 9911591.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874939 [23:49:40]StoreToDocumentArchive [23:49:40]MH_GetDate [23:49:40]Write to MH i2c: F0 00 00 B4 27 CA [23:49:40]Write i2c OK [23:49:40]MH_I2C_Read... [23:49:40]Read from MH i2c: F0 [23:49:40]MH_I2C_Read... [23:49:40]Read from MH i2c: F0 09 00 [23:49:40]MH_I2C_Read... [23:49:40]Read from MH i2c: F0 09 00 B4 27 00 17 D9 A6 66 90 0F 3E 66 12 [23:49:40]shift 266 fd 1722210583 [23:49:40]Create dir for shift 0266 [23:49:40]save to /storage/0266/doc_1722210583 [23:49:40]save last doc name /storage/0266/doc_1722210583 to /storage/kkm_last_doc_name [23:49:40]save OK [23:49:40]Clear old archive folders... [23:49:40]NVStorageSaveData kkm_last_timestamp [23:49:40]File name is /storage/kkm_last_timestamp [23:49:40]Write 4 bytes [23:49:40]NVStorageSaveData done [23:49:40]ExternCall_PrintAddStr [23:49:40]wPrintStart [23:49:40]Write to MH i2c: 01 00 00 B5 27 DC [23:49:40]Write i2c OK [23:49:40]MH_I2C_Read... [23:49:40]Read from MH i2c: 01 [23:49:40]MH_I2C_Read... [23:49:40]Read from MH i2c: 01 07 00 [23:49:40]MH_I2C_Read... [23:49:40]Read from MH i2c: 01 07 00 B5 27 00 00 00 00 00 FF 0F F1 [23:49:40]RasterBufferAndPrint [23:49:40]line Х отчет [23:49:40]line ИНН: 02508201610067 [23:49:40]line Кассир: Хошимов З. [23:49:40]line 28.07.2024 23:49 [23:49:40]line Смена: 266 [23:49:40]line РНМ: 0000000000092660 [23:49:40]line ЗНМ: 0300000044 [23:49:40]line СНО: Общий режим [23:49:40]line Всего чеков: 291 [23:49:40]line ИТОГИ ПРИХОД [23:49:40]line Чеков: 283 [23:49:40]line Общий итог: 465501.00 [23:49:40]line Итого наличными: 143352.00 [23:49:40]line Итого безнал.: 322149.00 [23:49:40]line НДС 0% : 0.00 [23:49:40]line НДС 12% : 49443.22 [23:49:40]line НСП 0% : 0.00 [23:49:40]line НСП 1,50% : 0.00 [23:49:40]line НСП 0,50% : 0.00 [23:49:40]line НСП 5% : 0.00 [23:49:40]line НСП 3% : 0.00 [23:49:40]line НСП 2% : 0.00 [23:49:40]line НСП 1% : 4120.09 [23:49:40]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:49:40]line Чеков: 8 [23:49:40]line Общий итог: 6360.00 [23:49:40]line Итого наличными: 6360.00 [23:49:40]line Итого безнал.: 0.00 [23:49:40]line НДС 0% : 0.00 [23:49:40]line НДС 12% : 675.57 [23:49:40]line НСП 0% : 0.00 [23:49:40]line НСП 1,50% : 0.00 [23:49:40]line НСП 0,50% : 0.00 [23:49:40]line НСП 5% : 0.00 [23:49:40]line НСП 3% : 0.00 [23:49:40]line НСП 2% : 0.00 [23:49:40]line НСП 1% : 56.29 [23:49:40]line ИТОГИ РАСХОД [23:49:40]line Чеков: 0 [23:49:40]line Общий итог: 0.00 [23:49:40]line Итого наличными: 0.00 [23:49:40]line Итого безнал.: 0.00 [23:49:40]line НДС 0% : 0.00 [23:49:40]line НДС 12% : 0.00 [23:49:40]line НСП 0% : 0.00 [23:49:40]line НСП 1,50% : 0.00 [23:49:40]line НСП 0,50% : 0.00 [23:49:40]line НСП 5% : 0.00 [23:49:40]line НСП 3% : 0.00 [23:49:40]line НСП 2% : 0.00 [23:49:40]line НСП 1% : 0.00 [23:49:40]line ИТОГИ ВОЗВРАТ РАСХОДА [23:49:40]line Чеков: 0 [23:49:40]line Общий итог: 0.00 [23:49:40]line Итого наличными: 0.00 [23:49:40]line Итого безнал.: 0.00 [23:49:40]line НДС 0% : 0.00 [23:49:40]line НДС 12% : 0.00 [23:49:40]line НСП 0% : 0.00 [23:49:40]line НСП 1,50% : 0.00 [23:49:40]line НСП 0,50% : 0.00 [23:49:40]line НСП 5% : 0.00 [23:49:40]line НСП 3% : 0.00 [23:49:40]line НСП 2% : 0.00 [23:49:40]line НСП 1% : 0.00 [23:49:40]line Сумма внесений: 0.00 [23:49:40]line Сумма выплат: 0.00 [23:49:40]line Нал. в кассе: 136992.00 [23:49:40]line НС Приход: 148539918.00 [23:49:40]line НС Возвр.Прихода: 9911591.00 [23:49:40]line НС Расход: 0.00 [23:49:40]line НС Возвр.Расхода: 0.00 [23:49:40]line ФМ: 0000000000874939 [23:49:40]written 0, free lines is 4095 [23:49:41]Write to MH i2c: 01 00 00 00 28 28 [23:49:41]Write i2c OK [23:49:41]MH_I2C_Read... [23:49:41]Read from MH i2c: 01 [23:49:41]MH_I2C_Read... [23:49:41]Read from MH i2c: 01 07 00 [23:49:41]MH_I2C_Read... [23:49:41]Read from MH i2c: 01 07 00 00 28 00 00 00 00 00 CD 0A 06 [23:49:41]RasterBufferAndPrint [23:49:41]line [23:49:41]line [23:49:41]line [23:49:41]line [23:49:41]line [23:49:41]written 0, free lines is 2802 [23:49:41]MH_Cut [23:49:41]Write to MH i2c: D1 01 00 07 28 01 01 [23:49:41]Write i2c OK [23:49:41]MH_I2C_Read... [23:49:41]Read from MH i2c: D1 [23:49:41]MH_I2C_Read... [23:49:41]Read from MH i2c: D1 01 00 [23:49:41]MH_I2C_Read... [23:49:41]Read from MH i2c: D1 01 00 07 28 00 00 [23:49:41]Write to MH i2c: 01 00 00 08 28 30 [23:49:41]Write i2c OK [23:49:41]MH_I2C_Read... [23:49:42]*** Cut start [23:49:42]*** Partial cut [23:49:42]*** CUTSNS_PIN = 1 [23:49:42]*** CUTSNS_PIN = 0 [23:49:42]*** Brake cut motor [23:49:43]Read from MH i2c: 01 [23:49:43]MH_I2C_Read... [23:49:43]*** Stop cut motor [23:49:43]*** Cut end [23:49:43]Read from MH i2c: 01 07 00 [23:49:43]MH_I2C_Read... [23:49:43]Read from MH i2c: 01 07 00 08 28 00 00 00 00 00 FF 0F 45 [23:49:43]process_action x_report done [23:49:43]requested_data is exist [23:49:43]produce_requested_data [23:49:43]requested_item fd.num is exist - process it [23:49:43]SAM_PROTO_GetFieldsCounters [23:49:43]wFMCommunicate request_size=4 [23:49:43]MH_SAM_APDU [23:49:43]CAPDU: 80 13 00 00 [23:49:43]Write to MH i2c: E2 08 00 09 28 80 13 00 00 00 00 00 00 AD [23:49:43]Write i2c OK [23:49:43]MH_I2C_Read... [23:49:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:43]Read from MH i2c: E2 [23:49:43]MH_I2C_Read... [23:49:43]Read from MH i2c: E2 62 00 [23:49:43]MH_I2C_Read... [23:49:43]Read from MH i2c: E2 62 00 09 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5E CF 01 00 0E 04 04 00 B1 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 20 [23:49: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5E CF 01 00 0E 04 04 00 B1 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 [23:49:43]wFMCommunicate OK [23:49:43]SAM_PROTO_GetFieldsCounters done [23:49:43]requested_item shift.num is exist - process it [23:49:43]requested_item shift.opened is exist - process it [23:49:43]req_shift_opened [23:49:43]FM_GetShiftState [23:49:43]SAM_PROTO_GetShiftState [23:49:43]wFMCommunicate request_size=4 [23:49:43]MH_SAM_APDU [23:49:43]CAPDU: 80 13 01 00 [23:49:43]Write to MH i2c: E2 08 00 0A 28 80 13 01 00 00 00 00 00 AF [23:49:43]Write i2c OK [23:49:43]MH_I2C_Read... [23:49:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:43]Read from MH i2c: E2 [23:49:43]MH_I2C_Read... [23:49:43]Read from MH i2c: E2 0E 00 [23:49:43]MH_I2C_Read... [23:49:43]Read from MH i2c: E2 0E 00 0A 28 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 86 [23:49:43]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [23:49:43]wFMCommunicate OK [23:49:43]SAM_PROTO_GetShiftState done [23:49:43]FM_GetShiftState done [23:49:43]req_shift_opened done [23:49:43]requested_item shift.open_date is exist - process it [23:49:43]req_shift_open_date [23:49:43]req_shift_open_date done [23:49:43]produce_requested_data done [23:49:43]produce_requested_data return {"fd.num":118622,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [23:49:43]process_action_free x_report [23:49:43]json_value_free [23:49:43]json_value_free done [23:49:43]process_json_proto returns [23:49:43]Send response to host [23:49:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":118622,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [23:49:43]free response buf [23:49:43]execute_script done [23:49:43]execute_script returns [23:49:43]free content buf [23:49:43]Sock 7.Close socket [23:49:43]Sock 7.Thread stoped [23:49:43]OFD Sender: No OFD packet to send [23:49:48]OFD Sender: No OFD packet to send [23:49:53]OFD Sender: No OFD packet to send [23:49:58]OFD Sender: No OFD packet to send [23:50:03]OFD Sender: No OFD packet to send [23:50:08]accept exits with 9 [23:50:08]New connection [23:50:08]New thread 3067383140 created [23:50:08]Thread 3067239780 joined [23:50:08]Waiting for new connection... [23:50:08] Sock 9.Parse request [23:50:08]Sock 9.Check first char [23:50:08]Sock 9.First char is OK [23:50:08]request: POST /json_proto HTTP/1.0 [23:50:08]Method: POST [23:50:08]URL: /json_proto [23:50:08]Method is POST - this is cgi request [23:50:08]url: /json_proto [23:50:08]query_string will be loaded in cgi processing [23:50:08]execute_cgi json_proto POST (null) [23:50:08]execute_cgi path=json_proto method=POST [23:50:08]POST find Content-Length [23:50:08]Host: 172.17.45.7:8080 [23:50:08]Content-Length: 215 [23:50:08]Content-Type: application/json [23:50:08] [23:50:08]POST finish read [23:50:08]Found Content-Length = 215 [23:50:08]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:50:08]execute_script... [23:50:08]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:50:08]POST & json_proto [23:50:08]process_json_proto [23:50:08]json parsed OK: [23:50:08]protocol is kg_v1.0 [23:50:08]action value=get_value [23:50:08]process_action get_value [23:50:08]cmd_get_value [23:50:08]process_action get_value done [23:50:08]requested_data is exist [23:50:08]produce_requested_data [23:50:08]requested_item kkm.sn is exist - process it [23:50:08]requested_item kkm.ver is exist - process it [23:50:08]requested_item fm.sn is exist - process it [23:50:08]wFMCommunicate request_size=4 [23:50:08]MH_SAM_APDU [23:50:08]CAPDU: 80 11 00 00 [23:50:08]Write to MH i2c: E2 08 00 0B 28 80 11 00 00 00 00 00 00 AD [23:50:08]Write i2c OK [23:50:08]MH_I2C_Read... [23:50:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:08]Read from MH i2c: E2 [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: E2 17 00 [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: E2 17 00 0B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 08 [23:50:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:50:08]wFMCommunicate OK [23:50:08]requested_item fd.num is exist - process it [23:50:08]SAM_PROTO_GetFieldsCounters [23:50:08]wFMCommunicate request_size=4 [23:50:08]MH_SAM_APDU [23:50:08]CAPDU: 80 13 00 00 [23:50:08]Write to MH i2c: E2 08 00 0C 28 80 13 00 00 00 00 00 00 B0 [23:50:08]Write i2c OK [23:50:08]MH_I2C_Read... [23:50:08]OFD Sender: No OFD packet to send [23:50:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:08]Read from MH i2c: E2 [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: E2 62 00 [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: E2 62 00 0C 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5E CF 01 00 0E 04 04 00 B1 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 23 [23:50:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5E CF 01 00 0E 04 04 00 B1 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 [23:50:08]wFMCommunicate OK [23:50:08]SAM_PROTO_GetFieldsCounters done [23:50:08]requested_item shift.num is exist - process it [23:50:08]requested_item shift.opened is exist - process it [23:50:08]req_shift_opened [23:50:08]FM_GetShiftState [23:50:08]SAM_PROTO_GetShiftState [23:50:08]wFMCommunicate request_size=4 [23:50:08]MH_SAM_APDU [23:50:08]CAPDU: 80 13 01 00 [23:50:08]Write to MH i2c: E2 08 00 0D 28 80 13 01 00 00 00 00 00 B2 [23:50:08]Write i2c OK [23:50:08]MH_I2C_Read... [23:50:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:08]Read from MH i2c: E2 [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: E2 0E 00 [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: E2 0E 00 0D 28 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 89 [23:50:08]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [23:50:08]wFMCommunicate OK [23:50:08]SAM_PROTO_GetShiftState done [23:50:08]FM_GetShiftState done [23:50:08]req_shift_opened done [23:50:08]requested_item shift.open_date is exist - process it [23:50:08]req_shift_open_date [23:50:08]req_shift_open_date done [23:50:08]produce_requested_data done [23:50:08]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118622,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [23:50:08]process_action_free get_value [23:50:08]json_value_free [23:50:08]json_value_free done [23:50:08]process_json_proto returns [23:50:08]Send response to host [23:50:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118622,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [23:50:08]free response buf [23:50:08]execute_script done [23:50:08]execute_script returns [23:50:08]free content buf [23:50:08]Sock 9.Close socket [23:50:08]Sock 9.Thread stoped [23:50:08]accept exits with 7 [23:50:08]New connection [23:50:08]New thread 3067239780 created [23:50:08]Thread 3067383140 joined [23:50:08]Waiting for new connection... [23:50:08] Sock 7.Parse request [23:50:08]Sock 7.Check first char [23:50:08]Sock 7.First char is OK [23:50:08]request: POST /json_proto HTTP/1.0 [23:50:08]Method: POST [23:50:08]URL: /json_proto [23:50:08]Method is POST - this is cgi request [23:50:08]url: /json_proto [23:50:08]query_string will be loaded in cgi processing [23:50:08]execute_cgi json_proto POST (null) [23:50:08]execute_cgi path=json_proto method=POST [23:50:08]POST find Content-Length [23:50:08]Host: 172.17.45.7:8080 [23:50:08]Content-Length: 331 [23:50:08]Content-Type: application/json [23:50:08] [23:50:08]POST finish read [23:50:08]Found Content-Length = 331 [23:50:08]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:50:08]execute_script... [23:50:08]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:50:08]POST & json_proto [23:50:08]process_json_proto [23:50:08]json parsed OK: [23:50:08]protocol is kg_v1.0 [23:50:08]action value=get_value [23:50:08]process_action get_value [23:50:08]cmd_get_value [23:50:08]process_action get_value done [23:50:08]requested_data is exist [23:50:08]produce_requested_data [23:50:08]requested_item fm.sale.total is exist - process it [23:50:08]SAM_PROTO_GetFMData [23:50:08]wFMCommunicate request_size=4 [23:50:08]MH_SAM_APDU [23:50:08]CAPDU: 80 13 03 00 [23:50:08]Write to MH i2c: E2 08 00 0E 28 80 13 03 00 00 00 00 00 B5 [23:50:08]Write i2c OK [23:50:08]MH_I2C_Read... [23:50:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:50:09]Read from MH i2c: E2 [23:50:09]MH_I2C_Read... [23:50:09]Read from MH i2c: E2 FD 00 [23:50:09]MH_I2C_Read... [23:50:09]Read from MH i2c: E2 FD 00 0E 28 00 C5 04 85 04 C1 04 6E 04 04 00 FC CB 01 00 69 04 A3 00 6F 04 04 00 72 BE 01 00 B1 04 05 00 78 ED 5D 75 03 70 04 05 00 98 B7 97 A7 02 72 04 04 00 E0 35 C6 CD 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 0C AF 0B 5E 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 50 2D D6 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 9C 00 6F 04 04 00 8A 0D 00 00 B1 04 04 00 3C E3 13 3B 70 04 04 00 3C E3 13 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 11 44 46 06 EF 03 09 90 00 D3 [23:50:09]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 FC CB 01 00 69 04 A3 00 6F 04 04 00 72 BE 01 00 B1 04 05 00 78 ED 5D 75 03 70 04 05 00 98 B7 97 A7 02 72 04 04 00 E0 35 C6 CD 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 0C AF 0B 5E 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 50 2D D6 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 9C 00 6F 04 04 00 8A 0D 00 00 B1 04 04 00 3C E3 13 3B 70 04 04 00 3C E3 13 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 11 44 46 06 EF 03 09 90 00 [23:50:09]wFMCommunicate OK [23:50:09]wFMCommunicate request_size=4 [23:50:09]MH_SAM_APDU [23:50:09]CAPDU: 80 17 00 00 [23:50:09]Write to MH i2c: E2 08 00 0F 28 80 17 00 00 00 00 00 00 B7 [23:50:09]Write i2c OK [23:50:09]MH_I2C_Read... [23:50:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:09]Read from MH i2c: E2 [23:50:09]MH_I2C_Read... [23:50:09]Read from MH i2c: E2 FD 00 [23:50:09]MH_I2C_Read... [23:50:09]Read from MH i2c: E2 FD 00 0F 28 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F DA 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 EB [23:50:09]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F DA 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:50:09]wFMCommunicate OK [23:50:09]wFMCommunicate request_size=4 [23:50:09]MH_SAM_APDU [23:50:09]CAPDU: 80 17 00 00 [23:50:09]Write to MH i2c: E2 08 00 10 28 80 17 00 00 00 00 00 00 B8 [23:50:09]Write i2c OK [23:50:09]MH_I2C_Read... [23:50:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:09]Read from MH i2c: E2 [23:50:09]MH_I2C_Read... [23:50:09]Read from MH i2c: E2 FD 00 [23:50:09]MH_I2C_Read... [23:50:09]Read from MH i2c: E2 FD 00 10 28 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 CA [23:50:09]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:50:09]wFMCommunicate OK [23:50:09]wFMCommunicate request_size=4 [23:50:09]MH_SAM_APDU [23:50:09]CAPDU: 80 17 00 00 [23:50:09]Write to MH i2c: E2 08 00 11 28 80 17 00 00 00 00 00 00 B9 [23:50:09]Write i2c OK [23:50:09]MH_I2C_Read... [23:50:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:10]Read from MH i2c: E2 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: E2 FD 00 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: E2 FD 00 11 28 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 45 [23:50:10]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:50:10]wFMCommunicate OK [23:50:10]wFMCommunicate request_size=4 [23:50:10]MH_SAM_APDU [23:50:10]CAPDU: 80 17 00 00 [23:50:10]Write to MH i2c: E2 08 00 12 28 80 17 00 00 00 00 00 00 BA [23:50:10]Write i2c OK [23:50:10]MH_I2C_Read... [23:50:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:50:10]Read from MH i2c: E2 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: E2 E2 00 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: E2 E2 00 12 28 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 98 [23:50:10]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:50:10]wFMCommunicate OK [23:50:10]SAM_PROTO_GetFMData done [23:50:10]requested_item fm.sale_refund.total is exist - process it [23:50:10]requested_item fm.buy.total is exist - process it [23:50:10]requested_item shift.sale.total is exist - process it [23:50:10]SAM_PROTO_GetShiftData [23:50:10]wFMCommunicate request_size=4 [23:50:10]MH_SAM_APDU [23:50:10]CAPDU: 80 13 02 00 [23:50:10]Write to MH i2c: E2 08 00 13 28 80 13 02 00 00 00 00 00 B9 [23:50:10]Write i2c OK [23:50:10]MH_I2C_Read... [23:50:11]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:50:11]Read from MH i2c: E2 [23:50:11]MH_I2C_Read... [23:50:11]Read from MH i2c: E2 FD 00 [23:50:11]MH_I2C_Read... [23:50:11]Read from MH i2c: E2 FD 00 13 28 00 BC 04 AA 04 B8 04 6E 04 04 00 23 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 54 4C C6 02 70 04 03 00 E0 BC DA 72 04 04 00 74 8F EB 01 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 C2 71 4B 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 69 49 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 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 60 B4 09 70 04 03 00 60 B4 09 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 E5 07 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 3F [23:50:11]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 23 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 54 4C C6 02 70 04 03 00 E0 BC DA 72 04 04 00 74 8F EB 01 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 C2 71 4B 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 69 49 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 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 60 B4 09 70 04 03 00 60 B4 09 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 E5 07 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [23:50:11]wFMCommunicate OK [23:50:11]wFMCommunicate request_size=4 [23:50:11]MH_SAM_APDU [23:50:11]CAPDU: 80 17 00 00 [23:50:11]Write to MH i2c: E2 08 00 14 28 80 17 00 00 00 00 00 00 BC [23:50:11]Write i2c OK [23:50:11]MH_I2C_Read... [23:50:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:11]Read from MH i2c: E2 [23:50:11]MH_I2C_Read... [23:50:11]Read from MH i2c: E2 FD 00 [23:50:11]MH_I2C_Read... [23:50:11]Read from MH i2c: E2 FD 00 14 28 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 78 [23:50:11]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:11]wFMCommunicate OK [23:50:11]wFMCommunicate request_size=4 [23:50:11]MH_SAM_APDU [23:50:11]CAPDU: 80 17 00 00 [23:50:11]Write to MH i2c: E2 08 00 15 28 80 17 00 00 00 00 00 00 BD [23:50:11]Write i2c OK [23:50:11]MH_I2C_Read... [23:50:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:12]Read from MH i2c: E2 [23:50:12]MH_I2C_Read... [23:50:12]Read from MH i2c: E2 FD 00 [23:50:12]MH_I2C_Read... [23:50:12]Read from MH i2c: E2 FD 00 15 28 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E6 [23:50:12]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:12]wFMCommunicate OK [23:50:12]wFMCommunicate request_size=4 [23:50:12]MH_SAM_APDU [23:50:12]CAPDU: 80 17 00 00 [23:50:12]Write to MH i2c: E2 08 00 16 28 80 17 00 00 00 00 00 00 BE [23:50:12]Write i2c OK [23:50:12]MH_I2C_Read... [23:50:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:12]Read from MH i2c: E2 [23:50:12]MH_I2C_Read... [23:50:12]Read from MH i2c: E2 FD 00 [23:50:12]MH_I2C_Read... [23:50:12]Read from MH i2c: E2 FD 00 16 28 00 03 00 00 EF 03 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 90 00 3F [23:50:12]RAPDU: 03 00 00 EF 03 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 90 00 [23:50:12]wFMCommunicate OK [23:50:12]wFMCommunicate request_size=4 [23:50:12]MH_SAM_APDU [23:50:12]CAPDU: 80 17 00 00 [23:50:12]Write to MH i2c: E2 08 00 17 28 80 17 00 00 00 00 00 00 BF [23:50:12]Write i2c OK [23:50:12]MH_I2C_Read... [23:50:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [23:50:13]Read from MH i2c: E2 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 D9 00 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 D9 00 17 28 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E [23:50:13]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:50:13]wFMCommunicate OK [23:50:13]SAM_PROTO_GetShiftData done [23:50:13]requested_item shift.sale.total_cash is exist - process it [23:50:13]requested_item shift.sale_refund.total is exist - process it [23:50:13]requested_item shift.sale_refund.total_cash is exist - process it [23:50:13]requested_item shift.buy.total is exist - process it [23:50:13]requested_item shift.buy.total_cash is exist - process it [23:50:13]produce_requested_data done [23:50:13]produce_requested_data return {"fm.sale.total":148539918.00,"fm.sale_refund.total":9911591.00,"fm.buy.total":0.00,"shift.sale.total":465501.00,"shift.sale.total_cash":143352.00,"shift.sale_refund.total":6360.00,"shift.sale_refund.total_cash":6360.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:50:13]process_action_free get_value [23:50:13]json_value_free [23:50:13]json_value_free done [23:50:13]process_json_proto returns [23:50:13]Send response to host [23:50:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148539918.00,"fm.sale_refund.total":9911591.00,"fm.buy.total":0.00,"shift.sale.total":465501.00,"shift.sale.total_cash":143352.00,"shift.sale_refund.total":6360.00,"shift.sale_refund.total_cash":6360.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:50:13]free response buf [23:50:13]execute_script done [23:50:13]execute_script returns [23:50:13]free content buf [23:50:13]Sock 7.Close socket [23:50:13]Sock 7.Thread stoped [23:50:13]accept exits with 9 [23:50:13]New connection [23:50:13]New thread 3067383140 created [23:50:13]Thread 3067239780 joined [23:50:13]Waiting for new connection... [23:50:13] Sock 9.Parse request [23:50:13]Sock 9.Check first char [23:50:13]Sock 9.First char is OK [23:50:13]request: POST /json_proto HTTP/1.0 [23:50:13]Method: POST [23:50:13]URL: /json_proto [23:50:13]Method is POST - this is cgi request [23:50:13]url: /json_proto [23:50:13]query_string will be loaded in cgi processing [23:50:13]execute_cgi json_proto POST (null) [23:50:13]execute_cgi path=json_proto method=POST [23:50:13]POST find Content-Length [23:50:13]Host: 172.17.45.7:8080 [23:50:13]Content-Length: 331 [23:50:13]Content-Type: application/json [23:50:13] [23:50:13]POST finish read [23:50:13]Found Content-Length = 331 [23:50:13]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:50:13]execute_script... [23:50:13]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:50:13]POST & json_proto [23:50:13]process_json_proto [23:50:13]json parsed OK: [23:50:13]protocol is kg_v1.0 [23:50:13]action value=get_value [23:50:13]process_action get_value [23:50:13]cmd_get_value [23:50:13]process_action get_value done [23:50:13]requested_data is exist [23:50:13]produce_requested_data [23:50:13]requested_item fm.sale.total is exist - process it [23:50:13]SAM_PROTO_GetFMData [23:50:13]wFMCommunicate request_size=4 [23:50:13]MH_SAM_APDU [23:50:13]CAPDU: 80 13 03 00 [23:50:13]Write to MH i2c: E2 08 00 18 28 80 13 03 00 00 00 00 00 BF [23:50:13]OFD Sender: No OFD packet to send [23:50:13]Write i2c OK [23:50:13]MH_I2C_Read... [23:50:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:50:14]Read from MH i2c: E2 [23:50:14]MH_I2C_Read... [23:50:14]Read from MH i2c: E2 FD 00 [23:50:14]MH_I2C_Read... [23:50:14]Read from MH i2c: E2 FD 00 18 28 00 C5 04 85 04 C1 04 6E 04 04 00 FC CB 01 00 69 04 A3 00 6F 04 04 00 72 BE 01 00 B1 04 05 00 78 ED 5D 75 03 70 04 05 00 98 B7 97 A7 02 72 04 04 00 E0 35 C6 CD 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 0C AF 0B 5E 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 50 2D D6 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 9C 00 6F 04 04 00 8A 0D 00 00 B1 04 04 00 3C E3 13 3B 70 04 04 00 3C E3 13 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 11 44 46 06 EF 03 09 90 00 DD [23:50:14]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 FC CB 01 00 69 04 A3 00 6F 04 04 00 72 BE 01 00 B1 04 05 00 78 ED 5D 75 03 70 04 05 00 98 B7 97 A7 02 72 04 04 00 E0 35 C6 CD 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 0C AF 0B 5E 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 50 2D D6 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 9C 00 6F 04 04 00 8A 0D 00 00 B1 04 04 00 3C E3 13 3B 70 04 04 00 3C E3 13 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 11 44 46 06 EF 03 09 90 00 [23:50:14]wFMCommunicate OK [23:50:14]wFMCommunicate request_size=4 [23:50:14]MH_SAM_APDU [23:50:14]CAPDU: 80 17 00 00 [23:50:14]Write to MH i2c: E2 08 00 19 28 80 17 00 00 00 00 00 00 C1 [23:50:14]Write i2c OK [23:50:14]MH_I2C_Read... [23:50:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:14]Read from MH i2c: E2 [23:50:14]MH_I2C_Read... [23:50:14]Read from MH i2c: E2 FD 00 [23:50:14]MH_I2C_Read... [23:50:14]Read from MH i2c: E2 FD 00 19 28 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F DA 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 F5 [23:50:14]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F DA 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:50:14]wFMCommunicate OK [23:50:14]wFMCommunicate request_size=4 [23:50:14]MH_SAM_APDU [23:50:14]CAPDU: 80 17 00 00 [23:50:14]Write to MH i2c: E2 08 00 1A 28 80 17 00 00 00 00 00 00 C2 [23:50:14]Write i2c OK [23:50:14]MH_I2C_Read... [23:50:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:15]Read from MH i2c: E2 [23:50:15]MH_I2C_Read... [23:50:15]Read from MH i2c: E2 FD 00 [23:50:15]MH_I2C_Read... [23:50:15]Read from MH i2c: E2 FD 00 1A 28 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 D4 [23:50:15]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:50:15]wFMCommunicate OK [23:50:15]wFMCommunicate request_size=4 [23:50:15]MH_SAM_APDU [23:50:15]CAPDU: 80 17 00 00 [23:50:15]Write to MH i2c: E2 08 00 1B 28 80 17 00 00 00 00 00 00 C3 [23:50:15]Write i2c OK [23:50:15]MH_I2C_Read... [23:50:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:15]Read from MH i2c: E2 [23:50:15]MH_I2C_Read... [23:50:15]Read from MH i2c: E2 FD 00 [23:50:15]MH_I2C_Read... [23:50:15]Read from MH i2c: E2 FD 00 1B 28 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 4F [23:50:15]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:50:15]wFMCommunicate OK [23:50:15]wFMCommunicate request_size=4 [23:50:15]MH_SAM_APDU [23:50:15]CAPDU: 80 17 00 00 [23:50:15]Write to MH i2c: E2 08 00 1C 28 80 17 00 00 00 00 00 00 C4 [23:50:15]Write i2c OK [23:50:15]MH_I2C_Read... [23:50:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:50:16]Read from MH i2c: E2 [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: E2 E2 00 [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: E2 E2 00 1C 28 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A2 [23:50:16]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:50:16]wFMCommunicate OK [23:50:16]SAM_PROTO_GetFMData done [23:50:16]requested_item fm.sale_refund.total is exist - process it [23:50:16]requested_item fm.buy.total is exist - process it [23:50:16]requested_item shift.sale.total is exist - process it [23:50:16]SAM_PROTO_GetShiftData [23:50:16]wFMCommunicate request_size=4 [23:50:16]MH_SAM_APDU [23:50:16]CAPDU: 80 13 02 00 [23:50:16]Write to MH i2c: E2 08 00 1D 28 80 13 02 00 00 00 00 00 C3 [23:50:16]Write i2c OK [23:50:16]MH_I2C_Read... [23:50:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:50:16]Read from MH i2c: E2 [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: E2 FD 00 [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: E2 FD 00 1D 28 00 BC 04 AA 04 B8 04 6E 04 04 00 23 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 54 4C C6 02 70 04 03 00 E0 BC DA 72 04 04 00 74 8F EB 01 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 C2 71 4B 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 69 49 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 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 60 B4 09 70 04 03 00 60 B4 09 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 E5 07 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 49 [23:50:16]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 23 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 54 4C C6 02 70 04 03 00 E0 BC DA 72 04 04 00 74 8F EB 01 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 C2 71 4B 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 69 49 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 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 60 B4 09 70 04 03 00 60 B4 09 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 E5 07 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [23:50:17]wFMCommunicate OK [23:50:17]wFMCommunicate request_size=4 [23:50:17]MH_SAM_APDU [23:50:17]CAPDU: 80 17 00 00 [23:50:17]Write to MH i2c: E2 08 00 1E 28 80 17 00 00 00 00 00 00 C6 [23:50:17]Write i2c OK [23:50:17]MH_I2C_Read... [23:50:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:17]Read from MH i2c: E2 [23:50:17]MH_I2C_Read... [23:50:17]Read from MH i2c: E2 FD 00 [23:50:17]MH_I2C_Read... [23:50:17]Read from MH i2c: E2 FD 00 1E 28 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 82 [23:50:17]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:17]wFMCommunicate OK [23:50:17]wFMCommunicate request_size=4 [23:50:17]MH_SAM_APDU [23:50:17]CAPDU: 80 17 00 00 [23:50:17]Write to MH i2c: E2 08 00 1F 28 80 17 00 00 00 00 00 00 C7 [23:50:17]Write i2c OK [23:50:17]MH_I2C_Read... [23:50:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:17]Read from MH i2c: E2 [23:50:17]MH_I2C_Read... [23:50:17]Read from MH i2c: E2 FD 00 [23:50:17]MH_I2C_Read... [23:50:17]Read from MH i2c: E2 FD 00 1F 28 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F0 [23:50:17]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:18]wFMCommunicate OK [23:50:18]wFMCommunicate request_size=4 [23:50:18]MH_SAM_APDU [23:50:18]CAPDU: 80 17 00 00 [23:50:18]Write to MH i2c: E2 08 00 20 28 80 17 00 00 00 00 00 00 C8 [23:50:18]Write i2c OK [23:50:18]MH_I2C_Read... [23:50:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:18]Read from MH i2c: E2 [23:50:18]MH_I2C_Read... [23:50:18]Read from MH i2c: E2 FD 00 [23:50:18]MH_I2C_Read... [23:50:18]Read from MH i2c: E2 FD 00 20 28 00 03 00 00 EF 03 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 90 00 49 [23:50:18]RAPDU: 03 00 00 EF 03 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 90 00 [23:50:18]wFMCommunicate OK [23:50:18]wFMCommunicate request_size=4 [23:50:18]MH_SAM_APDU [23:50:18]CAPDU: 80 17 00 00 [23:50:18]Write to MH i2c: E2 08 00 21 28 80 17 00 00 00 00 00 00 C9 [23:50:18]OFD Sender: No OFD packet to send [23:50:18]Write i2c OK [23:50:18]MH_I2C_Read... [23:50:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [23:50:18]Read from MH i2c: E2 [23:50:18]MH_I2C_Read... [23:50:18]Read from MH i2c: E2 D9 00 [23:50:18]MH_I2C_Read... [23:50:18]Read from MH i2c: E2 D9 00 21 28 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A8 [23:50:18]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:50:19]wFMCommunicate OK [23:50:19]SAM_PROTO_GetShiftData done [23:50:19]requested_item shift.sale.total_cash is exist - process it [23:50:19]requested_item shift.sale_refund.total is exist - process it [23:50:19]requested_item shift.sale_refund.total_cash is exist - process it [23:50:19]requested_item shift.buy.total is exist - process it [23:50:19]requested_item shift.buy.total_cash is exist - process it [23:50:19]produce_requested_data done [23:50:19]produce_requested_data return {"fm.sale.total":148539918.00,"fm.sale_refund.total":9911591.00,"fm.buy.total":0.00,"shift.sale.total":465501.00,"shift.sale.total_cash":143352.00,"shift.sale_refund.total":6360.00,"shift.sale_refund.total_cash":6360.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:50:19]process_action_free get_value [23:50:19]json_value_free [23:50:19]json_value_free done [23:50:19]process_json_proto returns [23:50:19]Send response to host [23:50:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148539918.00,"fm.sale_refund.total":9911591.00,"fm.buy.total":0.00,"shift.sale.total":465501.00,"shift.sale.total_cash":143352.00,"shift.sale_refund.total":6360.00,"shift.sale_refund.total_cash":6360.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:50:19]free response buf [23:50:19]execute_script done [23:50:19]execute_script returns [23:50:19]free content buf [23:50:19]Sock 9.Close socket [23:50:19]Sock 9.Thread stoped [23:50:19]accept exits with 7 [23:50:19]New connection [23:50:19]New thread 3067239780 created [23:50:19]Thread 3067383140 joined [23:50:19]Waiting for new connection... [23:50:19] Sock 7.Parse request [23:50:19]Sock 7.Check first char [23:50:19]Sock 7.First char is OK [23:50:19]request: POST /json_proto HTTP/1.0 [23:50:19]Method: POST [23:50:19]URL: /json_proto [23:50:19]Method is POST - this is cgi request [23:50:19]url: /json_proto [23:50:19]query_string will be loaded in cgi processing [23:50:19]execute_cgi json_proto POST (null) [23:50:19]execute_cgi path=json_proto method=POST [23:50:19]POST find Content-Length [23:50:19]Host: 172.17.45.7:8080 [23:50:19]Content-Length: 254 [23:50:19]Content-Type: application/json [23:50:19] [23:50:19]POST finish read [23:50:19]Found Content-Length = 254 [23:50:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:19]execute_script... [23:50:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:19]POST & json_proto [23:50:19]process_json_proto [23:50:19]json parsed OK: [23:50:19]protocol is kg_v1.0 [23:50:19]action value=close_shift [23:50:19]process_action close_shift [23:50:19]cmd_close_shift [23:50:19]MH_GetDate [23:50:19]Write to MH i2c: F0 00 00 22 28 39 [23:50:19]Write i2c OK [23:50:19]MH_I2C_Read... [23:50:19]Read from MH i2c: F0 [23:50:19]MH_I2C_Read... [23:50:19]Read from MH i2c: F0 09 00 [23:50:19]MH_I2C_Read... [23:50:19]Read from MH i2c: F0 09 00 22 28 00 3D D9 A6 66 90 0F 3E 66 A7 [23:50:19]GetLastDocTimeStamp 1722210575 [23:50:19]current date 1722210621 [23:50:19]FM_GetShiftState [23:50:19]SAM_PROTO_GetShiftState [23:50:19]wFMCommunicate request_size=4 [23:50:19]MH_SAM_APDU [23:50:19]CAPDU: 80 13 01 00 [23:50:19]Write to MH i2c: E2 08 00 23 28 80 13 01 00 00 00 00 00 C8 [23:50:19]Write i2c OK [23:50:19]MH_I2C_Read... [23:50:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:19]Read from MH i2c: E2 [23:50:19]MH_I2C_Read... [23:50:19]Read from MH i2c: E2 0E 00 [23:50:19]MH_I2C_Read... [23:50:19]Read from MH i2c: E2 0E 00 23 28 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 9F [23:50:19]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [23:50:19]wFMCommunicate OK [23:50:19]SAM_PROTO_GetShiftState done [23:50:19]FM_GetShiftState done [23:50:19]KKMCreateCloseShiftDocument [23:50:19]Load OK [23:50:19]Malloc new data [23:50:19]MH_GetDate [23:50:19]Write to MH i2c: F0 00 00 24 28 3B [23:50:19]Write i2c OK [23:50:19]MH_I2C_Read... [23:50:19]Read from MH i2c: F0 [23:50:19]MH_I2C_Read... [23:50:19]Read from MH i2c: F0 09 00 [23:50:19]MH_I2C_Read... [23:50:19]Read from MH i2c: F0 09 00 24 28 00 3E D9 A6 66 90 0F 3E 66 AA [23:50:19]Malloc new data [23:50:19]Malloc new data [23:50:19]Malloc new data [23:50:19]Malloc new data [23:50:19]KKMCreateCloseShiftDocument OK [23:50:19]KKMSetCloseShiftData OK [23:50:19]ProcessDocumentItem done err = 0, tmpTLVsize=69 [23:50:19]tlvbuf is 01FBC560 [23:50:19]KKMLoadAndSignCloseShiftData [23:50:19]SAM_PROTO_ProcessDocument [23:50:19]wFMCommunicate request_size=9 [23:50:19]MH_SAM_APDU [23:50:19]CAPDU: 80 15 01 00 04 05 00 45 00 [23:50:19]Write to MH i2c: E2 0C 00 25 28 80 15 01 00 04 00 05 00 45 00 00 00 1E [23:50:19]Write i2c OK [23:50:19]MH_I2C_Read... [23:50:19]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:50:19]Read from MH i2c: E2 [23:50:19]MH_I2C_Read... [23:50:19]Read from MH i2c: E2 03 00 [23:50:19]MH_I2C_Read... [23:50:19]Read from MH i2c: E2 03 00 25 28 00 90 00 C1 [23:50:19]RAPDU: 90 00 [23:50:19]wFMCommunicate OK [23:50:19]wFMCommunicate request_size=23 [23:50:19]MH_SAM_APDU [23:50:19]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:50:19]Write to MH i2c: E2 1A 00 26 28 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 C3 [23:50:19]Write i2c OK [23:50:19]MH_I2C_Read... [23:50:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:50:19]Read from MH i2c: E2 [23:50:19]MH_I2C_Read... [23:50:19]Read from MH i2c: E2 03 00 [23:50:19]MH_I2C_Read... [23:50:19]Read from MH i2c: E2 03 00 26 28 00 90 00 C2 [23:50:19]RAPDU: 90 00 [23:50:19]wFMCommunicate OK [23:50:19]wFMCommunicate request_size=28 [23:50:19]MH_SAM_APDU [23:50:19]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 A5 D0 BE D1 88 D0 B8 D0 BC D0 BE D0 B2 20 D0 97 2E 20 [23:50:19]Write to MH i2c: E2 1F 00 27 28 80 15 02 00 17 00 FD 03 13 00 D0 A5 D0 BE D1 88 D0 B8 D0 BC D0 BE D0 B2 20 D0 97 2E 20 00 00 65 [23:50:19]Write i2c OK [23:50:19]MH_I2C_Read... [23:50:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:50:19]Read from MH i2c: E2 [23:50:19]MH_I2C_Read... [23:50:19]Read from MH i2c: E2 03 00 [23:50:19]MH_I2C_Read... [23:50:19]Read from MH i2c: E2 03 00 27 28 00 90 00 C3 [23:50:19]RAPDU: 90 00 [23:50:19]wFMCommunicate OK [23:50:19]wFMCommunicate request_size=13 [23:50:19]MH_SAM_APDU [23:50:19]CAPDU: 80 15 02 00 08 F4 03 04 00 3E D9 A6 66 [23:50:19]Write to MH i2c: E2 10 00 28 28 80 15 02 00 08 00 F4 03 04 00 3E D9 A6 66 00 00 FE [23:50:19]Write i2c OK [23:50:19]MH_I2C_Read... [23:50:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:50:19]Read from MH i2c: E2 [23:50:19]MH_I2C_Read... [23:50:19]Read from MH i2c: E2 03 00 [23:50:19]MH_I2C_Read... [23:50:19]Read from MH i2c: E2 03 00 28 28 00 90 00 C4 [23:50:19]RAPDU: 90 00 [23:50:19]wFMCommunicate OK [23:50:19]wFMCommunicate request_size=25 [23:50:19]MH_SAM_APDU [23:50:19]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 [23:50:19]Write to MH i2c: E2 1C 00 29 28 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 00 00 31 [23:50:19]Write i2c OK [23:50:19]MH_I2C_Read... [23:50:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:50:19]Read from MH i2c: E2 [23:50:19]MH_I2C_Read... [23:50:19]Read from MH i2c: E2 03 00 [23:50:19]MH_I2C_Read... [23:50:19]Read from MH i2c: E2 03 00 29 28 00 90 00 C5 [23:50:19]RAPDU: 90 00 [23:50:19]wFMCommunicate OK [23:50:19]wFMCommunicate request_size=4 [23:50:19]MH_SAM_APDU [23:50:19]CAPDU: 80 15 03 00 [23:50:19]Write to MH i2c: E2 08 00 2A 28 80 15 03 00 00 00 00 00 D3 [23:50:19]Write i2c OK [23:50:19]MH_I2C_Read... [23:50:20]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:50:20]Read from MH i2c: E2 [23:50:20]MH_I2C_Read... [23:50:20]Read from MH i2c: E2 FD 00 [23:50:20]MH_I2C_Read... [23:50:20]Read from MH i2c: E2 FD 00 2A 28 00 FF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5F CF 01 00 0E 04 04 00 B1 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 25 01 00 00 AA 04 B8 04 6E 04 04 00 23 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 54 4C C6 02 70 04 03 00 E0 BC DA 72 04 04 00 74 8F EB 01 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 C2 71 4B 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 69 49 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 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 60 90 00 CF [23:50:20]RAPDU: FF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5F CF 01 00 0E 04 04 00 B1 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 25 01 00 00 AA 04 B8 04 6E 04 04 00 23 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 54 4C C6 02 70 04 03 00 E0 BC DA 72 04 04 00 74 8F EB 01 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 C2 71 4B 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 69 49 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 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 60 90 00 [23:50:20]wFMCommunicate OK [23:50:20]SAM_PROTO_ProcessDocument answer len = 1279 [23:50:20]SAM_PROTO_ProcessDocument remain to read = 1031 [23:50:20]wFMCommunicate request_size=4 [23:50:20]MH_SAM_APDU [23:50:20]CAPDU: 80 17 00 00 [23:50:20]Write to MH i2c: E2 08 00 2B 28 80 17 00 00 00 00 00 00 D3 [23:50:20]Write i2c OK [23:50:20]MH_I2C_Read... [23:50:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:20]Read from MH i2c: E2 [23:50:20]MH_I2C_Read... [23:50:20]Read from MH i2c: E2 FD 00 [23:50:20]MH_I2C_Read... [23:50:20]Read from MH i2c: E2 FD 00 2B 28 00 B4 09 70 04 03 00 60 B4 09 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 E5 07 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 85 [23:50:21]RAPDU: B4 09 70 04 03 00 60 B4 09 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 E5 07 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:21]wFMCommunicate OK [23:50:21]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:50:21]SAM_PROTO_ProcessDocument remain to read = 781 [23:50:21]wFMCommunicate request_size=4 [23:50:21]MH_SAM_APDU [23:50:21]CAPDU: 80 17 00 00 [23:50:21]Write to MH i2c: E2 08 00 2C 28 80 17 00 00 00 00 00 00 D4 [23:50:21]Write i2c OK [23:50:21]MH_I2C_Read... [23:50:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:21]Read from MH i2c: E2 [23:50:21]MH_I2C_Read... [23:50:21]Read from MH i2c: E2 FD 00 [23:50:21]MH_I2C_Read... [23:50:21]Read from MH i2c: E2 FD 00 2C 28 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 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 90 00 3A [23:50: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 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 90 00 [23:50:21]wFMCommunicate OK [23:50:21]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:50:21]SAM_PROTO_ProcessDocument remain to read = 531 [23:50:21]wFMCommunicate request_size=4 [23:50:21]MH_SAM_APDU [23:50:21]CAPDU: 80 17 00 00 [23:50:21]Write to MH i2c: E2 08 00 2D 28 80 17 00 00 00 00 00 00 D5 [23:50:21]Write i2c OK [23:50:21]MH_I2C_Read... [23:50:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:22]Read from MH i2c: E2 [23:50:22]MH_I2C_Read... [23:50:22]Read from MH i2c: E2 FD 00 [23:50:22]MH_I2C_Read... [23:50:22]Read from MH i2c: E2 FD 00 2D 28 00 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 76 [23:50:22]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:22]wFMCommunicate OK [23:50:22]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:50:22]SAM_PROTO_ProcessDocument remain to read = 281 [23:50:22]wFMCommunicate request_size=4 [23:50:22]MH_SAM_APDU [23:50:22]CAPDU: 80 17 00 00 [23:50:22]Write to MH i2c: E2 08 00 2E 28 80 17 00 00 00 00 00 00 D6 [23:50:22]Write i2c OK [23:50:22]MH_I2C_Read... [23:50:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:22]Read from MH i2c: E2 [23:50:22]MH_I2C_Read... [23:50:22]Read from MH i2c: E2 FD 00 [23:50:22]MH_I2C_Read... [23:50:22]Read from MH i2c: E2 FD 00 2E 28 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 82 [23:50:22]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:23]wFMCommunicate OK [23:50:23]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:50:23]SAM_PROTO_ProcessDocument remain to read = 31 [23:50:23]wFMCommunicate request_size=4 [23:50:23]MH_SAM_APDU [23:50:23]CAPDU: 80 17 00 00 [23:50:23]Write to MH i2c: E2 08 00 2F 28 80 17 00 00 00 00 00 00 D7 [23:50:23]Write i2c OK [23:50:23]MH_I2C_Read... [23:50:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 31! [23:50:23]Read from MH i2c: E2 [23:50:23]MH_I2C_Read... [23:50:23]Read from MH i2c: E2 22 00 [23:50:23]MH_I2C_Read... [23:50:23]Read from MH i2c: E2 22 00 2F 28 00 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 E8 67 CC 14 CB E4 90 00 FF [23:50:23]RAPDU: 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 E8 67 CC 14 CB E4 90 00 [23:50:23]wFMCommunicate OK [23:50:23]SAM_PROTO_ProcessDocument received (without SW) 31 bytes [23:50:23]SAM_PROTO_ProcessDocument done [23:50:23]1209 (1) - 1.0 - номер версии ФФД [23:50:23]1041 (16) - 0000000000874939 - номер ФМ [23:50:23]1040 (4) - 118623 - номер ФД [23:50:23]1038 (4) - 433 - номер смены [23:50:23]1118 (4) - 291 - количество кассовых чеков за смену [23:50:23]1111 (4) - 293 - общее количество ФД за смену [23:50:23]1194 (1208) - счетчики итогов смены [23:50:23] 1134 (4) - 291 - количество чеков со всеми признаками расчетов [23:50:23] 1129 (158) - счетчики операций «приход» [23:50:23] 1135 (4) - 283 - количество чеков по признаку расчетов [23:50:23] 1201 (4) - 465501.00 - общая итоговая сумма в чеках [23:50:23] 1136 (3) - 143352.00 - итоговая сумма в чеках наличными [23:50:23] 1138 (4) - 322149.00 - итоговая сумма в чеках безналичными [23:50:23] 1024 (123) - суммы налогов [23:50:23] 1006 (9) - суммы НДС [23:50:23] 1010 (1) - 0% - код ставки НДС [23:50:23] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:23] 1006 (12) - суммы НДС [23:50:23] 1010 (1) - 12% - код ставки НДС [23:50:23] 1011 (3) - 49443.22 - сумма НДС по ставке [23:50:23] 1007 (9) - суммы НСП [23:50:23] 1014 (1) - 0% - код ставки НСП [23:50:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:23] 1007 (12) - суммы НСП [23:50:23] 1014 (1) - 1% - код ставки НСП [23:50:23] 1015 (3) - 4120.09 - сумма НСП по ставке [23:50:23] 1007 (9) - суммы НСП [23:50:23] 1014 (1) - 2% - код ставки НСП [23:50:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:23] 1007 (9) - суммы НСП [23:50:23] 1014 (1) - 3% - код ставки НСП [23:50:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:23] 1007 (9) - суммы НСП [23:50:23] 1014 (1) - 5% - код ставки НСП [23:50:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:23] 1007 (9) - суммы НСП [23:50:23] 1014 (1) - 0,50% - код ставки НСП [23:50:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:23] 1007 (9) - суммы НСП [23:50:23] 1014 (1) - 1,50% - код ставки НСП [23:50:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:23] 1130 (152) - счетчики операций «возврат прихода» [23:50:23] 1135 (4) - 8 - количество чеков по признаку расчетов [23:50:23] 1201 (3) - 6360.00 - общая итоговая сумма в чеках [23:50:23] 1136 (3) - 6360.00 - итоговая сумма в чеках наличными [23:50:23] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:50:23] 1024 (122) - суммы налогов [23:50:23] 1006 (9) - суммы НДС [23:50:23] 1010 (1) - 0% - код ставки НДС [23:50:23] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:23] 1006 (12) - суммы НДС [23:50:23] 1010 (1) - 12% - код ставки НДС [23:50:23] 1011 (3) - 675.57 - сумма НДС по ставке [23:50:23] 1007 (9) - суммы НСП [23:50:23] 1014 (1) - 0% - код ставки НСП [23:50:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:23] 1007 (11) - суммы НСП [23:50:23] 1014 (1) - 1% - код ставки НСП [23:50:23] 1015 (2) - 56.29 - сумма НСП по ставке [23:50:23] 1007 (9) - суммы НСП [23:50:23] 1014 (1) - 2% - код ставки НСП [23:50:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:23] 1007 (9) - суммы НСП [23:50:23] 1014 (1) - 3% - код ставки НСП [23:50:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:23] 1007 (9) - суммы НСП [23:50:23] 1014 (1) - 5% - код ставки НСП [23:50:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:23] 1007 (9) - суммы НСП [23:50:23] 1014 (1) - 0,50% - код ставки НСП [23:50:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:23] 1007 (9) - суммы НСП [23:50:23] 1014 (1) - 1,50% - код ставки НСП [23:50:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:23] 1131 (141) - счетчики операций «расход» [23:50:23] 1135 (4) - 0 - количество чеков по признаку расчетов [23:50:23] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:50:23] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:50:23] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:50:23] 1024 (117) - суммы налогов [23:50:23] 1006 (9) - суммы НДС [23:50:23] 1010 (1) - 0% - код ставки НДС [23:50:23] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:23] 1006 (9) - суммы НДС [23:50:23] 1010 (1) - 12% - код ставки НДС [23:50:23] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:23] 1007 (9) - суммы НСП [23:50:23] 1014 (1) - 0% - код ставки НСП [23:50:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:23] 1007 (9) - суммы НСП [23:50:23] 1014 (1) - 1% - код ставки НСП [23:50:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:23] 1007 (9) - суммы НСП [23:50:23] 1014 (1) - 2% - код ставки НСП [23:50:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:23] 1007 (9) - суммы НСП [23:50:23] 1014 (1) - 3% - код ставки НСП [23:50:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:23] 1007 (9) - суммы НСП [23:50:23] 1014 (1) - 5% - код ставки НСП [23:50:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:23] 1007 (9) - суммы НСП [23:50:23] 1014 (1) - 0,50% - код ставки НСП [23:50:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:23] 1007 (9) - суммы НСП [23:50:23] 1014 (1) - 1,50% - код ставки НСП [23:50:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:23] 1132 (141) - счетчики операций «возврат расхода» [23:50:23] 1135 (4) - 0 - количество чеков по признаку расчетов [23:50:23] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:50:23] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:50:23] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:50:23] 1024 (117) - суммы налогов [23:50:23] 1006 (9) - суммы НДС [23:50:23] 1010 (1) - 0% - код ставки НДС [23:50:23] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:23] 1006 (9) - суммы НДС [23:50:23] 1010 (1) - 12% - код ставки НДС [23:50:23] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:23] 1007 (9) - суммы НСП [23:50:23] 1014 (1) - 0% - код ставки НСП [23:50:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:23] 1007 (9) - суммы НСП [23:50:23] 1014 (1) - 1% - код ставки НСП [23:50:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:23] 1007 (9) - суммы НСП [23:50:23] 1014 (1) - 2% - код ставки НСП [23:50:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:23] 1007 (9) - суммы НСП [23:50:23] 1014 (1) - 3% - код ставки НСП [23:50:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:23] 1007 (9) - суммы НСП [23:50:23] 1014 (1) - 5% - код ставки НСП [23:50:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:23] 1007 (9) - суммы НСП [23:50:23] 1014 (1) - 0,50% - код ставки НСП [23:50:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:23] 1007 (9) - суммы НСП [23:50:23] 1014 (1) - 1,50% - код ставки НСП [23:50:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:23] 1133 (588) - - счетчики коррекции - не используются [23:50:23]1077 (6) - 255532503190500 - ФПД [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1209 (04B9) [23:50:23]Malloc new data [23:50:23]Processing tag 1041 (0411) [23:50:23]Processing tag 1040 (0410) [23:50:23]Malloc new data [23:50:23]Processing tag 1038 (040E) [23:50:23]Malloc new data [23:50:23]Processing tag 1118 (045E) [23:50:23]Malloc new data [23:50:23]Processing tag 1111 (0457) [23:50:23]Malloc new data [23:50:23]Processing tag 1194 (04AA) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1134 (046E) [23:50:23]Malloc new data [23:50:23]Processing tag 1129 (0469) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1135 (046F) [23:50:23]Malloc new data [23:50:23]Processing tag 1201 (04B1) [23:50:23]Malloc new data [23:50:23]Processing tag 1136 (0470) [23:50:23]Malloc new data [23:50:23]Processing tag 1138 (0472) [23:50:23]Malloc new data [23:50:23]Processing tag 1024 (0400) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1006 (03EE) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1010 (03F2) [23:50:23]Malloc new data [23:50:23]Processing tag 1011 (03F3) [23:50:23]Malloc new data [23:50:23]SetTLVBufToDocument err=0 [23:50:23]Processing tag 1006 (03EE) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1010 (03F2) [23:50:23]Malloc new data [23:50:23]Processing tag 1011 (03F3) [23:50:23]Malloc new data [23:50:23]SetTLVBufToDocument err=0 [23:50:23]Processing tag 1007 (03EF) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1014 (03F6) [23:50:23]Malloc new data [23:50:23]Processing tag 1015 (03F7) [23:50:23]Malloc new data [23:50:23]SetTLVBufToDocument err=0 [23:50:23]Processing tag 1007 (03EF) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1014 (03F6) [23:50:23]Malloc new data [23:50:23]Processing tag 1015 (03F7) [23:50:23]Malloc new data [23:50:23]SetTLVBufToDocument err=0 [23:50:23]Processing tag 1007 (03EF) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1014 (03F6) [23:50:23]Malloc new data [23:50:23]Processing tag 1015 (03F7) [23:50:23]Malloc new data [23:50:23]SetTLVBufToDocument err=0 [23:50:23]Processing tag 1007 (03EF) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1014 (03F6) [23:50:23]Malloc new data [23:50:23]Processing tag 1015 (03F7) [23:50:23]Malloc new data [23:50:23]SetTLVBufToDocument err=0 [23:50:23]Processing tag 1007 (03EF) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1014 (03F6) [23:50:23]Malloc new data [23:50:23]Processing tag 1015 (03F7) [23:50:23]Malloc new data [23:50:23]SetTLVBufToDocument err=0 [23:50:23]Processing tag 1007 (03EF) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1014 (03F6) [23:50:23]Malloc new data [23:50:23]Processing tag 1015 (03F7) [23:50:23]Malloc new data [23:50:23]SetTLVBufToDocument err=0 [23:50:23]Processing tag 1007 (03EF) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1014 (03F6) [23:50:23]Malloc new data [23:50:23]Processing tag 1015 (03F7) [23:50:23]Malloc new data [23:50:23]SetTLVBufToDocument err=0 [23:50:23]SetTLVBufToDocument err=0 [23:50:23]SetTLVBufToDocument err=0 [23:50:23]Processing tag 1130 (046A) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1135 (046F) [23:50:23]Malloc new data [23:50:23]Processing tag 1201 (04B1) [23:50:23]Malloc new data [23:50:23]Processing tag 1136 (0470) [23:50:23]Malloc new data [23:50:23]Processing tag 1138 (0472) [23:50:23]Malloc new data [23:50:23]Processing tag 1024 (0400) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1006 (03EE) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1010 (03F2) [23:50:23]Malloc new data [23:50:23]Processing tag 1011 (03F3) [23:50:23]Malloc new data [23:50:23]SetTLVBufToDocument err=0 [23:50:23]Processing tag 1006 (03EE) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1010 (03F2) [23:50:23]Malloc new data [23:50:23]Processing tag 1011 (03F3) [23:50:23]Malloc new data [23:50:23]SetTLVBufToDocument err=0 [23:50:23]Processing tag 1007 (03EF) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1014 (03F6) [23:50:23]Malloc new data [23:50:23]Processing tag 1015 (03F7) [23:50:23]Malloc new data [23:50:23]SetTLVBufToDocument err=0 [23:50:23]Processing tag 1007 (03EF) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1014 (03F6) [23:50:23]Malloc new data [23:50:23]Processing tag 1015 (03F7) [23:50:23]Malloc new data [23:50:23]SetTLVBufToDocument err=0 [23:50:23]Processing tag 1007 (03EF) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1014 (03F6) [23:50:23]Malloc new data [23:50:23]Processing tag 1015 (03F7) [23:50:23]Malloc new data [23:50:23]SetTLVBufToDocument err=0 [23:50:23]Processing tag 1007 (03EF) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1014 (03F6) [23:50:23]Malloc new data [23:50:23]Processing tag 1015 (03F7) [23:50:23]Malloc new data [23:50:23]SetTLVBufToDocument err=0 [23:50:23]Processing tag 1007 (03EF) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1014 (03F6) [23:50:23]Malloc new data [23:50:23]Processing tag 1015 (03F7) [23:50:23]Malloc new data [23:50:23]SetTLVBufToDocument err=0 [23:50:23]Processing tag 1007 (03EF) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1014 (03F6) [23:50:23]Malloc new data [23:50:23]Processing tag 1015 (03F7) [23:50:23]Malloc new data [23:50:23]SetTLVBufToDocument err=0 [23:50:23]Processing tag 1007 (03EF) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1014 (03F6) [23:50:23]Malloc new data [23:50:23]Processing tag 1015 (03F7) [23:50:23]Malloc new data [23:50:23]SetTLVBufToDocument err=0 [23:50:23]SetTLVBufToDocument err=0 [23:50:23]SetTLVBufToDocument err=0 [23:50:23]Processing tag 1131 (046B) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1135 (046F) [23:50:23]Malloc new data [23:50:23]Processing tag 1201 (04B1) [23:50:23]Malloc new data [23:50:23]Processing tag 1136 (0470) [23:50:23]Malloc new data [23:50:23]Processing tag 1138 (0472) [23:50:23]Malloc new data [23:50:23]Processing tag 1024 (0400) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1006 (03EE) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1010 (03F2) [23:50:23]Malloc new data [23:50:23]Processing tag 1011 (03F3) [23:50:23]Malloc new data [23:50:23]SetTLVBufToDocument err=0 [23:50:23]Processing tag 1006 (03EE) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1010 (03F2) [23:50:23]Malloc new data [23:50:23]Processing tag 1011 (03F3) [23:50:23]Malloc new data [23:50:23]SetTLVBufToDocument err=0 [23:50:23]Processing tag 1007 (03EF) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1014 (03F6) [23:50:23]Malloc new data [23:50:23]Processing tag 1015 (03F7) [23:50:23]Malloc new data [23:50:23]SetTLVBufToDocument err=0 [23:50:23]Processing tag 1007 (03EF) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1014 (03F6) [23:50:23]Malloc new data [23:50:23]Processing tag 1015 (03F7) [23:50:23]Malloc new data [23:50:23]SetTLVBufToDocument err=0 [23:50:23]Processing tag 1007 (03EF) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1014 (03F6) [23:50:23]Malloc new data [23:50:23]Processing tag 1015 (03F7) [23:50:23]Malloc new data [23:50:23]SetTLVBufToDocument err=0 [23:50:23]Processing tag 1007 (03EF) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1014 (03F6) [23:50:23]Malloc new data [23:50:23]Processing tag 1015 (03F7) [23:50:23]Malloc new data [23:50:23]SetTLVBufToDocument err=0 [23:50:23]Processing tag 1007 (03EF) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1014 (03F6) [23:50:23]Malloc new data [23:50:23]Processing tag 1015 (03F7) [23:50:23]Malloc new data [23:50:23]SetTLVBufToDocument err=0 [23:50:23]Processing tag 1007 (03EF) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1014 (03F6) [23:50:23]Malloc new data [23:50:23]Processing tag 1015 (03F7) [23:50:23]Malloc new data [23:50:23]SetTLVBufToDocument err=0 [23:50:23]Processing tag 1007 (03EF) [23:50:23]Load OK [23:50:23]SetTLVBufToDocument [23:50:23]Processing tag 1014 (03F6) [23:50:23]Malloc new data [23:50:23]Processing tag 1015 (03F7) [23:50:23]Malloc new data [23:50:23]SetTLVBufToDocument err=0 [23:50:23]SetTLVBufToDocument err=0 [23:50:23]SetTLVBufToDocument err=0 [23:50:23]Processing tag 1132 (046C) [23:50:23]Load OK [23:50:24]SetTLVBufToDocument [23:50:24]Processing tag 1135 (046F) [23:50:24]Malloc new data [23:50:24]Processing tag 1201 (04B1) [23:50:24]Malloc new data [23:50:24]Processing tag 1136 (0470) [23:50:24]Malloc new data [23:50:24]Processing tag 1138 (0472) [23:50:24]Malloc new data [23:50:24]Processing tag 1024 (0400) [23:50:24]Load OK [23:50:24]SetTLVBufToDocument [23:50:24]Processing tag 1006 (03EE) [23:50:24]Load OK [23:50:24]SetTLVBufToDocument [23:50:24]Processing tag 1010 (03F2) [23:50:24]Malloc new data [23:50:24]Processing tag 1011 (03F3) [23:50:24]Malloc new data [23:50:24]SetTLVBufToDocument err=0 [23:50:24]Processing tag 1006 (03EE) [23:50:24]Load OK [23:50:24]SetTLVBufToDocument [23:50:24]Processing tag 1010 (03F2) [23:50:24]Malloc new data [23:50:24]Processing tag 1011 (03F3) [23:50:24]Malloc new data [23:50:24]SetTLVBufToDocument err=0 [23:50:24]Processing tag 1007 (03EF) [23:50:24]Load OK [23:50:24]SetTLVBufToDocument [23:50:24]Processing tag 1014 (03F6) [23:50:24]Malloc new data [23:50:24]Processing tag 1015 (03F7) [23:50:24]Malloc new data [23:50:24]SetTLVBufToDocument err=0 [23:50:24]Processing tag 1007 (03EF) [23:50:24]Load OK [23:50:24]SetTLVBufToDocument [23:50:24]Processing tag 1014 (03F6) [23:50:24]Malloc new data [23:50:24]Processing tag 1015 (03F7) [23:50:24]Malloc new data [23:50:24]SetTLVBufToDocument err=0 [23:50:24]Processing tag 1007 (03EF) [23:50:24]Load OK [23:50:24]SetTLVBufToDocument [23:50:24]Processing tag 1014 (03F6) [23:50:24]Malloc new data [23:50:24]Processing tag 1015 (03F7) [23:50:24]Malloc new data [23:50:24]SetTLVBufToDocument err=0 [23:50:24]Processing tag 1007 (03EF) [23:50:24]Load OK [23:50:24]SetTLVBufToDocument [23:50:24]Processing tag 1014 (03F6) [23:50:24]Malloc new data [23:50:24]Processing tag 1015 (03F7) [23:50:24]Malloc new data [23:50:24]SetTLVBufToDocument err=0 [23:50:24]Processing tag 1007 (03EF) [23:50:24]Load OK [23:50:24]SetTLVBufToDocument [23:50:24]Processing tag 1014 (03F6) [23:50:24]Malloc new data [23:50:24]Processing tag 1015 (03F7) [23:50:24]Malloc new data [23:50:24]SetTLVBufToDocument err=0 [23:50:24]Processing tag 1007 (03EF) [23:50:24]Load OK [23:50:24]SetTLVBufToDocument [23:50:24]Processing tag 1014 (03F6) [23:50:24]Malloc new data [23:50:24]Processing tag 1015 (03F7) [23:50:24]Malloc new data [23:50:24]SetTLVBufToDocument err=0 [23:50:24]Processing tag 1007 (03EF) [23:50:24]Load OK [23:50:24]SetTLVBufToDocument [23:50:24]Processing tag 1014 (03F6) [23:50:24]Malloc new data [23:50:24]Processing tag 1015 (03F7) [23:50:24]Malloc new data [23:50:24]SetTLVBufToDocument err=0 [23:50:24]SetTLVBufToDocument err=0 [23:50:24]SetTLVBufToDocument err=0 [23:50:24]Processing tag 1133 (046D) [23:50:24]Malloc new data [23:50:24]SetTLVBufToDocument err=0 [23:50:24]Processing tag 1077 (0435) [23:50:24]Malloc new data [23:50:24]SetTLVBufToDocument err=0 [23:50:24]Malloc new data [23:50:24]SAM_PROTO_GetFMData [23:50:24]wFMCommunicate request_size=4 [23:50:24]MH_SAM_APDU [23:50:24]CAPDU: 80 13 03 00 [23:50:24]Write to MH i2c: E2 08 00 30 28 80 13 03 00 00 00 00 00 D7 [23:50:24]OFD Sender: No OFD packet to send [23:50:24]Write i2c OK [23:50:24]MH_I2C_Read... [23:50:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:50:24]Read from MH i2c: E2 [23:50:24]MH_I2C_Read... [23:50:24]Read from MH i2c: E2 FD 00 [23:50:24]MH_I2C_Read... [23:50:24]Read from MH i2c: E2 FD 00 30 28 00 C5 04 85 04 C1 04 6E 04 04 00 FC CB 01 00 69 04 A3 00 6F 04 04 00 72 BE 01 00 B1 04 05 00 78 ED 5D 75 03 70 04 05 00 98 B7 97 A7 02 72 04 04 00 E0 35 C6 CD 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 0C AF 0B 5E 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 50 2D D6 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 9C 00 6F 04 04 00 8A 0D 00 00 B1 04 04 00 3C E3 13 3B 70 04 04 00 3C E3 13 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 11 44 46 06 EF 03 09 90 00 F5 [23:50:25]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 FC CB 01 00 69 04 A3 00 6F 04 04 00 72 BE 01 00 B1 04 05 00 78 ED 5D 75 03 70 04 05 00 98 B7 97 A7 02 72 04 04 00 E0 35 C6 CD 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 0C AF 0B 5E 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 50 2D D6 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 9C 00 6F 04 04 00 8A 0D 00 00 B1 04 04 00 3C E3 13 3B 70 04 04 00 3C E3 13 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 11 44 46 06 EF 03 09 90 00 [23:50:25]wFMCommunicate OK [23:50:25]wFMCommunicate request_size=4 [23:50:25]MH_SAM_APDU [23:50:25]CAPDU: 80 17 00 00 [23:50:25]Write to MH i2c: E2 08 00 31 28 80 17 00 00 00 00 00 00 D9 [23:50:25]Write i2c OK [23:50:25]MH_I2C_Read... [23:50:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:25]Read from MH i2c: E2 [23:50:25]MH_I2C_Read... [23:50:25]Read from MH i2c: E2 FD 00 [23:50:25]MH_I2C_Read... [23:50:25]Read from MH i2c: E2 FD 00 31 28 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F DA 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 0D [23:50:25]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F DA 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:50:25]wFMCommunicate OK [23:50:25]wFMCommunicate request_size=4 [23:50:25]MH_SAM_APDU [23:50:25]CAPDU: 80 17 00 00 [23:50:25]Write to MH i2c: E2 08 00 32 28 80 17 00 00 00 00 00 00 DA [23:50:26]Write i2c OK [23:50:26]MH_I2C_Read... [23:50:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:26]Read from MH i2c: E2 [23:50:26]MH_I2C_Read... [23:50:26]Read from MH i2c: E2 FD 00 [23:50:26]MH_I2C_Read... [23:50:26]Read from MH i2c: E2 FD 00 32 28 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 EC [23:50:26]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:50:26]wFMCommunicate OK [23:50:26]wFMCommunicate request_size=4 [23:50:26]MH_SAM_APDU [23:50:26]CAPDU: 80 17 00 00 [23:50:26]Write to MH i2c: E2 08 00 33 28 80 17 00 00 00 00 00 00 DB [23:50:26]Write i2c OK [23:50:26]MH_I2C_Read... [23:50:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:26]Read from MH i2c: E2 [23:50:26]MH_I2C_Read... [23:50:26]Read from MH i2c: E2 FD 00 [23:50:26]MH_I2C_Read... [23:50:26]Read from MH i2c: E2 FD 00 33 28 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 67 [23:50:27]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:50:27]wFMCommunicate OK [23:50:27]wFMCommunicate request_size=4 [23:50:27]MH_SAM_APDU [23:50:27]CAPDU: 80 17 00 00 [23:50:27]Write to MH i2c: E2 08 00 34 28 80 17 00 00 00 00 00 00 DC [23:50:27]Write i2c OK [23:50:27]MH_I2C_Read... [23:50:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:50:27]Read from MH i2c: E2 [23:50:27]MH_I2C_Read... [23:50:27]Read from MH i2c: E2 E2 00 [23:50:27]MH_I2C_Read... [23:50:27]Read from MH i2c: E2 E2 00 34 28 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BA [23:50:27]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:50:28]wFMCommunicate OK [23:50:28]SAM_PROTO_GetFMData done [23:50:28]Malloc new data [23:50:28]Malloc new data [23:50:28]Malloc new data [23:50:28]Malloc new data [23:50:28]KKMLoadAndSignCloseShiftData err=0 [23:50:28]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Хошимов З. 28.07.2024 23:50 Смена: 433 РНМ: 0000000000092660 ЗНМ: 0300000044 СНО: Общий режим Чеков за смену: 291 ФД за смену: 293 Всего чеков: 291 ИТОГИ ПРИХОД Чеков: 283 Общий итог: 465501.00 Итого наличными: 143352.00 Итого безнал.: 322149.00 НДС 0% : 0.00 НДС 12% : 49443.22 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 4120.09 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 8 Общий итог: 6360.00 Итого наличными: 6360.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 675.57 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 56.29 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 136992.00 НС Приход: 148539918.00 НС Возвр.Прихода: 9911591.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 118623 ФМ: 0000000000874939 ФПД: 255532503190500 [23:50:28]StoreToDocumentArchive [23:50:28]shift 433 fd 118623 [23:50:28]save to /storage/0433/doc_00118623 [23:50:28]save last doc name /storage/0433/doc_00118623 to /storage/kkm_last_doc_name [23:50:28]save OK [23:50:28]Clear old archive folders... [23:50:28]Remove dir /storage/0266 [23:50:28]opendir ok [23:50:28]file . [23:50:28]file .. [23:50:28]file doc_1722210583 [23:50:28]remove file /storage/0266/doc_1722210583 [23:50:28]remove dir /storage/0266 [23:50:28]NVStorageSaveData kkm_registers [23:50:28]File name is /storage/kkm_registers [23:50:28]Write 24 bytes [23:50:28]NVStorageSaveData done [23:50:28]NVStorageSaveData kkm_registers [23:50:28]File name is /storage/kkm_registers [23:50:28]Write 24 bytes [23:50:28]NVStorageSaveData done [23:50:28]ProcessDocumentItem done err = 0, tmpTLVsize=1387 [23:50:28]tlvbuf is 01F08180 [23:50:28]SAM_PROTO_ClearQueue [23:50:28]wFMCommunicate request_size=4 [23:50:28]MH_SAM_APDU [23:50:28]CAPDU: 80 09 00 00 [23:50:28]Write to MH i2c: E2 08 00 35 28 80 09 00 00 00 00 00 00 CF [23:50:28]Write i2c OK [23:50:28]MH_I2C_Read... [23:50:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:50:28]Read from MH i2c: E2 [23:50:28]MH_I2C_Read... [23:50:28]Read from MH i2c: E2 03 00 [23:50:28]MH_I2C_Read... [23:50:28]Read from MH i2c: E2 03 00 35 28 00 90 00 D1 [23:50:28]RAPDU: 90 00 [23:50:28]wFMCommunicate OK [23:50:28]SAM_PROTO_ClearQueue done [23:50:28]KKMCreateOFDPacket [23:50:28]OFDProtocolAddRootSTLVToBuf [23:50:28]FM_MakeSignedData [23:50:28]FM_MakeSignedData [23:50:28]SAM_PROTO_SignData [23:50:28]wFMCommunicate request_size=4 [23:50:28]MH_SAM_APDU [23:50:28]CAPDU: 80 0D 01 02 [23:50:28]Write to MH i2c: E2 08 00 36 28 80 0D 01 02 00 00 00 00 D7 [23:50:28]Write i2c OK [23:50:28]MH_I2C_Read... [23:50:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:50:28]Read from MH i2c: E2 [23:50:28]MH_I2C_Read... [23:50:28]Read from MH i2c: E2 03 00 [23:50:28]MH_I2C_Read... [23:50:28]Read from MH i2c: E2 03 00 36 28 00 90 00 D2 [23:50:28]RAPDU: 90 00 [23:50:28]wFMCommunicate OK [23:50:28]wFMCommunicate request_size=255 [23:50:28]MH_SAM_APDU [23:50:28]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 13 00 D0 A5 D0 BE D1 88 D0 B8 D0 BC D0 BE D0 B2 20 D0 97 2E 20 F4 03 04 00 3E D9 A6 66 0E 04 04 00 B1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 5E 04 04 00 23 01 00 00 57 04 04 00 25 01 00 00 AA 04 DF 04 6E 04 04 00 23 01 00 00 69 04 A5 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 54 4C C6 02 70 04 03 00 E0 BC DA 72 04 04 00 74 8F EB 01 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 C2 71 4B 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 [23:50:28]Write to MH i2c: E2 02 01 37 28 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 13 00 D0 A5 D0 BE D1 88 D0 B8 D0 BC D0 BE D0 B2 20 D0 97 2E 20 F4 03 04 00 3E D9 A6 66 0E 04 04 00 B1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 5E 04 04 00 23 01 00 00 57 04 04 00 25 01 00 00 AA 04 DF 04 6E 04 04 00 23 01 00 00 69 04 A5 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 54 4C C6 02 70 04 03 00 E0 BC DA 72 04 04 00 74 8F EB 01 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 C2 71 4B 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 00 00 4E [23:50:28]Write i2c OK [23:50:28]MH_I2C_Read... [23:50:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:28]Read from MH i2c: E2 [23:50:28]MH_I2C_Read... [23:50:28]Read from MH i2c: E2 03 00 [23:50:28]MH_I2C_Read... [23:50:28]Read from MH i2c: E2 03 00 37 28 00 90 00 D3 [23:50:29]RAPDU: 90 00 [23:50:29]wFMCommunicate OK [23:50:29]wFMCommunicate request_size=255 [23:50:29]MH_SAM_APDU [23:50:29]CAPDU: 80 0D 02 02 FA 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 69 49 06 6A 04 A0 00 6F 04 04 00 08 00 00 00 B1 04 03 00 60 B4 09 70 04 03 00 60 B4 09 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 07 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD 15 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 [23:50:29]Write to MH i2c: E2 02 01 38 28 80 0D 02 02 FA 00 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 69 49 06 6A 04 A0 00 6F 04 04 00 08 00 00 00 B1 04 03 00 60 B4 09 70 04 03 00 60 B4 09 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 07 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD 15 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 61 [23:50:29]Write i2c OK [23:50:29]MH_I2C_Read... [23:50:29]OFD Sender: No OFD packet to send [23:50:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:29]Read from MH i2c: E2 [23:50:29]MH_I2C_Read... [23:50:29]Read from MH i2c: E2 03 00 [23:50:29]MH_I2C_Read... [23:50:29]Read from MH i2c: E2 03 00 38 28 00 90 00 D4 [23:50:29]RAPDU: 90 00 [23:50:29]wFMCommunicate OK [23:50:29]wFMCommunicate request_size=255 [23:50:29]MH_SAM_APDU [23:50:29]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 [23:50:29]Write to MH i2c: E2 02 01 39 28 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 9F [23:50:30]Write i2c OK [23:50:30]MH_I2C_Read... [23:50:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:30]Read from MH i2c: E2 [23:50:30]MH_I2C_Read... [23:50:30]Read from MH i2c: E2 03 00 [23:50:30]MH_I2C_Read... [23:50:30]Read from MH i2c: E2 03 00 39 28 00 90 00 D5 [23:50:30]RAPDU: 90 00 [23:50:30]wFMCommunicate OK [23:50:30]wFMCommunicate request_size=255 [23:50:30]MH_SAM_APDU [23:50:30]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 [23:50:30]Write to MH i2c: E2 02 01 3A 28 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 98 [23:50:30]Write i2c OK [23:50:30]MH_I2C_Read... [23:50:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:31]Read from MH i2c: E2 [23:50:31]MH_I2C_Read... [23:50:31]Read from MH i2c: E2 03 00 [23:50:31]MH_I2C_Read... [23:50:31]Read from MH i2c: E2 03 00 3A 28 00 90 00 D6 [23:50:31]RAPDU: 90 00 [23:50:31]wFMCommunicate OK [23:50:31]wFMCommunicate request_size=255 [23:50:31]MH_SAM_APDU [23:50:31]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 [23:50:31]Write to MH i2c: E2 02 01 3B 28 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 69 [23:50:31]Write i2c OK [23:50:31]MH_I2C_Read... [23:50:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:31]Read from MH i2c: E2 [23:50:31]MH_I2C_Read... [23:50:31]Read from MH i2c: E2 03 00 [23:50:31]MH_I2C_Read... [23:50:31]Read from MH i2c: E2 03 00 3B 28 00 90 00 D7 [23:50:31]RAPDU: 90 00 [23:50:31]wFMCommunicate OK [23:50:31]wFMCommunicate request_size=146 [23:50:31]MH_SAM_APDU [23:50:31]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 5F CF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 E8 67 CC 14 CB E4 [23:50:32]Write to MH i2c: E2 95 00 3C 28 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 5F CF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 E8 67 CC 14 CB E4 00 00 40 [23:50:32]Write i2c OK [23:50:32]MH_I2C_Read... [23:50:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:32]Read from MH i2c: E2 [23:50:32]MH_I2C_Read... [23:50:32]Read from MH i2c: E2 03 00 [23:50:32]MH_I2C_Read... [23:50:32]Read from MH i2c: E2 03 00 3C 28 00 90 00 D8 [23:50:32]RAPDU: 90 00 [23:50:32]wFMCommunicate OK [23:50:32]wFMCommunicate request_size=4 [23:50:32]MH_SAM_APDU [23:50:32]CAPDU: 80 0D 03 02 [23:50:32]Write to MH i2c: E2 08 00 3D 28 80 0D 03 02 00 00 00 00 E0 [23:50:32]Write i2c OK [23:50:32]MH_I2C_Read... [23:50:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:50:32]Read from MH i2c: E2 [23:50:32]MH_I2C_Read... [23:50:32]Read from MH i2c: E2 0B 00 [23:50:32]MH_I2C_Read... [23:50:32]Read from MH i2c: E2 0B 00 3D 28 00 3B CF D8 55 58 19 FA 57 90 00 DA [23:50:32]RAPDU: 3B CF D8 55 58 19 FA 57 90 00 [23:50:32]wFMCommunicate OK [23:50:32]SAM_PROTO_SignData done [23:50:32]FM_MakeSignedData done [23:50:32]CreateOFDProtocolMessage [23:50:32]wFMCommunicate request_size=4 [23:50:32]MH_SAM_APDU [23:50:32]CAPDU: 80 11 00 00 [23:50:32]Write to MH i2c: E2 08 00 3E 28 80 11 00 00 00 00 00 00 E0 [23:50:32]Write i2c OK [23:50:32]MH_I2C_Read... [23:50:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:32]Read from MH i2c: E2 [23:50:32]MH_I2C_Read... [23:50:32]Read from MH i2c: E2 17 00 [23:50:32]MH_I2C_Read... [23:50:32]Read from MH i2c: E2 17 00 3E 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3B [23:50:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:50:32]wFMCommunicate OK [23:50:32]CreateOFDProtocolMessage done [23:50:32]OFDSenderStorePacket 118623 [23:50:32]StoreOFDPacket docnum=118623 [23:50:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 7F 05 00 00 A8 69 77 05 56 D4 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 13 00 D0 A5 D0 BE D1 88 D0 B8 D0 BC D0 BE D0 B2 20 D0 97 2E 20 F4 03 04 00 3E D9 A6 66 0E 04 04 00 B1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 5E 04 04 00 23 01 00 00 57 04 04 00 25 01 00 00 AA 04 DF 04 6E 04 04 00 23 01 00 00 69 04 A5 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 54 4C C6 02 70 04 03 00 E0 BC DA 72 04 04 00 74 8F EB 01 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 C2 71 4B 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 69 49 06 6A 04 A0 00 6F 04 04 00 08 00 00 00 B1 04 03 00 60 B4 09 70 04 03 00 60 B4 09 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 07 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD 15 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 5F CF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 E8 67 CC 14 CB E4 3B CF D8 55 58 19 FA 57 [23:50:32]CheckFolder [23:50:32]dirname=/storage/ofd_packets [23:50:32]CheckFolder done [23:50:32]ProducePacketName [23:50:32]name=ofd_packets/00118623 [23:50:32]NVStorageSaveData ofd_packets/00118623 [23:50:32]File name is /storage/ofd_packets/00118623 [23:50:32]Write 1437 bytes [23:50:32]NVStorageSaveData done [23:50:32]OFDSenderStorePacket done [23:50:32]KKMCreateOFDPacket done [23:50:33]NVStorageSaveData kkm_last_timestamp [23:50:33]File name is /storage/kkm_last_timestamp [23:50:33]Write 4 bytes [23:50:33]NVStorageSaveData done [23:50:33]ExternCall_PrintAddStr [23:50:33]wPrintStart [23:50:33]Write to MH i2c: 01 00 00 3F 28 67 [23:50:33]Write i2c OK [23:50:33]MH_I2C_Read... [23:50:33]Read from MH i2c: 01 [23:50:33]MH_I2C_Read... [23:50:33]Read from MH i2c: 01 07 00 [23:50:33]MH_I2C_Read... [23:50:33]Read from MH i2c: 01 07 00 3F 28 00 00 00 00 00 FF 0F 7C [23:50:33]RasterBufferAndPrint [23:50:33]line Отчет о закрытии смены [23:50:33]line ФФД: 1.0 [23:50:33]line ИНН: 02508201610067 [23:50:33]line Кассир: Хошимов З. [23:50:33]line 28.07.2024 23:50 [23:50:33]line Смена: 433 [23:50:33]line РНМ: 0000000000092660 [23:50:33]line ЗНМ: 0300000044 [23:50:33]line СНО: Общий режим [23:50:33]line Чеков за смену: 291 [23:50:33]line ФД за смену: 293 [23:50:33]line Всего чеков: 291 [23:50:33]line ИТОГИ ПРИХОД [23:50:33]line Чеков: 283 [23:50:33]line Общий итог: 465501.00 [23:50:33]line Итого наличными: 143352.00 [23:50:33]line Итого безнал.: 322149.00 [23:50:33]line НДС 0% : 0.00 [23:50:33]line НДС 12% : 49443.22 [23:50:33]line НСП 0% : 0.00 [23:50:33]line НСП 1,50% : 0.00 [23:50:33]line НСП 0,50% : 0.00 [23:50:33]line НСП 5% : 0.00 [23:50:33]line НСП 3% : 0.00 [23:50:33]line НСП 2% : 0.00 [23:50:33]line НСП 1% : 4120.09 [23:50:33]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:50:33]line Чеков: 8 [23:50:33]line Общий итог: 6360.00 [23:50:33]line Итого наличными: 6360.00 [23:50:33]line Итого безнал.: 0.00 [23:50:33]line НДС 0% : 0.00 [23:50:33]line НДС 12% : 675.57 [23:50:33]line НСП 0% : 0.00 [23:50:33]line НСП 1,50% : 0.00 [23:50:33]line НСП 0,50% : 0.00 [23:50:33]line НСП 5% : 0.00 [23:50:33]line НСП 3% : 0.00 [23:50:33]line НСП 2% : 0.00 [23:50:33]line НСП 1% : 56.29 [23:50:33]line ИТОГИ РАСХОД [23:50:33]line Чеков: 0 [23:50:33]line Общий итог: 0.00 [23:50:33]line Итого наличными: 0.00 [23:50:33]line Итого безнал.: 0.00 [23:50:33]line НДС 0% : 0.00 [23:50:33]line НДС 12% : 0.00 [23:50:33]line НСП 0% : 0.00 [23:50:33]line НСП 1,50% : 0.00 [23:50:33]line НСП 0,50% : 0.00 [23:50:33]line НСП 5% : 0.00 [23:50:33]line НСП 3% : 0.00 [23:50:33]line НСП 2% : 0.00 [23:50:33]line НСП 1% : 0.00 [23:50:33]line ИТОГИ ВОЗВРАТ РАСХОДА [23:50:33]line Чеков: 0 [23:50:33]line Общий итог: 0.00 [23:50:33]line Итого наличными: 0.00 [23:50:33]line Итого безнал.: 0.00 [23:50:33]line НДС 0% : 0.00 [23:50:33]line НДС 12% : 0.00 [23:50:33]line НСП 0% : 0.00 [23:50:33]line НСП 1,50% : 0.00 [23:50:33]line НСП 0,50% : 0.00 [23:50:33]line НСП 5% : 0.00 [23:50:33]line НСП 3% : 0.00 [23:50:33]line НСП 2% : 0.00 [23:50:33]line НСП 1% : 0.00 [23:50:33]line Сумма внесений: 0.00 [23:50:33]line Сумма выплат: 0.00 [23:50:33]line Нал. в кассе: 136992.00 [23:50:33]line НС Приход: 148539918.00 [23:50:33]line НС Возвр.Прихода: 9911591.00 [23:50:33]line НС Расход: 0.00 [23:50:33]line НС Возвр.Расхода: 0.00 [23:50:33]line ФД: 118623 [23:50:33]line ФМ: 0000000000874939 [23:50:33]line ФПД: 255532503190500 [23:50:33]OFD Sender: Processing packet 118623 [packets to send 86, broken 85] [23:50:33]ProducePacketName [23:50:33]name=ofd_packets/00118623 [23:50:33]OFD Sender: To server: pG, [23:50:33]CommunicateWithHost lk.salyk.kg:30040 [23:50:33]ConnectInit lk.salyk.kg [23:50:33]written 0, free lines is 4095 [23:50:33]Connected sock=10 [23:50:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 7F 05 00 00 A8 69 77 05 56 D4 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 13 00 D0 A5 D0 BE D1 88 D0 B8 D0 BC D0 BE D0 B2 20 D0 97 2E 20 F4 03 04 00 3E D9 A6 66 0E 04 04 00 B1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 5E 04 04 00 23 01 00 00 57 04 04 00 25 01 00 00 AA 04 DF 04 6E 04 04 00 23 01 00 00 69 04 A5 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 54 4C C6 02 70 04 03 00 E0 BC DA 72 04 04 00 74 8F EB 01 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 C2 71 4B 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 69 49 06 6A 04 A0 00 6F 04 04 00 08 00 00 00 B1 04 03 00 60 B4 09 70 04 03 00 60 B4 09 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 07 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD 15 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 Write to MH i2c: 00 01 EF 00 03 00 0A 8F 00 28 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A B7 00 [23:50:34]F6 Write i2c OK [23:50:34]03 MH_I2C_Read... [23:50:34]01 Read from MH i2c: 00 01 04 [23:50:34]F7 MH_I2C_Read... [23:50:34]03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF Read from MH i2c: 03 01 0A 07 00 00 F6 [23:50:34]03 MH_I2C_Read... [23:50:34]01 00 02 F7 03 01 00 00 EF 03 0A 00 Read from MH i2c: F6 01 07 03 00 01 8F 00 28 01 00 F7 00 03 00 01 00 00 00 00 77 6D 0B 04 40 4C [23:50:34]02 RasterBufferAndPrint [23:50:34]78 line [23:50:34]04 line [23:50:34]04 line [23:50:34]00 line [23:50:34]line [23:50:34]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 written 0, free lines is 3089 [23:50:34]F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 MH_Cut [23:50:34]03 Write to MH i2c: 00 D1 00 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 00 EF 96 03 28 09 01 00 90 F6 [23:50:34]03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 Write i2c OK [23:50:34]01 MH_I2C_Read... [23:50:34]00 Read from MH i2c: 04 D1 F7 [23:50:34]03 00 00 EF 03 09 00 F6 03 01 00 05 F7 MH_I2C_Read... [23:50:34]03 Read from MH i2c: 00 D1 00 01 EF 00 03 [23:50:34]09 00 F6 03 01 00 06 F7 03 00 00 D0 04 MH_I2C_Read... [23:50:34]8D Read from MH i2c: 00 D1 6F 01 04 00 04 96 28 00 8F [23:50:34]Write to MH i2c: 01 00 00 97 28 BF [23:50:34]00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 Write i2c OK [23:50:34]00 MH_I2C_Read... [23:50:34]04 F7 03 00 00 EF 03 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 5F CF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 E8 67 CC 14 CB E4 3B CF D8 55 58 19 FA 57 [23:50:35]*** Cut start [23:50:35]*** Partial cut [23:50:35]*** CUTSNS_PIN = 1 [23: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 39 33 39 4F 00 00 00 7A 53 47 00 65 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 39 33 39 10 04 04 00 5F CF 01 00 F4 03 04 00 DA 86 A6 66 B6 04 01 00 00 2B A4 7F 63 20 A8 5C B4 [23:50:35]CommunicateWithHost err = 0 [23:50:35]CheckOFDResponse [23:50:35]1017 (14) - 77093643461234 [23:50:35]*** CUTSNS_PIN = 0 [23:50:35]1041 (16) - 0000000000874939 [23:50:35]1040 (4) - 118623 [23:50:35]1012 (4) - 28.07.2024 17:58 [23:50:35]1206 (1) - 0 [23:50:35]OFD Sender: Remove packet 118623 [23:50:35]ProducePacketName [23:50:35]name=ofd_packets/00118623 [23:50:35]NVStorageDeleteData [23:50:35]*** Brake cut motor [23:50:35]Read from MH i2c: *** Stop cut motor [23:50:35]01 *** Cut end [23:50:35] [23:50:35]MH_I2C_Read... [23:50:35]Read from MH i2c: 01 07 00 [23:50:35]MH_I2C_Read... [23:50:35]Read from MH i2c: 01 07 00 97 28 00 00 00 00 00 FF 0F D4 [23:50:35]process_action close_shift done [23:50:35]requested_data is exist [23:50:35]produce_requested_data [23:50:35]requested_item fd.num is exist - process it [23:50:35]SAM_PROTO_GetFieldsCounters [23:50:35]wFMCommunicate request_size=4 [23:50:35]MH_SAM_APDU [23:50:35]CAPDU: 80 13 00 00 [23:50:35]Write to MH i2c: E2 08 00 98 28 80 13 00 00 00 00 00 00 3C [23:50:35]Write i2c OK [23:50:35]MH_I2C_Read... [23:50:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:35]Read from MH i2c: E2 [23:50:35]MH_I2C_Read... [23:50:35]Read from MH i2c: E2 62 00 [23:50:35]MH_I2C_Read... [23:50:35]OFD Sender: No OFD packet to send [23:50:35]Read from MH i2c: E2 62 00 98 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5F CF 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 B1 [23:50:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5F CF 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:50:36]wFMCommunicate OK [23:50:36]SAM_PROTO_GetFieldsCounters done [23:50:36]requested_item shift.num is exist - process it [23:50:36]requested_item shift.opened is exist - process it [23:50:36]req_shift_opened [23:50:36]FM_GetShiftState [23:50:36]SAM_PROTO_GetShiftState [23:50:36]wFMCommunicate request_size=4 [23:50:36]MH_SAM_APDU [23:50:36]CAPDU: 80 13 01 00 [23:50:36]Write to MH i2c: E2 08 00 99 28 80 13 01 00 00 00 00 00 3E [23:50:36]Write i2c OK [23:50:36]MH_I2C_Read... [23:50:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:36]Read from MH i2c: E2 [23:50:36]MH_I2C_Read... [23:50:36]Read from MH i2c: E2 0E 00 [23:50:36]MH_I2C_Read... [23:50:36]Read from MH i2c: E2 0E 00 99 28 00 09 00 00 00 00 00 00 00 00 00 00 90 00 49 [23:50:36]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:50:36]wFMCommunicate OK [23:50:36]SAM_PROTO_GetShiftState done [23:50:36]FM_GetShiftState done [23:50:36]req_shift_opened done [23:50:36]requested_item shift.open_date is exist - process it [23:50:36]req_shift_open_date [23:50:36]FM_GetShiftState [23:50:36]SAM_PROTO_GetShiftState [23:50:36]wFMCommunicate request_size=4 [23:50:36]MH_SAM_APDU [23:50:36]CAPDU: 80 13 01 00 [23:50:36]Write to MH i2c: E2 08 00 9A 28 80 13 01 00 00 00 00 00 3F [23:50:36]Write i2c OK [23:50:36]MH_I2C_Read... [23:50:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:36]Read from MH i2c: E2 [23:50:36]MH_I2C_Read... [23:50:36]Read from MH i2c: E2 0E 00 [23:50:36]MH_I2C_Read... [23:50:36]Read from MH i2c: E2 0E 00 9A 28 00 09 00 00 00 00 00 00 00 00 00 00 90 00 4A [23:50:36]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:50:36]wFMCommunicate OK [23:50:36]SAM_PROTO_GetShiftState done [23:50:36]FM_GetShiftState done [23:50:36]req_shift_open_date done [23:50:36]produce_requested_data done [23:50:36]produce_requested_data return {"fd.num":118623,"shift.num":433,"shift.opened":0,"shift.open_date":0} [23:50:36]process_action_free close_shift [23:50:36]json_value_free [23:50:36]json_value_free done [23:50:36]process_json_proto returns [23:50:36]Send response to host [23:50:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":118623,"shift.num":433,"shift.opened":0,"shift.open_date":0}}} [23:50:36]free response buf [23:50:36]execute_script done [23:50:36]execute_script returns [23:50:36]free content buf [23:50:36]Sock 7.Close socket [23:50:36]Sock 7.Thread stoped [23:50:40]OFD Sender: No OFD packet to send [23:50:45]OFD Sender: No OFD packet to send [23:50:50]OFD Sender: No OFD packet to send [23:50:55]OFD Sender: No OFD packet to send [23:51:00]OFD Sender: No OFD packet to send [23:51:05]OFD Sender: No OFD packet to send [23:51:10]OFD Sender: No OFD packet to send [23:51:15]OFD Sender: No OFD packet to send [23:51:20]OFD Sender: No OFD packet to send [23:51:25]OFD Sender: No OFD packet to send [23:51:30]OFD Sender: No OFD packet to send [23:51:35]OFD Sender: No OFD packet to send [23:51:40]OFD Sender: No OFD packet to send [23:51:45]OFD Sender: No OFD packet to send [23:51:50]OFD Sender: No OFD packet to send [23:51:55]OFD Sender: No OFD packet to send [23:52:00]OFD Sender: No OFD packet to send [23:52:05]OFD Sender: No OFD packet to send [23:52:10]OFD Sender: No OFD packet to send [23:52:15]OFD Sender: No OFD packet to send [23:52:20]OFD Sender: No OFD packet to send [23:52:25]OFD Sender: No OFD packet to send [23:52:30]OFD Sender: No OFD packet to send [23:52:35]OFD Sender: No OFD packet to send [23:52:40]OFD Sender: No OFD packet to send [23:52:45]OFD Sender: No OFD packet to send [23:52:51]OFD Sender: No OFD packet to send [23:52:56]OFD Sender: No OFD packet to send [23:53:01]OFD Sender: No OFD packet to send [23:53:06]OFD Sender: No OFD packet to send [23:53:11]OFD Sender: No OFD packet to send [23:53:16]OFD Sender: No OFD packet to send [23:53:21]OFD Sender: No OFD packet to send [23:53:26]OFD Sender: No OFD packet to send [23:53:31]OFD Sender: No OFD packet to send [23:53:36]OFD Sender: No OFD packet to send [23:53:41]OFD Sender: No OFD packet to send [23:53:46]OFD Sender: No OFD packet to send [23:53:51]OFD Sender: No OFD packet to send [23:53:56]OFD Sender: No OFD packet to send [23:54:01]OFD Sender: No OFD packet to send [23:54:06]OFD Sender: No OFD packet to send [23:54:11]OFD Sender: No OFD packet to send [23:54:16]OFD Sender: No OFD packet to send [23:54:21]OFD Sender: No OFD packet to send [23:54:26]OFD Sender: No OFD packet to send [23:54:31]OFD Sender: No OFD packet to send [23:54:36]OFD Sender: No OFD packet to send [23:54:41]OFD Sender: No OFD packet to send [23:54:46]OFD Sender: No OFD packet to send [23:54:51]OFD Sender: No OFD packet to send [23:54:56]OFD Sender: No OFD packet to send [23:55:01]OFD Sender: No OFD packet to send [23:55:06]OFD Sender: No OFD packet to send [23:55:11]OFD Sender: No OFD packet to send [23:55:16]OFD Sender: No OFD packet to send [23:55:21]OFD Sender: No OFD packet to send [23:55:26]OFD Sender: No OFD packet to send [23:55:31]OFD Sender: No OFD packet to send [23:55:36]OFD Sender: No OFD packet to send [23:55:41]OFD Sender: No OFD packet to send [23:55:46]OFD Sender: No OFD packet to send [23:55:51]OFD Sender: No OFD packet to send [23:55:56]OFD Sender: No OFD packet to send [23:56:01]OFD Sender: No OFD packet to send [23:56:06]OFD Sender: No OFD packet to send [23:56:11]OFD Sender: No OFD packet to send [23:56:16]OFD Sender: No OFD packet to send [23:56:21]OFD Sender: No OFD packet to send [23:56:26]OFD Sender: No OFD packet to send [23:56:31]OFD Sender: No OFD packet to send [23:56:36]OFD Sender: No OFD packet to send [23:56:41]OFD Sender: No OFD packet to send [23:56:46]OFD Sender: No OFD packet to send [23:56:51]OFD Sender: No OFD packet to send [23:56:56]OFD Sender: No OFD packet to send [23:57:01]OFD Sender: No OFD packet to send [23:57:06]OFD Sender: No OFD packet to send [23:57:11]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:41]OFD Sender: No OFD packet to send [23:57:46]OFD Sender: No OFD packet to send [23:57:51]OFD Sender: No OFD packet to send [23:57:56]OFD Sender: No OFD packet to send [23:58:01]OFD Sender: No OFD packet to send [23:58:06]OFD Sender: No OFD packet to send [23:58:11]OFD Sender: No OFD packet to send [23:58:16]OFD Sender: No OFD packet to send [23:58:21]OFD Sender: No OFD packet to send [23:58:26]OFD Sender: No OFD packet to send [23:58:31]OFD Sender: No OFD packet to send [23:58:36]OFD Sender: No OFD packet to send [23:58:41]OFD Sender: No OFD packet to send [23:58:46]OFD Sender: No OFD packet to send [23:58:51]OFD Sender: No OFD packet to send [23:58:56]OFD Sender: No OFD packet to send [23:59:01]OFD Sender: No OFD packet to send [23:59:06]OFD Sender: No OFD packet to send [23:59:11]OFD Sender: No OFD packet to send [23:59:16]OFD Sender: No OFD packet to send [23:59:21]OFD Sender: No OFD packet to send [23:59:26]OFD Sender: No OFD packet to send [23:59:31]OFD Sender: No OFD packet to send [23:59:36]OFD Sender: No OFD packet to send [23:59:41]OFD Sender: No OFD packet to send [23:59:46]OFD Sender: No OFD packet to send [23:59:51]OFD Sender: No OFD packet to send [23:59:56]OFD Sender: No OFD packet to send [00:00:01]OFD Sender: No OFD packet to send [00:00:06]OFD Sender: No OFD packet to send [00:00:11]OFD Sender: No OFD packet to send [00:00:16]OFD Sender: No OFD packet to send [00:00:21]OFD Sender: No OFD packet to send [00:00:26]OFD Sender: No OFD packet to send [00:00:31]OFD Sender: No OFD packet to send [00:00:36]OFD Sender: No OFD packet to send [00:00:41]OFD Sender: No OFD packet to send [00:00:46]OFD Sender: No OFD packet to send [00:00:51]OFD Sender: No OFD packet to send [00:00:56]OFD Sender: No OFD packet to send [00:01:01]OFD Sender: No OFD packet to send [00:01:06]OFD Sender: No OFD packet to send [00:01:11]OFD Sender: No OFD packet to send [00:01:16]OFD Sender: No OFD packet to send [00:01:21]OFD Sender: No OFD packet to send [00:01:26]OFD Sender: No OFD packet to send [00:01:31]OFD Sender: No OFD packet to send [00:01:36]OFD Sender: No OFD packet to send [00:01:41]OFD Sender: No OFD packet to send [00:01:46]OFD Sender: No OFD packet to send [00:01:51]OFD Sender: No OFD packet to send [00:01:56]OFD Sender: No OFD packet to send [00:02:01]OFD Sender: No OFD packet to send [00:02:06]OFD Sender: No OFD packet to send [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03: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]OFD Sender: No OFD packet to send [00:04:41]OFD Sender: No OFD packet to send [00:04:46]OFD Sender: No OFD packet to send [00:04:51]OFD Sender: No OFD packet to send [00:04:56]OFD Sender: No OFD packet to send [00:05:01]OFD Sender: No OFD packet to send [00:05:06]OFD Sender: No OFD packet to send [00:05:11]OFD Sender: No OFD packet to send [00:05:16]OFD Sender: No OFD packet to send [00:05:21]OFD Sender: No OFD packet to send [00:05:26]OFD Sender: No OFD packet to send [00:05:31]OFD Sender: No OFD packet to send [00:05:36]OFD Sender: No OFD packet to send [00:05:41]OFD Sender: No OFD packet to send [00:05:46]OFD Sender: No OFD packet to send [00:05:51]OFD Sender: No OFD packet to send [00:05:56]OFD Sender: No OFD packet to send [00:06:01]OFD Sender: No OFD packet to send [00:06:06]OFD Sender: No OFD packet to send [00:06:11]OFD Sender: No OFD packet to send [00:06:16]OFD Sender: No OFD packet to send [00:06:21]OFD Sender: No OFD packet to send [00:06:26]OFD Sender: No OFD packet to send [00:06:31]OFD Sender: No OFD packet to send [00:06:36]OFD Sender: No OFD packet to send [00:06:41]OFD Sender: No OFD packet to send [00:06:46]OFD Sender: No OFD packet to send [00:06:51]OFD Sender: No OFD packet to send [00:06:56]OFD Sender: No OFD packet to send [00:07:01]OFD Sender: No OFD packet to send [00:07:06]OFD Sender: No OFD packet to send [00:07:11]OFD Sender: No OFD packet to send [00:07:14]accept exits with 9 [00:07:14]New connection [00:07:14]New thread 3067383140 created [00:07:14]Thread 3067239780 joined [00:07:14]Waiting for new connection... [00:07:14] Sock 9.Parse request [00:07:14]Sock 9.Check first char [00:07:14]Sock 9.First char is OK [00:07:14]request: POST /json_proto HTTP/1.0 [00:07:14]Method: POST [00:07:14]URL: /json_proto [00:07:14]Method is POST - this is cgi request [00:07:14]url: /json_proto [00:07:14]query_string will be loaded in cgi processing [00:07:14]execute_cgi json_proto POST (null) [00:07:14]execute_cgi path=json_proto method=POST [00:07:14]POST find Content-Length [00:07:14]Host: 172.17.45.7:8080 [00:07:14]Content-Length: 215 [00:07:14]Content-Type: application/json [00:07:14] [00:07:14]POST finish read [00:07:14]Found Content-Length = 215 [00:07:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:14]execute_script... [00:07:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:14]POST & json_proto [00:07:14]process_json_proto [00:07:14]json parsed OK: [00:07:14]protocol is kg_v1.0 [00:07:14]action value=get_value [00:07:14]process_action get_value [00:07:14]cmd_get_value [00:07:14]process_action get_value done [00:07:14]requested_data is exist [00:07:14]produce_requested_data [00:07:14]requested_item kkm.sn is exist - process it [00:07:14]requested_item kkm.ver is exist - process it [00:07:14]requested_item fm.sn is exist - process it [00:07:14]wFMCommunicate request_size=4 [00:07:14]MH_SAM_APDU [00:07:14]CAPDU: 80 11 00 00 [00:07:14]Write to MH i2c: E2 08 00 9B 28 80 11 00 00 00 00 00 00 3D [00:07:14]Write i2c OK [00:07:14]MH_I2C_Read... [00:07:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:14]Read from MH i2c: E2 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 17 00 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 17 00 9B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 98 [00:07:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:07:14]wFMCommunicate OK [00:07:14]requested_item fd.num is exist - process it [00:07:14]SAM_PROTO_GetFieldsCounters [00:07:14]wFMCommunicate request_size=4 [00:07:14]MH_SAM_APDU [00:07:14]CAPDU: 80 13 00 00 [00:07:14]Write to MH i2c: E2 08 00 9C 28 80 13 00 00 00 00 00 00 40 [00:07:14]Write i2c OK [00:07:14]MH_I2C_Read... [00:07:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:14]Read from MH i2c: E2 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 62 00 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 62 00 9C 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5F CF 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 B5 [00:07:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5F CF 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:14]wFMCommunicate OK [00:07:14]SAM_PROTO_GetFieldsCounters done [00:07:14]requested_item shift.num is exist - process it [00:07:14]requested_item shift.opened is exist - process it [00:07:14]req_shift_opened [00:07:14]FM_GetShiftState [00:07:14]SAM_PROTO_GetShiftState [00:07:14]wFMCommunicate request_size=4 [00:07:14]MH_SAM_APDU [00:07:14]CAPDU: 80 13 01 00 [00:07:14]Write to MH i2c: E2 08 00 9D 28 80 13 01 00 00 00 00 00 42 [00:07:14]Write i2c OK [00:07:14]MH_I2C_Read... [00:07:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:15]Read from MH i2c: E2 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 0E 00 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 0E 00 9D 28 00 09 00 00 00 00 00 00 00 00 00 00 90 00 4D [00:07:15]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:07:15]wFMCommunicate OK [00:07:15]SAM_PROTO_GetShiftState done [00:07:15]FM_GetShiftState done [00:07:15]req_shift_opened done [00:07:15]requested_item shift.open_date is exist - process it [00:07:15]req_shift_open_date [00:07:15]FM_GetShiftState [00:07:15]SAM_PROTO_GetShiftState [00:07:15]wFMCommunicate request_size=4 [00:07:15]MH_SAM_APDU [00:07:15]CAPDU: 80 13 01 00 [00:07:15]Write to MH i2c: E2 08 00 9E 28 80 13 01 00 00 00 00 00 43 [00:07:15]Write i2c OK [00:07:15]MH_I2C_Read... [00:07:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:15]Read from MH i2c: E2 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 0E 00 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 0E 00 9E 28 00 09 00 00 00 00 00 00 00 00 00 00 90 00 4E [00:07:15]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:07:15]wFMCommunicate OK [00:07:15]SAM_PROTO_GetShiftState done [00:07:15]FM_GetShiftState done [00:07:15]req_shift_open_date done [00:07:15]produce_requested_data done [00:07:15]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118623,"shift.num":433,"shift.opened":0,"shift.open_date":0} [00:07:15]process_action_free get_value [00:07:15]json_value_free [00:07:15]json_value_free done [00:07:15]process_json_proto returns [00:07:15]Send response to host [00:07:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118623,"shift.num":433,"shift.opened":0,"shift.open_date":0}}} [00:07:15]free response buf [00:07:15]execute_script done [00:07:15]execute_script returns [00:07:15]free content buf [00:07:15]Sock 9.Close socket [00:07:15]Sock 9.Thread stoped [00:07:15]accept exits with 7 [00:07:15]New connection [00:07:15]New thread 3067239780 created [00:07:15]Thread 3067383140 joined [00:07:15]Waiting for new connection... [00:07:15] Sock 7.Parse request [00:07:15]Sock 7.Check first char [00:07:15]Sock 7.First char is OK [00:07:15]request: POST /json_proto HTTP/1.0 [00:07:15]Method: POST [00:07:15]URL: /json_proto [00:07:15]Method is POST - this is cgi request [00:07:15]url: /json_proto [00:07:15]query_string will be loaded in cgi processing [00:07:15]execute_cgi json_proto POST (null) [00:07:15]execute_cgi path=json_proto method=POST [00:07:15]POST find Content-Length [00:07:15]Host: 172.17.45.7:8080 [00:07:15]Content-Length: 331 [00:07:15]Content-Type: application/json [00:07:15] [00:07:15]POST finish read [00:07:15]Found Content-Length = 331 [00:07:15]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:07:15]execute_script... [00:07:15]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:07:15]POST & json_proto [00:07:15]process_json_proto [00:07:15]json parsed OK: [00:07:15]protocol is kg_v1.0 [00:07:15]action value=get_value [00:07:15]process_action get_value [00:07:15]cmd_get_value [00:07:15]process_action get_value done [00:07:15]requested_data is exist [00:07:15]produce_requested_data [00:07:15]requested_item fm.sale.total is exist - process it [00:07:15]SAM_PROTO_GetFMData [00:07:15]wFMCommunicate request_size=4 [00:07:15]MH_SAM_APDU [00:07:15]CAPDU: 80 13 03 00 [00:07:15]Write to MH i2c: E2 08 00 9F 28 80 13 03 00 00 00 00 00 46 [00:07:15]Write i2c OK [00:07:15]MH_I2C_Read... [00:07:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:15]Read from MH i2c: E2 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 FD 00 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 FD 00 9F 28 00 C5 04 85 04 C1 04 6E 04 04 00 FC CB 01 00 69 04 A3 00 6F 04 04 00 72 BE 01 00 B1 04 05 00 78 ED 5D 75 03 70 04 05 00 98 B7 97 A7 02 72 04 04 00 E0 35 C6 CD 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 0C AF 0B 5E 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 50 2D D6 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 9C 00 6F 04 04 00 8A 0D 00 00 B1 04 04 00 3C E3 13 3B 70 04 04 00 3C E3 13 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 11 44 46 06 EF 03 09 90 00 64 [00:07:15]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 FC CB 01 00 69 04 A3 00 6F 04 04 00 72 BE 01 00 B1 04 05 00 78 ED 5D 75 03 70 04 05 00 98 B7 97 A7 02 72 04 04 00 E0 35 C6 CD 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 0C AF 0B 5E 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 50 2D D6 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 9C 00 6F 04 04 00 8A 0D 00 00 B1 04 04 00 3C E3 13 3B 70 04 04 00 3C E3 13 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 11 44 46 06 EF 03 09 90 00 [00:07:15]wFMCommunicate OK [00:07:15]wFMCommunicate request_size=4 [00:07:15]MH_SAM_APDU [00:07:15]CAPDU: 80 17 00 00 [00:07:15]Write to MH i2c: E2 08 00 A0 28 80 17 00 00 00 00 00 00 48 [00:07:15]Write i2c OK [00:07:15]MH_I2C_Read... [00:07:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:16]Read from MH i2c: E2 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 FD 00 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 FD 00 A0 28 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F DA 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 7C [00:07:16]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F DA 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:07:16]wFMCommunicate OK [00:07:16]wFMCommunicate request_size=4 [00:07:16]MH_SAM_APDU [00:07:16]CAPDU: 80 17 00 00 [00:07:16]Write to MH i2c: E2 08 00 A1 28 80 17 00 00 00 00 00 00 49 [00:07:16]Write i2c OK [00:07:16]MH_I2C_Read... [00:07:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:16]Read from MH i2c: E2 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 FD 00 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 FD 00 A1 28 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 5B [00:07:16]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:07:16]wFMCommunicate OK [00:07:16]wFMCommunicate request_size=4 [00:07:16]MH_SAM_APDU [00:07:16]CAPDU: 80 17 00 00 [00:07:16]Write to MH i2c: E2 08 00 A2 28 80 17 00 00 00 00 00 00 4A [00:07:16]Write i2c OK [00:07:16]MH_I2C_Read... [00:07:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:16]Read from MH i2c: E2 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 FD 00 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 FD 00 A2 28 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 D6 [00:07:16]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:07:16]wFMCommunicate OK [00:07:16]wFMCommunicate request_size=4 [00:07:16]MH_SAM_APDU [00:07:16]CAPDU: 80 17 00 00 [00:07:16]Write to MH i2c: E2 08 00 A3 28 80 17 00 00 00 00 00 00 4B [00:07:16]Write i2c OK [00:07:16]MH_I2C_Read... [00:07:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:07:16]Read from MH i2c: E2 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 E2 00 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 E2 00 A3 28 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 29 [00:07:16]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:16]wFMCommunicate OK [00:07:16]SAM_PROTO_GetFMData done [00:07:16]requested_item fm.sale_refund.total is exist - process it [00:07:16]requested_item fm.buy.total is exist - process it [00:07:16]requested_item shift.sale.total is exist - process it [00:07:16]SAM_PROTO_GetShiftData [00:07:16]wFMCommunicate request_size=4 [00:07:16]MH_SAM_APDU [00:07:16]CAPDU: 80 13 02 00 [00:07:16]Write to MH i2c: E2 08 00 A4 28 80 13 02 00 00 00 00 00 4A [00:07:16]Write i2c OK [00:07:16]MH_I2C_Read... [00:07:16]OFD Sender: No OFD packet to send [00:07:17]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:17]Read from MH i2c: E2 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 FD 00 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 FD 00 A4 28 00 BC 04 AA 04 B8 04 6E 04 04 00 23 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 54 4C C6 02 70 04 03 00 E0 BC DA 72 04 04 00 74 8F EB 01 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 C2 71 4B 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 69 49 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 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 60 B4 09 70 04 03 00 60 B4 09 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 E5 07 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 D0 [00:07:17]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 23 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 54 4C C6 02 70 04 03 00 E0 BC DA 72 04 04 00 74 8F EB 01 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 C2 71 4B 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 69 49 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 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 60 B4 09 70 04 03 00 60 B4 09 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 E5 07 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:07:17]wFMCommunicate OK [00:07:17]wFMCommunicate request_size=4 [00:07:17]MH_SAM_APDU [00:07:17]CAPDU: 80 17 00 00 [00:07:17]Write to MH i2c: E2 08 00 A5 28 80 17 00 00 00 00 00 00 4D [00:07:17]Write i2c OK [00:07:17]MH_I2C_Read... [00:07:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:17]Read from MH i2c: E2 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 FD 00 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 FD 00 A5 28 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 09 [00:07:17]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:17]wFMCommunicate OK [00:07:17]wFMCommunicate request_size=4 [00:07:17]MH_SAM_APDU [00:07:17]CAPDU: 80 17 00 00 [00:07:17]Write to MH i2c: E2 08 00 A6 28 80 17 00 00 00 00 00 00 4E [00:07:17]Write i2c OK [00:07:17]MH_I2C_Read... [00:07:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:17]Read from MH i2c: E2 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 FD 00 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 FD 00 A6 28 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 77 [00:07:17]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:17]wFMCommunicate OK [00:07:17]wFMCommunicate request_size=4 [00:07:17]MH_SAM_APDU [00:07:17]CAPDU: 80 17 00 00 [00:07:17]Write to MH i2c: E2 08 00 A7 28 80 17 00 00 00 00 00 00 4F [00:07:17]Write i2c OK [00:07:17]MH_I2C_Read... [00:07:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:18]Read from MH i2c: E2 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 FD 00 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 FD 00 A7 28 00 03 00 00 EF 03 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 90 00 D0 [00:07:18]RAPDU: 03 00 00 EF 03 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 90 00 [00:07:18]wFMCommunicate OK [00:07:18]wFMCommunicate request_size=4 [00:07:18]MH_SAM_APDU [00:07:18]CAPDU: 80 17 00 00 [00:07:18]Write to MH i2c: E2 08 00 A8 28 80 17 00 00 00 00 00 00 50 [00:07:18]Write i2c OK [00:07:18]MH_I2C_Read... [00:07:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:07:18]Read from MH i2c: E2 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 D9 00 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 D9 00 A8 28 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2F [00:07:18]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:18]wFMCommunicate OK [00:07:18]SAM_PROTO_GetShiftData done [00:07:18]requested_item shift.sale.total_cash is exist - process it [00:07:18]requested_item shift.sale_refund.total is exist - process it [00:07:18]requested_item shift.sale_refund.total_cash is exist - process it [00:07:18]requested_item shift.buy.total is exist - process it [00:07:18]requested_item shift.buy.total_cash is exist - process it [00:07:18]produce_requested_data done [00:07:18]produce_requested_data return {"fm.sale.total":148539918.00,"fm.sale_refund.total":9911591.00,"fm.buy.total":0.00,"shift.sale.total":465501.00,"shift.sale.total_cash":143352.00,"shift.sale_refund.total":6360.00,"shift.sale_refund.total_cash":6360.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:18]process_action_free get_value [00:07:18]json_value_free [00:07:18]json_value_free done [00:07:18]process_json_proto returns [00:07:18]Send response to host [00:07:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148539918.00,"fm.sale_refund.total":9911591.00,"fm.buy.total":0.00,"shift.sale.total":465501.00,"shift.sale.total_cash":143352.00,"shift.sale_refund.total":6360.00,"shift.sale_refund.total_cash":6360.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:18]free response buf [00:07:18]execute_script done [00:07:18]execute_script returns [00:07:18]free content buf [00:07:18]Sock 7.Close socket [00:07:18]Sock 7.Thread stoped [00:07:18]accept exits with 9 [00:07:18]New connection [00:07:18]New thread 3067383140 created [00:07:18]Thread 3067239780 joined [00:07:18]Waiting for new connection... [00:07:18] Sock 9.Parse request [00:07:18]Sock 9.Check first char [00:07:18]Sock 9.First char is OK [00:07:18]request: POST /json_proto HTTP/1.0 [00:07:18]Method: POST [00:07:18]URL: /json_proto [00:07:18]Method is POST - this is cgi request [00:07:18]url: /json_proto [00:07:18]query_string will be loaded in cgi processing [00:07:18]execute_cgi json_proto POST (null) [00:07:18]execute_cgi path=json_proto method=POST [00:07:18]POST find Content-Length [00:07:18]Host: 172.17.45.7:8080 [00:07:18]Content-Length: 253 [00:07:18]Content-Type: application/json [00:07:18] [00:07:18]POST finish read [00:07:18]Found Content-Length = 253 [00:07:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:18]execute_script... [00:07:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:18]POST & json_proto [00:07:18]process_json_proto [00:07:18]json parsed OK: [00:07:18]protocol is kg_v1.0 [00:07:18]action value=open_shift [00:07:18]process_action open_shift [00:07:18]cmd_open_shift [00:07:18]MH_GetDate [00:07:18]Write to MH i2c: F0 00 00 A9 28 C0 [00:07:18]Write i2c OK [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: F0 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: F0 09 00 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: F0 09 00 A9 28 00 39 DD A6 66 90 0F 3E 66 2E [00:07:18]GetLastDocTimeStamp 1722210622 [00:07:18]current date 1722211641 [00:07:18]FM_GetShiftState [00:07:18]SAM_PROTO_GetShiftState [00:07:18]wFMCommunicate request_size=4 [00:07:18]MH_SAM_APDU [00:07:18]CAPDU: 80 13 01 00 [00:07:18]Write to MH i2c: E2 08 00 AA 28 80 13 01 00 00 00 00 00 4F [00:07:18]Write i2c OK [00:07:18]MH_I2C_Read... [00:07:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:18]Read from MH i2c: E2 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 0E 00 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 0E 00 AA 28 00 09 00 00 00 00 00 00 00 00 00 00 90 00 5A [00:07:18]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:07:18]wFMCommunicate OK [00:07:18]SAM_PROTO_GetShiftState done [00:07:18]FM_GetShiftState done [00:07:18]KKMCreateOpenShiftDocument [00:07:18]Load OK [00:07:18]Malloc new data [00:07:18]MH_GetDate [00:07:18]Write to MH i2c: F0 00 00 AB 28 C2 [00:07:18]Write i2c OK [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: F0 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: F0 09 00 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: F0 09 00 AB 28 00 39 DD A6 66 90 0F 3E 66 30 [00:07:18]Malloc new data [00:07:18]KKMCreateOpenShiftDocument OK [00:07:18]KKMSetOpenShiftData OK [00:07:18]ProcessDocumentItem done err = 0, tmpTLVsize=166 [00:07:18]tlvbuf is 01F063B0 [00:07:18]KKMLoadAndSignOpenShiftData [00:07:18]SAM_PROTO_ProcessDocument [00:07:18]wFMCommunicate request_size=9 [00:07:18]MH_SAM_APDU [00:07:18]CAPDU: 80 15 01 00 04 02 00 A6 00 [00:07:18]Write to MH i2c: E2 0C 00 AC 28 80 15 01 00 04 00 02 00 A6 00 00 00 03 [00:07:18]Write i2c OK [00:07:18]MH_I2C_Read... [00:07:18]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:07:18]Read from MH i2c: E2 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 03 00 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 03 00 AC 28 00 90 00 48 [00:07:18]RAPDU: 90 00 [00:07:18]wFMCommunicate OK [00:07:18]wFMCommunicate request_size=23 [00:07:18]MH_SAM_APDU [00:07:18]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:07:18]Write to MH i2c: E2 1A 00 AD 28 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 4A [00:07:18]Write i2c OK [00:07:18]MH_I2C_Read... [00:07:18]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:18]Read from MH i2c: E2 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 03 00 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 03 00 AD 28 00 90 00 49 [00:07:18]RAPDU: 90 00 [00:07:18]wFMCommunicate OK [00:07:18]wFMCommunicate request_size=28 [00:07:18]MH_SAM_APDU [00:07:18]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 9A D0 B0 D0 B7 D0 B0 D0 BA D0 BE D0 B2 20 D0 A7 2E 20 [00:07:18]Write to MH i2c: E2 1F 00 AE 28 80 15 02 00 17 00 FD 03 13 00 D0 9A D0 B0 D0 B7 D0 B0 D0 BA D0 BE D0 B2 20 D0 A7 2E 20 00 00 07 [00:07:18]Write i2c OK [00:07:18]MH_I2C_Read... [00:07:18]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:18]Read from MH i2c: E2 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 03 00 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 03 00 AE 28 00 90 00 4A [00:07:18]RAPDU: 90 00 [00:07:18]wFMCommunicate OK [00:07:18]wFMCommunicate request_size=56 [00:07:18]MH_SAM_APDU [00:07:18]CAPDU: 80 15 02 00 33 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 [00:07:18]Write to MH i2c: E2 3B 00 AF 28 80 15 02 00 33 00 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 00 00 0C [00:07:18]Write i2c OK [00:07:18]MH_I2C_Read... [00:07:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:19]Read from MH i2c: E2 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 03 00 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 03 00 AF 28 00 90 00 4B [00:07:19]RAPDU: 90 00 [00:07:19]wFMCommunicate OK [00:07:19]wFMCommunicate request_size=51 [00:07:19]MH_SAM_APDU [00:07:19]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 34 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:07:19]Write to MH i2c: E2 36 00 B0 28 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 34 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 02 [00:07:19]Write i2c OK [00:07:19]MH_I2C_Read... [00:07:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:19]Read from MH i2c: E2 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 03 00 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 03 00 B0 28 00 90 00 4C [00:07:19]RAPDU: 90 00 [00:07:19]wFMCommunicate OK [00:07:19]wFMCommunicate request_size=13 [00:07:19]MH_SAM_APDU [00:07:19]CAPDU: 80 15 02 00 08 F4 03 04 00 39 DD A6 66 [00:07:19]Write to MH i2c: E2 10 00 B1 28 80 15 02 00 08 00 F4 03 04 00 39 DD A6 66 00 00 86 [00:07:19]Write i2c OK [00:07:19]MH_I2C_Read... [00:07:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:19]Read from MH i2c: E2 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 03 00 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 03 00 B1 28 00 90 00 4D [00:07:19]RAPDU: 90 00 [00:07:19]wFMCommunicate OK [00:07:19]wFMCommunicate request_size=25 [00:07:19]MH_SAM_APDU [00:07:19]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 [00:07:19]Write to MH i2c: E2 1C 00 B2 28 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 00 00 BA [00:07:19]Write i2c OK [00:07:19]MH_I2C_Read... [00:07:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:19]Read from MH i2c: E2 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 03 00 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 03 00 B2 28 00 90 00 4E [00:07:19]RAPDU: 90 00 [00:07:19]wFMCommunicate OK [00:07:19]wFMCommunicate request_size=4 [00:07:19]MH_SAM_APDU [00:07:19]CAPDU: 80 15 03 00 [00:07:19]Write to MH i2c: E2 08 00 B3 28 80 15 03 00 00 00 00 00 5C [00:07:19]Write i2c OK [00:07:19]MH_I2C_Read... [00:07:19]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:07:19]Read from MH i2c: E2 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 38 00 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 38 00 B3 28 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 39 33 39 10 04 04 00 60 CF 01 00 0E 04 04 00 B2 01 00 00 35 04 06 00 8F 93 3D B5 32 90 90 00 E9 [00:07:19]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 39 33 39 10 04 04 00 60 CF 01 00 0E 04 04 00 B2 01 00 00 35 04 06 00 8F 93 3D B5 32 90 90 00 [00:07:19]wFMCommunicate OK [00:07:19]SAM_PROTO_ProcessDocument answer len = 51 [00:07:19]SAM_PROTO_ProcessDocument done [00:07:19]SetTLVBufToDocument [00:07:19]Processing tag 1209 (04B9) [00:07:19]Malloc new data [00:07:19]Processing tag 1041 (0411) [00:07:19]Processing tag 1040 (0410) [00:07:19]Malloc new data [00:07:19]Processing tag 1038 (040E) [00:07:19]Malloc new data [00:07:19]Processing tag 1077 (0435) [00:07:19]Malloc new data [00:07:19]SetTLVBufToDocument err=0 [00:07:19]KKMLoadAndSignOpenShiftData store KKM data [00:07:19]KKMLoadAndSignOpenShiftData err=0 [00:07:19]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Казаков Ч. Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 Место: АЗС № 134 "Партнер Нефть" 29.07.2024 00:07 Смена: 434 РНМ: 0000000000092660 ЗНМ: 0300000044 ФД: 118624 ФМ: 0000000000874939 ФПД: 157862558249616 [00:07:19]StoreToDocumentArchive [00:07:19]shift 434 fd 118624 [00:07:19]Create dir for shift 0434 [00:07:19]save to /storage/0434/doc_00118624 [00:07:19]save last doc name /storage/0434/doc_00118624 to /storage/kkm_last_doc_name [00:07:19]save OK [00:07:19]Clear old archive folders... [00:07:19]Remove dir /storage/0433 [00:07:19]opendir ok [00:07:19]file . [00:07:19]file .. [00:07:19]file doc_00118331 [00:07:19]remove file /storage/0433/doc_00118331 [00:07:19]file doc_00118332 [00:07:19]remove file /storage/0433/doc_00118332 [00:07:19]file doc_00118333 [00:07:19]remove file /storage/0433/doc_00118333 [00:07:19]file doc_00118334 [00:07:19]remove file /storage/0433/doc_00118334 [00:07:19]file doc_00118335 [00:07:19]remove file /storage/0433/doc_00118335 [00:07:19]file doc_00118336 [00:07:19]remove file /storage/0433/doc_00118336 [00:07:19]file doc_00118337 [00:07:19]remove file /storage/0433/doc_00118337 [00:07:19]file doc_00118338 [00:07:19]remove file /storage/0433/doc_00118338 [00:07:19]file doc_00118339 [00:07:19]remove file /storage/0433/doc_00118339 [00:07:19]file doc_00118340 [00:07:19]remove file /storage/0433/doc_00118340 [00:07:19]file doc_00118341 [00:07:19]remove file /storage/0433/doc_00118341 [00:07:19]file doc_00118342 [00:07:19]remove file /storage/0433/doc_00118342 [00:07:19]file doc_00118343 [00:07:19]remove file /storage/0433/doc_00118343 [00:07:19]file doc_00118344 [00:07:19]remove file /storage/0433/doc_00118344 [00:07:19]file doc_00118345 [00:07:19]remove file /storage/0433/doc_00118345 [00:07:19]file doc_00118346 [00:07:19]remove file /storage/0433/doc_00118346 [00:07:19]file doc_00118347 [00:07:19]remove file /storage/0433/doc_00118347 [00:07:19]file doc_00118348 [00:07:19]remove file /storage/0433/doc_00118348 [00:07:19]file doc_00118349 [00:07:19]remove file /storage/0433/doc_00118349 [00:07:19]file doc_00118350 [00:07:19]remove file /storage/0433/doc_00118350 [00:07:19]file doc_00118351 [00:07:19]remove file /storage/0433/doc_00118351 [00:07:19]file doc_00118352 [00:07:19]remove file /storage/0433/doc_00118352 [00:07:19]file doc_00118353 [00:07:19]remove file /storage/0433/doc_00118353 [00:07:19]file doc_00118354 [00:07:19]remove file /storage/0433/doc_00118354 [00:07:19]file doc_00118355 [00:07:19]remove file /storage/0433/doc_00118355 [00:07:19]file doc_00118356 [00:07:19]remove file /storage/0433/doc_00118356 [00:07:19]file doc_00118357 [00:07:19]remove file /storage/0433/doc_00118357 [00:07:19]file doc_00118358 [00:07:19]remove file /storage/0433/doc_00118358 [00:07:19]file doc_00118359 [00:07:19]remove file /storage/0433/doc_00118359 [00:07:19]file doc_00118360 [00:07:19]remove file /storage/0433/doc_00118360 [00:07:19]file doc_00118361 [00:07:19]remove file /storage/0433/doc_00118361 [00:07:19]file doc_00118362 [00:07:19]remove file /storage/0433/doc_00118362 [00:07:19]file doc_00118363 [00:07:19]remove file /storage/0433/doc_00118363 [00:07:19]file doc_00118364 [00:07:19]remove file /storage/0433/doc_00118364 [00:07:19]file doc_00118365 [00:07:19]remove file /storage/0433/doc_00118365 [00:07:19]file doc_00118366 [00:07:19]remove file /storage/0433/doc_00118366 [00:07:19]file doc_00118367 [00:07:19]remove file /storage/0433/doc_00118367 [00:07:19]file doc_00118368 [00:07:19]remove file /storage/0433/doc_00118368 [00:07:19]file doc_00118369 [00:07:19]remove file /storage/0433/doc_00118369 [00:07:19]file doc_00118370 [00:07:19]remove file /storage/0433/doc_00118370 [00:07:19]file doc_00118371 [00:07:19]remove file /storage/0433/doc_00118371 [00:07:19]file doc_00118372 [00:07:19]remove file /storage/0433/doc_00118372 [00:07:19]file doc_00118373 [00:07:19]remove file /storage/0433/doc_00118373 [00:07:19]file doc_00118374 [00:07:19]remove file /storage/0433/doc_00118374 [00:07:19]file doc_00118375 [00:07:19]remove file /storage/0433/doc_00118375 [00:07:19]file doc_00118376 [00:07:19]remove file /storage/0433/doc_00118376 [00:07:19]file doc_00118377 [00:07:19]remove file /storage/0433/doc_00118377 [00:07:19]file doc_00118378 [00:07:19]remove file /storage/0433/doc_00118378 [00:07:19]file doc_00118379 [00:07:19]remove file /storage/0433/doc_00118379 [00:07:19]file doc_00118380 [00:07:19]remove file /storage/0433/doc_00118380 [00:07:19]file doc_00118381 [00:07:19]remove file /storage/0433/doc_00118381 [00:07:19]file doc_00118382 [00:07:19]remove file /storage/0433/doc_00118382 [00:07:19]file doc_00118383 [00:07:19]remove file /storage/0433/doc_00118383 [00:07:19]file doc_00118384 [00:07:19]remove file /storage/0433/doc_00118384 [00:07:19]file doc_00118385 [00:07:19]remove file /storage/0433/doc_00118385 [00:07:19]file doc_00118386 [00:07:19]remove file /storage/0433/doc_00118386 [00:07:19]file doc_00118387 [00:07:19]remove file /storage/0433/doc_00118387 [00:07:19]file doc_00118388 [00:07:19]remove file /storage/0433/doc_00118388 [00:07:19]file doc_00118389 [00:07:19]remove file /storage/0433/doc_00118389 [00:07:19]file doc_00118390 [00:07:19]remove file /storage/0433/doc_00118390 [00:07:19]file doc_00118391 [00:07:19]remove file /storage/0433/doc_00118391 [00:07:19]file doc_00118392 [00:07:19]remove file /storage/0433/doc_00118392 [00:07:19]file doc_00118393 [00:07:19]remove file /storage/0433/doc_00118393 [00:07:19]file doc_00118394 [00:07:19]remove file /storage/0433/doc_00118394 [00:07:19]file doc_00118395 [00:07:19]remove file /storage/0433/doc_00118395 [00:07:19]file doc_00118396 [00:07:19]remove file /storage/0433/doc_00118396 [00:07:19]file doc_00118397 [00:07:19]remove file /storage/0433/doc_00118397 [00:07:19]file doc_00118398 [00:07:19]remove file /storage/0433/doc_00118398 [00:07:19]file doc_00118399 [00:07:19]remove file /storage/0433/doc_00118399 [00:07:19]file doc_00118400 [00:07:19]remove file /storage/0433/doc_00118400 [00:07:19]file doc_00118401 [00:07:19]remove file /storage/0433/doc_00118401 [00:07:19]file doc_00118402 [00:07:19]remove file /storage/0433/doc_00118402 [00:07:19]file doc_00118403 [00:07:19]remove file /storage/0433/doc_00118403 [00:07:19]file doc_00118404 [00:07:19]remove file /storage/0433/doc_00118404 [00:07:19]file doc_00118405 [00:07:19]remove file /storage/0433/doc_00118405 [00:07:19]file doc_00118406 [00:07:19]remove file /storage/0433/doc_00118406 [00:07:19]file doc_00118407 [00:07:19]remove file /storage/0433/doc_00118407 [00:07:19]file doc_00118408 [00:07:19]remove file /storage/0433/doc_00118408 [00:07:19]file doc_00118409 [00:07:19]remove file /storage/0433/doc_00118409 [00:07:19]file doc_00118410 [00:07:20]remove file /storage/0433/doc_00118410 [00:07:20]file doc_00118411 [00:07:20]remove file /storage/0433/doc_00118411 [00:07:20]file doc_00118412 [00:07:20]remove file /storage/0433/doc_00118412 [00:07:20]file doc_00118413 [00:07:20]remove file /storage/0433/doc_00118413 [00:07:20]file doc_00118414 [00:07:20]remove file /storage/0433/doc_00118414 [00:07:20]file doc_00118415 [00:07:20]remove file /storage/0433/doc_00118415 [00:07:20]file doc_00118416 [00:07:20]remove file /storage/0433/doc_00118416 [00:07:20]file doc_00118417 [00:07:20]remove file /storage/0433/doc_00118417 [00:07:20]file doc_00118418 [00:07:20]remove file /storage/0433/doc_00118418 [00:07:20]file doc_00118419 [00:07:20]remove file /storage/0433/doc_00118419 [00:07:20]file doc_00118420 [00:07:20]remove file /storage/0433/doc_00118420 [00:07:20]file doc_00118421 [00:07:20]remove file /storage/0433/doc_00118421 [00:07:20]file doc_00118422 [00:07:20]remove file /storage/0433/doc_00118422 [00:07:20]file doc_00118423 [00:07:20]remove file /storage/0433/doc_00118423 [00:07:20]file doc_00118424 [00:07:20]remove file /storage/0433/doc_00118424 [00:07:20]file doc_00118425 [00:07:20]remove file /storage/0433/doc_00118425 [00:07:20]file doc_00118426 [00:07:20]remove file /storage/0433/doc_00118426 [00:07:20]file doc_00118427 [00:07:20]remove file /storage/0433/doc_00118427 [00:07:20]file doc_00118428 [00:07:20]remove file /storage/0433/doc_00118428 [00:07:20]file doc_00118429 [00:07:20]remove file /storage/0433/doc_00118429 [00:07:20]file doc_00118430 [00:07:20]remove file /storage/0433/doc_00118430 [00:07:20]file doc_00118431 [00:07:20]remove file /storage/0433/doc_00118431 [00:07:20]file doc_00118432 [00:07:20]remove file /storage/0433/doc_00118432 [00:07:20]file doc_00118433 [00:07:20]remove file /storage/0433/doc_00118433 [00:07:20]file doc_00118434 [00:07:20]remove file /storage/0433/doc_00118434 [00:07:20]file doc_00118435 [00:07:20]remove file /storage/0433/doc_00118435 [00:07:20]file doc_00118436 [00:07:20]remove file /storage/0433/doc_00118436 [00:07:20]file doc_00118437 [00:07:20]remove file /storage/0433/doc_00118437 [00:07:20]file doc_00118438 [00:07:20]remove file /storage/0433/doc_00118438 [00:07:20]file doc_00118439 [00:07:20]remove file /storage/0433/doc_00118439 [00:07:20]file doc_00118440 [00:07:20]remove file /storage/0433/doc_00118440 [00:07:20]file doc_00118441 [00:07:20]remove file /storage/0433/doc_00118441 [00:07:20]file doc_00118442 [00:07:20]remove file /storage/0433/doc_00118442 [00:07:20]file doc_00118443 [00:07:20]remove file /storage/0433/doc_00118443 [00:07:20]file doc_00118444 [00:07:20]remove file /storage/0433/doc_00118444 [00:07:20]file doc_00118445 [00:07:20]remove file /storage/0433/doc_00118445 [00:07:20]file doc_00118446 [00:07:20]remove file /storage/0433/doc_00118446 [00:07:20]file doc_00118447 [00:07:20]remove file /storage/0433/doc_00118447 [00:07:20]file doc_00118448 [00:07:20]remove file /storage/0433/doc_00118448 [00:07:20]file doc_00118449 [00:07:20]remove file /storage/0433/doc_00118449 [00:07:20]file doc_00118450 [00:07:20]remove file /storage/0433/doc_00118450 [00:07:20]file doc_00118451 [00:07:20]remove file /storage/0433/doc_00118451 [00:07:20]file doc_00118452 [00:07:20]remove file /storage/0433/doc_00118452 [00:07:20]file doc_00118453 [00:07:20]remove file /storage/0433/doc_00118453 [00:07:20]file doc_00118454 [00:07:20]remove file /storage/0433/doc_00118454 [00:07:20]file doc_00118455 [00:07:20]remove file /storage/0433/doc_00118455 [00:07:20]file doc_00118456 [00:07:20]remove file /storage/0433/doc_00118456 [00:07:20]file doc_00118457 [00:07:20]remove file /storage/0433/doc_00118457 [00:07:20]file doc_00118458 [00:07:20]remove file /storage/0433/doc_00118458 [00:07:20]file doc_00118459 [00:07:20]remove file /storage/0433/doc_00118459 [00:07:20]file doc_00118460 [00:07:20]remove file /storage/0433/doc_00118460 [00:07:20]file doc_00118461 [00:07:20]remove file /storage/0433/doc_00118461 [00:07:20]file doc_00118462 [00:07:20]remove file /storage/0433/doc_00118462 [00:07:20]file doc_00118463 [00:07:20]remove file /storage/0433/doc_00118463 [00:07:20]file doc_00118464 [00:07:20]remove file /storage/0433/doc_00118464 [00:07:20]file doc_00118465 [00:07:20]remove file /storage/0433/doc_00118465 [00:07:20]file doc_00118466 [00:07:20]remove file /storage/0433/doc_00118466 [00:07:20]file doc_00118467 [00:07:20]remove file /storage/0433/doc_00118467 [00:07:20]file doc_00118468 [00:07:20]remove file /storage/0433/doc_00118468 [00:07:20]file doc_00118469 [00:07:20]remove file /storage/0433/doc_00118469 [00:07:20]file doc_00118470 [00:07:20]remove file /storage/0433/doc_00118470 [00:07:20]file doc_00118471 [00:07:20]remove file /storage/0433/doc_00118471 [00:07:20]file doc_00118472 [00:07:20]remove file /storage/0433/doc_00118472 [00:07:20]file doc_00118473 [00:07:20]remove file /storage/0433/doc_00118473 [00:07:20]file doc_00118474 [00:07:20]remove file /storage/0433/doc_00118474 [00:07:20]file doc_00118475 [00:07:20]remove file /storage/0433/doc_00118475 [00:07:20]file doc_00118476 [00:07:20]remove file /storage/0433/doc_00118476 [00:07:20]file doc_00118477 [00:07:20]remove file /storage/0433/doc_00118477 [00:07:20]file doc_00118478 [00:07:20]remove file /storage/0433/doc_00118478 [00:07:20]file doc_00118479 [00:07:20]remove file /storage/0433/doc_00118479 [00:07:20]file doc_00118480 [00:07:20]remove file /storage/0433/doc_00118480 [00:07:20]file doc_00118481 [00:07:20]remove file /storage/0433/doc_00118481 [00:07:20]file doc_00118482 [00:07:20]remove file /storage/0433/doc_00118482 [00:07:20]file doc_00118483 [00:07:20]remove file /storage/0433/doc_00118483 [00:07:20]file doc_00118484 [00:07:20]remove file /storage/0433/doc_00118484 [00:07:20]file doc_00118485 [00:07:20]remove file /storage/0433/doc_00118485 [00:07:20]file doc_00118486 [00:07:20]remove file /storage/0433/doc_00118486 [00:07:20]file doc_00118487 [00:07:20]remove file /storage/0433/doc_00118487 [00:07:20]file doc_00118488 [00:07:20]remove file /storage/0433/doc_00118488 [00:07:20]file doc_00118489 [00:07:20]remove file /storage/0433/doc_00118489 [00:07:20]file doc_00118490 [00:07:20]remove file /storage/0433/doc_00118490 [00:07:20]file doc_00118491 [00:07:20]remove file /storage/0433/doc_00118491 [00:07:20]file doc_00118492 [00:07:20]remove file /storage/0433/doc_00118492 [00:07:20]file doc_00118493 [00:07:20]remove file /storage/0433/doc_00118493 [00:07:20]file doc_00118494 [00:07:20]remove file /storage/0433/doc_00118494 [00:07:20]file doc_00118495 [00:07:20]remove file /storage/0433/doc_00118495 [00:07:20]file doc_00118496 [00:07:20]remove file /storage/0433/doc_00118496 [00:07:20]file doc_00118497 [00:07:20]remove file /storage/0433/doc_00118497 [00:07:20]file doc_00118498 [00:07:20]remove file /storage/0433/doc_00118498 [00:07:20]file doc_00118499 [00:07:20]remove file /storage/0433/doc_00118499 [00:07:20]file doc_00118500 [00:07:20]remove file /storage/0433/doc_00118500 [00:07:20]file doc_00118501 [00:07:20]remove file /storage/0433/doc_00118501 [00:07:20]file doc_00118502 [00:07:20]remove file /storage/0433/doc_00118502 [00:07:20]file doc_00118503 [00:07:20]remove file /storage/0433/doc_00118503 [00:07:20]file doc_00118504 [00:07:20]remove file /storage/0433/doc_00118504 [00:07:20]file doc_00118505 [00:07:20]remove file /storage/0433/doc_00118505 [00:07:20]file doc_00118506 [00:07:20]remove file /storage/0433/doc_00118506 [00:07:20]file doc_00118507 [00:07:20]remove file /storage/0433/doc_00118507 [00:07:20]file doc_00118508 [00:07:20]remove file /storage/0433/doc_00118508 [00:07:20]file doc_00118509 [00:07:20]remove file /storage/0433/doc_00118509 [00:07:20]file doc_00118510 [00:07:20]remove file /storage/0433/doc_00118510 [00:07:20]file doc_00118511 [00:07:20]remove file /storage/0433/doc_00118511 [00:07:20]file doc_00118512 [00:07:20]remove file /storage/0433/doc_00118512 [00:07:20]file doc_00118513 [00:07:20]remove file /storage/0433/doc_00118513 [00:07:20]file doc_00118514 [00:07:20]remove file /storage/0433/doc_00118514 [00:07:20]file doc_00118515 [00:07:20]remove file /storage/0433/doc_00118515 [00:07:20]file doc_00118516 [00:07:20]remove file /storage/0433/doc_00118516 [00:07:20]file doc_00118517 [00:07:20]remove file /storage/0433/doc_00118517 [00:07:20]file doc_00118518 [00:07:20]remove file /storage/0433/doc_00118518 [00:07:20]file doc_00118519 [00:07:20]remove file /storage/0433/doc_00118519 [00:07:20]file doc_00118520 [00:07:20]remove file /storage/0433/doc_00118520 [00:07:20]file doc_00118521 [00:07:20]remove file /storage/0433/doc_00118521 [00:07:20]file doc_00118522 [00:07:20]remove file /storage/0433/doc_00118522 [00:07:20]file doc_00118523 [00:07:20]remove file /storage/0433/doc_00118523 [00:07:20]file doc_00118524 [00:07:20]remove file /storage/0433/doc_00118524 [00:07:20]file doc_00118525 [00:07:20]remove file /storage/0433/doc_00118525 [00:07:20]file doc_00118526 [00:07:20]remove file /storage/0433/doc_00118526 [00:07:20]file doc_00118527 [00:07:20]remove file /storage/0433/doc_00118527 [00:07:20]file doc_00118528 [00:07:20]remove file /storage/0433/doc_00118528 [00:07:20]file doc_00118529 [00:07:20]remove file /storage/0433/doc_00118529 [00:07:20]file doc_00118530 [00:07:20]remove file /storage/0433/doc_00118530 [00:07:20]file doc_00118531 [00:07:20]remove file /storage/0433/doc_00118531 [00:07:20]file doc_00118532 [00:07:20]remove file /storage/0433/doc_00118532 [00:07:20]file doc_00118533 [00:07:20]remove file /storage/0433/doc_00118533 [00:07:20]file doc_00118534 [00:07:20]remove file /storage/0433/doc_00118534 [00:07:20]file doc_00118535 [00:07:20]remove file /storage/0433/doc_00118535 [00:07:20]file doc_00118536 [00:07:20]remove file /storage/0433/doc_00118536 [00:07:20]file doc_00118537 [00:07:20]remove file /storage/0433/doc_00118537 [00:07:20]file doc_00118538 [00:07:20]remove file /storage/0433/doc_00118538 [00:07:20]file doc_00118539 [00:07:20]remove file /storage/0433/doc_00118539 [00:07:20]file doc_00118540 [00:07:20]remove file /storage/0433/doc_00118540 [00:07:20]file doc_00118541 [00:07:20]remove file /storage/0433/doc_00118541 [00:07:20]file doc_00118542 [00:07:20]remove file /storage/0433/doc_00118542 [00:07:20]file doc_00118543 [00:07:20]remove file /storage/0433/doc_00118543 [00:07:20]file doc_00118544 [00:07:20]remove file /storage/0433/doc_00118544 [00:07:20]file doc_00118545 [00:07:20]remove file /storage/0433/doc_00118545 [00:07:20]file doc_00118546 [00:07:20]remove file /storage/0433/doc_00118546 [00:07:20]file doc_00118547 [00:07:20]remove file /storage/0433/doc_00118547 [00:07:20]file doc_00118548 [00:07:20]remove file /storage/0433/doc_00118548 [00:07:20]file doc_00118549 [00:07:20]remove file /storage/0433/doc_00118549 [00:07:20]file doc_00118550 [00:07:20]remove file /storage/0433/doc_00118550 [00:07:20]file doc_00118551 [00:07:20]remove file /storage/0433/doc_00118551 [00:07:20]file doc_00118552 [00:07:20]remove file /storage/0433/doc_00118552 [00:07:20]file doc_00118553 [00:07:20]remove file /storage/0433/doc_00118553 [00:07:20]file doc_00118554 [00:07:20]remove file /storage/0433/doc_00118554 [00:07:20]file doc_00118555 [00:07:20]remove file /storage/0433/doc_00118555 [00:07:20]file doc_00118556 [00:07:20]remove file /storage/0433/doc_00118556 [00:07:20]file doc_00118557 [00:07:20]remove file /storage/0433/doc_00118557 [00:07:20]file doc_00118558 [00:07:20]remove file /storage/0433/doc_00118558 [00:07:20]file doc_00118559 [00:07:20]remove file /storage/0433/doc_00118559 [00:07:20]file doc_00118560 [00:07:20]remove file /storage/0433/doc_00118560 [00:07:20]file doc_00118561 [00:07:20]remove file /storage/0433/doc_00118561 [00:07:20]file doc_00118562 [00:07:20]remove file /storage/0433/doc_00118562 [00:07:20]file doc_00118563 [00:07:20]remove file /storage/0433/doc_00118563 [00:07:20]file doc_00118564 [00:07:21]remove file /storage/0433/doc_00118564 [00:07:21]file doc_00118565 [00:07:21]remove file /storage/0433/doc_00118565 [00:07:21]file doc_00118566 [00:07:21]remove file /storage/0433/doc_00118566 [00:07:21]file doc_00118567 [00:07:21]remove file /storage/0433/doc_00118567 [00:07:21]file doc_00118568 [00:07:21]remove file /storage/0433/doc_00118568 [00:07:21]file doc_00118569 [00:07:21]remove file /storage/0433/doc_00118569 [00:07:21]file doc_00118570 [00:07:21]remove file /storage/0433/doc_00118570 [00:07:21]file doc_00118571 [00:07:21]remove file /storage/0433/doc_00118571 [00:07:21]file doc_00118572 [00:07:21]remove file /storage/0433/doc_00118572 [00:07:21]file doc_00118573 [00:07:21]remove file /storage/0433/doc_00118573 [00:07:21]file doc_00118574 [00:07:21]remove file /storage/0433/doc_00118574 [00:07:21]file doc_00118575 [00:07:21]remove file /storage/0433/doc_00118575 [00:07:21]file doc_00118576 [00:07:21]remove file /storage/0433/doc_00118576 [00:07:21]file doc_00118577 [00:07:21]remove file /storage/0433/doc_00118577 [00:07:21]file doc_00118578 [00:07:21]remove file /storage/0433/doc_00118578 [00:07:21]file doc_00118579 [00:07:21]remove file /storage/0433/doc_00118579 [00:07:21]file doc_00118580 [00:07:21]remove file /storage/0433/doc_00118580 [00:07:21]file doc_00118581 [00:07:21]remove file /storage/0433/doc_00118581 [00:07:21]file doc_00118582 [00:07:21]remove file /storage/0433/doc_00118582 [00:07:21]file doc_00118583 [00:07:21]remove file /storage/0433/doc_00118583 [00:07:21]file doc_00118584 [00:07:21]remove file /storage/0433/doc_00118584 [00:07:21]file doc_00118585 [00:07:21]remove file /storage/0433/doc_00118585 [00:07:21]file doc_00118586 [00:07:21]remove file /storage/0433/doc_00118586 [00:07:21]file doc_00118587 [00:07:21]remove file /storage/0433/doc_00118587 [00:07:21]file doc_00118588 [00:07:21]remove file /storage/0433/doc_00118588 [00:07:21]file doc_00118589 [00:07:21]remove file /storage/0433/doc_00118589 [00:07:21]file doc_00118590 [00:07:21]remove file /storage/0433/doc_00118590 [00:07:21]file doc_00118591 [00:07:21]remove file /storage/0433/doc_00118591 [00:07:21]file doc_00118592 [00:07:21]remove file /storage/0433/doc_00118592 [00:07:21]file doc_00118593 [00:07:21]remove file /storage/0433/doc_00118593 [00:07:21]file doc_00118594 [00:07:21]remove file /storage/0433/doc_00118594 [00:07:21]file doc_00118595 [00:07:21]remove file /storage/0433/doc_00118595 [00:07:21]file doc_00118596 [00:07:21]remove file /storage/0433/doc_00118596 [00:07:21]file doc_00118597 [00:07:21]remove file /storage/0433/doc_00118597 [00:07:21]file doc_00118598 [00:07:21]remove file /storage/0433/doc_00118598 [00:07:21]file doc_00118599 [00:07:21]remove file /storage/0433/doc_00118599 [00:07:21]file doc_00118600 [00:07:21]remove file /storage/0433/doc_00118600 [00:07:21]file doc_00118601 [00:07:21]remove file /storage/0433/doc_00118601 [00:07:21]file doc_00118602 [00:07:21]remove file /storage/0433/doc_00118602 [00:07:21]file doc_00118603 [00:07:21]remove file /storage/0433/doc_00118603 [00:07:21]file doc_00118604 [00:07:21]remove file /storage/0433/doc_00118604 [00:07:21]file doc_00118605 [00:07:21]remove file /storage/0433/doc_00118605 [00:07:21]file doc_00118606 [00:07:21]remove file /storage/0433/doc_00118606 [00:07:21]file doc_00118607 [00:07:21]remove file /storage/0433/doc_00118607 [00:07:21]file doc_00118608 [00:07:21]remove file /storage/0433/doc_00118608 [00:07:21]file doc_00118609 [00:07:21]remove file /storage/0433/doc_00118609 [00:07:21]file doc_00118610 [00:07:21]remove file /storage/0433/doc_00118610 [00:07:21]file doc_00118611 [00:07:21]remove file /storage/0433/doc_00118611 [00:07:21]file doc_00118612 [00:07:21]remove file /storage/0433/doc_00118612 [00:07:21]file doc_00118613 [00:07:21]remove file /storage/0433/doc_00118613 [00:07:21]file doc_00118614 [00:07:21]remove file /storage/0433/doc_00118614 [00:07:21]file doc_00118615 [00:07:21]remove file /storage/0433/doc_00118615 [00:07:21]file doc_00118616 [00:07:21]remove file /storage/0433/doc_00118616 [00:07:21]file doc_00118617 [00:07:21]remove file /storage/0433/doc_00118617 [00:07:21]file doc_00118618 [00:07:21]remove file /storage/0433/doc_00118618 [00:07:21]file doc_00118619 [00:07:21]remove file /storage/0433/doc_00118619 [00:07:21]file doc_00118620 [00:07:21]remove file /storage/0433/doc_00118620 [00:07:21]file doc_00118621 [00:07:21]remove file /storage/0433/doc_00118621 [00:07:21]file doc_00118622 [00:07:21]remove file /storage/0433/doc_00118622 [00:07:21]file doc_00118623 [00:07:21]remove file /storage/0433/doc_00118623 [00:07:21]remove dir /storage/0433 [00:07:21]ProcessDocumentItem done err = 0, tmpTLVsize=217 [00:07:21]tlvbuf is 01E80440 [00:07:21]SAM_PROTO_ClearQueue [00:07:21]wFMCommunicate request_size=4 [00:07:21]MH_SAM_APDU [00:07:21]CAPDU: 80 09 00 00 [00:07:21]Write to MH i2c: E2 08 00 B4 28 80 09 00 00 00 00 00 00 4E [00:07:21]Write i2c OK [00:07:21]MH_I2C_Read... [00:07:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:07:21]Read from MH i2c: E2 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: E2 03 00 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: E2 03 00 B4 28 00 90 00 50 [00:07:21]RAPDU: 90 00 [00:07:21]wFMCommunicate OK [00:07:21]SAM_PROTO_ClearQueue done [00:07:21]KKMCreateOFDPacket [00:07:21]OFDProtocolAddRootSTLVToBuf [00:07:21]FM_MakeSignedData [00:07:21]FM_MakeSignedData [00:07:21]SAM_PROTO_SignData [00:07:21]wFMCommunicate request_size=4 [00:07:21]MH_SAM_APDU [00:07:21]CAPDU: 80 0D 01 02 [00:07:21]Write to MH i2c: E2 08 00 B5 28 80 0D 01 02 00 00 00 00 56 [00:07:21]Write i2c OK [00:07:21]MH_I2C_Read... [00:07:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:07:21]Read from MH i2c: E2 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: E2 03 00 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: E2 03 00 B5 28 00 90 00 51 [00:07:21]RAPDU: 90 00 [00:07:21]wFMCommunicate OK [00:07:21]wFMCommunicate request_size=226 [00:07:21]MH_SAM_APDU [00:07:21]CAPDU: 80 0D 02 02 DD 02 00 D9 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9A D0 B0 D0 B7 D0 B0 D0 BA D0 BE D0 B2 20 D0 A7 2E 20 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 34 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 39 DD A6 66 0E 04 04 00 B2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 60 CF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 8F 93 3D B5 32 90 [00:07:21]Write to MH i2c: E2 E5 00 B6 28 80 0D 02 02 DD 00 02 00 D9 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9A D0 B0 D0 B7 D0 B0 D0 BA D0 BE D0 B2 20 D0 A7 2E 20 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 34 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 39 DD A6 66 0E 04 04 00 B2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 60 CF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 8F 93 3D B5 32 90 00 00 65 [00:07:21]Write i2c OK [00:07:21]MH_I2C_Read... [00:07:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:21]Read from MH i2c: E2 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: E2 03 00 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: E2 03 00 B6 28 00 90 00 52 [00:07:21]RAPDU: 90 00 [00:07:21]wFMCommunicate OK [00:07:21]wFMCommunicate request_size=4 [00:07:21]MH_SAM_APDU [00:07:21]CAPDU: 80 0D 03 02 [00:07:21]Write to MH i2c: E2 08 00 B7 28 80 0D 03 02 00 00 00 00 5A [00:07:21]Write i2c OK [00:07:21]MH_I2C_Read... [00:07:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:07:21]Read from MH i2c: E2 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: E2 0B 00 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: E2 0B 00 B7 28 00 5A 2D 4B B0 81 A2 D4 8C 90 00 60 [00:07:21]RAPDU: 5A 2D 4B B0 81 A2 D4 8C 90 00 [00:07:21]wFMCommunicate OK [00:07:21]SAM_PROTO_SignData done [00:07:21]FM_MakeSignedData done [00:07:21]CreateOFDProtocolMessage [00:07:21]wFMCommunicate request_size=4 [00:07:21]MH_SAM_APDU [00:07:21]CAPDU: 80 11 00 00 [00:07:21]Write to MH i2c: E2 08 00 B8 28 80 11 00 00 00 00 00 00 5A [00:07:21]Write i2c OK [00:07:21]MH_I2C_Read... [00:07:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:21]Read from MH i2c: E2 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: E2 17 00 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: E2 17 00 B8 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B5 [00:07:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:07:21]wFMCommunicate OK [00:07:21]CreateOFDProtocolMessage done [00:07:21]OFDSenderStorePacket 118624 [00:07:21]StoreOFDPacket docnum=118624 [00:07:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 ED 00 00 00 D1 1E E5 00 22 94 5A 02 01 00 02 00 D9 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9A D0 B0 D0 B7 D0 B0 D0 BA D0 BE D0 B2 20 D0 A7 2E 20 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 34 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 39 DD A6 66 0E 04 04 00 B2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 60 CF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 8F 93 3D B5 32 90 5A 2D 4B B0 81 A2 D4 8C [00:07:21]CheckFolder [00:07:21]dirname=/storage/ofd_packets [00:07:21]CheckFolder done [00:07:21]ProducePacketName [00:07:21]name=ofd_packets/00118624 [00:07:21]NVStorageSaveData ofd_packets/00118624 [00:07:21]File name is /storage/ofd_packets/00118624 [00:07:21]Write 267 bytes [00:07:21]NVStorageSaveData done [00:07:21]OFDSenderStorePacket done [00:07:21]KKMCreateOFDPacket done [00:07:21]NVStorageSaveData kkm_last_timestamp [00:07:21]File name is /storage/kkm_last_timestamp [00:07:21]Write 4 bytes [00:07:21]NVStorageSaveData done [00:07:21]ExternCall_PrintAddStr [00:07:21]wPrintStart [00:07:21]Write to MH i2c: 01 00 00 B9 28 E1 [00:07:21]Write i2c OK [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: 01 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: 01 07 00 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: 01 07 00 B9 28 00 00 00 00 00 FF 0F F6 [00:07:21]RasterBufferAndPrint [00:07:21]line Отчет об открытии смены [00:07:21]line ФФД: 1.0 [00:07:21]line ИНН: 02508201610067 [00:07:21]line Кассир: Казаков Ч. [00:07:21]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [00:07:21]line Место: АЗС № 134 "Партнер Нефть" [00:07:21]line 29.07.2024 00:07 [00:07:21]line Смена: 434 [00:07:21]line РНМ: 0000000000092660 [00:07:21]line ЗНМ: 0300000044 [00:07:21]line ФД: 118624 [00:07:21]line ФМ: 0000000000874939 [00:07:21]line ФПД: 157862558249616 [00:07:21]OFD Sender: Processing packet 118624 [packets to send 86, broken 85] [00:07:21]ProducePacketName [00:07:21]name=ofd_packets/00118624 [00:07:21]written 0, free lines is 4095 [00:07:21]OFD Sender: To server: pG, [00:07:21]CommunicateWithHost lk.salyk.kg:30040 [00:07:21]ConnectInit lk.salyk.kg [00:07:22]Connected sock=10 [00:07: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 39 33 39 ED 00 00 00 D1 1E E5 00 22 94 5A 02 01 00 02 00 D9 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9A D0 B0 D0 B7 D0 B0 D0 BA D0 BE D0 B2 20 D0 A7 2E 20 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 34 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 39 DD A6 66 0E 04 04 00 B2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 60 CF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 8F 93 3D B5 32 90 5A 2D 4B B0 81 A2 D4 8C [00:07:22]Write to MH i2c: 01 00 00 CA 28 F2 [00:07:22]Write i2c OK [00:07:22]MH_I2C_Read... [00:07:22]Read from MH i2c: 01 [00:07:22]MH_I2C_Read... [00:07:22]Read from MH i2c: 01 07 00 [00:07:22]MH_I2C_Read... [00:07:22]Read from MH i2c: 01 07 00 CA 28 00 00 00 00 00 6C 0E 73 [00:07:22]RasterBufferAndPrint [00:07:22]line [00:07:22]line [00:07:22]line [00:07:22]line [00:07:22]line [00:07:22]written 0, free lines is 3700 [00:07:22]MH_Cut [00:07:22]Write to MH i2c: D1 01 00 D1 28 01 CB [00:07:22]Write i2c OK [00:07:22]MH_I2C_Read... [00:07:22]Read from MH i2c: D1 [00:07:22]MH_I2C_Read... [00:07:22]Read from MH i2c: D1 01 00 [00:07:22]MH_I2C_Read... [00:07:22]Read from MH i2c: D1 01 00 D1 28 00 CA [00:07:22]Write to MH i2c: 01 00 00 D2 28 FA [00:07:22]Write i2c OK [00:07:22]MH_I2C_Read... [00:07:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6E D8 47 00 9D 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 60 CF 01 00 F4 03 04 00 CA 8A A6 66 B6 04 01 00 00 68 EE 18 7E 8F 08 62 DF [00:07:22]CommunicateWithHost err = 0 [00:07:22]CheckOFDResponse [00:07:22]1017 (14) - 77093643461234 [00:07:22]1041 (16) - 0000000000874939 [00:07:22]1040 (4) - 118624 [00:07:22]1012 (4) - 28.07.2024 18:15 [00:07:22]1206 (1) - 0 [00:07:22]OFD Sender: Remove packet 118624 [00:07:22]ProducePacketName [00:07:22]name=ofd_packets/00118624 [00:07:22]NVStorageDeleteData [00:07:22]*** Cut start [00:07:22]*** Partial cut [00:07:22]*** CUTSNS_PIN = 1 [00:07:22]*** CUTSNS_PIN = 0 [00:07:22]OFD Sender: No OFD packet to send [00:07:22]*** Brake cut motor [00:07:23]Read from MH i2c: 01 [00:07:23]MH_I2C_Read... [00:07:23]*** Stop cut motor [00:07:23]*** Cut end [00:07:23]Read from MH i2c: 01 07 00 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: 01 07 00 D2 28 00 00 00 00 00 FF 0F 0F [00:07:23]process_action open_shift done [00:07:23]requested_data is exist [00:07:23]produce_requested_data [00:07:23]requested_item fd.num is exist - process it [00:07:23]SAM_PROTO_GetFieldsCounters [00:07:23]wFMCommunicate request_size=4 [00:07:23]MH_SAM_APDU [00:07:23]CAPDU: 80 13 00 00 [00:07:23]Write to MH i2c: E2 08 00 D3 28 80 13 00 00 00 00 00 00 77 [00:07:23]Write i2c OK [00:07:23]MH_I2C_Read... [00:07:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:23]Read from MH i2c: E2 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: E2 62 00 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: E2 62 00 D3 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 60 CF 01 00 0E 04 04 00 B2 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 81 [00: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 60 CF 01 00 0E 04 04 00 B2 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:07:23]wFMCommunicate OK [00:07:23]SAM_PROTO_GetFieldsCounters done [00:07:23]requested_item shift.num is exist - process it [00:07:23]requested_item shift.opened is exist - process it [00:07:23]req_shift_opened [00:07:23]FM_GetShiftState [00:07:23]SAM_PROTO_GetShiftState [00:07:23]wFMCommunicate request_size=4 [00:07:23]MH_SAM_APDU [00:07:23]CAPDU: 80 13 01 00 [00:07:23]Write to MH i2c: E2 08 00 D4 28 80 13 01 00 00 00 00 00 79 [00:07:23]Write i2c OK [00:07:23]MH_I2C_Read... [00:07:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:23]Read from MH i2c: E2 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: E2 0E 00 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: E2 0E 00 D4 28 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A7 [00:07:23]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [00:07:23]wFMCommunicate OK [00:07:23]SAM_PROTO_GetShiftState done [00:07:23]FM_GetShiftState done [00:07:23]req_shift_opened done [00:07:23]requested_item shift.open_date is exist - process it [00:07:23]req_shift_open_date [00:07:23]req_shift_open_date done [00:07:23]produce_requested_data done [00:07:23]produce_requested_data return {"fd.num":118624,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [00:07:23]process_action_free open_shift [00:07:23]json_value_free [00:07:23]json_value_free done [00:07:23]process_json_proto returns [00:07:23]Send response to host [00:07:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":118624,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [00:07:23]free response buf [00:07:23]execute_script done [00:07:23]execute_script returns [00:07:23]free content buf [00:07:23]Sock 9.Close socket [00:07:23]Sock 9.Thread stoped [00:07:23]accept exits with 7 [00:07:23]New connection [00:07:23]New thread 3067239780 created [00:07:23]Thread 3067383140 joined [00:07:23]Waiting for new connection... [00:07:23] Sock 7.Parse request [00:07:23]Sock 7.Check first char [00:07:23]Sock 7.First char is OK [00:07:23]request: POST /json_proto HTTP/1.0 [00:07:23]Method: POST [00:07:23]URL: /json_proto [00:07:23]Method is POST - this is cgi request [00:07:23]url: /json_proto [00:07:23]query_string will be loaded in cgi processing [00:07:23]execute_cgi json_proto POST (null) [00:07:23]execute_cgi path=json_proto method=POST [00:07:23]POST find Content-Length [00:07:23]Host: 172.17.45.7:8080 [00:07:23]Content-Length: 331 [00:07:23]Content-Type: application/json [00:07:23] [00:07:23]POST finish read [00:07:23]Found Content-Length = 331 [00:07:23]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:07:23]execute_script... [00:07:23]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:07:23]POST & json_proto [00:07:23]process_json_proto [00:07:23]json parsed OK: [00:07:23]protocol is kg_v1.0 [00:07:23]action value=get_value [00:07:23]process_action get_value [00:07:23]cmd_get_value [00:07:23]process_action get_value done [00:07:23]requested_data is exist [00:07:23]produce_requested_data [00:07:23]requested_item fm.sale.total is exist - process it [00:07:23]SAM_PROTO_GetFMData [00:07:23]wFMCommunicate request_size=4 [00:07:23]MH_SAM_APDU [00:07:23]CAPDU: 80 13 03 00 [00:07:23]Write to MH i2c: E2 08 00 D5 28 80 13 03 00 00 00 00 00 7C [00:07:23]Write i2c OK [00:07:23]MH_I2C_Read... [00:07:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:24]Read from MH i2c: E2 [00:07:24]MH_I2C_Read... [00:07:24]Read from MH i2c: E2 FD 00 [00:07:24]MH_I2C_Read... [00:07:24]Read from MH i2c: E2 FD 00 D5 28 00 C5 04 85 04 C1 04 6E 04 04 00 FC CB 01 00 69 04 A3 00 6F 04 04 00 72 BE 01 00 B1 04 05 00 78 ED 5D 75 03 70 04 05 00 98 B7 97 A7 02 72 04 04 00 E0 35 C6 CD 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 0C AF 0B 5E 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 50 2D D6 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 9C 00 6F 04 04 00 8A 0D 00 00 B1 04 04 00 3C E3 13 3B 70 04 04 00 3C E3 13 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 11 44 46 06 EF 03 09 90 00 9A [00:07:24]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 FC CB 01 00 69 04 A3 00 6F 04 04 00 72 BE 01 00 B1 04 05 00 78 ED 5D 75 03 70 04 05 00 98 B7 97 A7 02 72 04 04 00 E0 35 C6 CD 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 0C AF 0B 5E 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 50 2D D6 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 9C 00 6F 04 04 00 8A 0D 00 00 B1 04 04 00 3C E3 13 3B 70 04 04 00 3C E3 13 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 11 44 46 06 EF 03 09 90 00 [00:07:24]wFMCommunicate OK [00:07:24]wFMCommunicate request_size=4 [00:07:24]MH_SAM_APDU [00:07:24]CAPDU: 80 17 00 00 [00:07:24]Write to MH i2c: E2 08 00 D6 28 80 17 00 00 00 00 00 00 7E [00:07:24]Write i2c OK [00:07:24]MH_I2C_Read... [00:07:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:24]Read from MH i2c: E2 [00:07:24]MH_I2C_Read... [00:07:24]Read from MH i2c: E2 FD 00 [00:07:24]MH_I2C_Read... [00:07:24]Read from MH i2c: E2 FD 00 D6 28 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F DA 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 B2 [00:07:24]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F DA 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:07:24]wFMCommunicate OK [00:07:24]wFMCommunicate request_size=4 [00:07:24]MH_SAM_APDU [00:07:24]CAPDU: 80 17 00 00 [00:07:24]Write to MH i2c: E2 08 00 D7 28 80 17 00 00 00 00 00 00 7F [00:07:24]Write i2c OK [00:07:24]MH_I2C_Read... [00:07:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:24]Read from MH i2c: E2 [00:07:24]MH_I2C_Read... [00:07:24]Read from MH i2c: E2 FD 00 [00:07:24]MH_I2C_Read... [00:07:24]Read from MH i2c: E2 FD 00 D7 28 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 91 [00:07:24]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:07:24]wFMCommunicate OK [00:07:24]wFMCommunicate request_size=4 [00:07:24]MH_SAM_APDU [00:07:25]CAPDU: 80 17 00 00 [00:07:25]Write to MH i2c: E2 08 00 D8 28 80 17 00 00 00 00 00 00 80 [00:07:25]Write i2c OK [00:07:25]MH_I2C_Read... [00:07:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:25]Read from MH i2c: E2 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: E2 FD 00 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: E2 FD 00 D8 28 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 0C [00:07:25]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:07:25]wFMCommunicate OK [00:07:25]wFMCommunicate request_size=4 [00:07:25]MH_SAM_APDU [00:07:25]CAPDU: 80 17 00 00 [00:07:25]Write to MH i2c: E2 08 00 D9 28 80 17 00 00 00 00 00 00 81 [00:07:25]Write i2c OK [00:07:25]MH_I2C_Read... [00:07:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:07:25]Read from MH i2c: E2 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: E2 E2 00 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: E2 E2 00 D9 28 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5F [00:07:25]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:25]wFMCommunicate OK [00:07:25]SAM_PROTO_GetFMData done [00:07:25]requested_item fm.sale_refund.total is exist - process it [00:07:25]requested_item fm.buy.total is exist - process it [00:07:25]requested_item shift.sale.total is exist - process it [00:07:25]SAM_PROTO_GetShiftData [00:07:25]wFMCommunicate request_size=4 [00:07:25]MH_SAM_APDU [00:07:25]CAPDU: 80 13 02 00 [00:07:25]Write to MH i2c: E2 08 00 DA 28 80 13 02 00 00 00 00 00 80 [00:07:25]Write i2c OK [00:07:25]MH_I2C_Read... [00:07:26]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:26]Read from MH i2c: E2 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: E2 FD 00 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: E2 FD 00 DA 28 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 F3 [00:07:26]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:07:26]wFMCommunicate OK [00:07:26]wFMCommunicate request_size=4 [00:07:26]MH_SAM_APDU [00:07:26]CAPDU: 80 17 00 00 [00:07:26]Write to MH i2c: E2 08 00 DB 28 80 17 00 00 00 00 00 00 83 [00:07:26]Write i2c OK [00:07:26]MH_I2C_Read... [00:07:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:26]Read from MH i2c: E2 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: E2 FD 00 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: E2 FD 00 DB 28 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 8B [00:07:26]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:07:26]wFMCommunicate OK [00:07:26]wFMCommunicate request_size=4 [00:07:26]MH_SAM_APDU [00:07:26]CAPDU: 80 17 00 00 [00:07:26]Write to MH i2c: E2 08 00 DC 28 80 17 00 00 00 00 00 00 84 [00:07:26]Write i2c OK [00:07:26]MH_I2C_Read... [00:07:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:27]Read from MH i2c: E2 [00:07:27]MH_I2C_Read... [00:07:27]Read from MH i2c: E2 FD 00 [00:07:27]MH_I2C_Read... [00:07:27]Read from MH i2c: E2 FD 00 DC 28 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 56 [00:07:27]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:07:27]wFMCommunicate OK [00:07:27]wFMCommunicate request_size=4 [00:07:27]MH_SAM_APDU [00:07:27]CAPDU: 80 17 00 00 [00:07:27]Write to MH i2c: E2 08 00 DD 28 80 17 00 00 00 00 00 00 85 [00:07:27]Write i2c OK [00:07:27]MH_I2C_Read... [00:07:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:27]Read from MH i2c: E2 [00:07:27]MH_I2C_Read... [00:07:27]Read from MH i2c: E2 FD 00 [00:07:27]MH_I2C_Read... [00:07:27]Read from MH i2c: E2 FD 00 DD 28 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 F7 [00:07:27]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:07:27]wFMCommunicate OK [00:07:27]wFMCommunicate request_size=4 [00:07:27]MH_SAM_APDU [00:07:27]CAPDU: 80 17 00 00 [00:07:27]Write to MH i2c: E2 08 00 DE 28 80 17 00 00 00 00 00 00 86 [00:07:27]Write i2c OK [00:07:27]MH_I2C_Read... [00:07:27]OFD Sender: No OFD packet to send [00:07:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:07:27]Read from MH i2c: E2 [00:07:27]MH_I2C_Read... [00:07:27]Read from MH i2c: E2 BD 00 [00:07:27]MH_I2C_Read... [00:07:27]Read from MH i2c: E2 BD 00 DE 28 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 6C [00:07:28]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:07:28]wFMCommunicate OK [00:07:28]SAM_PROTO_GetShiftData done [00:07:28]requested_item shift.sale.total_cash is exist - process it [00:07:28]requested_item shift.sale_refund.total is exist - process it [00:07:28]requested_item shift.sale_refund.total_cash is exist - process it [00:07:28]requested_item shift.buy.total is exist - process it [00:07:28]requested_item shift.buy.total_cash is exist - process it [00:07:28]produce_requested_data done [00:07:28]produce_requested_data return {"fm.sale.total":148539918.00,"fm.sale_refund.total":9911591.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:07:28]process_action_free get_value [00:07:28]json_value_free [00:07:28]json_value_free done [00:07:28]process_json_proto returns [00:07:28]Send response to host [00:07:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148539918.00,"fm.sale_refund.total":9911591.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:07:28]free response buf [00:07:28]execute_script done [00:07:28]execute_script returns [00:07:28]free content buf [00:07:28]Sock 7.Close socket [00:07:28]Sock 7.Thread stoped [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:28]OFD Sender: No OFD packet to send [00:08:33]OFD Sender: No OFD packet to send [00:08:38]OFD Sender: No OFD packet to send [00:08:43]OFD Sender: No OFD packet to send [00:08:48]OFD Sender: No OFD packet to send [00:08:53]OFD Sender: No OFD packet to send [00:08:58]OFD Sender: No OFD packet to send [00:09:03]OFD Sender: No OFD packet to send [00:09:08]OFD Sender: No OFD packet to send [00:09:13]OFD Sender: No OFD packet to send [00:09:18]OFD Sender: No OFD packet to send [00:09:23]OFD Sender: No OFD packet to send [00:09:28]OFD Sender: No OFD packet to send [00:09:33]OFD Sender: No OFD packet to send [00:09:38]OFD Sender: No OFD packet to send [00:09:43]OFD Sender: No OFD packet to send [00:09:48]OFD Sender: No OFD packet to send [00:09:53]OFD Sender: No OFD packet to send [00:09:58]OFD Sender: No OFD packet to send [00:10:03]OFD Sender: No OFD packet to send [00:10:08]OFD Sender: No OFD packet to send [00:10:13]OFD Sender: No OFD packet to send [00:10:18]OFD Sender: No OFD packet to send [00:10:23]OFD Sender: No OFD packet to send [00:10:28]OFD Sender: No OFD packet to send [00:10:33]OFD Sender: No OFD packet to send [00:10:38]OFD Sender: No OFD packet to send [00:10:43]OFD Sender: No OFD packet to send [00:10:48]OFD Sender: No OFD packet to send [00:10:53]OFD Sender: No OFD packet to send [00:10:58]OFD Sender: No OFD packet to send [00:11:03]OFD Sender: No OFD packet to send [00:11:08]OFD Sender: No OFD packet to send [00:11:13]OFD Sender: No OFD packet to send [00:11:18]OFD Sender: No OFD packet to send [00:11:23]OFD Sender: No OFD packet to send [00:11:28]OFD Sender: No OFD packet to send [00:11:33]OFD Sender: No OFD packet to send [00:11:38]OFD Sender: No OFD packet to send [00:11:43]OFD Sender: No OFD packet to send [00:11:48]OFD Sender: No OFD packet to send [00:11:52]accept exits with 9 [00:11:52]New connection [00:11:52]New thread 3067383140 created [00:11:52]Thread 3067239780 joined [00:11:52]Waiting for new connection... [00:11:52] Sock 9.Parse request [00:11:52]Sock 9.Check first char [00:11:52]Sock 9.First char is OK [00:11:52]request: POST /json_proto HTTP/1.0 [00:11:52]Method: POST [00:11:52]URL: /json_proto [00:11:52]Method is POST - this is cgi request [00:11:52]url: /json_proto [00:11:52]query_string will be loaded in cgi processing [00:11:52]execute_cgi json_proto POST (null) [00:11:52]execute_cgi path=json_proto method=POST [00:11:52]POST find Content-Length [00:11:52]Host: 172.17.45.7:8080 [00:11:52]Content-Length: 679 [00:11:52]Content-Type: application/json [00:11:52] [00:11:52]POST finish read [00:11:52]Found Content-Length = 679 [00:11:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 16.410, "sum" : 1250.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1250.00, "total" : 1250.00, "payments": [ { "type": 0, "sum" : 1250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:52]execute_script... [00:11:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 16.410, "sum" : 1250.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1250.00, "total" : 1250.00, "payments": [ { "type": 0, "sum" : 1250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:52]POST & json_proto [00:11:52]process_json_proto [00:11:52]json parsed OK: [00:11:52]protocol is kg_v1.0 [00:11:52]action value=close_receipt [00:11:52]process_action close_receipt [00:11:52]cmd_close_receipt [00:11:52]MH_GetDate [00:11:52]Write to MH i2c: F0 00 00 DF 28 F6 [00:11:52]Write i2c OK [00:11:52]MH_I2C_Read... [00:11:52]Read from MH i2c: F0 [00:11:52]MH_I2C_Read... [00:11:52]Read from MH i2c: F0 09 00 [00:11:52]MH_I2C_Read... [00:11:52]Read from MH i2c: F0 09 00 DF 28 00 4B DE A6 66 90 0F 3E 66 77 [00:11:52]GetLastDocTimeStamp 1722211641 [00:11:52]current date 1722211915 [00:11:52]FM_GetShiftState [00:11:52]SAM_PROTO_GetShiftState [00:11:52]wFMCommunicate request_size=4 [00:11:52]MH_SAM_APDU [00:11:52]CAPDU: 80 13 01 00 [00:11:52]Write to MH i2c: E2 08 00 E0 28 80 13 01 00 00 00 00 00 85 [00:11:52]Write i2c OK [00:11:52]MH_I2C_Read... [00:11:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:52]Read from MH i2c: E2 [00:11:52]MH_I2C_Read... [00:11:52]Read from MH i2c: E2 0E 00 [00:11:52]MH_I2C_Read... [00:11:52]Read from MH i2c: E2 0E 00 E0 28 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 B3 [00:11:52]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [00:11:52]wFMCommunicate OK [00:11:52]SAM_PROTO_GetShiftState done [00:11:52]FM_GetShiftState done [00:11:52]opened in 1722211641 [00:11:52]opened+sec_in_day 1722298041 [00:11:52]quantity*price = 125044 [00:11:52]sum+1 = 125045 [00:11:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 1250.00 Внесено: 1250.00 СДАЧА: 0.00 НСП 1% : 11.07 НДС 12% : 132.79 Наличными: 1250.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 1 29.07.2024 00:11 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118625 ФПД: 280326911141871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T001155&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118625&fm=280326911141871&tin=02508201610067®Number=0000000000092660&sum=125000 [00:11:53]StoreToDocumentArchive [00:11:53]shift 434 fd 118625 [00:11:53]save to /storage/0434/doc_00118625 [00:11:53]save last doc name /storage/0434/doc_00118625 to /storage/kkm_last_doc_name [00:11:53]save OK [00:11:53]Clear old archive folders... [00:11:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:11:53]tlvbuf is 01EBDA60 [00:11:53]SAM_PROTO_ClearQueue [00:11:53]wFMCommunicate request_size=4 [00:11:53]MH_SAM_APDU [00:11:53]CAPDU: 80 09 00 00 [00:11:53]Write to MH i2c: E2 08 00 ED 28 80 09 00 00 00 00 00 00 87 [00:11:53]Write i2c OK [00:11:53]MH_I2C_Read... [00:11:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:11:53]Read from MH i2c: E2 [00:11:53]MH_I2C_Read... [00:11:53]Read from MH i2c: E2 03 00 [00:11:53]MH_I2C_Read... [00:11:53]Read from MH i2c: E2 03 00 ED 28 00 90 00 89 [00:11:53]RAPDU: 90 00 [00:11:53]wFMCommunicate OK [00:11:53]SAM_PROTO_ClearQueue done [00:11:53]KKMCreateOFDPacket [00:11:53]OFDProtocolAddRootSTLVToBuf [00:11:53]FM_MakeSignedData [00:11:53]FM_MakeSignedData [00:11:53]SAM_PROTO_SignData [00:11:53]wFMCommunicate request_size=4 [00:11:53]MH_SAM_APDU [00:11:53]CAPDU: 80 0D 01 02 [00:11:53]Write to MH i2c: E2 08 00 EE 28 80 0D 01 02 00 00 00 00 8F [00:11:53]Write i2c OK [00:11:53]MH_I2C_Read... [00:11:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:11:53]Read from MH i2c: E2 [00:11:53]MH_I2C_Read... [00:11:53]Read from MH i2c: E2 03 00 [00:11:53]MH_I2C_Read... [00:11:53]Read from MH i2c: E2 03 00 EE 28 00 90 00 8A [00:11:53]RAPDU: 90 00 [00:11:53]wFMCommunicate OK [00:11:53]wFMCommunicate request_size=255 [00:11:53]MH_SAM_APDU [00:11:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 40 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 74 E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 33 00 00 00 00 07 04 06 00 48 E8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 4B DE A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 61 CF 01 00 35 04 06 00 FE F4 B1 F5 [00:11:53]Write to MH i2c: E2 02 01 EF 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 40 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 74 E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 33 00 00 00 00 07 04 06 00 48 E8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 4B DE A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 61 CF 01 00 35 04 06 00 FE F4 B1 F5 00 00 0C [00:11:53]Write i2c OK [00:11:53]MH_I2C_Read... [00:11:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:54]Read from MH i2c: E2 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: E2 03 00 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: E2 03 00 EF 28 00 90 00 8B [00:11:54]RAPDU: 90 00 [00:11:54]wFMCommunicate OK [00:11:54]wFMCommunicate request_size=7 [00:11:54]MH_SAM_APDU [00:11:54]CAPDU: 80 0D 02 02 02 A7 EF [00:11:54]Write to MH i2c: E2 0A 00 F0 28 80 0D 02 02 02 00 A7 EF 00 00 2C [00:11:54]Write i2c OK [00:11:54]MH_I2C_Read... [00:11:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:54]Read from MH i2c: E2 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: E2 03 00 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: E2 03 00 F0 28 00 90 00 8C [00:11:54]RAPDU: 90 00 [00:11:54]wFMCommunicate OK [00:11:54]wFMCommunicate request_size=4 [00:11:54]MH_SAM_APDU [00:11:54]CAPDU: 80 0D 03 02 [00:11:54]Write to MH i2c: E2 08 00 F1 28 80 0D 03 02 00 00 00 00 94 [00:11:54]Write i2c OK [00:11:54]MH_I2C_Read... [00:11:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:11:54]Read from MH i2c: E2 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: E2 0B 00 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: E2 0B 00 F1 28 00 81 80 F2 0F 44 89 AF 56 90 00 69 [00:11:54]RAPDU: 81 80 F2 0F 44 89 AF 56 90 00 [00:11:54]wFMCommunicate OK [00:11:54]SAM_PROTO_SignData done [00:11:54]FM_MakeSignedData done [00:11:54]CreateOFDProtocolMessage [00:11:54]wFMCommunicate request_size=4 [00:11:54]MH_SAM_APDU [00:11:54]CAPDU: 80 11 00 00 [00:11:54]Write to MH i2c: E2 08 00 F2 28 80 11 00 00 00 00 00 00 94 [00:11:54]Write i2c OK [00:11:54]MH_I2C_Read... [00:11:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:54]Read from MH i2c: E2 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: E2 17 00 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: E2 17 00 F2 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EF [00:11:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:11:54]wFMCommunicate OK [00:11:54]CreateOFDProtocolMessage done [00:11:54]OFDSenderStorePacket 118625 [00:11:54]StoreOFDPacket docnum=118625 [00:11:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 EA 6F 04 01 48 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 40 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 74 E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 33 00 00 00 00 07 04 06 00 48 E8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 4B DE A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 61 CF 01 00 35 04 06 00 FE F4 B1 F5 A7 EF 81 80 F2 0F 44 89 AF 56 [00:11:54]CheckFolder [00:11:54]dirname=/storage/ofd_packets [00:11:54]CheckFolder done [00:11:54]ProducePacketName [00:11:54]name=ofd_packets/00118625 [00:11:54]NVStorageSaveData ofd_packets/00118625 [00:11:54]File name is /storage/ofd_packets/00118625 [00:11:54]Write 298 bytes [00:11:54]NVStorageSaveData done [00:11:54]OFDSenderStorePacket done [00:11:54]KKMCreateOFDPacket done [00:11:54]NVStorageSaveData kkm_last_timestamp [00:11:54]File name is /storage/kkm_last_timestamp [00:11:54]Write 4 bytes [00:11:54]NVStorageSaveData done [00:11:54]ExternCall_PrintAddStr [00:11:54]wPrintStart [00:11:54]Write to MH i2c: 01 00 00 F3 28 1B [00:11:54]Write i2c OK [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: 01 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: 01 07 00 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: 01 07 00 F3 28 00 00 00 00 00 FF 0F 30 [00:11:54]RasterBufferAndPrint [00:11:54]line Счет N : (1)949509 [00:11:54]line ИНН: 02508201610067 [00:11:54]line Контрольно-Кассовый Чек [00:11:54]line ПРОДАЖА [00:11:54]line ТРК (МРК, ГНК) : 64 [00:11:54]line Товар: 2710194800 [00:11:54]line ДТ-К-5 [00:11:54]line 16.410 * 76.20 [00:11:54]line = 1250.44 [00:11:54]line НДС 12% НСП 1% [00:11:54]line > о реализуемом товаре [00:11:54]line ОКРУГЛЕНИЕ: -0.44 [00:11:54]line ИТОГО: 1250.00 [00:11:54]line Внесено: 1250.00 [00:11:54]line СДАЧА: 0.00 [00:11:54]line НСП 1% : 11.07 [00:11:54]line НДС 12% : 132.79 [00:11:54]line Наличными: 1250.00 [00:11:54]line Безнал.: 0.00 [00:11:54]line Место: АЗС № 134 "Партнер Нефть" [00:11:54]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [00:11:54]line СНО: Общий режим [00:11:54]line Чек 1 29.07.2024 00:11 [00:11:54]line Смена: 434 ФФД: 1.0 [00:11:54]line ЗНМ: 0300000044 [00:11:54]line РНМ: 0000000000092660 [00:11:54]line Версия ККМ: 001 [00:11:54]line ФМ: 0000000000874939 [00:11:54]line ФД: 118625 [00:11:54]line ФПД: 280326911141871 [00:11:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T001155&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118625&fm=280326911141871&tin=02508201610067®Number=0000000000092660&sum=125000 [00:11:54]OFD Sender: Processing packet 118625 [packets to send 86, broken 85] [00:11:54]ProducePacketName [00:11:54]name=ofd_packets/00118625 [00:11:54]OFD Sender: To server: pG, [00:11:54]CommunicateWithHost lk.salyk.kg:30040 [00:11:54]ConnectInit lk.salyk.kg [00:11:54]written 0, free lines is 4095 [00:11:54]Connected sock=10 [00:11:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 EA 6F 04 01 48 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 40 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 74 E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 33 00 00 00 00 07 04 06 00 48 E8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 4B DE A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 61 CF 01 00 35 04 06 00 FE F4 B1 F5 A7 EF 81 80 F2 0F 44 89 AF 56 [00:11:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 7B 01 47 00 53 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 61 CF 01 00 F4 03 04 00 DA 8B A6 66 B6 04 01 00 00 40 86 EB C4 FA 71 3A D6 [00:11:54]CommunicateWithHost err = 0 [00:11:54]CheckOFDResponse [00:11:54]1017 (14) - 77093643461234 [00:11:54]1041 (16) - 0000000000874939 [00:11:54]1040 (4) - 118625 [00:11:54]1012 (4) - 28.07.2024 18:20 [00:11:54]1206 (1) - 0 [00:11:54]OFD Sender: Remove packet 118625 [00:11:54]ProducePacketName [00:11:54]name=ofd_packets/00118625 [00:11:54]NVStorageDeleteData [00:11:55]Write to MH i2c: 01 00 00 1D 29 46 [00:11:55]Write i2c OK [00:11:55]MH_I2C_Read... [00:11:55]Read from MH i2c: 01 [00:11:55]MH_I2C_Read... [00:11:55]Read from MH i2c: 01 07 00 [00:11:55]MH_I2C_Read... [00:11:55]Read from MH i2c: 01 07 00 1D 29 00 00 00 00 00 DC 0C 35 [00:11:55]RasterBufferAndPrint [00:11:55]line [00:11:55]line [00:11:55]line [00:11:55]line [00:11:55]line [00:11:55]written 0, free lines is 3297 [00:11:55]MH_Cut [00:11:55]Write to MH i2c: D1 01 00 24 29 01 1F [00:11:55]Write i2c OK [00:11:55]MH_I2C_Read... [00:11:55]Read from MH i2c: D1 [00:11:55]MH_I2C_Read... [00:11:55]Read from MH i2c: D1 01 00 [00:11:55]MH_I2C_Read... [00:11:55]Read from MH i2c: D1 01 00 24 29 00 1E [00:11:55]Write to MH i2c: 01 00 00 25 29 4E [00:11:55]Write i2c OK [00:11:55]MH_I2C_Read... [00:11:55]OFD Sender: No OFD packet to send [00:11:55]*** Cut start [00:11:55]*** Partial cut [00:11:55]*** CUTSNS_PIN = 1 [00:11:55]*** CUTSNS_PIN = 0 [00:11:56]*** Brake cut motor [00:11:56]Read from MH i2c: 01 [00:11:56]MH_I2C_Read... [00:11:56]*** Stop cut motor [00:11:56]*** Cut end [00:11:56]Read from MH i2c: 01 07 00 [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: 01 07 00 25 29 00 00 00 00 00 FF 0F 63 [00:11:56]process_action close_receipt done [00:11:56]requested_data is exist [00:11:56]produce_requested_data [00:11:56]requested_item fm.sn is exist - process it [00:11:56]wFMCommunicate request_size=4 [00:11:56]MH_SAM_APDU [00:11:56]CAPDU: 80 11 00 00 [00:11:56]Write to MH i2c: E2 08 00 26 29 80 11 00 00 00 00 00 00 C9 [00:11:56]Write i2c OK [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: E2 [00:11:56]MH_I2C_Read... [00:11:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:56]Read from MH i2c: E2 17 00 [00:11:56]MH_I2C_Read... [00:11:56]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 39 33 39 90 00 24 [00:11:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:11:56]wFMCommunicate OK [00:11:56]requested_item fd.num is exist - process it [00:11:56]SAM_PROTO_GetFieldsCounters [00:11:56]wFMCommunicate request_size=4 [00:11:56]MH_SAM_APDU [00:11:56]CAPDU: 80 13 00 00 [00:11:56]Write to MH i2c: E2 08 00 27 29 80 13 00 00 00 00 00 00 CC [00:11:56]Write i2c OK [00:11:56]MH_I2C_Read... [00:11:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:56]Read from MH i2c: E2 [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: E2 62 00 [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: E2 62 00 27 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 61 CF 01 00 0E 04 04 00 B2 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 DA [00:11:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 61 CF 01 00 0E 04 04 00 B2 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:11:56]wFMCommunicate OK [00:11:56]SAM_PROTO_GetFieldsCounters done [00:11:56]requested_item shift.num is exist - process it [00:11:56]requested_item shift.opened is exist - process it [00:11:56]req_shift_opened [00:11:56]FM_GetShiftState [00:11:56]SAM_PROTO_GetShiftState [00:11:56]wFMCommunicate request_size=4 [00:11:56]MH_SAM_APDU [00:11:56]CAPDU: 80 13 01 00 [00:11:56]Write to MH i2c: E2 08 00 28 29 80 13 01 00 00 00 00 00 CE [00:11:56]Write i2c OK [00:11:56]MH_I2C_Read... [00:11:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:56]Read from MH i2c: E2 [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: E2 0E 00 [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: E2 0E 00 28 29 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 FC [00:11:56]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [00:11:56]wFMCommunicate OK [00:11:56]SAM_PROTO_GetShiftState done [00:11:56]FM_GetShiftState done [00:11:56]req_shift_opened done [00:11:56]requested_item shift.open_date is exist - process it [00:11:56]req_shift_open_date [00:11:56]req_shift_open_date done [00:11:56]produce_requested_data done [00:11:56]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118625,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [00:11:56]process_action_free close_receipt [00:11:56]json_value_free [00:11:56]json_value_free done [00:11:56]process_json_proto returns [00:11:56]Send response to host [00:11:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118625,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [00:11:56]free response buf [00:11:56]execute_script done [00:11:56]execute_script returns [00:11:56]free content buf [00:11:56]Sock 9.Close socket [00:11:56]Sock 9.Thread stoped [00:12:00]OFD Sender: No OFD packet to send [00:12:03]accept exits with 7 [00:12:03]New connection [00:12:03]New thread 3067239780 created [00:12:03]Thread 3067383140 joined [00:12:03]Waiting for new connection... [00:12:03] Sock 7.Parse request [00:12:03]Sock 7.Check first char [00:12:03]Sock 7.First char is OK [00:12:03]request: POST /json_proto HTTP/1.0 [00:12:03]Method: POST [00:12:03]URL: /json_proto [00:12:03]Method is POST - this is cgi request [00:12:03]url: /json_proto [00:12:03]query_string will be loaded in cgi processing [00:12:03]execute_cgi json_proto POST (null) [00:12:03]execute_cgi path=json_proto method=POST [00:12:03]POST find Content-Length [00:12:03]Host: 172.17.45.7:8080 [00:12:03]Content-Length: 682 [00:12:03]Content-Type: application/json [00:12:03] [00:12:03]POST finish read [00:12:03]Found Content-Length = 682 [00:12:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:03]execute_script... [00:12:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:03]POST & json_proto [00:12:03]process_json_proto [00:12:03]json parsed OK: [00:12:03]protocol is kg_v1.0 [00:12:03]action value=close_receipt [00:12:03]process_action close_receipt [00:12:03]cmd_close_receipt [00:12:03]MH_GetDate [00:12:03]Write to MH i2c: F0 00 00 29 29 41 [00:12:03]Write i2c OK [00:12:03]MH_I2C_Read... [00:12:03]Read from MH i2c: F0 [00:12:03]MH_I2C_Read... [00:12:03]Read from MH i2c: F0 09 00 [00:12:03]MH_I2C_Read... [00:12:03]Read from MH i2c: F0 09 00 29 29 00 56 DE A6 66 90 0F 3E 66 CD [00:12:03]GetLastDocTimeStamp 1722211915 [00:12:03]current date 1722211926 [00:12:03]FM_GetShiftState [00:12:03]SAM_PROTO_GetShiftState [00:12:03]wFMCommunicate request_size=4 [00:12:03]MH_SAM_APDU [00:12:03]CAPDU: 80 13 01 00 [00:12:03]Write to MH i2c: E2 08 00 2A 29 80 13 01 00 00 00 00 00 D0 [00:12:03]Write i2c OK [00:12:03]MH_I2C_Read... [00:12:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:03]Read from MH i2c: E2 [00:12:03]MH_I2C_Read... [00:12:03]Read from MH i2c: E2 0E 00 [00:12:03]MH_I2C_Read... [00:12:03]Read from MH i2c: E2 0E 00 2A 29 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 FE [00:12:03]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [00:12:03]wFMCommunicate OK [00:12:03]SAM_PROTO_GetShiftState done [00:12:03]FM_GetShiftState done [00:12:03]opened in 1722211641 [00:12:03]opened+sec_in_day 1722298041 [00:12:03]quantity*price = 100005 [00:12:03]sum+1 = 100006 [00:12:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 2 29.07.2024 00:12 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118626 ФПД: 179169826156536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T001206&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118626&fm=179169826156536&tin=02508201610067®Number=0000000000092660&sum=100000 [00:12:04]StoreToDocumentArchive [00:12:04]shift 434 fd 118626 [00:12:04]save to /storage/0434/doc_00118626 [00:12:04]save last doc name /storage/0434/doc_00118626 to /storage/kkm_last_doc_name [00:12:04]save OK [00:12:04]Clear old archive folders... [00:12:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:12:04]tlvbuf is 01E2A430 [00:12:04]SAM_PROTO_ClearQueue [00:12:04]wFMCommunicate request_size=4 [00:12:04]MH_SAM_APDU [00:12:04]CAPDU: 80 09 00 00 [00:12:04]Write to MH i2c: E2 08 00 37 29 80 09 00 00 00 00 00 00 D2 [00:12:04]Write i2c OK [00:12:04]MH_I2C_Read... [00:12:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:12:04]Read from MH i2c: E2 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: E2 03 00 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: E2 03 00 37 29 00 90 00 D4 [00:12:04]RAPDU: 90 00 [00:12:04]wFMCommunicate OK [00:12:04]SAM_PROTO_ClearQueue done [00:12:04]KKMCreateOFDPacket [00:12:04]OFDProtocolAddRootSTLVToBuf [00:12:04]FM_MakeSignedData [00:12:04]FM_MakeSignedData [00:12:04]SAM_PROTO_SignData [00:12:04]wFMCommunicate request_size=4 [00:12:04]MH_SAM_APDU [00:12:04]CAPDU: 80 0D 01 02 [00:12:04]Write to MH i2c: E2 08 00 38 29 80 0D 01 02 00 00 00 00 DA [00:12:04]Write i2c OK [00:12:04]MH_I2C_Read... [00:12:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:12:04]Read from MH i2c: E2 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: E2 03 00 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: E2 03 00 38 29 00 90 00 D5 [00:12:04]RAPDU: 90 00 [00:12:04]wFMCommunicate OK [00:12:04]wFMCommunicate request_size=255 [00:12:04]MH_SAM_APDU [00:12:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 56 DE A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 62 CF 01 00 35 04 06 00 A2 [00:12:04]Write to MH i2c: E2 02 01 39 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 56 DE A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 62 CF 01 00 35 04 06 00 A2 00 00 B6 [00:12:04]Write i2c OK [00:12:04]MH_I2C_Read... [00:12:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:04]Read from MH i2c: E2 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: E2 03 00 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: E2 03 00 39 29 00 90 00 D6 [00:12:04]RAPDU: 90 00 [00:12:04]wFMCommunicate OK [00:12:04]wFMCommunicate request_size=10 [00:12:04]MH_SAM_APDU [00:12:04]CAPDU: 80 0D 02 02 05 F4 39 D7 AF F8 [00:12:04]Write to MH i2c: E2 0D 00 3A 29 80 0D 02 02 05 00 F4 39 D7 AF F8 00 00 92 [00:12:04]Write i2c OK [00:12:04]MH_I2C_Read... [00:12:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:04]Read from MH i2c: E2 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: E2 03 00 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: E2 03 00 3A 29 00 90 00 D7 [00:12:04]RAPDU: 90 00 [00:12:04]wFMCommunicate OK [00:12:04]wFMCommunicate request_size=4 [00:12:04]MH_SAM_APDU [00:12:04]CAPDU: 80 0D 03 02 [00:12:04]Write to MH i2c: E2 08 00 3B 29 80 0D 03 02 00 00 00 00 DF [00:12:04]Write i2c OK [00:12:04]MH_I2C_Read... [00:12:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:12:04]Read from MH i2c: E2 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: E2 0B 00 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: E2 0B 00 3B 29 00 29 34 4C 0F 99 4B 76 6E 90 00 60 [00:12:04]RAPDU: 29 34 4C 0F 99 4B 76 6E 90 00 [00:12:04]wFMCommunicate OK [00:12:04]SAM_PROTO_SignData done [00:12:04]FM_MakeSignedData done [00:12:04]CreateOFDProtocolMessage [00:12:04]wFMCommunicate request_size=4 [00:12:04]MH_SAM_APDU [00:12:04]CAPDU: 80 11 00 00 [00:12:04]Write to MH i2c: E2 08 00 3C 29 80 11 00 00 00 00 00 00 DF [00:12:04]Write i2c OK [00:12:04]MH_I2C_Read... [00:12:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:04]Read from MH i2c: E2 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: E2 17 00 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: E2 17 00 3C 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3A [00:12:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:12:04]wFMCommunicate OK [00:12:04]CreateOFDProtocolMessage done [00:12:04]OFDSenderStorePacket 118626 [00:12:04]StoreOFDPacket docnum=118626 [00:12:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 42 07 07 01 13 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 56 DE A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 62 CF 01 00 35 04 06 00 A2 F4 39 D7 AF F8 29 34 4C 0F 99 4B 76 6E [00:12:04]CheckFolder [00:12:04]dirname=/storage/ofd_packets [00:12:04]CheckFolder done [00:12:04]ProducePacketName [00:12:04]name=ofd_packets/00118626 [00:12:04]NVStorageSaveData ofd_packets/00118626 [00:12:04]File name is /storage/ofd_packets/00118626 [00:12:04]Write 301 bytes [00:12:04]NVStorageSaveData done [00:12:04]OFDSenderStorePacket done [00:12:04]KKMCreateOFDPacket done [00:12:04]NVStorageSaveData kkm_last_timestamp [00:12:04]File name is /storage/kkm_last_timestamp [00:12:04]Write 4 bytes [00:12:04]NVStorageSaveData done [00:12:04]ExternCall_PrintAddStr [00:12:04]wPrintStart [00:12:04]Write to MH i2c: 01 00 00 3D 29 66 [00:12:04]Write i2c OK [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: 01 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: 01 07 00 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: 01 07 00 3D 29 00 00 00 00 00 FF 0F 7B [00:12:04]RasterBufferAndPrint [00:12:04]line Счет N : (1)949510 [00:12:04]line ИНН: 02508201610067 [00:12:04]line Контрольно-Кассовый Чек [00:12:04]line ПРОДАЖА [00:12:04]line ТРК (МРК, ГНК) : 51 [00:12:04]line Товар: 2710124130 [00:12:04]line Аи-92-К-4 [00:12:04]line 14.750 * 67.80 [00:12:04]line = 1000.05 [00:12:04]line НДС 12% НСП 1% [00:12:04]line > о реализуемом товаре [00:12:04]line ОКРУГЛЕНИЕ: -0.05 [00:12:04]line ИТОГО: 1000.00 [00:12:04]line Внесено: 1000.00 [00:12:04]line СДАЧА: 0.00 [00:12:04]line НСП 1% : 8.85 [00:12:04]line НДС 12% : 106.20 [00:12:04]line Наличными: 1000.00 [00:12:04]line Безнал.: 0.00 [00:12:04]line Место: АЗС № 134 "Партнер Нефть" [00:12:04]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [00:12:04]line СНО: Общий режим [00:12:04]line Чек 2 29.07.2024 00:12 [00:12:04]line Смена: 434 ФФД: 1.0 [00:12:04]line ЗНМ: 0300000044 [00:12:04]line РНМ: 0000000000092660 [00:12:04]line Версия ККМ: 001 [00:12:04]line ФМ: 0000000000874939 [00:12:04]line ФД: 118626 [00:12:04]line ФПД: 179169826156536 [00:12:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T001206&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118626&fm=179169826156536&tin=02508201610067®Number=0000000000092660&sum=100000 [00:12:04]written 0, free lines is 4095 [00:12:04]OFD Sender: Processing packet 118626 [packets to send 86, broken 85] [00:12:04]ProducePacketName [00:12:04]name=ofd_packets/00118626 [00:12:04]OFD Sender: To server: pG, [00:12:04]CommunicateWithHost lk.salyk.kg:30040 [00:12:04]ConnectInit lk.salyk.kg [00:12:04]Connected sock=10 [00:12:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 42 07 07 01 13 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 56 DE A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 62 CF 01 00 35 04 06 00 A2 F4 39 D7 AF F8 29 34 4C 0F 99 4B 76 6E [00:12:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3D 39 47 00 71 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 39 33 39 10 04 04 00 62 CF 01 00 F4 03 04 00 E4 8B A6 66 B6 04 01 00 00 F6 35 DC 91 B7 73 FC 1B [00:12:05]CommunicateWithHost err = 0 [00:12:05]CheckOFDResponse [00:12:05]1017 (14) - 77093643461234 [00:12:05]1041 (16) - 0000000000874939 [00:12:05]1040 (4) - 118626 [00:12:05]1012 (4) - 28.07.2024 18:20 [00:12:05]1206 (1) - 0 [00:12:05]OFD Sender: Remove packet 118626 [00:12:05]ProducePacketName [00:12:05]name=ofd_packets/00118626 [00:12:05]NVStorageDeleteData [00:12:05]Write to MH i2c: 01 00 00 67 29 90 [00:12:05]Write i2c OK [00:12:05]MH_I2C_Read... [00:12:05]Read from MH i2c: 01 [00:12:05]MH_I2C_Read... [00:12:05]Read from MH i2c: 01 07 00 [00:12:05]MH_I2C_Read... [00:12:05]Read from MH i2c: 01 07 00 67 29 00 00 00 00 00 E9 0C 8C [00:12:05]RasterBufferAndPrint [00:12:05]line [00:12:05]line [00:12:05]line [00:12:05]line [00:12:05]line [00:12:05]written 0, free lines is 3314 [00:12:05]MH_Cut [00:12:05]Write to MH i2c: D1 01 00 6E 29 01 69 [00:12:05]Write i2c OK [00:12:05]MH_I2C_Read... [00:12:05]Read from MH i2c: D1 [00:12:05]MH_I2C_Read... [00:12:05]Read from MH i2c: D1 01 00 [00:12:05]MH_I2C_Read... [00:12:05]Read from MH i2c: D1 01 00 6E 29 00 68 [00:12:05]Write to MH i2c: 01 00 00 6F 29 98 [00:12:05]Write i2c OK [00:12:05]MH_I2C_Read... [00:12:05]OFD Sender: No OFD packet to send [00:12:06]*** Cut start [00:12:06]*** Partial cut [00:12:06]*** CUTSNS_PIN = 1 [00:12:06]*** CUTSNS_PIN = 0 [00:12:06]*** Brake cut motor [00:12:06]Read from MH i2c: 01 [00:12:06]MH_I2C_Read... [00:12:06]*** Stop cut motor [00:12:06]*** Cut end [00:12:06]Read from MH i2c: 01 07 00 [00:12:06]MH_I2C_Read... [00:12:06]Read from MH i2c: 01 07 00 6F 29 00 00 00 00 00 FF 0F AD [00:12:06]process_action close_receipt done [00:12:06]requested_data is exist [00:12:06]produce_requested_data [00:12:06]requested_item fm.sn is exist - process it [00:12:06]wFMCommunicate request_size=4 [00:12:06]MH_SAM_APDU [00:12:06]CAPDU: 80 11 00 00 [00:12:06]Write to MH i2c: E2 08 00 70 29 80 11 00 00 00 00 00 00 13 [00:12:06]Write i2c OK [00:12:06]MH_I2C_Read... [00:12:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:06]Read from MH i2c: E2 [00:12:06]MH_I2C_Read... [00:12:06]Read from MH i2c: E2 17 00 [00:12:06]MH_I2C_Read... [00:12:06]Read from MH i2c: E2 17 00 70 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6E [00:12:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:12:06]wFMCommunicate OK [00:12:06]requested_item fd.num is exist - process it [00:12:06]SAM_PROTO_GetFieldsCounters [00:12:06]wFMCommunicate request_size=4 [00:12:06]MH_SAM_APDU [00:12:06]CAPDU: 80 13 00 00 [00:12:06]Write to MH i2c: E2 08 00 71 29 80 13 00 00 00 00 00 00 16 [00:12:06]Write i2c OK [00:12:06]MH_I2C_Read... [00:12:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:06]Read from MH i2c: E2 [00:12:06]MH_I2C_Read... [00:12:06]Read from MH i2c: E2 62 00 [00:12:06]MH_I2C_Read... [00:12:06]Read from MH i2c: E2 62 00 71 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 62 CF 01 00 0E 04 04 00 B2 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 28 [00:12:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 62 CF 01 00 0E 04 04 00 B2 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:12:06]wFMCommunicate OK [00:12:06]SAM_PROTO_GetFieldsCounters done [00:12:06]requested_item shift.num is exist - process it [00:12:06]requested_item shift.opened is exist - process it [00:12:06]req_shift_opened [00:12:06]FM_GetShiftState [00:12:06]SAM_PROTO_GetShiftState [00:12:06]wFMCommunicate request_size=4 [00:12:06]MH_SAM_APDU [00:12:06]CAPDU: 80 13 01 00 [00:12:06]Write to MH i2c: E2 08 00 72 29 80 13 01 00 00 00 00 00 18 [00:12:06]Write i2c OK [00:12:06]MH_I2C_Read... [00:12:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:06]Read from MH i2c: E2 [00:12:06]MH_I2C_Read... [00:12:06]Read from MH i2c: E2 0E 00 [00:12:06]MH_I2C_Read... [00:12:06]Read from MH i2c: E2 0E 00 72 29 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 46 [00:12:06]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [00:12:06]wFMCommunicate OK [00:12:06]SAM_PROTO_GetShiftState done [00:12:06]FM_GetShiftState done [00:12:06]req_shift_opened done [00:12:06]requested_item shift.open_date is exist - process it [00:12:06]req_shift_open_date [00:12:06]req_shift_open_date done [00:12:06]produce_requested_data done [00:12:06]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118626,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [00:12:06]process_action_free close_receipt [00:12:06]json_value_free [00:12:06]json_value_free done [00:12:06]process_json_proto returns [00:12:06]Send response to host [00:12:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118626,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [00:12:06]free response buf [00:12:06]execute_script done [00:12:06]execute_script returns [00:12:06]free content buf [00:12:06]Sock 7.Close socket [00:12:06]Sock 7.Thread stoped [00:12:10]OFD Sender: No OFD packet to send [00:12:15]OFD Sender: No OFD packet to send [00:12:20]OFD Sender: No OFD packet to send [00:12:25]OFD Sender: No OFD packet to send [00:12:30]OFD Sender: No OFD packet to send [00:12:35]OFD Sender: No OFD packet to send [00:12:40]OFD Sender: No OFD packet to send [00:12:45]OFD Sender: No OFD packet to send [00:12:50]OFD Sender: No OFD packet to send [00:12:55]OFD Sender: No OFD packet to send [00:13:00]OFD Sender: No OFD packet to send [00:13:05]OFD Sender: No OFD packet to send [00:13:10]OFD Sender: No OFD packet to send [00:13:15]OFD Sender: No OFD packet to send [00:13:16]accept exits with 9 [00:13:16]New connection [00:13:16]New thread 3067383140 created [00:13:16]Thread 3067239780 joined [00:13:16]Waiting for new connection... [00:13:16] Sock 9.Parse request [00:13:16]Sock 9.Check first char [00:13:16]Sock 9.First char is OK [00:13:16]request: POST /json_proto HTTP/1.0 [00:13:16]Method: POST [00:13:16]URL: /json_proto [00:13:16]Method is POST - this is cgi request [00:13:16]url: /json_proto [00:13:16]query_string will be loaded in cgi processing [00:13:16]execute_cgi json_proto POST (null) [00:13:16]execute_cgi path=json_proto method=POST [00:13:16]POST find Content-Length [00:13:16]Host: 172.17.45.7:8080 [00:13:16]Content-Length: 674 [00:13:16]Content-Type: application/json [00:13:16] [00:13:16]POST finish read [00:13:16]Found Content-Length = 674 [00:13:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:13:16]execute_script... [00:13: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)949511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:13:16]POST & json_proto [00:13:16]process_json_proto [00:13:16]json parsed OK: [00:13:16]protocol is kg_v1.0 [00:13:16]action value=close_receipt [00:13:16]process_action close_receipt [00:13:16]cmd_close_receipt [00:13:16]MH_GetDate [00:13:16]Write to MH i2c: F0 00 00 73 29 8B [00:13:16]Write i2c OK [00:13:16]MH_I2C_Read... [00:13:16]Read from MH i2c: F0 [00:13:16]MH_I2C_Read... [00:13:16]Read from MH i2c: F0 09 00 [00:13:16]MH_I2C_Read... [00:13:16]Read from MH i2c: F0 09 00 73 29 00 9F DE A6 66 90 0F 3E 66 60 [00:13:16]GetLastDocTimeStamp 1722211926 [00:13:16]current date 1722211999 [00:13:16]FM_GetShiftState [00:13:16]SAM_PROTO_GetShiftState [00:13:16]wFMCommunicate request_size=4 [00:13:16]MH_SAM_APDU [00:13:16]CAPDU: 80 13 01 00 [00:13:16]Write to MH i2c: E2 08 00 74 29 80 13 01 00 00 00 00 00 1A [00:13:16]Write i2c OK [00:13:16]MH_I2C_Read... [00:13:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:16]Read from MH i2c: E2 [00:13:16]MH_I2C_Read... [00:13:16]Read from MH i2c: E2 0E 00 [00:13:16]MH_I2C_Read... [00:13:16]Read from MH i2c: E2 0E 00 74 29 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 48 [00:13:16]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [00:13:16]wFMCommunicate OK [00:13:16]SAM_PROTO_GetShiftState done [00:13:16]FM_GetShiftState done [00:13:16]opened in 1722211641 [00:13:16]opened+sec_in_day 1722298041 [00:13:16]quantity*price = 70027 [00:13:16]sum+1 = 70029 [00:13:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 3 29.07.2024 00:13 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118627 ФПД: 72262870001353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T001319&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118627&fm=72262870001353&tin=02508201610067®Number=0000000000092660&sum=70000 [00:13:17]StoreToDocumentArchive [00:13:17]shift 434 fd 118627 [00:13:17]save to /storage/0434/doc_00118627 [00:13:17]save last doc name /storage/0434/doc_00118627 to /storage/kkm_last_doc_name [00:13:17]save OK [00:13:17]Clear old archive folders... [00:13:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:13:17]tlvbuf is 01E54290 [00:13:17]SAM_PROTO_ClearQueue [00:13:17]wFMCommunicate request_size=4 [00:13:17]MH_SAM_APDU [00:13:17]CAPDU: 80 09 00 00 [00:13:17]Write to MH i2c: E2 08 00 81 29 80 09 00 00 00 00 00 00 1C [00:13:17]Write i2c OK [00:13:17]MH_I2C_Read... [00:13:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:13:17]Read from MH i2c: E2 [00:13:17]MH_I2C_Read... [00:13:17]Read from MH i2c: E2 03 00 [00:13:17]MH_I2C_Read... [00:13:17]Read from MH i2c: E2 03 00 81 29 00 90 00 1E [00:13:17]RAPDU: 90 00 [00:13:17]wFMCommunicate OK [00:13:17]SAM_PROTO_ClearQueue done [00:13:17]KKMCreateOFDPacket [00:13:17]OFDProtocolAddRootSTLVToBuf [00:13:17]FM_MakeSignedData [00:13:17]FM_MakeSignedData [00:13:17]SAM_PROTO_SignData [00:13:17]wFMCommunicate request_size=4 [00:13:17]MH_SAM_APDU [00:13:17]CAPDU: 80 0D 01 02 [00:13:17]Write to MH i2c: E2 08 00 82 29 80 0D 01 02 00 00 00 00 24 [00:13:17]Write i2c OK [00:13:17]MH_I2C_Read... [00:13:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:13:17]Read from MH i2c: E2 [00:13:17]MH_I2C_Read... [00:13:17]Read from MH i2c: E2 03 00 [00:13:17]MH_I2C_Read... [00:13:17]Read from MH i2c: E2 03 00 82 29 00 90 00 1F [00:13:17]RAPDU: 90 00 [00:13:17]wFMCommunicate OK [00:13:17]wFMCommunicate request_size=255 [00:13:17]MH_SAM_APDU [00:13:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 9F DE A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 CF 01 00 35 04 06 00 41 B9 02 B2 [00:13:17]Write to MH i2c: E2 02 01 83 29 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 9F DE A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 CF 01 00 35 04 06 00 41 B9 02 B2 00 00 D0 [00:13:17]Write i2c OK [00:13:17]MH_I2C_Read... [00:13:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:18]Read from MH i2c: E2 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 03 00 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 03 00 83 29 00 90 00 20 [00:13:18]RAPDU: 90 00 [00:13:18]wFMCommunicate OK [00:13:18]wFMCommunicate request_size=7 [00:13:18]MH_SAM_APDU [00:13:18]CAPDU: 80 0D 02 02 02 66 C9 [00:13:18]Write to MH i2c: E2 0A 00 84 29 80 0D 02 02 02 00 66 C9 00 00 5A [00:13:18]Write i2c OK [00:13:18]MH_I2C_Read... [00:13:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:18]Read from MH i2c: E2 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 03 00 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 03 00 84 29 00 90 00 21 [00:13:18]RAPDU: 90 00 [00:13:18]wFMCommunicate OK [00:13:18]wFMCommunicate request_size=4 [00:13:18]MH_SAM_APDU [00:13:18]CAPDU: 80 0D 03 02 [00:13:18]Write to MH i2c: E2 08 00 85 29 80 0D 03 02 00 00 00 00 29 [00:13:18]Write i2c OK [00:13:18]MH_I2C_Read... [00:13:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:13:18]Read from MH i2c: E2 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 0B 00 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 0B 00 85 29 00 23 0B 93 FD A9 6F 0E 63 90 00 71 [00:13:18]RAPDU: 23 0B 93 FD A9 6F 0E 63 90 00 [00:13:18]wFMCommunicate OK [00:13:18]SAM_PROTO_SignData done [00:13:18]FM_MakeSignedData done [00:13:18]CreateOFDProtocolMessage [00:13:18]wFMCommunicate request_size=4 [00:13:18]MH_SAM_APDU [00:13:18]CAPDU: 80 11 00 00 [00:13:18]Write to MH i2c: E2 08 00 86 29 80 11 00 00 00 00 00 00 29 [00:13:18]Write i2c OK [00:13:18]MH_I2C_Read... [00:13:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:18]Read from MH i2c: E2 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 17 00 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 17 00 86 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 84 [00:13:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:13:18]wFMCommunicate OK [00:13:18]CreateOFDProtocolMessage done [00:13:18]OFDSenderStorePacket 118627 [00:13:18]StoreOFDPacket docnum=118627 [00:13:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 4D DC 04 01 93 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 9F DE A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 CF 01 00 35 04 06 00 41 B9 02 B2 66 C9 23 0B 93 FD A9 6F 0E 63 [00:13:18]CheckFolder [00:13:18]dirname=/storage/ofd_packets [00:13:18]CheckFolder done [00:13:18]ProducePacketName [00:13:18]name=ofd_packets/00118627 [00:13:18]NVStorageSaveData ofd_packets/00118627 [00:13:18]File name is /storage/ofd_packets/00118627 [00:13:18]Write 298 bytes [00:13:18]NVStorageSaveData done [00:13:18]OFDSenderStorePacket done [00:13:18]KKMCreateOFDPacket done [00:13:18]NVStorageSaveData kkm_last_timestamp [00:13:18]File name is /storage/kkm_last_timestamp [00:13:18]Write 4 bytes [00:13:18]NVStorageSaveData done [00:13:18]ExternCall_PrintAddStr [00:13:18]wPrintStart [00:13:18]Write to MH i2c: 01 00 00 87 29 B0 [00:13:18]Write i2c OK [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: 01 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: 01 07 00 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: 01 07 00 87 29 00 00 00 00 00 FF 0F C5 [00:13:18]RasterBufferAndPrint [00:13:18]line Счет N : (1)949511 [00:13:18]line ИНН: 02508201610067 [00:13:18]line Контрольно-Кассовый Чек [00:13:18]line ПРОДАЖА [00:13:18]line ТРК (МРК, ГНК) : 54 [00:13:18]line Товар: 2710194800 [00:13:18]line ДТ-К-5 [00:13:18]line 9.190 * 76.20 [00:13:18]line = 700.28 [00:13:18]line НДС 12% НСП 1% [00:13:18]line > о реализуемом товаре [00:13:18]line ОКРУГЛЕНИЕ: -0.28 [00:13:18]line ИТОГО: 700.00 [00:13:18]line Внесено: 700.00 [00:13:18]line СДАЧА: 0.00 [00:13:18]line НСП 1% : 6.20 [00:13:18]line НДС 12% : 74.37 [00:13:18]line Наличными: 700.00 [00:13:18]line Безнал.: 0.00 [00:13:18]line Место: АЗС № 134 "Партнер Нефть" [00:13:18]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [00:13:18]line СНО: Общий режим [00:13:18]line Чек 3 29.07.2024 00:13 [00:13:18]line Смена: 434 ФФД: 1.0 [00:13:18]line ЗНМ: 0300000044 [00:13:18]line РНМ: 0000000000092660 [00:13:18]line Версия ККМ: 001 [00:13:18]line ФМ: 0000000000874939 [00:13:18]line ФД: 118627 [00:13:18]line ФПД: 72262870001353 [00:13:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T001319&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118627&fm=72262870001353&tin=02508201610067®Number=0000000000092660&sum=70000 [00:13:18]OFD Sender: Processing packet 118627 [packets to send 86, broken 85] [00:13:18]ProducePacketName [00:13:18]name=ofd_packets/00118627 [00:13:18]OFD Sender: To server: pG, [00:13:18]CommunicateWithHost lk.salyk.kg:30040 [00:13:18]ConnectInit lk.salyk.kg [00:13:18]written 0, free lines is 4095 [00:13:18]Connected sock=10 [00:13:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 4D DC 04 01 93 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 9F DE A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 CF 01 00 35 04 06 00 41 B9 02 B2 66 C9 23 0B 93 FD A9 6F 0E 63 [00:13:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 45 F6 47 00 59 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 CF 01 00 F4 03 04 00 2E 8C A6 66 B6 04 01 00 00 24 55 1C 22 95 E2 FB 3F [00:13:18]CommunicateWithHost err = 0 [00:13:18]CheckOFDResponse [00:13:18]1017 (14) - 77093643461234 [00:13:18]1041 (16) - 0000000000874939 [00:13:18]1040 (4) - 118627 [00:13:18]1012 (4) - 28.07.2024 18:21 [00:13:18]1206 (1) - 0 [00:13:18]OFD Sender: Remove packet 118627 [00:13:18]ProducePacketName [00:13:18]name=ofd_packets/00118627 [00:13:18]NVStorageDeleteData [00:13:19]Write to MH i2c: 01 00 00 B1 29 DA [00:13:19]Write i2c OK [00:13:19]MH_I2C_Read... [00:13:19]Read from MH i2c: 01 [00:13:19]MH_I2C_Read... [00:13:19]Read from MH i2c: 01 07 00 [00:13:19]MH_I2C_Read... [00:13:19]Read from MH i2c: 01 07 00 B1 29 00 00 00 00 00 D3 0C C0 [00:13:19]RasterBufferAndPrint [00:13:19]line [00:13:19]line [00:13:19]line [00:13:19]line [00:13:19]line [00:13:19]written 0, free lines is 3289 [00:13:19]MH_Cut [00:13:19]Write to MH i2c: D1 01 00 B8 29 01 B3 [00:13:19]Write i2c OK [00:13:19]MH_I2C_Read... [00:13:19]Read from MH i2c: D1 [00:13:19]MH_I2C_Read... [00:13:19]Read from MH i2c: D1 01 00 [00:13:19]MH_I2C_Read... [00:13:19]Read from MH i2c: D1 01 00 B8 29 00 B2 [00:13:19]Write to MH i2c: 01 00 00 B9 29 E2 [00:13:19]Write i2c OK [00:13:19]MH_I2C_Read... [00:13:19]OFD Sender: No OFD packet to send [00:13:19]*** Cut start [00:13:19]*** Partial cut [00:13:19]*** CUTSNS_PIN = 1 [00:13:19]*** CUTSNS_PIN = 0 [00:13:20]*** Brake cut motor [00:13:20]Read from MH i2c: 01 [00:13:20]MH_I2C_Read... [00:13:20]*** Stop cut motor [00:13:20]*** Cut end [00:13:20]Read from MH i2c: 01 07 00 [00:13:20]MH_I2C_Read... [00:13:20]Read from MH i2c: 01 07 00 B9 29 00 00 00 00 00 FF 0F F7 [00:13:20]process_action close_receipt done [00:13:20]requested_data is exist [00:13:20]produce_requested_data [00:13:20]requested_item fm.sn is exist - process it [00:13:20]wFMCommunicate request_size=4 [00:13:20]MH_SAM_APDU [00:13:20]CAPDU: 80 11 00 00 [00:13:20]Write to MH i2c: E2 08 00 BA 29 80 11 00 00 00 00 00 00 5D [00:13:20]Write i2c OK [00:13:20]MH_I2C_Read... [00:13:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:20]Read from MH i2c: E2 [00:13:20]MH_I2C_Read... [00:13:20]Read from MH i2c: E2 17 00 [00:13:20]MH_I2C_Read... [00:13:20]Read from MH i2c: E2 17 00 BA 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B8 [00:13:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:13:20]wFMCommunicate OK [00:13:20]requested_item fd.num is exist - process it [00:13:20]SAM_PROTO_GetFieldsCounters [00:13:20]wFMCommunicate request_size=4 [00:13:20]MH_SAM_APDU [00:13:20]CAPDU: 80 13 00 00 [00:13:20]Write to MH i2c: E2 08 00 BB 29 80 13 00 00 00 00 00 00 60 [00:13:20]Write i2c OK [00:13:20]MH_I2C_Read... [00:13:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:13:20]Read from MH i2c: E2 [00:13:20]MH_I2C_Read... [00:13:20]Read from MH i2c: E2 62 00 [00:13:20]MH_I2C_Read... [00:13:20]Read from MH i2c: E2 62 00 BB 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 63 CF 01 00 0E 04 04 00 B2 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 76 [00: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 63 CF 01 00 0E 04 04 00 B2 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:13:20]wFMCommunicate OK [00:13:20]SAM_PROTO_GetFieldsCounters done [00:13:20]requested_item shift.num is exist - process it [00:13:20]requested_item shift.opened is exist - process it [00:13:20]req_shift_opened [00:13:20]FM_GetShiftState [00:13:20]SAM_PROTO_GetShiftState [00:13:20]wFMCommunicate request_size=4 [00:13:20]MH_SAM_APDU [00:13:20]CAPDU: 80 13 01 00 [00:13:20]Write to MH i2c: E2 08 00 BC 29 80 13 01 00 00 00 00 00 62 [00:13:20]Write i2c OK [00:13:20]MH_I2C_Read... [00:13:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:20]Read from MH i2c: E2 [00:13:20]MH_I2C_Read... [00:13:20]Read from MH i2c: E2 0E 00 [00:13:20]MH_I2C_Read... [00:13:20]Read from MH i2c: E2 0E 00 BC 29 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 90 [00:13:20]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [00:13:20]wFMCommunicate OK [00:13:20]SAM_PROTO_GetShiftState done [00:13:20]FM_GetShiftState done [00:13:20]req_shift_opened done [00:13:20]requested_item shift.open_date is exist - process it [00:13:20]req_shift_open_date [00:13:20]req_shift_open_date done [00:13:20]produce_requested_data done [00:13:20]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118627,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [00:13:20]process_action_free close_receipt [00:13:20]json_value_free [00:13:20]json_value_free done [00:13:20]process_json_proto returns [00:13:20]Send response to host [00:13:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118627,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [00:13:20]free response buf [00:13:20]execute_script done [00:13:20]execute_script returns [00:13:20]free content buf [00:13:20]Sock 9.Close socket [00:13:20]Sock 9.Thread stoped [00:13:24]OFD Sender: No OFD packet to send [00:13:29]OFD Sender: No OFD packet to send [00:13:34]OFD Sender: No OFD packet to send [00:13:39]OFD Sender: No OFD packet to send [00:13:44]OFD Sender: No OFD packet to send [00:13:49]OFD Sender: No OFD packet to send [00:13:54]OFD Sender: No OFD packet to send [00:13:59]OFD Sender: No OFD packet to send [00:14:04]OFD Sender: No OFD packet to send [00:14:09]OFD Sender: No OFD packet to send [00:14:14]OFD Sender: No OFD packet to send [00:14:19]OFD Sender: No OFD packet to send [00:14:24]OFD Sender: No OFD packet to send [00:14:29]OFD Sender: No OFD packet to send [00:14:34]OFD Sender: No OFD packet to send [00:14:39]OFD Sender: No OFD packet to send [00:14:44]OFD Sender: No OFD packet to send [00:14:49]OFD Sender: No OFD packet to send [00:14:54]OFD Sender: No OFD packet to send [00:14:59]OFD Sender: No OFD packet to send [00:15:04]OFD Sender: No OFD packet to send [00:15:09]OFD Sender: No OFD packet to send [00:15:14]OFD Sender: No OFD packet to send [00:15:19]OFD Sender: No OFD packet to send [00:15:24]OFD Sender: No OFD packet to send [00:15:29]OFD Sender: No OFD packet to send [00:15:34]OFD Sender: No OFD packet to send [00:15:39]OFD Sender: No OFD packet to send [00:15:44]OFD Sender: No OFD packet to send [00:15:49]OFD Sender: No OFD packet to send [00:15:54]OFD Sender: No OFD packet to send [00:15:59]OFD Sender: No OFD packet to send [00:16:04]OFD Sender: No OFD packet to send [00:16:09]OFD Sender: No OFD packet to send [00:16:14]OFD Sender: No OFD packet to send [00:16:19]OFD Sender: No OFD packet to send [00:16:24]OFD Sender: No OFD packet to send [00:16:29]OFD Sender: No OFD packet to send [00:16:34]OFD Sender: No OFD packet to send [00:16:39]OFD Sender: No OFD packet to send [00:16:44]OFD Sender: No OFD packet to send [00:16:49]OFD Sender: No OFD packet to send [00:16:54]OFD Sender: No OFD packet to send [00:16:59]OFD Sender: No OFD packet to send [00:17:04]OFD Sender: No OFD packet to send [00:17:09]OFD Sender: No OFD packet to send [00:17:14]OFD Sender: No OFD packet to send [00:17:19]OFD Sender: No OFD packet to send [00:17:24]OFD Sender: No OFD packet to send [00:17:29]OFD Sender: No OFD packet to send [00:17:34]OFD Sender: No OFD packet to send [00:17:39]OFD Sender: No OFD packet to send [00:17:44]OFD Sender: No OFD packet to send [00:17:49]OFD Sender: No OFD packet to send [00:17:54]OFD Sender: No OFD packet to send [00:17:59]OFD Sender: No OFD packet to send [00:18:04]OFD Sender: No OFD packet to send [00:18:09]OFD Sender: No OFD packet to send [00:18:14]OFD Sender: No OFD packet to send [00:18:19]OFD Sender: No OFD packet to send [00:18:24]OFD Sender: No OFD packet to send [00:18:29]OFD Sender: No OFD packet to send [00:18:34]OFD Sender: No OFD packet to send [00:18:39]OFD Sender: No OFD packet to send [00:18:44]OFD Sender: No OFD packet to send [00:18:49]OFD Sender: No OFD packet to send [00:18:54]OFD Sender: No OFD packet to send [00:18:59]OFD Sender: No OFD packet to send [00:19:04]OFD Sender: No OFD packet to send [00:19:09]OFD Sender: No OFD packet to send [00:19:14]OFD Sender: No OFD packet to send [00:19:19]OFD Sender: No OFD packet to send [00:19:24]OFD Sender: No OFD packet to send [00:19:29]OFD Sender: No OFD packet to send [00:19:34]OFD Sender: No OFD packet to send [00:19:39]OFD Sender: No OFD packet to send [00:19:44]OFD Sender: No OFD packet to send [00:19:49]OFD Sender: No OFD packet to send [00:19:54]OFD Sender: No OFD packet to send [00:19:59]OFD Sender: No OFD packet to send [00:20:04]OFD Sender: No OFD packet to send [00:20:09]OFD Sender: No OFD packet to send [00:20:14]OFD Sender: No OFD packet to send [00:20:19]OFD Sender: No OFD packet to send [00:20:24]OFD Sender: No OFD packet to send [00:20:29]OFD Sender: No OFD packet to send [00:20:34]OFD Sender: No OFD packet to send [00:20:39]OFD Sender: No OFD packet to send [00:20:44]OFD Sender: No OFD packet to send [00:20:49]OFD Sender: No OFD packet to send [00:20:54]OFD Sender: No OFD packet to send [00:20:59]OFD Sender: No OFD packet to send [00:21:04]OFD Sender: No OFD packet to send [00:21:09]OFD Sender: No OFD packet to send [00:21:14]OFD Sender: No OFD packet to send [00:21:19]OFD Sender: No OFD packet to send [00:21:24]OFD Sender: No OFD packet to send [00:21:29]OFD Sender: No OFD packet to send [00:21:34]OFD Sender: No OFD packet to send [00:21:39]OFD Sender: No OFD packet to send [00:21:44]OFD Sender: No OFD packet to send [00:21:49]OFD Sender: No OFD packet to send [00:21:54]OFD Sender: No OFD packet to send [00:21:59]OFD Sender: No OFD packet to send [00:22:04]OFD Sender: No OFD packet to send [00:22:09]OFD Sender: No OFD packet to send [00:22:14]OFD Sender: No OFD packet to send [00:22:19]OFD Sender: No OFD packet to send [00:22:24]OFD Sender: No OFD packet to send [00:22:29]OFD Sender: No OFD packet to send [00:22:34]OFD Sender: No OFD packet to send [00:22:39]OFD Sender: No OFD packet to send [00:22:44]OFD Sender: No OFD packet to send [00:22:50]OFD Sender: No OFD packet to send [00:22:55]OFD Sender: No OFD packet to send [00:23:00]OFD Sender: No OFD packet to send [00:23:05]OFD Sender: No OFD packet to send [00:23:10]OFD Sender: No OFD packet to send [00:23:15]OFD Sender: No OFD packet to send [00:23:20]OFD Sender: No OFD packet to send [00:23:25]OFD Sender: No OFD packet to send [00:23:30]OFD Sender: No OFD packet to send [00:23:35]OFD Sender: No OFD packet to send [00:23:40]OFD Sender: No OFD packet to send [00:23:45]OFD Sender: No OFD packet to send [00:23:50]OFD Sender: No OFD packet to send [00:23:55]OFD Sender: No OFD packet to send [00:24:00]OFD Sender: No OFD packet to send [00:24:05]OFD Sender: No OFD packet to send [00:24:10]OFD Sender: No OFD packet to send [00:24:15]OFD Sender: No OFD packet to send [00:24:20]OFD Sender: No OFD packet to send [00:24:25]OFD Sender: No OFD packet to send [00:24:30]OFD Sender: No OFD packet to send [00:24:35]OFD Sender: No OFD packet to send [00:24:40]OFD Sender: No OFD packet to send [00:24:45]OFD Sender: No OFD packet to send [00:24:50]OFD Sender: No OFD packet to send [00:24:55]OFD Sender: No OFD packet to send [00:25:00]OFD Sender: No OFD packet to send [00:25:05]OFD Sender: No OFD packet to send [00:25:10]OFD Sender: No OFD packet to send [00:25:15]OFD Sender: No OFD packet to send [00:25:20]OFD Sender: No OFD packet to send [00:25:25]OFD Sender: No OFD packet to send [00:25:30]OFD Sender: No OFD packet to send [00:25:35]OFD Sender: No OFD packet to send [00:25:40]OFD Sender: No OFD packet to send [00:25:45]OFD Sender: No OFD packet to send [00:25:50]OFD Sender: No OFD packet to send [00:25:55]OFD Sender: No OFD packet to send [00:26:00]OFD Sender: No OFD packet to send [00:26:05]OFD Sender: No OFD packet to send [00:26:10]OFD Sender: No OFD packet to send [00:26:15]OFD Sender: No OFD packet to send [00:26:20]OFD Sender: No OFD packet to send [00:26:25]OFD Sender: No OFD packet to send [00:26:30]OFD Sender: No OFD packet to send [00:26:35]OFD Sender: No OFD packet to send [00:26:40]OFD Sender: No OFD packet to send [00:26:45]OFD Sender: No OFD packet to send [00:26:50]OFD Sender: No OFD packet to send [00:26:55]OFD Sender: No OFD packet to send [00:27:00]OFD Sender: No OFD packet to send [00:27:05]OFD Sender: No OFD packet to send [00:27:10]OFD Sender: No OFD packet to send [00:27:15]OFD Sender: No OFD packet to send [00:27:20]OFD Sender: No OFD packet to send [00:27:25]OFD Sender: No OFD packet to send [00:27:30]OFD Sender: No OFD packet to send [00:27:35]OFD Sender: No OFD packet to send [00:27:40]OFD Sender: No OFD packet to send [00:27:45]OFD Sender: No OFD packet to send [00:27:50]OFD Sender: No OFD packet to send [00:27:55]OFD Sender: No OFD packet to send [00:28:00]OFD Sender: No OFD packet to send [00:28:05]OFD Sender: No OFD packet to send [00:28:10]OFD Sender: No OFD packet to send [00:28:15]OFD Sender: No OFD packet to send [00:28:20]OFD Sender: No OFD packet to send [00:28:20]accept exits with 7 [00:28:20]New connection [00:28:20]New thread 3067239780 created [00:28:20]Thread 3067383140 joined [00:28:20]Waiting for new connection... [00:28:20] Sock 7.Parse request [00:28:20]Sock 7.Check first char [00:28:20]Sock 7.First char is OK [00:28:20]request: POST /json_proto HTTP/1.0 [00:28:20]Method: POST [00:28:20]URL: /json_proto [00:28:20]Method is POST - this is cgi request [00:28:20]url: /json_proto [00:28:20]query_string will be loaded in cgi processing [00:28:20]execute_cgi json_proto POST (null) [00:28:20]execute_cgi path=json_proto method=POST [00:28:20]POST find Content-Length [00:28:20]Host: 172.17.45.7:8080 [00:28:20]Content-Length: 818 [00:28:20]Content-Type: application/json [00:28:20] [00:28:20]POST finish read [00:28:20]Found Content-Length = 818 [00:28:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 300.00, "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:28:20]execute_script... [00:28: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)949512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 300.00, "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:28:20]POST & json_proto [00:28:20]process_json_proto [00:28:20]json parsed OK: [00:28:20]protocol is kg_v1.0 [00:28:20]action value=close_receipt [00:28:20]process_action close_receipt [00:28:20]cmd_close_receipt [00:28:20]MH_GetDate [00:28:20]Write to MH i2c: F0 00 00 BD 29 D5 [00:28:20]Write i2c OK [00:28:20]MH_I2C_Read... [00:28:20]Read from MH i2c: F0 [00:28:20]MH_I2C_Read... [00:28:20]Read from MH i2c: F0 09 00 [00:28:20]MH_I2C_Read... [00:28:20]Read from MH i2c: F0 09 00 BD 29 00 27 E2 A6 66 90 0F 3E 66 36 [00:28:20]GetLastDocTimeStamp 1722211999 [00:28:20]current date 1722212903 [00:28:20]FM_GetShiftState [00:28:20]SAM_PROTO_GetShiftState [00:28:20]wFMCommunicate request_size=4 [00:28:20]MH_SAM_APDU [00:28:20]CAPDU: 80 13 01 00 [00:28:20]Write to MH i2c: E2 08 00 BE 29 80 13 01 00 00 00 00 00 64 [00:28:20]Write i2c OK [00:28:20]MH_I2C_Read... [00:28:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:20]Read from MH i2c: E2 [00:28:20]MH_I2C_Read... [00:28:20]Read from MH i2c: E2 0E 00 [00:28:20]MH_I2C_Read... [00:28:20]Read from MH i2c: E2 0E 00 BE 29 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 92 [00:28:20]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [00:28:20]wFMCommunicate OK [00:28:20]SAM_PROTO_GetShiftState done [00:28:20]FM_GetShiftState done [00:28:20]opened in 1722211641 [00:28:20]opened+sec_in_day 1722298041 [00:28:20]quantity*price = 30035 [00:28:20]sum+1 = 30036 [00:28:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 4 29.07.2024 00:28 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118628 ФПД: 219725271780784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T002823&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118628&fm=219725271780784&tin=02508201610067®Number=0000000000092660&sum=30000 [00:28:22]StoreToDocumentArchive [00:28:22]shift 434 fd 118628 [00:28:22]save to /storage/0434/doc_00118628 [00:28:22]save last doc name /storage/0434/doc_00118628 to /storage/kkm_last_doc_name [00:28:22]save OK [00:28:22]Clear old archive folders... [00:28:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:28:22]tlvbuf is 01E89DE0 [00:28:22]SAM_PROTO_ClearQueue [00:28:22]wFMCommunicate request_size=4 [00:28:22]MH_SAM_APDU [00:28:22]CAPDU: 80 09 00 00 [00:28:22]Write to MH i2c: E2 08 00 CB 29 80 09 00 00 00 00 00 00 66 [00:28:22]Write i2c OK [00:28:22]MH_I2C_Read... [00:28:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:28:22]Read from MH i2c: E2 [00:28:22]MH_I2C_Read... [00:28:22]Read from MH i2c: E2 03 00 [00:28:22]MH_I2C_Read... [00:28:22]Read from MH i2c: E2 03 00 CB 29 00 90 00 68 [00:28:22]RAPDU: 90 00 [00:28:22]wFMCommunicate OK [00:28:22]SAM_PROTO_ClearQueue done [00:28:22]KKMCreateOFDPacket [00:28:22]OFDProtocolAddRootSTLVToBuf [00:28:22]FM_MakeSignedData [00:28:22]FM_MakeSignedData [00:28:22]SAM_PROTO_SignData [00:28:22]wFMCommunicate request_size=4 [00:28:22]MH_SAM_APDU [00:28:22]CAPDU: 80 0D 01 02 [00:28:22]Write to MH i2c: E2 08 00 CC 29 80 0D 01 02 00 00 00 00 6E [00:28:22]Write i2c OK [00:28:22]MH_I2C_Read... [00:28:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:28:22]Read from MH i2c: E2 [00:28:22]MH_I2C_Read... [00:28:22]Read from MH i2c: E2 03 00 [00:28:22]MH_I2C_Read... [00:28:22]Read from MH i2c: E2 03 00 CC 29 00 90 00 69 [00:28:22]RAPDU: 90 00 [00:28:22]wFMCommunicate OK [00:28:22]wFMCommunicate request_size=255 [00:28:22]MH_SAM_APDU [00: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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 27 E2 A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 64 CF 01 00 35 04 06 00 C7 [00:28:22]Write to MH i2c: E2 02 01 CD 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 27 E2 A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 64 CF 01 00 35 04 06 00 C7 00 00 D8 [00:28:22]Write i2c OK [00:28:22]MH_I2C_Read... [00:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:22]Read from MH i2c: E2 [00:28:22]MH_I2C_Read... [00:28:22]Read from MH i2c: E2 03 00 [00:28:22]MH_I2C_Read... [00:28:22]Read from MH i2c: E2 03 00 CD 29 00 90 00 6A [00:28:22]RAPDU: 90 00 [00:28:22]wFMCommunicate OK [00:28:22]wFMCommunicate request_size=10 [00:28:22]MH_SAM_APDU [00:28:22]CAPDU: 80 0D 02 02 05 D6 C6 C5 CD B0 [00:28:22]Write to MH i2c: E2 0D 00 CE 29 80 0D 02 02 05 00 D6 C6 C5 CD B0 00 00 59 [00:28:22]Write i2c OK [00:28:22]MH_I2C_Read... [00:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:22]Read from MH i2c: E2 [00:28:22]MH_I2C_Read... [00:28:22]Read from MH i2c: E2 03 00 [00:28:22]MH_I2C_Read... [00:28:22]Read from MH i2c: E2 03 00 CE 29 00 90 00 6B [00:28:22]RAPDU: 90 00 [00:28:22]wFMCommunicate OK [00:28:22]wFMCommunicate request_size=4 [00:28:22]MH_SAM_APDU [00:28:22]CAPDU: 80 0D 03 02 [00:28:22]Write to MH i2c: E2 08 00 CF 29 80 0D 03 02 00 00 00 00 73 [00:28:22]Write i2c OK [00:28:22]MH_I2C_Read... [00:28:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:28:22]Read from MH i2c: E2 [00:28:22]MH_I2C_Read... [00:28:22]Read from MH i2c: E2 0B 00 [00:28:22]MH_I2C_Read... [00:28:22]Read from MH i2c: E2 0B 00 CF 29 00 78 CB 93 56 8B 7F E5 F3 90 00 82 [00:28:22]RAPDU: 78 CB 93 56 8B 7F E5 F3 90 00 [00:28:22]wFMCommunicate OK [00:28:22]SAM_PROTO_SignData done [00:28:22]FM_MakeSignedData done [00:28:22]CreateOFDProtocolMessage [00:28:22]wFMCommunicate request_size=4 [00:28:22]MH_SAM_APDU [00:28:22]CAPDU: 80 11 00 00 [00:28:22]Write to MH i2c: E2 08 00 D0 29 80 11 00 00 00 00 00 00 73 [00:28:22]Write i2c OK [00:28:22]MH_I2C_Read... [00:28:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:28:22]Read from MH i2c: E2 [00:28:22]MH_I2C_Read... [00:28:22]Read from MH i2c: E2 17 00 [00:28:22]MH_I2C_Read... [00:28:22]Read from MH i2c: E2 17 00 D0 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CE [00:28:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:28:22]wFMCommunicate OK [00:28:22]CreateOFDProtocolMessage done [00:28:22]OFDSenderStorePacket 118628 [00:28:22]StoreOFDPacket docnum=118628 [00:28:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 37 17 07 01 55 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 27 E2 A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 64 CF 01 00 35 04 06 00 C7 D6 C6 C5 CD B0 78 CB 93 56 8B 7F E5 F3 [00:28:22]CheckFolder [00:28:22]dirname=/storage/ofd_packets [00:28:22]CheckFolder done [00:28:22]ProducePacketName [00:28:22]name=ofd_packets/00118628 [00:28:22]NVStorageSaveData ofd_packets/00118628 [00:28:22]File name is /storage/ofd_packets/00118628 [00:28:22]Write 301 bytes [00:28:22]NVStorageSaveData done [00:28:22]OFDSenderStorePacket done [00:28:22]KKMCreateOFDPacket done [00:28:22]NVStorageSaveData kkm_last_timestamp [00:28:22]File name is /storage/kkm_last_timestamp [00:28:22]Write 4 bytes [00:28:22]NVStorageSaveData done [00:28:22]ExternCall_PrintAddStr [00:28:22]wPrintStart [00:28:22]Write to MH i2c: 01 00 00 D1 29 FA [00:28:22]Write i2c OK [00:28:22]MH_I2C_Read... [00:28:22]Read from MH i2c: 01 [00:28:22]MH_I2C_Read... [00:28:22]Read from MH i2c: 01 07 00 [00:28:22]MH_I2C_Read... [00:28:22]Read from MH i2c: 01 07 00 D1 29 00 00 00 00 00 FF 0F 0F [00:28:22]RasterBufferAndPrint [00:28:22]line Счет N : (1)949512 [00:28:22]line ИНН: 02508201610067 [00:28:22]line Контрольно-Кассовый Чек [00:28:22]line ПРОДАЖА [00:28:22]line ТРК (МРК, ГНК) : 41 [00:28:22]line Товар: 2710124130 [00:28:22]line Аи-92-К-4 [00:28:22]line 4.430 * 67.80 [00:28:22]line = 300.35 [00:28:22]line НДС 12% НСП 1% [00:28:22]line > о реализуемом товаре [00:28:22]line ОКРУГЛЕНИЕ: -0.35 [00:28:22]line ИТОГО: 300.00 [00:28:22]line НСП 1% : 2.66 [00:28:22]line НДС 12% : 31.90 [00:28:22]line Наличными: 0.00 [00:28:22]line Безнал.: 300.00 [00:28:22]line Место: АЗС № 134 "Партнер Нефть" [00:28:22]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [00:28:22]line СНО: Общий режим [00:28:22]line Чек 4 29.07.2024 00:28 [00:28:22]line Смена: 434 ФФД: 1.0 [00:28:22]line ЗНМ: 0300000044 [00:28:22]line РНМ: 0000000000092660 [00:28:22]line Версия ККМ: 001 [00:28:22]line Платежная система: O! деньги [00:28:22]line ФМ: 0000000000874939 [00:28:22]line ФД: 118628 [00:28:22]line ФПД: 219725271780784 [00:28:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T002823&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118628&fm=219725271780784&tin=02508201610067®Number=0000000000092660&sum=30000 [00:28:22]written 0, free lines is 4095 [00:28:22]OFD Sender: Processing packet 118628 [packets to send 86, broken 85] [00:28:22]ProducePacketName [00:28:22]name=ofd_packets/00118628 [00:28:22]OFD Sender: To server: pG, [00:28:22]CommunicateWithHost lk.salyk.kg:30040 [00:28:22]ConnectInit lk.salyk.kg [00:28:23]Connected sock=10 [00: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 39 33 39 0F 01 00 00 37 17 07 01 55 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 27 E2 A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 64 CF 01 00 35 04 06 00 C7 D6 C6 C5 CD B0 78 CB 93 56 8B 7F E5 F3 [00: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 39 33 39 4F 00 00 00 9A 64 47 00 26 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 39 33 39 10 04 04 00 64 CF 01 00 F4 03 04 00 B7 8F A6 66 B6 04 01 00 00 AC A1 DE 5E 6E 1D F9 B8 [00:28:23]CommunicateWithHost err = 0 [00:28:23]CheckOFDResponse [00:28:23]1017 (14) - 77093643461234 [00:28:23]1041 (16) - 0000000000874939 [00:28:23]1040 (4) - 118628 [00:28:23]1012 (4) - 28.07.2024 18:36 [00:28:23]1206 (1) - 0 [00:28:23]OFD Sender: Remove packet 118628 [00:28:23]ProducePacketName [00:28:23]name=ofd_packets/00118628 [00:28:23]NVStorageDeleteData [00:28:23]Write to MH i2c: 01 00 00 FB 29 24 [00:28:23]Write i2c OK [00:28:23]MH_I2C_Read... [00:28:23]Read from MH i2c: 01 [00:28:23]MH_I2C_Read... [00:28:23]Read from MH i2c: 01 07 00 [00:28:23]MH_I2C_Read... [00:28:23]Read from MH i2c: 01 07 00 FB 29 00 00 00 00 00 D5 0C 0C [00:28:23]RasterBufferAndPrint [00:28:23]line [00:28:23]line [00:28:23]line [00:28:23]line [00:28:23]line [00:28:23]written 0, free lines is 3293 [00:28:23]MH_Cut [00:28:23]Write to MH i2c: D1 01 00 02 2A 01 FE [00:28:23]Write i2c OK [00:28:23]MH_I2C_Read... [00:28:23]Read from MH i2c: D1 [00:28:23]MH_I2C_Read... [00:28:23]Read from MH i2c: D1 01 00 [00:28:23]MH_I2C_Read... [00:28:23]Read from MH i2c: D1 01 00 02 2A 00 FD [00:28:23]Write to MH i2c: 01 00 00 03 2A 2D [00:28:23]Write i2c OK [00:28:23]MH_I2C_Read... [00:28:23]OFD Sender: No OFD packet to send [00:28:24]*** Cut start [00:28:24]*** Partial cut [00:28:24]*** CUTSNS_PIN = 1 [00:28:24]*** CUTSNS_PIN = 0 [00:28:24]*** Brake cut motor [00:28:24]Read from MH i2c: 01 [00:28:24]MH_I2C_Read... [00:28:24]*** Stop cut motor [00:28:24]*** Cut end [00:28:24]Read from MH i2c: 01 07 00 [00:28:24]MH_I2C_Read... [00:28:24]Read from MH i2c: 01 07 00 03 2A 00 00 00 00 00 FF 0F 42 [00:28:24]process_action close_receipt done [00:28:24]requested_data is exist [00:28:24]produce_requested_data [00:28:24]requested_item fm.sn is exist - process it [00:28:24]wFMCommunicate request_size=4 [00:28:24]MH_SAM_APDU [00:28:24]CAPDU: 80 11 00 00 [00:28:24]Write to MH i2c: E2 08 00 04 2A 80 11 00 00 00 00 00 00 A8 [00:28:24]Write i2c OK [00:28:24]MH_I2C_Read... [00:28:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:28:24]Read from MH i2c: E2 [00:28:24]MH_I2C_Read... [00:28:24]Read from MH i2c: E2 17 00 [00:28:24]MH_I2C_Read... [00:28:24]Read from MH i2c: E2 17 00 04 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 03 [00:28:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:28:24]wFMCommunicate OK [00:28:24]requested_item fd.num is exist - process it [00:28:24]SAM_PROTO_GetFieldsCounters [00:28:24]wFMCommunicate request_size=4 [00:28:24]MH_SAM_APDU [00:28:24]CAPDU: 80 13 00 00 [00:28:24]Write to MH i2c: E2 08 00 05 2A 80 13 00 00 00 00 00 00 AB [00:28:24]Write i2c OK [00:28:24]MH_I2C_Read... [00:28:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:28:25]Read from MH i2c: E2 [00:28:25]MH_I2C_Read... [00:28:25]Read from MH i2c: E2 62 00 [00:28:25]MH_I2C_Read... [00:28:25]Read from MH i2c: E2 62 00 05 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 64 CF 01 00 0E 04 04 00 B2 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 C5 [00:28:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 64 CF 01 00 0E 04 04 00 B2 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:28:25]wFMCommunicate OK [00:28:25]SAM_PROTO_GetFieldsCounters done [00:28:25]requested_item shift.num is exist - process it [00:28:25]requested_item shift.opened is exist - process it [00:28:25]req_shift_opened [00:28:25]FM_GetShiftState [00:28:25]SAM_PROTO_GetShiftState [00:28:25]wFMCommunicate request_size=4 [00:28:25]MH_SAM_APDU [00:28:25]CAPDU: 80 13 01 00 [00:28:25]Write to MH i2c: E2 08 00 06 2A 80 13 01 00 00 00 00 00 AD [00:28:25]Write i2c OK [00:28:25]MH_I2C_Read... [00:28:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:25]Read from MH i2c: E2 [00:28:25]MH_I2C_Read... [00:28:25]Read from MH i2c: E2 0E 00 [00:28:25]MH_I2C_Read... [00:28:25]Read from MH i2c: E2 0E 00 06 2A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 DB [00:28:25]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [00:28:25]wFMCommunicate OK [00:28:25]SAM_PROTO_GetShiftState done [00:28:25]FM_GetShiftState done [00:28:25]req_shift_opened done [00:28:25]requested_item shift.open_date is exist - process it [00:28:25]req_shift_open_date [00:28:25]req_shift_open_date done [00:28:25]produce_requested_data done [00:28:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118628,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [00:28:25]process_action_free close_receipt [00:28:25]json_value_free [00:28:25]json_value_free done [00:28:25]process_json_proto returns [00:28:25]Send response to host [00:28:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118628,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [00:28:25]free response buf [00:28:25]execute_script done [00:28:25]execute_script returns [00:28:25]free content buf [00:28:25]Sock 7.Close socket [00:28:25]Sock 7.Thread stoped [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:03]OFD Sender: No OFD packet to send [00:30:08]OFD Sender: No OFD packet to send [00:30:13]OFD Sender: No OFD packet to send [00:30:18]OFD Sender: No OFD packet to send [00:30:23]OFD Sender: No OFD packet to send [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:38]OFD Sender: No OFD packet to send [00:30:43]OFD Sender: No OFD packet to send [00:30:48]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:04]OFD Sender: No OFD packet to send [00:32:09]OFD Sender: No OFD packet to send [00:32:14]OFD Sender: No OFD packet to send [00:32:19]OFD Sender: No OFD packet to send [00:32:24]OFD Sender: No OFD packet to send [00:32:29]OFD Sender: No OFD packet to send [00:32:34]OFD Sender: No OFD packet to send [00:32:39]OFD Sender: No OFD packet to send [00:32:44]OFD Sender: No OFD packet to send [00:32:49]OFD Sender: No OFD packet to send [00:32:54]OFD Sender: No OFD packet to send [00:32:59]OFD Sender: No OFD packet to send [00:33:04]OFD Sender: No OFD packet to send [00:33:09]OFD Sender: No OFD packet to send [00:33:14]OFD Sender: No OFD packet to send [00:33:19]OFD Sender: No OFD packet to send [00:33:24]OFD Sender: No OFD packet to send [00:33:29]OFD Sender: No OFD packet to send [00:33:34]OFD Sender: No OFD packet to send [00:33:39]OFD Sender: No OFD packet to send [00:33:44]OFD Sender: No OFD packet to send [00:33:49]OFD Sender: No OFD packet to send [00:33:54]OFD Sender: No OFD packet to send [00:33:59]OFD Sender: No OFD packet to send [00:34:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:34:14]OFD Sender: No OFD packet to send [00:34:19]OFD Sender: No OFD packet to send [00:34:24]OFD Sender: No OFD packet to send [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:09]OFD Sender: No OFD packet to send [00:35:14]OFD Sender: No OFD packet to send [00:35:19]OFD Sender: No OFD packet to send [00:35:24]OFD Sender: No OFD packet to send [00:35:29]OFD Sender: No OFD packet to send [00:35:34]OFD Sender: No OFD packet to send [00:35:39]OFD Sender: No OFD packet to send [00:35:44]OFD Sender: No OFD packet to send [00:35:49]OFD Sender: No OFD packet to send [00:35:54]OFD Sender: No OFD packet to send [00:35:59]OFD Sender: No OFD packet to send [00:36:04]OFD Sender: No OFD packet to send [00:36:09]OFD Sender: No OFD packet to send [00:36:14]OFD Sender: No OFD packet to send [00:36:19]OFD Sender: No OFD packet to send [00:36:24]OFD Sender: No OFD packet to send [00:36:29]OFD Sender: No OFD packet to send [00:36:34]OFD Sender: No OFD packet to send [00:36:39]OFD Sender: No OFD packet to send [00:36:44]OFD Sender: No OFD packet to send [00:36:49]OFD Sender: No OFD packet to send [00:36:54]OFD Sender: No OFD packet to send [00:36:59]OFD Sender: No OFD packet to send [00:37:04]OFD Sender: No OFD packet to send [00:37:09]OFD Sender: No OFD packet to send [00:37:14]OFD Sender: No OFD packet to send [00:37:19]OFD Sender: No OFD packet to send [00:37:24]OFD Sender: No OFD packet to send [00:37:29]OFD Sender: No OFD packet to send [00:37:34]OFD Sender: No OFD packet to send [00:37:39]OFD Sender: No OFD packet to send [00:37:44]OFD Sender: No OFD packet to send [00:37:49]OFD Sender: No OFD packet to send [00:37:54]OFD Sender: No OFD packet to send [00:37:59]OFD Sender: No OFD packet to send [00:38:04]OFD Sender: No OFD packet to send [00:38:09]OFD Sender: No OFD packet to send [00:38:14]OFD Sender: No OFD packet to send [00:38:19]OFD Sender: No OFD packet to send [00:38:24]OFD Sender: No OFD packet to send [00:38:29]OFD Sender: No OFD packet to send [00:38:34]OFD Sender: No OFD packet to send [00:38:39]OFD Sender: No OFD packet to send [00:38:44]OFD Sender: No OFD packet to send [00:38:49]OFD Sender: No OFD packet to send [00:38:54]OFD Sender: No OFD packet to send [00:38:59]OFD Sender: No OFD packet to send [00:39:04]OFD Sender: No OFD packet to send [00:39:09]OFD Sender: No OFD packet to send [00:39:14]OFD Sender: No OFD packet to send [00:39:19]OFD Sender: No OFD packet to send [00:39:24]OFD Sender: No OFD packet to send [00:39:29]OFD Sender: No OFD packet to send [00:39:34]OFD Sender: No OFD packet to send [00:39:39]OFD Sender: No OFD packet to send [00:39:44]OFD Sender: No OFD packet to send [00:39:49]OFD Sender: No OFD packet to send [00:39:54]OFD Sender: No OFD packet to send [00:39:59]OFD Sender: No OFD packet to send [00:40:04]OFD Sender: No OFD packet to send [00:40:09]OFD Sender: No OFD packet to send [00:40:14]OFD Sender: No OFD packet to send [00:40:19]OFD Sender: No OFD packet to send [00:40:24]OFD Sender: No OFD packet to send [00:40:29]OFD Sender: No OFD packet to send [00:40:34]OFD Sender: No OFD packet to send [00:40:39]OFD Sender: No OFD packet to send [00:40:44]OFD Sender: No OFD packet to send [00:40:49]OFD Sender: No OFD packet to send [00:40:54]OFD Sender: No OFD packet to send [00:40:59]OFD Sender: No OFD packet to send [00:41:04]OFD Sender: No OFD packet to send [00:41:09]OFD Sender: No OFD packet to send [00:41:14]OFD Sender: No OFD packet to send [00:41:19]OFD Sender: No OFD packet to send [00:41:24]OFD Sender: No OFD packet to send [00:41:29]OFD Sender: No OFD packet to send [00:41:34]OFD Sender: No OFD packet to send [00:41:39]OFD Sender: No OFD packet to send [00:41:44]OFD Sender: No OFD packet to send [00:41:49]OFD Sender: No OFD packet to send [00:41:54]OFD Sender: No OFD packet to send [00:41:59]OFD Sender: No OFD packet to send [00:42:04]OFD Sender: No OFD packet to send [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:19]OFD Sender: No OFD packet to send [00:42:24]OFD Sender: No OFD packet to send [00:42:29]OFD Sender: No OFD packet to send [00:42:34]OFD Sender: No OFD packet to send [00:42:39]OFD Sender: No OFD packet to send [00:42:44]OFD Sender: No OFD packet to send [00:42:49]OFD Sender: No OFD packet to send [00:42:54]OFD Sender: No OFD packet to send [00:42:59]OFD Sender: No OFD packet to send [00:43:04]OFD Sender: No OFD packet to send [00:43:09]OFD Sender: No OFD packet to send [00:43:14]OFD Sender: No OFD packet to send [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:54]OFD Sender: No OFD packet to send [00:43:59]OFD Sender: No OFD packet to send [00:44:04]OFD Sender: No OFD packet to send [00:44:09]OFD Sender: No OFD packet to send [00:44:14]OFD Sender: No OFD packet to send [00:44:19]OFD Sender: No OFD packet to send [00:44:24]OFD Sender: No OFD packet to send [00:44:29]OFD Sender: No OFD packet to send [00:44:34]OFD Sender: No OFD packet to send [00:44:39]OFD Sender: No OFD packet to send [00:44:44]OFD Sender: No OFD packet to send [00:44:49]OFD Sender: No OFD packet to send [00:44:54]OFD Sender: No OFD packet to send [00:44:59]OFD Sender: No OFD packet to send [00:45:04]OFD Sender: No OFD packet to send [00:45:09]OFD Sender: No OFD packet to send [00:45:14]OFD Sender: No OFD packet to send [00:45:19]OFD Sender: No OFD packet to send [00:45:24]OFD Sender: No OFD packet to send [00:45:29]OFD Sender: No OFD packet to send [00:45:34]OFD Sender: No OFD packet to send [00:45:39]OFD Sender: No OFD packet to send [00:45:44]OFD Sender: No OFD packet to send [00:45:49]OFD Sender: No OFD packet to send [00:45:54]OFD Sender: No OFD packet to send [00:45:59]OFD Sender: No OFD packet to send [00:46:04]OFD Sender: No OFD packet to send [00:46:09]OFD Sender: No OFD packet to send [00:46:14]OFD Sender: No OFD packet to send [00:46:19]OFD Sender: No OFD packet to send [00:46:24]OFD Sender: No OFD packet to send [00:46:29]OFD Sender: No OFD packet to send [00:46:34]OFD Sender: No OFD packet to send [00:46:39]accept exits with 9 [00:46:39]New connection [00:46:39]New thread 3067383140 created [00:46:39]Thread 3067239780 joined [00:46:39]Waiting for new connection... [00:46:39] Sock 9.Parse request [00:46:39]Sock 9.Check first char [00:46:39]Sock 9.First char is OK [00:46:39]request: POST /json_proto HTTP/1.0 [00:46:39]Method: POST [00:46:39]URL: /json_proto [00:46:39]Method is POST - this is cgi request [00:46:39]url: /json_proto [00:46:39]query_string will be loaded in cgi processing [00:46:39]execute_cgi json_proto POST (null) [00:46:39]execute_cgi path=json_proto method=POST [00:46:39]POST find Content-Length [00:46:39]Host: 172.17.45.7:8080 [00:46:39]Content-Length: 679 [00:46:39]Content-Type: application/json [00:46:39] [00:46:39]POST finish read [00:46:39]Found Content-Length = 679 [00:46:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:46:39]execute_script... [00:46: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)949513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:46:39]POST & json_proto [00:46:39]process_json_proto [00:46:39]json parsed OK: [00:46:39]protocol is kg_v1.0 [00:46:39]action value=close_receipt [00:46:39]process_action close_receipt [00:46:39]cmd_close_receipt [00:46:39]MH_GetDate [00:46:39]Write to MH i2c: F0 00 00 07 2A 20 [00:46:39]Write i2c OK [00:46:39]MH_I2C_Read... [00:46:39]Read from MH i2c: F0 [00:46:39]MH_I2C_Read... [00:46:39]Read from MH i2c: F0 09 00 [00:46:39]MH_I2C_Read... [00:46:39]Read from MH i2c: F0 09 00 07 2A 00 72 E6 A6 66 90 0F 3E 66 D0 [00:46:39]GetLastDocTimeStamp 1722212903 [00:46:39]current date 1722214002 [00:46:39]FM_GetShiftState [00:46:39]SAM_PROTO_GetShiftState [00:46:39]wFMCommunicate request_size=4 [00:46:39]MH_SAM_APDU [00:46:39]CAPDU: 80 13 01 00 [00:46:39]Write to MH i2c: E2 08 00 08 2A 80 13 01 00 00 00 00 00 AF [00:46:39]Write i2c OK [00:46:39]MH_I2C_Read... [00:46:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:46:39]Read from MH i2c: E2 [00:46:39]MH_I2C_Read... [00:46:39]Read from MH i2c: E2 0E 00 [00:46:39]MH_I2C_Read... [00:46:39]Read from MH i2c: E2 0E 00 08 2A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 DD [00:46:39]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [00:46:39]wFMCommunicate OK [00:46:39]SAM_PROTO_GetShiftState done [00:46:39]FM_GetShiftState done [00:46:39]opened in 1722211641 [00:46:39]opened+sec_in_day 1722298041 [00:46:39]quantity*price = 150037 [00:46:39]sum+1 = 150039 [00:46:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 5 29.07.2024 00:46 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118629 ФПД: 231242359808953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T004642&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118629&fm=231242359808953&tin=02508201610067®Number=0000000000092660&sum=150000 [00:46:40]StoreToDocumentArchive [00:46:40]shift 434 fd 118629 [00:46:40]save to /storage/0434/doc_00118629 [00:46:40]save last doc name /storage/0434/doc_00118629 to /storage/kkm_last_doc_name [00:46:40]save OK [00:46:40]Clear old archive folders... [00:46:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:46:40]tlvbuf is 01E4D130 [00:46:40]SAM_PROTO_ClearQueue [00:46:40]wFMCommunicate request_size=4 [00:46:40]MH_SAM_APDU [00:46:40]CAPDU: 80 09 00 00 [00:46:40]Write to MH i2c: E2 08 00 15 2A 80 09 00 00 00 00 00 00 B1 [00:46:40]Write i2c OK [00:46:40]MH_I2C_Read... [00:46:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:46:40]Read from MH i2c: E2 [00:46:40]MH_I2C_Read... [00:46:40]Read from MH i2c: E2 03 00 [00:46:40]MH_I2C_Read... [00:46:40]Read from MH i2c: E2 03 00 15 2A 00 90 00 B3 [00:46:40]RAPDU: 90 00 [00:46:40]wFMCommunicate OK [00:46:40]SAM_PROTO_ClearQueue done [00:46:40]KKMCreateOFDPacket [00:46:40]OFDProtocolAddRootSTLVToBuf [00:46:40]FM_MakeSignedData [00:46:40]FM_MakeSignedData [00:46:40]SAM_PROTO_SignData [00:46:40]wFMCommunicate request_size=4 [00:46:40]MH_SAM_APDU [00:46:40]CAPDU: 80 0D 01 02 [00:46:40]Write to MH i2c: E2 08 00 16 2A 80 0D 01 02 00 00 00 00 B9 [00:46:40]Write i2c OK [00:46:40]MH_I2C_Read... [00:46:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:46:40]Read from MH i2c: E2 [00:46:40]MH_I2C_Read... [00:46:40]Read from MH i2c: E2 03 00 [00:46:40]MH_I2C_Read... [00:46:40]Read from MH i2c: E2 03 00 16 2A 00 90 00 B4 [00:46:40]RAPDU: 90 00 [00:46:40]wFMCommunicate OK [00:46:40]wFMCommunicate request_size=255 [00:46:40]MH_SAM_APDU [00:46:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 72 E6 A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 CF 01 00 35 04 06 00 D2 50 4E B6 [00:46:40]Write to MH i2c: E2 02 01 17 2A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 72 E6 A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 CF 01 00 35 04 06 00 D2 50 4E B6 00 00 37 [00:46:40]Write i2c OK [00:46:40]MH_I2C_Read... [00:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:46:40]Read from MH i2c: E2 [00:46:40]MH_I2C_Read... [00:46:40]Read from MH i2c: E2 03 00 [00:46:40]MH_I2C_Read... [00:46:40]Read from MH i2c: E2 03 00 17 2A 00 90 00 B5 [00:46:40]RAPDU: 90 00 [00:46:40]wFMCommunicate OK [00:46:40]wFMCommunicate request_size=7 [00:46:40]MH_SAM_APDU [00:46:40]CAPDU: 80 0D 02 02 02 A3 B9 [00:46:40]Write to MH i2c: E2 0A 00 18 2A 80 0D 02 02 02 00 A3 B9 00 00 1C [00:46:40]Write i2c OK [00:46:40]MH_I2C_Read... [00:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:46:40]Read from MH i2c: E2 [00:46:40]MH_I2C_Read... [00:46:40]Read from MH i2c: E2 03 00 [00:46:40]MH_I2C_Read... [00:46:40]Read from MH i2c: E2 03 00 18 2A 00 90 00 B6 [00:46:40]RAPDU: 90 00 [00:46:40]wFMCommunicate OK [00:46:40]wFMCommunicate request_size=4 [00:46:40]MH_SAM_APDU [00:46:40]CAPDU: 80 0D 03 02 [00:46:40]Write to MH i2c: E2 08 00 19 2A 80 0D 03 02 00 00 00 00 BE [00:46:40]Write i2c OK [00:46:40]MH_I2C_Read... [00:46:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:46:40]Read from MH i2c: E2 [00:46:40]MH_I2C_Read... [00:46:40]Read from MH i2c: E2 0B 00 [00:46:40]MH_I2C_Read... [00:46:40]Read from MH i2c: E2 0B 00 19 2A 00 75 EA E3 4A 11 AA 16 C8 90 00 E4 [00:46:40]RAPDU: 75 EA E3 4A 11 AA 16 C8 90 00 [00:46:40]wFMCommunicate OK [00:46:40]SAM_PROTO_SignData done [00:46:40]FM_MakeSignedData done [00:46:40]CreateOFDProtocolMessage [00:46:40]wFMCommunicate request_size=4 [00:46:40]MH_SAM_APDU [00:46:40]CAPDU: 80 11 00 00 [00:46:40]Write to MH i2c: E2 08 00 1A 2A 80 11 00 00 00 00 00 00 BE [00:46:40]Write i2c OK [00:46:40]MH_I2C_Read... [00:46:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:46:40]Read from MH i2c: E2 [00:46:40]MH_I2C_Read... [00:46:40]Read from MH i2c: E2 17 00 [00:46:40]MH_I2C_Read... [00:46:40]Read from MH i2c: E2 17 00 1A 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 19 [00:46:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:46:40]wFMCommunicate OK [00:46:40]CreateOFDProtocolMessage done [00:46:40]OFDSenderStorePacket 118629 [00:46:40]StoreOFDPacket docnum=118629 [00:46:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 11 26 04 01 11 C0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 72 E6 A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 CF 01 00 35 04 06 00 D2 50 4E B6 A3 B9 75 EA E3 4A 11 AA 16 C8 [00:46:40]CheckFolder [00:46:40]dirname=/storage/ofd_packets [00:46:40]CheckFolder done [00:46:40]ProducePacketName [00:46:40]name=ofd_packets/00118629 [00:46:40]NVStorageSaveData ofd_packets/00118629 [00:46:40]File name is /storage/ofd_packets/00118629 [00:46:40]Write 298 bytes [00:46:40]NVStorageSaveData done [00:46:40]OFDSenderStorePacket done [00:46:40]KKMCreateOFDPacket done [00:46:40]NVStorageSaveData kkm_last_timestamp [00:46:40]File name is /storage/kkm_last_timestamp [00:46:40]Write 4 bytes [00:46:40]NVStorageSaveData done [00:46:40]ExternCall_PrintAddStr [00:46:40]wPrintStart [00:46:40]Write to MH i2c: 01 00 00 1B 2A 45 [00:46:40]Write i2c OK [00:46:40]MH_I2C_Read... [00:46:40]Read from MH i2c: 01 [00:46:40]MH_I2C_Read... [00:46:40]Read from MH i2c: 01 07 00 [00:46:40]MH_I2C_Read... [00:46:40]Read from MH i2c: 01 07 00 1B 2A 00 00 00 00 00 FF 0F 5A [00:46:40]RasterBufferAndPrint [00:46:40]line Счет N : (1)949513 [00:46:40]line ИНН: 02508201610067 [00:46:40]line Контрольно-Кассовый Чек [00:46:40]line ПРОДАЖА [00:46:40]line ТРК (МРК, ГНК) : 21 [00:46:40]line Товар: 2710194800 [00:46:40]line ДТ-К-5 [00:46:40]line 19.690 * 76.20 [00:46:40]line = 1500.38 [00:46:40]line НДС 12% НСП 1% [00:46:40]line > о реализуемом товаре [00:46:40]line ОКРУГЛЕНИЕ: -0.38 [00:46:40]line ИТОГО: 1500.00 [00:46:40]line Внесено: 1500.00 [00:46:40]line СДАЧА: 0.00 [00:46:40]line НСП 1% : 13.28 [00:46:40]line НДС 12% : 159.33 [00:46:40]line Наличными: 1500.00 [00:46:40]line Безнал.: 0.00 [00:46:40]line Место: АЗС № 134 "Партнер Нефть" [00:46:40]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [00:46:40]line СНО: Общий режим [00:46:40]line Чек 5 29.07.2024 00:46 [00:46:40]line Смена: 434 ФФД: 1.0 [00:46:40]line ЗНМ: 0300000044 [00:46:40]line РНМ: 0000000000092660 [00:46:40]line Версия ККМ: 001 [00:46:40]line ФМ: 0000000000874939 [00:46:40]line ФД: 118629 [00:46:40]line ФПД: 231242359808953 [00:46:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T004642&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118629&fm=231242359808953&tin=02508201610067®Number=0000000000092660&sum=150000 [00:46:41]OFD Sender: Processing packet 118629 [packets to send 86, broken 85] [00:46:41]ProducePacketName [00:46:41]name=ofd_packets/00118629 [00:46:41]OFD Sender: To server: pG, [00:46:41]CommunicateWithHost lk.salyk.kg:30040 [00:46:41]ConnectInit lk.salyk.kg [00:46:41]written 0, free lines is 4095 [00:46:41]Connected sock=10 [00:46: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 39 33 39 0C 01 00 00 11 26 04 01 11 C0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 72 E6 A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 CF 01 00 35 04 06 00 D2 50 4E B6 A3 B9 75 EA E3 4A 11 AA 16 C8 [00:46:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 FF 1F 47 00 4E C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 CF 01 00 F4 03 04 00 01 94 A6 66 B6 04 01 00 00 6E 7A 22 BA 6E 39 BF AF [00:46:41]CommunicateWithHost err = 0 [00:46:41]CheckOFDResponse [00:46:41]1017 (14) - 77093643461234 [00:46:41]1041 (16) - 0000000000874939 [00:46:41]1040 (4) - 118629 [00:46:41]1012 (4) - 28.07.2024 18:54 [00:46:41]1206 (1) - 0 [00:46:41]OFD Sender: Remove packet 118629 [00:46:41]ProducePacketName [00:46:41]name=ofd_packets/00118629 [00:46:41]NVStorageDeleteData [00:46:41]Write to MH i2c: 01 00 00 45 2A 6F [00:46:41]Write i2c OK [00:46:41]MH_I2C_Read... [00:46:41]Read from MH i2c: 01 [00:46:41]MH_I2C_Read... [00:46:41]Read from MH i2c: 01 07 00 [00:46:41]MH_I2C_Read... [00:46:41]Read from MH i2c: 01 07 00 45 2A 00 00 00 00 00 CC 0C 4E [00:46:41]RasterBufferAndPrint [00:46:41]line [00:46:41]line [00:46:41]line [00:46:41]line [00:46:41]line [00:46:41]written 0, free lines is 3284 [00:46:41]MH_Cut [00:46:41]Write to MH i2c: D1 01 00 4C 2A 01 48 [00:46:41]Write i2c OK [00:46:41]MH_I2C_Read... [00:46:41]Read from MH i2c: D1 [00:46:41]MH_I2C_Read... [00:46:41]Read from MH i2c: D1 01 00 [00:46:41]MH_I2C_Read... [00:46:41]Read from MH i2c: D1 01 00 4C 2A 00 47 [00:46:41]Write to MH i2c: 01 00 00 4D 2A 77 [00:46:41]Write i2c OK [00:46:41]MH_I2C_Read... [00:46:41]OFD Sender: No OFD packet to send [00:46:42]*** Cut start [00:46:42]*** Partial cut [00:46:42]*** CUTSNS_PIN = 1 [00:46:42]*** CUTSNS_PIN = 0 [00:46:42]*** Brake cut motor [00:46:42]Read from MH i2c: 01 [00:46:42]MH_I2C_Read... [00:46:42]*** Stop cut motor [00:46:42]*** Cut end [00:46:42]Read from MH i2c: 01 07 00 [00:46:42]MH_I2C_Read... [00:46:42]Read from MH i2c: 01 07 00 4D 2A 00 00 00 00 00 FF 0F 8C [00:46:42]process_action close_receipt done [00:46:42]requested_data is exist [00:46:42]produce_requested_data [00:46:42]requested_item fm.sn is exist - process it [00:46:42]wFMCommunicate request_size=4 [00:46:42]MH_SAM_APDU [00:46:42]CAPDU: 80 11 00 00 [00:46:42]Write to MH i2c: E2 08 00 4E 2A 80 11 00 00 00 00 00 00 F2 [00:46:42]Write i2c OK [00:46:42]MH_I2C_Read... [00:46:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:46:43]Read from MH i2c: E2 [00:46:43]MH_I2C_Read... [00:46:43]Read from MH i2c: E2 17 00 [00:46:43]MH_I2C_Read... [00:46:43]Read from MH i2c: E2 17 00 4E 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4D [00:46:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:46:43]wFMCommunicate OK [00:46:43]requested_item fd.num is exist - process it [00:46:43]SAM_PROTO_GetFieldsCounters [00:46:43]wFMCommunicate request_size=4 [00:46:43]MH_SAM_APDU [00:46:43]CAPDU: 80 13 00 00 [00:46:43]Write to MH i2c: E2 08 00 4F 2A 80 13 00 00 00 00 00 00 F5 [00:46:43]Write i2c OK [00:46:43]MH_I2C_Read... [00:46:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:46:43]Read from MH i2c: E2 [00:46:43]MH_I2C_Read... [00:46:43]Read from MH i2c: E2 62 00 [00:46:43]MH_I2C_Read... [00:46:43]Read from MH i2c: E2 62 00 4F 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 65 CF 01 00 0E 04 04 00 B2 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 13 [00:46: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 65 CF 01 00 0E 04 04 00 B2 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:46:43]wFMCommunicate OK [00:46:43]SAM_PROTO_GetFieldsCounters done [00:46:43]requested_item shift.num is exist - process it [00:46:43]requested_item shift.opened is exist - process it [00:46:43]req_shift_opened [00:46:43]FM_GetShiftState [00:46:43]SAM_PROTO_GetShiftState [00:46:43]wFMCommunicate request_size=4 [00:46:43]MH_SAM_APDU [00:46:43]CAPDU: 80 13 01 00 [00:46:43]Write to MH i2c: E2 08 00 50 2A 80 13 01 00 00 00 00 00 F7 [00:46:43]Write i2c OK [00:46:43]MH_I2C_Read... [00:46:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:46:43]Read from MH i2c: E2 [00:46:43]MH_I2C_Read... [00:46:43]Read from MH i2c: E2 0E 00 [00:46:43]MH_I2C_Read... [00:46:43]Read from MH i2c: E2 0E 00 50 2A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 25 [00:46:43]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [00:46:43]wFMCommunicate OK [00:46:43]SAM_PROTO_GetShiftState done [00:46:43]FM_GetShiftState done [00:46:43]req_shift_opened done [00:46:43]requested_item shift.open_date is exist - process it [00:46:43]req_shift_open_date [00:46:43]req_shift_open_date done [00:46:43]produce_requested_data done [00:46:43]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118629,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [00:46:43]process_action_free close_receipt [00:46:43]json_value_free [00:46:43]json_value_free done [00:46:43]process_json_proto returns [00:46:43]Send response to host [00:46:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118629,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [00:46:43]free response buf [00:46:43]execute_script done [00:46:43]execute_script returns [00:46:43]free content buf [00:46:43]Sock 9.Close socket [00:46:43]Sock 9.Thread stoped [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:52]OFD Sender: No OFD packet to send [00:47:57]OFD Sender: No OFD packet to send [00:48:02]OFD Sender: No OFD packet to send [00:48:07]OFD Sender: No OFD packet to send [00:48:12]OFD Sender: No OFD packet to send [00:48:17]OFD Sender: No OFD packet to send [00:48:22]OFD Sender: No OFD packet to send [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:47]OFD Sender: No OFD packet to send [00:48:52]OFD Sender: No OFD packet to send [00:48:57]OFD Sender: No OFD packet to send [00:49:02]OFD Sender: No OFD packet to send [00:49:07]OFD Sender: No OFD packet to send [00:49:12]OFD Sender: No OFD packet to send [00:49:17]OFD Sender: No OFD packet to send [00:49:22]OFD Sender: No OFD packet to send [00:49:27]OFD Sender: No OFD packet to send [00:49:32]OFD Sender: No OFD packet to send [00:49:37]OFD Sender: No OFD packet to send [00:49:42]OFD Sender: No OFD packet to send [00:49:47]OFD Sender: No OFD packet to send [00:49:52]OFD Sender: No OFD packet to send [00:49:57]OFD Sender: No OFD packet to send [00:50:02]OFD Sender: No OFD packet to send [00:50:07]OFD Sender: No OFD packet to send [00:50:12]OFD Sender: No OFD packet to send [00:50:17]OFD Sender: No OFD packet to send [00:50:22]OFD Sender: No OFD packet to send [00:50:27]OFD Sender: No OFD packet to send [00:50:32]OFD Sender: No OFD packet to send [00:50:37]OFD Sender: No OFD packet to send [00:50:42]OFD Sender: No OFD packet to send [00:50:47]OFD Sender: No OFD packet to send [00:50:52]OFD Sender: No OFD packet to send [00:50:57]OFD Sender: No OFD packet to send [00:51:02]OFD Sender: No OFD packet to send [00:51:07]OFD Sender: No OFD packet to send [00:51:12]OFD Sender: No OFD packet to send [00:51:17]OFD Sender: No OFD packet to send [00:51:22]OFD Sender: No OFD packet to send [00:51:27]OFD Sender: No OFD packet to send [00:51:32]OFD Sender: No OFD packet to send [00:51:37]OFD Sender: No OFD packet to send [00:51:42]OFD Sender: No OFD packet to send [00:51:47]OFD Sender: No OFD packet to send [00:51:52]OFD Sender: No OFD packet to send [00:51:57]OFD Sender: No OFD packet to send [00:52:02]OFD Sender: No OFD packet to send [00:52:07]OFD Sender: No OFD packet to send [00:52:12]OFD Sender: No OFD packet to send [00:52:17]OFD Sender: No OFD packet to send [00:52:22]OFD Sender: No OFD packet to send [00:52:27]OFD Sender: No OFD packet to send [00:52:32]OFD Sender: No OFD packet to send [00:52:37]OFD Sender: No OFD packet to send [00:52:42]OFD Sender: No OFD packet to send [00:52:47]OFD Sender: No OFD packet to send [00:52:52]OFD Sender: No OFD packet to send [00:52:57]OFD Sender: No OFD packet to send [00:53:02]OFD Sender: No OFD packet to send [00:53:07]OFD Sender: No OFD packet to send [00:53:12]OFD Sender: No OFD packet to send [00:53:17]OFD Sender: No OFD packet to send [00:53:22]OFD Sender: No OFD packet to send [00:53:27]OFD Sender: No OFD packet to send [00:53:32]OFD Sender: No OFD packet to send [00:53:37]OFD Sender: No OFD packet to send [00:53:42]OFD Sender: No OFD packet to send [00:53:47]OFD Sender: No OFD packet to send [00:53:52]OFD Sender: No OFD packet to send [00:53:57]OFD Sender: No OFD packet to send [00:54:02]OFD Sender: No OFD packet to send [00:54:07]OFD Sender: No OFD packet to send [00:54:12]OFD Sender: No OFD packet to send [00:54:17]OFD Sender: No OFD packet to send [00:54:22]OFD Sender: No OFD packet to send [00:54:27]OFD Sender: No OFD packet to send [00:54:32]OFD Sender: No OFD packet to send [00:54:37]OFD Sender: No OFD packet to send [00:54:42]OFD Sender: No OFD packet to send [00:54:47]OFD Sender: No OFD packet to send [00:54:52]OFD Sender: No OFD packet to send [00:54:57]OFD Sender: No OFD packet to send [00:55:02]OFD Sender: No OFD packet to send [00:55:07]OFD Sender: No OFD packet to send [00:55:12]OFD Sender: No OFD packet to send [00:55:17]OFD Sender: No OFD packet to send [00:55:22]OFD Sender: No OFD packet to send [00:55:27]OFD Sender: No OFD packet to send [00:55:32]OFD Sender: No OFD packet to send [00:55:37]OFD Sender: No OFD packet to send [00:55:42]OFD Sender: No OFD packet to send [00:55:47]OFD Sender: No OFD packet to send [00:55:52]OFD Sender: No OFD packet to send [00:55:57]OFD Sender: No OFD packet to send [00:56:02]OFD Sender: No OFD packet to send [00:56:07]OFD Sender: No OFD packet to send [00:56:12]OFD Sender: No OFD packet to send [00:56:17]OFD Sender: No OFD packet to send [00:56:22]OFD Sender: No OFD packet to send [00:56:27]OFD Sender: No OFD packet to send [00:56:32]OFD Sender: No OFD packet to send [00:56:37]OFD Sender: No OFD packet to send [00:56:42]OFD Sender: No OFD packet to send [00:56:47]OFD Sender: No OFD packet to send [00:56:52]OFD Sender: No OFD packet to send [00:56:57]OFD Sender: No OFD packet to send [00:57:02]OFD Sender: No OFD packet to send [00:57:07]OFD Sender: No OFD packet to send [00:57:12]OFD Sender: No OFD packet to send [00:57:17]OFD Sender: No OFD packet to send [00:57:22]OFD Sender: No OFD packet to send [00:57:27]OFD Sender: No OFD packet to send [00:57:32]OFD Sender: No OFD packet to send [00:57:37]OFD Sender: No OFD packet to send [00:57:42]OFD Sender: No OFD packet to send [00:57:47]OFD Sender: No OFD packet to send [00:57:52]OFD Sender: No OFD packet to send [00:57:57]OFD Sender: No OFD packet to send [00:58:02]OFD Sender: No OFD packet to send [00:58:07]OFD Sender: No OFD packet to send [00:58:12]OFD Sender: No OFD packet to send [00:58:17]OFD Sender: No OFD packet to send [00:58:22]OFD Sender: No OFD packet to send [00:58:27]OFD Sender: No OFD packet to send [00:58:32]OFD Sender: No OFD packet to send [00:58:37]OFD Sender: No OFD packet to send [00:58:42]OFD Sender: No OFD packet to send [00:58:47]OFD Sender: No OFD packet to send [00:58:52]OFD Sender: No OFD packet to send [00:58:57]OFD Sender: No OFD packet to send [00:59:02]OFD Sender: No OFD packet to send [00:59:07]OFD Sender: No OFD packet to send [00:59:12]OFD Sender: No OFD packet to send [00:59:17]OFD Sender: No OFD packet to send [00:59:22]OFD Sender: No OFD packet to send [00:59:27]OFD Sender: No OFD packet to send [00:59:32]OFD Sender: No OFD packet to send [00:59:37]OFD Sender: No OFD packet to send [00:59:42]OFD Sender: No OFD packet to send [00:59:47]OFD Sender: No OFD packet to send [00:59:52]OFD Sender: No OFD packet to send [00:59:57]OFD Sender: No OFD packet to send [01:00:02]OFD Sender: No OFD packet to send [01:00:07]OFD Sender: No OFD packet to send [01:00:12]OFD Sender: No OFD packet to send [01:00:17]OFD Sender: No OFD packet to send [01:00:22]OFD Sender: No OFD packet to send [01:00:27]OFD Sender: No OFD packet to send [01:00:32]OFD Sender: No OFD packet to send [01:00:37]OFD Sender: No OFD packet to send [01:00:42]OFD Sender: No OFD packet to send [01:00:47]OFD Sender: No OFD packet to send [01:00:52]OFD Sender: No OFD packet to send [01:00:57]OFD Sender: No OFD packet to send [01:01:02]OFD Sender: No OFD packet to send [01:01:07]OFD Sender: No OFD packet to send [01:01:12]OFD Sender: No OFD packet to send [01:01:17]OFD Sender: No OFD packet to send [01:01:22]OFD Sender: No OFD packet to send [01:01:27]OFD Sender: No OFD packet to send [01:01:32]OFD Sender: No OFD packet to send [01:01:37]OFD Sender: No OFD packet to send [01:01:42]OFD Sender: No OFD packet to send [01:01:47]OFD Sender: No OFD packet to send [01:01:52]OFD Sender: No OFD packet to send [01:01:57]OFD Sender: No OFD packet to send [01:02:02]OFD Sender: No OFD packet to send [01:02:07]OFD Sender: No OFD packet to send [01:02:12]OFD Sender: No OFD packet to send [01:02:17]OFD Sender: No OFD packet to send [01:02:22]OFD Sender: No OFD packet to send [01:02:27]OFD Sender: No OFD packet to send [01:02:32]OFD Sender: No OFD packet to send [01:02:37]OFD Sender: No OFD packet to send [01:02:42]OFD Sender: No OFD packet to send [01:02:47]OFD Sender: No OFD packet to send [01:02:52]OFD Sender: No OFD packet to send [01:02:57]OFD Sender: No OFD packet to send [01:03:02]OFD Sender: No OFD packet to send [01:03:07]OFD Sender: No OFD packet to send [01:03:12]OFD Sender: No OFD packet to send [01:03:17]OFD Sender: No OFD packet to send [01:03:22]OFD Sender: No OFD packet to send [01:03:27]OFD Sender: No OFD packet to send [01:03:32]OFD Sender: No OFD packet to send [01:03:37]OFD Sender: No OFD packet to send [01:03:42]OFD Sender: No OFD packet to send [01:03:47]OFD Sender: No OFD packet to send [01:03:52]OFD Sender: No OFD packet to send [01:03:58]OFD Sender: No OFD packet to send [01:04:03]OFD Sender: No OFD packet to send [01:04:08]OFD Sender: No OFD packet to send [01:04:13]OFD Sender: No OFD packet to send [01:04:18]OFD Sender: No OFD packet to send [01:04:23]OFD Sender: No OFD packet to send [01:04:28]OFD Sender: No OFD packet to send [01:04:33]OFD Sender: No OFD packet to send [01:04:38]OFD Sender: No OFD packet to send [01:04:43]OFD Sender: No OFD packet to send [01:04:48]OFD Sender: No OFD packet to send [01:04:53]OFD Sender: No OFD packet to send [01:04:58]OFD Sender: No OFD packet to send [01:05:03]OFD Sender: No OFD packet to send [01:05:08]OFD Sender: No OFD packet to send [01:05:13]OFD Sender: No OFD packet to send [01:05:18]OFD Sender: No OFD packet to send [01:05:23]OFD Sender: No OFD packet to send [01:05:28]OFD Sender: No OFD packet to send [01:05:33]OFD Sender: No OFD packet to send [01:05:38]OFD Sender: No OFD packet to send [01:05:43]OFD Sender: No OFD packet to send [01:05:48]OFD Sender: No OFD packet to send [01:05:53]OFD Sender: No OFD packet to send [01:05:58]OFD Sender: No OFD packet to send [01:06:03]OFD Sender: No OFD packet to send [01:06:08]OFD Sender: No OFD packet to send [01:06:13]OFD Sender: No OFD packet to send [01:06:18]OFD Sender: No OFD packet to send [01:06:23]OFD Sender: No OFD packet to send [01:06:28]OFD Sender: No OFD packet to send [01:06:33]OFD Sender: No OFD packet to send [01:06:38]OFD Sender: No OFD packet to send [01:06:43]OFD Sender: No OFD packet to send [01:06:48]OFD Sender: No OFD packet to send [01:06:53]OFD Sender: No OFD packet to send [01:06:58]OFD Sender: No OFD packet to send [01:07:03]OFD Sender: No OFD packet to send [01:07:08]OFD Sender: No OFD packet to send [01:07:13]OFD Sender: No OFD packet to send [01:07:18]OFD Sender: No OFD packet to send [01:07:23]OFD Sender: No OFD packet to send [01:07:28]OFD Sender: No OFD packet to send [01:07:33]OFD Sender: No OFD packet to send [01:07:38]OFD Sender: No OFD packet to send [01:07:43]OFD Sender: No OFD packet to send [01:07:48]OFD Sender: No OFD packet to send [01:07:53]OFD Sender: No OFD packet to send [01:07:58]OFD Sender: No OFD packet to send [01:08:03]OFD Sender: No OFD packet to send [01:08:08]OFD Sender: No OFD packet to send [01:08:13]OFD Sender: No OFD packet to send [01:08:18]OFD Sender: No OFD packet to send [01:08:23]OFD Sender: No OFD packet to send [01:08:28]OFD Sender: No OFD packet to send [01:08:33]OFD Sender: No OFD packet to send [01:08:38]OFD Sender: No OFD packet to send [01:08:43]OFD Sender: No OFD packet to send [01:08:48]OFD Sender: No OFD packet to send [01:08:53]OFD Sender: No OFD packet to send [01:08:58]OFD Sender: No OFD packet to send [01:09:03]OFD Sender: No OFD packet to send [01:09:08]OFD Sender: No OFD packet to send [01:09:13]OFD Sender: No OFD packet to send [01:09:18]OFD Sender: No OFD packet to send [01:09:23]OFD Sender: No OFD packet to send [01:09:28]OFD Sender: No OFD packet to send [01:09:33]OFD Sender: No OFD packet to send [01:09:38]OFD Sender: No OFD packet to send [01:09:43]OFD Sender: No OFD packet to send [01:09:48]OFD Sender: No OFD packet to send [01:09:53]OFD Sender: No OFD packet to send [01:09:58]OFD Sender: No OFD packet to send [01:10:03]OFD Sender: No OFD packet to send [01:10:08]OFD Sender: No OFD packet to send [01:10:13]OFD Sender: No OFD packet to send [01:10:18]OFD Sender: No OFD packet to send [01:10:23]OFD Sender: No OFD packet to send [01:10:28]OFD Sender: No OFD packet to send [01:10:33]OFD Sender: No OFD packet to send [01:10:38]OFD Sender: No OFD packet to send [01:10:43]OFD Sender: No OFD packet to send [01:10:48]OFD Sender: No OFD packet to send [01:10:53]OFD Sender: No OFD packet to send [01:10:58]OFD Sender: No OFD packet to send [01:11:03]OFD Sender: No OFD packet to send [01:11:08]OFD Sender: No OFD packet to send [01:11:13]OFD Sender: No OFD packet to send [01:11:18]OFD Sender: No OFD packet to send [01:11:23]OFD Sender: No OFD packet to send [01:11:28]OFD Sender: No OFD packet to send [01:11:33]OFD Sender: No OFD packet to send [01:11:38]OFD Sender: No OFD packet to send [01:11:43]OFD Sender: No OFD packet to send [01:11:48]OFD Sender: No OFD packet to send [01:11:53]OFD Sender: No OFD packet to send [01:11:58]OFD Sender: No OFD packet to send [01:12:03]OFD Sender: No OFD packet to send [01:12:08]OFD Sender: No OFD packet to send [01:12:13]OFD Sender: No OFD packet to send [01:12:18]OFD Sender: No OFD packet to send [01:12:23]OFD Sender: No OFD packet to send [01:12:28]OFD Sender: No OFD packet to send [01:12:33]OFD Sender: No OFD packet to send [01:12:38]OFD Sender: No OFD packet to send [01:12:43]OFD Sender: No OFD packet to send [01:12:48]OFD Sender: No OFD packet to send [01:12:53]OFD Sender: No OFD packet to send [01:12:58]OFD Sender: No OFD packet to send [01:13:03]OFD Sender: No OFD packet to send [01:13:08]OFD Sender: No OFD packet to send [01:13:13]OFD Sender: No OFD packet to send [01:13:18]OFD Sender: No OFD packet to send [01:13:23]OFD Sender: No OFD packet to send [01:13:28]OFD Sender: No OFD packet to send [01:13:33]OFD Sender: No OFD packet to send [01:13:38]OFD Sender: No OFD packet to send [01:13:43]OFD Sender: No OFD packet to send [01:13:48]OFD Sender: No OFD packet to send [01:13:53]OFD Sender: No OFD packet to send [01:13:58]OFD Sender: No OFD packet to send [01:14:03]OFD Sender: No OFD packet to send [01:14:08]OFD Sender: No OFD packet to send [01:14:13]OFD Sender: No OFD packet to send [01:14:18]OFD Sender: No OFD packet to send [01:14:23]OFD Sender: No OFD packet to send [01:14:28]OFD Sender: No OFD packet to send [01:14:33]OFD Sender: No OFD packet to send [01:14:38]OFD Sender: No OFD packet to send [01:14:43]OFD Sender: No OFD packet to send [01:14:48]OFD Sender: No OFD packet to send [01:14:53]OFD Sender: No OFD packet to send [01:14:58]OFD Sender: No OFD packet to send [01:15:03]OFD Sender: No OFD packet to send [01:15:08]OFD Sender: No OFD packet to send [01:15:13]OFD Sender: No OFD packet to send [01:15:18]OFD Sender: No OFD packet to send [01:15:23]OFD Sender: No OFD packet to send [01:15:28]OFD Sender: No OFD packet to send [01:15:33]OFD Sender: No OFD packet to send [01:15:38]OFD Sender: No OFD packet to send [01:15:43]OFD Sender: No OFD packet to send [01:15:48]OFD Sender: No OFD packet to send [01:15:53]OFD Sender: No OFD packet to send [01:15:58]OFD Sender: No OFD packet to send [01:16:03]OFD Sender: No OFD packet to send [01:16:08]OFD Sender: No OFD packet to send [01:16:13]OFD Sender: No OFD packet to send [01:16:18]OFD Sender: No OFD packet to send [01:16:23]OFD Sender: No OFD packet to send [01:16:28]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:09]OFD Sender: No OFD packet to send [01:20:14]OFD Sender: No OFD packet to send [01:20:19]OFD Sender: No OFD packet to send [01:20:24]OFD Sender: No OFD packet to send [01:20:29]OFD Sender: No OFD packet to send [01:20:34]OFD Sender: No OFD packet to send [01:20:39]OFD Sender: No OFD packet to send [01:20:44]OFD Sender: No OFD packet to send [01:20:49]OFD Sender: No OFD packet to send [01:20:54]OFD Sender: No OFD packet to send [01:20:59]OFD Sender: No OFD packet to send [01:21:04]OFD Sender: No OFD packet to send [01:21:09]OFD Sender: No OFD packet to send [01:21:14]OFD Sender: No OFD packet to send [01:21:19]OFD Sender: No OFD packet to send [01:21:24]OFD Sender: No OFD packet to send [01:21:29]OFD Sender: No OFD packet to send [01:21:34]OFD Sender: No OFD packet to send [01:21:39]OFD Sender: No OFD packet to send [01:21:44]OFD Sender: No OFD packet to send [01:21:49]OFD Sender: No OFD packet to send [01:21:54]OFD Sender: No OFD packet to send [01:21:59]OFD Sender: No OFD packet to send [01:22:04]OFD Sender: No OFD packet to send [01:22:09]OFD Sender: No OFD packet to send [01:22:14]OFD Sender: No OFD packet to send [01:22:19]OFD Sender: No OFD packet to send [01:22:24]OFD Sender: No OFD packet to send [01:22:29]OFD Sender: No OFD packet to send [01:22:34]OFD Sender: No OFD packet to send [01:22:39]OFD Sender: No OFD packet to send [01:22:44]OFD Sender: No OFD packet to send [01:22:49]OFD Sender: No OFD packet to send [01:22:54]OFD Sender: No OFD packet to send [01:22:59]OFD Sender: No OFD packet to send [01:23:04]OFD Sender: No OFD packet to send [01:23:09]OFD Sender: No OFD packet to send [01:23:14]OFD Sender: No OFD packet to send [01:23:19]OFD Sender: No OFD packet to send [01:23:24]OFD Sender: No OFD packet to send [01:23:29]OFD Sender: No OFD packet to send [01:23:34]OFD Sender: No OFD packet to send [01:23:39]OFD Sender: No OFD packet to send [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:09]OFD Sender: No OFD packet to send [01:24:14]OFD Sender: No OFD packet to send [01:24:19]OFD Sender: No OFD packet to send [01:24:24]OFD Sender: No OFD packet to send [01:24:29]OFD Sender: No OFD packet to send [01:24:34]OFD Sender: No OFD packet to send [01:24:39]OFD Sender: No OFD packet to send [01:24:44]OFD Sender: No OFD packet to send [01:24:49]OFD Sender: No OFD packet to send [01:24:54]OFD Sender: No OFD packet to send [01:24:59]OFD Sender: No OFD packet to send [01:25:04]OFD Sender: No OFD packet to send [01:25:09]OFD Sender: No OFD packet to send [01:25:14]OFD Sender: No OFD packet to send [01:25:19]OFD Sender: No OFD packet to send [01:25:24]OFD Sender: No OFD packet to send [01:25:29]OFD Sender: No OFD packet to send [01:25:34]OFD Sender: No OFD packet to send [01:25:37]accept exits with 7 [01:25:37]New connection [01:25:37]New thread 3067239780 created [01:25:37]Thread 3067383140 joined [01:25:37]Waiting for new connection... [01:25:37] Sock 7.Parse request [01:25:37]Sock 7.Check first char [01:25:37]Sock 7.First char is OK [01:25:37]request: POST /json_proto HTTP/1.0 [01:25:37]Method: POST [01:25:37]URL: /json_proto [01:25:37]Method is POST - this is cgi request [01:25:37]url: /json_proto [01:25:37]query_string will be loaded in cgi processing [01:25:37]execute_cgi json_proto POST (null) [01:25:37]execute_cgi path=json_proto method=POST [01:25:37]POST find Content-Length [01:25:37]Host: 172.17.45.7:8080 [01:25:37]Content-Length: 679 [01:25:37]Content-Type: application/json [01:25:37] [01:25:37]POST finish read [01:25:37]Found Content-Length = 679 [01:25:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 29.530, "sum" : 2250.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2250.00, "total" : 2250.00, "payments": [ { "type": 0, "sum" : 2250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:25:37]execute_script... [01:25: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)949514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 29.530, "sum" : 2250.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2250.00, "total" : 2250.00, "payments": [ { "type": 0, "sum" : 2250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:25:37]POST & json_proto [01:25:37]process_json_proto [01:25:37]json parsed OK: [01:25:37]protocol is kg_v1.0 [01:25:37]action value=close_receipt [01:25:37]process_action close_receipt [01:25:37]cmd_close_receipt [01:25:37]MH_GetDate [01:25:37]Write to MH i2c: F0 00 00 51 2A 6A [01:25:37]Write i2c OK [01:25:37]MH_I2C_Read... [01:25:37]Read from MH i2c: F0 [01:25:37]MH_I2C_Read... [01:25:37]Read from MH i2c: F0 09 00 [01:25:37]MH_I2C_Read... [01:25:37]Read from MH i2c: F0 09 00 51 2A 00 94 EF A6 66 90 0F 3E 66 45 [01:25:37]GetLastDocTimeStamp 1722214002 [01:25:37]current date 1722216340 [01:25:37]FM_GetShiftState [01:25:37]SAM_PROTO_GetShiftState [01:25:37]wFMCommunicate request_size=4 [01:25:37]MH_SAM_APDU [01:25:37]CAPDU: 80 13 01 00 [01:25:37]Write to MH i2c: E2 08 00 52 2A 80 13 01 00 00 00 00 00 F9 [01:25:37]Write i2c OK [01:25:37]MH_I2C_Read... [01:25:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:25:37]Read from MH i2c: E2 [01:25:37]MH_I2C_Read... [01:25:37]Read from MH i2c: E2 0E 00 [01:25:37]MH_I2C_Read... [01:25:37]Read from MH i2c: E2 0E 00 52 2A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 27 [01:25:37]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [01:25:37]wFMCommunicate OK [01:25:37]SAM_PROTO_GetShiftState done [01:25:37]FM_GetShiftState done [01:25:37]opened in 1722211641 [01:25:37]opened+sec_in_day 1722298041 [01:25:37]quantity*price = 225018 [01:25:37]sum+1 = 225020 [01:25:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 2250.00 Внесено: 2250.00 СДАЧА: 0.00 НСП 1% : 19.91 НДС 12% : 238.96 Наличными: 2250.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 6 29.07.2024 01:25 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118630 ФПД: 178519673802073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T012540&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118630&fm=178519673802073&tin=02508201610067®Number=0000000000092660&sum=225000 [01:25:38]StoreToDocumentArchive [01:25:38]shift 434 fd 118630 [01:25:38]save to /storage/0434/doc_00118630 [01:25:38]save last doc name /storage/0434/doc_00118630 to /storage/kkm_last_doc_name [01:25:38]save OK [01:25:38]Clear old archive folders... [01:25:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:25:38]tlvbuf is B6FC18A0 [01:25:38]SAM_PROTO_ClearQueue [01:25:38]wFMCommunicate request_size=4 [01:25:38]MH_SAM_APDU [01:25:38]CAPDU: 80 09 00 00 [01:25:38]Write to MH i2c: E2 08 00 5F 2A 80 09 00 00 00 00 00 00 FB [01:25:38]Write i2c OK [01:25:38]MH_I2C_Read... [01:25:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:25:38]Read from MH i2c: E2 [01:25:38]MH_I2C_Read... [01:25:38]Read from MH i2c: E2 03 00 [01:25:38]MH_I2C_Read... [01:25:38]Read from MH i2c: E2 03 00 5F 2A 00 90 00 FD [01:25:38]RAPDU: 90 00 [01:25:38]wFMCommunicate OK [01:25:38]SAM_PROTO_ClearQueue done [01:25:38]KKMCreateOFDPacket [01:25:38]OFDProtocolAddRootSTLVToBuf [01:25:38]FM_MakeSignedData [01:25:38]FM_MakeSignedData [01:25:38]SAM_PROTO_SignData [01:25:38]wFMCommunicate request_size=4 [01:25:38]MH_SAM_APDU [01:25:38]CAPDU: 80 0D 01 02 [01:25:38]Write to MH i2c: E2 08 00 60 2A 80 0D 01 02 00 00 00 00 03 [01:25:38]Write i2c OK [01:25:38]MH_I2C_Read... [01:25:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:25:38]Read from MH i2c: E2 [01:25:38]MH_I2C_Read... [01:25:38]Read from MH i2c: E2 03 00 [01:25:38]MH_I2C_Read... [01:25:38]Read from MH i2c: E2 03 00 60 2A 00 90 00 FE [01:25:38]RAPDU: 90 00 [01:25:38]wFMCommunicate OK [01:25:38]wFMCommunicate request_size=255 [01:25:38]MH_SAM_APDU [01:25:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 73 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FB 6E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 6E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 5D 00 00 00 00 07 04 06 00 E8 6E 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 94 EF A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 CF 01 00 35 04 06 00 A2 5C D9 BE [01:25:38]Write to MH i2c: E2 02 01 61 2A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 73 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FB 6E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 6E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 5D 00 00 00 00 07 04 06 00 E8 6E 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 94 EF A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 CF 01 00 35 04 06 00 A2 5C D9 BE 00 00 CD [01:25:38]Write i2c OK [01:25:38]MH_I2C_Read... [01:25:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:25:39]Read from MH i2c: E2 [01:25:39]MH_I2C_Read... [01:25:39]Read from MH i2c: E2 03 00 [01:25:39]MH_I2C_Read... [01:25:39]Read from MH i2c: E2 03 00 61 2A 00 90 00 FF [01:25:39]RAPDU: 90 00 [01:25:39]wFMCommunicate OK [01:25:39]wFMCommunicate request_size=7 [01:25:39]MH_SAM_APDU [01:25:39]CAPDU: 80 0D 02 02 02 0D 59 [01:25:39]Write to MH i2c: E2 0A 00 62 2A 80 0D 02 02 02 00 0D 59 00 00 70 [01:25:39]Write i2c OK [01:25:39]MH_I2C_Read... [01:25:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:25:39]Read from MH i2c: E2 [01:25:39]MH_I2C_Read... [01:25:39]Read from MH i2c: E2 03 00 [01:25:39]MH_I2C_Read... [01:25:39]Read from MH i2c: E2 03 00 62 2A 00 90 00 00 [01:25:39]RAPDU: 90 00 [01:25:39]wFMCommunicate OK [01:25:39]wFMCommunicate request_size=4 [01:25:39]MH_SAM_APDU [01:25:39]CAPDU: 80 0D 03 02 [01:25:39]Write to MH i2c: E2 08 00 63 2A 80 0D 03 02 00 00 00 00 08 [01:25:39]Write i2c OK [01:25:39]MH_I2C_Read... [01:25:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:25:39]Read from MH i2c: E2 [01:25:39]MH_I2C_Read... [01:25:39]Read from MH i2c: E2 0B 00 [01:25:39]MH_I2C_Read... [01:25:39]Read from MH i2c: E2 0B 00 63 2A 00 D2 04 FA E0 13 FE AB EE 90 00 63 [01:25:39]RAPDU: D2 04 FA E0 13 FE AB EE 90 00 [01:25:39]wFMCommunicate OK [01:25:39]SAM_PROTO_SignData done [01:25:39]FM_MakeSignedData done [01:25:39]CreateOFDProtocolMessage [01:25:39]wFMCommunicate request_size=4 [01:25:39]MH_SAM_APDU [01:25:39]CAPDU: 80 11 00 00 [01:25:39]Write to MH i2c: E2 08 00 64 2A 80 11 00 00 00 00 00 00 08 [01:25:39]Write i2c OK [01:25:39]MH_I2C_Read... [01:25:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:25:39]Read from MH i2c: E2 [01:25:39]MH_I2C_Read... [01:25:39]Read from MH i2c: E2 17 00 [01:25:39]MH_I2C_Read... [01:25:39]Read from MH i2c: E2 17 00 64 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 63 [01:25:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [01:25:39]wFMCommunicate OK [01:25:39]CreateOFDProtocolMessage done [01:25:39]OFDSenderStorePacket 118630 [01:25:39]StoreOFDPacket docnum=118630 [01:25:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C5 BF 04 01 DE 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 73 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FB 6E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 6E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 5D 00 00 00 00 07 04 06 00 E8 6E 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 94 EF A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 CF 01 00 35 04 06 00 A2 5C D9 BE 0D 59 D2 04 FA E0 13 FE AB EE [01:25:39]CheckFolder [01:25:39]dirname=/storage/ofd_packets [01:25:39]CheckFolder done [01:25:39]ProducePacketName [01:25:39]name=ofd_packets/00118630 [01:25:39]NVStorageSaveData ofd_packets/00118630 [01:25:39]File name is /storage/ofd_packets/00118630 [01:25:39]Write 298 bytes [01:25:39]NVStorageSaveData done [01:25:39]OFDSenderStorePacket done [01:25:39]KKMCreateOFDPacket done [01:25:39]NVStorageSaveData kkm_last_timestamp [01:25:39]File name is /storage/kkm_last_timestamp [01:25:39]Write 4 bytes [01:25:39]NVStorageSaveData done [01:25:39]ExternCall_PrintAddStr [01:25:39]wPrintStart [01:25:39]Write to MH i2c: 01 00 00 65 2A 8F [01:25:39]Write i2c OK [01:25:39]MH_I2C_Read... [01:25:39]Read from MH i2c: 01 [01:25:39]MH_I2C_Read... [01:25:39]Read from MH i2c: 01 07 00 [01:25:39]MH_I2C_Read... [01:25:39]Read from MH i2c: 01 07 00 65 2A 00 00 00 00 00 FF 0F A4 [01:25:39]RasterBufferAndPrint [01:25:39]line Счет N : (1)949514 [01:25:39]line ИНН: 02508201610067 [01:25:39]line Контрольно-Кассовый Чек [01:25:39]line ПРОДАЖА [01:25:39]line ТРК (МРК, ГНК) : 44 [01:25:39]line Товар: 2710194800 [01:25:39]line ДТ-К-5 [01:25:39]line 29.530 * 76.20 [01:25:39]line = 2250.19 [01:25:39]line НДС 12% НСП 1% [01:25:39]line > о реализуемом товаре [01:25:39]line ОКРУГЛЕНИЕ: -0.19 [01:25:39]line ИТОГО: 2250.00 [01:25:39]line Внесено: 2250.00 [01:25:39]line СДАЧА: 0.00 [01:25:39]line НСП 1% : 19.91 [01:25:39]line НДС 12% : 238.96 [01:25:39]line Наличными: 2250.00 [01:25:39]line Безнал.: 0.00 [01:25:39]line Место: АЗС № 134 "Партнер Нефть" [01:25:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [01:25:39]line СНО: Общий режим [01:25:39]line Чек 6 29.07.2024 01:25 [01:25:39]line Смена: 434 ФФД: 1.0 [01:25:39]line ЗНМ: 0300000044 [01:25:39]line РНМ: 0000000000092660 [01:25:39]line Версия ККМ: 001 [01:25:39]line ФМ: 0000000000874939 [01:25:39]line ФД: 118630 [01:25:39]line ФПД: 178519673802073 [01:25:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T012540&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118630&fm=178519673802073&tin=02508201610067®Number=0000000000092660&sum=225000 [01:25:39]OFD Sender: Processing packet 118630 [packets to send 86, broken 85] [01:25:39]ProducePacketName [01:25:39]name=ofd_packets/00118630 [01:25:39]OFD Sender: To server: pG, [01:25:39]CommunicateWithHost lk.salyk.kg:30040 [01:25:39]ConnectInit lk.salyk.kg [01:25:39]written 0, free lines is 4095 [01:25:39]Connected sock=10 [01:25: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 39 33 39 0C 01 00 00 C5 BF 04 01 DE 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 73 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FB 6E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 6E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 5D 00 00 00 00 07 04 06 00 E8 6E 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 94 EF A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 CF 01 00 35 04 06 00 A2 5C D9 BE 0D 59 D2 04 FA E0 13 FE AB EE [01:25:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1B FD 47 00 0A 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 39 33 39 10 04 04 00 66 CF 01 00 F4 03 04 00 23 9D A6 66 B6 04 01 00 00 C5 DD 9A 5E F2 16 15 7B [01:25:39]CommunicateWithHost err = 0 [01:25:39]CheckOFDResponse [01:25:39]1017 (14) - 77093643461234 [01:25:39]1041 (16) - 0000000000874939 [01:25:39]1040 (4) - 118630 [01:25:39]1012 (4) - 28.07.2024 19:33 [01:25:39]1206 (1) - 0 [01:25:39]OFD Sender: Remove packet 118630 [01:25:39]ProducePacketName [01:25:39]name=ofd_packets/00118630 [01:25:39]NVStorageDeleteData [01:25:40]Write to MH i2c: 01 00 00 8F 2A B9 [01:25:40]Write i2c OK [01:25:40]MH_I2C_Read... [01:25:40]Read from MH i2c: 01 [01:25:40]MH_I2C_Read... [01:25:40]Read from MH i2c: 01 07 00 [01:25:40]MH_I2C_Read... [01:25:40]Read from MH i2c: 01 07 00 8F 2A 00 00 00 00 00 CC 0C 98 [01:25:40]RasterBufferAndPrint [01:25:40]line [01:25:40]line [01:25:40]line [01:25:40]line [01:25:40]line [01:25:40]written 0, free lines is 3280 [01:25:40]MH_Cut [01:25:40]Write to MH i2c: D1 01 00 96 2A 01 92 [01:25:40]Write i2c OK [01:25:40]MH_I2C_Read... [01:25:40]Read from MH i2c: D1 [01:25:40]MH_I2C_Read... [01:25:40]Read from MH i2c: D1 01 00 [01:25:40]MH_I2C_Read... [01:25:40]Read from MH i2c: D1 01 00 96 2A 00 91 [01:25:40]Write to MH i2c: 01 00 00 97 2A C1 [01:25:40]Write i2c OK [01:25:40]MH_I2C_Read... [01:25:40]OFD Sender: No OFD packet to send [01:25:40]*** Cut start [01:25:40]*** Partial cut [01:25:40]*** CUTSNS_PIN = 1 [01:25:40]*** CUTSNS_PIN = 0 [01:25:41]*** Brake cut motor [01:25:41]Read from MH i2c: 01 [01:25:41]MH_I2C_Read... [01:25:41]*** Stop cut motor [01:25:41]*** Cut end [01:25:41]Read from MH i2c: 01 07 00 [01:25:41]MH_I2C_Read... [01:25:41]Read from MH i2c: 01 07 00 97 2A 00 00 00 00 00 FF 0F D6 [01:25:41]process_action close_receipt done [01:25:41]requested_data is exist [01:25:41]produce_requested_data [01:25:41]requested_item fm.sn is exist - process it [01:25:41]wFMCommunicate request_size=4 [01:25:41]MH_SAM_APDU [01:25:41]CAPDU: 80 11 00 00 [01:25:41]Write to MH i2c: E2 08 00 98 2A 80 11 00 00 00 00 00 00 3C [01:25:41]Write i2c OK [01:25:41]MH_I2C_Read... [01:25:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:25:41]Read from MH i2c: E2 [01:25:41]MH_I2C_Read... [01:25:41]Read from MH i2c: E2 17 00 [01:25:41]MH_I2C_Read... [01:25:41]Read from MH i2c: E2 17 00 98 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 97 [01:25:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [01:25:41]wFMCommunicate OK [01:25:41]requested_item fd.num is exist - process it [01:25:41]SAM_PROTO_GetFieldsCounters [01:25:41]wFMCommunicate request_size=4 [01:25:41]MH_SAM_APDU [01:25:41]CAPDU: 80 13 00 00 [01:25:41]Write to MH i2c: E2 08 00 99 2A 80 13 00 00 00 00 00 00 3F [01:25:41]Write i2c OK [01:25:41]MH_I2C_Read... [01:25:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:25:41]Read from MH i2c: E2 [01:25:41]MH_I2C_Read... [01:25:41]Read from MH i2c: E2 62 00 [01:25:41]MH_I2C_Read... [01:25:41]Read from MH i2c: E2 62 00 99 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 66 CF 01 00 0E 04 04 00 B2 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 61 [01:25:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 66 CF 01 00 0E 04 04 00 B2 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 [01:25:41]wFMCommunicate OK [01:25:41]SAM_PROTO_GetFieldsCounters done [01:25:41]requested_item shift.num is exist - process it [01:25:41]requested_item shift.opened is exist - process it [01:25:41]req_shift_opened [01:25:41]FM_GetShiftState [01:25:41]SAM_PROTO_GetShiftState [01:25:41]wFMCommunicate request_size=4 [01:25:41]MH_SAM_APDU [01:25:41]CAPDU: 80 13 01 00 [01:25:41]Write to MH i2c: E2 08 00 9A 2A 80 13 01 00 00 00 00 00 41 [01:25:41]Write i2c OK [01:25:41]MH_I2C_Read... [01:25:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:25:41]Read from MH i2c: E2 [01:25:41]MH_I2C_Read... [01:25:41]Read from MH i2c: E2 0E 00 [01:25:41]MH_I2C_Read... [01:25:41]Read from MH i2c: E2 0E 00 9A 2A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 6F [01:25:41]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [01:25:41]wFMCommunicate OK [01:25:41]SAM_PROTO_GetShiftState done [01:25:41]FM_GetShiftState done [01:25:41]req_shift_opened done [01:25:41]requested_item shift.open_date is exist - process it [01:25:41]req_shift_open_date [01:25:41]req_shift_open_date done [01:25:41]produce_requested_data done [01:25:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118630,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [01:25:41]process_action_free close_receipt [01:25:41]json_value_free [01:25:41]json_value_free done [01:25:41]process_json_proto returns [01:25:41]Send response to host [01:25:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118630,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [01:25:41]free response buf [01:25:41]execute_script done [01:25:41]execute_script returns [01:25:41]free content buf [01:25:41]Sock 7.Close socket [01:25:41]Sock 7.Thread stoped [01:25:45]OFD Sender: No OFD packet to send [01:25:50]OFD Sender: No OFD packet to send [01:25:55]OFD Sender: No OFD packet to send [01:26:00]OFD Sender: No OFD packet to send [01:26:05]OFD Sender: No OFD packet to send [01:26:10]OFD Sender: No OFD packet to send [01:26:15]OFD Sender: No OFD packet to send [01:26:20]OFD Sender: No OFD packet to send [01:26:25]OFD Sender: No OFD packet to send [01:26:30]OFD Sender: No OFD packet to send [01:26:35]OFD Sender: No OFD packet to send [01:26:40]OFD Sender: No OFD packet to send [01:26:45]OFD Sender: No OFD packet to send [01:26:50]OFD Sender: No OFD packet to send [01:26:55]OFD Sender: No OFD packet to send [01:27:00]OFD Sender: No OFD packet to send [01:27:05]OFD Sender: No OFD packet to send [01:27:10]OFD Sender: No OFD packet to send [01:27:15]OFD Sender: No OFD packet to send [01:27:20]OFD Sender: No OFD packet to send [01:27:25]OFD Sender: No OFD packet to send [01:27:30]OFD Sender: No OFD packet to send [01:27:35]OFD Sender: No OFD packet to send [01:27:40]OFD Sender: No OFD packet to send [01:27:45]OFD Sender: No OFD packet to send [01:27:50]OFD Sender: No OFD packet to send [01:27:55]OFD Sender: No OFD packet to send [01:28:00]OFD Sender: No OFD packet to send [01:28:05]OFD Sender: No OFD packet to send [01:28:10]OFD Sender: No OFD packet to send [01:28:15]OFD Sender: No OFD packet to send [01:28:20]OFD Sender: No OFD packet to send [01:28:25]OFD Sender: No OFD packet to send [01:28:30]OFD Sender: No OFD packet to send [01:28:35]OFD Sender: No OFD packet to send [01:28:40]OFD Sender: No OFD packet to send [01:28:45]OFD Sender: No OFD packet to send [01:28:50]OFD Sender: No OFD packet to send [01:28:55]OFD Sender: No OFD packet to send [01:29:00]OFD Sender: No OFD packet to send [01:29:05]OFD Sender: No OFD packet to send [01:29:10]OFD Sender: No OFD packet to send [01:29:15]OFD Sender: No OFD packet to send [01:29:20]OFD Sender: No OFD packet to send [01:29:25]OFD Sender: No OFD packet to send [01:29:30]OFD Sender: No OFD packet to send [01:29:35]OFD Sender: No OFD packet to send [01:29:40]OFD Sender: No OFD packet to send [01:29:45]OFD Sender: No OFD packet to send [01:29:50]OFD Sender: No OFD packet to send [01:29:55]OFD Sender: No OFD packet to send [01:30:00]OFD Sender: No OFD packet to send [01:30:05]OFD Sender: No OFD packet to send [01:30:10]OFD Sender: No OFD packet to send [01:30:15]OFD Sender: No OFD packet to send [01:30:20]OFD Sender: No OFD packet to send [01:30:25]OFD Sender: No OFD packet to send [01:30:30]OFD Sender: No OFD packet to send [01:30:35]OFD Sender: No OFD packet to send [01:30:40]OFD Sender: No OFD packet to send [01:30:45]OFD Sender: No OFD packet to send [01:30:50]OFD Sender: No OFD packet to send [01:30:55]OFD Sender: No OFD packet to send [01:31:00]OFD Sender: No OFD packet to send [01:31:05]OFD Sender: No OFD packet to send [01:31:10]OFD Sender: No OFD packet to send [01:31:15]OFD Sender: No OFD packet to send [01:31:20]OFD Sender: No OFD packet to send [01:31:25]OFD Sender: No OFD packet to send [01:31:30]OFD Sender: No OFD packet to send [01:31:35]OFD Sender: No OFD packet to send [01:31:40]OFD Sender: No OFD packet to send [01:31:45]OFD Sender: No OFD packet to send [01:31:50]OFD Sender: No OFD packet to send [01:31:55]OFD Sender: No OFD packet to send [01:32:00]OFD Sender: No OFD packet to send [01:32:05]OFD Sender: No OFD packet to send [01:32:10]OFD Sender: No OFD packet to send [01:32:15]OFD Sender: No OFD packet to send [01:32:20]OFD Sender: No OFD packet to send [01:32:25]OFD Sender: No OFD packet to send [01:32:30]OFD Sender: No OFD packet to send [01:32:35]OFD Sender: No OFD packet to send [01:32:40]OFD Sender: No OFD packet to send [01:32:45]OFD Sender: No OFD packet to send [01:32:50]OFD Sender: No OFD packet to send [01:32:55]OFD Sender: No OFD packet to send [01:33:00]OFD Sender: No OFD packet to send [01:33:05]OFD Sender: No OFD packet to send [01:33:10]OFD Sender: No OFD packet to send [01:33:15]OFD Sender: No OFD packet to send [01:33:20]OFD Sender: No OFD packet to send [01:33:25]OFD Sender: No OFD packet to send [01:33:30]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:45]OFD Sender: No OFD packet to send [01:33:50]OFD Sender: No OFD packet to send [01:33:55]OFD Sender: No OFD packet to send [01:34:00]OFD Sender: No OFD packet to send [01:34:05]OFD Sender: No OFD packet to send [01:34:10]OFD Sender: No OFD packet to send [01:34:15]OFD Sender: No OFD packet to send [01:34:20]OFD Sender: No OFD packet to send [01:34:25]OFD Sender: No OFD packet to send [01:34:30]OFD Sender: No OFD packet to send [01:34:35]OFD Sender: No OFD packet to send [01:34:40]OFD Sender: No OFD packet to send [01:34:45]OFD Sender: No OFD packet to send [01:34:50]OFD Sender: No OFD packet to send [01:34:55]OFD Sender: No OFD packet to send [01:35:00]OFD Sender: No OFD packet to send [01:35:06]OFD Sender: No OFD packet to send [01:35:11]OFD Sender: No OFD packet to send [01:35:16]OFD Sender: No OFD packet to send [01:35:21]OFD Sender: No OFD packet to send [01:35:26]OFD Sender: No OFD packet to send [01:35:31]OFD Sender: No OFD packet to send [01:35:36]OFD Sender: No OFD packet to send [01:35:41]OFD Sender: No OFD packet to send [01:35:46]OFD Sender: No OFD packet to send [01:35:51]OFD Sender: No OFD packet to send [01:35:56]OFD Sender: No OFD packet to send [01:36:01]OFD Sender: No OFD packet to send [01:36:06]OFD Sender: No OFD packet to send [01:36:11]OFD Sender: No OFD packet to send [01:36:16]OFD Sender: No OFD packet to send [01:36:21]OFD Sender: No OFD packet to send [01:36:26]OFD Sender: No OFD packet to send [01:36:31]OFD Sender: No OFD packet to send [01:36:36]OFD Sender: No OFD packet to send [01:36:41]OFD Sender: No OFD packet to send [01:36:46]OFD Sender: No OFD packet to send [01:36:51]OFD Sender: No OFD packet to send [01:36:56]OFD Sender: No OFD packet to send [01:37:01]OFD Sender: No OFD packet to send [01:37:06]OFD Sender: No OFD packet to send [01:37:11]OFD Sender: No OFD packet to send [01:37:16]OFD Sender: No OFD packet to send [01:37:21]OFD Sender: No OFD packet to send [01:37:26]OFD Sender: No OFD packet to send [01:37:31]OFD Sender: No OFD packet to send [01:37:36]OFD Sender: No OFD packet to send [01:37:41]OFD Sender: No OFD packet to send [01:37:46]OFD Sender: No OFD packet to send [01:37:51]OFD Sender: No OFD packet to send [01:37:56]OFD Sender: No OFD packet to send [01:38:01]OFD Sender: No OFD packet to send [01:38:06]OFD Sender: No OFD packet to send [01:38:11]OFD Sender: No OFD packet to send [01:38:16]OFD Sender: No OFD packet to send [01:38:21]OFD Sender: No OFD packet to send [01:38:26]OFD Sender: No OFD packet to send [01:38:31]OFD Sender: No OFD packet to send [01:38:36]OFD Sender: No OFD packet to send [01:38:41]OFD Sender: No OFD packet to send [01:38:46]OFD Sender: No OFD packet to send [01:38:51]OFD Sender: No OFD packet to send [01:38:56]OFD Sender: No OFD packet to send [01:39:01]OFD Sender: No OFD packet to send [01:39:06]OFD Sender: No OFD packet to send [01:39:11]OFD Sender: No OFD packet to send [01:39:16]OFD Sender: No OFD packet to send [01:39:21]OFD Sender: No OFD packet to send [01:39:26]OFD Sender: No OFD packet to send [01:39:31]OFD Sender: No OFD packet to send [01:39:36]OFD Sender: No OFD packet to send [01:39:41]OFD Sender: No OFD packet to send [01:39:46]OFD Sender: No OFD packet to send [01:39:51]OFD Sender: No OFD packet to send [01:39:56]OFD Sender: No OFD packet to send [01:40:01]OFD Sender: No OFD packet to send [01:40:06]OFD Sender: No OFD packet to send [01:40:11]OFD Sender: No OFD packet to send [01:40:16]OFD Sender: No OFD packet to send [01:40:21]OFD Sender: No OFD packet to send [01:40:26]OFD Sender: No OFD packet to send [01:40:31]OFD Sender: No OFD packet to send [01:40:36]OFD Sender: No OFD packet to send [01:40:41]OFD Sender: No OFD packet to send [01:40:46]OFD Sender: No OFD packet to send [01:40:51]OFD Sender: No OFD packet to send [01:40:56]OFD Sender: No OFD packet to send [01:41:01]OFD Sender: No OFD packet to send [01:41:06]OFD Sender: No OFD packet to send [01:41:11]OFD Sender: No OFD packet to send [01:41:16]OFD Sender: No OFD packet to send [01:41:21]OFD Sender: No OFD packet to send [01:41:26]OFD Sender: No OFD packet to send [01:41:31]OFD Sender: No OFD packet to send [01:41:36]OFD Sender: No OFD packet to send [01:41:41]OFD Sender: No OFD packet to send [01:41:46]OFD Sender: No OFD packet to send [01:41:51]OFD Sender: No OFD packet to send [01:41:56]OFD Sender: No OFD packet to send [01:42:01]OFD Sender: No OFD packet to send [01:42:06]OFD Sender: No OFD packet to send [01:42:11]OFD Sender: No OFD packet to send [01:42:16]OFD Sender: No OFD packet to send [01:42:21]OFD Sender: No OFD packet to send [01:42:26]OFD Sender: No OFD packet to send [01:42:31]OFD Sender: No OFD packet to send [01:42:36]OFD Sender: No OFD packet to send [01:42:41]OFD Sender: No OFD packet to send [01:42:46]OFD Sender: No OFD packet to send [01:42:51]OFD Sender: No OFD packet to send [01:42:56]OFD Sender: No OFD packet to send [01:43:01]OFD Sender: No OFD packet to send [01:43:06]OFD Sender: No OFD packet to send [01:43:11]OFD Sender: No OFD packet to send [01:43:16]OFD Sender: No OFD packet to send [01:43:21]OFD Sender: No OFD packet to send [01:43:26]OFD Sender: No OFD packet to send [01:43:31]OFD Sender: No OFD packet to send [01:43:36]OFD Sender: No OFD packet to send [01:43:41]OFD Sender: No OFD packet to send [01:43:46]OFD Sender: No OFD packet to send [01:43:51]OFD Sender: No OFD packet to send [01:43:56]OFD Sender: No OFD packet to send [01:44:01]OFD Sender: No OFD packet to send [01:44:06]OFD Sender: No OFD packet to send [01:44:11]OFD Sender: No OFD packet to send [01:44:16]OFD Sender: No OFD packet to send [01:44:21]OFD Sender: No OFD packet to send [01:44:26]OFD Sender: No OFD packet to send [01:44:31]OFD Sender: No OFD packet to send [01:44:36]OFD Sender: No OFD packet to send [01:44:41]OFD Sender: No OFD packet to send [01:44:46]OFD Sender: No OFD packet to send [01:44:51]OFD Sender: No OFD packet to send [01:44:56]OFD Sender: No OFD packet to send [01:45:01]OFD Sender: No OFD packet to send [01:45:06]OFD Sender: No OFD packet to send [01:45:11]OFD Sender: No OFD packet to send [01:45:16]OFD Sender: No OFD packet to send [01:45:21]OFD Sender: No OFD packet to send [01:45:26]OFD Sender: No OFD packet to send [01:45:31]OFD Sender: No OFD packet to send [01:45:36]OFD Sender: No OFD packet to send [01:45:41]OFD Sender: No OFD packet to send [01:45:46]OFD Sender: No OFD packet to send [01:45:51]OFD Sender: No OFD packet to send [01:45:56]OFD Sender: No OFD packet to send [01:46:01]OFD Sender: No OFD packet to send [01:46:06]OFD Sender: No OFD packet to send [01:46:11]OFD Sender: No OFD packet to send [01:46:16]OFD Sender: No OFD packet to send [01:46:21]OFD Sender: No OFD packet to send [01:46:26]OFD Sender: No OFD packet to send [01:46:31]OFD Sender: No OFD packet to send [01:46:36]OFD Sender: No OFD packet to send [01:46:41]OFD Sender: No OFD packet to send [01:46:46]OFD Sender: No OFD packet to send [01:46:51]OFD Sender: No OFD packet to send [01:46:56]OFD Sender: No OFD packet to send [01:47:01]OFD Sender: No OFD packet to send [01:47:06]OFD Sender: No OFD packet to send [01:47:11]OFD Sender: No OFD packet to send [01:47:16]OFD Sender: No OFD packet to send [01:47:21]OFD Sender: No OFD packet to send [01:47:26]OFD Sender: No OFD packet to send [01:47:31]OFD Sender: No OFD packet to send [01:47:36]OFD Sender: No OFD packet to send [01:47:41]OFD Sender: No OFD packet to send [01:47:46]OFD Sender: No OFD packet to send [01:47:51]OFD Sender: No OFD packet to send [01:47:56]OFD Sender: No OFD packet to send [01:48:01]OFD Sender: No OFD packet to send [01:48:06]OFD Sender: No OFD packet to send [01:48:11]OFD Sender: No OFD packet to send [01:48:16]OFD Sender: No OFD packet to send [01:48:21]OFD Sender: No OFD packet to send [01:48:26]OFD Sender: No OFD packet to send [01:48:31]OFD Sender: No OFD packet to send [01:48:36]OFD Sender: No OFD packet to send [01:48:41]OFD Sender: No OFD packet to send [01:48:46]OFD Sender: No OFD packet to send [01:48:51]OFD Sender: No OFD packet to send [01:48:56]OFD Sender: No OFD packet to send [01:49:01]OFD Sender: No OFD packet to send [01:49:06]OFD Sender: No OFD packet to send [01:49:11]OFD Sender: No OFD packet to send [01:49:16]OFD Sender: No OFD packet to send [01:49:21]OFD Sender: No OFD packet to send [01:49:26]OFD Sender: No OFD packet to send [01:49:31]OFD Sender: No OFD packet to send [01:49:36]OFD Sender: No OFD packet to send [01:49:41]OFD Sender: No OFD packet to send [01:49:46]OFD Sender: No OFD packet to send [01:49:51]OFD Sender: No OFD packet to send [01:49:56]OFD Sender: No OFD packet to send [01:50:01]OFD Sender: No OFD packet to send [01:50:06]OFD Sender: No OFD packet to send [01:50:11]OFD Sender: No OFD packet to send [01:50:16]OFD Sender: No OFD packet to send [01:50:21]OFD Sender: No OFD packet to send [01:50:26]OFD Sender: No OFD packet to send [01:50:31]OFD Sender: No OFD packet to send [01:50:36]OFD Sender: No OFD packet to send [01:50:41]OFD Sender: No OFD packet to send [01:50:46]OFD Sender: No OFD packet to send [01:50:51]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [01:51:22]OFD Sender: No OFD packet to send [01:51:27]OFD Sender: No OFD packet to send [01:51:32]OFD Sender: No OFD packet to send [01:51:37]OFD Sender: No OFD packet to send [01:51:42]OFD Sender: No OFD packet to send [01:51:47]OFD Sender: No OFD packet to send [01:51:52]OFD Sender: No OFD packet to send [01:51:57]OFD Sender: No OFD packet to send [01:52:02]OFD Sender: No OFD packet to send [01:52:07]OFD Sender: No OFD packet to send [01:52:12]OFD Sender: No OFD packet to send [01:52:17]OFD Sender: No OFD packet to send [01:52:22]OFD Sender: No OFD packet to send [01:52:27]OFD Sender: No OFD packet to send [01:52:32]OFD Sender: No OFD packet to send [01:52:37]OFD Sender: No OFD packet to send [01:52:42]OFD Sender: No OFD packet to send [01:52:47]OFD Sender: No OFD packet to send [01:52:52]OFD Sender: No OFD packet to send [01:52:57]OFD Sender: No OFD packet to send [01:53:02]OFD Sender: No OFD packet to send [01:53:07]OFD Sender: No OFD packet to send [01:53:12]OFD Sender: No OFD packet to send [01:53:17]OFD Sender: No OFD packet to send [01:53:22]OFD Sender: No OFD packet to send [01:53:27]OFD Sender: No OFD packet to send [01:53:32]OFD Sender: No OFD packet to send [01:53:37]OFD Sender: No OFD packet to send [01:53:42]OFD Sender: No OFD packet to send [01:53:47]OFD Sender: No OFD packet to send [01:53:52]OFD Sender: No OFD packet to send [01:53:57]OFD Sender: No OFD packet to send [01:54:02]OFD Sender: No OFD packet to send [01:54:07]OFD Sender: No OFD packet to send [01:54:12]OFD Sender: No OFD packet to send [01:54:17]OFD Sender: No OFD packet to send [01:54:22]OFD Sender: No OFD packet to send [01:54:27]OFD Sender: No OFD packet to send [01:54:32]OFD Sender: No OFD packet to send [01:54:37]OFD Sender: No OFD packet to send [01:54:42]OFD Sender: No OFD packet to send [01:54:47]OFD Sender: No OFD packet to send [01:54:52]OFD Sender: No OFD packet to send [01:54:57]OFD Sender: No OFD packet to send [01:55:02]OFD Sender: No OFD packet to send [01:55:07]OFD Sender: No OFD packet to send [01:55:12]OFD Sender: No OFD packet to send [01:55:17]OFD Sender: No OFD packet to send [01:55:22]OFD Sender: No OFD packet to send [01:55:27]OFD Sender: No OFD packet to send [01:55:32]OFD Sender: No OFD packet to send [01:55:37]OFD Sender: No OFD packet to send [01:55:42]OFD Sender: No OFD packet to send [01:55: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:37]OFD Sender: No OFD packet to send [01:59:42]OFD Sender: No OFD packet to send [01:59:47]OFD Sender: No OFD packet to send [01:59:52]OFD Sender: No OFD packet to send [01:59:57]OFD Sender: No OFD packet to send [02:00:02]OFD Sender: No OFD packet to send [02:00:07]OFD Sender: No OFD packet to send [02:00:12]OFD Sender: No OFD packet to send [02:00:17]OFD Sender: No OFD packet to send [02:00:22]OFD Sender: No OFD packet to send [02:00:27]OFD Sender: No OFD packet to send [02:00:32]OFD Sender: No OFD packet to send [02:00:37]OFD Sender: No OFD packet to send [02:00:42]OFD Sender: No OFD packet to send [02:00:47]OFD Sender: No OFD packet to send [02:00:52]OFD Sender: No OFD packet to send [02:00:57]OFD Sender: No OFD packet to send [02:01:02]OFD Sender: No OFD packet to send [02:01:07]OFD Sender: No OFD packet to send [02:01:09]accept exits with 9 [02:01:09]New connection [02:01:09]New thread 3067383140 created [02:01:09]Thread 3067239780 joined [02:01:09]Waiting for new connection... [02:01:09] Sock 9.Parse request [02:01:09]Sock 9.Check first char [02:01:09]Sock 9.First char is OK [02:01:09]request: POST /json_proto HTTP/1.0 [02:01:09]Method: POST [02:01:09]URL: /json_proto [02:01:09]Method is POST - this is cgi request [02:01:09]url: /json_proto [02:01:09]query_string will be loaded in cgi processing [02:01:09]execute_cgi json_proto POST (null) [02:01:09]execute_cgi path=json_proto method=POST [02:01:09]POST find Content-Length [02:01:09]Host: 172.17.45.7:8080 [02:01:09]Content-Length: 677 [02:01:09]Content-Type: application/json [02:01:09] [02:01:09]POST finish read [02:01:09]Found Content-Length = 677 [02:01:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [02:01:09]execute_script... [02:01: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)949515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [02:01:09]POST & json_proto [02:01:09]process_json_proto [02:01:09]json parsed OK: [02:01:09]protocol is kg_v1.0 [02:01:09]action value=close_receipt [02:01:09]process_action close_receipt [02:01:09]cmd_close_receipt [02:01:09]MH_GetDate [02:01:09]Write to MH i2c: F0 00 00 9B 2A B4 [02:01:09]Write i2c OK [02:01:09]MH_I2C_Read... [02:01:09]Read from MH i2c: F0 [02:01:09]MH_I2C_Read... [02:01:09]Read from MH i2c: F0 09 00 [02:01:09]MH_I2C_Read... [02:01:09]Read from MH i2c: F0 09 00 9B 2A 00 E8 F7 A6 66 90 0F 3E 66 EB [02:01:09]GetLastDocTimeStamp 1722216340 [02:01:09]current date 1722218472 [02:01:09]FM_GetShiftState [02:01:09]SAM_PROTO_GetShiftState [02:01:09]wFMCommunicate request_size=4 [02:01:09]MH_SAM_APDU [02:01:09]CAPDU: 80 13 01 00 [02:01:09]Write to MH i2c: E2 08 00 9C 2A 80 13 01 00 00 00 00 00 43 [02:01:09]Write i2c OK [02:01:09]MH_I2C_Read... [02:01:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:01:09]Read from MH i2c: E2 [02:01:09]MH_I2C_Read... [02:01:09]Read from MH i2c: E2 0E 00 [02:01:09]MH_I2C_Read... [02:01:09]Read from MH i2c: E2 0E 00 9C 2A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 71 [02:01:09]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [02:01:09]wFMCommunicate OK [02:01:09]SAM_PROTO_GetShiftState done [02:01:09]FM_GetShiftState done [02:01:09]opened in 1722211641 [02:01:09]opened+sec_in_day 1722298041 [02:01:09]quantity*price = 40002 [02:01:09]sum+1 = 40003 [02:01:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 7 29.07.2024 02:01 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118631 ФПД: 3894344448712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T020112&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118631&fm=3894344448712&tin=02508201610067®Number=0000000000092660&sum=40000 [02:01:10]StoreToDocumentArchive [02:01:10]shift 434 fd 118631 [02:01:10]save to /storage/0434/doc_00118631 [02:01:10]save last doc name /storage/0434/doc_00118631 to /storage/kkm_last_doc_name [02:01:10]save OK [02:01:10]Clear old archive folders... [02:01:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:01:10]tlvbuf is 01EE7B30 [02:01:10]SAM_PROTO_ClearQueue [02:01:10]wFMCommunicate request_size=4 [02:01:10]MH_SAM_APDU [02:01:10]CAPDU: 80 09 00 00 [02:01:10]Write to MH i2c: E2 08 00 A9 2A 80 09 00 00 00 00 00 00 45 [02:01:10]Write i2c OK [02:01:10]MH_I2C_Read... [02:01:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:01:10]Read from MH i2c: E2 [02:01:10]MH_I2C_Read... [02:01:10]Read from MH i2c: E2 03 00 [02:01:10]MH_I2C_Read... [02:01:10]Read from MH i2c: E2 03 00 A9 2A 00 90 00 47 [02:01:10]RAPDU: 90 00 [02:01:10]wFMCommunicate OK [02:01:10]SAM_PROTO_ClearQueue done [02:01:10]KKMCreateOFDPacket [02:01:10]OFDProtocolAddRootSTLVToBuf [02:01:10]FM_MakeSignedData [02:01:10]FM_MakeSignedData [02:01:10]SAM_PROTO_SignData [02:01:10]wFMCommunicate request_size=4 [02:01:10]MH_SAM_APDU [02:01:10]CAPDU: 80 0D 01 02 [02:01:10]Write to MH i2c: E2 08 00 AA 2A 80 0D 01 02 00 00 00 00 4D [02:01:10]Write i2c OK [02:01:10]MH_I2C_Read... [02:01:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:01:10]Read from MH i2c: E2 [02:01:10]MH_I2C_Read... [02:01:10]Read from MH i2c: E2 03 00 [02:01:10]MH_I2C_Read... [02:01:10]Read from MH i2c: E2 03 00 AA 2A 00 90 00 48 [02:01:10]RAPDU: 90 00 [02:01:10]wFMCommunicate OK [02:01:10]wFMCommunicate request_size=255 [02:01:10]MH_SAM_APDU [02:01: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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 07 00 00 00 F4 03 04 00 E8 F7 A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 67 CF 01 00 35 04 06 00 03 [02:01:10]Write to MH i2c: E2 02 01 AB 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 07 00 00 00 F4 03 04 00 E8 F7 A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 67 CF 01 00 35 04 06 00 03 00 00 95 [02:01:10]Write i2c OK [02:01:10]MH_I2C_Read... [02:01:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:01:11]Read from MH i2c: E2 [02:01:11]MH_I2C_Read... [02:01:11]Read from MH i2c: E2 03 00 [02:01:11]MH_I2C_Read... [02:01:11]Read from MH i2c: E2 03 00 AB 2A 00 90 00 49 [02:01:11]RAPDU: 90 00 [02:01:11]wFMCommunicate OK [02:01:11]wFMCommunicate request_size=10 [02:01:11]MH_SAM_APDU [02:01:11]CAPDU: 80 0D 02 02 05 8A B9 04 7A C8 [02:01:11]Write to MH i2c: E2 0D 00 AC 2A 80 0D 02 02 05 00 8A B9 04 7A C8 00 00 E3 [02:01:11]Write i2c OK [02:01:11]MH_I2C_Read... [02:01:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:01:11]Read from MH i2c: E2 [02:01:11]MH_I2C_Read... [02:01:11]Read from MH i2c: E2 03 00 [02:01:11]MH_I2C_Read... [02:01:11]Read from MH i2c: E2 03 00 AC 2A 00 90 00 4A [02:01:11]RAPDU: 90 00 [02:01:11]wFMCommunicate OK [02:01:11]wFMCommunicate request_size=4 [02:01:11]MH_SAM_APDU [02:01:11]CAPDU: 80 0D 03 02 [02:01:11]Write to MH i2c: E2 08 00 AD 2A 80 0D 03 02 00 00 00 00 52 [02:01:11]Write i2c OK [02:01:11]MH_I2C_Read... [02:01:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:01:11]Read from MH i2c: E2 [02:01:11]MH_I2C_Read... [02:01:11]Read from MH i2c: E2 0B 00 [02:01:11]MH_I2C_Read... [02:01:11]Read from MH i2c: E2 0B 00 AD 2A 00 14 38 B4 D2 41 79 4C 8B 90 00 B6 [02:01:11]RAPDU: 14 38 B4 D2 41 79 4C 8B 90 00 [02:01:11]wFMCommunicate OK [02:01:11]SAM_PROTO_SignData done [02:01:11]FM_MakeSignedData done [02:01:11]CreateOFDProtocolMessage [02:01:11]wFMCommunicate request_size=4 [02:01:11]MH_SAM_APDU [02:01:11]CAPDU: 80 11 00 00 [02:01:11]Write to MH i2c: E2 08 00 AE 2A 80 11 00 00 00 00 00 00 52 [02:01:11]Write i2c OK [02:01:11]MH_I2C_Read... [02:01:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:01:11]Read from MH i2c: E2 [02:01:11]MH_I2C_Read... [02:01:11]Read from MH i2c: E2 17 00 [02:01:11]MH_I2C_Read... [02:01:11]Read from MH i2c: E2 17 00 AE 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AD [02:01:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:01:11]wFMCommunicate OK [02:01:11]CreateOFDProtocolMessage done [02:01:11]OFDSenderStorePacket 118631 [02:01:11]StoreOFDPacket docnum=118631 [02:01:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 52 71 07 01 0C 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 07 00 00 00 F4 03 04 00 E8 F7 A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 67 CF 01 00 35 04 06 00 03 8A B9 04 7A C8 14 38 B4 D2 41 79 4C 8B [02:01:11]CheckFolder [02:01:11]dirname=/storage/ofd_packets [02:01:11]CheckFolder done [02:01:11]ProducePacketName [02:01:11]name=ofd_packets/00118631 [02:01:11]NVStorageSaveData ofd_packets/00118631 [02:01:11]File name is /storage/ofd_packets/00118631 [02:01:11]Write 301 bytes [02:01:11]NVStorageSaveData done [02:01:11]OFDSenderStorePacket done [02:01:11]KKMCreateOFDPacket done [02:01:11]NVStorageSaveData kkm_last_timestamp [02:01:11]File name is /storage/kkm_last_timestamp [02:01:11]Write 4 bytes [02:01:11]NVStorageSaveData done [02:01:11]ExternCall_PrintAddStr [02:01:11]wPrintStart [02:01:11]Write to MH i2c: 01 00 00 AF 2A D9 [02:01:11]Write i2c OK [02:01:11]MH_I2C_Read... [02:01:11]Read from MH i2c: 01 [02:01:11]MH_I2C_Read... [02:01:11]Read from MH i2c: 01 07 00 [02:01:11]MH_I2C_Read... [02:01:11]Read from MH i2c: 01 07 00 AF 2A 00 00 00 00 00 FF 0F EE [02:01:11]RasterBufferAndPrint [02:01:11]line Счет N : (1)949515 [02:01:11]line ИНН: 02508201610067 [02:01:11]line Контрольно-Кассовый Чек [02:01:11]line ПРОДАЖА [02:01:11]line ТРК (МРК, ГНК) : 51 [02:01:11]line Товар: 2710124130 [02:01:11]line Аи-92-К-4 [02:01:11]line 5.900 * 67.80 [02:01:11]line = 400.02 [02:01:11]line НДС 12% НСП 1% [02:01:11]line > о реализуемом товаре [02:01:11]line ОКРУГЛЕНИЕ: -0.02 [02:01:11]line ИТОГО: 400.00 [02:01:11]line Внесено: 400.00 [02:01:11]line СДАЧА: 0.00 [02:01:11]line НСП 1% : 3.54 [02:01:11]line НДС 12% : 42.48 [02:01:11]line Наличными: 400.00 [02:01:11]line Безнал.: 0.00 [02:01:11]line Место: АЗС № 134 "Партнер Нефть" [02:01:11]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [02:01:11]line СНО: Общий режим [02:01:11]line Чек 7 29.07.2024 02:01 [02:01:11]line Смена: 434 ФФД: 1.0 [02:01:11]line ЗНМ: 0300000044 [02:01:11]line РНМ: 0000000000092660 [02:01:11]line Версия ККМ: 001 [02:01:11]line ФМ: 0000000000874939 [02:01:11]line ФД: 118631 [02:01:11]line ФПД: 3894344448712 [02:01:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T020112&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118631&fm=3894344448712&tin=02508201610067®Number=0000000000092660&sum=40000 [02:01:11]OFD Sender: Processing packet 118631 [packets to send 86, broken 85] [02:01:11]ProducePacketName [02:01:11]name=ofd_packets/00118631 [02:01:11]OFD Sender: To server: pG, [02:01:11]CommunicateWithHost lk.salyk.kg:30040 [02:01:11]ConnectInit lk.salyk.kg [02:01:11]written 0, free lines is 4095 [02:01:11]Connected sock=10 [02:01:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 52 71 07 01 0C 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 07 00 00 00 F4 03 04 00 E8 F7 A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 67 CF 01 00 35 04 06 00 03 8A B9 04 7A C8 14 38 B4 D2 41 79 4C 8B [02:01:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 67 1D 47 00 29 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 67 CF 01 00 F4 03 04 00 77 A5 A6 66 B6 04 01 00 00 CD 3D 8B BD B1 6A B2 B5 [02:01:11]CommunicateWithHost err = 0 [02:01:11]CheckOFDResponse [02:01:11]1017 (14) - 77093643461234 [02:01:11]1041 (16) - 0000000000874939 [02:01:11]1040 (4) - 118631 [02:01:11]1012 (4) - 28.07.2024 20:09 [02:01:11]1206 (1) - 0 [02:01:11]OFD Sender: Remove packet 118631 [02:01:11]ProducePacketName [02:01:11]name=ofd_packets/00118631 [02:01:11]NVStorageDeleteData [02:01:11]Write to MH i2c: 01 00 00 D9 2A 03 [02:01:11]Write i2c OK [02:01:11]MH_I2C_Read... [02:01:11]Read from MH i2c: 01 [02:01:11]MH_I2C_Read... [02:01:11]Read from MH i2c: 01 07 00 [02:01:11]MH_I2C_Read... [02:01:11]Read from MH i2c: 01 07 00 D9 2A 00 00 00 00 00 C7 0C DD [02:01:11]RasterBufferAndPrint [02:01:11]line [02:01:11]line [02:01:11]line [02:01:11]line [02:01:11]line [02:01:11]written 0, free lines is 3277 [02:01:11]MH_Cut [02:01:11]Write to MH i2c: D1 01 00 E0 2A 01 DC [02:01:11]Write i2c OK [02:01:11]MH_I2C_Read... [02:01:11]Read from MH i2c: D1 [02:01:11]MH_I2C_Read... [02:01:11]Read from MH i2c: D1 01 00 [02:01:11]MH_I2C_Read... [02:01:11]Read from MH i2c: D1 01 00 E0 2A 00 DB [02:01:11]Write to MH i2c: 01 00 00 E1 2A 0B [02:01:11]Write i2c OK [02:01:11]MH_I2C_Read... [02:01:12]OFD Sender: No OFD packet to send [02:01:12]*** Cut start [02:01:12]*** Partial cut [02:01:12]*** CUTSNS_PIN = 1 [02:01:12]*** CUTSNS_PIN = 0 [02:01:12]*** Brake cut motor [02:01:13]Read from MH i2c: 01 [02:01:13]MH_I2C_Read... [02:01:13]*** Stop cut motor [02:01:13]*** Cut end [02:01:13]Read from MH i2c: 01 07 00 [02:01:13]MH_I2C_Read... [02:01:13]Read from MH i2c: 01 07 00 E1 2A 00 00 00 00 00 FF 0F 20 [02:01:13]process_action close_receipt done [02:01:13]requested_data is exist [02:01:13]produce_requested_data [02:01:13]requested_item fm.sn is exist - process it [02:01:13]wFMCommunicate request_size=4 [02:01:13]MH_SAM_APDU [02:01:13]CAPDU: 80 11 00 00 [02:01:13]Write to MH i2c: E2 08 00 E2 2A 80 11 00 00 00 00 00 00 86 [02:01:13]Write i2c OK [02:01:13]MH_I2C_Read... [02:01:13]Read from MH i2c: E2 [02:01:13]MH_I2C_Read... [02:01:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:01:13]Read from MH i2c: E2 17 00 [02:01:13]MH_I2C_Read... [02:01:13]Read from MH i2c: E2 17 00 E2 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E1 [02:01:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:01:13]wFMCommunicate OK [02:01:13]requested_item fd.num is exist - process it [02:01:13]SAM_PROTO_GetFieldsCounters [02:01:13]wFMCommunicate request_size=4 [02:01:13]MH_SAM_APDU [02:01:13]CAPDU: 80 13 00 00 [02:01:13]Write to MH i2c: E2 08 00 E3 2A 80 13 00 00 00 00 00 00 89 [02:01:13]Write i2c OK [02:01:13]MH_I2C_Read... [02:01:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:01:13]Read from MH i2c: E2 [02:01:13]MH_I2C_Read... [02:01:13]Read from MH i2c: E2 62 00 [02:01:13]MH_I2C_Read... [02:01:13]Read from MH i2c: E2 62 00 E3 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 67 CF 01 00 0E 04 04 00 B2 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 AF [02:01: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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 67 CF 01 00 0E 04 04 00 B2 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 [02:01:13]wFMCommunicate OK [02:01:13]SAM_PROTO_GetFieldsCounters done [02:01:13]requested_item shift.num is exist - process it [02:01:13]requested_item shift.opened is exist - process it [02:01:13]req_shift_opened [02:01:13]FM_GetShiftState [02:01:13]SAM_PROTO_GetShiftState [02:01:13]wFMCommunicate request_size=4 [02:01:13]MH_SAM_APDU [02:01:13]CAPDU: 80 13 01 00 [02:01:13]Write to MH i2c: E2 08 00 E4 2A 80 13 01 00 00 00 00 00 8B [02:01:13]Write i2c OK [02:01:13]MH_I2C_Read... [02:01:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:01:13]Read from MH i2c: E2 [02:01:13]MH_I2C_Read... [02:01:13]Read from MH i2c: E2 0E 00 [02:01:13]MH_I2C_Read... [02:01:13]Read from MH i2c: E2 0E 00 E4 2A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 B9 [02:01:13]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [02:01:13]wFMCommunicate OK [02:01:13]SAM_PROTO_GetShiftState done [02:01:13]FM_GetShiftState done [02:01:13]req_shift_opened done [02:01:13]requested_item shift.open_date is exist - process it [02:01:13]req_shift_open_date [02:01:13]req_shift_open_date done [02:01:13]produce_requested_data done [02:01:13]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118631,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [02:01:13]process_action_free close_receipt [02:01:13]json_value_free [02:01:13]json_value_free done [02:01:13]process_json_proto returns [02:01:13]Send response to host [02:01:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118631,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [02:01:13]free response buf [02:01:13]execute_script done [02:01:13]execute_script returns [02:01:13]free content buf [02:01:13]Sock 9.Close socket [02:01:13]Sock 9.Thread stoped [02:01:17]OFD Sender: No OFD packet to send [02:01:22]OFD Sender: No OFD packet to send [02:01:27]OFD Sender: No OFD packet to send [02:01:32]OFD Sender: No OFD packet to send [02:01:37]OFD Sender: No OFD packet to send [02:01:42]OFD Sender: No OFD packet to send [02:01:47]OFD Sender: No OFD packet to send [02:01:52]OFD Sender: No OFD packet to send [02:01:57]OFD Sender: No OFD packet to send [02:02:02]OFD Sender: No OFD packet to send [02:02:07]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:42]OFD Sender: No OFD packet to send [02:05:47]OFD Sender: No OFD packet to send [02:05:52]OFD Sender: No OFD packet to send [02:05:57]OFD Sender: No OFD packet to send [02:06:02]OFD Sender: No OFD packet to send [02:06:07]OFD Sender: No OFD packet to send [02:06:12]OFD Sender: No OFD packet to send [02:06:17]OFD Sender: No OFD packet to send [02:06:22]OFD Sender: No OFD packet to send [02:06:27]OFD Sender: No OFD packet to send [02:06:32]OFD Sender: No OFD packet to send [02:06:37]OFD Sender: No OFD packet to send [02:06:42]OFD Sender: No OFD packet to send [02:06:47]OFD Sender: No OFD packet to send [02:06:52]OFD Sender: No OFD packet to send [02:06:57]OFD Sender: No OFD packet to send [02:07:02]OFD Sender: No OFD packet to send [02:07:07]OFD Sender: No OFD packet to send [02:07:12]OFD Sender: No OFD packet to send [02:07:17]OFD Sender: No OFD packet to send [02:07:22]OFD Sender: No OFD packet to send [02:07:27]OFD Sender: No OFD packet to send [02:07:32]OFD Sender: No OFD packet to send [02:07:37]OFD Sender: No OFD packet to send [02:07:42]OFD Sender: No OFD packet to send [02:07:47]OFD Sender: No OFD packet to send [02:07:52]OFD Sender: No OFD packet to send [02:07:57]OFD Sender: No OFD packet to send [02:08:02]OFD Sender: No OFD packet to send [02:08:07]OFD Sender: No OFD packet to send [02:08:12]OFD Sender: No OFD packet to send [02:08:17]OFD Sender: No OFD packet to send [02:08:22]OFD Sender: No OFD packet to send [02:08:27]OFD Sender: No OFD packet to send [02:08:31]accept exits with 7 [02:08:31]New connection [02:08:31]New thread 3067239780 created [02:08:31]Thread 3067383140 joined [02:08:31]Waiting for new connection... [02:08:31] Sock 7.Parse request [02:08:31]Sock 7.Check first char [02:08:31]Sock 7.First char is OK [02:08:31]request: POST /json_proto HTTP/1.0 [02:08:31]Method: POST [02:08:31]URL: /json_proto [02:08:31]Method is POST - this is cgi request [02:08:31]url: /json_proto [02:08:31]query_string will be loaded in cgi processing [02:08:31]execute_cgi json_proto POST (null) [02:08:31]execute_cgi path=json_proto method=POST [02:08:31]POST find Content-Length [02:08:31]Host: 172.17.45.7:8080 [02:08:31]Content-Length: 679 [02:08:31]Content-Type: application/json [02:08:31] [02:08:31]POST finish read [02:08:31]Found Content-Length = 679 [02:08:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:08:31]execute_script... [02:08: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)949516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:08:31]POST & json_proto [02:08:31]process_json_proto [02:08:31]json parsed OK: [02:08:31]protocol is kg_v1.0 [02:08:31]action value=close_receipt [02:08:31]process_action close_receipt [02:08:31]cmd_close_receipt [02:08:31]MH_GetDate [02:08:31]Write to MH i2c: F0 00 00 E5 2A FE [02:08:31]Write i2c OK [02:08:31]MH_I2C_Read... [02:08:31]Read from MH i2c: F0 [02:08:31]MH_I2C_Read... [02:08:31]Read from MH i2c: F0 09 00 [02:08:31]MH_I2C_Read... [02:08:31]Read from MH i2c: F0 09 00 E5 2A 00 A2 F9 A6 66 90 0F 3E 66 F1 [02:08:31]GetLastDocTimeStamp 1722218472 [02:08:31]current date 1722218914 [02:08:31]FM_GetShiftState [02:08:31]SAM_PROTO_GetShiftState [02:08:31]wFMCommunicate request_size=4 [02:08:31]MH_SAM_APDU [02:08:31]CAPDU: 80 13 01 00 [02:08:31]Write to MH i2c: E2 08 00 E6 2A 80 13 01 00 00 00 00 00 8D [02:08:31]Write i2c OK [02:08:31]MH_I2C_Read... [02:08:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:08:31]Read from MH i2c: E2 [02:08:31]MH_I2C_Read... [02:08:31]Read from MH i2c: E2 0E 00 [02:08:31]MH_I2C_Read... [02:08:31]Read from MH i2c: E2 0E 00 E6 2A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 BB [02:08:31]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [02:08:31]wFMCommunicate OK [02:08:31]SAM_PROTO_GetShiftState done [02:08:31]FM_GetShiftState done [02:08:31]opened in 1722211641 [02:08:31]opened+sec_in_day 1722298041 [02:08:31]quantity*price = 100050 [02:08:31]sum+1 = 100052 [02:08:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 8 29.07.2024 02:08 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118632 ФПД: 234531150481940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T020834&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118632&fm=234531150481940&tin=02508201610067®Number=0000000000092660&sum=100000 [02:08:32]StoreToDocumentArchive [02:08:32]shift 434 fd 118632 [02:08:32]save to /storage/0434/doc_00118632 [02:08:32]save last doc name /storage/0434/doc_00118632 to /storage/kkm_last_doc_name [02:08:32]save OK [02:08:32]Clear old archive folders... [02:08:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:08:32]tlvbuf is B6E11620 [02:08:32]SAM_PROTO_ClearQueue [02:08:32]wFMCommunicate request_size=4 [02:08:32]MH_SAM_APDU [02:08:32]CAPDU: 80 09 00 00 [02:08:32]Write to MH i2c: E2 08 00 F3 2A 80 09 00 00 00 00 00 00 8F [02:08:32]Write i2c OK [02:08:32]MH_I2C_Read... [02:08:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:08:32]Read from MH i2c: E2 [02:08:32]MH_I2C_Read... [02:08:32]Read from MH i2c: E2 03 00 [02:08:32]MH_I2C_Read... [02:08:32]Read from MH i2c: E2 03 00 F3 2A 00 90 00 91 [02:08:32]RAPDU: 90 00 [02:08:32]wFMCommunicate OK [02:08:32]SAM_PROTO_ClearQueue done [02:08:32]KKMCreateOFDPacket [02:08:32]OFDProtocolAddRootSTLVToBuf [02:08:32]FM_MakeSignedData [02:08:32]FM_MakeSignedData [02:08:32]SAM_PROTO_SignData [02:08:32]wFMCommunicate request_size=4 [02:08:32]MH_SAM_APDU [02:08:32]CAPDU: 80 0D 01 02 [02:08:32]Write to MH i2c: E2 08 00 F4 2A 80 0D 01 02 00 00 00 00 97 [02:08:32]Write i2c OK [02:08:32]MH_I2C_Read... [02:08:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:08:32]Read from MH i2c: E2 [02:08:32]MH_I2C_Read... [02:08:32]Read from MH i2c: E2 03 00 [02:08:32]MH_I2C_Read... [02:08:32]Read from MH i2c: E2 03 00 F4 2A 00 90 00 92 [02:08:32]RAPDU: 90 00 [02:08:32]wFMCommunicate OK [02:08:32]wFMCommunicate request_size=255 [02:08:32]MH_SAM_APDU [02:08:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 A2 F9 A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 68 CF 01 00 35 04 06 00 D5 4E 09 E9 [02:08:32]Write to MH i2c: E2 02 01 F5 2A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 A2 F9 A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 68 CF 01 00 35 04 06 00 D5 4E 09 E9 00 00 D6 [02:08:32]Write i2c OK [02:08:32]MH_I2C_Read... [02:08:32]OFD Sender: No OFD packet to send [02:08:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:08:33]Read from MH i2c: E2 [02:08:33]MH_I2C_Read... [02:08:33]Read from MH i2c: E2 03 00 [02:08:33]MH_I2C_Read... [02:08:33]Read from MH i2c: E2 03 00 F5 2A 00 90 00 93 [02:08:33]RAPDU: 90 00 [02:08:33]wFMCommunicate OK [02:08:33]wFMCommunicate request_size=7 [02:08:33]MH_SAM_APDU [02:08:33]CAPDU: 80 0D 02 02 02 CA 14 [02:08:33]Write to MH i2c: E2 0A 00 F6 2A 80 0D 02 02 02 00 CA 14 00 00 7C [02:08:33]Write i2c OK [02:08:33]MH_I2C_Read... [02:08:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:08:33]Read from MH i2c: E2 [02:08:33]MH_I2C_Read... [02:08:33]Read from MH i2c: E2 03 00 [02:08:33]MH_I2C_Read... [02:08:33]Read from MH i2c: E2 03 00 F6 2A 00 90 00 94 [02:08:33]RAPDU: 90 00 [02:08:33]wFMCommunicate OK [02:08:33]wFMCommunicate request_size=4 [02:08:33]MH_SAM_APDU [02:08:33]CAPDU: 80 0D 03 02 [02:08:33]Write to MH i2c: E2 08 00 F7 2A 80 0D 03 02 00 00 00 00 9C [02:08:33]Write i2c OK [02:08:33]MH_I2C_Read... [02:08:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:08:33]Read from MH i2c: E2 [02:08:33]MH_I2C_Read... [02:08:33]Read from MH i2c: E2 0B 00 [02:08:33]MH_I2C_Read... [02:08:33]Read from MH i2c: E2 0B 00 F7 2A 00 26 A6 51 E5 77 6A 0F 84 90 00 13 [02:08:33]RAPDU: 26 A6 51 E5 77 6A 0F 84 90 00 [02:08:33]wFMCommunicate OK [02:08:33]SAM_PROTO_SignData done [02:08:33]FM_MakeSignedData done [02:08:33]CreateOFDProtocolMessage [02:08:33]wFMCommunicate request_size=4 [02:08:33]MH_SAM_APDU [02:08:33]CAPDU: 80 11 00 00 [02:08:33]Write to MH i2c: E2 08 00 F8 2A 80 11 00 00 00 00 00 00 9C [02:08:33]Write i2c OK [02:08:33]MH_I2C_Read... [02:08:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:08:33]Read from MH i2c: E2 [02:08:33]MH_I2C_Read... [02:08:33]Read from MH i2c: E2 17 00 [02:08:33]MH_I2C_Read... [02:08:33]Read from MH i2c: E2 17 00 F8 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F7 [02:08:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:08:33]wFMCommunicate OK [02:08:33]CreateOFDProtocolMessage done [02:08:33]OFDSenderStorePacket 118632 [02:08:33]StoreOFDPacket docnum=118632 [02:08:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 22 1C 04 01 60 A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 A2 F9 A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 68 CF 01 00 35 04 06 00 D5 4E 09 E9 CA 14 26 A6 51 E5 77 6A 0F 84 [02:08:33]CheckFolder [02:08:33]dirname=/storage/ofd_packets [02:08:33]CheckFolder done [02:08:33]ProducePacketName [02:08:33]name=ofd_packets/00118632 [02:08:33]NVStorageSaveData ofd_packets/00118632 [02:08:33]File name is /storage/ofd_packets/00118632 [02:08:33]Write 298 bytes [02:08:33]NVStorageSaveData done [02:08:33]OFDSenderStorePacket done [02:08:33]KKMCreateOFDPacket done [02:08:33]NVStorageSaveData kkm_last_timestamp [02:08:33]File name is /storage/kkm_last_timestamp [02:08:33]Write 4 bytes [02:08:33]NVStorageSaveData done [02:08:33]ExternCall_PrintAddStr [02:08:33]wPrintStart [02:08:33]Write to MH i2c: 01 00 00 F9 2A 23 [02:08:33]Write i2c OK [02:08:33]MH_I2C_Read... [02:08:33]Read from MH i2c: 01 [02:08:33]MH_I2C_Read... [02:08:33]Read from MH i2c: 01 07 00 [02:08:33]MH_I2C_Read... [02:08:33]Read from MH i2c: 01 07 00 F9 2A 00 00 00 00 00 FF 0F 38 [02:08:33]RasterBufferAndPrint [02:08:33]line Счет N : (1)949516 [02:08:33]line ИНН: 02508201610067 [02:08:33]line Контрольно-Кассовый Чек [02:08:33]line ПРОДАЖА [02:08:33]line ТРК (МРК, ГНК) : 34 [02:08:33]line Товар: 2710194800 [02:08:33]line ДТ-К-5 [02:08:33]line 13.130 * 76.20 [02:08:33]line = 1000.51 [02:08:33]line НДС 12% НСП 1% [02:08:33]line > о реализуемом товаре [02:08:33]line ОКРУГЛЕНИЕ: -0.51 [02:08:33]line ИТОГО: 1000.00 [02:08:33]line Внесено: 1000.00 [02:08:33]line СДАЧА: 0.00 [02:08:33]line НСП 1% : 8.85 [02:08:33]line НДС 12% : 106.25 [02:08:33]line Наличными: 1000.00 [02:08:33]line Безнал.: 0.00 [02:08:33]line Место: АЗС № 134 "Партнер Нефть" [02:08:33]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [02:08:33]line СНО: Общий режим [02:08:33]line Чек 8 29.07.2024 02:08 [02:08:33]line Смена: 434 ФФД: 1.0 [02:08:33]line ЗНМ: 0300000044 [02:08:33]line РНМ: 0000000000092660 [02:08:33]line Версия ККМ: 001 [02:08:33]line ФМ: 0000000000874939 [02:08:33]line ФД: 118632 [02:08:33]line ФПД: 234531150481940 [02:08:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T020834&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118632&fm=234531150481940&tin=02508201610067®Number=0000000000092660&sum=100000 [02:08:33]OFD Sender: Processing packet 118632 [packets to send 86, broken 85] [02:08:33]ProducePacketName [02:08:33]name=ofd_packets/00118632 [02:08:33]OFD Sender: To server: pG, [02:08:33]CommunicateWithHost lk.salyk.kg:30040 [02:08:33]ConnectInit lk.salyk.kg [02:08:33]written 0, free lines is 4095 [02:08:33]Connected sock=10 [02:08:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 22 1C 04 01 60 A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 A2 F9 A6 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 68 CF 01 00 35 04 06 00 D5 4E 09 E9 CA 14 26 A6 51 E5 77 6A 0F 84 [02:08:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D1 F2 47 00 01 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 68 CF 01 00 F4 03 04 00 31 A7 A6 66 B6 04 01 00 00 A4 89 F0 0C 57 A0 A5 29 [02:08:33]CommunicateWithHost err = 0 [02:08:33]CheckOFDResponse [02:08:33]1017 (14) - 77093643461234 [02:08:33]1041 (16) - 0000000000874939 [02:08:33]1040 (4) - 118632 [02:08:33]1012 (4) - 28.07.2024 20:16 [02:08:33]1206 (1) - 0 [02:08:33]OFD Sender: Remove packet 118632 [02:08:33]ProducePacketName [02:08:33]name=ofd_packets/00118632 [02:08:33]NVStorageDeleteData [02:08:33]Write to MH i2c: 01 00 00 23 2B 4E [02:08:33]Write i2c OK [02:08:33]MH_I2C_Read... [02:08:33]Read from MH i2c: 01 [02:08:33]MH_I2C_Read... [02:08:33]Read from MH i2c: 01 07 00 [02:08:33]MH_I2C_Read... [02:08:33]Read from MH i2c: 01 07 00 23 2B 00 00 00 00 00 C7 0C 28 [02:08:33]RasterBufferAndPrint [02:08:33]line [02:08:33]line [02:08:33]line [02:08:33]line [02:08:33]line [02:08:33]written 0, free lines is 3277 [02:08:33]MH_Cut [02:08:33]Write to MH i2c: D1 01 00 2A 2B 01 27 [02:08:33]Write i2c OK [02:08:33]MH_I2C_Read... [02:08:33]Read from MH i2c: D1 [02:08:33]MH_I2C_Read... [02:08:33]Read from MH i2c: D1 01 00 [02:08:33]MH_I2C_Read... [02:08:33]Read from MH i2c: D1 01 00 2A 2B 00 26 [02:08:33]Write to MH i2c: 01 00 00 2B 2B 56 [02:08:33]Write i2c OK [02:08:33]MH_I2C_Read... [02:08:34]OFD Sender: No OFD packet to send [02:08:34]*** Cut start [02:08:34]*** Partial cut [02:08:34]*** CUTSNS_PIN = 1 [02:08:34]*** CUTSNS_PIN = 0 [02:08:34]*** Brake cut motor [02:08:35]Read from MH i2c: 01 [02:08:35]MH_I2C_Read... [02:08:35]*** Stop cut motor [02:08:35]*** Cut end [02:08:35]Read from MH i2c: 01 07 00 [02:08:35]MH_I2C_Read... [02:08:35]Read from MH i2c: 01 07 00 2B 2B 00 00 00 00 00 FF 0F 6B [02:08:35]process_action close_receipt done [02:08:35]requested_data is exist [02:08:35]produce_requested_data [02:08:35]requested_item fm.sn is exist - process it [02:08:35]wFMCommunicate request_size=4 [02:08:35]MH_SAM_APDU [02:08:35]CAPDU: 80 11 00 00 [02:08:35]Write to MH i2c: E2 08 00 2C 2B 80 11 00 00 00 00 00 00 D1 [02:08:35]Write i2c OK [02:08:35]MH_I2C_Read... [02:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:08:35]Read from MH i2c: E2 [02:08:35]MH_I2C_Read... [02:08:35]Read from MH i2c: E2 17 00 [02:08:35]MH_I2C_Read... [02:08:35]Read from MH i2c: E2 17 00 2C 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2C [02:08:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:08:35]wFMCommunicate OK [02:08:35]requested_item fd.num is exist - process it [02:08:35]SAM_PROTO_GetFieldsCounters [02:08:35]wFMCommunicate request_size=4 [02:08:35]MH_SAM_APDU [02:08:35]CAPDU: 80 13 00 00 [02:08:35]Write to MH i2c: E2 08 00 2D 2B 80 13 00 00 00 00 00 00 D4 [02:08:35]Write i2c OK [02:08:35]MH_I2C_Read... [02:08:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:08:35]Read from MH i2c: E2 [02:08:35]MH_I2C_Read... [02:08:35]Read from MH i2c: E2 62 00 [02:08:35]MH_I2C_Read... [02:08:35]Read from MH i2c: E2 62 00 2D 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 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 68 CF 01 00 0E 04 04 00 B2 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 FE [02:08:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 68 CF 01 00 0E 04 04 00 B2 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 [02:08:35]wFMCommunicate OK [02:08:35]SAM_PROTO_GetFieldsCounters done [02:08:35]requested_item shift.num is exist - process it [02:08:35]requested_item shift.opened is exist - process it [02:08:35]req_shift_opened [02:08:35]FM_GetShiftState [02:08:35]SAM_PROTO_GetShiftState [02:08:35]wFMCommunicate request_size=4 [02:08:35]MH_SAM_APDU [02:08:35]CAPDU: 80 13 01 00 [02:08:35]Write to MH i2c: E2 08 00 2E 2B 80 13 01 00 00 00 00 00 D6 [02:08:35]Write i2c OK [02:08:35]MH_I2C_Read... [02:08:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:08:35]Read from MH i2c: E2 [02:08:35]MH_I2C_Read... [02:08:35]Read from MH i2c: E2 0E 00 [02:08:35]MH_I2C_Read... [02:08:35]Read from MH i2c: E2 0E 00 2E 2B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 04 [02:08:35]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [02:08:35]wFMCommunicate OK [02:08:35]SAM_PROTO_GetShiftState done [02:08:35]FM_GetShiftState done [02:08:35]req_shift_opened done [02:08:35]requested_item shift.open_date is exist - process it [02:08:35]req_shift_open_date [02:08:35]req_shift_open_date done [02:08:35]produce_requested_data done [02:08:35]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118632,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [02:08:35]process_action_free close_receipt [02:08:35]json_value_free [02:08:35]json_value_free done [02:08:35]process_json_proto returns [02:08:35]Send response to host [02:08:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118632,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [02:08:35]free response buf [02:08:35]execute_script done [02:08:35]execute_script returns [02:08:35]free content buf [02:08:35]Sock 7.Close socket [02:08:35]Sock 7.Thread stoped [02:08:39]OFD Sender: No OFD packet to send [02:08:44]OFD Sender: No OFD packet to send [02:08:49]OFD Sender: No OFD packet to send [02:08:54]OFD Sender: No OFD packet to send [02:08:59]OFD Sender: No OFD packet to send [02:09:04]OFD Sender: No OFD packet to send [02:09:09]OFD Sender: No OFD packet to send [02:09:14]OFD Sender: No OFD packet to send [02:09:19]OFD Sender: No OFD packet to send [02:09:24]OFD Sender: No OFD packet to send [02:09:29]OFD Sender: No OFD packet to send [02:09:34]OFD Sender: No OFD packet to send [02:09:39]OFD Sender: No OFD packet to send [02:09:44]OFD Sender: No OFD packet to send [02:09:49]OFD Sender: No OFD packet to send [02:09:54]OFD Sender: No OFD packet to send [02:09:59]OFD Sender: No OFD packet to send [02:10:04]OFD Sender: No OFD packet to send [02:10:09]OFD Sender: No OFD packet to send [02:10:14]OFD Sender: No OFD packet to send [02:10:19]OFD Sender: No OFD packet to send [02:10:24]OFD Sender: No OFD packet to send [02:10:29]OFD Sender: No OFD packet to send [02:10:34]OFD Sender: No OFD packet to send [02:10:39]OFD Sender: No OFD packet to send [02:10:44]OFD Sender: No OFD packet to send [02:10:49]OFD Sender: No OFD packet to send [02:10:54]OFD Sender: No OFD packet to send [02:10:59]OFD Sender: No OFD packet to send [02:11:04]OFD Sender: No OFD packet to send [02:11:09]OFD Sender: No OFD packet to send [02:11:14]OFD Sender: No OFD packet to send [02:11:19]OFD Sender: No OFD packet to send [02:11:24]OFD Sender: No OFD packet to send [02:11:29]OFD Sender: No OFD packet to send [02:11:34]OFD Sender: No OFD packet to send [02:11:39]OFD Sender: No OFD packet to send [02:11:44]OFD Sender: No OFD packet to send [02:11:49]OFD Sender: No OFD packet to send [02:11:54]OFD Sender: No OFD packet to send [02:11:59]OFD Sender: No OFD packet to send [02:12:04]OFD Sender: No OFD packet to send [02:12:09]OFD Sender: No OFD packet to send [02:12:14]OFD Sender: No OFD packet to send [02:12:19]OFD Sender: No OFD packet to send [02:12:24]OFD Sender: No OFD packet to send [02:12:29]OFD Sender: No OFD packet to send [02:12:34]OFD Sender: No OFD packet to send [02:12:39]OFD Sender: No OFD packet to send [02:12:44]OFD Sender: No OFD packet to send [02:12:49]OFD Sender: No OFD packet to send [02:12:54]OFD Sender: No OFD packet to send [02:12:59]OFD Sender: No OFD packet to send [02:13:04]OFD Sender: No OFD packet to send [02:13:09]OFD Sender: No OFD packet to send [02:13:14]OFD Sender: No OFD packet to send [02:13:19]OFD Sender: No OFD packet to send [02:13:24]OFD Sender: No OFD packet to send [02:13:29]OFD Sender: No OFD packet to send [02:13:34]OFD Sender: No OFD packet to send [02:13:39]OFD Sender: No OFD packet to send [02:13:44]OFD Sender: No OFD packet to send [02:13:49]OFD Sender: No OFD packet to send [02:13:54]OFD Sender: No OFD packet to send [02:13:59]OFD Sender: No OFD packet to send [02:14:04]OFD Sender: No OFD packet to send [02:14:09]OFD Sender: No OFD packet to send [02:14:14]OFD Sender: No OFD packet to send [02:14:19]OFD Sender: No OFD packet to send [02:14:24]OFD Sender: No OFD packet to send [02:14:29]OFD Sender: No OFD packet to send [02:14:34]OFD Sender: No OFD packet to send [02:14:39]OFD Sender: No OFD packet to send [02:14:44]OFD Sender: No OFD packet to send [02:14:49]OFD Sender: No OFD packet to send [02:14:54]OFD Sender: No OFD packet to send [02:14:59]OFD Sender: No OFD packet to send [02:15:04]OFD Sender: No OFD packet to send [02:15:09]OFD Sender: No OFD packet to send [02:15:14]OFD Sender: No OFD packet to send [02:15:19]OFD Sender: No OFD packet to send [02:15:24]OFD Sender: No OFD packet to send [02:15:29]OFD Sender: No OFD packet to send [02:15:34]OFD Sender: No OFD packet to send [02:15:39]OFD Sender: No OFD packet to send [02:15:44]OFD Sender: No OFD packet to send [02:15:49]OFD Sender: No OFD packet to send [02:15:54]OFD Sender: No OFD packet to send [02:15:59]OFD Sender: No OFD packet to send [02:16:04]OFD Sender: No OFD packet to send [02:16:09]OFD Sender: No OFD packet to send [02:16:14]OFD Sender: No OFD packet to send [02:16:19]OFD Sender: No OFD packet to send [02:16:24]OFD Sender: No OFD packet to send [02:16:29]OFD Sender: No OFD packet to send [02:16:34]OFD Sender: No OFD packet to send [02:16:39]OFD Sender: No OFD packet to send [02:16:44]OFD Sender: No OFD packet to send [02:16:49]OFD Sender: No OFD packet to send [02:16:54]OFD Sender: No OFD packet to send [02:16:59]OFD Sender: No OFD packet to send [02:17:04]OFD Sender: No OFD packet to send [02:17:09]OFD Sender: No OFD packet to send [02:17:14]OFD Sender: No OFD packet to send [02:17:19]OFD Sender: No OFD packet to send [02:17:24]OFD Sender: No OFD packet to send [02:17:29]OFD Sender: No OFD packet to send [02:17:34]OFD Sender: No OFD packet to send [02:17:39]OFD Sender: No OFD packet to send [02:17:44]OFD Sender: No OFD packet to send [02:17:49]OFD Sender: No OFD packet to send [02:17:54]OFD Sender: No OFD packet to send [02:17:59]OFD Sender: No OFD packet to send [02:18:04]OFD Sender: No OFD packet to send [02:18:09]OFD Sender: No OFD packet to send [02:18:14]OFD Sender: No OFD packet to send [02:18:19]OFD Sender: No OFD packet to send [02:18:24]OFD Sender: No OFD packet to send [02:18:29]OFD Sender: No OFD packet to send [02:18:34]OFD Sender: No OFD packet to send [02:18:39]OFD Sender: No OFD packet to send [02:18:44]OFD Sender: No OFD packet to send [02:18:49]OFD Sender: No OFD packet to send [02:18:54]OFD Sender: No OFD packet to send [02:18:59]OFD Sender: No OFD packet to send [02:19:04]OFD Sender: No OFD packet to send [02:19:09]OFD Sender: No OFD packet to send [02:19:14]OFD Sender: No OFD packet to send [02:19:19]OFD Sender: No OFD packet to send [02:19:24]OFD Sender: No OFD packet to send [02:19:29]OFD Sender: No OFD packet to send [02:19:34]OFD Sender: No OFD packet to send [02:19:39]OFD Sender: No OFD packet to send [02:19:44]OFD Sender: No OFD packet to send [02:19:49]OFD Sender: No OFD packet to send [02:19:54]OFD Sender: No OFD packet to send [02:19:59]OFD Sender: No OFD packet to send [02:20:05]OFD Sender: No OFD packet to send [02:20:10]OFD Sender: No OFD packet to send [02:20:15]OFD Sender: No OFD packet to send [02:20:20]OFD Sender: No OFD packet to send [02:20:25]OFD Sender: No OFD packet to send [02:20:30]OFD Sender: No OFD packet to send [02:20:35]OFD Sender: No OFD packet to send [02:20:40]OFD Sender: No OFD packet to send [02:20:45]OFD Sender: No OFD packet to send [02:20:50]OFD Sender: No OFD packet to send [02:20:55]OFD Sender: No OFD packet to send [02:21:00]OFD Sender: No OFD packet to send [02:21:05]OFD Sender: No OFD packet to send [02:21:10]OFD Sender: No OFD packet to send [02:21:15]OFD Sender: No OFD packet to send [02:21:20]OFD Sender: No OFD packet to send [02:21:25]OFD Sender: No OFD packet to send [02:21:30]OFD Sender: No OFD packet to send [02:21:35]OFD Sender: No OFD packet to send [02:21:40]OFD Sender: No OFD packet to send [02:21:45]OFD Sender: No OFD packet to send [02:21:50]OFD Sender: No OFD packet to send [02:21:55]OFD Sender: No OFD packet to send [02:22:00]OFD Sender: No OFD packet to send [02:22:05]OFD Sender: No OFD packet to send [02:22:10]OFD Sender: No OFD packet to send [02:22:15]OFD Sender: No OFD packet to send [02:22:20]OFD Sender: No OFD packet to send [02:22:25]OFD Sender: No OFD packet to send [02:22:30]OFD Sender: No OFD packet to send [02:22:35]OFD Sender: No OFD packet to send [02:22:40]OFD Sender: No OFD packet to send [02:22:45]OFD Sender: No OFD packet to send [02:22:50]OFD Sender: No OFD packet to send [02:22:55]OFD Sender: No OFD packet to send [02:23:00]OFD Sender: No OFD packet to send [02:23:05]OFD Sender: No OFD packet to send [02:23:10]OFD Sender: No OFD packet to send [02:23:15]OFD Sender: No OFD packet to send [02:23:20]OFD Sender: No OFD packet to send [02:23:25]OFD Sender: No OFD packet to send [02:23:30]OFD Sender: No OFD packet to send [02:23:35]OFD Sender: No OFD packet to send [02:23:40]OFD Sender: No OFD packet to send [02:23:45]OFD Sender: No OFD packet to send [02:23:50]OFD Sender: No OFD packet to send [02:23:55]OFD Sender: No OFD packet to send [02:24:00]OFD Sender: No OFD packet to send [02:24:05]OFD Sender: No OFD packet to send [02:24:10]OFD Sender: No OFD packet to send [02:24:15]OFD Sender: No OFD packet to send [02:24:20]OFD Sender: No OFD packet to send [02:24:25]OFD Sender: No OFD packet to send [02:24:30]OFD Sender: No OFD packet to send [02:24:35]OFD Sender: No OFD packet to send [02:24:40]OFD Sender: No OFD packet to send [02:24:45]OFD Sender: No OFD packet to send [02:24:50]OFD Sender: No OFD packet to send [02:24:55]OFD Sender: No OFD packet to send [02:25:00]OFD Sender: No OFD packet to send [02:25:05]OFD Sender: No OFD packet to send [02:25:10]OFD Sender: No OFD packet to send [02:25:15]OFD Sender: No OFD packet to send [02:25:20]OFD Sender: No OFD packet to send [02:25:25]OFD Sender: No OFD packet to send [02:25:30]OFD Sender: No OFD packet to send [02:25:35]OFD Sender: No OFD packet to send [02:25:40]OFD Sender: No OFD packet to send [02:25:45]OFD Sender: No OFD packet to send [02:25:50]OFD Sender: No OFD packet to send [02:25:55]OFD Sender: No OFD packet to send [02:26:00]OFD Sender: No OFD packet to send [02:26:05]OFD Sender: No OFD packet to send [02:26:10]OFD Sender: No OFD packet to send [02:26:15]OFD Sender: No OFD packet to send [02:26:20]OFD Sender: No OFD packet to send [02:26:25]OFD Sender: No OFD packet to send [02:26:30]OFD Sender: No OFD packet to send [02:26:35]OFD Sender: No OFD packet to send [02:26:40]OFD Sender: No OFD packet to send [02:26:45]OFD Sender: No OFD packet to send [02:26:50]OFD Sender: No OFD packet to send [02:26:55]OFD Sender: No OFD packet to send [02:27:00]OFD Sender: No OFD packet to send [02:27:05]OFD Sender: No OFD packet to send [02:27:10]OFD Sender: No OFD packet to send [02:27:15]OFD Sender: No OFD packet to send [02:27:20]OFD Sender: No OFD packet to send [02:27:25]OFD Sender: No OFD packet to send [02:27:30]OFD Sender: No OFD packet to send [02:27:35]OFD Sender: No OFD packet to send [02:27:40]OFD Sender: No OFD packet to send [02:27:45]OFD Sender: No OFD packet to send [02:27:50]OFD Sender: No OFD packet to send [02:27:55]OFD Sender: No OFD packet to send [02:28:00]OFD Sender: No OFD packet to send [02:28:05]OFD Sender: No OFD packet to send [02:28:10]OFD Sender: No OFD packet to send [02:28:15]OFD Sender: No OFD packet to send [02:28:20]OFD Sender: No OFD packet to send [02:28:25]OFD Sender: No OFD packet to send [02:28:30]OFD Sender: No OFD packet to send [02:28:35]OFD Sender: No OFD packet to send [02:28:40]OFD Sender: No OFD packet to send [02:28:45]OFD Sender: No OFD packet to send [02:28:50]OFD Sender: No OFD packet to send [02:28:55]OFD Sender: No OFD packet to send [02:29:00]OFD Sender: No OFD packet to send [02:29:05]OFD Sender: No OFD packet to send [02:29:10]OFD Sender: No OFD packet to send [02:29:15]OFD Sender: No OFD packet to send [02:29:20]OFD Sender: No OFD packet to send [02:29:25]OFD Sender: No OFD packet to send [02:29:30]OFD Sender: No OFD packet to send [02:29:35]OFD Sender: No OFD packet to send [02:29:40]OFD Sender: No OFD packet to send [02:29:45]OFD Sender: No OFD packet to send [02:29:50]OFD Sender: No OFD packet to send [02:29:55]OFD Sender: No OFD packet to send [02:30:00]OFD Sender: No OFD packet to send [02:30:05]OFD Sender: No OFD packet to send [02:30:10]OFD Sender: No OFD packet to send [02:30:15]OFD Sender: No OFD packet to send [02:30:20]OFD Sender: No OFD packet to send [02:30:25]OFD Sender: No OFD packet to send [02:30:30]OFD Sender: No OFD packet to send [02:30:35]OFD Sender: No OFD packet to send [02:30:40]OFD Sender: No OFD packet to send [02:30:45]OFD Sender: No OFD packet to send [02:30:50]OFD Sender: No OFD packet to send [02:30:55]OFD Sender: No OFD packet to send [02:31:00]OFD Sender: No OFD packet to send [02:31:05]OFD Sender: No OFD packet to send [02:31:10]OFD Sender: No OFD packet to send [02:31:15]OFD Sender: No OFD packet to send [02:31:20]OFD Sender: No OFD packet to send [02:31:25]OFD Sender: No OFD packet to send [02:31:30]OFD Sender: No OFD packet to send [02:31:35]OFD Sender: No OFD packet to send [02:31:40]OFD Sender: No OFD packet to send [02:31:45]OFD Sender: No OFD packet to send [02:31:50]OFD Sender: No OFD packet to send [02:31:55]OFD Sender: No OFD packet to send [02:32:00]OFD Sender: No OFD packet to send [02:32:05]OFD Sender: No OFD packet to send [02:32:10]OFD Sender: No OFD packet to send [02:32:15]OFD Sender: No OFD packet to send [02:32:20]OFD Sender: No OFD packet to send [02:32:25]OFD Sender: No OFD packet to send [02:32:30]OFD Sender: No OFD packet to send [02:32:35]OFD Sender: No OFD packet to send [02:32:40]OFD Sender: No OFD packet to send [02:32:45]OFD Sender: No OFD packet to send [02:32:50]OFD Sender: No OFD packet to send [02:32:55]OFD Sender: No OFD packet to send [02:33:00]OFD Sender: No OFD packet to send [02:33:05]OFD Sender: No OFD packet to send [02:33:10]OFD Sender: No OFD packet to send [02:33:15]OFD Sender: No OFD packet to send [02:33:20]OFD Sender: No OFD packet to send [02:33:25]OFD Sender: No OFD packet to send [02:33:30]OFD Sender: No OFD packet to send [02:33:35]OFD Sender: No OFD packet to send [02:33:40]OFD Sender: No OFD packet to send [02:33:45]OFD Sender: No OFD packet to send [02:33:50]OFD Sender: No OFD packet to send [02:33:55]OFD Sender: No OFD packet to send [02:34:00]OFD Sender: No OFD packet to send [02:34:05]OFD Sender: No OFD packet to send [02:34:10]OFD Sender: No OFD packet to send [02:34:15]OFD Sender: No OFD packet to send [02:34:20]OFD Sender: No OFD packet to send [02:34:25]OFD Sender: No OFD packet to send [02:34:30]OFD Sender: No OFD packet to send [02:34:35]OFD Sender: No OFD packet to send [02:34:40]OFD Sender: No OFD packet to send [02:34:45]OFD Sender: No OFD packet to send [02:34:50]OFD Sender: No OFD packet to send [02:34:55]OFD Sender: No OFD packet to send [02:35:00]OFD Sender: No OFD packet to send [02:35:05]OFD Sender: No OFD packet to send [02:35:10]OFD Sender: No OFD packet to send [02:35:15]OFD Sender: No OFD packet to send [02:35:20]OFD Sender: No OFD packet to send [02:35:25]OFD Sender: No OFD packet to send [02:35:30]OFD Sender: No OFD packet to send [02:35:35]OFD Sender: No OFD packet to send [02:35:40]OFD Sender: No OFD packet to send [02:35:45]OFD Sender: No OFD packet to send [02:35:50]OFD Sender: No OFD packet to send [02:35:55]OFD Sender: No OFD packet to send [02:36:00]OFD Sender: No OFD packet to send [02:36:05]OFD Sender: No OFD packet to send [02:36:11]OFD Sender: No OFD packet to send [02:36:16]OFD Sender: No OFD packet to send [02:36:21]OFD Sender: No OFD packet to send [02:36:26]OFD Sender: No OFD packet to send [02:36:31]OFD Sender: No OFD packet to send [02:36:36]OFD Sender: No OFD packet to send [02:36:41]OFD Sender: No OFD packet to send [02:36:46]OFD Sender: No OFD packet to send [02:36:51]OFD Sender: No OFD packet to send [02:36:56]OFD Sender: No OFD packet to send [02:37:01]OFD Sender: No OFD packet to send [02:37:06]OFD Sender: No OFD packet to send [02:37:11]OFD Sender: No OFD packet to send [02:37:16]OFD Sender: No OFD packet to send [02:37:21]OFD Sender: No OFD packet to send [02:37:26]OFD Sender: No OFD packet to send [02:37:31]OFD Sender: No OFD packet to send [02:37:36]OFD Sender: No OFD packet to send [02:37:41]OFD Sender: No OFD packet to send [02:37:46]OFD Sender: No OFD packet to send [02:37:51]OFD Sender: No OFD packet to send [02:37:56]OFD Sender: No OFD packet to send [02:38:01]OFD Sender: No OFD packet to send [02:38:06]OFD Sender: No OFD packet to send [02:38:11]OFD Sender: No OFD packet to send [02:38:16]OFD Sender: No OFD packet to send [02:38:21]OFD Sender: No OFD packet to send [02:38:26]OFD Sender: No OFD packet to send [02:38:31]OFD Sender: No OFD packet to send [02:38:36]OFD Sender: No OFD packet to send [02:38:41]OFD Sender: No OFD packet to send [02:38:46]OFD Sender: No OFD packet to send [02:38:51]OFD Sender: No OFD packet to send [02:38:56]OFD Sender: No OFD packet to send [02:39:01]OFD Sender: No OFD packet to send [02:39:06]OFD Sender: No OFD packet to send [02:39:11]OFD Sender: No OFD packet to send [02:39:16]OFD Sender: No OFD packet to send [02:39:21]OFD Sender: No OFD packet to send [02:39:26]OFD Sender: No OFD packet to send [02:39:31]OFD Sender: No OFD packet to send [02:39:36]OFD Sender: No OFD packet to send [02:39:41]OFD Sender: No OFD packet to send [02:39:46]OFD Sender: No OFD packet to send [02:39:51]OFD Sender: No OFD packet to send [02:39:56]OFD Sender: No OFD packet to send [02:40:01]OFD Sender: No OFD packet to send [02:40:06]OFD Sender: No OFD packet to send [02:40:11]OFD Sender: No OFD packet to send [02:40:16]OFD Sender: No OFD packet to send [02:40:21]OFD Sender: No OFD packet to send [02:40:26]OFD Sender: No OFD packet to send [02:40:31]OFD Sender: No OFD packet to send [02:40:36]OFD Sender: No OFD packet to send [02:40:41]OFD Sender: No OFD packet to send [02:40:46]OFD Sender: No OFD packet to send [02:40:51]OFD Sender: No OFD packet to send [02:40:56]OFD Sender: No OFD packet to send [02:41:01]OFD Sender: No OFD packet to send [02:41:06]OFD Sender: No OFD packet to send [02:41:11]OFD Sender: No OFD packet to send [02:41:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:11]OFD Sender: No OFD packet to send [02:43:16]OFD Sender: No OFD packet to send [02:43:21]OFD Sender: No OFD packet to send [02:43:26]OFD Sender: No OFD packet to send [02:43:31]OFD Sender: No OFD packet to send [02:43:36]OFD Sender: No OFD packet to send [02:43:41]OFD Sender: No OFD packet to send [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44:11]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:51]OFD Sender: No OFD packet to send [02:46:56]OFD Sender: No OFD packet to send [02:47:01]OFD Sender: No OFD packet to send [02:47:06]OFD Sender: No OFD packet to send [02:47:11]OFD Sender: No OFD packet to send [02:47:16]OFD Sender: No OFD packet to send [02:47:21]OFD Sender: No OFD packet to send [02:47:26]OFD Sender: No OFD packet to send [02:47:31]OFD Sender: No OFD packet to send [02:47:36]OFD Sender: No OFD packet to send [02:47:41]OFD Sender: No OFD packet to send [02:47:46]OFD Sender: No OFD packet to send [02:47:51]OFD Sender: No OFD packet to send [02:47:56]OFD Sender: No OFD packet to send [02:48:01]OFD Sender: No OFD packet to send [02:48:06]OFD Sender: No OFD packet to send [02:48:11]OFD Sender: No OFD packet to send [02:48:16]OFD Sender: No OFD packet to send [02:48:21]OFD Sender: No OFD packet to send [02:48:26]OFD Sender: No OFD packet to send [02:48:31]OFD Sender: No OFD packet to send [02:48:36]OFD Sender: No OFD packet to send [02:48:41]OFD Sender: No OFD packet to send [02:48:46]OFD Sender: No OFD packet to send [02:48:51]OFD Sender: No OFD packet to send [02:48:56]OFD Sender: No OFD packet to send [02:49:01]OFD Sender: No OFD packet to send [02:49:06]OFD Sender: No OFD packet to send [02:49:11]OFD Sender: No OFD packet to send [02:49:16]OFD Sender: No OFD packet to send [02:49:21]OFD Sender: No OFD packet to send [02:49:26]OFD Sender: No OFD packet to send [02:49:31]OFD Sender: No OFD packet to send [02:49:36]OFD Sender: No OFD packet to send [02:49:41]OFD Sender: No OFD packet to send [02:49:46]OFD Sender: No OFD packet to send [02:49:51]OFD Sender: No OFD packet to send [02:49:56]OFD Sender: No OFD packet to send [02:50:01]OFD Sender: No OFD packet to send [02:50:06]OFD Sender: No OFD packet to send [02:50:11]OFD Sender: No OFD packet to send [02:50:16]OFD Sender: No OFD packet to send [02:50:21]OFD Sender: No OFD packet to send [02:50:26]OFD Sender: No OFD packet to send [02:50:31]OFD Sender: No OFD packet to send [02:50:36]OFD Sender: No OFD packet to send [02:50:41]OFD Sender: No OFD packet to send [02:50:46]OFD Sender: No OFD packet to send [02:50:51]OFD Sender: No OFD packet to send [02:50:56]OFD Sender: No OFD packet to send [02:51:01]OFD Sender: No OFD packet to send [02:51:06]OFD Sender: No OFD packet to send [02:51:11]OFD Sender: No OFD packet to send [02:51:16]OFD Sender: No OFD packet to send [02:51:21]OFD Sender: No OFD packet to send [02:51:26]OFD Sender: No OFD packet to send [02:51:31]OFD Sender: No OFD packet to send [02:51:36]OFD Sender: No OFD packet to send